2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXv 1.0.7.
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
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || 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 test -n "$DJDIR" || exec 7<&0 </dev/null
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
571 # Identity of this package.
573 PACKAGE_TARNAME='libXv'
574 PACKAGE_VERSION='1.0.7'
575 PACKAGE_STRING='libXv 1.0.7'
576 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
579 ac_unique_file="Makefile.am"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
616 ac_subst_vars='am__EXEEXT_FALSE
701 MAINTAINER_MODE_FALSE
711 INSTALL_STRIP_PROGRAM
753 program_transform_name
766 enable_option_checking
767 enable_maintainer_mode
772 enable_dependency_tracking
776 enable_selective_werror
777 enable_strict_compilation
779 enable_malloc0returnsnull
783 ac_precious_vars='build_alias
799 # Initialize some variables set by options.
801 ac_init_version=false
802 ac_unrecognized_opts=
804 # The variables have the same names as the options, with
805 # dashes changed to underlines.
813 program_transform_name=s,x,x,
821 # Installation directory options.
822 # These are left unexpanded so users can "make install exec_prefix=/foo"
823 # and all the variables that are supposed to be based on exec_prefix
824 # by default will actually change.
825 # Use braces instead of parens because sh, perl, etc. also accept them.
826 # (The list follows the same order as the GNU Coding Standards.)
827 bindir='${exec_prefix}/bin'
828 sbindir='${exec_prefix}/sbin'
829 libexecdir='${exec_prefix}/libexec'
830 datarootdir='${prefix}/share'
831 datadir='${datarootdir}'
832 sysconfdir='${prefix}/etc'
833 sharedstatedir='${prefix}/com'
834 localstatedir='${prefix}/var'
835 includedir='${prefix}/include'
836 oldincludedir='/usr/include'
837 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
838 infodir='${datarootdir}/info'
843 libdir='${exec_prefix}/lib'
844 localedir='${datarootdir}/locale'
845 mandir='${datarootdir}/man'
851 # If the previous option needs an argument, assign it.
852 if test -n "$ac_prev"; then
853 eval $ac_prev=\$ac_option
859 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864 # Accept the important Cygnus configure options, so we can diagnose typos.
866 case $ac_dashdash$ac_option in
870 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875 -build | --build | --buil | --bui | --bu)
876 ac_prev=build_alias ;;
877 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
878 build_alias=$ac_optarg ;;
880 -cache-file | --cache-file | --cache-fil | --cache-fi \
881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
882 ac_prev=cache_file ;;
883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
885 cache_file=$ac_optarg ;;
888 cache_file=config.cache ;;
890 -datadir | --datadir | --datadi | --datad)
892 -datadir=* | --datadir=* | --datadi=* | --datad=*)
893 datadir=$ac_optarg ;;
895 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
896 | --dataroo | --dataro | --datar)
897 ac_prev=datarootdir ;;
898 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
899 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
900 datarootdir=$ac_optarg ;;
902 -disable-* | --disable-*)
903 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906 as_fn_error $? "invalid feature name: $ac_useropt"
907 ac_useropt_orig=$ac_useropt
908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
916 eval enable_$ac_useropt=no ;;
918 -docdir | --docdir | --docdi | --doc | --do)
920 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
923 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
928 -enable-* | --enable-*)
929 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
930 # Reject names that are not valid shell variable names.
931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 as_fn_error $? "invalid feature name: $ac_useropt"
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
942 eval enable_$ac_useropt=\$ac_optarg ;;
944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946 | --exec | --exe | --ex)
947 ac_prev=exec_prefix ;;
948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950 | --exec=* | --exe=* | --ex=*)
951 exec_prefix=$ac_optarg ;;
953 -gas | --gas | --ga | --g)
954 # Obsolete; use --with-gas.
957 -help | --help | --hel | --he | -h)
959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960 ac_init_help=recursive ;;
961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962 ac_init_help=short ;;
964 -host | --host | --hos | --ho)
965 ac_prev=host_alias ;;
966 -host=* | --host=* | --hos=* | --ho=*)
967 host_alias=$ac_optarg ;;
969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 htmldir=$ac_optarg ;;
975 -includedir | --includedir | --includedi | --included | --include \
976 | --includ | --inclu | --incl | --inc)
977 ac_prev=includedir ;;
978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979 | --includ=* | --inclu=* | --incl=* | --inc=*)
980 includedir=$ac_optarg ;;
982 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985 infodir=$ac_optarg ;;
987 -libdir | --libdir | --libdi | --libd)
989 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993 | --libexe | --libex | --libe)
994 ac_prev=libexecdir ;;
995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996 | --libexe=* | --libex=* | --libe=*)
997 libexecdir=$ac_optarg ;;
999 -localedir | --localedir | --localedi | --localed | --locale)
1000 ac_prev=localedir ;;
1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002 localedir=$ac_optarg ;;
1004 -localstatedir | --localstatedir | --localstatedi | --localstated \
1005 | --localstate | --localstat | --localsta | --localst | --locals)
1006 ac_prev=localstatedir ;;
1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1009 localstatedir=$ac_optarg ;;
1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014 mandir=$ac_optarg ;;
1016 -nfp | --nfp | --nf)
1017 # Obsolete; use --without-fp.
1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021 | --no-cr | --no-c | -n)
1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030 | --oldin | --oldi | --old | --ol | --o)
1031 ac_prev=oldincludedir ;;
1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035 oldincludedir=$ac_optarg ;;
1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040 prefix=$ac_optarg ;;
1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043 | --program-pre | --program-pr | --program-p)
1044 ac_prev=program_prefix ;;
1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047 program_prefix=$ac_optarg ;;
1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050 | --program-suf | --program-su | --program-s)
1051 ac_prev=program_suffix ;;
1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054 program_suffix=$ac_optarg ;;
1056 -program-transform-name | --program-transform-name \
1057 | --program-transform-nam | --program-transform-na \
1058 | --program-transform-n | --program-transform- \
1059 | --program-transform | --program-transfor \
1060 | --program-transfo | --program-transf \
1061 | --program-trans | --program-tran \
1062 | --progr-tra | --program-tr | --program-t)
1063 ac_prev=program_transform_name ;;
1064 -program-transform-name=* | --program-transform-name=* \
1065 | --program-transform-nam=* | --program-transform-na=* \
1066 | --program-transform-n=* | --program-transform-=* \
1067 | --program-transform=* | --program-transfor=* \
1068 | --program-transfo=* | --program-transf=* \
1069 | --program-trans=* | --program-tran=* \
1070 | --progr-tra=* | --program-tr=* | --program-t=*)
1071 program_transform_name=$ac_optarg ;;
1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076 pdfdir=$ac_optarg ;;
1078 -psdir | --psdir | --psdi | --psd | --ps)
1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084 | -silent | --silent | --silen | --sile | --sil)
1087 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 sbindir=$ac_optarg ;;
1093 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1094 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095 | --sharedst | --shareds | --shared | --share | --shar \
1097 ac_prev=sharedstatedir ;;
1098 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 sharedstatedir=$ac_optarg ;;
1104 -site | --site | --sit)
1106 -site=* | --site=* | --sit=*)
1109 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112 srcdir=$ac_optarg ;;
1114 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115 | --syscon | --sysco | --sysc | --sys | --sy)
1116 ac_prev=sysconfdir ;;
1117 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119 sysconfdir=$ac_optarg ;;
1121 -target | --target | --targe | --targ | --tar | --ta | --t)
1122 ac_prev=target_alias ;;
1123 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124 target_alias=$ac_optarg ;;
1126 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 -version | --version | --versio | --versi | --vers | -V)
1130 ac_init_version=: ;;
1133 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid package name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1146 eval with_$ac_useropt=\$ac_optarg ;;
1148 -without-* | --without-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error $? "invalid package name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1162 eval with_$ac_useropt=no ;;
1165 # Obsolete; use --with-x.
1168 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169 | --x-incl | --x-inc | --x-in | --x-i)
1170 ac_prev=x_includes ;;
1171 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173 x_includes=$ac_optarg ;;
1175 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177 ac_prev=x_libraries ;;
1178 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180 x_libraries=$ac_optarg ;;
1182 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1183 Try \`$0 --help' for more information"
1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188 # Reject names that are not valid shell variable names.
1189 case $ac_envvar in #(
1190 '' | [0-9]* | *[!_$as_cr_alnum]* )
1191 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1193 eval $ac_envvar=\$ac_optarg
1194 export $ac_envvar ;;
1197 # FIXME: should be removed in autoconf 3.0.
1198 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1207 if test -n "$ac_prev"; then
1208 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209 as_fn_error $? "missing argument to $ac_option"
1212 if test -n "$ac_unrecognized_opts"; then
1213 case $enable_option_checking in
1215 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1216 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220 # Check all directory arguments for consistency.
1221 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1222 datadir sysconfdir sharedstatedir localstatedir includedir \
1223 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1224 libdir localedir mandir
1226 eval ac_val=\$$ac_var
1227 # Remove trailing slashes.
1230 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1231 eval $ac_var=\$ac_val;;
1233 # Be sure to have absolute directory names.
1235 [\\/$]* | ?:[\\/]* ) continue;;
1236 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1241 # There might be people who depend on the old broken behavior: `$host'
1242 # used to hold the argument of --host etc.
1243 # FIXME: To remove some day.
1246 target=$target_alias
1248 # FIXME: To remove some day.
1249 if test "x$host_alias" != x; then
1250 if test "x$build_alias" = x; then
1251 cross_compiling=maybe
1252 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1253 If a cross compiler is detected then cross compile mode will be used" >&2
1254 elif test "x$build_alias" != "x$host_alias"; then
1260 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262 test "$silent" = yes && exec 6>/dev/null
1265 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1266 ac_ls_di=`ls -di .` &&
1267 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1268 as_fn_error $? "working directory cannot be determined"
1269 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1270 as_fn_error $? "pwd does not report name of working directory"
1273 # Find the source files, if location was not specified.
1274 if test -z "$srcdir"; then
1275 ac_srcdir_defaulted=yes
1276 # Try the directory containing this script, then the parent directory.
1277 ac_confdir=`$as_dirname -- "$as_myself" ||
1278 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1279 X"$as_myself" : 'X\(//\)[^/]' \| \
1280 X"$as_myself" : 'X\(//\)$' \| \
1281 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1282 $as_echo X"$as_myself" |
1283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1305 ac_srcdir_defaulted=no
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1308 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1309 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1311 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1315 # When building in place, set srcdir=.
1316 if test "$ac_abs_confdir" = "$ac_pwd"; then
1319 # Remove unnecessary trailing slashes from srcdir.
1320 # Double slashes in file names in object file debugging info
1321 # mess up M-x gdb in Emacs.
1323 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325 for ac_var in $ac_precious_vars; do
1326 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_env_${ac_var}_value=\$${ac_var}
1328 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1333 # Report the --help message.
1335 if test "$ac_init_help" = "long"; then
1336 # Omit some internal or obsolete options to make the list less imposing.
1337 # This message is too long to be a string in the A/UX 3.1 sh.
1339 \`configure' configures libXv 1.0.7 to adapt to many kinds of systems.
1341 Usage: $0 [OPTION]... [VAR=VALUE]...
1343 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1344 VAR=VALUE. See below for descriptions of some of the useful variables.
1346 Defaults for the options are specified in brackets.
1349 -h, --help display this help and exit
1350 --help=short display options specific to this package
1351 --help=recursive display the short help of all the included packages
1352 -V, --version display version information and exit
1353 -q, --quiet, --silent do not print \`checking ...' messages
1354 --cache-file=FILE cache test results in FILE [disabled]
1355 -C, --config-cache alias for \`--cache-file=config.cache'
1356 -n, --no-create do not create output files
1357 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1359 Installation directories:
1360 --prefix=PREFIX install architecture-independent files in PREFIX
1361 [$ac_default_prefix]
1362 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1365 By default, \`make install' will install all the files in
1366 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1367 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1368 for instance \`--prefix=\$HOME'.
1370 For better control, use the options below.
1372 Fine tuning of the installation directories:
1373 --bindir=DIR user executables [EPREFIX/bin]
1374 --sbindir=DIR system admin executables [EPREFIX/sbin]
1375 --libexecdir=DIR program executables [EPREFIX/libexec]
1376 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1377 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1378 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1379 --libdir=DIR object code libraries [EPREFIX/lib]
1380 --includedir=DIR C header files [PREFIX/include]
1381 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1382 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1383 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1384 --infodir=DIR info documentation [DATAROOTDIR/info]
1385 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1386 --mandir=DIR man documentation [DATAROOTDIR/man]
1387 --docdir=DIR documentation root [DATAROOTDIR/doc/libXv]
1388 --htmldir=DIR html documentation [DOCDIR]
1389 --dvidir=DIR dvi documentation [DOCDIR]
1390 --pdfdir=DIR pdf documentation [DOCDIR]
1391 --psdir=DIR ps documentation [DOCDIR]
1397 --program-prefix=PREFIX prepend PREFIX to installed program names
1398 --program-suffix=SUFFIX append SUFFIX to installed program names
1399 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1402 --build=BUILD configure for building on BUILD [guessed]
1403 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1407 if test -n "$ac_init_help"; then
1408 case $ac_init_help in
1409 short | recursive ) echo "Configuration of libXv 1.0.7:";;
1414 --disable-option-checking ignore unrecognized --enable/--with options
1415 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1416 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1417 --enable-maintainer-mode enable make rules and dependencies not useful
1418 (and sometimes confusing) to the casual installer
1419 --enable-shared[=PKGS] build shared libraries [default=yes]
1420 --enable-static[=PKGS] build static libraries [default=yes]
1421 --enable-fast-install[=PKGS]
1422 optimize for fast installation [default=yes]
1423 --disable-dependency-tracking speeds up one-time build
1424 --enable-dependency-tracking do not reject slow dependency extractors
1425 --disable-libtool-lock avoid locking (might break parallel builds)
1426 --disable-selective-werror
1427 Turn off selective compiler errors. (default:
1429 --enable-strict-compilation
1430 Enable all warnings from compiler and make them
1431 errors (default: disabled)
1432 --enable-silent-rules less verbose build output (undo: `make V=1')
1433 --disable-silent-rules verbose build output (undo: `make V=0')
1434 --enable-malloc0returnsnull
1435 malloc(0) returns NULL (default: auto)
1436 --enable-lint-library Create lint library (default: disabled)
1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1441 --with-pic try to use only PIC/non-PIC objects [default=use
1443 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1444 --with-sysroot=DIR Search for dependent libraries within DIR
1445 (or the compiler's sysroot if not specified).
1446 --with-lint Use a lint-style source code checker (default:
1449 Some influential environment variables:
1450 CC C compiler command
1451 CFLAGS C compiler flags
1452 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1453 nonstandard directory <lib dir>
1454 LIBS libraries to pass to the linker, e.g. -l<library>
1455 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1456 you have headers in a nonstandard directory <include dir>
1458 PKG_CONFIG path to pkg-config utility
1459 XV_CFLAGS C compiler flags for XV, overriding pkg-config
1460 XV_LIBS linker flags for XV, overriding pkg-config
1461 LINT Path to a lint-style command
1462 LINT_FLAGS Flags for the lint-style command
1464 Use these variables to override the choices made by `configure' or to help
1465 it to find libraries and programs with nonstandard names/locations.
1467 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1472 if test "$ac_init_help" = "recursive"; then
1473 # If there are subdirs, report their specific --help.
1474 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1475 test -d "$ac_dir" ||
1476 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1481 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1484 # A ".." for each directory in $ac_dir_suffix.
1485 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1486 case $ac_top_builddir_sub in
1487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1491 ac_abs_top_builddir=$ac_pwd
1492 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493 # for backward compatibility:
1494 ac_top_builddir=$ac_top_build_prefix
1497 .) # We are building in place.
1499 ac_top_srcdir=$ac_top_builddir_sub
1500 ac_abs_top_srcdir=$ac_pwd ;;
1501 [\\/]* | ?:[\\/]* ) # Absolute name.
1502 ac_srcdir=$srcdir$ac_dir_suffix;
1503 ac_top_srcdir=$srcdir
1504 ac_abs_top_srcdir=$srcdir ;;
1506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507 ac_top_srcdir=$ac_top_build_prefix$srcdir
1508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1510 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1512 cd "$ac_dir" || { ac_status=$?; continue; }
1513 # Check for guested configure.
1514 if test -f "$ac_srcdir/configure.gnu"; then
1516 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1517 elif test -f "$ac_srcdir/configure"; then
1519 $SHELL "$ac_srcdir/configure" --help=recursive
1521 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1523 cd "$ac_pwd" || { ac_status=$?; break; }
1527 test -n "$ac_init_help" && exit $ac_status
1528 if $ac_init_version; then
1530 libXv configure 1.0.7
1531 generated by GNU Autoconf 2.68
1533 Copyright (C) 2010 Free Software Foundation, Inc.
1534 This configure script is free software; the Free Software Foundation
1535 gives unlimited permission to copy, distribute and modify it.
1540 ## ------------------------ ##
1541 ## Autoconf initialization. ##
1542 ## ------------------------ ##
1544 # ac_fn_c_try_compile LINENO
1545 # --------------------------
1546 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1547 ac_fn_c_try_compile ()
1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550 rm -f conftest.$ac_objext
1551 if { { ac_try="$ac_compile"
1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554 *) ac_try_echo=$ac_try;;
1556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557 $as_echo "$ac_try_echo"; } >&5
1558 (eval "$ac_compile") 2>conftest.err
1560 if test -s conftest.err; then
1561 grep -v '^ *+' conftest.err >conftest.er1
1562 cat conftest.er1 >&5
1563 mv -f conftest.er1 conftest.err
1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566 test $ac_status = 0; } && {
1567 test -z "$ac_c_werror_flag" ||
1568 test ! -s conftest.err
1569 } && test -s conftest.$ac_objext; then :
1572 $as_echo "$as_me: failed program was:" >&5
1573 sed 's/^/| /' conftest.$ac_ext >&5
1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578 as_fn_set_status $ac_retval
1580 } # ac_fn_c_try_compile
1582 # ac_fn_c_try_link LINENO
1583 # -----------------------
1584 # Try to link conftest.$ac_ext, and return whether this succeeded.
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 rm -f conftest.$ac_objext conftest$ac_exeext
1589 if { { ac_try="$ac_link"
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_link") 2>conftest.err
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } && {
1605 test -z "$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1607 } && test -s conftest$ac_exeext && {
1608 test "$cross_compiling" = yes ||
1609 $as_test_x conftest$ac_exeext
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1618 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1619 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1620 # interfere with the next link command; also delete a directory that is
1621 # left behind by Apple's compiler. We do this before executing the actions.
1622 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1626 } # ac_fn_c_try_link
1628 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1629 # -------------------------------------------------------
1630 # Tests whether HEADER exists and can be compiled using the include files in
1631 # INCLUDES, setting the cache variable VAR accordingly.
1632 ac_fn_c_check_header_compile ()
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636 $as_echo_n "checking for $2... " >&6; }
1637 if eval \${$3+:} false; then :
1638 $as_echo_n "(cached) " >&6
1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641 /* end confdefs.h. */
1645 if ac_fn_c_try_compile "$LINENO"; then :
1650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654 $as_echo "$ac_res" >&6; }
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 } # ac_fn_c_check_header_compile
1659 # ac_fn_c_try_cpp LINENO
1660 # ----------------------
1661 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 if { { ac_try="$ac_cpp conftest.$ac_ext"
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } > conftest.i && {
1681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1686 $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 as_fn_set_status $ac_retval
1696 # ac_fn_c_try_run LINENO
1697 # ----------------------
1698 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1699 # that executables *can* be run.
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 if { { ac_try="$ac_link"
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_link") 2>&5
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1714 { { case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_try") 2>&5
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; }; }; then :
1726 $as_echo "$as_me: program exited with status $ac_status" >&5
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1730 ac_retval=$ac_status
1732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 as_fn_set_status $ac_retval
1738 # ac_fn_c_check_func LINENO FUNC VAR
1739 # ----------------------------------
1740 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1741 ac_fn_c_check_func ()
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if eval \${$3+:} false; then :
1747 $as_echo_n "(cached) " >&6
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1753 #define $2 innocuous_$2
1755 /* System header to define __stub macros and hopefully few prototypes,
1756 which can conflict with char $2 (); below.
1757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1758 <limits.h> exists even on freestanding compilers. */
1761 # include <limits.h>
1763 # include <assert.h>
1768 /* Override any GCC internal prototype to avoid an error.
1769 Use char because int might match the return type of a GCC
1770 builtin and then its argument prototype would still apply. */
1775 /* The GNU C library defines this for functions which it implements
1776 to always fail with ENOSYS. Some functions are actually named
1777 something starting with __ and the normal name is an alias. */
1778 #if defined __stub_$2 || defined __stub___$2
1790 if ac_fn_c_try_link "$LINENO"; then :
1795 rm -f core conftest.err conftest.$ac_objext \
1796 conftest$ac_exeext conftest.$ac_ext
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 $as_echo "$ac_res" >&6; }
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 } # ac_fn_c_check_func
1805 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1806 # ---------------------------------------------
1807 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1809 ac_fn_c_check_decl ()
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 as_decl_name=`echo $2|sed 's/ *(.*//'`
1813 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1815 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1816 if eval \${$3+:} false; then :
1817 $as_echo_n "(cached) " >&6
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1825 #ifndef $as_decl_name
1827 (void) $as_decl_use;
1829 (void) $as_decl_name;
1837 if ac_fn_c_try_compile "$LINENO"; then :
1842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846 $as_echo "$ac_res" >&6; }
1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849 } # ac_fn_c_check_decl
1850 cat >config.log <<_ACEOF
1851 This file contains any messages produced by compilers while
1852 running configure, to aid debugging if configure makes a mistake.
1854 It was created by libXv $as_me 1.0.7, which was
1855 generated by GNU Autoconf 2.68. Invocation command line was
1867 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1868 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1869 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1870 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1871 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1873 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1874 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1876 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1877 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1878 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1879 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1880 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1881 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1882 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 test -z "$as_dir" && as_dir=.
1891 $as_echo "PATH: $as_dir"
1907 # Keep a trace of the command line.
1908 # Strip out --no-create and --no-recursion so they do not pile up.
1909 # Strip out --silent because we don't want to record it for future runs.
1910 # Also quote any args containing shell meta-characters.
1911 # Make two passes to allow for proper duplicate-argument suppression.
1915 ac_must_keep_next=false
1921 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1923 | -silent | --silent | --silen | --sile | --sil)
1926 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1929 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1931 as_fn_append ac_configure_args1 " '$ac_arg'"
1932 if test $ac_must_keep_next = true; then
1933 ac_must_keep_next=false # Got value, back to normal.
1936 *=* | --config-cache | -C | -disable-* | --disable-* \
1937 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1938 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1939 | -with-* | --with-* | -without-* | --without-* | --x)
1940 case "$ac_configure_args0 " in
1941 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1944 -* ) ac_must_keep_next=true ;;
1947 as_fn_append ac_configure_args " '$ac_arg'"
1952 { ac_configure_args0=; unset ac_configure_args0;}
1953 { ac_configure_args1=; unset ac_configure_args1;}
1955 # When interrupted or exit'd, cleanup temporary files, and complete
1956 # config.log. We remove comments because anyway the quotes in there
1957 # would cause problems or look ugly.
1958 # WARNING: Use '\'' to represent an apostrophe within the trap.
1959 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1960 trap 'exit_status=$?
1961 # Save into config.log some information that might help in debugging.
1965 $as_echo "## ---------------- ##
1966 ## Cache variables. ##
1967 ## ---------------- ##"
1969 # The following way of writing the cache mishandles newlines in values,
1971 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1972 eval ac_val=\$$ac_var
1976 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1977 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1980 _ | IFS | as_nl) ;; #(
1981 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1982 *) { eval $ac_var=; unset $ac_var;} ;;
1987 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1988 *${as_nl}ac_space=\ *)
1990 "s/'\''/'\''\\\\'\'''\''/g;
1991 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1994 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2001 $as_echo "## ----------------- ##
2002 ## Output variables. ##
2003 ## ----------------- ##"
2005 for ac_var in $ac_subst_vars
2007 eval ac_val=\$$ac_var
2009 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2011 $as_echo "$ac_var='\''$ac_val'\''"
2015 if test -n "$ac_subst_files"; then
2016 $as_echo "## ------------------- ##
2017 ## File substitutions. ##
2018 ## ------------------- ##"
2020 for ac_var in $ac_subst_files
2022 eval ac_val=\$$ac_var
2024 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2026 $as_echo "$ac_var='\''$ac_val'\''"
2031 if test -s confdefs.h; then
2032 $as_echo "## ----------- ##
2039 test "$ac_signal" != 0 &&
2040 $as_echo "$as_me: caught signal $ac_signal"
2041 $as_echo "$as_me: exit $exit_status"
2043 rm -f core *.core core.conftest.* &&
2044 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2047 for ac_signal in 1 2 13 15; do
2048 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2052 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2053 rm -f -r conftest* confdefs.h
2055 $as_echo "/* confdefs.h */" > confdefs.h
2057 # Predefined preprocessor variables.
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_NAME "$PACKAGE_NAME"
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2071 cat >>confdefs.h <<_ACEOF
2072 #define PACKAGE_STRING "$PACKAGE_STRING"
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_URL "$PACKAGE_URL"
2084 # Let the site file select an alternate cache file if it wants to.
2085 # Prefer an explicitly selected file to automatically selected ones.
2088 if test -n "$CONFIG_SITE"; then
2089 # We do not want a PATH search for config.site.
2090 case $CONFIG_SITE in #((
2091 -*) ac_site_file1=./$CONFIG_SITE;;
2092 */*) ac_site_file1=$CONFIG_SITE;;
2093 *) ac_site_file1=./$CONFIG_SITE;;
2095 elif test "x$prefix" != xNONE; then
2096 ac_site_file1=$prefix/share/config.site
2097 ac_site_file2=$prefix/etc/config.site
2099 ac_site_file1=$ac_default_prefix/share/config.site
2100 ac_site_file2=$ac_default_prefix/etc/config.site
2102 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2104 test "x$ac_site_file" = xNONE && continue
2105 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2107 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2108 sed 's/^/| /' "$ac_site_file" >&5
2110 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2112 as_fn_error $? "failed to load site script $ac_site_file
2113 See \`config.log' for more details" "$LINENO" 5; }
2117 if test -r "$cache_file"; then
2118 # Some versions of bash will fail to source /dev/null (special files
2119 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2120 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2122 $as_echo "$as_me: loading cache $cache_file" >&6;}
2124 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2125 *) . "./$cache_file";;
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2130 $as_echo "$as_me: creating cache $cache_file" >&6;}
2134 # Check that the precious variables saved in the cache have kept the same
2136 ac_cache_corrupted=false
2137 for ac_var in $ac_precious_vars; do
2138 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2139 eval ac_new_set=\$ac_env_${ac_var}_set
2140 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2141 eval ac_new_val=\$ac_env_${ac_var}_value
2142 case $ac_old_set,$ac_new_set in
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2145 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2146 ac_cache_corrupted=: ;;
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2149 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2150 ac_cache_corrupted=: ;;
2153 if test "x$ac_old_val" != "x$ac_new_val"; then
2154 # differences in whitespace do not lead to failure.
2155 ac_old_val_w=`echo x $ac_old_val`
2156 ac_new_val_w=`echo x $ac_new_val`
2157 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2159 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2160 ac_cache_corrupted=:
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2163 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2164 eval $ac_var=\$ac_old_val
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2167 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2169 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2172 # Pass precious variables to config.status.
2173 if test "$ac_new_set" = set; then
2175 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2176 *) ac_arg=$ac_var=$ac_new_val ;;
2178 case " $ac_configure_args " in
2179 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2180 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2184 if $ac_cache_corrupted; then
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2188 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2189 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2191 ## -------------------- ##
2192 ## Main body of script. ##
2193 ## -------------------- ##
2196 ac_cpp='$CPP $CPPFLAGS'
2197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2203 ac_config_headers="$ac_config_headers config.h"
2206 # Initialize Automake
2207 am__api_version='1.11'
2210 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2211 if test -f "$ac_dir/install-sh"; then
2213 ac_install_sh="$ac_aux_dir/install-sh -c"
2215 elif test -f "$ac_dir/install.sh"; then
2217 ac_install_sh="$ac_aux_dir/install.sh -c"
2219 elif test -f "$ac_dir/shtool"; then
2221 ac_install_sh="$ac_aux_dir/shtool install -c"
2225 if test -z "$ac_aux_dir"; then
2226 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2229 # These three variables are undocumented and unsupported,
2230 # and are intended to be withdrawn in a future Autoconf release.
2231 # They can cause serious problems if a builder's source tree is in a directory
2232 # whose full name contains unusual characters.
2233 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2234 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2235 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2238 # Find a good install program. We prefer a C program (faster),
2239 # so one script is as good as another. But avoid the broken or
2240 # incompatible versions:
2241 # SysV /etc/install, /usr/sbin/install
2242 # SunOS /usr/etc/install
2243 # IRIX /sbin/install
2245 # AmigaOS /C/install, which installs bootblocks on floppy discs
2246 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2247 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2248 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2249 # OS/2's system install, which has a completely different semantic
2250 # ./install, which can be erroneously created by make from ./install.sh.
2251 # Reject install programs that cannot install multiple files.
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2253 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2254 if test -z "$INSTALL"; then
2255 if ${ac_cv_path_install+:} false; then :
2256 $as_echo_n "(cached) " >&6
2258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262 test -z "$as_dir" && as_dir=.
2263 # Account for people who put trailing slashes in PATH elements.
2264 case $as_dir/ in #((
2265 ./ | .// | /[cC]/* | \
2266 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2267 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2270 # OSF1 and SCO ODT 3.0 have their own names for install.
2271 # Don't use installbsd from OSF since it installs stuff as root
2273 for ac_prog in ginstall scoinst install; do
2274 for ac_exec_ext in '' $ac_executable_extensions; do
2275 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2276 if test $ac_prog = install &&
2277 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2278 # AIX install. It has an incompatible calling convention.
2280 elif test $ac_prog = install &&
2281 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2282 # program-specific install script used by HP pwplus--don't use.
2285 rm -rf conftest.one conftest.two conftest.dir
2286 echo one > conftest.one
2287 echo two > conftest.two
2289 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2290 test -s conftest.one && test -s conftest.two &&
2291 test -s conftest.dir/conftest.one &&
2292 test -s conftest.dir/conftest.two
2294 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2307 rm -rf conftest.one conftest.two conftest.dir
2310 if test "${ac_cv_path_install+set}" = set; then
2311 INSTALL=$ac_cv_path_install
2313 # As a last resort, use the slow shell script. Don't cache a
2314 # value for INSTALL within a source directory, because that will
2315 # break other packages using the cache if that directory is
2316 # removed, or if the value is a relative name.
2317 INSTALL=$ac_install_sh
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2321 $as_echo "$INSTALL" >&6; }
2323 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2324 # It thinks the first close brace ends the variable substitution.
2325 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2327 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2329 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2332 $as_echo_n "checking whether build environment is sane... " >&6; }
2335 echo timestamp > conftest.file
2336 # Reject unsafe characters in $srcdir or the absolute working directory
2337 # name. Accept space and tab only in the latter.
2341 *[\\\"\#\$\&\'\`$am_lf]*)
2342 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2345 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2346 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2349 # Do `set' in a subshell so we don't clobber the current shell's
2350 # arguments. Must try -L first in case configure is actually a
2351 # symlink; some systems play weird games with the mod time of symlinks
2352 # (eg FreeBSD returns the mod time of the symlink's containing
2355 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2356 if test "$*" = "X"; then
2358 set X `ls -t "$srcdir/configure" conftest.file`
2361 if test "$*" != "X $srcdir/configure conftest.file" \
2362 && test "$*" != "X conftest.file $srcdir/configure"; then
2364 # If neither matched, then we have a broken ls. This can happen
2365 # if, for instance, CONFIG_SHELL is bash and it inherits a
2366 # broken ls alias from the environment. This has actually
2367 # happened. Such a system could not be considered "sane".
2368 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2369 alias in your environment" "$LINENO" 5
2372 test "$2" = conftest.file
2378 as_fn_error $? "newly created file is older than distributed files!
2379 Check your system clock" "$LINENO" 5
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2382 $as_echo "yes" >&6; }
2383 test "$program_prefix" != NONE &&
2384 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2385 # Use a double $ so make ignores it.
2386 test "$program_suffix" != NONE &&
2387 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2388 # Double any \ or $.
2389 # By default was `s,x,x', remove it if useless.
2390 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2391 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2393 # expand $ac_aux_dir to an absolute path
2394 am_aux_dir=`cd $ac_aux_dir && pwd`
2396 if test x"${MISSING+set}" != xset; then
2399 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2401 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2404 # Use eval to expand $SHELL
2405 if eval "$MISSING --run true"; then
2406 am_missing_run="$MISSING --run "
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2410 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2413 if test x"${install_sh}" != xset; then
2416 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2418 install_sh="\${SHELL} $am_aux_dir/install-sh"
2422 # Installed binaries are usually stripped using `strip' when the user
2423 # run `make install-strip'. However `strip' might not be the right
2424 # tool to use in cross-compilation environments, therefore Automake
2425 # will honor the `STRIP' environment variable to overrule this program.
2426 if test "$cross_compiling" != no; then
2427 if test -n "$ac_tool_prefix"; then
2428 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2429 set dummy ${ac_tool_prefix}strip; ac_word=$2
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2431 $as_echo_n "checking for $ac_word... " >&6; }
2432 if ${ac_cv_prog_STRIP+:} false; then :
2433 $as_echo_n "(cached) " >&6
2435 if test -n "$STRIP"; then
2436 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 test -z "$as_dir" && as_dir=.
2443 for ac_exec_ext in '' $ac_executable_extensions; do
2444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2445 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2455 STRIP=$ac_cv_prog_STRIP
2456 if test -n "$STRIP"; then
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2458 $as_echo "$STRIP" >&6; }
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2461 $as_echo "no" >&6; }
2466 if test -z "$ac_cv_prog_STRIP"; then
2468 # Extract the first word of "strip", so it can be a program name with args.
2469 set dummy strip; ac_word=$2
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2471 $as_echo_n "checking for $ac_word... " >&6; }
2472 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2473 $as_echo_n "(cached) " >&6
2475 if test -n "$ac_ct_STRIP"; then
2476 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485 ac_cv_prog_ac_ct_STRIP="strip"
2486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2496 if test -n "$ac_ct_STRIP"; then
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2498 $as_echo "$ac_ct_STRIP" >&6; }
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2501 $as_echo "no" >&6; }
2504 if test "x$ac_ct_STRIP" = x; then
2507 case $cross_compiling:$ac_tool_warned in
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2511 ac_tool_warned=yes ;;
2516 STRIP="$ac_cv_prog_STRIP"
2520 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2523 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2524 if test -z "$MKDIR_P"; then
2525 if ${ac_cv_path_mkdir+:} false; then :
2526 $as_echo_n "(cached) " >&6
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2532 test -z "$as_dir" && as_dir=.
2533 for ac_prog in mkdir gmkdir; do
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2536 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2537 'mkdir (GNU coreutils) '* | \
2538 'mkdir (coreutils) '* | \
2539 'mkdir (fileutils) '4.1*)
2540 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2550 test -d ./--version && rmdir ./--version
2551 if test "${ac_cv_path_mkdir+set}" = set; then
2552 MKDIR_P="$ac_cv_path_mkdir -p"
2554 # As a last resort, use the slow shell script. Don't cache a
2555 # value for MKDIR_P within a source directory, because that will
2556 # break other packages using the cache if that directory is
2557 # removed, or if the value is a relative name.
2558 MKDIR_P="$ac_install_sh -d"
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2562 $as_echo "$MKDIR_P" >&6; }
2566 [\\/$]* | ?:[\\/]*) ;;
2567 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2570 for ac_prog in gawk mawk nawk awk
2572 # Extract the first word of "$ac_prog", so it can be a program name with args.
2573 set dummy $ac_prog; ac_word=$2
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575 $as_echo_n "checking for $ac_word... " >&6; }
2576 if ${ac_cv_prog_AWK+:} false; then :
2577 $as_echo_n "(cached) " >&6
2579 if test -n "$AWK"; then
2580 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2589 ac_cv_prog_AWK="$ac_prog"
2590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 if test -n "$AWK"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2602 $as_echo "$AWK" >&6; }
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605 $as_echo "no" >&6; }
2609 test -n "$AWK" && break
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2613 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2615 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2616 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2617 $as_echo_n "(cached) " >&6
2619 cat >conftest.make <<\_ACEOF
2622 @echo '@@@%%%=$(MAKE)=@@@%%%'
2624 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2625 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2627 eval ac_cv_prog_make_${ac_make}_set=yes;;
2629 eval ac_cv_prog_make_${ac_make}_set=no;;
2633 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2635 $as_echo "yes" >&6; }
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639 $as_echo "no" >&6; }
2640 SET_MAKE="MAKE=${MAKE-make}"
2643 rm -rf .tst 2>/dev/null
2644 mkdir .tst 2>/dev/null
2645 if test -d .tst; then
2650 rmdir .tst 2>/dev/null
2652 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2653 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2654 # is not polluted with repeated "-I."
2655 am__isrc=' -I$(srcdir)'
2656 # test to see if srcdir already configured
2657 if test -f $srcdir/config.status; then
2658 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2662 # test whether we have cygpath
2663 if test -z "$CYGPATH_W"; then
2664 if (cygpath --version) >/dev/null 2>/dev/null; then
2665 CYGPATH_W='cygpath -w'
2672 # Define the identity of the package.
2677 cat >>confdefs.h <<_ACEOF
2678 #define PACKAGE "$PACKAGE"
2682 cat >>confdefs.h <<_ACEOF
2683 #define VERSION "$VERSION"
2686 # Some tools Automake needs.
2688 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2691 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2694 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2697 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2700 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2702 # We need awk for the "check" target. The system "awk" is bad on
2704 # Always define AMTAR for backward compatibility.
2706 AMTAR=${AMTAR-"${am_missing_run}tar"}
2708 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2716 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2717 # Check whether --enable-maintainer-mode was given.
2718 if test "${enable_maintainer_mode+set}" = set; then :
2719 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2721 USE_MAINTAINER_MODE=no
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2725 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2726 if test $USE_MAINTAINER_MODE = yes; then
2727 MAINTAINER_MODE_TRUE=
2728 MAINTAINER_MODE_FALSE='#'
2730 MAINTAINER_MODE_TRUE='#'
2731 MAINTAINER_MODE_FALSE=
2734 MAINT=$MAINTAINER_MODE_TRUE
2738 # Initialize libtool
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2742 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2748 macro_revision='1.3293'
2762 ltmain="$ac_aux_dir/ltmain.sh"
2764 # Make sure we can run config.sub.
2765 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2766 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2769 $as_echo_n "checking build system type... " >&6; }
2770 if ${ac_cv_build+:} false; then :
2771 $as_echo_n "(cached) " >&6
2773 ac_build_alias=$build_alias
2774 test "x$ac_build_alias" = x &&
2775 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2776 test "x$ac_build_alias" = x &&
2777 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2778 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2779 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2783 $as_echo "$ac_cv_build" >&6; }
2784 case $ac_cv_build in
2786 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2789 ac_save_IFS=$IFS; IFS='-'
2795 # Remember, the first character of IFS is used to create $*,
2796 # except with old shells:
2799 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2803 $as_echo_n "checking host system type... " >&6; }
2804 if ${ac_cv_host+:} false; then :
2805 $as_echo_n "(cached) " >&6
2807 if test "x$host_alias" = x; then
2808 ac_cv_host=$ac_cv_build
2810 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2811 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2816 $as_echo "$ac_cv_host" >&6; }
2819 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2822 ac_save_IFS=$IFS; IFS='-'
2828 # Remember, the first character of IFS is used to create $*,
2829 # except with old shells:
2832 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2835 # Backslashify metacharacters that are still active within
2836 # double-quoted strings.
2837 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2839 # Same as above, but do not quote variable references.
2840 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2842 # Sed substitution to delay expansion of an escaped shell variable in a
2843 # double_quote_subst'ed string.
2844 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2846 # Sed substitution to delay expansion of an escaped single quote.
2847 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2849 # Sed substitution to avoid accidental globbing in evaled expressions
2850 no_glob_subst='s/\*/\\\*/g'
2852 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2853 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2854 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2857 $as_echo_n "checking how to print strings... " >&6; }
2858 # Test print first, because it will be a builtin if present.
2859 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2860 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2862 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2865 # Use this function as a fallback that always works.
2866 func_fallback_echo ()
2868 eval 'cat <<_LTECHO_EOF
2872 ECHO='func_fallback_echo'
2875 # func_echo_all arg...
2876 # Invoke $ECHO with all args, space-separated.
2883 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2884 $as_echo "printf" >&6; } ;;
2885 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2886 $as_echo "print -r" >&6; } ;;
2887 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2888 $as_echo "cat" >&6; } ;;
2904 DEPDIR="${am__leading_dot}deps"
2906 ac_config_commands="$ac_config_commands depfiles"
2909 am_make=${MAKE-make}
2910 cat > confinc << 'END'
2912 @echo this is the am__doit target
2915 # If we don't find an include directive, just comment out the code.
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2917 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2921 # First try GNU make style include.
2922 echo "include confinc" > confmf
2923 # Ignore all kinds of additional output from `make'.
2924 case `$am_make -s -f confmf 2> /dev/null` in #(
2925 *the\ am__doit\ target*)
2931 # Now try BSD make style include.
2932 if test "$am__include" = "#"; then
2933 echo '.include "confinc"' > confmf
2934 case `$am_make -s -f confmf 2> /dev/null` in #(
2935 *the\ am__doit\ target*)
2936 am__include=.include
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2945 $as_echo "$_am_result" >&6; }
2946 rm -f confinc confmf
2948 # Check whether --enable-dependency-tracking was given.
2949 if test "${enable_dependency_tracking+set}" = set; then :
2950 enableval=$enable_dependency_tracking;
2953 if test "x$enable_dependency_tracking" != xno; then
2954 am_depcomp="$ac_aux_dir/depcomp"
2957 if test "x$enable_dependency_tracking" != xno; then
2967 ac_cpp='$CPP $CPPFLAGS'
2968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2971 if test -n "$ac_tool_prefix"; then
2972 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2973 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975 $as_echo_n "checking for $ac_word... " >&6; }
2976 if ${ac_cv_prog_CC+:} false; then :
2977 $as_echo_n "(cached) " >&6
2979 if test -n "$CC"; then
2980 ac_cv_prog_CC="$CC" # Let the user override the test.
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2989 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 if test -n "$CC"; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3002 $as_echo "$CC" >&6; }
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005 $as_echo "no" >&6; }
3010 if test -z "$ac_cv_prog_CC"; then
3012 # Extract the first word of "gcc", so it can be a program name with args.
3013 set dummy gcc; ac_word=$2
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015 $as_echo_n "checking for $ac_word... " >&6; }
3016 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3017 $as_echo_n "(cached) " >&6
3019 if test -n "$ac_ct_CC"; then
3020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 test -z "$as_dir" && as_dir=.
3027 for ac_exec_ext in '' $ac_executable_extensions; do
3028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029 ac_cv_prog_ac_ct_CC="gcc"
3030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3040 if test -n "$ac_ct_CC"; then
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3042 $as_echo "$ac_ct_CC" >&6; }
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 $as_echo "no" >&6; }
3048 if test "x$ac_ct_CC" = x; then
3051 case $cross_compiling:$ac_tool_warned in
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3055 ac_tool_warned=yes ;;
3063 if test -z "$CC"; then
3064 if test -n "$ac_tool_prefix"; then
3065 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3066 set dummy ${ac_tool_prefix}cc; ac_word=$2
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if ${ac_cv_prog_CC+:} false; then :
3070 $as_echo_n "(cached) " >&6
3072 if test -n "$CC"; then
3073 ac_cv_prog_CC="$CC" # Let the user override the test.
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 ac_cv_prog_CC="${ac_tool_prefix}cc"
3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 if test -n "$CC"; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3095 $as_echo "$CC" >&6; }
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098 $as_echo "no" >&6; }
3104 if test -z "$CC"; then
3105 # Extract the first word of "cc", so it can be a program name with args.
3106 set dummy cc; ac_word=$2
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 $as_echo_n "checking for $ac_word... " >&6; }
3109 if ${ac_cv_prog_CC+:} false; then :
3110 $as_echo_n "(cached) " >&6
3112 if test -n "$CC"; then
3113 ac_cv_prog_CC="$CC" # Let the user override the test.
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 test -z "$as_dir" && as_dir=.
3121 for ac_exec_ext in '' $ac_executable_extensions; do
3122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3123 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3124 ac_prog_rejected=yes
3128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 if test $ac_prog_rejected = yes; then
3136 # We found a bogon in the path, so make sure we never use it.
3137 set dummy $ac_cv_prog_CC
3139 if test $# != 0; then
3140 # We chose a different compiler from the bogus one.
3141 # However, it has the same basename, so the bogon will be chosen
3142 # first if we set CC to just the basename; use the full file name.
3144 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3150 if test -n "$CC"; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3152 $as_echo "$CC" >&6; }
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3160 if test -z "$CC"; then
3161 if test -n "$ac_tool_prefix"; then
3162 for ac_prog in cl.exe
3164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3165 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_prog_CC+:} false; then :
3169 $as_echo_n "(cached) " >&6
3171 if test -n "$CC"; then
3172 ac_cv_prog_CC="$CC" # Let the user override the test.
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3181 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 if test -n "$CC"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3194 $as_echo "$CC" >&6; }
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3201 test -n "$CC" && break
3204 if test -z "$CC"; then
3206 for ac_prog in cl.exe
3208 # Extract the first word of "$ac_prog", so it can be a program name with args.
3209 set dummy $ac_prog; ac_word=$2
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211 $as_echo_n "checking for $ac_word... " >&6; }
3212 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3213 $as_echo_n "(cached) " >&6
3215 if test -n "$ac_ct_CC"; then
3216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 test -z "$as_dir" && as_dir=.
3223 for ac_exec_ext in '' $ac_executable_extensions; do
3224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3225 ac_cv_prog_ac_ct_CC="$ac_prog"
3226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3236 if test -n "$ac_ct_CC"; then
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3238 $as_echo "$ac_ct_CC" >&6; }
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 $as_echo "no" >&6; }
3245 test -n "$ac_ct_CC" && break
3248 if test "x$ac_ct_CC" = x; then
3251 case $cross_compiling:$ac_tool_warned in
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3255 ac_tool_warned=yes ;;
3264 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3266 as_fn_error $? "no acceptable C compiler found in \$PATH
3267 See \`config.log' for more details" "$LINENO" 5; }
3269 # Provide some information about the compiler.
3270 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3273 for ac_option in --version -v -V -qversion; do
3274 { { ac_try="$ac_compiler $ac_option >&5"
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280 $as_echo "$ac_try_echo"; } >&5
3281 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3283 if test -s conftest.err; then
3285 ... rest of stderr output deleted ...
3286 10q' conftest.err >conftest.er1
3287 cat conftest.er1 >&5
3289 rm -f conftest.er1 conftest.err
3290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3291 test $ac_status = 0; }
3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295 /* end confdefs.h. */
3305 ac_clean_files_save=$ac_clean_files
3306 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3307 # Try to create an executable without -o first, disregard a.out.
3308 # It will help us diagnose broken compilers, and finding out an intuition
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3311 $as_echo_n "checking whether the C compiler works... " >&6; }
3312 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3314 # The possible output files:
3315 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3318 for ac_file in $ac_files
3321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3322 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3327 if { { ac_try="$ac_link_default"
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333 $as_echo "$ac_try_echo"; } >&5
3334 (eval "$ac_link_default") 2>&5
3336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3337 test $ac_status = 0; }; then :
3338 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3339 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3340 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3341 # so that the user can short-circuit this test for compilers unknown to
3343 for ac_file in $ac_files ''
3345 test -f "$ac_file" || continue
3347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3350 # We found the default executable, but exeext='' is most
3354 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3356 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3358 # We set ac_cv_exeext here because the later test for it is not
3359 # safe: cross compilers may not add the suffix if given an `-o'
3360 # argument, so we may need to know it at that point already.
3361 # Even if this section looks crufty: it has the advantage of
3368 test "$ac_cv_exeext" = no && ac_cv_exeext=
3373 if test -z "$ac_file"; then :
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 $as_echo "no" >&6; }
3376 $as_echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3381 as_fn_error 77 "C compiler cannot create executables
3382 See \`config.log' for more details" "$LINENO" 5; }
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3385 $as_echo "yes" >&6; }
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3388 $as_echo_n "checking for C compiler default output file name... " >&6; }
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3390 $as_echo "$ac_file" >&6; }
3391 ac_exeext=$ac_cv_exeext
3393 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3394 ac_clean_files=$ac_clean_files_save
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3396 $as_echo_n "checking for suffix of executables... " >&6; }
3397 if { { ac_try="$ac_link"
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3403 $as_echo "$ac_try_echo"; } >&5
3404 (eval "$ac_link") 2>&5
3406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3407 test $ac_status = 0; }; then :
3408 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3409 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3410 # work properly (i.e., refer to `conftest.exe'), while it won't with
3412 for ac_file in conftest.exe conftest conftest.*; do
3413 test -f "$ac_file" || continue
3415 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3416 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3424 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3425 See \`config.log' for more details" "$LINENO" 5; }
3427 rm -f conftest conftest$ac_cv_exeext
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3429 $as_echo "$ac_cv_exeext" >&6; }
3431 rm -f conftest.$ac_ext
3432 EXEEXT=$ac_cv_exeext
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h. */
3440 FILE *f = fopen ("conftest.out", "w");
3441 return ferror (f) || fclose (f) != 0;
3447 ac_clean_files="$ac_clean_files conftest.out"
3448 # Check that the compiler produces executables we can run. If not, either
3449 # the compiler is broken, or we cross compile.
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3451 $as_echo_n "checking whether we are cross compiling... " >&6; }
3452 if test "$cross_compiling" != yes; then
3453 { { ac_try="$ac_link"
3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456 *) ac_try_echo=$ac_try;;
3458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3459 $as_echo "$ac_try_echo"; } >&5
3460 (eval "$ac_link") 2>&5
3462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3463 test $ac_status = 0; }
3464 if { ac_try='./conftest$ac_cv_exeext'
3465 { { case "(($ac_try" in
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3470 $as_echo "$ac_try_echo"; } >&5
3471 (eval "$ac_try") 2>&5
3473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474 test $ac_status = 0; }; }; then
3477 if test "$cross_compiling" = maybe; then
3480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3482 as_fn_error $? "cannot run C compiled programs.
3483 If you meant to cross compile, use \`--host'.
3484 See \`config.log' for more details" "$LINENO" 5; }
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3489 $as_echo "$cross_compiling" >&6; }
3491 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3492 ac_clean_files=$ac_clean_files_save
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3494 $as_echo_n "checking for suffix of object files... " >&6; }
3495 if ${ac_cv_objext+:} false; then :
3496 $as_echo_n "(cached) " >&6
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3509 rm -f conftest.o conftest.obj
3510 if { { ac_try="$ac_compile"
3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513 *) ac_try_echo=$ac_try;;
3515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3516 $as_echo "$ac_try_echo"; } >&5
3517 (eval "$ac_compile") 2>&5
3519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3520 test $ac_status = 0; }; then :
3521 for ac_file in conftest.o conftest.obj conftest.*; do
3522 test -f "$ac_file" || continue;
3524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3525 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3530 $as_echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3535 as_fn_error $? "cannot compute suffix of object files: cannot compile
3536 See \`config.log' for more details" "$LINENO" 5; }
3538 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3541 $as_echo "$ac_cv_objext" >&6; }
3542 OBJEXT=$ac_cv_objext
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3545 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3546 if ${ac_cv_c_compiler_gnu+:} false; then :
3547 $as_echo_n "(cached) " >&6
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3563 if ac_fn_c_try_compile "$LINENO"; then :
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3573 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3574 if test $ac_compiler_gnu = yes; then
3579 ac_test_CFLAGS=${CFLAGS+set}
3580 ac_save_CFLAGS=$CFLAGS
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3582 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3583 if ${ac_cv_prog_cc_g+:} false; then :
3584 $as_echo_n "(cached) " >&6
3586 ac_save_c_werror_flag=$ac_c_werror_flag
3587 ac_c_werror_flag=yes
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h. */
3601 if ac_fn_c_try_compile "$LINENO"; then :
3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h. */
3616 if ac_fn_c_try_compile "$LINENO"; then :
3619 ac_c_werror_flag=$ac_save_c_werror_flag
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3632 if ac_fn_c_try_compile "$LINENO"; then :
3635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640 ac_c_werror_flag=$ac_save_c_werror_flag
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3643 $as_echo "$ac_cv_prog_cc_g" >&6; }
3644 if test "$ac_test_CFLAGS" = set; then
3645 CFLAGS=$ac_save_CFLAGS
3646 elif test $ac_cv_prog_cc_g = yes; then
3647 if test "$GCC" = yes; then
3653 if test "$GCC" = yes; then
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3660 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3661 if ${ac_cv_prog_cc_c89+:} false; then :
3662 $as_echo_n "(cached) " >&6
3664 ac_cv_prog_cc_c89=no
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3670 #include <sys/types.h>
3671 #include <sys/stat.h>
3672 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3673 struct buf { int x; };
3674 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3675 static char *e (p, i)
3681 static char *f (char * (*g) (char **, int), char **p, ...)
3686 s = g (p, va_arg (v,int));
3691 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3692 function prototypes and stuff, but not '\xHH' hex character constants.
3693 These don't provoke an error unfortunately, instead are silently treated
3694 as 'x'. The following induces an error, until -std is added to get
3695 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3696 array size at least. It's necessary to write '\x00'==0 to get something
3697 that's true only with -std. */
3698 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3700 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3701 inside strings and character constants. */
3703 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3705 int test (int i, double x);
3706 struct s1 {int (*f) (int a);};
3707 struct s2 {int (*f) (double a);};
3708 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3714 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3719 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3720 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3722 CC="$ac_save_CC $ac_arg"
3723 if ac_fn_c_try_compile "$LINENO"; then :
3724 ac_cv_prog_cc_c89=$ac_arg
3726 rm -f core conftest.err conftest.$ac_objext
3727 test "x$ac_cv_prog_cc_c89" != "xno" && break
3729 rm -f conftest.$ac_ext
3734 case "x$ac_cv_prog_cc_c89" in
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3737 $as_echo "none needed" >&6; } ;;
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3740 $as_echo "unsupported" >&6; } ;;
3742 CC="$CC $ac_cv_prog_cc_c89"
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3744 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3746 if test "x$ac_cv_prog_cc_c89" != xno; then :
3751 ac_cpp='$CPP $CPPFLAGS'
3752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756 depcc="$CC" am_compiler_list=
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3759 $as_echo_n "checking dependency style of $depcc... " >&6; }
3760 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3761 $as_echo_n "(cached) " >&6
3763 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3764 # We make a subdir and do the tests there. Otherwise we can end up
3765 # making bogus files that we don't know about and never remove. For
3766 # instance it was reported that on HP-UX the gcc test will end up
3767 # making a dummy file named `D' -- because `-MD' means `put the output
3770 # Copy depcomp to subdir because otherwise we won't find it if we're
3771 # using a relative directory.
3772 cp "$am_depcomp" conftest.dir
3774 # We will build objects and dependencies in a subdirectory because
3775 # it helps to detect inapplicable dependency modes. For instance
3776 # both Tru64's cc and ICC support -MD to output dependencies as a
3777 # side effect of compilation, but ICC will put the dependencies in
3778 # the current directory while Tru64 will put them in the object
3782 am_cv_CC_dependencies_compiler_type=none
3783 if test "$am_compiler_list" = ""; then
3784 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3787 case " $depcc " in #(
3788 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3791 for depmode in $am_compiler_list; do
3792 # Setup a source with many dependencies, because some compilers
3793 # like to wrap large dependency lists on column 80 (with \), and
3794 # we should not choose a depcomp mode which is confused by this.
3796 # We need to recreate these files for each test, as the compiler may
3797 # overwrite some of them when testing with obscure command lines.
3798 # This happens at least with the AIX C compiler.
3800 for i in 1 2 3 4 5 6; do
3801 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3802 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3803 # Solaris 8's {/usr,}/bin/sh.
3804 touch sub/conftst$i.h
3806 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3808 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3809 # mode. It turns out that the SunPro C++ compiler does not properly
3810 # handle `-M -o', and we need to detect this. Also, some Intel
3811 # versions had trouble with output in subdirs
3812 am__obj=sub/conftest.${OBJEXT-o}
3813 am__minus_obj="-o $am__obj"
3816 # This depmode causes a compiler race in universal mode.
3817 test "$am__universal" = false || continue
3820 # after this tag, mechanisms are not by side-effect, so they'll
3821 # only be used when explicitly requested
3822 if test "x$enable_dependency_tracking" = xyes; then
3828 msvisualcpp | msvcmsys)
3829 # This compiler won't grok `-c -o', but also, the minuso test has
3830 # not run yet. These depmodes are late enough in the game, and
3831 # so weak that their functioning should not be impacted.
3832 am__obj=conftest.${OBJEXT-o}
3837 if depmode=$depmode \
3838 source=sub/conftest.c object=$am__obj \
3839 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3840 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3841 >/dev/null 2>conftest.err &&
3842 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3843 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3844 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3845 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3846 # icc doesn't choke on unknown options, it will just issue warnings
3847 # or remarks (even with -Werror). So we grep stderr for any message
3848 # that says an option was ignored or not supported.
3849 # When given -MP, icc 7.0 and 7.1 complain thusly:
3850 # icc: Command line warning: ignoring option '-M'; no argument required
3851 # The diagnosis changed in icc 8.0:
3852 # icc: Command line remark: option '-MP' not supported
3853 if (grep 'ignoring option' conftest.err ||
3854 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3855 am_cv_CC_dependencies_compiler_type=$depmode
3864 am_cv_CC_dependencies_compiler_type=none
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3869 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3870 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3873 test "x$enable_dependency_tracking" != xno \
3874 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3876 am__fastdepCC_FALSE='#'
3878 am__fastdepCC_TRUE='#'
3879 am__fastdepCC_FALSE=
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3884 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3885 if ${ac_cv_path_SED+:} false; then :
3886 $as_echo_n "(cached) " >&6
3888 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3889 for ac_i in 1 2 3 4 5 6 7; do
3890 ac_script="$ac_script$as_nl$ac_script"
3892 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3893 { ac_script=; unset ac_script;}
3894 if test -z "$SED"; then
3895 ac_path_SED_found=false
3896 # Loop through the user's path and test for each of PROGNAME-LIST
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 test -z "$as_dir" && as_dir=.
3902 for ac_prog in sed gsed; do
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3905 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3906 # Check for GNU ac_path_SED and select it if it is found.
3907 # Check for GNU $ac_path_SED
3908 case `"$ac_path_SED" --version 2>&1` in
3910 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3913 $as_echo_n 0123456789 >"conftest.in"
3916 cat "conftest.in" "conftest.in" >"conftest.tmp"
3917 mv "conftest.tmp" "conftest.in"
3918 cp "conftest.in" "conftest.nl"
3919 $as_echo '' >> "conftest.nl"
3920 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3921 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3922 as_fn_arith $ac_count + 1 && ac_count=$as_val
3923 if test $ac_count -gt ${ac_path_SED_max-0}; then
3924 # Best one so far, save it but keep looking for a better one
3925 ac_cv_path_SED="$ac_path_SED"
3926 ac_path_SED_max=$ac_count
3928 # 10*(2^10) chars as input seems more than enough
3929 test $ac_count -gt 10 && break
3931 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3934 $ac_path_SED_found && break 3
3939 if test -z "$ac_cv_path_SED"; then
3940 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3948 $as_echo "$ac_cv_path_SED" >&6; }
3949 SED="$ac_cv_path_SED"
3952 test -z "$SED" && SED=sed
3953 Xsed="$SED -e 1s/^X//"
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3966 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3967 if ${ac_cv_path_GREP+:} false; then :
3968 $as_echo_n "(cached) " >&6
3970 if test -z "$GREP"; then
3971 ac_path_GREP_found=false
3972 # Loop through the user's path and test for each of PROGNAME-LIST
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3977 test -z "$as_dir" && as_dir=.
3978 for ac_prog in grep ggrep; do
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3981 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3982 # Check for GNU ac_path_GREP and select it if it is found.
3983 # Check for GNU $ac_path_GREP
3984 case `"$ac_path_GREP" --version 2>&1` in
3986 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3989 $as_echo_n 0123456789 >"conftest.in"
3992 cat "conftest.in" "conftest.in" >"conftest.tmp"
3993 mv "conftest.tmp" "conftest.in"
3994 cp "conftest.in" "conftest.nl"
3995 $as_echo 'GREP' >> "conftest.nl"
3996 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3997 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3998 as_fn_arith $ac_count + 1 && ac_count=$as_val
3999 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4000 # Best one so far, save it but keep looking for a better one
4001 ac_cv_path_GREP="$ac_path_GREP"
4002 ac_path_GREP_max=$ac_count
4004 # 10*(2^10) chars as input seems more than enough
4005 test $ac_count -gt 10 && break
4007 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4010 $ac_path_GREP_found && break 3
4015 if test -z "$ac_cv_path_GREP"; then
4016 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4019 ac_cv_path_GREP=$GREP
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4024 $as_echo "$ac_cv_path_GREP" >&6; }
4025 GREP="$ac_cv_path_GREP"
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4029 $as_echo_n "checking for egrep... " >&6; }
4030 if ${ac_cv_path_EGREP+:} false; then :
4031 $as_echo_n "(cached) " >&6
4033 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4034 then ac_cv_path_EGREP="$GREP -E"
4036 if test -z "$EGREP"; then
4037 ac_path_EGREP_found=false
4038 # Loop through the user's path and test for each of PROGNAME-LIST
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4043 test -z "$as_dir" && as_dir=.
4044 for ac_prog in egrep; do
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4047 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4048 # Check for GNU ac_path_EGREP and select it if it is found.
4049 # Check for GNU $ac_path_EGREP
4050 case `"$ac_path_EGREP" --version 2>&1` in
4052 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4055 $as_echo_n 0123456789 >"conftest.in"
4058 cat "conftest.in" "conftest.in" >"conftest.tmp"
4059 mv "conftest.tmp" "conftest.in"
4060 cp "conftest.in" "conftest.nl"
4061 $as_echo 'EGREP' >> "conftest.nl"
4062 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4063 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4064 as_fn_arith $ac_count + 1 && ac_count=$as_val
4065 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4066 # Best one so far, save it but keep looking for a better one
4067 ac_cv_path_EGREP="$ac_path_EGREP"
4068 ac_path_EGREP_max=$ac_count
4070 # 10*(2^10) chars as input seems more than enough
4071 test $ac_count -gt 10 && break
4073 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4076 $ac_path_EGREP_found && break 3
4081 if test -z "$ac_cv_path_EGREP"; then
4082 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4085 ac_cv_path_EGREP=$EGREP
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4091 $as_echo "$ac_cv_path_EGREP" >&6; }
4092 EGREP="$ac_cv_path_EGREP"
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4096 $as_echo_n "checking for fgrep... " >&6; }
4097 if ${ac_cv_path_FGREP+:} false; then :
4098 $as_echo_n "(cached) " >&6
4100 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4101 then ac_cv_path_FGREP="$GREP -F"
4103 if test -z "$FGREP"; then
4104 ac_path_FGREP_found=false
4105 # Loop through the user's path and test for each of PROGNAME-LIST
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4110 test -z "$as_dir" && as_dir=.
4111 for ac_prog in fgrep; do
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4114 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4115 # Check for GNU ac_path_FGREP and select it if it is found.
4116 # Check for GNU $ac_path_FGREP
4117 case `"$ac_path_FGREP" --version 2>&1` in
4119 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4122 $as_echo_n 0123456789 >"conftest.in"
4125 cat "conftest.in" "conftest.in" >"conftest.tmp"
4126 mv "conftest.tmp" "conftest.in"
4127 cp "conftest.in" "conftest.nl"
4128 $as_echo 'FGREP' >> "conftest.nl"
4129 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4130 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4131 as_fn_arith $ac_count + 1 && ac_count=$as_val
4132 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4133 # Best one so far, save it but keep looking for a better one
4134 ac_cv_path_FGREP="$ac_path_FGREP"
4135 ac_path_FGREP_max=$ac_count
4137 # 10*(2^10) chars as input seems more than enough
4138 test $ac_count -gt 10 && break
4140 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4143 $ac_path_FGREP_found && break 3
4148 if test -z "$ac_cv_path_FGREP"; then
4149 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4152 ac_cv_path_FGREP=$FGREP
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4158 $as_echo "$ac_cv_path_FGREP" >&6; }
4159 FGREP="$ac_cv_path_FGREP"
4162 test -z "$GREP" && GREP=grep
4182 # Check whether --with-gnu-ld was given.
4183 if test "${with_gnu_ld+set}" = set; then :
4184 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4190 if test "$GCC" = yes; then
4191 # Check if gcc -print-prog-name=ld gives a path.
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4193 $as_echo_n "checking for ld used by $CC... " >&6; }
4196 # gcc leaves a trailing carriage return which upsets mingw
4197 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4199 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4202 # Accept absolute paths.
4204 re_direlt='/[^/][^/]*/\.\./'
4205 # Canonicalize the pathname of ld
4206 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4207 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4208 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4210 test -z "$LD" && LD="$ac_prog"
4213 # If it fails, then pretend we aren't using GCC.
4217 # If it is relative, then search for the first ld in PATH.
4221 elif test "$with_gnu_ld" = yes; then
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4223 $as_echo_n "checking for GNU ld... " >&6; }
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4226 $as_echo_n "checking for non-GNU ld... " >&6; }
4228 if ${lt_cv_path_LD+:} false; then :
4229 $as_echo_n "(cached) " >&6
4231 if test -z "$LD"; then
4232 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4233 for ac_dir in $PATH; do
4235 test -z "$ac_dir" && ac_dir=.
4236 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4237 lt_cv_path_LD="$ac_dir/$ac_prog"
4238 # Check to see if the program is GNU ld. I'd rather use --version,
4239 # but apparently some variants of GNU ld only accept -v.
4240 # Break only if it was the GNU/non-GNU ld that we prefer.
4241 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4242 *GNU* | *'with BFD'*)
4243 test "$with_gnu_ld" != no && break
4246 test "$with_gnu_ld" != yes && break
4253 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4258 if test -n "$LD"; then
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4260 $as_echo "$LD" >&6; }
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263 $as_echo "no" >&6; }
4265 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4267 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4268 if ${lt_cv_prog_gnu_ld+:} false; then :
4269 $as_echo_n "(cached) " >&6
4271 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4272 case `$LD -v 2>&1 </dev/null` in
4273 *GNU* | *'with BFD'*)
4274 lt_cv_prog_gnu_ld=yes
4277 lt_cv_prog_gnu_ld=no
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4282 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4283 with_gnu_ld=$lt_cv_prog_gnu_ld
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4294 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4295 if ${lt_cv_path_NM+:} false; then :
4296 $as_echo_n "(cached) " >&6
4298 if test -n "$NM"; then
4299 # Let the user override the test.
4302 lt_nm_to_check="${ac_tool_prefix}nm"
4303 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4304 lt_nm_to_check="$lt_nm_to_check nm"
4306 for lt_tmp_nm in $lt_nm_to_check; do
4307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4308 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4310 test -z "$ac_dir" && ac_dir=.
4311 tmp_nm="$ac_dir/$lt_tmp_nm"
4312 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4313 # Check to see if the nm accepts a BSD-compat flag.
4314 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4315 # nm: unknown option "B" ignored
4316 # Tru64's nm complains that /dev/null is an invalid object file
4317 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4318 */dev/null* | *'Invalid file or object type'*)
4319 lt_cv_path_NM="$tmp_nm -B"
4323 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4325 lt_cv_path_NM="$tmp_nm -p"
4329 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4330 continue # so that we can try to find one that supports BSD flags
4339 : ${lt_cv_path_NM=no}
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4343 $as_echo "$lt_cv_path_NM" >&6; }
4344 if test "$lt_cv_path_NM" != "no"; then
4347 # Didn't find any BSD compatible name lister, look for dumpbin.
4348 if test -n "$DUMPBIN"; then :
4349 # Let the user override the test.
4351 if test -n "$ac_tool_prefix"; then
4352 for ac_prog in dumpbin "link -dump"
4354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4357 $as_echo_n "checking for $ac_word... " >&6; }
4358 if ${ac_cv_prog_DUMPBIN+:} false; then :
4359 $as_echo_n "(cached) " >&6
4361 if test -n "$DUMPBIN"; then
4362 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4371 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 DUMPBIN=$ac_cv_prog_DUMPBIN
4382 if test -n "$DUMPBIN"; then
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4384 $as_echo "$DUMPBIN" >&6; }
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 $as_echo "no" >&6; }
4391 test -n "$DUMPBIN" && break
4394 if test -z "$DUMPBIN"; then
4395 ac_ct_DUMPBIN=$DUMPBIN
4396 for ac_prog in dumpbin "link -dump"
4398 # Extract the first word of "$ac_prog", so it can be a program name with args.
4399 set dummy $ac_prog; ac_word=$2
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401 $as_echo_n "checking for $ac_word... " >&6; }
4402 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4403 $as_echo_n "(cached) " >&6
4405 if test -n "$ac_ct_DUMPBIN"; then
4406 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4425 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4426 if test -n "$ac_ct_DUMPBIN"; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4428 $as_echo "$ac_ct_DUMPBIN" >&6; }
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4435 test -n "$ac_ct_DUMPBIN" && break
4438 if test "x$ac_ct_DUMPBIN" = x; then
4441 case $cross_compiling:$ac_tool_warned in
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4445 ac_tool_warned=yes ;;
4447 DUMPBIN=$ac_ct_DUMPBIN
4451 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4453 DUMPBIN="$DUMPBIN -symbols"
4461 if test "$DUMPBIN" != ":"; then
4465 test -z "$NM" && NM=nm
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4473 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4474 if ${lt_cv_nm_interface+:} false; then :
4475 $as_echo_n "(cached) " >&6
4477 lt_cv_nm_interface="BSD nm"
4478 echo "int some_variable = 0;" > conftest.$ac_ext
4479 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4480 (eval "$ac_compile" 2>conftest.err)
4481 cat conftest.err >&5
4482 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4483 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4484 cat conftest.err >&5
4485 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4486 cat conftest.out >&5
4487 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4488 lt_cv_nm_interface="MS dumpbin"
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4493 $as_echo "$lt_cv_nm_interface" >&6; }
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4496 $as_echo_n "checking whether ln -s works... " >&6; }
4498 if test "$LN_S" = "ln -s"; then
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4500 $as_echo "yes" >&6; }
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4503 $as_echo "no, using $LN_S" >&6; }
4506 # find the maximum length of command line arguments
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4508 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4509 if ${lt_cv_sys_max_cmd_len+:} false; then :
4510 $as_echo_n "(cached) " >&6
4517 # On DJGPP, this test can blow up pretty badly due to problems in libc
4518 # (any single argument exceeding 2000 bytes causes a buffer overrun
4519 # during glob expansion). Even if it were fixed, the result of this
4520 # check would be larger than it should be.
4521 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4525 # Under GNU Hurd, this test is not required because there is
4526 # no limit to the length of command line arguments.
4527 # Libtool will interpret -1 as no limit whatsoever
4528 lt_cv_sys_max_cmd_len=-1;
4531 cygwin* | mingw* | cegcc*)
4532 # On Win9x/ME, this test blows up -- it succeeds, but takes
4533 # about 5 minutes as the teststring grows exponentially.
4534 # Worse, since 9x/ME are not pre-emptively multitasking,
4535 # you end up with a "frozen" computer, even though with patience
4536 # the test eventually succeeds (with a max line length of 256k).
4537 # Instead, let's just punt: use the minimum linelength reported by
4538 # all of the supported platforms: 8192 (on NT/2K/XP).
4539 lt_cv_sys_max_cmd_len=8192;
4543 # On MiNT this can take a long time and run out of memory.
4544 lt_cv_sys_max_cmd_len=8192;
4548 # On AmigaOS with pdksh, this test takes hours, literally.
4549 # So we just punt and use a minimum line length of 8192.
4550 lt_cv_sys_max_cmd_len=8192;
4553 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4554 # This has been around since 386BSD, at least. Likely further.
4555 if test -x /sbin/sysctl; then
4556 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4557 elif test -x /usr/sbin/sysctl; then
4558 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4560 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4562 # And add a safety zone
4563 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4564 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4568 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4569 lt_cv_sys_max_cmd_len=196608
4573 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4574 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4575 # nice to cause kernel panics so lets avoid the loop below.
4576 # First set a reasonable default.
4577 lt_cv_sys_max_cmd_len=16384
4579 if test -x /sbin/sysconfig; then
4580 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4581 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4586 lt_cv_sys_max_cmd_len=102400
4588 sysv5* | sco5v6* | sysv4.2uw2*)
4589 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4590 if test -n "$kargmax"; then
4591 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4593 lt_cv_sys_max_cmd_len=32768
4597 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4598 if test -n "$lt_cv_sys_max_cmd_len"; then
4599 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4600 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4602 # Make teststring a little bigger before we do anything with it.
4603 # a 1K string should be a reasonable start.
4604 for i in 1 2 3 4 5 6 7 8 ; do
4605 teststring=$teststring$teststring
4607 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4608 # If test is not a shell built-in, we'll probably end up computing a
4609 # maximum length that is only half of the actual maximum length, but
4611 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4612 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4613 test $i != 17 # 1/2 MB should be enough
4616 teststring=$teststring$teststring
4618 # Only check the string length outside the loop.
4619 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4621 # Add a significant safety factor because C++ compilers can tack on
4622 # massive amounts of additional arguments before passing them to the
4623 # linker. It appears as though 1/2 is a usable value.
4624 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4631 if test -n $lt_cv_sys_max_cmd_len ; then
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4633 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4636 $as_echo "none" >&6; }
4638 max_cmd_len=$lt_cv_sys_max_cmd_len
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4650 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4651 # Try some XSI features
4654 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4656 && eval 'test $(( 1 + 1 )) -eq 2 \
4657 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4660 $as_echo "$xsi_shell" >&6; }
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4664 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4666 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4668 && lt_shell_append=yes
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4670 $as_echo "$lt_shell_append" >&6; }
4673 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4683 # test EBCDIC or ASCII
4684 case `echo X|tr X '\101'` in
4685 A) # ASCII based system
4686 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4687 lt_SP2NL='tr \040 \012'
4688 lt_NL2SP='tr \015\012 \040\040'
4690 *) # EBCDIC based system
4691 lt_SP2NL='tr \100 \n'
4692 lt_NL2SP='tr \r\n \100\100'
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4705 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4706 if ${lt_cv_to_host_file_cmd+:} false; then :
4707 $as_echo_n "(cached) " >&6
4712 *-*-mingw* ) # actually msys
4713 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4716 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4718 * ) # otherwise, assume *nix
4719 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4725 *-*-mingw* ) # actually msys
4726 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4729 lt_cv_to_host_file_cmd=func_convert_file_noop
4731 * ) # otherwise, assume *nix
4732 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4736 * ) # unhandled hosts (and "normal" native builds)
4737 lt_cv_to_host_file_cmd=func_convert_file_noop
4743 to_host_file_cmd=$lt_cv_to_host_file_cmd
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4745 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4752 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4753 if ${lt_cv_to_tool_file_cmd+:} false; then :
4754 $as_echo_n "(cached) " >&6
4756 #assume ordinary cross tools, or native build.
4757 lt_cv_to_tool_file_cmd=func_convert_file_noop
4761 *-*-mingw* ) # actually msys
4762 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4770 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4772 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4779 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4780 if ${lt_cv_ld_reload_flag+:} false; then :
4781 $as_echo_n "(cached) " >&6
4783 lt_cv_ld_reload_flag='-r'
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4786 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4787 reload_flag=$lt_cv_ld_reload_flag
4788 case $reload_flag in
4790 *) reload_flag=" $reload_flag" ;;
4792 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4794 cygwin* | mingw* | pw32* | cegcc*)
4795 if test "$GCC" != yes; then
4800 if test "$GCC" = yes; then
4801 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4803 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4816 if test -n "$ac_tool_prefix"; then
4817 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4818 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4820 $as_echo_n "checking for $ac_word... " >&6; }
4821 if ${ac_cv_prog_OBJDUMP+:} false; then :
4822 $as_echo_n "(cached) " >&6
4824 if test -n "$OBJDUMP"; then
4825 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 test -z "$as_dir" && as_dir=.
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4834 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 OBJDUMP=$ac_cv_prog_OBJDUMP
4845 if test -n "$OBJDUMP"; then
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4847 $as_echo "$OBJDUMP" >&6; }
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4850 $as_echo "no" >&6; }
4855 if test -z "$ac_cv_prog_OBJDUMP"; then
4856 ac_ct_OBJDUMP=$OBJDUMP
4857 # Extract the first word of "objdump", so it can be a program name with args.
4858 set dummy objdump; ac_word=$2
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4860 $as_echo_n "checking for $ac_word... " >&6; }
4861 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4862 $as_echo_n "(cached) " >&6
4864 if test -n "$ac_ct_OBJDUMP"; then
4865 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4874 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4885 if test -n "$ac_ct_OBJDUMP"; then
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4887 $as_echo "$ac_ct_OBJDUMP" >&6; }
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890 $as_echo "no" >&6; }
4893 if test "x$ac_ct_OBJDUMP" = x; then
4896 case $cross_compiling:$ac_tool_warned in
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4900 ac_tool_warned=yes ;;
4902 OBJDUMP=$ac_ct_OBJDUMP
4905 OBJDUMP="$ac_cv_prog_OBJDUMP"
4908 test -z "$OBJDUMP" && OBJDUMP=objdump
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4919 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4920 if ${lt_cv_deplibs_check_method+:} false; then :
4921 $as_echo_n "(cached) " >&6
4923 lt_cv_file_magic_cmd='$MAGIC_CMD'
4924 lt_cv_file_magic_test_file=
4925 lt_cv_deplibs_check_method='unknown'
4926 # Need to set the preceding variable on all platforms that support
4927 # interlibrary dependencies.
4928 # 'none' -- dependencies not supported.
4929 # `unknown' -- same as none, but documents that we really don't know.
4930 # 'pass_all' -- all dependencies passed with no checks.
4931 # 'test_compile' -- check by making test program.
4932 # 'file_magic [[regex]]' -- check by looking for files in library path
4933 # which responds to the $file_magic_cmd with a given extended regex.
4934 # If you have `file' or equivalent on your system and you're not sure
4935 # whether `pass_all' will *always* work, you probably want this one.
4939 lt_cv_deplibs_check_method=pass_all
4943 lt_cv_deplibs_check_method=pass_all
4947 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4948 lt_cv_file_magic_cmd='/usr/bin/file -L'
4949 lt_cv_file_magic_test_file=/shlib/libc.so
4953 # func_win32_libid is a shell function defined in ltmain.sh
4954 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4955 lt_cv_file_magic_cmd='func_win32_libid'
4959 # Base MSYS/MinGW do not provide the 'file' command needed by
4960 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4961 # unless we find 'file', for example because we are cross-compiling.
4962 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4963 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4964 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4965 lt_cv_file_magic_cmd='func_win32_libid'
4967 # Keep this pattern in sync with the one in func_win32_libid.
4968 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4969 lt_cv_file_magic_cmd='$OBJDUMP -f'
4974 # use the weaker test based on 'objdump'. See mingw*.
4975 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4976 lt_cv_file_magic_cmd='$OBJDUMP -f'
4979 darwin* | rhapsody*)
4980 lt_cv_deplibs_check_method=pass_all
4983 freebsd* | dragonfly*)
4984 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4987 # Not sure whether the presence of OpenBSD here was a mistake.
4988 # Let's accept both of them until this is cleared up.
4989 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4990 lt_cv_file_magic_cmd=/usr/bin/file
4991 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4995 lt_cv_deplibs_check_method=pass_all
5000 lt_cv_deplibs_check_method=pass_all
5004 lt_cv_deplibs_check_method=pass_all
5007 hpux10.20* | hpux11*)
5008 lt_cv_file_magic_cmd=/usr/bin/file
5011 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5012 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5015 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]'
5016 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5019 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5020 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5026 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5030 irix5* | irix6* | nonstopux*)
5032 *-32|*"-32 ") libmagic=32-bit;;
5033 *-n32|*"-n32 ") libmagic=N32;;
5034 *-64|*"-64 ") libmagic=64-bit;;
5035 *) libmagic=never-match;;
5037 lt_cv_deplibs_check_method=pass_all
5040 # This must be Linux ELF.
5041 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5042 lt_cv_deplibs_check_method=pass_all
5046 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5047 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5049 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5054 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5055 lt_cv_file_magic_cmd=/usr/bin/file
5056 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5060 lt_cv_deplibs_check_method=pass_all
5064 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5067 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5071 osf3* | osf4* | osf5*)
5072 lt_cv_deplibs_check_method=pass_all
5076 lt_cv_deplibs_check_method=pass_all
5080 lt_cv_deplibs_check_method=pass_all
5083 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5084 lt_cv_deplibs_check_method=pass_all
5088 case $host_vendor in
5090 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]'
5091 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5094 lt_cv_deplibs_check_method=pass_all
5097 lt_cv_file_magic_cmd='/bin/file'
5098 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5101 lt_cv_file_magic_cmd='/bin/file'
5102 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5103 lt_cv_file_magic_test_file=/lib/libc.so
5106 lt_cv_deplibs_check_method=pass_all
5109 lt_cv_deplibs_check_method=pass_all
5115 lt_cv_deplibs_check_method=pass_all
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5121 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5125 if test "$build" = "$host"; then
5128 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5131 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5137 file_magic_cmd=$lt_cv_file_magic_cmd
5138 deplibs_check_method=$lt_cv_deplibs_check_method
5139 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5162 if test -n "$ac_tool_prefix"; then
5163 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5164 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if ${ac_cv_prog_DLLTOOL+:} false; then :
5168 $as_echo_n "(cached) " >&6
5170 if test -n "$DLLTOOL"; then
5171 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5180 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 DLLTOOL=$ac_cv_prog_DLLTOOL
5191 if test -n "$DLLTOOL"; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5193 $as_echo "$DLLTOOL" >&6; }
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 $as_echo "no" >&6; }
5201 if test -z "$ac_cv_prog_DLLTOOL"; then
5202 ac_ct_DLLTOOL=$DLLTOOL
5203 # Extract the first word of "dlltool", so it can be a program name with args.
5204 set dummy dlltool; ac_word=$2
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5206 $as_echo_n "checking for $ac_word... " >&6; }
5207 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5208 $as_echo_n "(cached) " >&6
5210 if test -n "$ac_ct_DLLTOOL"; then
5211 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5231 if test -n "$ac_ct_DLLTOOL"; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5233 $as_echo "$ac_ct_DLLTOOL" >&6; }
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5239 if test "x$ac_ct_DLLTOOL" = x; then
5242 case $cross_compiling:$ac_tool_warned in
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5246 ac_tool_warned=yes ;;
5248 DLLTOOL=$ac_ct_DLLTOOL
5251 DLLTOOL="$ac_cv_prog_DLLTOOL"
5254 test -z "$DLLTOOL" && DLLTOOL=dlltool
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5266 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5267 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5268 $as_echo_n "(cached) " >&6
5270 lt_cv_sharedlib_from_linklib_cmd='unknown'
5273 cygwin* | mingw* | pw32* | cegcc*)
5274 # two different shell functions defined in ltmain.sh
5275 # decide which to use based on capabilities of $DLLTOOL
5276 case `$DLLTOOL --help 2>&1` in
5277 *--identify-strict*)
5278 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5281 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5286 # fallback: assume linklib IS sharedlib
5287 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5293 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5294 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5295 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5304 if test -n "$ac_tool_prefix"; then
5307 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5308 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5310 $as_echo_n "checking for $ac_word... " >&6; }
5311 if ${ac_cv_prog_AR+:} false; then :
5312 $as_echo_n "(cached) " >&6
5314 if test -n "$AR"; then
5315 ac_cv_prog_AR="$AR" # Let the user override the test.
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 test -z "$as_dir" && as_dir=.
5322 for ac_exec_ext in '' $ac_executable_extensions; do
5323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5324 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 if test -n "$AR"; then
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5337 $as_echo "$AR" >&6; }
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5340 $as_echo "no" >&6; }
5344 test -n "$AR" && break
5347 if test -z "$AR"; then
5351 # Extract the first word of "$ac_prog", so it can be a program name with args.
5352 set dummy $ac_prog; ac_word=$2
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5354 $as_echo_n "checking for $ac_word... " >&6; }
5355 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5356 $as_echo_n "(cached) " >&6
5358 if test -n "$ac_ct_AR"; then
5359 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5368 ac_cv_prog_ac_ct_AR="$ac_prog"
5369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5378 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5379 if test -n "$ac_ct_AR"; then
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5381 $as_echo "$ac_ct_AR" >&6; }
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 $as_echo "no" >&6; }
5388 test -n "$ac_ct_AR" && break
5391 if test "x$ac_ct_AR" = x; then
5394 case $cross_compiling:$ac_tool_warned in
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5398 ac_tool_warned=yes ;;
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5418 $as_echo_n "checking for archiver @FILE support... " >&6; }
5419 if ${lt_cv_ar_at_file+:} false; then :
5420 $as_echo_n "(cached) " >&6
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5434 if ac_fn_c_try_compile "$LINENO"; then :
5435 echo conftest.$ac_objext > conftest.lst
5436 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5438 (eval $lt_ar_try) 2>&5
5440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5441 test $ac_status = 0; }
5442 if test "$ac_status" -eq 0; then
5443 # Ensure the archiver fails upon bogus file names.
5444 rm -f conftest.$ac_objext libconftest.a
5445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5446 (eval $lt_ar_try) 2>&5
5448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5449 test $ac_status = 0; }
5450 if test "$ac_status" -ne 0; then
5454 rm -f conftest.* libconftest.a
5457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5461 $as_echo "$lt_cv_ar_at_file" >&6; }
5463 if test "x$lt_cv_ar_at_file" = xno; then
5466 archiver_list_spec=$lt_cv_ar_at_file
5475 if test -n "$ac_tool_prefix"; then
5476 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5477 set dummy ${ac_tool_prefix}strip; ac_word=$2
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if ${ac_cv_prog_STRIP+:} false; then :
5481 $as_echo_n "(cached) " >&6
5483 if test -n "$STRIP"; then
5484 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490 test -z "$as_dir" && as_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5493 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 STRIP=$ac_cv_prog_STRIP
5504 if test -n "$STRIP"; then
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5506 $as_echo "$STRIP" >&6; }
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509 $as_echo "no" >&6; }
5514 if test -z "$ac_cv_prog_STRIP"; then
5516 # Extract the first word of "strip", so it can be a program name with args.
5517 set dummy strip; ac_word=$2
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5519 $as_echo_n "checking for $ac_word... " >&6; }
5520 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5521 $as_echo_n "(cached) " >&6
5523 if test -n "$ac_ct_STRIP"; then
5524 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 test -z "$as_dir" && as_dir=.
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5533 ac_cv_prog_ac_ct_STRIP="strip"
5534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5543 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5544 if test -n "$ac_ct_STRIP"; then
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5546 $as_echo "$ac_ct_STRIP" >&6; }
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549 $as_echo "no" >&6; }
5552 if test "x$ac_ct_STRIP" = x; then
5555 case $cross_compiling:$ac_tool_warned in
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5559 ac_tool_warned=yes ;;
5564 STRIP="$ac_cv_prog_STRIP"
5567 test -z "$STRIP" && STRIP=:
5574 if test -n "$ac_tool_prefix"; then
5575 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5576 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578 $as_echo_n "checking for $ac_word... " >&6; }
5579 if ${ac_cv_prog_RANLIB+:} false; then :
5580 $as_echo_n "(cached) " >&6
5582 if test -n "$RANLIB"; then
5583 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5592 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 RANLIB=$ac_cv_prog_RANLIB
5603 if test -n "$RANLIB"; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5605 $as_echo "$RANLIB" >&6; }
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5613 if test -z "$ac_cv_prog_RANLIB"; then
5614 ac_ct_RANLIB=$RANLIB
5615 # Extract the first word of "ranlib", so it can be a program name with args.
5616 set dummy ranlib; ac_word=$2
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618 $as_echo_n "checking for $ac_word... " >&6; }
5619 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5620 $as_echo_n "(cached) " >&6
5622 if test -n "$ac_ct_RANLIB"; then
5623 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 test -z "$as_dir" && as_dir=.
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5632 ac_cv_prog_ac_ct_RANLIB="ranlib"
5633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5643 if test -n "$ac_ct_RANLIB"; then
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5645 $as_echo "$ac_ct_RANLIB" >&6; }
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5651 if test "x$ac_ct_RANLIB" = x; then
5654 case $cross_compiling:$ac_tool_warned in
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5658 ac_tool_warned=yes ;;
5660 RANLIB=$ac_ct_RANLIB
5663 RANLIB="$ac_cv_prog_RANLIB"
5666 test -z "$RANLIB" && RANLIB=:
5673 # Determine commands to create old-style static archives.
5674 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5675 old_postinstall_cmds='chmod 644 $oldlib'
5676 old_postuninstall_cmds=
5678 if test -n "$RANLIB"; then
5681 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5684 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5687 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5692 lock_old_archive_extraction=yes ;;
5694 lock_old_archive_extraction=no ;;
5735 # If no C compiler was specified, use CC.
5738 # If no C compiler flags were specified, use CFLAGS.
5739 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5741 # Allow CC to be a program name with arguments.
5745 # Check for command to grab the raw symbol name followed by C symbol from nm.
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5747 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5748 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5749 $as_echo_n "(cached) " >&6
5752 # These are sane defaults that work on at least a few old systems.
5753 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5755 # Character class describing NM global symbol codes.
5756 symcode='[BCDEGRST]'
5758 # Regexp to match symbols that can be accessed directly from C.
5759 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5761 # Define system-specific variables.
5766 cygwin* | mingw* | pw32* | cegcc*)
5767 symcode='[ABCDGISTW]'
5770 if test "$host_cpu" = ia64; then
5771 symcode='[ABCDEGRST]'
5775 symcode='[BCDEGRST]'
5778 symcode='[BCDEGQRST]'
5789 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5797 # If we're using GNU nm, then use its standard symbol codes.
5798 case `$NM -V 2>&1` in
5799 *GNU* | *'with BFD'*)
5800 symcode='[ABCDGIRSTW]' ;;
5803 # Transform an extracted symbol line into a proper C declaration.
5804 # Some systems (esp. on ia64) link data and code symbols differently,
5805 # so use this general approach.
5806 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5808 # Transform an extracted symbol line into symbol name and symbol address
5809 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5810 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'"
5812 # Handle CRLF in mingw tool chain
5816 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5820 # Try without a prefix underscore, then with it.
5821 for ac_symprfx in "" "_"; do
5823 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5824 symxfrm="\\1 $ac_symprfx\\2 \\2"
5826 # Write the raw and C identifiers.
5827 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5828 # Fake it for dumpbin and say T for any non-static function
5829 # and D for any global variable.
5830 # Also find C++ and __fastcall symbols from MSVC++,
5831 # which start with @ or ?.
5832 lt_cv_sys_global_symbol_pipe="$AWK '"\
5833 " {last_section=section; section=\$ 3};"\
5834 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5835 " \$ 0!~/External *\|/{next};"\
5836 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5837 " {if(hide[section]) next};"\
5838 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5839 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5840 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5841 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5842 " ' prfx=^$ac_symprfx"
5844 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5846 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5848 # Check to see that the pipe works correctly.
5852 cat > conftest.$ac_ext <<_LT_EOF
5857 void nm_test_func(void);
5858 void nm_test_func(void){}
5862 int main(){nm_test_var='a';nm_test_func();return(0);}
5865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5866 (eval $ac_compile) 2>&5
5868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5869 test $ac_status = 0; }; then
5870 # Now try to grab the symbols.
5872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5873 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5876 test $ac_status = 0; } && test -s "$nlist"; then
5877 # Try sorting and uniquifying the output.
5878 if sort "$nlist" | uniq > "$nlist"T; then
5879 mv -f "$nlist"T "$nlist"
5884 # Make sure that we snagged all the symbols we need.
5885 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5886 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5887 cat <<_LT_EOF > conftest.$ac_ext
5888 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5889 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5890 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5891 relocations are performed -- see ld's documentation on pseudo-relocs. */
5892 # define LT_DLSYM_CONST
5893 #elif defined(__osf__)
5894 /* This system does not cope well with relocations in const data. */
5895 # define LT_DLSYM_CONST
5897 # define LT_DLSYM_CONST const
5905 # Now generate the symbol file.
5906 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5908 cat <<_LT_EOF >> conftest.$ac_ext
5910 /* The mapping between symbol names and symbols. */
5911 LT_DLSYM_CONST struct {
5915 lt__PROGRAM__LTX_preloaded_symbols[] =
5917 { "@PROGRAM@", (void *) 0 },
5919 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5920 cat <<\_LT_EOF >> conftest.$ac_ext
5924 /* This works around a problem in FreeBSD linker */
5925 #ifdef FREEBSD_WORKAROUND
5926 static const void *lt_preloaded_setup() {
5927 return lt__PROGRAM__LTX_preloaded_symbols;
5935 # Now try linking the two files.
5936 mv conftest.$ac_objext conftstm.$ac_objext
5937 lt_globsym_save_LIBS=$LIBS
5938 lt_globsym_save_CFLAGS=$CFLAGS
5939 LIBS="conftstm.$ac_objext"
5940 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5942 (eval $ac_link) 2>&5
5944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5945 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5948 LIBS=$lt_globsym_save_LIBS
5949 CFLAGS=$lt_globsym_save_CFLAGS
5951 echo "cannot find nm_test_func in $nlist" >&5
5954 echo "cannot find nm_test_var in $nlist" >&5
5957 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5960 echo "$progname: failed program was:" >&5
5961 cat conftest.$ac_ext >&5
5963 rm -rf conftest* conftst*
5965 # Do not use the global_symbol_pipe unless it works.
5966 if test "$pipe_works" = yes; then
5969 lt_cv_sys_global_symbol_pipe=
5975 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5976 lt_cv_sys_global_symbol_to_cdecl=
5978 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5980 $as_echo "failed" >&6; }
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5983 $as_echo "ok" >&6; }
5986 # Response file support.
5987 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5988 nm_file_list_spec='@'
5989 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5990 nm_file_list_spec='@'
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6020 $as_echo_n "checking for sysroot... " >&6; }
6022 # Check whether --with-sysroot was given.
6023 if test "${with_sysroot+set}" = set; then :
6024 withval=$with_sysroot;
6031 case ${with_sysroot} in #(
6033 if test "$GCC" = yes; then
6034 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6038 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6044 $as_echo "${with_sysroot}" >&6; }
6045 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6050 $as_echo "${lt_sysroot:-no}" >&6; }
6056 # Check whether --enable-libtool-lock was given.
6057 if test "${enable_libtool_lock+set}" = set; then :
6058 enableval=$enable_libtool_lock;
6061 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6063 # Some flags need to be propagated to the compiler or linker for good
6067 # Find out which ABI we are using.
6068 echo 'int i;' > conftest.$ac_ext
6069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6070 (eval $ac_compile) 2>&5
6072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6073 test $ac_status = 0; }; then
6074 case `/usr/bin/file conftest.$ac_objext` in
6086 # Find out which ABI we are using.
6087 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6088 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6089 (eval $ac_compile) 2>&5
6091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6092 test $ac_status = 0; }; then
6093 if test "$lt_cv_prog_gnu_ld" = yes; then
6094 case `/usr/bin/file conftest.$ac_objext` in
6096 LD="${LD-ld} -melf32bsmip"
6099 LD="${LD-ld} -melf32bmipn32"
6102 LD="${LD-ld} -melf64bmip"
6106 case `/usr/bin/file conftest.$ac_objext` in
6122 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6123 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6124 # Find out which ABI we are using.
6125 echo 'int i;' > conftest.$ac_ext
6126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6127 (eval $ac_compile) 2>&5
6129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6130 test $ac_status = 0; }; then
6131 case `/usr/bin/file conftest.o` in
6134 x86_64-*kfreebsd*-gnu)
6135 LD="${LD-ld} -m elf_i386_fbsd"
6138 LD="${LD-ld} -m elf_i386"
6140 ppc64-*linux*|powerpc64-*linux*)
6141 LD="${LD-ld} -m elf32ppclinux"
6144 LD="${LD-ld} -m elf_s390"
6147 LD="${LD-ld} -m elf32_sparc"
6153 x86_64-*kfreebsd*-gnu)
6154 LD="${LD-ld} -m elf_x86_64_fbsd"
6157 LD="${LD-ld} -m elf_x86_64"
6159 ppc*-*linux*|powerpc*-*linux*)
6160 LD="${LD-ld} -m elf64ppc"
6162 s390*-*linux*|s390*-*tpf*)
6163 LD="${LD-ld} -m elf64_s390"
6166 LD="${LD-ld} -m elf64_sparc"
6176 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6177 SAVE_CFLAGS="$CFLAGS"
6178 CFLAGS="$CFLAGS -belf"
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6180 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6181 if ${lt_cv_cc_needs_belf+:} false; then :
6182 $as_echo_n "(cached) " >&6
6185 ac_cpp='$CPP $CPPFLAGS'
6186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6201 if ac_fn_c_try_link "$LINENO"; then :
6202 lt_cv_cc_needs_belf=yes
6204 lt_cv_cc_needs_belf=no
6206 rm -f core conftest.err conftest.$ac_objext \
6207 conftest$ac_exeext conftest.$ac_ext
6209 ac_cpp='$CPP $CPPFLAGS'
6210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6216 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6217 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6218 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6219 CFLAGS="$SAVE_CFLAGS"
6223 # Find out which ABI we are using.
6224 echo 'int i;' > conftest.$ac_ext
6225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6226 (eval $ac_compile) 2>&5
6228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6229 test $ac_status = 0; }; then
6230 case `/usr/bin/file conftest.o` in
6232 case $lt_cv_prog_gnu_ld in
6233 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6235 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6247 need_locks="$enable_libtool_lock"
6249 if test -n "$ac_tool_prefix"; then
6250 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6251 set dummy ${ac_tool_prefix}mt; 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_MANIFEST_TOOL+:} false; then :
6255 $as_echo_n "(cached) " >&6
6257 if test -n "$MANIFEST_TOOL"; then
6258 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # 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_MANIFEST_TOOL="${ac_tool_prefix}mt"
6268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6277 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6278 if test -n "$MANIFEST_TOOL"; then
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6280 $as_echo "$MANIFEST_TOOL" >&6; }
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283 $as_echo "no" >&6; }
6288 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6289 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6290 # Extract the first word of "mt", so it can be a program name with args.
6291 set dummy mt; ac_word=$2
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293 $as_echo_n "checking for $ac_word... " >&6; }
6294 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6295 $as_echo_n "(cached) " >&6
6297 if test -n "$ac_ct_MANIFEST_TOOL"; then
6298 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 test -z "$as_dir" && as_dir=.
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6307 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6317 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6318 if test -n "$ac_ct_MANIFEST_TOOL"; then
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6320 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323 $as_echo "no" >&6; }
6326 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6329 case $cross_compiling:$ac_tool_warned in
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6333 ac_tool_warned=yes ;;
6335 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6338 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6341 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6343 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6344 if ${lt_cv_path_mainfest_tool+:} false; then :
6345 $as_echo_n "(cached) " >&6
6347 lt_cv_path_mainfest_tool=no
6348 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6349 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6350 cat conftest.err >&5
6351 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6352 lt_cv_path_mainfest_tool=yes
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6357 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6358 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6368 rhapsody* | darwin*)
6369 if test -n "$ac_tool_prefix"; then
6370 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6371 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6373 $as_echo_n "checking for $ac_word... " >&6; }
6374 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6375 $as_echo_n "(cached) " >&6
6377 if test -n "$DSYMUTIL"; then
6378 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384 test -z "$as_dir" && as_dir=.
6385 for ac_exec_ext in '' $ac_executable_extensions; do
6386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6387 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6397 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6398 if test -n "$DSYMUTIL"; then
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6400 $as_echo "$DSYMUTIL" >&6; }
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6403 $as_echo "no" >&6; }
6408 if test -z "$ac_cv_prog_DSYMUTIL"; then
6409 ac_ct_DSYMUTIL=$DSYMUTIL
6410 # Extract the first word of "dsymutil", so it can be a program name with args.
6411 set dummy dsymutil; ac_word=$2
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6413 $as_echo_n "checking for $ac_word... " >&6; }
6414 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6415 $as_echo_n "(cached) " >&6
6417 if test -n "$ac_ct_DSYMUTIL"; then
6418 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 test -z "$as_dir" && as_dir=.
6425 for ac_exec_ext in '' $ac_executable_extensions; do
6426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6427 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6437 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6438 if test -n "$ac_ct_DSYMUTIL"; then
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6440 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6443 $as_echo "no" >&6; }
6446 if test "x$ac_ct_DSYMUTIL" = x; then
6449 case $cross_compiling:$ac_tool_warned in
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6453 ac_tool_warned=yes ;;
6455 DSYMUTIL=$ac_ct_DSYMUTIL
6458 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6461 if test -n "$ac_tool_prefix"; then
6462 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6463 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6465 $as_echo_n "checking for $ac_word... " >&6; }
6466 if ${ac_cv_prog_NMEDIT+:} false; then :
6467 $as_echo_n "(cached) " >&6
6469 if test -n "$NMEDIT"; then
6470 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 test -z "$as_dir" && as_dir=.
6477 for ac_exec_ext in '' $ac_executable_extensions; do
6478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6479 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489 NMEDIT=$ac_cv_prog_NMEDIT
6490 if test -n "$NMEDIT"; then
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6492 $as_echo "$NMEDIT" >&6; }
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6495 $as_echo "no" >&6; }
6500 if test -z "$ac_cv_prog_NMEDIT"; then
6501 ac_ct_NMEDIT=$NMEDIT
6502 # Extract the first word of "nmedit", so it can be a program name with args.
6503 set dummy nmedit; ac_word=$2
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6507 $as_echo_n "(cached) " >&6
6509 if test -n "$ac_ct_NMEDIT"; then
6510 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 test -z "$as_dir" && as_dir=.
6517 for ac_exec_ext in '' $ac_executable_extensions; do
6518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6519 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6530 if test -n "$ac_ct_NMEDIT"; then
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6532 $as_echo "$ac_ct_NMEDIT" >&6; }
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535 $as_echo "no" >&6; }
6538 if test "x$ac_ct_NMEDIT" = x; then
6541 case $cross_compiling:$ac_tool_warned in
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6545 ac_tool_warned=yes ;;
6547 NMEDIT=$ac_ct_NMEDIT
6550 NMEDIT="$ac_cv_prog_NMEDIT"
6553 if test -n "$ac_tool_prefix"; then
6554 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6555 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6557 $as_echo_n "checking for $ac_word... " >&6; }
6558 if ${ac_cv_prog_LIPO+:} false; then :
6559 $as_echo_n "(cached) " >&6
6561 if test -n "$LIPO"; then
6562 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568 test -z "$as_dir" && as_dir=.
6569 for ac_exec_ext in '' $ac_executable_extensions; do
6570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6571 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581 LIPO=$ac_cv_prog_LIPO
6582 if test -n "$LIPO"; then
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6584 $as_echo "$LIPO" >&6; }
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587 $as_echo "no" >&6; }
6592 if test -z "$ac_cv_prog_LIPO"; then
6594 # Extract the first word of "lipo", so it can be a program name with args.
6595 set dummy lipo; ac_word=$2
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6597 $as_echo_n "checking for $ac_word... " >&6; }
6598 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6599 $as_echo_n "(cached) " >&6
6601 if test -n "$ac_ct_LIPO"; then
6602 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6611 ac_cv_prog_ac_ct_LIPO="lipo"
6612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6621 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6622 if test -n "$ac_ct_LIPO"; then
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6624 $as_echo "$ac_ct_LIPO" >&6; }
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627 $as_echo "no" >&6; }
6630 if test "x$ac_ct_LIPO" = x; then
6633 case $cross_compiling:$ac_tool_warned in
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6637 ac_tool_warned=yes ;;
6642 LIPO="$ac_cv_prog_LIPO"
6645 if test -n "$ac_tool_prefix"; then
6646 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6647 set dummy ${ac_tool_prefix}otool; ac_word=$2
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6649 $as_echo_n "checking for $ac_word... " >&6; }
6650 if ${ac_cv_prog_OTOOL+:} false; then :
6651 $as_echo_n "(cached) " >&6
6653 if test -n "$OTOOL"; then
6654 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 test -z "$as_dir" && as_dir=.
6661 for ac_exec_ext in '' $ac_executable_extensions; do
6662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6663 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6673 OTOOL=$ac_cv_prog_OTOOL
6674 if test -n "$OTOOL"; then
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6676 $as_echo "$OTOOL" >&6; }
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6679 $as_echo "no" >&6; }
6684 if test -z "$ac_cv_prog_OTOOL"; then
6686 # Extract the first word of "otool", so it can be a program name with args.
6687 set dummy otool; ac_word=$2
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689 $as_echo_n "checking for $ac_word... " >&6; }
6690 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6691 $as_echo_n "(cached) " >&6
6693 if test -n "$ac_ct_OTOOL"; then
6694 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 test -z "$as_dir" && as_dir=.
6701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6703 ac_cv_prog_ac_ct_OTOOL="otool"
6704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6713 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6714 if test -n "$ac_ct_OTOOL"; then
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6716 $as_echo "$ac_ct_OTOOL" >&6; }
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719 $as_echo "no" >&6; }
6722 if test "x$ac_ct_OTOOL" = x; then
6725 case $cross_compiling:$ac_tool_warned in
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6729 ac_tool_warned=yes ;;
6734 OTOOL="$ac_cv_prog_OTOOL"
6737 if test -n "$ac_tool_prefix"; then
6738 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6739 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6741 $as_echo_n "checking for $ac_word... " >&6; }
6742 if ${ac_cv_prog_OTOOL64+:} false; then :
6743 $as_echo_n "(cached) " >&6
6745 if test -n "$OTOOL64"; then
6746 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752 test -z "$as_dir" && as_dir=.
6753 for ac_exec_ext in '' $ac_executable_extensions; do
6754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6755 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6765 OTOOL64=$ac_cv_prog_OTOOL64
6766 if test -n "$OTOOL64"; then
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6768 $as_echo "$OTOOL64" >&6; }
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6771 $as_echo "no" >&6; }
6776 if test -z "$ac_cv_prog_OTOOL64"; then
6777 ac_ct_OTOOL64=$OTOOL64
6778 # Extract the first word of "otool64", so it can be a program name with args.
6779 set dummy otool64; ac_word=$2
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6781 $as_echo_n "checking for $ac_word... " >&6; }
6782 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6783 $as_echo_n "(cached) " >&6
6785 if test -n "$ac_ct_OTOOL64"; then
6786 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 test -z "$as_dir" && as_dir=.
6793 for ac_exec_ext in '' $ac_executable_extensions; do
6794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6795 ac_cv_prog_ac_ct_OTOOL64="otool64"
6796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6805 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6806 if test -n "$ac_ct_OTOOL64"; then
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6808 $as_echo "$ac_ct_OTOOL64" >&6; }
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811 $as_echo "no" >&6; }
6814 if test "x$ac_ct_OTOOL64" = x; then
6817 case $cross_compiling:$ac_tool_warned in
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6821 ac_tool_warned=yes ;;
6823 OTOOL64=$ac_ct_OTOOL64
6826 OTOOL64="$ac_cv_prog_OTOOL64"
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6856 $as_echo_n "checking for -single_module linker flag... " >&6; }
6857 if ${lt_cv_apple_cc_single_mod+:} false; then :
6858 $as_echo_n "(cached) " >&6
6860 lt_cv_apple_cc_single_mod=no
6861 if test -z "${LT_MULTI_MODULE}"; then
6862 # By default we will add the -single_module flag. You can override
6863 # by either setting the environment variable LT_MULTI_MODULE
6864 # non-empty at configure time, or by adding -multi_module to the
6866 rm -rf libconftest.dylib*
6867 echo "int foo(void){return 1;}" > conftest.c
6868 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6869 -dynamiclib -Wl,-single_module conftest.c" >&5
6870 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6871 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6873 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6874 lt_cv_apple_cc_single_mod=yes
6876 cat conftest.err >&5
6878 rm -rf libconftest.dylib*
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6883 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6885 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6886 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6887 $as_echo_n "(cached) " >&6
6889 lt_cv_ld_exported_symbols_list=no
6890 save_LDFLAGS=$LDFLAGS
6891 echo "_main" > conftest.sym
6892 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h. */
6904 if ac_fn_c_try_link "$LINENO"; then :
6905 lt_cv_ld_exported_symbols_list=yes
6907 lt_cv_ld_exported_symbols_list=no
6909 rm -f core conftest.err conftest.$ac_objext \
6910 conftest$ac_exeext conftest.$ac_ext
6911 LDFLAGS="$save_LDFLAGS"
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6915 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6917 $as_echo_n "checking for -force_load linker flag... " >&6; }
6918 if ${lt_cv_ld_force_load+:} false; then :
6919 $as_echo_n "(cached) " >&6
6921 lt_cv_ld_force_load=no
6922 cat > conftest.c << _LT_EOF
6923 int forced_loaded() { return 2;}
6925 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6926 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6927 echo "$AR cru libconftest.a conftest.o" >&5
6928 $AR cru libconftest.a conftest.o 2>&5
6929 echo "$RANLIB libconftest.a" >&5
6930 $RANLIB libconftest.a 2>&5
6931 cat > conftest.c << _LT_EOF
6932 int main() { return 0;}
6934 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6935 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6937 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6938 lt_cv_ld_force_load=yes
6940 cat conftest.err >&5
6942 rm -f conftest.err libconftest.a conftest conftest.c
6943 rm -rf conftest.dSYM
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6947 $as_echo "$lt_cv_ld_force_load" >&6; }
6949 rhapsody* | darwin1.[012])
6950 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6952 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6953 darwin*) # darwin 5.x on
6954 # if running on 10.5 or later, the deployment target defaults
6955 # to the OS version, if on x86, and 10.4, the deployment
6956 # target defaults to 10.4. Don't you love it?
6957 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6958 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6959 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6961 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6963 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6967 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6968 _lt_dar_single_mod='$single_module'
6970 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6971 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6973 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6975 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6976 _lt_dsymutil='~$DSYMUTIL $lib || :'
6984 ac_cpp='$CPP $CPPFLAGS'
6985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6989 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6990 # On Suns, sometimes $CPP names a directory.
6991 if test -n "$CPP" && test -d "$CPP"; then
6994 if test -z "$CPP"; then
6995 if ${ac_cv_prog_CPP+:} false; then :
6996 $as_echo_n "(cached) " >&6
6998 # Double quotes because CPP needs to be expanded
6999 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7002 for ac_c_preproc_warn_flag in '' yes
7004 # Use a header file that comes with gcc, so configuring glibc
7005 # with a fresh cross-compiler works.
7006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7007 # <limits.h> exists even on freestanding compilers.
7008 # On the NeXT, cc -E runs the code through the compiler's parser,
7009 # not just through cpp. "Syntax error" is here to catch this case.
7010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011 /* end confdefs.h. */
7013 # include <limits.h>
7015 # include <assert.h>
7019 if ac_fn_c_try_cpp "$LINENO"; then :
7022 # Broken: fails on valid input.
7025 rm -f conftest.err conftest.i conftest.$ac_ext
7027 # OK, works on sane cases. Now check whether nonexistent headers
7028 # can be detected and how.
7029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7030 /* end confdefs.h. */
7031 #include <ac_nonexistent.h>
7033 if ac_fn_c_try_cpp "$LINENO"; then :
7034 # Broken: success on invalid input.
7037 # Passes both tests.
7041 rm -f conftest.err conftest.i conftest.$ac_ext
7044 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7045 rm -f conftest.i conftest.err conftest.$ac_ext
7046 if $ac_preproc_ok; then :
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7059 $as_echo "$CPP" >&6; }
7061 for ac_c_preproc_warn_flag in '' yes
7063 # Use a header file that comes with gcc, so configuring glibc
7064 # with a fresh cross-compiler works.
7065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7066 # <limits.h> exists even on freestanding compilers.
7067 # On the NeXT, cc -E runs the code through the compiler's parser,
7068 # not just through cpp. "Syntax error" is here to catch this case.
7069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h. */
7072 # include <limits.h>
7074 # include <assert.h>
7078 if ac_fn_c_try_cpp "$LINENO"; then :
7081 # Broken: fails on valid input.
7084 rm -f conftest.err conftest.i conftest.$ac_ext
7086 # OK, works on sane cases. Now check whether nonexistent headers
7087 # can be detected and how.
7088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h. */
7090 #include <ac_nonexistent.h>
7092 if ac_fn_c_try_cpp "$LINENO"; then :
7093 # Broken: success on invalid input.
7096 # Passes both tests.
7100 rm -f conftest.err conftest.i conftest.$ac_ext
7103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7104 rm -f conftest.i conftest.err conftest.$ac_ext
7105 if $ac_preproc_ok; then :
7108 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7110 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7111 See \`config.log' for more details" "$LINENO" 5; }
7115 ac_cpp='$CPP $CPPFLAGS'
7116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7122 $as_echo_n "checking for ANSI C header files... " >&6; }
7123 if ${ac_cv_header_stdc+:} false; then :
7124 $as_echo_n "(cached) " >&6
7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h. */
7141 if ac_fn_c_try_compile "$LINENO"; then :
7142 ac_cv_header_stdc=yes
7144 ac_cv_header_stdc=no
7146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7148 if test $ac_cv_header_stdc = yes; then
7149 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h. */
7155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7156 $EGREP "memchr" >/dev/null 2>&1; then :
7159 ac_cv_header_stdc=no
7165 if test $ac_cv_header_stdc = yes; then
7166 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h. */
7172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7173 $EGREP "free" >/dev/null 2>&1; then :
7176 ac_cv_header_stdc=no
7182 if test $ac_cv_header_stdc = yes; then
7183 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7184 if test "$cross_compiling" = yes; then :
7187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h. */
7191 #if ((' ' & 0x0FF) == 0x020)
7192 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7193 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7195 # define ISLOWER(c) \
7196 (('a' <= (c) && (c) <= 'i') \
7197 || ('j' <= (c) && (c) <= 'r') \
7198 || ('s' <= (c) && (c) <= 'z'))
7199 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7202 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7207 for (i = 0; i < 256; i++)
7208 if (XOR (islower (i), ISLOWER (i))
7209 || toupper (i) != TOUPPER (i))
7214 if ac_fn_c_try_run "$LINENO"; then :
7217 ac_cv_header_stdc=no
7219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7220 conftest.$ac_objext conftest.beam conftest.$ac_ext
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7226 $as_echo "$ac_cv_header_stdc" >&6; }
7227 if test $ac_cv_header_stdc = yes; then
7229 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7233 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7234 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7235 inttypes.h stdint.h unistd.h
7237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7238 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7240 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7241 cat >>confdefs.h <<_ACEOF
7242 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7250 for ac_header in dlfcn.h
7252 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7254 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7255 cat >>confdefs.h <<_ACEOF
7256 #define HAVE_DLFCN_H 1
7277 # Check whether --enable-shared was given.
7278 if test "${enable_shared+set}" = set; then :
7279 enableval=$enable_shared; p=${PACKAGE-default}
7281 yes) enable_shared=yes ;;
7282 no) enable_shared=no ;;
7285 # Look at the argument we got. We use all the common list separators.
7286 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7287 for pkg in $enableval; do
7289 if test "X$pkg" = "X$p"; then
7308 # Check whether --enable-static was given.
7309 if test "${enable_static+set}" = set; then :
7310 enableval=$enable_static; p=${PACKAGE-default}
7312 yes) enable_static=yes ;;
7313 no) enable_static=no ;;
7316 # Look at the argument we got. We use all the common list separators.
7317 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7318 for pkg in $enableval; do
7320 if test "X$pkg" = "X$p"; then
7340 # Check whether --with-pic was given.
7341 if test "${with_pic+set}" = set; then :
7342 withval=$with_pic; pic_mode="$withval"
7348 test -z "$pic_mode" && pic_mode=default
7356 # Check whether --enable-fast-install was given.
7357 if test "${enable_fast_install+set}" = set; then :
7358 enableval=$enable_fast_install; p=${PACKAGE-default}
7360 yes) enable_fast_install=yes ;;
7361 no) enable_fast_install=no ;;
7363 enable_fast_install=no
7364 # Look at the argument we got. We use all the common list separators.
7365 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7366 for pkg in $enableval; do
7368 if test "X$pkg" = "X$p"; then
7369 enable_fast_install=yes
7376 enable_fast_install=yes
7389 # This can be used to rebuild libtool when needed
7390 LIBTOOL_DEPS="$ltmain"
7392 # Always use our own libtool.
7393 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7420 test -z "$LN_S" && LN_S="ln -s"
7435 if test -n "${ZSH_VERSION+set}" ; then
7436 setopt NO_GLOB_SUBST
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7440 $as_echo_n "checking for objdir... " >&6; }
7441 if ${lt_cv_objdir+:} false; then :
7442 $as_echo_n "(cached) " >&6
7444 rm -f .libs 2>/dev/null
7445 mkdir .libs 2>/dev/null
7446 if test -d .libs; then
7449 # MS-DOS does not allow filenames that begin with a dot.
7452 rmdir .libs 2>/dev/null
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7455 $as_echo "$lt_cv_objdir" >&6; }
7456 objdir=$lt_cv_objdir
7462 cat >>confdefs.h <<_ACEOF
7463 #define LT_OBJDIR "$lt_cv_objdir/"
7471 # AIX sometimes has problems with the GCC collect2 program. For some
7472 # reason, if we set the COLLECT_NAMES environment variable, the problems
7473 # vanish in a puff of smoke.
7474 if test "X${COLLECT_NAMES+set}" != Xset; then
7476 export COLLECT_NAMES
7483 can_build_shared=yes
7485 # All known linkers require a `.a' archive for static linking (except MSVC,
7486 # which needs '.lib').
7489 with_gnu_ld="$lt_cv_prog_gnu_ld"
7492 old_CFLAGS="$CFLAGS"
7494 # Set sane defaults for various variables
7495 test -z "$CC" && CC=cc
7496 test -z "$LTCC" && LTCC=$CC
7497 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7498 test -z "$LD" && LD=ld
7499 test -z "$ac_objext" && ac_objext=o
7501 for cc_temp in $compiler""; do
7503 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7504 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7509 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7512 # Only perform the check for file, if the check method requires it
7513 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7514 case $deplibs_check_method in
7516 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7518 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7519 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7520 $as_echo_n "(cached) " >&6
7524 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7527 lt_save_MAGIC_CMD="$MAGIC_CMD"
7528 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7529 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7530 for ac_dir in $ac_dummy; do
7532 test -z "$ac_dir" && ac_dir=.
7533 if test -f $ac_dir/${ac_tool_prefix}file; then
7534 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7535 if test -n "$file_magic_test_file"; then
7536 case $deplibs_check_method in
7538 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7539 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7540 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7541 $EGREP "$file_magic_regex" > /dev/null; then
7546 *** Warning: the command libtool uses to detect shared libraries,
7547 *** $file_magic_cmd, produces output that libtool cannot recognize.
7548 *** The result is that libtool may fail to recognize shared libraries
7549 *** as such. This will affect the creation of libtool libraries that
7550 *** depend on shared libraries, but programs linked with such libtool
7551 *** libraries will work regardless of this problem. Nevertheless, you
7552 *** may want to report the problem to your system manager and/or to
7553 *** bug-libtool@gnu.org
7563 MAGIC_CMD="$lt_save_MAGIC_CMD"
7568 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7569 if test -n "$MAGIC_CMD"; then
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7571 $as_echo "$MAGIC_CMD" >&6; }
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574 $as_echo "no" >&6; }
7581 if test -z "$lt_cv_path_MAGIC_CMD"; then
7582 if test -n "$ac_tool_prefix"; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7584 $as_echo_n "checking for file... " >&6; }
7585 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7586 $as_echo_n "(cached) " >&6
7590 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7593 lt_save_MAGIC_CMD="$MAGIC_CMD"
7594 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7595 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7596 for ac_dir in $ac_dummy; do
7598 test -z "$ac_dir" && ac_dir=.
7599 if test -f $ac_dir/file; then
7600 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7601 if test -n "$file_magic_test_file"; then
7602 case $deplibs_check_method in
7604 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7605 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7606 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7607 $EGREP "$file_magic_regex" > /dev/null; then
7612 *** Warning: the command libtool uses to detect shared libraries,
7613 *** $file_magic_cmd, produces output that libtool cannot recognize.
7614 *** The result is that libtool may fail to recognize shared libraries
7615 *** as such. This will affect the creation of libtool libraries that
7616 *** depend on shared libraries, but programs linked with such libtool
7617 *** libraries will work regardless of this problem. Nevertheless, you
7618 *** may want to report the problem to your system manager and/or to
7619 *** bug-libtool@gnu.org
7629 MAGIC_CMD="$lt_save_MAGIC_CMD"
7634 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7635 if test -n "$MAGIC_CMD"; then
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7637 $as_echo "$MAGIC_CMD" >&6; }
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640 $as_echo "no" >&6; }
7653 # Use C for the default configuration in the libtool script
7657 ac_cpp='$CPP $CPPFLAGS'
7658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7663 # Source file extension for C test sources.
7666 # Object file extension for compiled C test sources.
7670 # Code to be used in simple compile tests
7671 lt_simple_compile_test_code="int some_variable = 0;"
7673 # Code to be used in simple link tests
7674 lt_simple_link_test_code='int main(){return(0);}'
7682 # If no C compiler was specified, use CC.
7685 # If no C compiler flags were specified, use CFLAGS.
7686 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7688 # Allow CC to be a program name with arguments.
7691 # Save the default compiler, since it gets overwritten when the other
7692 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7693 compiler_DEFAULT=$CC
7695 # save warnings/boilerplate of simple test code
7696 ac_outfile=conftest.$ac_objext
7697 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7698 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7699 _lt_compiler_boilerplate=`cat conftest.err`
7702 ac_outfile=conftest.$ac_objext
7703 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7704 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7705 _lt_linker_boilerplate=`cat conftest.err`
7709 if test -n "$compiler"; then
7711 lt_prog_compiler_no_builtin_flag=
7713 if test "$GCC" = yes; then
7714 case $cc_basename in
7716 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7718 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7722 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7723 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7724 $as_echo_n "(cached) " >&6
7726 lt_cv_prog_compiler_rtti_exceptions=no
7727 ac_outfile=conftest.$ac_objext
7728 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7729 lt_compiler_flag="-fno-rtti -fno-exceptions"
7730 # Insert the option either (1) after the last *FLAGS variable, or
7731 # (2) before a word containing "conftest.", or (3) at the end.
7732 # Note that $ac_compile itself does not contain backslashes and begins
7733 # with a dollar sign (not a hyphen), so the echo should work correctly.
7734 # The option is referenced via a variable to avoid confusing sed.
7735 lt_compile=`echo "$ac_compile" | $SED \
7736 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7738 -e 's:$: $lt_compiler_flag:'`
7739 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7740 (eval "$lt_compile" 2>conftest.err)
7742 cat conftest.err >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 if (exit $ac_status) && test -s "$ac_outfile"; then
7745 # The compiler can only warn and ignore the option if not recognized
7746 # So say no if there are warnings other than the usual output.
7747 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7749 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7750 lt_cv_prog_compiler_rtti_exceptions=yes
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7757 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7759 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7760 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7772 lt_prog_compiler_wl=
7773 lt_prog_compiler_pic=
7774 lt_prog_compiler_static=
7777 if test "$GCC" = yes; then
7778 lt_prog_compiler_wl='-Wl,'
7779 lt_prog_compiler_static='-static'
7783 # All AIX code is PIC.
7784 if test "$host_cpu" = ia64; then
7785 # AIX 5 now supports IA64 processor
7786 lt_prog_compiler_static='-Bstatic'
7793 # see comment about AmigaOS4 .so support
7794 lt_prog_compiler_pic='-fPIC'
7797 # FIXME: we need at least 68020 code to build shared libraries, but
7798 # adding the `-m68020' flag to GCC prevents building anything better,
7800 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7805 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7806 # PIC is the default for these OSes.
7809 mingw* | cygwin* | pw32* | os2* | cegcc*)
7810 # This hack is so that the source file can tell whether it is being
7811 # built for inclusion in a dll (and should export symbols for example).
7812 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7813 # (--disable-auto-import) libraries
7814 lt_prog_compiler_pic='-DDLL_EXPORT'
7817 darwin* | rhapsody*)
7818 # PIC is the default on this platform
7819 # Common symbols not allowed in MH_DYLIB files
7820 lt_prog_compiler_pic='-fno-common'
7824 # PIC is the default for Haiku.
7825 # The "-static" flag exists, but is broken.
7826 lt_prog_compiler_static=
7830 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7831 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7832 # sets the default TLS model and affects inlining.
7838 lt_prog_compiler_pic='-fPIC'
7844 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7845 # Instead, we relocate shared libraries at runtime.
7849 # Just because we use GCC doesn't mean we suddenly get shared libraries
7850 # on systems that don't support them.
7851 lt_prog_compiler_can_build_shared=no
7856 # QNX uses GNU C++, but need to define -shared option too, otherwise
7858 lt_prog_compiler_pic='-fPIC -shared'
7862 if test -d /usr/nec; then
7863 lt_prog_compiler_pic=-Kconform_pic
7868 lt_prog_compiler_pic='-fPIC'
7872 case $cc_basename in
7873 nvcc*) # Cuda Compiler Driver 2.2
7874 lt_prog_compiler_wl='-Xlinker '
7875 lt_prog_compiler_pic='-Xcompiler -fPIC'
7879 # PORTME Check for flag to pass linker flags through the system compiler.
7882 lt_prog_compiler_wl='-Wl,'
7883 if test "$host_cpu" = ia64; then
7884 # AIX 5 now supports IA64 processor
7885 lt_prog_compiler_static='-Bstatic'
7887 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7891 mingw* | cygwin* | pw32* | os2* | cegcc*)
7892 # This hack is so that the source file can tell whether it is being
7893 # built for inclusion in a dll (and should export symbols for example).
7894 lt_prog_compiler_pic='-DDLL_EXPORT'
7897 hpux9* | hpux10* | hpux11*)
7898 lt_prog_compiler_wl='-Wl,'
7899 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7906 lt_prog_compiler_pic='+Z'
7909 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7910 lt_prog_compiler_static='${wl}-a ${wl}archive'
7913 irix5* | irix6* | nonstopux*)
7914 lt_prog_compiler_wl='-Wl,'
7915 # PIC (with -KPIC) is the default.
7916 lt_prog_compiler_static='-non_shared'
7919 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7920 case $cc_basename in
7921 # old Intel for x86_64 which still supported -KPIC.
7923 lt_prog_compiler_wl='-Wl,'
7924 lt_prog_compiler_pic='-KPIC'
7925 lt_prog_compiler_static='-static'
7927 # icc used to be incompatible with GCC.
7928 # ICC 10 doesn't accept -KPIC any more.
7930 lt_prog_compiler_wl='-Wl,'
7931 lt_prog_compiler_pic='-fPIC'
7932 lt_prog_compiler_static='-static'
7934 # Lahey Fortran 8.1.
7936 lt_prog_compiler_wl='-Wl,'
7937 lt_prog_compiler_pic='--shared'
7938 lt_prog_compiler_static='--static'
7941 # NAG Fortran compiler
7942 lt_prog_compiler_wl='-Wl,-Wl,,'
7943 lt_prog_compiler_pic='-PIC'
7944 lt_prog_compiler_static='-Bstatic'
7946 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7947 # Portland Group compilers (*not* the Pentium gcc compiler,
7948 # which looks to be a dead project)
7949 lt_prog_compiler_wl='-Wl,'
7950 lt_prog_compiler_pic='-fpic'
7951 lt_prog_compiler_static='-Bstatic'
7954 lt_prog_compiler_wl='-Wl,'
7955 # All Alpha code is PIC.
7956 lt_prog_compiler_static='-non_shared'
7958 xl* | bgxl* | bgf* | mpixl*)
7959 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7960 lt_prog_compiler_wl='-Wl,'
7961 lt_prog_compiler_pic='-qpic'
7962 lt_prog_compiler_static='-qstaticlink'
7965 case `$CC -V 2>&1 | sed 5q` in
7966 *Sun\ F* | *Sun*Fortran*)
7967 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7968 lt_prog_compiler_pic='-KPIC'
7969 lt_prog_compiler_static='-Bstatic'
7970 lt_prog_compiler_wl=''
7974 lt_prog_compiler_pic='-KPIC'
7975 lt_prog_compiler_static='-Bstatic'
7976 lt_prog_compiler_wl='-Wl,'
7984 lt_prog_compiler_pic='-KPIC'
7985 lt_prog_compiler_static='-Bstatic'
7989 # QNX uses GNU C++, but need to define -shared option too, otherwise
7991 lt_prog_compiler_pic='-fPIC -shared'
7994 osf3* | osf4* | osf5*)
7995 lt_prog_compiler_wl='-Wl,'
7996 # All OSF/1 code is PIC.
7997 lt_prog_compiler_static='-non_shared'
8001 lt_prog_compiler_static='-non_shared'
8005 lt_prog_compiler_pic='-KPIC'
8006 lt_prog_compiler_static='-Bstatic'
8007 case $cc_basename in
8008 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8009 lt_prog_compiler_wl='-Qoption ld ';;
8011 lt_prog_compiler_wl='-Wl,';;
8016 lt_prog_compiler_wl='-Qoption ld '
8017 lt_prog_compiler_pic='-PIC'
8018 lt_prog_compiler_static='-Bstatic'
8021 sysv4 | sysv4.2uw2* | sysv4.3*)
8022 lt_prog_compiler_wl='-Wl,'
8023 lt_prog_compiler_pic='-KPIC'
8024 lt_prog_compiler_static='-Bstatic'
8028 if test -d /usr/nec ;then
8029 lt_prog_compiler_pic='-Kconform_pic'
8030 lt_prog_compiler_static='-Bstatic'
8034 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8035 lt_prog_compiler_wl='-Wl,'
8036 lt_prog_compiler_pic='-KPIC'
8037 lt_prog_compiler_static='-Bstatic'
8041 lt_prog_compiler_wl='-Wl,'
8042 lt_prog_compiler_can_build_shared=no
8046 lt_prog_compiler_pic='-pic'
8047 lt_prog_compiler_static='-Bstatic'
8051 lt_prog_compiler_can_build_shared=no
8057 # For platforms which do not support PIC, -DPIC is meaningless:
8059 lt_prog_compiler_pic=
8062 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8067 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8068 if ${lt_cv_prog_compiler_pic+:} false; then :
8069 $as_echo_n "(cached) " >&6
8071 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8074 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8075 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8078 # Check to make sure the PIC flag actually works.
8080 if test -n "$lt_prog_compiler_pic"; then
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8082 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8083 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8084 $as_echo_n "(cached) " >&6
8086 lt_cv_prog_compiler_pic_works=no
8087 ac_outfile=conftest.$ac_objext
8088 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8089 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8090 # Insert the option either (1) after the last *FLAGS variable, or
8091 # (2) before a word containing "conftest.", or (3) at the end.
8092 # Note that $ac_compile itself does not contain backslashes and begins
8093 # with a dollar sign (not a hyphen), so the echo should work correctly.
8094 # The option is referenced via a variable to avoid confusing sed.
8095 lt_compile=`echo "$ac_compile" | $SED \
8096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8098 -e 's:$: $lt_compiler_flag:'`
8099 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8100 (eval "$lt_compile" 2>conftest.err)
8102 cat conftest.err >&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 if (exit $ac_status) && test -s "$ac_outfile"; then
8105 # The compiler can only warn and ignore the option if not recognized
8106 # So say no if there are warnings other than the usual output.
8107 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8108 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8109 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8110 lt_cv_prog_compiler_pic_works=yes
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8117 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8119 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8120 case $lt_prog_compiler_pic in
8122 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8125 lt_prog_compiler_pic=
8126 lt_prog_compiler_can_build_shared=no
8142 # Check to make sure the static flag actually works.
8144 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8146 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8147 if ${lt_cv_prog_compiler_static_works+:} false; then :
8148 $as_echo_n "(cached) " >&6
8150 lt_cv_prog_compiler_static_works=no
8151 save_LDFLAGS="$LDFLAGS"
8152 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8153 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8154 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8155 # The linker can only warn and ignore the option if not recognized
8156 # So say no if there are warnings
8157 if test -s conftest.err; then
8158 # Append any errors to the config.log.
8159 cat conftest.err 1>&5
8160 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8161 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8162 if diff conftest.exp conftest.er2 >/dev/null; then
8163 lt_cv_prog_compiler_static_works=yes
8166 lt_cv_prog_compiler_static_works=yes
8170 LDFLAGS="$save_LDFLAGS"
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8174 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8176 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8179 lt_prog_compiler_static=
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8189 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8190 if ${lt_cv_prog_compiler_c_o+:} false; then :
8191 $as_echo_n "(cached) " >&6
8193 lt_cv_prog_compiler_c_o=no
8194 $RM -r conftest 2>/dev/null
8198 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8200 lt_compiler_flag="-o out/conftest2.$ac_objext"
8201 # Insert the option either (1) after the last *FLAGS variable, or
8202 # (2) before a word containing "conftest.", or (3) at the end.
8203 # Note that $ac_compile itself does not contain backslashes and begins
8204 # with a dollar sign (not a hyphen), so the echo should work correctly.
8205 lt_compile=`echo "$ac_compile" | $SED \
8206 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8208 -e 's:$: $lt_compiler_flag:'`
8209 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8210 (eval "$lt_compile" 2>out/conftest.err)
8212 cat out/conftest.err >&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8216 # The compiler can only warn and ignore the option if not recognized
8217 # So say no if there are warnings
8218 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8219 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8220 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8221 lt_cv_prog_compiler_c_o=yes
8226 # SGI C++ compiler will create directory out/ii_files/ for
8227 # template instantiation
8228 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8229 $RM out/* && rmdir out
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8236 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8244 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8245 if ${lt_cv_prog_compiler_c_o+:} false; then :
8246 $as_echo_n "(cached) " >&6
8248 lt_cv_prog_compiler_c_o=no
8249 $RM -r conftest 2>/dev/null
8253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8255 lt_compiler_flag="-o out/conftest2.$ac_objext"
8256 # Insert the option either (1) after the last *FLAGS variable, or
8257 # (2) before a word containing "conftest.", or (3) at the end.
8258 # Note that $ac_compile itself does not contain backslashes and begins
8259 # with a dollar sign (not a hyphen), so the echo should work correctly.
8260 lt_compile=`echo "$ac_compile" | $SED \
8261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8263 -e 's:$: $lt_compiler_flag:'`
8264 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8265 (eval "$lt_compile" 2>out/conftest.err)
8267 cat out/conftest.err >&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8271 # The compiler can only warn and ignore the option if not recognized
8272 # So say no if there are warnings
8273 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8274 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8275 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8276 lt_cv_prog_compiler_c_o=yes
8281 # SGI C++ compiler will create directory out/ii_files/ for
8282 # template instantiation
8283 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8284 $RM out/* && rmdir out
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8291 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8296 hard_links="nottested"
8297 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8298 # do not overwrite the value of need_locks provided by the user
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8300 $as_echo_n "checking if we can lock with hard links... " >&6; }
8303 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8305 ln conftest.a conftest.b 2>&5 || hard_links=no
8306 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8308 $as_echo "$hard_links" >&6; }
8309 if test "$hard_links" = no; then
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8311 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8324 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8327 allow_undefined_flag=
8328 always_export_symbols=no
8330 archive_expsym_cmds=
8331 compiler_needs_object=no
8332 enable_shared_with_static_runtimes=no
8333 export_dynamic_flag_spec=
8334 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8335 hardcode_automatic=no
8337 hardcode_direct_absolute=no
8338 hardcode_libdir_flag_spec=
8339 hardcode_libdir_flag_spec_ld=
8340 hardcode_libdir_separator=
8342 hardcode_shlibpath_var=unsupported
8344 link_all_deplibs=unknown
8347 old_archive_from_new_cmds=
8348 old_archive_from_expsyms_cmds=
8349 thread_safe_flag_spec=
8350 whole_archive_flag_spec=
8351 # include_expsyms should be a list of space-separated symbols to be *always*
8352 # included in the symbol list
8354 # exclude_expsyms can be an extended regexp of symbols to exclude
8355 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8356 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8357 # as well as any symbol that contains `d'.
8358 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8359 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8360 # platforms (ab)use it in PIC code, but their linkers get confused if
8361 # the symbol is explicitly referenced. Since portable code cannot
8362 # rely on this symbol name, it's probably fine to never include it in
8363 # preloaded symbol tables.
8364 # Exclude shared library initialization/finalization symbols.
8365 extract_expsyms_cmds=
8368 cygwin* | mingw* | pw32* | cegcc*)
8369 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8370 # When not using gcc, we currently assume that we are using
8371 # Microsoft Visual C++.
8372 if test "$GCC" != yes; then
8377 # we just hope/assume this is gcc and not c89 (= MSVC++)
8387 # On some targets, GNU ld is compatible enough with the native linker
8388 # that we're better off using the native interface for both.
8389 lt_use_gnu_ld_interface=no
8390 if test "$with_gnu_ld" = yes; then
8393 # The AIX port of GNU ld has always aspired to compatibility
8394 # with the native linker. However, as the warning in the GNU ld
8395 # block says, versions before 2.19.5* couldn't really create working
8396 # shared libraries, regardless of the interface used.
8397 case `$LD -v 2>&1` in
8398 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8399 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8400 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8402 lt_use_gnu_ld_interface=yes
8407 lt_use_gnu_ld_interface=yes
8412 if test "$lt_use_gnu_ld_interface" = yes; then
8413 # If archive_cmds runs LD, not CC, wlarc should be empty
8416 # Set some defaults for GNU ld with shared library support. These
8417 # are reset later if shared libraries are not supported. Putting them
8418 # here allows them to be overridden if necessary.
8419 runpath_var=LD_RUN_PATH
8420 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8421 export_dynamic_flag_spec='${wl}--export-dynamic'
8422 # ancient GNU ld didn't support --whole-archive et. al.
8423 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8424 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8426 whole_archive_flag_spec=
8428 supports_anon_versioning=no
8429 case `$LD -v 2>&1` in
8430 *GNU\ gold*) supports_anon_versioning=yes ;;
8431 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8432 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8433 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8434 *\ 2.11.*) ;; # other 2.11 versions
8435 *) supports_anon_versioning=yes ;;
8438 # See if GNU ld supports shared libraries.
8441 # On AIX/PPC, the GNU linker is very broken
8442 if test "$host_cpu" != ia64; then
8446 *** Warning: the GNU linker, at least up to release 2.19, is reported
8447 *** to be unable to reliably create shared libraries on AIX.
8448 *** Therefore, libtool is disabling shared libraries support. If you
8449 *** really care for shared libraries, you may want to install binutils
8450 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8451 *** You will then need to restart the configuration process.
8460 # see comment about AmigaOS4 .so support
8461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8462 archive_expsym_cmds=''
8465 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)'
8466 hardcode_libdir_flag_spec='-L$libdir'
8467 hardcode_minus_L=yes
8473 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8474 allow_undefined_flag=unsupported
8475 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8476 # support --undefined. This deserves some investigation. FIXME
8477 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8483 cygwin* | mingw* | pw32* | cegcc*)
8484 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8485 # as there is no search path for DLLs.
8486 hardcode_libdir_flag_spec='-L$libdir'
8487 export_dynamic_flag_spec='${wl}--export-all-symbols'
8488 allow_undefined_flag=unsupported
8489 always_export_symbols=no
8490 enable_shared_with_static_runtimes=yes
8491 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'
8492 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8494 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8495 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8496 # If the export-symbols file already is a .def file (1st line
8497 # is EXPORTS), use it as is; otherwise, prepend...
8498 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8499 cp $export_symbols $output_objdir/$soname.def;
8501 echo EXPORTS > $output_objdir/$soname.def;
8502 cat $export_symbols >> $output_objdir/$soname.def;
8504 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8511 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8512 link_all_deplibs=yes
8517 hardcode_shlibpath_var=no
8518 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8519 export_dynamic_flag_spec='${wl}-E'
8520 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8521 # Instead, shared libraries are loaded at an image base (0x10000000 by
8522 # default) and relocated if they conflict, which is a slow very memory
8523 # consuming and fragmenting process. To avoid this, we pick a random,
8524 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8525 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8526 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8527 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'
8530 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8532 if test "$host_os" = linux-dietlibc; then
8533 case $cc_basename in
8534 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8537 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8538 && test "$tmp_diet" = no
8540 tmp_addflag=' $pic_flag'
8541 tmp_sharedflag='-shared'
8542 case $cc_basename,$host_cpu in
8543 pgcc*) # Portland Group C compiler
8544 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'
8545 tmp_addflag=' $pic_flag'
8547 pgf77* | pgf90* | pgf95* | pgfortran*)
8548 # Portland Group f77 and f90 compilers
8549 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'
8550 tmp_addflag=' $pic_flag -Mnomain' ;;
8551 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8552 tmp_addflag=' -i_dynamic' ;;
8553 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8554 tmp_addflag=' -i_dynamic -nofor_main' ;;
8555 ifc* | ifort*) # Intel Fortran compiler
8556 tmp_addflag=' -nofor_main' ;;
8557 lf95*) # Lahey Fortran 8.1
8558 whole_archive_flag_spec=
8559 tmp_sharedflag='--shared' ;;
8560 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8561 tmp_sharedflag='-qmkshrobj'
8563 nvcc*) # Cuda Compiler Driver 2.2
8564 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'
8565 compiler_needs_object=yes
8568 case `$CC -V 2>&1 | sed 5q` in
8569 *Sun\ C*) # Sun C 5.9
8570 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'
8571 compiler_needs_object=yes
8572 tmp_sharedflag='-G' ;;
8573 *Sun\ F*) # Sun Fortran 8.3
8574 tmp_sharedflag='-G' ;;
8576 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8578 if test "x$supports_anon_versioning" = xyes; then
8579 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8580 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8581 echo "local: *; };" >> $output_objdir/$libname.ver~
8582 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8585 case $cc_basename in
8586 xlf* | bgf* | bgxlf* | mpixlf*)
8587 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8588 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8589 hardcode_libdir_flag_spec=
8590 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8591 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8592 if test "x$supports_anon_versioning" = xyes; then
8593 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8594 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8595 echo "local: *; };" >> $output_objdir/$libname.ver~
8596 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8606 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8607 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8610 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8611 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8616 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8620 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8621 *** create shared libraries on Solaris systems. Therefore, libtool
8622 *** is disabling shared libraries support. We urge you to upgrade GNU
8623 *** binutils to release 2.9.1 or newer. Another option is to modify
8624 *** your PATH or compiler configuration so that the native linker is
8625 *** used, and then restart.
8628 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8629 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8630 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8636 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8637 case `$LD -v 2>&1` in
8638 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8642 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8643 *** reliably create shared libraries on SCO systems. Therefore, libtool
8644 *** is disabling shared libraries support. We urge you to upgrade GNU
8645 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8646 *** your PATH or compiler configuration so that the native linker is
8647 *** used, and then restart.
8652 # For security reasons, it is highly recommended that you always
8653 # use absolute paths for naming shared libraries, and exclude the
8654 # DT_RUNPATH tag from executables and libraries. But doing so
8655 # requires that you compile everything twice, which is a pain.
8656 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8657 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8659 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8668 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8671 hardcode_shlibpath_var=no
8675 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8676 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8677 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8684 if test "$ld_shlibs" = no; then
8686 hardcode_libdir_flag_spec=
8687 export_dynamic_flag_spec=
8688 whole_archive_flag_spec=
8691 # PORTME fill in a description of your system's linker (not GNU ld)
8694 allow_undefined_flag=unsupported
8695 always_export_symbols=yes
8696 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'
8697 # Note: this linker hardcodes the directories in LIBPATH if there
8698 # are no directories specified by -L.
8699 hardcode_minus_L=yes
8700 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8701 # Neither direct hardcoding nor static linking is supported with a
8703 hardcode_direct=unsupported
8708 if test "$host_cpu" = ia64; then
8709 # On IA64, the linker does run time linking by default, so we don't
8710 # have to do anything special.
8711 aix_use_runtimelinking=no
8712 exp_sym_flag='-Bexport'
8715 # If we're using GNU nm, then we don't want the "-C" option.
8716 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8717 # Also, AIX nm treats weak defined symbols like other global
8718 # defined symbols, whereas GNU nm marks them as "W".
8719 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8720 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'
8722 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'
8724 aix_use_runtimelinking=no
8726 # Test if we are trying to use run time linking or normal
8727 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8728 # need to do runtime linking.
8729 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8730 for ld_flag in $LDFLAGS; do
8731 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8732 aix_use_runtimelinking=yes
8739 exp_sym_flag='-bexport'
8740 no_entry_flag='-bnoentry'
8743 # When large executables or shared objects are built, AIX ld can
8744 # have problems creating the table of contents. If linking a library
8745 # or program results in "error TOC overflow" add -mminimal-toc to
8746 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8747 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8751 hardcode_direct_absolute=yes
8752 hardcode_libdir_separator=':'
8753 link_all_deplibs=yes
8754 file_list_spec='${wl}-f,'
8756 if test "$GCC" = yes; then
8757 case $host_os in aix4.[012]|aix4.[012].*)
8758 # We only want to do this on AIX 4.2 and lower, the check
8759 # below for broken collect2 doesn't work under 4.3+
8760 collect2name=`${CC} -print-prog-name=collect2`
8761 if test -f "$collect2name" &&
8762 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8764 # We have reworked collect2
8767 # We have old collect2
8768 hardcode_direct=unsupported
8769 # It fails to find uninstalled libraries when the uninstalled
8770 # path is not listed in the libpath. Setting hardcode_minus_L
8771 # to unsupported forces relinking
8772 hardcode_minus_L=yes
8773 hardcode_libdir_flag_spec='-L$libdir'
8774 hardcode_libdir_separator=
8778 shared_flag='-shared'
8779 if test "$aix_use_runtimelinking" = yes; then
8780 shared_flag="$shared_flag "'${wl}-G'
8784 if test "$host_cpu" = ia64; then
8785 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8786 # chokes on -Wl,-G. The following line is correct:
8789 if test "$aix_use_runtimelinking" = yes; then
8790 shared_flag='${wl}-G'
8792 shared_flag='${wl}-bM:SRE'
8797 export_dynamic_flag_spec='${wl}-bexpall'
8798 # It seems that -bexpall does not export symbols beginning with
8799 # underscore (_), so it is better to generate a list of symbols to export.
8800 always_export_symbols=yes
8801 if test "$aix_use_runtimelinking" = yes; then
8802 # Warning - without using the other runtime loading flags (-brtl),
8803 # -berok will link without error, but may produce a broken library.
8804 allow_undefined_flag='-berok'
8805 # Determine the default libpath from the value encoded in an
8807 if test "${lt_cv_aix_libpath+set}" = set; then
8808 aix_libpath=$lt_cv_aix_libpath
8810 if ${lt_cv_aix_libpath_+:} false; then :
8811 $as_echo_n "(cached) " >&6
8813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814 /* end confdefs.h. */
8824 if ac_fn_c_try_link "$LINENO"; then :
8826 lt_aix_libpath_sed='
8827 /Import File Strings/,/^$/ {
8829 s/^0 *\([^ ]*\) *$/\1/
8833 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8834 # Check for a 64-bit object if we didn't find anything.
8835 if test -z "$lt_cv_aix_libpath_"; then
8836 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8839 rm -f core conftest.err conftest.$ac_objext \
8840 conftest$ac_exeext conftest.$ac_ext
8841 if test -z "$lt_cv_aix_libpath_"; then
8842 lt_cv_aix_libpath_="/usr/lib:/lib"
8847 aix_libpath=$lt_cv_aix_libpath_
8850 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8851 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"
8853 if test "$host_cpu" = ia64; then
8854 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8855 allow_undefined_flag="-z nodefs"
8856 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"
8858 # Determine the default libpath from the value encoded in an
8860 if test "${lt_cv_aix_libpath+set}" = set; then
8861 aix_libpath=$lt_cv_aix_libpath
8863 if ${lt_cv_aix_libpath_+:} false; then :
8864 $as_echo_n "(cached) " >&6
8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8877 if ac_fn_c_try_link "$LINENO"; then :
8879 lt_aix_libpath_sed='
8880 /Import File Strings/,/^$/ {
8882 s/^0 *\([^ ]*\) *$/\1/
8886 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8887 # Check for a 64-bit object if we didn't find anything.
8888 if test -z "$lt_cv_aix_libpath_"; then
8889 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8892 rm -f core conftest.err conftest.$ac_objext \
8893 conftest$ac_exeext conftest.$ac_ext
8894 if test -z "$lt_cv_aix_libpath_"; then
8895 lt_cv_aix_libpath_="/usr/lib:/lib"
8900 aix_libpath=$lt_cv_aix_libpath_
8903 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8904 # Warning - without using the other run time loading flags,
8905 # -berok will link without error, but may produce a broken library.
8906 no_undefined_flag=' ${wl}-bernotok'
8907 allow_undefined_flag=' ${wl}-berok'
8908 if test "$with_gnu_ld" = yes; then
8909 # We only use this code for GNU lds that support --whole-archive.
8910 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8912 # Exported symbols can be pulled into shared objects from archives
8913 whole_archive_flag_spec='$convenience'
8915 archive_cmds_need_lc=yes
8916 # This is similar to how AIX traditionally builds its shared libraries.
8917 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'
8925 # see comment about AmigaOS4 .so support
8926 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8927 archive_expsym_cmds=''
8930 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)'
8931 hardcode_libdir_flag_spec='-L$libdir'
8932 hardcode_minus_L=yes
8938 export_dynamic_flag_spec=-rdynamic
8941 cygwin* | mingw* | pw32* | cegcc*)
8942 # When not using gcc, we currently assume that we are using
8943 # Microsoft Visual C++.
8944 # hardcode_libdir_flag_spec is actually meaningless, as there is
8945 # no search path for DLLs.
8946 case $cc_basename in
8949 hardcode_libdir_flag_spec=' '
8950 allow_undefined_flag=unsupported
8951 always_export_symbols=yes
8953 # Tell ltmain to make .lib files, not .a files.
8955 # Tell ltmain to make .dll files, not .so files.
8957 # FIXME: Setting linknames here is a bad hack.
8958 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8959 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8960 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8962 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8964 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8966 # The linker will not automatically build a static lib if we build a DLL.
8967 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8968 enable_shared_with_static_runtimes=yes
8969 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8971 old_postinstall_cmds='chmod 644 $oldlib'
8972 postlink_cmds='lt_outputfile="@OUTPUT@"~
8973 lt_tool_outputfile="@TOOL_OUTPUT@"~
8974 case $lt_outputfile in
8977 lt_outputfile="$lt_outputfile.exe"
8978 lt_tool_outputfile="$lt_tool_outputfile.exe"
8981 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8982 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8983 $RM "$lt_outputfile.manifest";
8987 # Assume MSVC wrapper
8988 hardcode_libdir_flag_spec=' '
8989 allow_undefined_flag=unsupported
8990 # Tell ltmain to make .lib files, not .a files.
8992 # Tell ltmain to make .dll files, not .so files.
8994 # FIXME: Setting linknames here is a bad hack.
8995 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8996 # The linker will automatically build a .lib file if we build a DLL.
8997 old_archive_from_new_cmds='true'
8998 # FIXME: Should let the user specify the lib program.
8999 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9000 enable_shared_with_static_runtimes=yes
9005 darwin* | rhapsody*)
9008 archive_cmds_need_lc=no
9010 hardcode_automatic=yes
9011 hardcode_shlibpath_var=unsupported
9012 if test "$lt_cv_ld_force_load" = "yes"; then
9013 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\"`'
9015 whole_archive_flag_spec=''
9017 link_all_deplibs=yes
9018 allow_undefined_flag="$_lt_dar_allow_undefined"
9019 case $cc_basename in
9020 ifort*) _lt_dar_can_shared=yes ;;
9021 *) _lt_dar_can_shared=$GCC ;;
9023 if test "$_lt_dar_can_shared" = "yes"; then
9024 output_verbose_link_cmd=func_echo_all
9025 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9026 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9027 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}"
9028 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}"
9037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9038 hardcode_libdir_flag_spec='-L$libdir'
9039 hardcode_shlibpath_var=no
9046 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9047 # support. Future versions do this automatically, but an explicit c++rt0.o
9048 # does not break anything, and helps significantly (at the cost of a little
9051 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9052 hardcode_libdir_flag_spec='-R$libdir'
9054 hardcode_shlibpath_var=no
9057 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9059 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9061 hardcode_minus_L=yes
9062 hardcode_shlibpath_var=no
9065 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9066 freebsd* | dragonfly*)
9067 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9068 hardcode_libdir_flag_spec='-R$libdir'
9070 hardcode_shlibpath_var=no
9074 if test "$GCC" = yes; then
9075 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'
9077 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'
9079 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9080 hardcode_libdir_separator=:
9083 # hardcode_minus_L: Not really in the search PATH,
9084 # but as the default location of the library.
9085 hardcode_minus_L=yes
9086 export_dynamic_flag_spec='${wl}-E'
9090 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9091 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9093 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9095 if test "$with_gnu_ld" = no; then
9096 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9097 hardcode_libdir_flag_spec_ld='+b $libdir'
9098 hardcode_libdir_separator=:
9100 hardcode_direct_absolute=yes
9101 export_dynamic_flag_spec='${wl}-E'
9102 # hardcode_minus_L: Not really in the search PATH,
9103 # but as the default location of the library.
9104 hardcode_minus_L=yes
9109 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9112 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9115 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9118 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9124 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9127 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9131 # Older versions of the 11.00 compiler do not understand -b yet
9132 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9134 $as_echo_n "checking if $CC understands -b... " >&6; }
9135 if ${lt_cv_prog_compiler__b+:} false; then :
9136 $as_echo_n "(cached) " >&6
9138 lt_cv_prog_compiler__b=no
9139 save_LDFLAGS="$LDFLAGS"
9140 LDFLAGS="$LDFLAGS -b"
9141 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9142 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9143 # The linker can only warn and ignore the option if not recognized
9144 # So say no if there are warnings
9145 if test -s conftest.err; then
9146 # Append any errors to the config.log.
9147 cat conftest.err 1>&5
9148 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9149 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9150 if diff conftest.exp conftest.er2 >/dev/null; then
9151 lt_cv_prog_compiler__b=yes
9154 lt_cv_prog_compiler__b=yes
9158 LDFLAGS="$save_LDFLAGS"
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9162 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9164 if test x"$lt_cv_prog_compiler__b" = xyes; then
9165 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9167 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9173 if test "$with_gnu_ld" = no; then
9174 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9175 hardcode_libdir_separator=:
9180 hardcode_shlibpath_var=no
9184 hardcode_direct_absolute=yes
9185 export_dynamic_flag_spec='${wl}-E'
9187 # hardcode_minus_L: Not really in the search PATH,
9188 # but as the default location of the library.
9189 hardcode_minus_L=yes
9195 irix5* | irix6* | nonstopux*)
9196 if test "$GCC" = yes; then
9197 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'
9198 # Try to use the -exported_symbol ld option, if it does not
9199 # work, assume that -exports_file does not work either and
9200 # implicitly export all symbols.
9201 # This should be the same for all languages, so no per-tag cache variable.
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9203 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9204 if ${lt_cv_irix_exported_symbol+:} false; then :
9205 $as_echo_n "(cached) " >&6
9207 save_LDFLAGS="$LDFLAGS"
9208 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9210 /* end confdefs.h. */
9211 int foo (void) { return 0; }
9213 if ac_fn_c_try_link "$LINENO"; then :
9214 lt_cv_irix_exported_symbol=yes
9216 lt_cv_irix_exported_symbol=no
9218 rm -f core conftest.err conftest.$ac_objext \
9219 conftest$ac_exeext conftest.$ac_ext
9220 LDFLAGS="$save_LDFLAGS"
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9223 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9224 if test "$lt_cv_irix_exported_symbol" = yes; then
9225 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'
9228 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'
9229 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'
9231 archive_cmds_need_lc='no'
9232 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9233 hardcode_libdir_separator=:
9235 link_all_deplibs=yes
9239 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9240 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9242 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9244 hardcode_libdir_flag_spec='-R$libdir'
9246 hardcode_shlibpath_var=no
9250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9252 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9253 hardcode_libdir_separator=:
9254 hardcode_shlibpath_var=no
9261 if test -f /usr/libexec/ld.so; then
9263 hardcode_shlibpath_var=no
9264 hardcode_direct_absolute=yes
9265 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9266 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9267 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9268 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9269 export_dynamic_flag_spec='${wl}-E'
9272 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9273 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9274 hardcode_libdir_flag_spec='-R$libdir'
9277 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9278 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9288 hardcode_libdir_flag_spec='-L$libdir'
9289 hardcode_minus_L=yes
9290 allow_undefined_flag=unsupported
9291 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'
9292 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9296 if test "$GCC" = yes; then
9297 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9298 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'
9300 allow_undefined_flag=' -expect_unresolved \*'
9301 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'
9303 archive_cmds_need_lc='no'
9304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9305 hardcode_libdir_separator=:
9308 osf4* | osf5*) # as osf3* with the addition of -msym flag
9309 if test "$GCC" = yes; then
9310 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9311 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'
9312 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9314 allow_undefined_flag=' -expect_unresolved \*'
9315 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'
9316 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~
9317 $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'
9319 # Both c and cxx compiler support -rpath directly
9320 hardcode_libdir_flag_spec='-rpath $libdir'
9322 archive_cmds_need_lc='no'
9323 hardcode_libdir_separator=:
9327 no_undefined_flag=' -z defs'
9328 if test "$GCC" = yes; then
9330 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9331 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9332 $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'
9334 case `$CC -V 2>&1` in
9337 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9338 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9339 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9343 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9344 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9345 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9349 hardcode_libdir_flag_spec='-R$libdir'
9350 hardcode_shlibpath_var=no
9352 solaris2.[0-5] | solaris2.[0-5].*) ;;
9354 # The compiler driver will combine and reorder linker options,
9355 # but understands `-z linker_flag'. GCC discards it without `$wl',
9356 # but is careful enough not to reorder.
9357 # Supported since Solaris 2.6 (maybe 2.5.1?)
9358 if test "$GCC" = yes; then
9359 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9361 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9365 link_all_deplibs=yes
9369 if test "x$host_vendor" = xsequent; then
9370 # Use $CC to link under sequent, because it throws in some extra .o
9371 # files that make .init and .fini sections work.
9372 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9374 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9376 hardcode_libdir_flag_spec='-L$libdir'
9378 hardcode_minus_L=yes
9379 hardcode_shlibpath_var=no
9383 case $host_vendor in
9385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9386 hardcode_direct=yes # is this really true???
9389 ## LD is ld it makes a PLAMLIB
9390 ## CC just makes a GrossModule.
9391 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9392 reload_cmds='$CC -r -o $output$reload_objs'
9396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9397 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9400 runpath_var='LD_RUN_PATH'
9401 hardcode_shlibpath_var=no
9405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9406 hardcode_shlibpath_var=no
9407 export_dynamic_flag_spec='-Bexport'
9411 if test -d /usr/nec; then
9412 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9413 hardcode_shlibpath_var=no
9414 runpath_var=LD_RUN_PATH
9415 hardcode_runpath_var=yes
9420 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9421 no_undefined_flag='${wl}-z,text'
9422 archive_cmds_need_lc=no
9423 hardcode_shlibpath_var=no
9424 runpath_var='LD_RUN_PATH'
9426 if test "$GCC" = yes; then
9427 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9428 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9430 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9431 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9435 sysv5* | sco3.2v5* | sco5v6*)
9436 # Note: We can NOT use -z defs as we might desire, because we do not
9437 # link with -lc, and that would cause any symbols used from libc to
9438 # always be unresolved, which means just about no library would
9439 # ever link correctly. If we're not using GNU ld we use -z text
9440 # though, which does catch some bad symbols but isn't as heavy-handed
9442 no_undefined_flag='${wl}-z,text'
9443 allow_undefined_flag='${wl}-z,nodefs'
9444 archive_cmds_need_lc=no
9445 hardcode_shlibpath_var=no
9446 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9447 hardcode_libdir_separator=':'
9448 link_all_deplibs=yes
9449 export_dynamic_flag_spec='${wl}-Bexport'
9450 runpath_var='LD_RUN_PATH'
9452 if test "$GCC" = yes; then
9453 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9454 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9456 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9457 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9463 hardcode_libdir_flag_spec='-L$libdir'
9464 hardcode_shlibpath_var=no
9472 if test x$host_vendor = xsni; then
9474 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9475 export_dynamic_flag_spec='${wl}-Blargedynsym'
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9482 $as_echo "$ld_shlibs" >&6; }
9483 test "$ld_shlibs" = no && can_build_shared=no
9485 with_gnu_ld=$with_gnu_ld
9502 # Do we need to explicitly link libc?
9504 case "x$archive_cmds_need_lc" in
9506 # Assume -lc should be added
9507 archive_cmds_need_lc=yes
9509 if test "$enable_shared" = yes && test "$GCC" = yes; then
9510 case $archive_cmds in
9512 # FIXME: we may have to deal with multi-command sequences.
9515 # Test whether the compiler implicitly links with -lc since on some
9516 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9517 # to ld, don't add -lc before -lgcc.
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9519 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9520 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9521 $as_echo_n "(cached) " >&6
9524 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9527 (eval $ac_compile) 2>&5
9529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9530 test $ac_status = 0; } 2>conftest.err; then
9533 libobjs=conftest.$ac_objext
9535 wl=$lt_prog_compiler_wl
9536 pic_flag=$lt_prog_compiler_pic
9542 lt_save_allow_undefined_flag=$allow_undefined_flag
9543 allow_undefined_flag=
9544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9545 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9548 test $ac_status = 0; }
9550 lt_cv_archive_cmds_need_lc=no
9552 lt_cv_archive_cmds_need_lc=yes
9554 allow_undefined_flag=$lt_save_allow_undefined_flag
9556 cat conftest.err 1>&5
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9562 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9563 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9727 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9729 if test "$GCC" = yes; then
9731 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9732 *) lt_awk_arg="/^libraries:/" ;;
9735 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9736 *) lt_sed_strip_eq="s,=/,/,g" ;;
9738 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9739 case $lt_search_path_spec in
9741 # if the path contains ";" then we assume it to be the separator
9742 # otherwise default to the standard path separator (i.e. ":") - it is
9743 # assumed that no part of a normal pathname contains ";" but that should
9744 # okay in the real world where ";" in dirpaths is itself problematic.
9745 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9748 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9751 # Ok, now we have the path, separated by spaces, we can step through it
9752 # and add multilib dir if necessary.
9753 lt_tmp_lt_search_path_spec=
9754 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9755 for lt_sys_path in $lt_search_path_spec; do
9756 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9757 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9759 test -d "$lt_sys_path" && \
9760 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9763 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9764 BEGIN {RS=" "; FS="/|\n";} {
9767 for (lt_i = NF; lt_i > 0; lt_i--) {
9768 if ($lt_i != "" && $lt_i != ".") {
9769 if ($lt_i == "..") {
9772 if (lt_count == 0) {
9773 lt_foo="/" $lt_i lt_foo;
9780 if (lt_foo != "") { lt_freq[lt_foo]++; }
9781 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9783 # AWK program above erroneously prepends '/' to C:/dos/paths
9786 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9787 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9789 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9791 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9794 libname_spec='lib$name'
9802 shlibpath_overrides_runpath=unknown
9804 dynamic_linker="$host_os ld.so"
9805 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9806 need_lib_prefix=unknown
9807 hardcode_into_libs=no
9809 # when you set need_version to no, make sure it does not cause -set_version
9810 # flags to be left without arguments
9811 need_version=unknown
9816 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9817 shlibpath_var=LIBPATH
9819 # AIX 3 has no versioning support, so we append a major version to the name.
9820 soname_spec='${libname}${release}${shared_ext}$major'
9827 hardcode_into_libs=yes
9828 if test "$host_cpu" = ia64; then
9829 # AIX 5 supports IA64
9830 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9831 shlibpath_var=LD_LIBRARY_PATH
9833 # With GCC up to 2.95.x, collect2 would create an import file
9834 # for dependence libraries. The import file would start with
9835 # the line `#! .'. This would cause the generated library to
9836 # depend on `.', always an invalid library. This was fixed in
9837 # development snapshots of GCC prior to 3.0.
9839 aix4 | aix4.[01] | aix4.[01].*)
9840 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9842 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9849 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9850 # soname into executable. Probably we can add versioning support to
9851 # collect2, so additional links can be useful in future.
9852 if test "$aix_use_runtimelinking" = yes; then
9853 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9854 # instead of lib<name>.a to let people know that these are not
9855 # typical AIX shared libraries.
9856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9858 # We preserve .a as extension for shared libraries through AIX4.2
9859 # and later when we are not doing run time linking.
9860 library_names_spec='${libname}${release}.a $libname.a'
9861 soname_spec='${libname}${release}${shared_ext}$major'
9863 shlibpath_var=LIBPATH
9870 # Since July 2007 AmigaOS4 officially supports .so libraries.
9871 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9875 library_names_spec='$libname.ixlibrary $libname.a'
9876 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9877 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'
9883 library_names_spec='${libname}${shared_ext}'
9884 dynamic_linker="$host_os ld.so"
9885 shlibpath_var=LIBRARY_PATH
9891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9892 soname_spec='${libname}${release}${shared_ext}$major'
9893 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9894 shlibpath_var=LD_LIBRARY_PATH
9895 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9896 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9897 # the default ld.so.conf also contains /usr/contrib/lib and
9898 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9899 # libtool to hard-code these into programs
9902 cygwin* | mingw* | pw32* | cegcc*)
9903 version_type=windows
9908 case $GCC,$cc_basename in
9911 library_names_spec='$libname.dll.a'
9912 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9913 postinstall_cmds='base_file=`basename \${file}`~
9914 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9915 dldir=$destdir/`dirname \$dlpath`~
9916 test -d \$dldir || mkdir -p \$dldir~
9917 $install_prog $dir/$dlname \$dldir/$dlname~
9918 chmod a+x \$dldir/$dlname~
9919 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9920 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9922 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9923 dlpath=$dir/\$dldll~
9925 shlibpath_overrides_runpath=yes
9929 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9930 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9932 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9935 # MinGW DLLs use traditional 'lib' prefix
9936 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9939 # pw32 DLLs use 'pw' prefix rather than 'lib'
9940 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9943 dynamic_linker='Win32 ld.exe'
9948 libname_spec='$name'
9949 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9950 library_names_spec='${libname}.dll.lib'
9954 sys_lib_search_path_spec=
9960 # Let DOS variable expansion print the short 8.3 style file name.
9961 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9962 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9965 # Convert to MSYS style.
9966 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9969 # Convert to unix form, then to dos form, then back to unix form
9970 # but this time dos style (no spaces!) so that the unix form looks
9971 # like /cygdrive/c/PROGRA~1:/cygdr...
9972 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9973 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9974 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9977 sys_lib_search_path_spec="$LIB"
9978 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9979 # It is most probably a Windows format PATH.
9980 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9982 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9984 # FIXME: find the short name or the path components, as spaces are
9985 # common. (e.g. "Program Files" -> "PROGRA~1")
9989 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9990 postinstall_cmds='base_file=`basename \${file}`~
9991 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9992 dldir=$destdir/`dirname \$dlpath`~
9993 test -d \$dldir || mkdir -p \$dldir~
9994 $install_prog $dir/$dlname \$dldir/$dlname'
9995 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9996 dlpath=$dir/\$dldll~
9998 shlibpath_overrides_runpath=yes
9999 dynamic_linker='Win32 link.exe'
10003 # Assume MSVC wrapper
10004 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10005 dynamic_linker='Win32 ld.exe'
10008 # FIXME: first we should search . and the directory the executable is in
10012 darwin* | rhapsody*)
10013 dynamic_linker="$host_os dyld"
10014 version_type=darwin
10017 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10018 soname_spec='${libname}${release}${major}$shared_ext'
10019 shlibpath_overrides_runpath=yes
10020 shlibpath_var=DYLD_LIBRARY_PATH
10021 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10023 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10024 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10032 soname_spec='${libname}${release}${shared_ext}$major'
10033 shlibpath_var=LD_LIBRARY_PATH
10040 freebsd* | dragonfly*)
10041 # DragonFly does not have aout. When/if they implement a new
10042 # versioning mechanism, adjust this.
10043 if test -x /usr/bin/objformat; then
10044 objformat=`/usr/bin/objformat`
10047 freebsd[123]*) objformat=aout ;;
10048 *) objformat=elf ;;
10051 version_type=freebsd-$objformat
10052 case $version_type in
10054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10059 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10063 shlibpath_var=LD_LIBRARY_PATH
10066 shlibpath_overrides_runpath=yes
10068 freebsd3.[01]* | freebsdelf3.[01]*)
10069 shlibpath_overrides_runpath=yes
10070 hardcode_into_libs=yes
10072 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10073 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10074 shlibpath_overrides_runpath=no
10075 hardcode_into_libs=yes
10077 *) # from 4.6 on, and DragonFly
10078 shlibpath_overrides_runpath=yes
10079 hardcode_into_libs=yes
10088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10089 soname_spec='${libname}${release}${shared_ext}$major'
10090 shlibpath_var=LD_LIBRARY_PATH
10091 hardcode_into_libs=yes
10098 dynamic_linker="$host_os runtime_loader"
10099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10100 soname_spec='${libname}${release}${shared_ext}$major'
10101 shlibpath_var=LIBRARY_PATH
10102 shlibpath_overrides_runpath=yes
10103 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10104 hardcode_into_libs=yes
10107 hpux9* | hpux10* | hpux11*)
10108 # Give a soname corresponding to the major version so that dld.sl refuses to
10109 # link against other versions.
10116 hardcode_into_libs=yes
10117 dynamic_linker="$host_os dld.so"
10118 shlibpath_var=LD_LIBRARY_PATH
10119 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10121 soname_spec='${libname}${release}${shared_ext}$major'
10122 if test "X$HPUX_IA64_MODE" = X32; then
10123 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10125 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10127 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10131 hardcode_into_libs=yes
10132 dynamic_linker="$host_os dld.sl"
10133 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10134 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10136 soname_spec='${libname}${release}${shared_ext}$major'
10137 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10138 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10142 dynamic_linker="$host_os dld.sl"
10143 shlibpath_var=SHLIB_PATH
10144 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146 soname_spec='${libname}${release}${shared_ext}$major'
10149 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10150 postinstall_cmds='chmod 555 $lib'
10151 # or fails outright, so override atomically:
10152 install_override_mode=555
10159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10160 soname_spec='${libname}${release}${shared_ext}$major'
10161 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10162 shlibpath_var=LD_LIBRARY_PATH
10163 shlibpath_overrides_runpath=no
10164 hardcode_into_libs=yes
10167 irix5* | irix6* | nonstopux*)
10169 nonstopux*) version_type=nonstopux ;;
10171 if test "$lt_cv_prog_gnu_ld" = yes; then
10179 soname_spec='${libname}${release}${shared_ext}$major'
10180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10182 irix5* | nonstopux*)
10183 libsuff= shlibsuff=
10186 case $LD in # libtool.m4 will add one of these switches to LD
10187 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10188 libsuff= shlibsuff= libmagic=32-bit;;
10189 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10190 libsuff=32 shlibsuff=N32 libmagic=N32;;
10191 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10192 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10193 *) libsuff= shlibsuff= libmagic=never-match;;
10197 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10198 shlibpath_overrides_runpath=no
10199 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10200 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10201 hardcode_into_libs=yes
10204 # No shared lib support for Linux oldld, aout, or coff.
10205 linux*oldld* | linux*aout* | linux*coff*)
10209 # This must be Linux ELF.
10210 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10215 soname_spec='${libname}${release}${shared_ext}$major'
10216 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10217 shlibpath_var=LD_LIBRARY_PATH
10218 shlibpath_overrides_runpath=no
10220 # Some binutils ld are patched to set DT_RUNPATH
10221 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10222 $as_echo_n "(cached) " >&6
10224 lt_cv_shlibpath_overrides_runpath=no
10225 save_LDFLAGS=$LDFLAGS
10226 save_libdir=$libdir
10227 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10228 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10230 /* end confdefs.h. */
10240 if ac_fn_c_try_link "$LINENO"; then :
10241 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10242 lt_cv_shlibpath_overrides_runpath=yes
10245 rm -f core conftest.err conftest.$ac_objext \
10246 conftest$ac_exeext conftest.$ac_ext
10247 LDFLAGS=$save_LDFLAGS
10248 libdir=$save_libdir
10252 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10254 # This implies no fast_install, which is unacceptable.
10255 # Some rework will be needed to allow for fast_install
10256 # before this can be enabled.
10257 hardcode_into_libs=yes
10259 # Append ld.so.conf contents to the search path
10260 if test -f /etc/ld.so.conf; then
10261 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' ' '`
10262 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10265 # We used to test for /lib/ld.so.1 and disable shared libraries on
10266 # powerpc, because MkLinux only supported shared libraries with the
10267 # GNU dynamic linker. Since this was broken with cross compilers,
10268 # most powerpc-linux boxes support dynamic linking these days and
10269 # people can always --disable-shared, the test was removed, and we
10270 # assume the GNU/Linux dynamic linker is in use.
10271 dynamic_linker='GNU/Linux ld.so'
10278 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10280 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10281 dynamic_linker='NetBSD (a.out) ld.so'
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10284 soname_spec='${libname}${release}${shared_ext}$major'
10285 dynamic_linker='NetBSD ld.elf_so'
10287 shlibpath_var=LD_LIBRARY_PATH
10288 shlibpath_overrides_runpath=yes
10289 hardcode_into_libs=yes
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10295 shlibpath_var=LD_LIBRARY_PATH
10296 shlibpath_overrides_runpath=yes
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10304 soname_spec='${libname}${release}${shared_ext}$major'
10305 shlibpath_var=LD_LIBRARY_PATH
10306 shlibpath_overrides_runpath=no
10307 hardcode_into_libs=yes
10308 dynamic_linker='ldqnx.so'
10313 sys_lib_dlsearch_path_spec="/usr/lib"
10315 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10317 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10318 *) need_version=no ;;
10320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10322 shlibpath_var=LD_LIBRARY_PATH
10323 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10325 openbsd2.[89] | openbsd2.[89].*)
10326 shlibpath_overrides_runpath=no
10329 shlibpath_overrides_runpath=yes
10333 shlibpath_overrides_runpath=yes
10338 libname_spec='$name'
10341 library_names_spec='$libname${shared_ext} $libname.a'
10342 dynamic_linker='OS/2 ld.exe'
10343 shlibpath_var=LIBPATH
10346 osf3* | osf4* | osf5*)
10350 soname_spec='${libname}${release}${shared_ext}$major'
10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10352 shlibpath_var=LD_LIBRARY_PATH
10353 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10354 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10366 soname_spec='${libname}${release}${shared_ext}$major'
10367 shlibpath_var=LD_LIBRARY_PATH
10368 shlibpath_overrides_runpath=yes
10369 hardcode_into_libs=yes
10370 # ldd complains unless libraries are executable
10371 postinstall_cmds='chmod +x $lib'
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10377 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10378 shlibpath_var=LD_LIBRARY_PATH
10379 shlibpath_overrides_runpath=yes
10380 if test "$with_gnu_ld" = yes; then
10388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10389 soname_spec='${libname}${release}${shared_ext}$major'
10390 shlibpath_var=LD_LIBRARY_PATH
10391 case $host_vendor in
10393 shlibpath_overrides_runpath=no
10395 runpath_var=LD_RUN_PATH
10403 shlibpath_overrides_runpath=no
10404 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10410 if test -d /usr/nec ;then
10412 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10413 soname_spec='$libname${shared_ext}.$major'
10414 shlibpath_var=LD_LIBRARY_PATH
10418 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10419 version_type=freebsd-elf
10422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10423 soname_spec='${libname}${release}${shared_ext}$major'
10424 shlibpath_var=LD_LIBRARY_PATH
10425 shlibpath_overrides_runpath=yes
10426 hardcode_into_libs=yes
10427 if test "$with_gnu_ld" = yes; then
10428 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10430 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10433 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10437 sys_lib_dlsearch_path_spec='/usr/lib'
10441 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446 shlibpath_var=LD_LIBRARY_PATH
10447 shlibpath_overrides_runpath=no
10448 hardcode_into_libs=yes
10453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10454 soname_spec='${libname}${release}${shared_ext}$major'
10455 shlibpath_var=LD_LIBRARY_PATH
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10463 $as_echo "$dynamic_linker" >&6; }
10464 test "$dynamic_linker" = no && can_build_shared=no
10466 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10467 if test "$GCC" = yes; then
10468 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10471 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10472 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10474 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10475 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10570 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10572 if test -n "$hardcode_libdir_flag_spec" ||
10573 test -n "$runpath_var" ||
10574 test "X$hardcode_automatic" = "Xyes" ; then
10576 # We can hardcode non-existent directories.
10577 if test "$hardcode_direct" != no &&
10578 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10579 # have to relink, otherwise we might link with an installed library
10580 # when we should be linking with a yet-to-be-installed one
10581 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10582 test "$hardcode_minus_L" != no; then
10583 # Linking always hardcodes the temporary library directory.
10584 hardcode_action=relink
10586 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10587 hardcode_action=immediate
10590 # We cannot hardcode anything, or else we can only hardcode existing
10592 hardcode_action=unsupported
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10595 $as_echo "$hardcode_action" >&6; }
10597 if test "$hardcode_action" = relink ||
10598 test "$inherit_rpath" = yes; then
10599 # Fast installation is not supported
10600 enable_fast_install=no
10601 elif test "$shlibpath_overrides_runpath" = yes ||
10602 test "$enable_shared" = no; then
10603 # Fast installation is not necessary
10604 enable_fast_install=needless
10612 if test "x$enable_dlopen" != xyes; then
10613 enable_dlopen=unknown
10614 enable_dlopen_self=unknown
10615 enable_dlopen_self_static=unknown
10622 lt_cv_dlopen="load_add_on"
10624 lt_cv_dlopen_self=yes
10627 mingw* | pw32* | cegcc*)
10628 lt_cv_dlopen="LoadLibrary"
10633 lt_cv_dlopen="dlopen"
10638 # if libdl is installed we need to link against it
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10640 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10641 if ${ac_cv_lib_dl_dlopen+:} false; then :
10642 $as_echo_n "(cached) " >&6
10644 ac_check_lib_save_LIBS=$LIBS
10646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647 /* end confdefs.h. */
10649 /* Override any GCC internal prototype to avoid an error.
10650 Use char because int might match the return type of a GCC
10651 builtin and then its argument prototype would still apply. */
10664 if ac_fn_c_try_link "$LINENO"; then :
10665 ac_cv_lib_dl_dlopen=yes
10667 ac_cv_lib_dl_dlopen=no
10669 rm -f core conftest.err conftest.$ac_objext \
10670 conftest$ac_exeext conftest.$ac_ext
10671 LIBS=$ac_check_lib_save_LIBS
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10674 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10675 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10676 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10679 lt_cv_dlopen="dyld"
10681 lt_cv_dlopen_self=yes
10688 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10689 if test "x$ac_cv_func_shl_load" = xyes; then :
10690 lt_cv_dlopen="shl_load"
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10693 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10694 if ${ac_cv_lib_dld_shl_load+:} false; then :
10695 $as_echo_n "(cached) " >&6
10697 ac_check_lib_save_LIBS=$LIBS
10699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10700 /* end confdefs.h. */
10702 /* Override any GCC internal prototype to avoid an error.
10703 Use char because int might match the return type of a GCC
10704 builtin and then its argument prototype would still apply. */
10712 return shl_load ();
10717 if ac_fn_c_try_link "$LINENO"; then :
10718 ac_cv_lib_dld_shl_load=yes
10720 ac_cv_lib_dld_shl_load=no
10722 rm -f core conftest.err conftest.$ac_objext \
10723 conftest$ac_exeext conftest.$ac_ext
10724 LIBS=$ac_check_lib_save_LIBS
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10727 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10728 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10729 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10731 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10732 if test "x$ac_cv_func_dlopen" = xyes; then :
10733 lt_cv_dlopen="dlopen"
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10736 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10737 if ${ac_cv_lib_dl_dlopen+:} false; then :
10738 $as_echo_n "(cached) " >&6
10740 ac_check_lib_save_LIBS=$LIBS
10742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h. */
10745 /* Override any GCC internal prototype to avoid an error.
10746 Use char because int might match the return type of a GCC
10747 builtin and then its argument prototype would still apply. */
10760 if ac_fn_c_try_link "$LINENO"; then :
10761 ac_cv_lib_dl_dlopen=yes
10763 ac_cv_lib_dl_dlopen=no
10765 rm -f core conftest.err conftest.$ac_objext \
10766 conftest$ac_exeext conftest.$ac_ext
10767 LIBS=$ac_check_lib_save_LIBS
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10770 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10771 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10772 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10775 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10776 if ${ac_cv_lib_svld_dlopen+:} false; then :
10777 $as_echo_n "(cached) " >&6
10779 ac_check_lib_save_LIBS=$LIBS
10780 LIBS="-lsvld $LIBS"
10781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h. */
10784 /* Override any GCC internal prototype to avoid an error.
10785 Use char because int might match the return type of a GCC
10786 builtin and then its argument prototype would still apply. */
10799 if ac_fn_c_try_link "$LINENO"; then :
10800 ac_cv_lib_svld_dlopen=yes
10802 ac_cv_lib_svld_dlopen=no
10804 rm -f core conftest.err conftest.$ac_objext \
10805 conftest$ac_exeext conftest.$ac_ext
10806 LIBS=$ac_check_lib_save_LIBS
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10809 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10810 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10811 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10814 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10815 if ${ac_cv_lib_dld_dld_link+:} false; then :
10816 $as_echo_n "(cached) " >&6
10818 ac_check_lib_save_LIBS=$LIBS
10820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10821 /* end confdefs.h. */
10823 /* Override any GCC internal prototype to avoid an error.
10824 Use char because int might match the return type of a GCC
10825 builtin and then its argument prototype would still apply. */
10833 return dld_link ();
10838 if ac_fn_c_try_link "$LINENO"; then :
10839 ac_cv_lib_dld_dld_link=yes
10841 ac_cv_lib_dld_dld_link=no
10843 rm -f core conftest.err conftest.$ac_objext \
10844 conftest$ac_exeext conftest.$ac_ext
10845 LIBS=$ac_check_lib_save_LIBS
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10848 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10849 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10850 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10871 if test "x$lt_cv_dlopen" != xno; then
10877 case $lt_cv_dlopen in
10879 save_CPPFLAGS="$CPPFLAGS"
10880 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10882 save_LDFLAGS="$LDFLAGS"
10883 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10886 LIBS="$lt_cv_dlopen_libs $LIBS"
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10889 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10890 if ${lt_cv_dlopen_self+:} false; then :
10891 $as_echo_n "(cached) " >&6
10893 if test "$cross_compiling" = yes; then :
10894 lt_cv_dlopen_self=cross
10896 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10897 lt_status=$lt_dlunknown
10898 cat > conftest.$ac_ext <<_LT_EOF
10899 #line $LINENO "configure"
10900 #include "confdefs.h"
10909 # define LT_DLGLOBAL RTLD_GLOBAL
10912 # define LT_DLGLOBAL DL_GLOBAL
10914 # define LT_DLGLOBAL 0
10918 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10919 find out it does not work in some platform. */
10920 #ifndef LT_DLLAZY_OR_NOW
10922 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10925 # define LT_DLLAZY_OR_NOW DL_LAZY
10928 # define LT_DLLAZY_OR_NOW RTLD_NOW
10931 # define LT_DLLAZY_OR_NOW DL_NOW
10933 # define LT_DLLAZY_OR_NOW 0
10940 /* When -fvisbility=hidden is used, assume the code has been annotated
10941 correspondingly for the symbols needed. */
10942 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10943 int fnord () __attribute__((visibility("default")));
10946 int fnord () { return 42; }
10949 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10950 int status = $lt_dlunknown;
10954 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10957 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10958 else puts (dlerror ());
10960 /* dlclose (self); */
10968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10969 (eval $ac_link) 2>&5
10971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10972 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10973 (./conftest; exit; ) >&5 2>/dev/null
10975 case x$lt_status in
10976 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10977 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10978 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10981 # compilation failed
10982 lt_cv_dlopen_self=no
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10990 $as_echo "$lt_cv_dlopen_self" >&6; }
10992 if test "x$lt_cv_dlopen_self" = xyes; then
10993 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10995 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10996 if ${lt_cv_dlopen_self_static+:} false; then :
10997 $as_echo_n "(cached) " >&6
10999 if test "$cross_compiling" = yes; then :
11000 lt_cv_dlopen_self_static=cross
11002 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11003 lt_status=$lt_dlunknown
11004 cat > conftest.$ac_ext <<_LT_EOF
11005 #line $LINENO "configure"
11006 #include "confdefs.h"
11015 # define LT_DLGLOBAL RTLD_GLOBAL
11018 # define LT_DLGLOBAL DL_GLOBAL
11020 # define LT_DLGLOBAL 0
11024 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11025 find out it does not work in some platform. */
11026 #ifndef LT_DLLAZY_OR_NOW
11028 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11031 # define LT_DLLAZY_OR_NOW DL_LAZY
11034 # define LT_DLLAZY_OR_NOW RTLD_NOW
11037 # define LT_DLLAZY_OR_NOW DL_NOW
11039 # define LT_DLLAZY_OR_NOW 0
11046 /* When -fvisbility=hidden is used, assume the code has been annotated
11047 correspondingly for the symbols needed. */
11048 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11049 int fnord () __attribute__((visibility("default")));
11052 int fnord () { return 42; }
11055 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11056 int status = $lt_dlunknown;
11060 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11063 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11064 else puts (dlerror ());
11066 /* dlclose (self); */
11074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11075 (eval $ac_link) 2>&5
11077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11078 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11079 (./conftest; exit; ) >&5 2>/dev/null
11081 case x$lt_status in
11082 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11083 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11084 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11087 # compilation failed
11088 lt_cv_dlopen_self_static=no
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11096 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11099 CPPFLAGS="$save_CPPFLAGS"
11100 LDFLAGS="$save_LDFLAGS"
11105 case $lt_cv_dlopen_self in
11106 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11107 *) enable_dlopen_self=unknown ;;
11110 case $lt_cv_dlopen_self_static in
11111 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11112 *) enable_dlopen_self_static=unknown ;;
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11135 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11136 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11137 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11138 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11140 $as_echo "yes" >&6; }
11142 # FIXME - insert some real tests, host_os isn't really good enough
11145 if test -n "$STRIP" ; then
11146 striplib="$STRIP -x"
11147 old_striplib="$STRIP -S"
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11149 $as_echo "yes" >&6; }
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11152 $as_echo "no" >&6; }
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11157 $as_echo "no" >&6; }
11173 # Report which library types will actually be built
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11175 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11177 $as_echo "$can_build_shared" >&6; }
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11180 $as_echo_n "checking whether to build shared libraries... " >&6; }
11181 test "$can_build_shared" = "no" && enable_shared=no
11183 # On AIX, shared libraries and static libraries use the same namespace, and
11184 # are all built from PIC.
11187 test "$enable_shared" = yes && enable_static=no
11188 if test -n "$RANLIB"; then
11189 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11190 postinstall_cmds='$RANLIB $lib'
11195 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11196 test "$enable_shared" = yes && enable_static=no
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11201 $as_echo "$enable_shared" >&6; }
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11204 $as_echo_n "checking whether to build static libraries... " >&6; }
11205 # Make sure either enable_shared or enable_static is yes.
11206 test "$enable_shared" = yes || enable_static=yes
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11208 $as_echo "$enable_static" >&6; }
11215 ac_cpp='$CPP $CPPFLAGS'
11216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11234 ac_config_commands="$ac_config_commands libtool"
11239 # Only expand once:
11243 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11256 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11257 if ${ac_cv_prog_cc_c99+:} false; then :
11258 $as_echo_n "(cached) " >&6
11260 ac_cv_prog_cc_c99=no
11262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11263 /* end confdefs.h. */
11264 #include <stdarg.h>
11265 #include <stdbool.h>
11266 #include <stdlib.h>
11270 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11271 #define debug(...) fprintf (stderr, __VA_ARGS__)
11272 #define showlist(...) puts (#__VA_ARGS__)
11273 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11275 test_varargs_macros (void)
11280 debug ("X = %d\n", x);
11281 showlist (The first, second, and third items.);
11282 report (x>y, "x is %d but y is %d", x, y);
11285 // Check long long types.
11286 #define BIG64 18446744073709551615ull
11287 #define BIG32 4294967295ul
11288 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11290 your preprocessor is broken;
11294 your preprocessor is broken;
11296 static long long int bignum = -9223372036854775807LL;
11297 static unsigned long long int ubignum = BIG64;
11299 struct incomplete_array
11305 struct named_init {
11307 const wchar_t *name;
11311 typedef const char *ccp;
11314 test_restrict (ccp restrict text)
11316 // See if C++-style comments work.
11317 // Iterate through items via the restricted pointer.
11318 // Also check for declarations in for loops.
11319 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11324 // Check varargs and va_copy.
11326 test_varargs (const char *format, ...)
11329 va_start (args, format);
11331 va_copy (args_copy, args);
11341 case 's': // string
11342 str = va_arg (args_copy, const char *);
11345 number = va_arg (args_copy, int);
11348 fnumber = va_arg (args_copy, double);
11354 va_end (args_copy);
11363 _Bool success = false;
11366 if (test_restrict ("String literal") == 0)
11368 char *restrict newvar = "Another string";
11371 test_varargs ("s, d' f .", "string", 65, 34.234);
11372 test_varargs_macros ();
11374 // Check flexible array members.
11375 struct incomplete_array *ia =
11376 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11378 for (int i = 0; i < ia->datasize; ++i)
11379 ia->data[i] = i * 1.234;
11381 // Check named initializers.
11382 struct named_init ni = {
11384 .name = L"Test wide string",
11385 .average = 543.34343,
11390 int dynamic_array[ni.number];
11391 dynamic_array[ni.number - 1] = 543;
11393 // work around unused variable warnings
11394 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11395 || dynamic_array[ni.number - 1] != 543);
11401 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11403 CC="$ac_save_CC $ac_arg"
11404 if ac_fn_c_try_compile "$LINENO"; then :
11405 ac_cv_prog_cc_c99=$ac_arg
11407 rm -f core conftest.err conftest.$ac_objext
11408 test "x$ac_cv_prog_cc_c99" != "xno" && break
11410 rm -f conftest.$ac_ext
11415 case "x$ac_cv_prog_cc_c99" in
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11418 $as_echo "none needed" >&6; } ;;
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11421 $as_echo "unsupported" >&6; } ;;
11423 CC="$CC $ac_cv_prog_cc_c99"
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11425 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11427 if test "x$ac_cv_prog_cc_c99" != xno; then :
11436 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11437 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11443 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11444 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11450 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11451 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11460 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11461 if test -n "$ac_tool_prefix"; then
11462 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11463 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11465 $as_echo_n "checking for $ac_word... " >&6; }
11466 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11467 $as_echo_n "(cached) " >&6
11469 case $PKG_CONFIG in
11471 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11475 for as_dir in $PATH
11478 test -z "$as_dir" && as_dir=.
11479 for ac_exec_ext in '' $ac_executable_extensions; do
11480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11481 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11492 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11493 if test -n "$PKG_CONFIG"; then
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11495 $as_echo "$PKG_CONFIG" >&6; }
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11498 $as_echo "no" >&6; }
11503 if test -z "$ac_cv_path_PKG_CONFIG"; then
11504 ac_pt_PKG_CONFIG=$PKG_CONFIG
11505 # Extract the first word of "pkg-config", so it can be a program name with args.
11506 set dummy pkg-config; ac_word=$2
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11508 $as_echo_n "checking for $ac_word... " >&6; }
11509 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11510 $as_echo_n "(cached) " >&6
11512 case $ac_pt_PKG_CONFIG in
11514 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11518 for as_dir in $PATH
11521 test -z "$as_dir" && as_dir=.
11522 for ac_exec_ext in '' $ac_executable_extensions; do
11523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11524 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11535 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11536 if test -n "$ac_pt_PKG_CONFIG"; then
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11538 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11541 $as_echo "no" >&6; }
11544 if test "x$ac_pt_PKG_CONFIG" = x; then
11547 case $cross_compiling:$ac_tool_warned in
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11551 ac_tool_warned=yes ;;
11553 PKG_CONFIG=$ac_pt_PKG_CONFIG
11556 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11560 if test -n "$PKG_CONFIG"; then
11561 _pkg_min_version=0.9.0
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11563 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11564 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11566 $as_echo "yes" >&6; }
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11569 $as_echo "no" >&6; }
11579 # Check whether --enable-selective-werror was given.
11580 if test "${enable_selective_werror+set}" = set; then :
11581 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11583 SELECTIVE_WERROR=yes
11590 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11591 if test "x$SUNCC" = "xyes"; then
11597 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11609 xorg_testset_save_CFLAGS="$CFLAGS"
11611 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11614 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11615 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11616 $as_echo_n "(cached) " >&6
11618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11619 /* end confdefs.h. */
11622 if ac_fn_c_try_compile "$LINENO"; then :
11623 xorg_cv_compiler_flag_unknown_warning_option=yes
11625 xorg_cv_compiler_flag_unknown_warning_option=no
11627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11630 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11631 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11632 CFLAGS="$xorg_testset_save_CFLAGS"
11635 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11636 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11641 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11642 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11643 $as_echo_n "(cached) " >&6
11645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646 /* end confdefs.h. */
11649 if ac_fn_c_try_compile "$LINENO"; then :
11650 xorg_cv_compiler_flag_unused_command_line_argument=yes
11652 xorg_cv_compiler_flag_unused_command_line_argument=no
11654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11657 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11658 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11659 CFLAGS="$xorg_testset_save_CFLAGS"
11664 if test $found = "no" ; then
11665 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11669 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11673 CFLAGS="$CFLAGS -Wall"
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11676 $as_echo_n "checking if $CC supports -Wall... " >&6; }
11677 cacheid=`$as_echo xorg_cv_cc_flag_-Wall`
11678 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11679 $as_echo_n "(cached) " >&6
11681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11682 /* end confdefs.h. */
11692 if ac_fn_c_try_link "$LINENO"; then :
11693 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11695 eval `$as_echo "$cacheid" | $as_tr_sh`=no
11697 rm -f core conftest.err conftest.$ac_objext \
11698 conftest$ac_exeext conftest.$ac_ext
11702 CFLAGS="$xorg_testset_save_CFLAGS"
11704 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11706 $as_echo "$supported" >&6; }
11707 if test "$supported" = "yes" ; then
11708 BASE_CFLAGS="$BASE_CFLAGS -Wall"
11725 xorg_testset_save_CFLAGS="$CFLAGS"
11727 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11730 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11731 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11732 $as_echo_n "(cached) " >&6
11734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11735 /* end confdefs.h. */
11738 if ac_fn_c_try_compile "$LINENO"; then :
11739 xorg_cv_compiler_flag_unknown_warning_option=yes
11741 xorg_cv_compiler_flag_unknown_warning_option=no
11743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11746 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11747 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11748 CFLAGS="$xorg_testset_save_CFLAGS"
11751 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11752 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11757 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11758 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11759 $as_echo_n "(cached) " >&6
11761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11762 /* end confdefs.h. */
11765 if ac_fn_c_try_compile "$LINENO"; then :
11766 xorg_cv_compiler_flag_unused_command_line_argument=yes
11768 xorg_cv_compiler_flag_unused_command_line_argument=no
11770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11773 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11774 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11775 CFLAGS="$xorg_testset_save_CFLAGS"
11780 if test $found = "no" ; then
11781 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11785 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11789 CFLAGS="$CFLAGS -Wpointer-arith"
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
11792 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
11793 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith`
11794 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11795 $as_echo_n "(cached) " >&6
11797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11798 /* end confdefs.h. */
11808 if ac_fn_c_try_link "$LINENO"; then :
11809 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11811 eval `$as_echo "$cacheid" | $as_tr_sh`=no
11813 rm -f core conftest.err conftest.$ac_objext \
11814 conftest$ac_exeext conftest.$ac_ext
11818 CFLAGS="$xorg_testset_save_CFLAGS"
11820 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11822 $as_echo "$supported" >&6; }
11823 if test "$supported" = "yes" ; then
11824 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
11841 xorg_testset_save_CFLAGS="$CFLAGS"
11843 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11846 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11847 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11848 $as_echo_n "(cached) " >&6
11850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11851 /* end confdefs.h. */
11854 if ac_fn_c_try_compile "$LINENO"; then :
11855 xorg_cv_compiler_flag_unknown_warning_option=yes
11857 xorg_cv_compiler_flag_unknown_warning_option=no
11859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11862 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11863 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11864 CFLAGS="$xorg_testset_save_CFLAGS"
11867 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11868 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11873 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11874 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11875 $as_echo_n "(cached) " >&6
11877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11878 /* end confdefs.h. */
11881 if ac_fn_c_try_compile "$LINENO"; then :
11882 xorg_cv_compiler_flag_unused_command_line_argument=yes
11884 xorg_cv_compiler_flag_unused_command_line_argument=no
11886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11889 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11890 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11891 CFLAGS="$xorg_testset_save_CFLAGS"
11896 if test $found = "no" ; then
11897 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11901 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11905 CFLAGS="$CFLAGS -Wmissing-declarations"
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
11908 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
11909 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations`
11910 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11911 $as_echo_n "(cached) " >&6
11913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914 /* end confdefs.h. */
11924 if ac_fn_c_try_link "$LINENO"; then :
11925 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11927 eval `$as_echo "$cacheid" | $as_tr_sh`=no
11929 rm -f core conftest.err conftest.$ac_objext \
11930 conftest$ac_exeext conftest.$ac_ext
11934 CFLAGS="$xorg_testset_save_CFLAGS"
11936 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11938 $as_echo "$supported" >&6; }
11939 if test "$supported" = "yes" ; then
11940 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
11957 xorg_testset_save_CFLAGS="$CFLAGS"
11959 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11962 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11963 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11964 $as_echo_n "(cached) " >&6
11966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967 /* end confdefs.h. */
11970 if ac_fn_c_try_compile "$LINENO"; then :
11971 xorg_cv_compiler_flag_unknown_warning_option=yes
11973 xorg_cv_compiler_flag_unknown_warning_option=no
11975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11978 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11979 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11980 CFLAGS="$xorg_testset_save_CFLAGS"
11983 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11984 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11989 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11990 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11991 $as_echo_n "(cached) " >&6
11993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11994 /* end confdefs.h. */
11997 if ac_fn_c_try_compile "$LINENO"; then :
11998 xorg_cv_compiler_flag_unused_command_line_argument=yes
12000 xorg_cv_compiler_flag_unused_command_line_argument=no
12002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12005 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12006 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12007 CFLAGS="$xorg_testset_save_CFLAGS"
12012 if test $found = "no" ; then
12013 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12017 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12021 CFLAGS="$CFLAGS -Wformat=2"
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12024 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12025 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat=2`
12026 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12027 $as_echo_n "(cached) " >&6
12029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12030 /* end confdefs.h. */
12040 if ac_fn_c_try_link "$LINENO"; then :
12041 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12043 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12045 rm -f core conftest.err conftest.$ac_objext \
12046 conftest$ac_exeext conftest.$ac_ext
12050 CFLAGS="$xorg_testset_save_CFLAGS"
12052 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12054 $as_echo "$supported" >&6; }
12055 if test "$supported" = "yes" ; then
12056 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12061 if test $found = "no" ; then
12062 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12066 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12070 CFLAGS="$CFLAGS -Wformat"
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12073 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12074 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat`
12075 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12076 $as_echo_n "(cached) " >&6
12078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079 /* end confdefs.h. */
12089 if ac_fn_c_try_link "$LINENO"; then :
12090 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12092 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12094 rm -f core conftest.err conftest.$ac_objext \
12095 conftest$ac_exeext conftest.$ac_ext
12099 CFLAGS="$xorg_testset_save_CFLAGS"
12101 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12103 $as_echo "$supported" >&6; }
12104 if test "$supported" = "yes" ; then
12105 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12124 xorg_testset_save_CFLAGS="$CFLAGS"
12126 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12129 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12130 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12131 $as_echo_n "(cached) " >&6
12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h. */
12137 if ac_fn_c_try_compile "$LINENO"; then :
12138 xorg_cv_compiler_flag_unknown_warning_option=yes
12140 xorg_cv_compiler_flag_unknown_warning_option=no
12142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12145 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12146 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12147 CFLAGS="$xorg_testset_save_CFLAGS"
12150 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12151 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12156 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12157 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12158 $as_echo_n "(cached) " >&6
12160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161 /* end confdefs.h. */
12164 if ac_fn_c_try_compile "$LINENO"; then :
12165 xorg_cv_compiler_flag_unused_command_line_argument=yes
12167 xorg_cv_compiler_flag_unused_command_line_argument=no
12169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12172 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12173 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12174 CFLAGS="$xorg_testset_save_CFLAGS"
12179 if test $found = "no" ; then
12180 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12184 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12188 CFLAGS="$CFLAGS -Wstrict-prototypes"
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12191 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12192 cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes`
12193 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12194 $as_echo_n "(cached) " >&6
12196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12197 /* end confdefs.h. */
12207 if ac_fn_c_try_link "$LINENO"; then :
12208 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12210 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12212 rm -f core conftest.err conftest.$ac_objext \
12213 conftest$ac_exeext conftest.$ac_ext
12217 CFLAGS="$xorg_testset_save_CFLAGS"
12219 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12221 $as_echo "$supported" >&6; }
12222 if test "$supported" = "yes" ; then
12223 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12240 xorg_testset_save_CFLAGS="$CFLAGS"
12242 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12245 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12246 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12247 $as_echo_n "(cached) " >&6
12249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12250 /* end confdefs.h. */
12253 if ac_fn_c_try_compile "$LINENO"; then :
12254 xorg_cv_compiler_flag_unknown_warning_option=yes
12256 xorg_cv_compiler_flag_unknown_warning_option=no
12258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12261 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12262 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12263 CFLAGS="$xorg_testset_save_CFLAGS"
12266 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12267 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12272 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12273 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12274 $as_echo_n "(cached) " >&6
12276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h. */
12280 if ac_fn_c_try_compile "$LINENO"; then :
12281 xorg_cv_compiler_flag_unused_command_line_argument=yes
12283 xorg_cv_compiler_flag_unused_command_line_argument=no
12285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12288 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12289 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12290 CFLAGS="$xorg_testset_save_CFLAGS"
12295 if test $found = "no" ; then
12296 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12297 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12300 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12304 CFLAGS="$CFLAGS -Wmissing-prototypes"
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12307 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12308 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes`
12309 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12310 $as_echo_n "(cached) " >&6
12312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12313 /* end confdefs.h. */
12323 if ac_fn_c_try_link "$LINENO"; then :
12324 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12326 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12328 rm -f core conftest.err conftest.$ac_objext \
12329 conftest$ac_exeext conftest.$ac_ext
12333 CFLAGS="$xorg_testset_save_CFLAGS"
12335 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12337 $as_echo "$supported" >&6; }
12338 if test "$supported" = "yes" ; then
12339 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12356 xorg_testset_save_CFLAGS="$CFLAGS"
12358 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12361 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12362 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12363 $as_echo_n "(cached) " >&6
12365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12366 /* end confdefs.h. */
12369 if ac_fn_c_try_compile "$LINENO"; then :
12370 xorg_cv_compiler_flag_unknown_warning_option=yes
12372 xorg_cv_compiler_flag_unknown_warning_option=no
12374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12377 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12378 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12379 CFLAGS="$xorg_testset_save_CFLAGS"
12382 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12383 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12388 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12389 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12390 $as_echo_n "(cached) " >&6
12392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12393 /* end confdefs.h. */
12396 if ac_fn_c_try_compile "$LINENO"; then :
12397 xorg_cv_compiler_flag_unused_command_line_argument=yes
12399 xorg_cv_compiler_flag_unused_command_line_argument=no
12401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12404 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12405 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12406 CFLAGS="$xorg_testset_save_CFLAGS"
12411 if test $found = "no" ; then
12412 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12416 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12420 CFLAGS="$CFLAGS -Wnested-externs"
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12423 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12424 cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs`
12425 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12426 $as_echo_n "(cached) " >&6
12428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12429 /* end confdefs.h. */
12439 if ac_fn_c_try_link "$LINENO"; then :
12440 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12442 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12444 rm -f core conftest.err conftest.$ac_objext \
12445 conftest$ac_exeext conftest.$ac_ext
12449 CFLAGS="$xorg_testset_save_CFLAGS"
12451 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12453 $as_echo "$supported" >&6; }
12454 if test "$supported" = "yes" ; then
12455 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12472 xorg_testset_save_CFLAGS="$CFLAGS"
12474 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12477 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12478 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12479 $as_echo_n "(cached) " >&6
12481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12482 /* end confdefs.h. */
12485 if ac_fn_c_try_compile "$LINENO"; then :
12486 xorg_cv_compiler_flag_unknown_warning_option=yes
12488 xorg_cv_compiler_flag_unknown_warning_option=no
12490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12493 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12494 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12495 CFLAGS="$xorg_testset_save_CFLAGS"
12498 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12499 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12504 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12505 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12506 $as_echo_n "(cached) " >&6
12508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12509 /* end confdefs.h. */
12512 if ac_fn_c_try_compile "$LINENO"; then :
12513 xorg_cv_compiler_flag_unused_command_line_argument=yes
12515 xorg_cv_compiler_flag_unused_command_line_argument=no
12517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12520 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12521 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12522 CFLAGS="$xorg_testset_save_CFLAGS"
12527 if test $found = "no" ; then
12528 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12532 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12536 CFLAGS="$CFLAGS -Wbad-function-cast"
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12539 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12540 cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast`
12541 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12542 $as_echo_n "(cached) " >&6
12544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12545 /* end confdefs.h. */
12555 if ac_fn_c_try_link "$LINENO"; then :
12556 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12558 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12560 rm -f core conftest.err conftest.$ac_objext \
12561 conftest$ac_exeext conftest.$ac_ext
12565 CFLAGS="$xorg_testset_save_CFLAGS"
12567 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12569 $as_echo "$supported" >&6; }
12570 if test "$supported" = "yes" ; then
12571 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12588 xorg_testset_save_CFLAGS="$CFLAGS"
12590 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12593 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12594 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12595 $as_echo_n "(cached) " >&6
12597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12598 /* end confdefs.h. */
12601 if ac_fn_c_try_compile "$LINENO"; then :
12602 xorg_cv_compiler_flag_unknown_warning_option=yes
12604 xorg_cv_compiler_flag_unknown_warning_option=no
12606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12609 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12610 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12611 CFLAGS="$xorg_testset_save_CFLAGS"
12614 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12615 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12620 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12621 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12622 $as_echo_n "(cached) " >&6
12624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12625 /* end confdefs.h. */
12628 if ac_fn_c_try_compile "$LINENO"; then :
12629 xorg_cv_compiler_flag_unused_command_line_argument=yes
12631 xorg_cv_compiler_flag_unused_command_line_argument=no
12633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12636 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12637 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12638 CFLAGS="$xorg_testset_save_CFLAGS"
12643 if test $found = "no" ; then
12644 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12648 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12652 CFLAGS="$CFLAGS -Wold-style-definition"
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12655 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12656 cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition`
12657 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12658 $as_echo_n "(cached) " >&6
12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661 /* end confdefs.h. */
12671 if ac_fn_c_try_link "$LINENO"; then :
12672 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12674 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12676 rm -f core conftest.err conftest.$ac_objext \
12677 conftest$ac_exeext conftest.$ac_ext
12681 CFLAGS="$xorg_testset_save_CFLAGS"
12683 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12685 $as_echo "$supported" >&6; }
12686 if test "$supported" = "yes" ; then
12687 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12704 xorg_testset_save_CFLAGS="$CFLAGS"
12706 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12709 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12710 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12711 $as_echo_n "(cached) " >&6
12713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12714 /* end confdefs.h. */
12717 if ac_fn_c_try_compile "$LINENO"; then :
12718 xorg_cv_compiler_flag_unknown_warning_option=yes
12720 xorg_cv_compiler_flag_unknown_warning_option=no
12722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12725 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12726 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12727 CFLAGS="$xorg_testset_save_CFLAGS"
12730 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12731 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12736 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12737 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12738 $as_echo_n "(cached) " >&6
12740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12741 /* end confdefs.h. */
12744 if ac_fn_c_try_compile "$LINENO"; then :
12745 xorg_cv_compiler_flag_unused_command_line_argument=yes
12747 xorg_cv_compiler_flag_unused_command_line_argument=no
12749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12752 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12753 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12754 CFLAGS="$xorg_testset_save_CFLAGS"
12759 if test $found = "no" ; then
12760 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12764 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12768 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
12771 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
12772 cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statement`
12773 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12774 $as_echo_n "(cached) " >&6
12776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12777 /* end confdefs.h. */
12787 if ac_fn_c_try_link "$LINENO"; then :
12788 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12790 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12792 rm -f core conftest.err conftest.$ac_objext \
12793 conftest$ac_exeext conftest.$ac_ext
12797 CFLAGS="$xorg_testset_save_CFLAGS"
12799 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12801 $as_echo "$supported" >&6; }
12802 if test "$supported" = "yes" ; then
12803 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
12812 # This chunk adds additional warnings that could catch undesired effects.
12824 xorg_testset_save_CFLAGS="$CFLAGS"
12826 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12829 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12830 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12831 $as_echo_n "(cached) " >&6
12833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12834 /* end confdefs.h. */
12837 if ac_fn_c_try_compile "$LINENO"; then :
12838 xorg_cv_compiler_flag_unknown_warning_option=yes
12840 xorg_cv_compiler_flag_unknown_warning_option=no
12842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12845 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12846 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12847 CFLAGS="$xorg_testset_save_CFLAGS"
12850 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12851 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12856 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12857 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12858 $as_echo_n "(cached) " >&6
12860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h. */
12864 if ac_fn_c_try_compile "$LINENO"; then :
12865 xorg_cv_compiler_flag_unused_command_line_argument=yes
12867 xorg_cv_compiler_flag_unused_command_line_argument=no
12869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12872 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12873 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12874 CFLAGS="$xorg_testset_save_CFLAGS"
12879 if test $found = "no" ; then
12880 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12884 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12888 CFLAGS="$CFLAGS -Wunused"
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
12891 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
12892 cacheid=`$as_echo xorg_cv_cc_flag_-Wunused`
12893 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12894 $as_echo_n "(cached) " >&6
12896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12897 /* end confdefs.h. */
12907 if ac_fn_c_try_link "$LINENO"; then :
12908 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12910 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12912 rm -f core conftest.err conftest.$ac_objext \
12913 conftest$ac_exeext conftest.$ac_ext
12917 CFLAGS="$xorg_testset_save_CFLAGS"
12919 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12921 $as_echo "$supported" >&6; }
12922 if test "$supported" = "yes" ; then
12923 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
12940 xorg_testset_save_CFLAGS="$CFLAGS"
12942 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12945 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12946 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12947 $as_echo_n "(cached) " >&6
12949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12950 /* end confdefs.h. */
12953 if ac_fn_c_try_compile "$LINENO"; then :
12954 xorg_cv_compiler_flag_unknown_warning_option=yes
12956 xorg_cv_compiler_flag_unknown_warning_option=no
12958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12961 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12962 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12963 CFLAGS="$xorg_testset_save_CFLAGS"
12966 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12967 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12972 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12973 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12974 $as_echo_n "(cached) " >&6
12976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977 /* end confdefs.h. */
12980 if ac_fn_c_try_compile "$LINENO"; then :
12981 xorg_cv_compiler_flag_unused_command_line_argument=yes
12983 xorg_cv_compiler_flag_unused_command_line_argument=no
12985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12988 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12989 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12990 CFLAGS="$xorg_testset_save_CFLAGS"
12995 if test $found = "no" ; then
12996 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13000 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13004 CFLAGS="$CFLAGS -Wuninitialized"
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13007 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13008 cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized`
13009 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13010 $as_echo_n "(cached) " >&6
13012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13013 /* end confdefs.h. */
13023 if ac_fn_c_try_link "$LINENO"; then :
13024 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13026 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13028 rm -f core conftest.err conftest.$ac_objext \
13029 conftest$ac_exeext conftest.$ac_ext
13033 CFLAGS="$xorg_testset_save_CFLAGS"
13035 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13037 $as_echo "$supported" >&6; }
13038 if test "$supported" = "yes" ; then
13039 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13056 xorg_testset_save_CFLAGS="$CFLAGS"
13058 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13061 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13062 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13063 $as_echo_n "(cached) " >&6
13065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13066 /* end confdefs.h. */
13069 if ac_fn_c_try_compile "$LINENO"; then :
13070 xorg_cv_compiler_flag_unknown_warning_option=yes
13072 xorg_cv_compiler_flag_unknown_warning_option=no
13074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13077 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13078 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13079 CFLAGS="$xorg_testset_save_CFLAGS"
13082 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13083 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13088 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13089 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13090 $as_echo_n "(cached) " >&6
13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093 /* end confdefs.h. */
13096 if ac_fn_c_try_compile "$LINENO"; then :
13097 xorg_cv_compiler_flag_unused_command_line_argument=yes
13099 xorg_cv_compiler_flag_unused_command_line_argument=no
13101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13104 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13105 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13106 CFLAGS="$xorg_testset_save_CFLAGS"
13111 if test $found = "no" ; then
13112 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13116 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13120 CFLAGS="$CFLAGS -Wshadow"
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13123 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13124 cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow`
13125 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13126 $as_echo_n "(cached) " >&6
13128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13129 /* end confdefs.h. */
13139 if ac_fn_c_try_link "$LINENO"; then :
13140 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13142 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13144 rm -f core conftest.err conftest.$ac_objext \
13145 conftest$ac_exeext conftest.$ac_ext
13149 CFLAGS="$xorg_testset_save_CFLAGS"
13151 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13153 $as_echo "$supported" >&6; }
13154 if test "$supported" = "yes" ; then
13155 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13172 xorg_testset_save_CFLAGS="$CFLAGS"
13174 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13177 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13178 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13179 $as_echo_n "(cached) " >&6
13181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13182 /* end confdefs.h. */
13185 if ac_fn_c_try_compile "$LINENO"; then :
13186 xorg_cv_compiler_flag_unknown_warning_option=yes
13188 xorg_cv_compiler_flag_unknown_warning_option=no
13190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13193 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13194 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13195 CFLAGS="$xorg_testset_save_CFLAGS"
13198 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13199 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13204 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13205 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13206 $as_echo_n "(cached) " >&6
13208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209 /* end confdefs.h. */
13212 if ac_fn_c_try_compile "$LINENO"; then :
13213 xorg_cv_compiler_flag_unused_command_line_argument=yes
13215 xorg_cv_compiler_flag_unused_command_line_argument=no
13217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13220 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13221 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13222 CFLAGS="$xorg_testset_save_CFLAGS"
13227 if test $found = "no" ; then
13228 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13232 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13236 CFLAGS="$CFLAGS -Wcast-qual"
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13239 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13240 cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual`
13241 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13242 $as_echo_n "(cached) " >&6
13244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13245 /* end confdefs.h. */
13255 if ac_fn_c_try_link "$LINENO"; then :
13256 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13258 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13260 rm -f core conftest.err conftest.$ac_objext \
13261 conftest$ac_exeext conftest.$ac_ext
13265 CFLAGS="$xorg_testset_save_CFLAGS"
13267 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13269 $as_echo "$supported" >&6; }
13270 if test "$supported" = "yes" ; then
13271 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13288 xorg_testset_save_CFLAGS="$CFLAGS"
13290 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13293 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13294 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13295 $as_echo_n "(cached) " >&6
13297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13298 /* end confdefs.h. */
13301 if ac_fn_c_try_compile "$LINENO"; then :
13302 xorg_cv_compiler_flag_unknown_warning_option=yes
13304 xorg_cv_compiler_flag_unknown_warning_option=no
13306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13309 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13310 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13311 CFLAGS="$xorg_testset_save_CFLAGS"
13314 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13315 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13320 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13321 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13322 $as_echo_n "(cached) " >&6
13324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13325 /* end confdefs.h. */
13328 if ac_fn_c_try_compile "$LINENO"; then :
13329 xorg_cv_compiler_flag_unused_command_line_argument=yes
13331 xorg_cv_compiler_flag_unused_command_line_argument=no
13333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13336 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13337 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13338 CFLAGS="$xorg_testset_save_CFLAGS"
13343 if test $found = "no" ; then
13344 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13348 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13352 CFLAGS="$CFLAGS -Wmissing-noreturn"
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13355 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13356 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn`
13357 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13358 $as_echo_n "(cached) " >&6
13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361 /* end confdefs.h. */
13371 if ac_fn_c_try_link "$LINENO"; then :
13372 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13374 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13376 rm -f core conftest.err conftest.$ac_objext \
13377 conftest$ac_exeext conftest.$ac_ext
13381 CFLAGS="$xorg_testset_save_CFLAGS"
13383 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13385 $as_echo "$supported" >&6; }
13386 if test "$supported" = "yes" ; then
13387 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13404 xorg_testset_save_CFLAGS="$CFLAGS"
13406 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13409 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13410 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13411 $as_echo_n "(cached) " >&6
13413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13414 /* end confdefs.h. */
13417 if ac_fn_c_try_compile "$LINENO"; then :
13418 xorg_cv_compiler_flag_unknown_warning_option=yes
13420 xorg_cv_compiler_flag_unknown_warning_option=no
13422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13425 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13426 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13427 CFLAGS="$xorg_testset_save_CFLAGS"
13430 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13431 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13436 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13437 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13438 $as_echo_n "(cached) " >&6
13440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13441 /* end confdefs.h. */
13444 if ac_fn_c_try_compile "$LINENO"; then :
13445 xorg_cv_compiler_flag_unused_command_line_argument=yes
13447 xorg_cv_compiler_flag_unused_command_line_argument=no
13449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13452 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13453 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13454 CFLAGS="$xorg_testset_save_CFLAGS"
13459 if test $found = "no" ; then
13460 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13464 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13468 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13471 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13472 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute`
13473 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13474 $as_echo_n "(cached) " >&6
13476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13477 /* end confdefs.h. */
13487 if ac_fn_c_try_link "$LINENO"; then :
13488 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13490 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13492 rm -f core conftest.err conftest.$ac_objext \
13493 conftest$ac_exeext conftest.$ac_ext
13497 CFLAGS="$xorg_testset_save_CFLAGS"
13499 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13501 $as_echo "$supported" >&6; }
13502 if test "$supported" = "yes" ; then
13503 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13520 xorg_testset_save_CFLAGS="$CFLAGS"
13522 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13525 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13526 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13527 $as_echo_n "(cached) " >&6
13529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13530 /* end confdefs.h. */
13533 if ac_fn_c_try_compile "$LINENO"; then :
13534 xorg_cv_compiler_flag_unknown_warning_option=yes
13536 xorg_cv_compiler_flag_unknown_warning_option=no
13538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13541 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13542 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13543 CFLAGS="$xorg_testset_save_CFLAGS"
13546 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13547 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13552 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13553 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13554 $as_echo_n "(cached) " >&6
13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13557 /* end confdefs.h. */
13560 if ac_fn_c_try_compile "$LINENO"; then :
13561 xorg_cv_compiler_flag_unused_command_line_argument=yes
13563 xorg_cv_compiler_flag_unused_command_line_argument=no
13565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13568 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13569 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13570 CFLAGS="$xorg_testset_save_CFLAGS"
13575 if test $found = "no" ; then
13576 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13580 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13584 CFLAGS="$CFLAGS -Wredundant-decls"
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13587 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13588 cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls`
13589 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13590 $as_echo_n "(cached) " >&6
13592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13593 /* end confdefs.h. */
13603 if ac_fn_c_try_link "$LINENO"; then :
13604 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13606 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13608 rm -f core conftest.err conftest.$ac_objext \
13609 conftest$ac_exeext conftest.$ac_ext
13613 CFLAGS="$xorg_testset_save_CFLAGS"
13615 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13617 $as_echo "$supported" >&6; }
13618 if test "$supported" = "yes" ; then
13619 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13626 # These are currently disabled because they are noisy. They will be enabled
13627 # in the future once the codebase is sufficiently modernized to silence
13628 # them. For now, I don't want them to drown out the other warnings.
13629 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13630 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13631 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13633 # Turn some warnings into errors, so we don't accidently get successful builds
13634 # when there are problems that should be fixed.
13636 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13648 xorg_testset_save_CFLAGS="$CFLAGS"
13650 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13653 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13654 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13655 $as_echo_n "(cached) " >&6
13657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658 /* end confdefs.h. */
13661 if ac_fn_c_try_compile "$LINENO"; then :
13662 xorg_cv_compiler_flag_unknown_warning_option=yes
13664 xorg_cv_compiler_flag_unknown_warning_option=no
13666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13669 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13670 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13671 CFLAGS="$xorg_testset_save_CFLAGS"
13674 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13675 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13680 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13681 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13682 $as_echo_n "(cached) " >&6
13684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13685 /* end confdefs.h. */
13688 if ac_fn_c_try_compile "$LINENO"; then :
13689 xorg_cv_compiler_flag_unused_command_line_argument=yes
13691 xorg_cv_compiler_flag_unused_command_line_argument=no
13693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13696 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13697 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13698 CFLAGS="$xorg_testset_save_CFLAGS"
13703 if test $found = "no" ; then
13704 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13708 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13712 CFLAGS="$CFLAGS -Werror=implicit"
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13715 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13716 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit`
13717 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13718 $as_echo_n "(cached) " >&6
13720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h. */
13731 if ac_fn_c_try_link "$LINENO"; then :
13732 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13734 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13736 rm -f core conftest.err conftest.$ac_objext \
13737 conftest$ac_exeext conftest.$ac_ext
13741 CFLAGS="$xorg_testset_save_CFLAGS"
13743 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13745 $as_echo "$supported" >&6; }
13746 if test "$supported" = "yes" ; then
13747 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13752 if test $found = "no" ; then
13753 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13757 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13761 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13764 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13765 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
13766 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13767 $as_echo_n "(cached) " >&6
13769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13770 /* end confdefs.h. */
13780 if ac_fn_c_try_link "$LINENO"; then :
13781 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13783 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13785 rm -f core conftest.err conftest.$ac_objext \
13786 conftest$ac_exeext conftest.$ac_ext
13790 CFLAGS="$xorg_testset_save_CFLAGS"
13792 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13794 $as_echo "$supported" >&6; }
13795 if test "$supported" = "yes" ; then
13796 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13813 xorg_testset_save_CFLAGS="$CFLAGS"
13815 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13818 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13819 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13820 $as_echo_n "(cached) " >&6
13822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13823 /* end confdefs.h. */
13826 if ac_fn_c_try_compile "$LINENO"; then :
13827 xorg_cv_compiler_flag_unknown_warning_option=yes
13829 xorg_cv_compiler_flag_unknown_warning_option=no
13831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13834 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13835 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13836 CFLAGS="$xorg_testset_save_CFLAGS"
13839 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13840 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13845 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13846 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13847 $as_echo_n "(cached) " >&6
13849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13850 /* end confdefs.h. */
13853 if ac_fn_c_try_compile "$LINENO"; then :
13854 xorg_cv_compiler_flag_unused_command_line_argument=yes
13856 xorg_cv_compiler_flag_unused_command_line_argument=no
13858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13861 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13862 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13863 CFLAGS="$xorg_testset_save_CFLAGS"
13868 if test $found = "no" ; then
13869 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13873 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13877 CFLAGS="$CFLAGS -Werror=nonnull"
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
13880 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
13881 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull`
13882 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13883 $as_echo_n "(cached) " >&6
13885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13886 /* end confdefs.h. */
13896 if ac_fn_c_try_link "$LINENO"; then :
13897 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13899 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13901 rm -f core conftest.err conftest.$ac_objext \
13902 conftest$ac_exeext conftest.$ac_ext
13906 CFLAGS="$xorg_testset_save_CFLAGS"
13908 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13910 $as_echo "$supported" >&6; }
13911 if test "$supported" = "yes" ; then
13912 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
13929 xorg_testset_save_CFLAGS="$CFLAGS"
13931 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13934 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13935 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13936 $as_echo_n "(cached) " >&6
13938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h. */
13942 if ac_fn_c_try_compile "$LINENO"; then :
13943 xorg_cv_compiler_flag_unknown_warning_option=yes
13945 xorg_cv_compiler_flag_unknown_warning_option=no
13947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13950 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13951 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13952 CFLAGS="$xorg_testset_save_CFLAGS"
13955 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13956 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13961 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13962 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13963 $as_echo_n "(cached) " >&6
13965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13966 /* end confdefs.h. */
13969 if ac_fn_c_try_compile "$LINENO"; then :
13970 xorg_cv_compiler_flag_unused_command_line_argument=yes
13972 xorg_cv_compiler_flag_unused_command_line_argument=no
13974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13977 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13978 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13979 CFLAGS="$xorg_testset_save_CFLAGS"
13984 if test $found = "no" ; then
13985 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13989 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13993 CFLAGS="$CFLAGS -Werror=init-self"
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
13996 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
13997 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self`
13998 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13999 $as_echo_n "(cached) " >&6
14001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14002 /* end confdefs.h. */
14012 if ac_fn_c_try_link "$LINENO"; then :
14013 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14015 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14017 rm -f core conftest.err conftest.$ac_objext \
14018 conftest$ac_exeext conftest.$ac_ext
14022 CFLAGS="$xorg_testset_save_CFLAGS"
14024 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14026 $as_echo "$supported" >&6; }
14027 if test "$supported" = "yes" ; then
14028 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14045 xorg_testset_save_CFLAGS="$CFLAGS"
14047 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14050 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14051 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14052 $as_echo_n "(cached) " >&6
14054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14055 /* end confdefs.h. */
14058 if ac_fn_c_try_compile "$LINENO"; then :
14059 xorg_cv_compiler_flag_unknown_warning_option=yes
14061 xorg_cv_compiler_flag_unknown_warning_option=no
14063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14066 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14067 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14068 CFLAGS="$xorg_testset_save_CFLAGS"
14071 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14072 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14077 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14078 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14079 $as_echo_n "(cached) " >&6
14081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14082 /* end confdefs.h. */
14085 if ac_fn_c_try_compile "$LINENO"; then :
14086 xorg_cv_compiler_flag_unused_command_line_argument=yes
14088 xorg_cv_compiler_flag_unused_command_line_argument=no
14090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14093 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14094 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14095 CFLAGS="$xorg_testset_save_CFLAGS"
14100 if test $found = "no" ; then
14101 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14105 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14109 CFLAGS="$CFLAGS -Werror=main"
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14112 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14113 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main`
14114 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14115 $as_echo_n "(cached) " >&6
14117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14118 /* end confdefs.h. */
14128 if ac_fn_c_try_link "$LINENO"; then :
14129 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14131 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14133 rm -f core conftest.err conftest.$ac_objext \
14134 conftest$ac_exeext conftest.$ac_ext
14138 CFLAGS="$xorg_testset_save_CFLAGS"
14140 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14142 $as_echo "$supported" >&6; }
14143 if test "$supported" = "yes" ; then
14144 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14161 xorg_testset_save_CFLAGS="$CFLAGS"
14163 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14166 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14167 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14168 $as_echo_n "(cached) " >&6
14170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14171 /* end confdefs.h. */
14174 if ac_fn_c_try_compile "$LINENO"; then :
14175 xorg_cv_compiler_flag_unknown_warning_option=yes
14177 xorg_cv_compiler_flag_unknown_warning_option=no
14179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14182 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14183 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14184 CFLAGS="$xorg_testset_save_CFLAGS"
14187 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14188 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14193 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14194 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14195 $as_echo_n "(cached) " >&6
14197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14198 /* end confdefs.h. */
14201 if ac_fn_c_try_compile "$LINENO"; then :
14202 xorg_cv_compiler_flag_unused_command_line_argument=yes
14204 xorg_cv_compiler_flag_unused_command_line_argument=no
14206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14209 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14210 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14211 CFLAGS="$xorg_testset_save_CFLAGS"
14216 if test $found = "no" ; then
14217 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14221 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14225 CFLAGS="$CFLAGS -Werror=missing-braces"
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14228 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14229 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces`
14230 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14231 $as_echo_n "(cached) " >&6
14233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234 /* end confdefs.h. */
14244 if ac_fn_c_try_link "$LINENO"; then :
14245 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14247 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14249 rm -f core conftest.err conftest.$ac_objext \
14250 conftest$ac_exeext conftest.$ac_ext
14254 CFLAGS="$xorg_testset_save_CFLAGS"
14256 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14258 $as_echo "$supported" >&6; }
14259 if test "$supported" = "yes" ; then
14260 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14277 xorg_testset_save_CFLAGS="$CFLAGS"
14279 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14282 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14283 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14284 $as_echo_n "(cached) " >&6
14286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14287 /* end confdefs.h. */
14290 if ac_fn_c_try_compile "$LINENO"; then :
14291 xorg_cv_compiler_flag_unknown_warning_option=yes
14293 xorg_cv_compiler_flag_unknown_warning_option=no
14295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14298 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14299 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14300 CFLAGS="$xorg_testset_save_CFLAGS"
14303 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14304 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14309 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14310 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14311 $as_echo_n "(cached) " >&6
14313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h. */
14317 if ac_fn_c_try_compile "$LINENO"; then :
14318 xorg_cv_compiler_flag_unused_command_line_argument=yes
14320 xorg_cv_compiler_flag_unused_command_line_argument=no
14322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14325 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14326 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14327 CFLAGS="$xorg_testset_save_CFLAGS"
14332 if test $found = "no" ; then
14333 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14337 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14341 CFLAGS="$CFLAGS -Werror=sequence-point"
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14344 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14345 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point`
14346 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14347 $as_echo_n "(cached) " >&6
14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h. */
14360 if ac_fn_c_try_link "$LINENO"; then :
14361 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14363 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14365 rm -f core conftest.err conftest.$ac_objext \
14366 conftest$ac_exeext conftest.$ac_ext
14370 CFLAGS="$xorg_testset_save_CFLAGS"
14372 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14374 $as_echo "$supported" >&6; }
14375 if test "$supported" = "yes" ; then
14376 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14393 xorg_testset_save_CFLAGS="$CFLAGS"
14395 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14398 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14399 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14400 $as_echo_n "(cached) " >&6
14402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14403 /* end confdefs.h. */
14406 if ac_fn_c_try_compile "$LINENO"; then :
14407 xorg_cv_compiler_flag_unknown_warning_option=yes
14409 xorg_cv_compiler_flag_unknown_warning_option=no
14411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14414 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14415 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14416 CFLAGS="$xorg_testset_save_CFLAGS"
14419 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14420 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14425 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14426 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14427 $as_echo_n "(cached) " >&6
14429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14430 /* end confdefs.h. */
14433 if ac_fn_c_try_compile "$LINENO"; then :
14434 xorg_cv_compiler_flag_unused_command_line_argument=yes
14436 xorg_cv_compiler_flag_unused_command_line_argument=no
14438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14441 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14442 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14443 CFLAGS="$xorg_testset_save_CFLAGS"
14448 if test $found = "no" ; then
14449 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14453 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14457 CFLAGS="$CFLAGS -Werror=return-type"
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14460 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14461 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type`
14462 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14463 $as_echo_n "(cached) " >&6
14465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14466 /* end confdefs.h. */
14476 if ac_fn_c_try_link "$LINENO"; then :
14477 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14479 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14481 rm -f core conftest.err conftest.$ac_objext \
14482 conftest$ac_exeext conftest.$ac_ext
14486 CFLAGS="$xorg_testset_save_CFLAGS"
14488 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14490 $as_echo "$supported" >&6; }
14491 if test "$supported" = "yes" ; then
14492 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14497 if test $found = "no" ; then
14498 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14502 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14506 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14509 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14510 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
14511 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14512 $as_echo_n "(cached) " >&6
14514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14515 /* end confdefs.h. */
14525 if ac_fn_c_try_link "$LINENO"; then :
14526 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14528 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14530 rm -f core conftest.err conftest.$ac_objext \
14531 conftest$ac_exeext conftest.$ac_ext
14535 CFLAGS="$xorg_testset_save_CFLAGS"
14537 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14539 $as_echo "$supported" >&6; }
14540 if test "$supported" = "yes" ; then
14541 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14558 xorg_testset_save_CFLAGS="$CFLAGS"
14560 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14563 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14564 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14565 $as_echo_n "(cached) " >&6
14567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14568 /* end confdefs.h. */
14571 if ac_fn_c_try_compile "$LINENO"; then :
14572 xorg_cv_compiler_flag_unknown_warning_option=yes
14574 xorg_cv_compiler_flag_unknown_warning_option=no
14576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14579 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14580 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14581 CFLAGS="$xorg_testset_save_CFLAGS"
14584 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14585 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14590 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14591 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14592 $as_echo_n "(cached) " >&6
14594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14595 /* end confdefs.h. */
14598 if ac_fn_c_try_compile "$LINENO"; then :
14599 xorg_cv_compiler_flag_unused_command_line_argument=yes
14601 xorg_cv_compiler_flag_unused_command_line_argument=no
14603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14606 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14607 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14608 CFLAGS="$xorg_testset_save_CFLAGS"
14613 if test $found = "no" ; then
14614 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14618 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14622 CFLAGS="$CFLAGS -Werror=trigraphs"
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14625 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14626 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs`
14627 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14628 $as_echo_n "(cached) " >&6
14630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14631 /* end confdefs.h. */
14641 if ac_fn_c_try_link "$LINENO"; then :
14642 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14644 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14646 rm -f core conftest.err conftest.$ac_objext \
14647 conftest$ac_exeext conftest.$ac_ext
14651 CFLAGS="$xorg_testset_save_CFLAGS"
14653 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14655 $as_echo "$supported" >&6; }
14656 if test "$supported" = "yes" ; then
14657 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14674 xorg_testset_save_CFLAGS="$CFLAGS"
14676 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14679 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14680 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14681 $as_echo_n "(cached) " >&6
14683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14684 /* end confdefs.h. */
14687 if ac_fn_c_try_compile "$LINENO"; then :
14688 xorg_cv_compiler_flag_unknown_warning_option=yes
14690 xorg_cv_compiler_flag_unknown_warning_option=no
14692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14695 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14696 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14697 CFLAGS="$xorg_testset_save_CFLAGS"
14700 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14701 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14706 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14707 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14708 $as_echo_n "(cached) " >&6
14710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14711 /* end confdefs.h. */
14714 if ac_fn_c_try_compile "$LINENO"; then :
14715 xorg_cv_compiler_flag_unused_command_line_argument=yes
14717 xorg_cv_compiler_flag_unused_command_line_argument=no
14719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14722 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14723 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14724 CFLAGS="$xorg_testset_save_CFLAGS"
14729 if test $found = "no" ; then
14730 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14734 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14738 CFLAGS="$CFLAGS -Werror=array-bounds"
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14741 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14742 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds`
14743 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14744 $as_echo_n "(cached) " >&6
14746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14747 /* end confdefs.h. */
14757 if ac_fn_c_try_link "$LINENO"; then :
14758 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14760 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14762 rm -f core conftest.err conftest.$ac_objext \
14763 conftest$ac_exeext conftest.$ac_ext
14767 CFLAGS="$xorg_testset_save_CFLAGS"
14769 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14771 $as_echo "$supported" >&6; }
14772 if test "$supported" = "yes" ; then
14773 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14790 xorg_testset_save_CFLAGS="$CFLAGS"
14792 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14795 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14796 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14797 $as_echo_n "(cached) " >&6
14799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14800 /* end confdefs.h. */
14803 if ac_fn_c_try_compile "$LINENO"; then :
14804 xorg_cv_compiler_flag_unknown_warning_option=yes
14806 xorg_cv_compiler_flag_unknown_warning_option=no
14808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14811 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14812 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14813 CFLAGS="$xorg_testset_save_CFLAGS"
14816 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14817 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14822 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14823 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14824 $as_echo_n "(cached) " >&6
14826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14827 /* end confdefs.h. */
14830 if ac_fn_c_try_compile "$LINENO"; then :
14831 xorg_cv_compiler_flag_unused_command_line_argument=yes
14833 xorg_cv_compiler_flag_unused_command_line_argument=no
14835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14838 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14839 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14840 CFLAGS="$xorg_testset_save_CFLAGS"
14845 if test $found = "no" ; then
14846 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14850 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14854 CFLAGS="$CFLAGS -Werror=write-strings"
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
14857 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
14858 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings`
14859 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14860 $as_echo_n "(cached) " >&6
14862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14863 /* end confdefs.h. */
14873 if ac_fn_c_try_link "$LINENO"; then :
14874 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14876 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14878 rm -f core conftest.err conftest.$ac_objext \
14879 conftest$ac_exeext conftest.$ac_ext
14883 CFLAGS="$xorg_testset_save_CFLAGS"
14885 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14887 $as_echo "$supported" >&6; }
14888 if test "$supported" = "yes" ; then
14889 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
14906 xorg_testset_save_CFLAGS="$CFLAGS"
14908 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14911 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14912 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14913 $as_echo_n "(cached) " >&6
14915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14916 /* end confdefs.h. */
14919 if ac_fn_c_try_compile "$LINENO"; then :
14920 xorg_cv_compiler_flag_unknown_warning_option=yes
14922 xorg_cv_compiler_flag_unknown_warning_option=no
14924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14927 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14928 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14929 CFLAGS="$xorg_testset_save_CFLAGS"
14932 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14933 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14938 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14939 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14940 $as_echo_n "(cached) " >&6
14942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14943 /* end confdefs.h. */
14946 if ac_fn_c_try_compile "$LINENO"; then :
14947 xorg_cv_compiler_flag_unused_command_line_argument=yes
14949 xorg_cv_compiler_flag_unused_command_line_argument=no
14951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14954 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14955 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14956 CFLAGS="$xorg_testset_save_CFLAGS"
14961 if test $found = "no" ; then
14962 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14966 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14970 CFLAGS="$CFLAGS -Werror=address"
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
14973 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
14974 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address`
14975 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14976 $as_echo_n "(cached) " >&6
14978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14979 /* end confdefs.h. */
14989 if ac_fn_c_try_link "$LINENO"; then :
14990 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14992 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14994 rm -f core conftest.err conftest.$ac_objext \
14995 conftest$ac_exeext conftest.$ac_ext
14999 CFLAGS="$xorg_testset_save_CFLAGS"
15001 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15003 $as_echo "$supported" >&6; }
15004 if test "$supported" = "yes" ; then
15005 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15022 xorg_testset_save_CFLAGS="$CFLAGS"
15024 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15027 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15028 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15029 $as_echo_n "(cached) " >&6
15031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15032 /* end confdefs.h. */
15035 if ac_fn_c_try_compile "$LINENO"; then :
15036 xorg_cv_compiler_flag_unknown_warning_option=yes
15038 xorg_cv_compiler_flag_unknown_warning_option=no
15040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15043 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15044 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15045 CFLAGS="$xorg_testset_save_CFLAGS"
15048 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15049 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15054 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15055 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15056 $as_echo_n "(cached) " >&6
15058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15059 /* end confdefs.h. */
15062 if ac_fn_c_try_compile "$LINENO"; then :
15063 xorg_cv_compiler_flag_unused_command_line_argument=yes
15065 xorg_cv_compiler_flag_unused_command_line_argument=no
15067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15070 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15071 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15072 CFLAGS="$xorg_testset_save_CFLAGS"
15077 if test $found = "no" ; then
15078 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15082 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15086 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15089 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15090 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
15091 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15092 $as_echo_n "(cached) " >&6
15094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15095 /* end confdefs.h. */
15105 if ac_fn_c_try_link "$LINENO"; then :
15106 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15108 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15110 rm -f core conftest.err conftest.$ac_objext \
15111 conftest$ac_exeext conftest.$ac_ext
15115 CFLAGS="$xorg_testset_save_CFLAGS"
15117 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15119 $as_echo "$supported" >&6; }
15120 if test "$supported" = "yes" ; then
15121 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15126 if test $found = "no" ; then
15127 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15131 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15135 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15138 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15139 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
15140 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15141 $as_echo_n "(cached) " >&6
15143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15144 /* end confdefs.h. */
15154 if ac_fn_c_try_link "$LINENO"; then :
15155 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15157 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15159 rm -f core conftest.err conftest.$ac_objext \
15160 conftest$ac_exeext conftest.$ac_ext
15164 CFLAGS="$xorg_testset_save_CFLAGS"
15166 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15168 $as_echo "$supported" >&6; }
15169 if test "$supported" = "yes" ; then
15170 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15187 xorg_testset_save_CFLAGS="$CFLAGS"
15189 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15192 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15193 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15194 $as_echo_n "(cached) " >&6
15196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15197 /* end confdefs.h. */
15200 if ac_fn_c_try_compile "$LINENO"; then :
15201 xorg_cv_compiler_flag_unknown_warning_option=yes
15203 xorg_cv_compiler_flag_unknown_warning_option=no
15205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15208 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15209 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15210 CFLAGS="$xorg_testset_save_CFLAGS"
15213 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15214 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15219 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15220 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15221 $as_echo_n "(cached) " >&6
15223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15224 /* end confdefs.h. */
15227 if ac_fn_c_try_compile "$LINENO"; then :
15228 xorg_cv_compiler_flag_unused_command_line_argument=yes
15230 xorg_cv_compiler_flag_unused_command_line_argument=no
15232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15235 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15236 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15237 CFLAGS="$xorg_testset_save_CFLAGS"
15242 if test $found = "no" ; then
15243 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15247 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15251 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15254 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15255 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
15256 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15257 $as_echo_n "(cached) " >&6
15259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15260 /* end confdefs.h. */
15270 if ac_fn_c_try_link "$LINENO"; then :
15271 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15273 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15275 rm -f core conftest.err conftest.$ac_objext \
15276 conftest$ac_exeext conftest.$ac_ext
15280 CFLAGS="$xorg_testset_save_CFLAGS"
15282 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15284 $as_echo "$supported" >&6; }
15285 if test "$supported" = "yes" ; then
15286 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15291 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15293 { $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
15294 $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;}
15306 xorg_testset_save_CFLAGS="$CFLAGS"
15308 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15311 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15312 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15313 $as_echo_n "(cached) " >&6
15315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15316 /* end confdefs.h. */
15319 if ac_fn_c_try_compile "$LINENO"; then :
15320 xorg_cv_compiler_flag_unknown_warning_option=yes
15322 xorg_cv_compiler_flag_unknown_warning_option=no
15324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15327 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15328 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15329 CFLAGS="$xorg_testset_save_CFLAGS"
15332 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15333 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15338 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15339 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15340 $as_echo_n "(cached) " >&6
15342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15343 /* end confdefs.h. */
15346 if ac_fn_c_try_compile "$LINENO"; then :
15347 xorg_cv_compiler_flag_unused_command_line_argument=yes
15349 xorg_cv_compiler_flag_unused_command_line_argument=no
15351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15354 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15355 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15356 CFLAGS="$xorg_testset_save_CFLAGS"
15361 if test $found = "no" ; then
15362 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15363 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15366 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15370 CFLAGS="$CFLAGS -Wimplicit"
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15373 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15374 cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit`
15375 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15376 $as_echo_n "(cached) " >&6
15378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15379 /* end confdefs.h. */
15389 if ac_fn_c_try_link "$LINENO"; then :
15390 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15392 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15394 rm -f core conftest.err conftest.$ac_objext \
15395 conftest$ac_exeext conftest.$ac_ext
15399 CFLAGS="$xorg_testset_save_CFLAGS"
15401 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15403 $as_echo "$supported" >&6; }
15404 if test "$supported" = "yes" ; then
15405 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15422 xorg_testset_save_CFLAGS="$CFLAGS"
15424 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15427 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15428 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15429 $as_echo_n "(cached) " >&6
15431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15432 /* end confdefs.h. */
15435 if ac_fn_c_try_compile "$LINENO"; then :
15436 xorg_cv_compiler_flag_unknown_warning_option=yes
15438 xorg_cv_compiler_flag_unknown_warning_option=no
15440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15443 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15444 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15445 CFLAGS="$xorg_testset_save_CFLAGS"
15448 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15449 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15454 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15455 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15456 $as_echo_n "(cached) " >&6
15458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15459 /* end confdefs.h. */
15462 if ac_fn_c_try_compile "$LINENO"; then :
15463 xorg_cv_compiler_flag_unused_command_line_argument=yes
15465 xorg_cv_compiler_flag_unused_command_line_argument=no
15467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15470 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15471 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15472 CFLAGS="$xorg_testset_save_CFLAGS"
15477 if test $found = "no" ; then
15478 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15479 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15482 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15486 CFLAGS="$CFLAGS -Wnonnull"
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15489 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15490 cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull`
15491 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15492 $as_echo_n "(cached) " >&6
15494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15495 /* end confdefs.h. */
15505 if ac_fn_c_try_link "$LINENO"; then :
15506 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15508 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15510 rm -f core conftest.err conftest.$ac_objext \
15511 conftest$ac_exeext conftest.$ac_ext
15515 CFLAGS="$xorg_testset_save_CFLAGS"
15517 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15519 $as_echo "$supported" >&6; }
15520 if test "$supported" = "yes" ; then
15521 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15538 xorg_testset_save_CFLAGS="$CFLAGS"
15540 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15543 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15544 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15545 $as_echo_n "(cached) " >&6
15547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15548 /* end confdefs.h. */
15551 if ac_fn_c_try_compile "$LINENO"; then :
15552 xorg_cv_compiler_flag_unknown_warning_option=yes
15554 xorg_cv_compiler_flag_unknown_warning_option=no
15556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15559 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15560 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15561 CFLAGS="$xorg_testset_save_CFLAGS"
15564 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15565 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15570 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15571 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15572 $as_echo_n "(cached) " >&6
15574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15575 /* end confdefs.h. */
15578 if ac_fn_c_try_compile "$LINENO"; then :
15579 xorg_cv_compiler_flag_unused_command_line_argument=yes
15581 xorg_cv_compiler_flag_unused_command_line_argument=no
15583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15586 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15587 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15588 CFLAGS="$xorg_testset_save_CFLAGS"
15593 if test $found = "no" ; then
15594 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15598 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15602 CFLAGS="$CFLAGS -Winit-self"
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15605 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15606 cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self`
15607 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15608 $as_echo_n "(cached) " >&6
15610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15611 /* end confdefs.h. */
15621 if ac_fn_c_try_link "$LINENO"; then :
15622 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15624 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15626 rm -f core conftest.err conftest.$ac_objext \
15627 conftest$ac_exeext conftest.$ac_ext
15631 CFLAGS="$xorg_testset_save_CFLAGS"
15633 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15635 $as_echo "$supported" >&6; }
15636 if test "$supported" = "yes" ; then
15637 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15654 xorg_testset_save_CFLAGS="$CFLAGS"
15656 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15659 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15660 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15661 $as_echo_n "(cached) " >&6
15663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15664 /* end confdefs.h. */
15667 if ac_fn_c_try_compile "$LINENO"; then :
15668 xorg_cv_compiler_flag_unknown_warning_option=yes
15670 xorg_cv_compiler_flag_unknown_warning_option=no
15672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15675 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15676 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15677 CFLAGS="$xorg_testset_save_CFLAGS"
15680 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15681 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15686 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15687 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15688 $as_echo_n "(cached) " >&6
15690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15691 /* end confdefs.h. */
15694 if ac_fn_c_try_compile "$LINENO"; then :
15695 xorg_cv_compiler_flag_unused_command_line_argument=yes
15697 xorg_cv_compiler_flag_unused_command_line_argument=no
15699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15702 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15703 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15704 CFLAGS="$xorg_testset_save_CFLAGS"
15709 if test $found = "no" ; then
15710 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15714 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15718 CFLAGS="$CFLAGS -Wmain"
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15721 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
15722 cacheid=`$as_echo xorg_cv_cc_flag_-Wmain`
15723 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15724 $as_echo_n "(cached) " >&6
15726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15727 /* end confdefs.h. */
15737 if ac_fn_c_try_link "$LINENO"; then :
15738 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15740 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15742 rm -f core conftest.err conftest.$ac_objext \
15743 conftest$ac_exeext conftest.$ac_ext
15747 CFLAGS="$xorg_testset_save_CFLAGS"
15749 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15751 $as_echo "$supported" >&6; }
15752 if test "$supported" = "yes" ; then
15753 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15770 xorg_testset_save_CFLAGS="$CFLAGS"
15772 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15775 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15776 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15777 $as_echo_n "(cached) " >&6
15779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15780 /* end confdefs.h. */
15783 if ac_fn_c_try_compile "$LINENO"; then :
15784 xorg_cv_compiler_flag_unknown_warning_option=yes
15786 xorg_cv_compiler_flag_unknown_warning_option=no
15788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15791 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15792 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15793 CFLAGS="$xorg_testset_save_CFLAGS"
15796 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15797 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15802 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15803 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15804 $as_echo_n "(cached) " >&6
15806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15807 /* end confdefs.h. */
15810 if ac_fn_c_try_compile "$LINENO"; then :
15811 xorg_cv_compiler_flag_unused_command_line_argument=yes
15813 xorg_cv_compiler_flag_unused_command_line_argument=no
15815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15818 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15819 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15820 CFLAGS="$xorg_testset_save_CFLAGS"
15825 if test $found = "no" ; then
15826 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15830 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15834 CFLAGS="$CFLAGS -Wmissing-braces"
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
15837 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
15838 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces`
15839 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15840 $as_echo_n "(cached) " >&6
15842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15843 /* end confdefs.h. */
15853 if ac_fn_c_try_link "$LINENO"; then :
15854 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15856 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15858 rm -f core conftest.err conftest.$ac_objext \
15859 conftest$ac_exeext conftest.$ac_ext
15863 CFLAGS="$xorg_testset_save_CFLAGS"
15865 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15867 $as_echo "$supported" >&6; }
15868 if test "$supported" = "yes" ; then
15869 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
15886 xorg_testset_save_CFLAGS="$CFLAGS"
15888 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15891 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15892 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15893 $as_echo_n "(cached) " >&6
15895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15896 /* end confdefs.h. */
15899 if ac_fn_c_try_compile "$LINENO"; then :
15900 xorg_cv_compiler_flag_unknown_warning_option=yes
15902 xorg_cv_compiler_flag_unknown_warning_option=no
15904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15907 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15908 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15909 CFLAGS="$xorg_testset_save_CFLAGS"
15912 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15913 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15918 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15919 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15920 $as_echo_n "(cached) " >&6
15922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15923 /* end confdefs.h. */
15926 if ac_fn_c_try_compile "$LINENO"; then :
15927 xorg_cv_compiler_flag_unused_command_line_argument=yes
15929 xorg_cv_compiler_flag_unused_command_line_argument=no
15931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15934 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15935 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15936 CFLAGS="$xorg_testset_save_CFLAGS"
15941 if test $found = "no" ; then
15942 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15946 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15950 CFLAGS="$CFLAGS -Wsequence-point"
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
15953 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
15954 cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point`
15955 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15956 $as_echo_n "(cached) " >&6
15958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15959 /* end confdefs.h. */
15969 if ac_fn_c_try_link "$LINENO"; then :
15970 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15972 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15974 rm -f core conftest.err conftest.$ac_objext \
15975 conftest$ac_exeext conftest.$ac_ext
15979 CFLAGS="$xorg_testset_save_CFLAGS"
15981 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15983 $as_echo "$supported" >&6; }
15984 if test "$supported" = "yes" ; then
15985 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16002 xorg_testset_save_CFLAGS="$CFLAGS"
16004 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16007 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16008 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16009 $as_echo_n "(cached) " >&6
16011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012 /* end confdefs.h. */
16015 if ac_fn_c_try_compile "$LINENO"; then :
16016 xorg_cv_compiler_flag_unknown_warning_option=yes
16018 xorg_cv_compiler_flag_unknown_warning_option=no
16020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16023 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16024 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16025 CFLAGS="$xorg_testset_save_CFLAGS"
16028 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16029 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16034 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16035 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} 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_compiler_flag_unused_command_line_argument=yes
16045 xorg_cv_compiler_flag_unused_command_line_argument=no
16047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16050 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16051 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16052 CFLAGS="$xorg_testset_save_CFLAGS"
16057 if test $found = "no" ; then
16058 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16062 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16066 CFLAGS="$CFLAGS -Wreturn-type"
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16069 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16070 cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type`
16071 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16072 $as_echo_n "(cached) " >&6
16074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16075 /* end confdefs.h. */
16085 if ac_fn_c_try_link "$LINENO"; then :
16086 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16088 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16090 rm -f core conftest.err conftest.$ac_objext \
16091 conftest$ac_exeext conftest.$ac_ext
16095 CFLAGS="$xorg_testset_save_CFLAGS"
16097 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16099 $as_echo "$supported" >&6; }
16100 if test "$supported" = "yes" ; then
16101 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16118 xorg_testset_save_CFLAGS="$CFLAGS"
16120 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16123 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16124 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16125 $as_echo_n "(cached) " >&6
16127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16128 /* end confdefs.h. */
16131 if ac_fn_c_try_compile "$LINENO"; then :
16132 xorg_cv_compiler_flag_unknown_warning_option=yes
16134 xorg_cv_compiler_flag_unknown_warning_option=no
16136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16139 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16140 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16141 CFLAGS="$xorg_testset_save_CFLAGS"
16144 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16145 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16150 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16151 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16152 $as_echo_n "(cached) " >&6
16154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16155 /* end confdefs.h. */
16158 if ac_fn_c_try_compile "$LINENO"; then :
16159 xorg_cv_compiler_flag_unused_command_line_argument=yes
16161 xorg_cv_compiler_flag_unused_command_line_argument=no
16163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16166 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16167 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16168 CFLAGS="$xorg_testset_save_CFLAGS"
16173 if test $found = "no" ; then
16174 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16178 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16182 CFLAGS="$CFLAGS -Wtrigraphs"
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16185 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16186 cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs`
16187 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16188 $as_echo_n "(cached) " >&6
16190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16191 /* end confdefs.h. */
16201 if ac_fn_c_try_link "$LINENO"; then :
16202 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16204 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16206 rm -f core conftest.err conftest.$ac_objext \
16207 conftest$ac_exeext conftest.$ac_ext
16211 CFLAGS="$xorg_testset_save_CFLAGS"
16213 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16215 $as_echo "$supported" >&6; }
16216 if test "$supported" = "yes" ; then
16217 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16234 xorg_testset_save_CFLAGS="$CFLAGS"
16236 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16239 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16240 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16241 $as_echo_n "(cached) " >&6
16243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16244 /* end confdefs.h. */
16247 if ac_fn_c_try_compile "$LINENO"; then :
16248 xorg_cv_compiler_flag_unknown_warning_option=yes
16250 xorg_cv_compiler_flag_unknown_warning_option=no
16252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16255 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16256 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16257 CFLAGS="$xorg_testset_save_CFLAGS"
16260 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16261 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16266 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16267 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16268 $as_echo_n "(cached) " >&6
16270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16271 /* end confdefs.h. */
16274 if ac_fn_c_try_compile "$LINENO"; then :
16275 xorg_cv_compiler_flag_unused_command_line_argument=yes
16277 xorg_cv_compiler_flag_unused_command_line_argument=no
16279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16282 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16283 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16284 CFLAGS="$xorg_testset_save_CFLAGS"
16289 if test $found = "no" ; then
16290 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16294 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16298 CFLAGS="$CFLAGS -Warray-bounds"
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16301 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16302 cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds`
16303 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16304 $as_echo_n "(cached) " >&6
16306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16307 /* end confdefs.h. */
16317 if ac_fn_c_try_link "$LINENO"; then :
16318 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16320 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16322 rm -f core conftest.err conftest.$ac_objext \
16323 conftest$ac_exeext conftest.$ac_ext
16327 CFLAGS="$xorg_testset_save_CFLAGS"
16329 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16331 $as_echo "$supported" >&6; }
16332 if test "$supported" = "yes" ; then
16333 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16350 xorg_testset_save_CFLAGS="$CFLAGS"
16352 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16353 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16355 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16356 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16357 $as_echo_n "(cached) " >&6
16359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16360 /* end confdefs.h. */
16363 if ac_fn_c_try_compile "$LINENO"; then :
16364 xorg_cv_compiler_flag_unknown_warning_option=yes
16366 xorg_cv_compiler_flag_unknown_warning_option=no
16368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16371 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16372 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16373 CFLAGS="$xorg_testset_save_CFLAGS"
16376 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16377 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16382 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16383 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16384 $as_echo_n "(cached) " >&6
16386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16387 /* end confdefs.h. */
16390 if ac_fn_c_try_compile "$LINENO"; then :
16391 xorg_cv_compiler_flag_unused_command_line_argument=yes
16393 xorg_cv_compiler_flag_unused_command_line_argument=no
16395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16398 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16399 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16400 CFLAGS="$xorg_testset_save_CFLAGS"
16405 if test $found = "no" ; then
16406 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16410 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16414 CFLAGS="$CFLAGS -Wwrite-strings"
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16417 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16418 cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings`
16419 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16420 $as_echo_n "(cached) " >&6
16422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16423 /* end confdefs.h. */
16433 if ac_fn_c_try_link "$LINENO"; then :
16434 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16436 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16438 rm -f core conftest.err conftest.$ac_objext \
16439 conftest$ac_exeext conftest.$ac_ext
16443 CFLAGS="$xorg_testset_save_CFLAGS"
16445 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16447 $as_echo "$supported" >&6; }
16448 if test "$supported" = "yes" ; then
16449 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16466 xorg_testset_save_CFLAGS="$CFLAGS"
16468 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16471 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16472 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16473 $as_echo_n "(cached) " >&6
16475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h. */
16479 if ac_fn_c_try_compile "$LINENO"; then :
16480 xorg_cv_compiler_flag_unknown_warning_option=yes
16482 xorg_cv_compiler_flag_unknown_warning_option=no
16484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16487 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16488 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16489 CFLAGS="$xorg_testset_save_CFLAGS"
16492 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16493 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16498 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16499 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16500 $as_echo_n "(cached) " >&6
16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h. */
16506 if ac_fn_c_try_compile "$LINENO"; then :
16507 xorg_cv_compiler_flag_unused_command_line_argument=yes
16509 xorg_cv_compiler_flag_unused_command_line_argument=no
16511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16514 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16515 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16516 CFLAGS="$xorg_testset_save_CFLAGS"
16521 if test $found = "no" ; then
16522 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16526 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16530 CFLAGS="$CFLAGS -Waddress"
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16533 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
16534 cacheid=`$as_echo xorg_cv_cc_flag_-Waddress`
16535 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16536 $as_echo_n "(cached) " >&6
16538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16539 /* end confdefs.h. */
16549 if ac_fn_c_try_link "$LINENO"; then :
16550 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16552 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16554 rm -f core conftest.err conftest.$ac_objext \
16555 conftest$ac_exeext conftest.$ac_ext
16559 CFLAGS="$xorg_testset_save_CFLAGS"
16561 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16563 $as_echo "$supported" >&6; }
16564 if test "$supported" = "yes" ; then
16565 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16582 xorg_testset_save_CFLAGS="$CFLAGS"
16584 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16587 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16588 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16589 $as_echo_n "(cached) " >&6
16591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16592 /* end confdefs.h. */
16595 if ac_fn_c_try_compile "$LINENO"; then :
16596 xorg_cv_compiler_flag_unknown_warning_option=yes
16598 xorg_cv_compiler_flag_unknown_warning_option=no
16600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16603 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16604 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16605 CFLAGS="$xorg_testset_save_CFLAGS"
16608 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16609 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16614 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16615 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16616 $as_echo_n "(cached) " >&6
16618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16619 /* end confdefs.h. */
16622 if ac_fn_c_try_compile "$LINENO"; then :
16623 xorg_cv_compiler_flag_unused_command_line_argument=yes
16625 xorg_cv_compiler_flag_unused_command_line_argument=no
16627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16630 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16631 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16632 CFLAGS="$xorg_testset_save_CFLAGS"
16637 if test $found = "no" ; then
16638 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16642 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16646 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16649 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16650 cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast`
16651 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16652 $as_echo_n "(cached) " >&6
16654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16655 /* end confdefs.h. */
16665 if ac_fn_c_try_link "$LINENO"; then :
16666 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16668 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16670 rm -f core conftest.err conftest.$ac_objext \
16671 conftest$ac_exeext conftest.$ac_ext
16675 CFLAGS="$xorg_testset_save_CFLAGS"
16677 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16679 $as_echo "$supported" >&6; }
16680 if test "$supported" = "yes" ; then
16681 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16698 xorg_testset_save_CFLAGS="$CFLAGS"
16700 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16703 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16704 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16705 $as_echo_n "(cached) " >&6
16707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16708 /* end confdefs.h. */
16711 if ac_fn_c_try_compile "$LINENO"; then :
16712 xorg_cv_compiler_flag_unknown_warning_option=yes
16714 xorg_cv_compiler_flag_unknown_warning_option=no
16716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16719 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16720 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16721 CFLAGS="$xorg_testset_save_CFLAGS"
16724 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16725 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16730 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16731 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16732 $as_echo_n "(cached) " >&6
16734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16735 /* end confdefs.h. */
16738 if ac_fn_c_try_compile "$LINENO"; then :
16739 xorg_cv_compiler_flag_unused_command_line_argument=yes
16741 xorg_cv_compiler_flag_unused_command_line_argument=no
16743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16746 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16747 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16748 CFLAGS="$xorg_testset_save_CFLAGS"
16753 if test $found = "no" ; then
16754 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16758 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16762 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
16765 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
16766 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast`
16767 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16768 $as_echo_n "(cached) " >&6
16770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16771 /* end confdefs.h. */
16781 if ac_fn_c_try_link "$LINENO"; then :
16782 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16784 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16786 rm -f core conftest.err conftest.$ac_objext \
16787 conftest$ac_exeext conftest.$ac_ext
16791 CFLAGS="$xorg_testset_save_CFLAGS"
16793 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16795 $as_echo "$supported" >&6; }
16796 if test "$supported" = "yes" ; then
16797 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
16811 CWARNFLAGS="$BASE_CFLAGS"
16812 if test "x$GCC" = xyes ; then
16813 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
16823 # Check whether --enable-strict-compilation was given.
16824 if test "${enable_strict_compilation+set}" = set; then :
16825 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
16847 xorg_testset_save_CFLAGS="$CFLAGS"
16849 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16852 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16853 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16854 $as_echo_n "(cached) " >&6
16856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16857 /* end confdefs.h. */
16860 if ac_fn_c_try_compile "$LINENO"; then :
16861 xorg_cv_compiler_flag_unknown_warning_option=yes
16863 xorg_cv_compiler_flag_unknown_warning_option=no
16865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16868 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16869 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16870 CFLAGS="$xorg_testset_save_CFLAGS"
16873 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16874 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16879 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16880 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16881 $as_echo_n "(cached) " >&6
16883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16884 /* end confdefs.h. */
16887 if ac_fn_c_try_compile "$LINENO"; then :
16888 xorg_cv_compiler_flag_unused_command_line_argument=yes
16890 xorg_cv_compiler_flag_unused_command_line_argument=no
16892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16895 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16896 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16897 CFLAGS="$xorg_testset_save_CFLAGS"
16902 if test $found = "no" ; then
16903 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16907 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16911 CFLAGS="$CFLAGS -pedantic"
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
16914 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
16915 cacheid=`$as_echo xorg_cv_cc_flag_-pedantic`
16916 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16917 $as_echo_n "(cached) " >&6
16919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16920 /* end confdefs.h. */
16930 if ac_fn_c_try_link "$LINENO"; then :
16931 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16933 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16935 rm -f core conftest.err conftest.$ac_objext \
16936 conftest$ac_exeext conftest.$ac_ext
16940 CFLAGS="$xorg_testset_save_CFLAGS"
16942 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16944 $as_echo "$supported" >&6; }
16945 if test "$supported" = "yes" ; then
16946 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
16963 xorg_testset_save_CFLAGS="$CFLAGS"
16965 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16968 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16969 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16970 $as_echo_n "(cached) " >&6
16972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16973 /* end confdefs.h. */
16976 if ac_fn_c_try_compile "$LINENO"; then :
16977 xorg_cv_compiler_flag_unknown_warning_option=yes
16979 xorg_cv_compiler_flag_unknown_warning_option=no
16981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16984 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16985 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16986 CFLAGS="$xorg_testset_save_CFLAGS"
16989 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16990 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16995 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16996 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16997 $as_echo_n "(cached) " >&6
16999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17000 /* end confdefs.h. */
17003 if ac_fn_c_try_compile "$LINENO"; then :
17004 xorg_cv_compiler_flag_unused_command_line_argument=yes
17006 xorg_cv_compiler_flag_unused_command_line_argument=no
17008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17011 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17012 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17013 CFLAGS="$xorg_testset_save_CFLAGS"
17018 if test $found = "no" ; then
17019 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17023 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17027 CFLAGS="$CFLAGS -Werror"
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17030 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17031 cacheid=`$as_echo xorg_cv_cc_flag_-Werror`
17032 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17033 $as_echo_n "(cached) " >&6
17035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17036 /* end confdefs.h. */
17046 if ac_fn_c_try_link "$LINENO"; then :
17047 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17049 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17051 rm -f core conftest.err conftest.$ac_objext \
17052 conftest$ac_exeext conftest.$ac_ext
17056 CFLAGS="$xorg_testset_save_CFLAGS"
17058 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17060 $as_echo "$supported" >&6; }
17061 if test "$supported" = "yes" ; then
17062 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17067 if test $found = "no" ; then
17068 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17072 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17076 CFLAGS="$CFLAGS -errwarn"
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17079 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17080 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn`
17081 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17082 $as_echo_n "(cached) " >&6
17084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17085 /* end confdefs.h. */
17095 if ac_fn_c_try_link "$LINENO"; then :
17096 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17098 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17100 rm -f core conftest.err conftest.$ac_objext \
17101 conftest$ac_exeext conftest.$ac_ext
17105 CFLAGS="$xorg_testset_save_CFLAGS"
17107 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17109 $as_echo "$supported" >&6; }
17110 if test "$supported" = "yes" ; then
17111 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17118 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17119 # activate it with -Werror, so we add it here explicitly.
17131 xorg_testset_save_CFLAGS="$CFLAGS"
17133 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
17134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
17136 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
17137 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
17138 $as_echo_n "(cached) " >&6
17140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17141 /* end confdefs.h. */
17144 if ac_fn_c_try_compile "$LINENO"; then :
17145 xorg_cv_compiler_flag_unknown_warning_option=yes
17147 xorg_cv_compiler_flag_unknown_warning_option=no
17149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
17152 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
17153 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
17154 CFLAGS="$xorg_testset_save_CFLAGS"
17157 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
17158 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
17163 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
17164 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
17165 $as_echo_n "(cached) " >&6
17167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17168 /* end confdefs.h. */
17171 if ac_fn_c_try_compile "$LINENO"; then :
17172 xorg_cv_compiler_flag_unused_command_line_argument=yes
17174 xorg_cv_compiler_flag_unused_command_line_argument=no
17176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17179 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17180 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17181 CFLAGS="$xorg_testset_save_CFLAGS"
17186 if test $found = "no" ; then
17187 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17191 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17195 CFLAGS="$CFLAGS -Werror=attributes"
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17198 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17199 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes`
17200 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17201 $as_echo_n "(cached) " >&6
17203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17204 /* end confdefs.h. */
17214 if ac_fn_c_try_link "$LINENO"; then :
17215 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17217 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17219 rm -f core conftest.err conftest.$ac_objext \
17220 conftest$ac_exeext conftest.$ac_ext
17224 CFLAGS="$xorg_testset_save_CFLAGS"
17226 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17228 $as_echo "$supported" >&6; }
17229 if test "$supported" = "yes" ; then
17230 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17237 if test "x$STRICT_COMPILE" = "xyes"; then
17238 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17239 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17247 cat >>confdefs.h <<_ACEOF
17248 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17251 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17252 if test "x$PVM" = "x"; then
17256 cat >>confdefs.h <<_ACEOF
17257 #define PACKAGE_VERSION_MINOR $PVM
17260 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17261 if test "x$PVP" = "x"; then
17265 cat >>confdefs.h <<_ACEOF
17266 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17271 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17272 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17273 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17274 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17279 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17280 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17281 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17282 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17283 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17290 if test x$APP_MAN_SUFFIX = x ; then
17293 if test x$APP_MAN_DIR = x ; then
17294 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17297 if test x$LIB_MAN_SUFFIX = x ; then
17300 if test x$LIB_MAN_DIR = x ; then
17301 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17304 if test x$FILE_MAN_SUFFIX = x ; then
17306 solaris*) FILE_MAN_SUFFIX=4 ;;
17307 *) FILE_MAN_SUFFIX=5 ;;
17310 if test x$FILE_MAN_DIR = x ; then
17311 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17314 if test x$MISC_MAN_SUFFIX = x ; then
17316 solaris*) MISC_MAN_SUFFIX=5 ;;
17317 *) MISC_MAN_SUFFIX=7 ;;
17320 if test x$MISC_MAN_DIR = x ; then
17321 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17324 if test x$DRIVER_MAN_SUFFIX = x ; then
17326 solaris*) DRIVER_MAN_SUFFIX=7 ;;
17327 *) DRIVER_MAN_SUFFIX=4 ;;
17330 if test x$DRIVER_MAN_DIR = x ; then
17331 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17334 if test x$ADMIN_MAN_SUFFIX = x ; then
17336 solaris*) ADMIN_MAN_SUFFIX=1m ;;
17337 *) ADMIN_MAN_SUFFIX=8 ;;
17340 if test x$ADMIN_MAN_DIR = x ; then
17341 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17358 XORG_MAN_PAGE="X Version 11"
17361 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17362 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17363 -e 's|__xservername__|Xorg|g' \
17364 -e 's|__xconfigfile__|xorg.conf|g' \
17365 -e 's|__projectroot__|\$(prefix)|g' \
17366 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17367 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17368 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17369 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17370 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17371 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17372 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17376 # Check whether --enable-silent-rules was given.
17377 if test "${enable_silent_rules+set}" = set; then :
17378 enableval=$enable_silent_rules;
17381 case $enable_silent_rules in
17382 yes) AM_DEFAULT_VERBOSITY=0;;
17383 no) AM_DEFAULT_VERBOSITY=1;;
17384 *) AM_DEFAULT_VERBOSITY=0;;
17390 # Check whether --enable-malloc0returnsnull was given.
17391 if test "${enable_malloc0returnsnull+set}" = set; then :
17392 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
17394 MALLOC_ZERO_RETURNS_NULL=auto
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
17399 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
17400 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
17401 if test "$cross_compiling" = yes; then :
17402 MALLOC_ZERO_RETURNS_NULL=yes
17404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17405 /* end confdefs.h. */
17407 #include <stdlib.h>
17413 char *m0, *r0, *c0, *p;
17418 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
17424 if ac_fn_c_try_run "$LINENO"; then :
17425 MALLOC_ZERO_RETURNS_NULL=yes
17427 MALLOC_ZERO_RETURNS_NULL=no
17429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17430 conftest.$ac_objext conftest.beam conftest.$ac_ext
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
17435 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
17437 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
17438 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
17439 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
17440 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
17442 MALLOC_ZERO_CFLAGS=""
17443 XMALLOC_ZERO_CFLAGS=""
17444 XTMALLOC_ZERO_CFLAGS=""
17452 # Obtain compiler/linker options for depedencies
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XV" >&5
17456 $as_echo_n "checking for XV... " >&6; }
17458 if test -n "$XV_CFLAGS"; then
17459 pkg_cv_XV_CFLAGS="$XV_CFLAGS"
17460 elif test -n "$PKG_CONFIG"; then
17461 if test -n "$PKG_CONFIG" && \
17462 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto videoproto\""; } >&5
17463 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto videoproto") 2>&5
17465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17466 test $ac_status = 0; }; then
17467 pkg_cv_XV_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto videoproto" 2>/dev/null`
17474 if test -n "$XV_LIBS"; then
17475 pkg_cv_XV_LIBS="$XV_LIBS"
17476 elif test -n "$PKG_CONFIG"; then
17477 if test -n "$PKG_CONFIG" && \
17478 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto videoproto\""; } >&5
17479 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto videoproto") 2>&5
17481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17482 test $ac_status = 0; }; then
17483 pkg_cv_XV_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto videoproto" 2>/dev/null`
17493 if test $pkg_failed = yes; then
17495 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17496 _pkg_short_errors_supported=yes
17498 _pkg_short_errors_supported=no
17500 if test $_pkg_short_errors_supported = yes; then
17501 XV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xextproto videoproto" 2>&1`
17503 XV_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xextproto videoproto" 2>&1`
17505 # Put the nasty error message in config.log where it belongs
17506 echo "$XV_PKG_ERRORS" >&5
17508 as_fn_error $? "Package requirements (x11 xext xextproto videoproto) were not met:
17512 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17513 installed software in a non-standard prefix.
17515 Alternatively, you may set the environment variables XV_CFLAGS
17516 and XV_LIBS to avoid the need to call pkg-config.
17517 See the pkg-config man page for more details.
17519 elif test $pkg_failed = untried; then
17520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17522 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17523 is in your PATH or set the PKG_CONFIG environment variable to the full
17524 path to pkg-config.
17526 Alternatively, you may set the environment variables XV_CFLAGS
17527 and XV_LIBS to avoid the need to call pkg-config.
17528 See the pkg-config man page for more details.
17530 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17531 See \`config.log' for more details" "$LINENO" 5; }
17533 XV_CFLAGS=$pkg_cv_XV_CFLAGS
17534 XV_LIBS=$pkg_cv_XV_LIBS
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17536 $as_echo "yes" >&6; }
17540 # Allow checking code with lint, sparse, etc.
17546 # Check whether --with-lint was given.
17547 if test "${with_lint+set}" = set; then :
17548 withval=$with_lint; use_lint=$withval
17554 # Obtain platform specific info like program name and options
17555 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
17557 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
17559 lint_options="-badflag"
17561 *freebsd* | *netbsd*)
17563 lint_options="-u -b"
17567 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
17571 # Test for the presence of the program (either guessed by the code or spelled out by the user)
17572 if test "x$use_lint" = x"yes" ; then
17573 # Extract the first word of "$lint_name", so it can be a program name with args.
17574 set dummy $lint_name; 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_LINT+:} false; then :
17578 $as_echo_n "(cached) " >&6
17582 ac_cv_path_LINT="$LINT" # 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_LINT="$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 LINT=$ac_cv_path_LINT
17604 if test -n "$LINT"; then
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
17606 $as_echo "$LINT" >&6; }
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17609 $as_echo "no" >&6; }
17613 if test "x$LINT" = "x"; then
17614 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
17616 elif test "x$use_lint" = x"no" ; then
17617 if test "x$LINT" != "x"; then
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
17619 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
17622 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
17625 # User supplied flags override default flags
17626 if test "x$LINT_FLAGS" != "x"; then
17627 lint_options=$LINT_FLAGS
17630 LINT_FLAGS=$lint_options
17632 if test "x$LINT" != x; then
17644 # Check whether --enable-lint-library was given.
17645 if test "${enable_lint_library+set}" = set; then :
17646 enableval=$enable_lint_library; make_lint_lib=$enableval
17652 if test "x$make_lint_lib" = x"yes" ; then
17653 LINTLIB=llib-lXv.ln
17654 if test "x$LINT" = "x"; then
17655 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
17657 elif test "x$make_lint_lib" != x"no" ; then
17658 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
17662 if test x$make_lint_lib != xno; then
17663 MAKE_LINT_LIB_TRUE=
17664 MAKE_LINT_LIB_FALSE='#'
17666 MAKE_LINT_LIB_TRUE='#'
17667 MAKE_LINT_LIB_FALSE=
17673 ac_config_files="$ac_config_files Makefile include/Makefile include/X11/Makefile include/X11/extensions/Makefile src/Makefile man/Makefile xv.pc"
17675 cat >confcache <<\_ACEOF
17676 # This file is a shell script that caches the results of configure
17677 # tests run on this system so they can be shared between configure
17678 # scripts and configure runs, see configure's option --config-cache.
17679 # It is not useful on other systems. If it contains results you don't
17680 # want to keep, you may remove or edit it.
17682 # config.status only pays attention to the cache file if you give it
17683 # the --recheck option to rerun configure.
17685 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17686 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17687 # following values.
17691 # The following way of writing the cache mishandles newlines in values,
17692 # but we know of no workaround that is simple, portable, and efficient.
17693 # So, we kill variables containing newlines.
17694 # Ultrix sh set writes to stderr and can't be redirected directly,
17695 # and sets the high bit in the cache file unless we assign to the vars.
17697 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17698 eval ac_val=\$$ac_var
17702 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17703 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17706 _ | IFS | as_nl) ;; #(
17707 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17708 *) { eval $ac_var=; unset $ac_var;} ;;
17714 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17715 *${as_nl}ac_space=\ *)
17716 # `set' does not quote correctly, so add quotes: double-quote
17717 # substitution turns \\\\ into \\, and sed turns \\ into \.
17720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17723 # `set' quotes correctly as required by POSIX, so do not add quotes.
17724 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17733 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17735 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17737 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17738 if test -w "$cache_file"; then
17739 if test "x$cache_file" != "x/dev/null"; then
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17741 $as_echo "$as_me: updating cache $cache_file" >&6;}
17742 if test ! -f "$cache_file" || test -h "$cache_file"; then
17743 cat confcache >"$cache_file"
17745 case $cache_file in #(
17747 mv -f confcache "$cache_file"$$ &&
17748 mv -f "$cache_file"$$ "$cache_file" ;; #(
17750 mv -f confcache "$cache_file" ;;
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17756 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17761 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17762 # Let make expand exec_prefix.
17763 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17765 DEFS=-DHAVE_CONFIG_H
17770 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17771 # 1. Remove the extension, and $U if already installed.
17772 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17773 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17774 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17775 # will be set to the directory where LIBOBJS objects are built.
17776 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17777 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17779 LIBOBJS=$ac_libobjs
17781 LTLIBOBJS=$ac_ltlibobjs
17784 if test -n "$EXEEXT"; then
17786 am__EXEEXT_FALSE='#'
17788 am__EXEEXT_TRUE='#'
17792 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17793 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17796 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17797 as_fn_error $? "conditional \"AMDEP\" was never defined.
17798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17800 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17801 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17804 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
17805 as_fn_error $? "conditional \"LINT\" was never defined.
17806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17808 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
17809 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
17810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17813 : "${CONFIG_STATUS=./config.status}"
17815 ac_clean_files_save=$ac_clean_files
17816 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17818 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17820 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17822 # Generated by $as_me.
17823 # Run this file to recreate the current configuration.
17824 # Compiler output produced by configure, useful for debugging
17825 # configure, is in config.log if it exists.
17828 ac_cs_recheck=false
17831 SHELL=\${CONFIG_SHELL-$SHELL}
17834 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17835 ## -------------------- ##
17836 ## M4sh Initialization. ##
17837 ## -------------------- ##
17839 # Be more Bourne compatible
17840 DUALCASE=1; export DUALCASE # for MKS sh
17841 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17844 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17845 # is contrary to our usage. Disable this feature.
17846 alias -g '${1+"$@"}'='"$@"'
17847 setopt NO_GLOB_SUBST
17849 case `(set -o) 2>/dev/null` in #(
17861 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17862 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17863 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17864 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17865 # Prefer a ksh shell builtin over an external printf program on Solaris,
17866 # but without wasting forks for bash or zsh.
17867 if test -z "$BASH_VERSION$ZSH_VERSION" \
17868 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17869 as_echo='print -r --'
17870 as_echo_n='print -rn --'
17871 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17872 as_echo='printf %s\n'
17873 as_echo_n='printf %s'
17875 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17876 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17877 as_echo_n='/usr/ucb/echo -n'
17879 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17880 as_echo_n_body='eval
17884 expr "X$arg" : "X\\(.*\\)$as_nl";
17885 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17887 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17889 export as_echo_n_body
17890 as_echo_n='sh -c $as_echo_n_body as_echo'
17892 export as_echo_body
17893 as_echo='sh -c $as_echo_body as_echo'
17896 # The user is always right.
17897 if test "${PATH_SEPARATOR+set}" != set; then
17899 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17900 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17907 # We need space, tab and new line, in precisely that order. Quoting is
17908 # there to prevent editors from complaining about space-tab.
17909 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17910 # splitting by setting IFS to empty value.)
17913 # Find who we are. Look in the path if we contain no directory separator.
17916 *[\\/]* ) as_myself=$0 ;;
17917 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17918 for as_dir in $PATH
17921 test -z "$as_dir" && as_dir=.
17922 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17928 # We did not find ourselves, most probably we were run as `sh COMMAND'
17929 # in which case we are not to be found in the path.
17930 if test "x$as_myself" = x; then
17933 if test ! -f "$as_myself"; then
17934 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17938 # Unset variables that we do not need and which cause bugs (e.g. in
17939 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17940 # suppresses any "Segmentation fault" message there. '((' could
17941 # trigger a bug in pdksh 5.2.14.
17942 for as_var in BASH_ENV ENV MAIL MAILPATH
17943 do eval test x\${$as_var+set} = xset \
17944 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17957 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17960 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17961 # ----------------------------------------
17962 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17963 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17964 # script with STATUS, using 1 if that was 0.
17967 as_status=$1; test $as_status -eq 0 && as_status=1
17969 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17970 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17972 $as_echo "$as_me: error: $2" >&2
17973 as_fn_exit $as_status
17977 # as_fn_set_status STATUS
17978 # -----------------------
17979 # Set $? to STATUS, without forking.
17980 as_fn_set_status ()
17983 } # as_fn_set_status
17985 # as_fn_exit STATUS
17986 # -----------------
17987 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17991 as_fn_set_status $1
17997 # Portably unset VAR.
18000 { eval $1=; unset $1;}
18002 as_unset=as_fn_unset
18003 # as_fn_append VAR VALUE
18004 # ----------------------
18005 # Append the text in VALUE to the end of the definition contained in VAR. Take
18006 # advantage of any shell optimizations that allow amortized linear growth over
18007 # repeated appends, instead of the typical quadratic growth present in naive
18009 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18010 eval 'as_fn_append ()
18021 # as_fn_arith ARG...
18022 # ------------------
18023 # Perform arithmetic evaluation on the ARGs, and store the result in the
18024 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18025 # must be portable across $(()) and expr.
18026 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18027 eval 'as_fn_arith ()
18034 as_val=`expr "$@" || test $? -eq 1`
18039 if expr a : '\(a\)' >/dev/null 2>&1 &&
18040 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18046 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18047 as_basename=basename
18052 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18058 as_me=`$as_basename -- "$0" ||
18059 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18060 X"$0" : 'X\(//\)$' \| \
18061 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18063 sed '/^.*\/\([^/][^/]*\)\/*$/{
18077 # Avoid depending upon Character Ranges.
18078 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18079 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18080 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18081 as_cr_digits='0123456789'
18082 as_cr_alnum=$as_cr_Letters$as_cr_digits
18084 ECHO_C= ECHO_N= ECHO_T=
18085 case `echo -n x` in #(((((
18087 case `echo 'xy\c'` in
18088 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18090 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18097 rm -f conf$$ conf$$.exe conf$$.file
18098 if test -d conf$$.dir; then
18099 rm -f conf$$.dir/conf$$.file
18102 mkdir conf$$.dir 2>/dev/null
18104 if (echo >conf$$.file) 2>/dev/null; then
18105 if ln -s conf$$.file conf$$ 2>/dev/null; then
18107 # ... but there are two gotchas:
18108 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18109 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18110 # In both cases, we have to default to `cp -p'.
18111 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18113 elif ln conf$$.file conf$$ 2>/dev/null; then
18121 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18122 rmdir conf$$.dir 2>/dev/null
18127 # Create "$as_dir" as a directory, including parents if necessary.
18132 -*) as_dir=./$as_dir;;
18134 test -d "$as_dir" || eval $as_mkdir_p || {
18138 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18139 *) as_qdir=$as_dir;;
18141 as_dirs="'$as_qdir' $as_dirs"
18142 as_dir=`$as_dirname -- "$as_dir" ||
18143 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18144 X"$as_dir" : 'X\(//\)[^/]' \| \
18145 X"$as_dir" : 'X\(//\)$' \| \
18146 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18147 $as_echo X"$as_dir" |
18148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18152 /^X\(\/\/\)[^/].*/{
18165 test -d "$as_dir" && break
18167 test -z "$as_dirs" || eval "mkdir $as_dirs"
18168 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18172 if mkdir -p . 2>/dev/null; then
18173 as_mkdir_p='mkdir -p "$as_dir"'
18175 test -d ./-p && rmdir ./-p
18179 if test -x / >/dev/null 2>&1; then
18180 as_test_x='test -x'
18182 if ls -dL / >/dev/null 2>&1; then
18189 if test -d "$1"; then
18195 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18196 ???[sx]*):;;*)false;;esac;fi
18200 as_executable_p=$as_test_x
18202 # Sed expression to map a string onto a valid CPP name.
18203 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18205 # Sed expression to map a string onto a valid variable name.
18206 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18210 ## ----------------------------------- ##
18211 ## Main body of $CONFIG_STATUS script. ##
18212 ## ----------------------------------- ##
18214 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18217 # Save the log message, to keep $0 and so on meaningful, and to
18218 # report actual input values of CONFIG_FILES etc. instead of their
18219 # values after options handling.
18221 This file was extended by libXv $as_me 1.0.7, which was
18222 generated by GNU Autoconf 2.68. Invocation command line was
18224 CONFIG_FILES = $CONFIG_FILES
18225 CONFIG_HEADERS = $CONFIG_HEADERS
18226 CONFIG_LINKS = $CONFIG_LINKS
18227 CONFIG_COMMANDS = $CONFIG_COMMANDS
18230 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18235 case $ac_config_files in *"
18236 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18239 case $ac_config_headers in *"
18240 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18245 # Files that config.status was made for.
18246 config_files="$ac_config_files"
18247 config_headers="$ac_config_headers"
18248 config_commands="$ac_config_commands"
18252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18254 \`$as_me' instantiates files and other configuration actions
18255 from templates according to the current configuration. Unless the files
18256 and actions are specified as TAGs, all are instantiated by default.
18258 Usage: $0 [OPTION]... [TAG]...
18260 -h, --help print this help, then exit
18261 -V, --version print version number and configuration settings, then exit
18262 --config print configuration, then exit
18263 -q, --quiet, --silent
18264 do not print progress messages
18265 -d, --debug don't remove temporary files
18266 --recheck update $as_me by reconfiguring in the same conditions
18267 --file=FILE[:TEMPLATE]
18268 instantiate the configuration file FILE
18269 --header=FILE[:TEMPLATE]
18270 instantiate the configuration header FILE
18272 Configuration files:
18275 Configuration headers:
18278 Configuration commands:
18281 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18285 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18287 libXv config.status 1.0.7
18288 configured by $0, generated by GNU Autoconf 2.68,
18289 with options \\"\$ac_cs_config\\"
18291 Copyright (C) 2010 Free Software Foundation, Inc.
18292 This config.status script is free software; the Free Software Foundation
18293 gives unlimited permission to copy, distribute and modify it."
18300 test -n "\$AWK" || AWK=awk
18303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18304 # The default lists apply if the user does not specify any file.
18310 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18311 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18315 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18327 # Handling of the options.
18328 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18330 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18331 $as_echo "$ac_cs_version"; exit ;;
18332 --config | --confi | --conf | --con | --co | --c )
18333 $as_echo "$ac_cs_config"; exit ;;
18334 --debug | --debu | --deb | --de | --d | -d )
18336 --file | --fil | --fi | --f )
18339 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18340 '') as_fn_error $? "missing file argument" ;;
18342 as_fn_append CONFIG_FILES " '$ac_optarg'"
18343 ac_need_defaults=false;;
18344 --header | --heade | --head | --hea )
18347 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18349 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18350 ac_need_defaults=false;;
18352 # Conflict between --help and --header
18353 as_fn_error $? "ambiguous option: \`$1'
18354 Try \`$0 --help' for more information.";;
18355 --help | --hel | -h )
18356 $as_echo "$ac_cs_usage"; exit ;;
18357 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18358 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18361 # This is an error.
18362 -*) as_fn_error $? "unrecognized option: \`$1'
18363 Try \`$0 --help' for more information." ;;
18365 *) as_fn_append ac_config_targets " $1"
18366 ac_need_defaults=false ;;
18372 ac_configure_extra_args=
18374 if $ac_cs_silent; then
18376 ac_configure_extra_args="$ac_configure_extra_args --silent"
18380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18381 if \$ac_cs_recheck; then
18382 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18384 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18385 CONFIG_SHELL='$SHELL'
18386 export CONFIG_SHELL
18391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18395 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18396 ## Running $as_me. ##
18402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18406 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18409 # The HP-UX ksh and POSIX shell print the target directory to stdout
18410 # if CDPATH is set.
18411 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18413 sed_quote_subst='$sed_quote_subst'
18414 double_quote_subst='$double_quote_subst'
18415 delay_variable_subst='$delay_variable_subst'
18416 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18417 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18418 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18419 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18420 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18421 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18422 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18423 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18424 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18425 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18426 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18427 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18428 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18429 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18430 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18431 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18432 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18433 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18434 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18435 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18436 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18437 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18438 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18439 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18440 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18441 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18442 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18443 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18444 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18445 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18446 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18447 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18448 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18449 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18450 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18451 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18452 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18453 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18454 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18455 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18456 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18457 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18458 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18459 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18460 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18461 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18462 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18463 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18464 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18465 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18466 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18467 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18468 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18469 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18470 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18471 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"`'
18472 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18473 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18474 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18475 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18476 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18477 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18478 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18479 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18480 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18481 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18482 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18483 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18484 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18485 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18486 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18487 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18488 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18489 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18490 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18491 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18492 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18493 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18494 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18495 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18496 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18497 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18498 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18499 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18500 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18501 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18502 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18503 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18504 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18505 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18506 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18507 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18508 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18509 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18510 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18511 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18512 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18513 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18514 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18515 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18516 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18517 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18518 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18519 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18520 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18521 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18522 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18523 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18524 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18525 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18526 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18527 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18528 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18529 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18530 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18531 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18532 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18533 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18534 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18535 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18536 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18537 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18538 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18539 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18540 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18541 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18542 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18543 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18544 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18545 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18548 LTCFLAGS='$LTCFLAGS'
18549 compiler='$compiler_DEFAULT'
18551 # A function that is used when there is no print builtin or printf.
18552 func_fallback_echo ()
18554 eval 'cat <<_LTECHO_EOF
18559 # Quote evaled strings.
18573 deplibs_check_method \
18578 sharedlib_from_linklib_cmd \
18581 archiver_list_spec \
18587 lt_cv_sys_global_symbol_pipe \
18588 lt_cv_sys_global_symbol_to_cdecl \
18589 lt_cv_sys_global_symbol_to_c_name_address \
18590 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18591 nm_file_list_spec \
18592 lt_prog_compiler_no_builtin_flag \
18593 lt_prog_compiler_pic \
18594 lt_prog_compiler_wl \
18595 lt_prog_compiler_static \
18596 lt_cv_prog_compiler_c_o \
18605 export_dynamic_flag_spec \
18606 whole_archive_flag_spec \
18607 compiler_needs_object \
18609 allow_undefined_flag \
18610 no_undefined_flag \
18611 hardcode_libdir_flag_spec \
18612 hardcode_libdir_flag_spec_ld \
18613 hardcode_libdir_separator \
18617 variables_saved_for_relink \
18619 library_names_spec \
18621 install_override_mode \
18625 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18626 *[\\\\\\\`\\"\\\$]*)
18627 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18630 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18635 # Double-quote double-evaled strings.
18636 for var in reload_cmds \
18637 old_postinstall_cmds \
18638 old_postuninstall_cmds \
18640 extract_expsyms_cmds \
18641 old_archive_from_new_cmds \
18642 old_archive_from_expsyms_cmds \
18644 archive_expsym_cmds \
18646 module_expsym_cmds \
18647 export_symbols_cmds \
18651 postuninstall_cmds \
18653 sys_lib_search_path_spec \
18654 sys_lib_dlsearch_path_spec; do
18655 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18656 *[\\\\\\\`\\"\\\$]*)
18657 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18660 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18665 ac_aux_dir='$ac_aux_dir'
18666 xsi_shell='$xsi_shell'
18667 lt_shell_append='$lt_shell_append'
18669 # See if we are running on zsh, and set the options which allow our
18670 # commands through without removal of \ escapes INIT.
18671 if test -n "\${ZSH_VERSION+set}" ; then
18672 setopt NO_GLOB_SUBST
18678 TIMESTAMP='$TIMESTAMP'
18687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18689 # Handling of arguments.
18690 for ac_config_target in $ac_config_targets
18692 case $ac_config_target in
18693 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18694 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18695 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18696 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18697 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18698 "include/X11/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/Makefile" ;;
18699 "include/X11/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/extensions/Makefile" ;;
18700 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18701 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18702 "xv.pc") CONFIG_FILES="$CONFIG_FILES xv.pc" ;;
18704 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18709 # If the user did not use the arguments to specify the items to instantiate,
18710 # then the envvar interface is used. Set only those that are not.
18711 # We use the long form for the default assignment because of an extremely
18712 # bizarre bug on SunOS 4.1.3.
18713 if $ac_need_defaults; then
18714 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18715 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18716 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18719 # Have a temporary directory for convenience. Make it in the build tree
18720 # simply because there is no reason against having it here, and in addition,
18721 # creating and moving files from /tmp can sometimes cause problems.
18722 # Hook for its removal unless debugging.
18723 # Note that there is a small window in which the directory will not be cleaned:
18724 # after its creation but before its name has been assigned to `$tmp'.
18728 trap 'exit_status=$?
18729 : "${ac_tmp:=$tmp}"
18730 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18732 trap 'as_fn_exit 1' 1 2 13 15
18734 # Create a (secure) tmp directory for tmp files.
18737 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18741 tmp=./conf$$-$RANDOM
18742 (umask 077 && mkdir "$tmp")
18743 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18746 # Set up the scripts for CONFIG_FILES section.
18747 # No need to generate them if there are no CONFIG_FILES.
18748 # This happens for instance with `./config.status config.h'.
18749 if test -n "$CONFIG_FILES"; then
18752 ac_cr=`echo X | tr X '\015'`
18753 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18754 # But we know of no other shell where ac_cr would be empty at this
18755 # point, so we can use a bashism as a fallback.
18756 if test "x$ac_cr" = x; then
18757 eval ac_cr=\$\'\\r\'
18759 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18760 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18763 ac_cs_awk_cr=$ac_cr
18766 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18771 echo "cat >conf$$subs.awk <<_ACEOF" &&
18772 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18774 } >conf$$subs.sh ||
18775 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18776 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18778 for ac_last_try in false false false false false :; do
18779 . ./conf$$subs.sh ||
18780 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18782 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18783 if test $ac_delim_n = $ac_delim_num; then
18785 elif $ac_last_try; then
18786 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18788 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18791 rm -f conf$$subs.sh
18793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18794 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18798 s/^/S["/; s/!.*/"]=/
18808 s/\(.\{148\}\)..*/\1/
18810 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18815 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18822 s/\(.\{148\}\)..*/\1/
18824 s/["\\]/\\&/g; s/^/"/; s/$/"/
18828 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18833 ' <conf$$subs.awk | sed '
18838 ' >>$CONFIG_STATUS || ac_write_fail=1
18839 rm -f conf$$subs.awk
18840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18842 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18843 for (key in S) S_is_set[key] = 1
18849 nfields = split(line, field, "@")
18851 len = length(field[1])
18852 for (i = 2; i < nfields; i++) {
18854 keylen = length(key)
18855 if (S_is_set[key]) {
18857 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18858 len += length(value) + length(field[++i])
18869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18870 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18871 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18874 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18875 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18878 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18879 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18880 # trailing colons and then remove the whole line if VPATH becomes empty
18881 # (actually we leave an empty line to preserve line numbers).
18882 if test "x$srcdir" = x.; then
18883 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18902 fi # test -n "$CONFIG_FILES"
18904 # Set up the scripts for CONFIG_HEADERS section.
18905 # No need to generate them if there are no CONFIG_HEADERS.
18906 # This happens for instance with `./config.status Makefile'.
18907 if test -n "$CONFIG_HEADERS"; then
18908 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18912 # Transform confdefs.h into an awk script `defines.awk', embedded as
18913 # here-document in config.status, that substitutes the proper values into
18914 # config.h.in to produce config.h.
18916 # Create a delimiter string that does not exist in confdefs.h, to ease
18917 # handling of long lines.
18919 for ac_last_try in false false :; do
18920 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18921 if test -z "$ac_tt"; then
18923 elif $ac_last_try; then
18924 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18926 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18930 # For the awk script, D is an array of macro values keyed by name,
18931 # likewise P contains macro parameters if any. Preserve backslash
18932 # newline sequences.
18934 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18936 s/.\{148\}/&'"$ac_delim"'/g
18939 s/^[ ]*#[ ]*define[ ][ ]*/ /
18946 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18948 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18952 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18953 D["\1"]=" \3\\\\\\n"\\/p
18955 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18960 s/.\{148\}/&'"$ac_delim"'/g
18965 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18968 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18970 ' <confdefs.h | sed '
18971 s/'"$ac_delim"'/"\\\
18972 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18975 for (key in D) D_is_set[key] = 1
18978 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18980 split(line, arg, " ")
18981 if (arg[1] == "#") {
18985 defundef = substr(arg[1], 2)
18988 split(mac1, mac2, "(") #)
18990 prefix = substr(line, 1, index(line, defundef) - 1)
18991 if (D_is_set[macro]) {
18992 # Preserve the white space surrounding the "#".
18993 print prefix "define", macro P[macro] D[macro]
18996 # Replace #undef with comments. This is necessary, for example,
18997 # in the case of _POSIX_SOURCE, which is predefined and required
18998 # on some systems where configure will not decide to define it.
18999 if (defundef == "undef") {
19000 print "/*", prefix defundef, macro, "*/"
19008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19009 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19010 fi # test -n "$CONFIG_HEADERS"
19013 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19018 :[FHLC]) ac_mode=$ac_tag; continue;;
19020 case $ac_mode$ac_tag in
19022 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19023 :[FH]-) ac_tag=-:-;;
19024 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19041 -) ac_f="$ac_tmp/stdin";;
19042 *) # Look for the file first in the build tree, then in the source tree
19043 # (if the path is not absolute). The absolute path cannot be DOS-style,
19044 # because $ac_f cannot contain `:'.
19048 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19050 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19052 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19053 as_fn_append ac_file_inputs " '$ac_f'"
19056 # Let's still pretend it is `configure' which instantiates (i.e., don't
19057 # use $as_me), people would be surprised to read:
19058 # /* config.h. Generated by config.status. */
19059 configure_input='Generated from '`
19060 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19062 if test x"$ac_file" != x-; then
19063 configure_input="$ac_file. $configure_input"
19064 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19065 $as_echo "$as_me: creating $ac_file" >&6;}
19067 # Neutralize special characters interpreted by sed in replacement strings.
19068 case $configure_input in #(
19069 *\&* | *\|* | *\\* )
19070 ac_sed_conf_input=`$as_echo "$configure_input" |
19071 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19072 *) ac_sed_conf_input=$configure_input;;
19076 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19077 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19082 ac_dir=`$as_dirname -- "$ac_file" ||
19083 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19084 X"$ac_file" : 'X\(//\)[^/]' \| \
19085 X"$ac_file" : 'X\(//\)$' \| \
19086 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19087 $as_echo X"$ac_file" |
19088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19092 /^X\(\/\/\)[^/].*/{
19105 as_dir="$ac_dir"; as_fn_mkdir_p
19109 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19111 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19112 # A ".." for each directory in $ac_dir_suffix.
19113 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19114 case $ac_top_builddir_sub in
19115 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19116 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19119 ac_abs_top_builddir=$ac_pwd
19120 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19121 # for backward compatibility:
19122 ac_top_builddir=$ac_top_build_prefix
19125 .) # We are building in place.
19127 ac_top_srcdir=$ac_top_builddir_sub
19128 ac_abs_top_srcdir=$ac_pwd ;;
19129 [\\/]* | ?:[\\/]* ) # Absolute name.
19130 ac_srcdir=$srcdir$ac_dir_suffix;
19131 ac_top_srcdir=$srcdir
19132 ac_abs_top_srcdir=$srcdir ;;
19133 *) # Relative name.
19134 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19135 ac_top_srcdir=$ac_top_build_prefix$srcdir
19136 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19138 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19148 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19149 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19151 ac_MKDIR_P=$MKDIR_P
19153 [\\/$]* | ?:[\\/]* ) ;;
19154 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19159 # If the template does not know about datarootdir, expand it.
19160 # FIXME: This hack should be removed a few years after 2.60.
19161 ac_datarootdir_hack=; ac_datarootdir_seen=
19172 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19173 *datarootdir*) ac_datarootdir_seen=yes;;
19174 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19176 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19179 ac_datarootdir_hack='
19180 s&@datadir@&$datadir&g
19181 s&@docdir@&$docdir&g
19182 s&@infodir@&$infodir&g
19183 s&@localedir@&$localedir&g
19184 s&@mandir@&$mandir&g
19185 s&\\\${datarootdir}&$datarootdir&g' ;;
19189 # Neutralize VPATH when `$srcdir' = `.'.
19190 # Shell code in configure.ac might set extrasub.
19191 # FIXME: do we really want to maintain this feature?
19192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19193 ac_sed_extra="$ac_vpsub
19196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19198 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19199 s|@configure_input@|$ac_sed_conf_input|;t t
19200 s&@top_builddir@&$ac_top_builddir_sub&;t t
19201 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19202 s&@srcdir@&$ac_srcdir&;t t
19203 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19204 s&@top_srcdir@&$ac_top_srcdir&;t t
19205 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19206 s&@builddir@&$ac_builddir&;t t
19207 s&@abs_builddir@&$ac_abs_builddir&;t t
19208 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19209 s&@INSTALL@&$ac_INSTALL&;t t
19210 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19211 $ac_datarootdir_hack
19213 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19214 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19216 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19217 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19218 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19219 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19221 which seems to be undefined. Please make sure it is defined" >&5
19222 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19223 which seems to be undefined. Please make sure it is defined" >&2;}
19225 rm -f "$ac_tmp/stdin"
19227 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19228 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19230 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19236 if test x"$ac_file" != x-; then
19238 $as_echo "/* $configure_input */" \
19239 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19240 } >"$ac_tmp/config.h" \
19241 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19242 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19243 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19244 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19247 mv "$ac_tmp/config.h" "$ac_file" \
19248 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19251 $as_echo "/* $configure_input */" \
19252 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19253 || as_fn_error $? "could not create -" "$LINENO" 5
19255 # Compute "$ac_file"'s index in $config_headers.
19258 for _am_header in $config_headers :; do
19259 case $_am_header in
19260 $_am_arg | $_am_arg:* )
19263 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19266 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19267 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19268 X"$_am_arg" : 'X\(//\)[^/]' \| \
19269 X"$_am_arg" : 'X\(//\)$' \| \
19270 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19271 $as_echo X"$_am_arg" |
19272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19276 /^X\(\/\/\)[^/].*/{
19288 s/.*/./; q'`/stamp-h$_am_stamp_count
19291 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19292 $as_echo "$as_me: executing $ac_file commands" >&6;}
19297 case $ac_file$ac_mode in
19298 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19299 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19300 # are listed without --file. Let's play safe and only enable the eval
19301 # if we detect the quoting.
19302 case $CONFIG_FILES in
19303 *\'*) eval set x "$CONFIG_FILES" ;;
19304 *) set x $CONFIG_FILES ;;
19309 # Strip MF so we end up with the name of the file.
19310 mf=`echo "$mf" | sed -e 's/:.*$//'`
19311 # Check whether this is an Automake generated Makefile or not.
19312 # We used to match only the files named `Makefile.in', but
19313 # some people rename them; so instead we look at the file content.
19314 # Grep'ing the first line is not enough: some people post-process
19315 # each Makefile.in and add a new line on top of each file to say so.
19316 # Grep'ing the whole file is not good either: AIX grep has a line
19317 # limit of 2048, but all sed's we know have understand at least 4000.
19318 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19319 dirpart=`$as_dirname -- "$mf" ||
19320 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19321 X"$mf" : 'X\(//\)[^/]' \| \
19322 X"$mf" : 'X\(//\)$' \| \
19323 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19329 /^X\(\/\/\)[^/].*/{
19345 # Extract the definition of DEPDIR, am__include, and am__quote
19346 # from the Makefile without running `make'.
19347 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19348 test -z "$DEPDIR" && continue
19349 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19350 test -z "am__include" && continue
19351 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19352 # When using ansi2knr, U may be empty or an underscore; expand it
19353 U=`sed -n 's/^U = //p' < "$mf"`
19354 # Find all dependency output files, they are included files with
19355 # $(DEPDIR) in their names. We invoke sed twice because it is the
19356 # simplest approach to changing $(DEPDIR) to its actual value in the
19358 for file in `sed -n "
19359 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19360 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19361 # Make sure the directory exists.
19362 test -f "$dirpart/$file" && continue
19363 fdir=`$as_dirname -- "$file" ||
19364 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19365 X"$file" : 'X\(//\)[^/]' \| \
19366 X"$file" : 'X\(//\)$' \| \
19367 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19368 $as_echo X"$file" |
19369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19373 /^X\(\/\/\)[^/].*/{
19386 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19387 # echo "creating $dirpart/$file"
19388 echo '# dummy' > "$dirpart/$file"
19395 # See if we are running on zsh, and set the options which allow our
19396 # commands through without removal of \ escapes.
19397 if test -n "${ZSH_VERSION+set}" ; then
19398 setopt NO_GLOB_SUBST
19401 cfgfile="${ofile}T"
19402 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19405 cat <<_LT_EOF >> "$cfgfile"
19408 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19409 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19410 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19411 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19413 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19414 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19416 # Written by Gordon Matzigkeit, 1996
19418 # This file is part of GNU Libtool.
19420 # GNU Libtool is free software; you can redistribute it and/or
19421 # modify it under the terms of the GNU General Public License as
19422 # published by the Free Software Foundation; either version 2 of
19423 # the License, or (at your option) any later version.
19425 # As a special exception to the GNU General Public License,
19426 # if you distribute this file as part of a program or library that
19427 # is built using GNU Libtool, you may include this file under the
19428 # same distribution terms that you use for the rest of that program.
19430 # GNU Libtool is distributed in the hope that it will be useful,
19431 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19432 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19433 # GNU General Public License for more details.
19435 # You should have received a copy of the GNU General Public License
19436 # along with GNU Libtool; see the file COPYING. If not, a copy
19437 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19438 # obtained by writing to the Free Software Foundation, Inc.,
19439 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19442 # The names of the tagged configurations supported by this script.
19445 # ### BEGIN LIBTOOL CONFIG
19447 # Which release of libtool.m4 was used?
19448 macro_version=$macro_version
19449 macro_revision=$macro_revision
19451 # Whether or not to build shared libraries.
19452 build_libtool_libs=$enable_shared
19454 # Whether or not to build static libraries.
19455 build_old_libs=$enable_static
19457 # What type of objects to build.
19460 # Whether or not to optimize for fast installation.
19461 fast_install=$enable_fast_install
19463 # Shell to use when invoking shell scripts.
19466 # An echo program that protects backslashes.
19470 host_alias=$host_alias
19474 # The build system.
19475 build_alias=$build_alias
19479 # A sed program that does not truncate output.
19482 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19483 Xsed="\$SED -e 1s/^X//"
19485 # A grep program that handles long lines.
19491 # A literal string matcher.
19494 # A BSD- or MS-compatible name lister.
19497 # Whether we need soft or hard links.
19500 # What is the maximum length of a command?
19501 max_cmd_len=$max_cmd_len
19503 # Object file suffix (normally "o").
19506 # Executable file suffix (normally "").
19509 # whether the shell understands "unset".
19512 # turn spaces into newlines.
19515 # turn newlines into spaces.
19518 # convert \$build file names to \$host format.
19519 to_host_file_cmd=$lt_cv_to_host_file_cmd
19521 # convert \$build files to toolchain format.
19522 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19524 # An object symbol dumper.
19525 OBJDUMP=$lt_OBJDUMP
19527 # Method to check whether dependent libraries are shared objects.
19528 deplibs_check_method=$lt_deplibs_check_method
19530 # Command to use when deplibs_check_method = "file_magic".
19531 file_magic_cmd=$lt_file_magic_cmd
19533 # How to find potential files when deplibs_check_method = "file_magic".
19534 file_magic_glob=$lt_file_magic_glob
19536 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19537 want_nocaseglob=$lt_want_nocaseglob
19539 # DLL creation program.
19540 DLLTOOL=$lt_DLLTOOL
19542 # Command to associate shared and link libraries.
19543 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19548 # Flags to create an archive.
19549 AR_FLAGS=$lt_AR_FLAGS
19551 # How to feed a file listing to the archiver.
19552 archiver_list_spec=$lt_archiver_list_spec
19554 # A symbol stripping program.
19557 # Commands used to install an old-style archive.
19559 old_postinstall_cmds=$lt_old_postinstall_cmds
19560 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19562 # Whether to use a lock for old archive extraction.
19563 lock_old_archive_extraction=$lock_old_archive_extraction
19568 # LTCC compiler flags.
19569 LTCFLAGS=$lt_CFLAGS
19571 # Take the output of nm and produce a listing of raw symbols and C names.
19572 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19574 # Transform the output of nm in a proper C declaration.
19575 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19577 # Transform the output of nm in a C name address pair.
19578 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19580 # Transform the output of nm in a C name address pair when lib prefix is needed.
19581 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19583 # Specify filename containing input files for \$NM.
19584 nm_file_list_spec=$lt_nm_file_list_spec
19586 # The root where to search for dependent libraries,and in which our libraries should be installed.
19587 lt_sysroot=$lt_sysroot
19589 # The name of the directory that contains temporary libtool files.
19592 # Used to examine libraries when file_magic_cmd begins with "file".
19593 MAGIC_CMD=$MAGIC_CMD
19595 # Must we lock files when doing compilation?
19596 need_locks=$lt_need_locks
19599 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19601 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19602 DSYMUTIL=$lt_DSYMUTIL
19604 # Tool to change global to local symbols on Mac OS X.
19607 # Tool to manipulate fat objects and archives on Mac OS X.
19610 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19613 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19614 OTOOL64=$lt_OTOOL64
19616 # Old archive suffix (normally "a").
19619 # Shared library suffix (normally ".so").
19620 shrext_cmds=$lt_shrext_cmds
19622 # The commands to extract the exported symbol list from a shared archive.
19623 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19625 # Variables whose values should be saved in libtool wrapper scripts and
19626 # restored at link time.
19627 variables_saved_for_relink=$lt_variables_saved_for_relink
19629 # Do we need the "lib" prefix for modules?
19630 need_lib_prefix=$need_lib_prefix
19632 # Do we need a version for libraries?
19633 need_version=$need_version
19635 # Library versioning type.
19636 version_type=$version_type
19638 # Shared library runtime path variable.
19639 runpath_var=$runpath_var
19641 # Shared library path variable.
19642 shlibpath_var=$shlibpath_var
19644 # Is shlibpath searched before the hard-coded library search path?
19645 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19647 # Format of library name prefix.
19648 libname_spec=$lt_libname_spec
19650 # List of archive names. First name is the real one, the rest are links.
19651 # The last name is the one that the linker finds with -lNAME
19652 library_names_spec=$lt_library_names_spec
19654 # The coded name of the library, if different from the real name.
19655 soname_spec=$lt_soname_spec
19657 # Permission mode override for installation of shared libraries.
19658 install_override_mode=$lt_install_override_mode
19660 # Command to use after installation of a shared archive.
19661 postinstall_cmds=$lt_postinstall_cmds
19663 # Command to use after uninstallation of a shared archive.
19664 postuninstall_cmds=$lt_postuninstall_cmds
19666 # Commands used to finish a libtool library installation in a directory.
19667 finish_cmds=$lt_finish_cmds
19669 # As "finish_cmds", except a single script fragment to be evaled but
19671 finish_eval=$lt_finish_eval
19673 # Whether we should hardcode library paths into libraries.
19674 hardcode_into_libs=$hardcode_into_libs
19676 # Compile-time system search path for libraries.
19677 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19679 # Run-time system search path for libraries.
19680 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19682 # Whether dlopen is supported.
19683 dlopen_support=$enable_dlopen
19685 # Whether dlopen of programs is supported.
19686 dlopen_self=$enable_dlopen_self
19688 # Whether dlopen of statically linked programs is supported.
19689 dlopen_self_static=$enable_dlopen_self_static
19691 # Commands to strip libraries.
19692 old_striplib=$lt_old_striplib
19693 striplib=$lt_striplib
19696 # The linker used to build libraries.
19699 # How to create reloadable object files.
19700 reload_flag=$lt_reload_flag
19701 reload_cmds=$lt_reload_cmds
19703 # Commands used to build an old-style archive.
19704 old_archive_cmds=$lt_old_archive_cmds
19706 # A language specific compiler.
19709 # Is the compiler the GNU compiler?
19712 # Compiler flag to turn off builtin functions.
19713 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19715 # Additional compiler flags for building library objects.
19716 pic_flag=$lt_lt_prog_compiler_pic
19718 # How to pass a linker flag through the compiler.
19719 wl=$lt_lt_prog_compiler_wl
19721 # Compiler flag to prevent dynamic linking.
19722 link_static_flag=$lt_lt_prog_compiler_static
19724 # Does compiler simultaneously support -c and -o options?
19725 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19727 # Whether or not to add -lc for building shared libraries.
19728 build_libtool_need_lc=$archive_cmds_need_lc
19730 # Whether or not to disallow shared libs when runtime libs are static.
19731 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19733 # Compiler flag to allow reflexive dlopens.
19734 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19736 # Compiler flag to generate shared objects directly from archives.
19737 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19739 # Whether the compiler copes with passing no objects directly.
19740 compiler_needs_object=$lt_compiler_needs_object
19742 # Create an old-style archive from a shared archive.
19743 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19745 # Create a temporary old-style archive to link instead of a shared archive.
19746 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19748 # Commands used to build a shared archive.
19749 archive_cmds=$lt_archive_cmds
19750 archive_expsym_cmds=$lt_archive_expsym_cmds
19752 # Commands used to build a loadable module if different from building
19753 # a shared archive.
19754 module_cmds=$lt_module_cmds
19755 module_expsym_cmds=$lt_module_expsym_cmds
19757 # Whether we are building with GNU ld or not.
19758 with_gnu_ld=$lt_with_gnu_ld
19760 # Flag that allows shared libraries with undefined symbols to be built.
19761 allow_undefined_flag=$lt_allow_undefined_flag
19763 # Flag that enforces no undefined symbols.
19764 no_undefined_flag=$lt_no_undefined_flag
19766 # Flag to hardcode \$libdir into a binary during linking.
19767 # This must work even if \$libdir does not exist
19768 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19770 # If ld is used when linking, flag to hardcode \$libdir into a binary
19771 # during linking. This must work even if \$libdir does not exist.
19772 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19774 # Whether we need a single "-rpath" flag with a separated argument.
19775 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19777 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19778 # DIR into the resulting binary.
19779 hardcode_direct=$hardcode_direct
19781 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19782 # DIR into the resulting binary and the resulting library dependency is
19783 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19784 # library is relocated.
19785 hardcode_direct_absolute=$hardcode_direct_absolute
19787 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19788 # into the resulting binary.
19789 hardcode_minus_L=$hardcode_minus_L
19791 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19792 # into the resulting binary.
19793 hardcode_shlibpath_var=$hardcode_shlibpath_var
19795 # Set to "yes" if building a shared library automatically hardcodes DIR
19796 # into the library and all subsequent libraries and executables linked
19798 hardcode_automatic=$hardcode_automatic
19800 # Set to yes if linker adds runtime paths of dependent libraries
19801 # to runtime path list.
19802 inherit_rpath=$inherit_rpath
19804 # Whether libtool must link a program against all its dependency libraries.
19805 link_all_deplibs=$link_all_deplibs
19807 # Set to "yes" if exported symbols are required.
19808 always_export_symbols=$always_export_symbols
19810 # The commands to list exported symbols.
19811 export_symbols_cmds=$lt_export_symbols_cmds
19813 # Symbols that should not be listed in the preloaded symbols.
19814 exclude_expsyms=$lt_exclude_expsyms
19816 # Symbols that must always be exported.
19817 include_expsyms=$lt_include_expsyms
19819 # Commands necessary for linking programs (against libraries) with templates.
19820 prelink_cmds=$lt_prelink_cmds
19822 # Commands necessary for finishing linking programs.
19823 postlink_cmds=$lt_postlink_cmds
19825 # Specify filename containing input files.
19826 file_list_spec=$lt_file_list_spec
19828 # How to hardcode a shared library path into an executable.
19829 hardcode_action=$hardcode_action
19831 # ### END LIBTOOL CONFIG
19837 cat <<\_LT_EOF >> "$cfgfile"
19838 # AIX sometimes has problems with the GCC collect2 program. For some
19839 # reason, if we set the COLLECT_NAMES environment variable, the problems
19840 # vanish in a puff of smoke.
19841 if test "X${COLLECT_NAMES+set}" != Xset; then
19843 export COLLECT_NAMES
19850 ltmain="$ac_aux_dir/ltmain.sh"
19853 # We use sed instead of cat because bash on DJGPP gets confused if
19854 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19855 # text mode, it properly converts lines to CR/LF. This bash problem
19856 # is reportedly fixed, but why not run on old versions too?
19857 sed '$q' "$ltmain" >> "$cfgfile" \
19858 || (rm -f "$cfgfile"; exit 1)
19860 if test x"$xsi_shell" = xyes; then
19861 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19865 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19866 \ * ) func_dirname_result="${3}" ;;\
19868 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19869 && mv -f "$cfgfile.tmp" "$cfgfile" \
19870 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19871 test 0 -eq $? || _lt_function_replace_fail=:
19874 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19877 \ func_basename_result="${1##*/}"\
19878 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19879 && mv -f "$cfgfile.tmp" "$cfgfile" \
19880 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19881 test 0 -eq $? || _lt_function_replace_fail=:
19884 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19885 func_dirname_and_basename ()\
19888 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19889 \ * ) func_dirname_result="${3}" ;;\
19891 \ func_basename_result="${1##*/}"\
19892 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19893 && mv -f "$cfgfile.tmp" "$cfgfile" \
19894 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19895 test 0 -eq $? || _lt_function_replace_fail=:
19898 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19901 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19902 \ # positional parameters, so assign one to ordinary parameter first.\
19903 \ func_stripname_result=${3}\
19904 \ func_stripname_result=${func_stripname_result#"${1}"}\
19905 \ func_stripname_result=${func_stripname_result%"${2}"}\
19906 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19907 && mv -f "$cfgfile.tmp" "$cfgfile" \
19908 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19909 test 0 -eq $? || _lt_function_replace_fail=:
19912 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19913 func_split_long_opt ()\
19915 \ func_split_long_opt_name=${1%%=*}\
19916 \ func_split_long_opt_arg=${1#*=}\
19917 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19918 && mv -f "$cfgfile.tmp" "$cfgfile" \
19919 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19920 test 0 -eq $? || _lt_function_replace_fail=:
19923 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19924 func_split_short_opt ()\
19926 \ func_split_short_opt_arg=${1#??}\
19927 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19928 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19929 && mv -f "$cfgfile.tmp" "$cfgfile" \
19930 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19931 test 0 -eq $? || _lt_function_replace_fail=:
19934 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19938 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19939 \ *) func_lo2o_result=${1} ;;\
19941 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19942 && mv -f "$cfgfile.tmp" "$cfgfile" \
19943 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19944 test 0 -eq $? || _lt_function_replace_fail=:
19947 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19950 func_xform_result=${1%.*}.lo\
19951 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19952 && mv -f "$cfgfile.tmp" "$cfgfile" \
19953 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19954 test 0 -eq $? || _lt_function_replace_fail=:
19957 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19960 func_arith_result=$(( $* ))\
19961 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19962 && mv -f "$cfgfile.tmp" "$cfgfile" \
19963 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19964 test 0 -eq $? || _lt_function_replace_fail=:
19967 sed -e '/^func_len ()$/,/^} # func_len /c\
19970 func_len_result=${#1}\
19971 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19972 && mv -f "$cfgfile.tmp" "$cfgfile" \
19973 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19974 test 0 -eq $? || _lt_function_replace_fail=:
19978 if test x"$lt_shell_append" = xyes; then
19979 sed -e '/^func_append ()$/,/^} # func_append /c\
19982 eval "${1}+=\\${2}"\
19983 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19984 && mv -f "$cfgfile.tmp" "$cfgfile" \
19985 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19986 test 0 -eq $? || _lt_function_replace_fail=:
19989 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19990 func_append_quoted ()\
19992 \ func_quote_for_eval "${2}"\
19993 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19994 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19995 && mv -f "$cfgfile.tmp" "$cfgfile" \
19996 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19997 test 0 -eq $? || _lt_function_replace_fail=:
20000 # Save a `func_append' function call where possible by direct use of '+='
20001 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20002 && mv -f "$cfgfile.tmp" "$cfgfile" \
20003 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20004 test 0 -eq $? || _lt_function_replace_fail=:
20006 # Save a `func_append' function call even when '+=' is not available
20007 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20008 && mv -f "$cfgfile.tmp" "$cfgfile" \
20009 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20010 test 0 -eq $? || _lt_function_replace_fail=:
20013 if test x"$_lt_function_replace_fail" = x":"; then
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20015 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20019 mv -f "$cfgfile" "$ofile" ||
20020 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20031 ac_clean_files=$ac_clean_files_save
20033 test $ac_write_fail = 0 ||
20034 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20037 # configure is writing to config.log, and then calls config.status.
20038 # config.status does its own redirection, appending to config.log.
20039 # Unfortunately, on DOS this fails, as config.log is still kept open
20040 # by configure, so config.status won't be able to write to it; its
20041 # output is simply discarded. So we exec the FD to /dev/null,
20042 # effectively closing config.log, so it can be properly (re)opened and
20043 # appended to by config.status. When coming back to configure, we
20044 # need to make the FD available again.
20045 if test "$no_create" != yes; then
20047 ac_config_status_args=
20048 test "$silent" = yes &&
20049 ac_config_status_args="$ac_config_status_args --quiet"
20051 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20053 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20054 # would make configure fail if this is the last instruction.
20055 $ac_cs_success || as_fn_exit 1
20057 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20059 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}