2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXrender 0.9.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.
572 PACKAGE_NAME='libXrender'
573 PACKAGE_TARNAME='libXrender'
574 PACKAGE_VERSION='0.9.7'
575 PACKAGE_STRING='libXrender 0.9.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
695 MAINTAINER_MODE_FALSE
705 INSTALL_STRIP_PROGRAM
747 program_transform_name
760 enable_option_checking
761 enable_maintainer_mode
766 enable_dependency_tracking
770 enable_selective_werror
771 enable_strict_compilation
773 enable_malloc0returnsnull
775 ac_precious_vars='build_alias
789 # Initialize some variables set by options.
791 ac_init_version=false
792 ac_unrecognized_opts=
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
803 program_transform_name=s,x,x,
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir='${exec_prefix}/bin'
818 sbindir='${exec_prefix}/sbin'
819 libexecdir='${exec_prefix}/libexec'
820 datarootdir='${prefix}/share'
821 datadir='${datarootdir}'
822 sysconfdir='${prefix}/etc'
823 sharedstatedir='${prefix}/com'
824 localstatedir='${prefix}/var'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir='${datarootdir}/info'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
843 eval $ac_prev=\$ac_option
849 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 # Accept the important Cygnus configure options, so we can diagnose typos.
856 case $ac_dashdash$ac_option in
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865 -build | --build | --buil | --bui | --bu)
866 ac_prev=build_alias ;;
867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868 build_alias=$ac_optarg ;;
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875 cache_file=$ac_optarg ;;
878 cache_file=config.cache ;;
880 -datadir | --datadir | --datadi | --datad)
882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
883 datadir=$ac_optarg ;;
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
892 -disable-* | --disable-*)
893 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 as_fn_error $? "invalid feature name: $ac_useropt"
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
906 eval enable_$ac_useropt=no ;;
908 -docdir | --docdir | --docdi | --doc | --do)
910 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
915 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918 -enable-* | --enable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error $? "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
932 eval enable_$ac_useropt=\$ac_optarg ;;
934 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936 | --exec | --exe | --ex)
937 ac_prev=exec_prefix ;;
938 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940 | --exec=* | --exe=* | --ex=*)
941 exec_prefix=$ac_optarg ;;
943 -gas | --gas | --ga | --g)
944 # Obsolete; use --with-gas.
947 -help | --help | --hel | --he | -h)
949 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950 ac_init_help=recursive ;;
951 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952 ac_init_help=short ;;
954 -host | --host | --hos | --ho)
955 ac_prev=host_alias ;;
956 -host=* | --host=* | --hos=* | --ho=*)
957 host_alias=$ac_optarg ;;
959 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
961 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
963 htmldir=$ac_optarg ;;
965 -includedir | --includedir | --includedi | --included | --include \
966 | --includ | --inclu | --incl | --inc)
967 ac_prev=includedir ;;
968 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969 | --includ=* | --inclu=* | --incl=* | --inc=*)
970 includedir=$ac_optarg ;;
972 -infodir | --infodir | --infodi | --infod | --info | --inf)
974 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975 infodir=$ac_optarg ;;
977 -libdir | --libdir | --libdi | --libd)
979 -libdir=* | --libdir=* | --libdi=* | --libd=*)
982 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983 | --libexe | --libex | --libe)
984 ac_prev=libexecdir ;;
985 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986 | --libexe=* | --libex=* | --libe=*)
987 libexecdir=$ac_optarg ;;
989 -localedir | --localedir | --localedi | --localed | --locale)
991 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992 localedir=$ac_optarg ;;
994 -localstatedir | --localstatedir | --localstatedi | --localstated \
995 | --localstate | --localstat | --localsta | --localst | --locals)
996 ac_prev=localstatedir ;;
997 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999 localstatedir=$ac_optarg ;;
1001 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1003 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004 mandir=$ac_optarg ;;
1006 -nfp | --nfp | --nf)
1007 # Obsolete; use --without-fp.
1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011 | --no-cr | --no-c | -n)
1014 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020 | --oldin | --oldi | --old | --ol | --o)
1021 ac_prev=oldincludedir ;;
1022 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025 oldincludedir=$ac_optarg ;;
1027 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1029 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030 prefix=$ac_optarg ;;
1032 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033 | --program-pre | --program-pr | --program-p)
1034 ac_prev=program_prefix ;;
1035 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037 program_prefix=$ac_optarg ;;
1039 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040 | --program-suf | --program-su | --program-s)
1041 ac_prev=program_suffix ;;
1042 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044 program_suffix=$ac_optarg ;;
1046 -program-transform-name | --program-transform-name \
1047 | --program-transform-nam | --program-transform-na \
1048 | --program-transform-n | --program-transform- \
1049 | --program-transform | --program-transfor \
1050 | --program-transfo | --program-transf \
1051 | --program-trans | --program-tran \
1052 | --progr-tra | --program-tr | --program-t)
1053 ac_prev=program_transform_name ;;
1054 -program-transform-name=* | --program-transform-name=* \
1055 | --program-transform-nam=* | --program-transform-na=* \
1056 | --program-transform-n=* | --program-transform-=* \
1057 | --program-transform=* | --program-transfor=* \
1058 | --program-transfo=* | --program-transf=* \
1059 | --program-trans=* | --program-tran=* \
1060 | --progr-tra=* | --program-tr=* | --program-t=*)
1061 program_transform_name=$ac_optarg ;;
1063 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1065 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066 pdfdir=$ac_optarg ;;
1068 -psdir | --psdir | --psdi | --psd | --ps)
1070 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1077 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081 sbindir=$ac_optarg ;;
1083 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085 | --sharedst | --shareds | --shared | --share | --shar \
1087 ac_prev=sharedstatedir ;;
1088 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092 sharedstatedir=$ac_optarg ;;
1094 -site | --site | --sit)
1096 -site=* | --site=* | --sit=*)
1099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102 srcdir=$ac_optarg ;;
1104 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105 | --syscon | --sysco | --sysc | --sys | --sy)
1106 ac_prev=sysconfdir ;;
1107 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109 sysconfdir=$ac_optarg ;;
1111 -target | --target | --targe | --targ | --tar | --ta | --t)
1112 ac_prev=target_alias ;;
1113 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114 target_alias=$ac_optarg ;;
1116 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1119 -version | --version | --versio | --versi | --vers | -V)
1120 ac_init_version=: ;;
1123 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error $? "invalid package name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1136 eval with_$ac_useropt=\$ac_optarg ;;
1138 -without-* | --without-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1152 eval with_$ac_useropt=no ;;
1155 # Obsolete; use --with-x.
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1172 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1173 Try \`$0 --help' for more information"
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 case $ac_envvar in #(
1180 '' | [0-9]* | *[!_$as_cr_alnum]* )
1181 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1187 # FIXME: should be removed in autoconf 3.0.
1188 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1197 if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199 as_fn_error $? "missing argument to $ac_option"
1202 if test -n "$ac_unrecognized_opts"; then
1203 case $enable_option_checking in
1205 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1206 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210 # Check all directory arguments for consistency.
1211 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir
1216 eval ac_val=\$$ac_var
1217 # Remove trailing slashes.
1220 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221 eval $ac_var=\$ac_val;;
1223 # Be sure to have absolute directory names.
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1236 target=$target_alias
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
1242 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1243 If a cross compiler is detected then cross compile mode will be used" >&2
1244 elif test "x$build_alias" != "x$host_alias"; then
1250 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252 test "$silent" = yes && exec 6>/dev/null
1255 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256 ac_ls_di=`ls -di .` &&
1257 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258 as_fn_error $? "working directory cannot be determined"
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 as_fn_error $? "pwd does not report name of working directory"
1263 # Find the source files, if location was not specified.
1264 if test -z "$srcdir"; then
1265 ac_srcdir_defaulted=yes
1266 # Try the directory containing this script, then the parent directory.
1267 ac_confdir=`$as_dirname -- "$as_myself" ||
1268 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$as_myself" : 'X\(//\)[^/]' \| \
1270 X"$as_myself" : 'X\(//\)$' \| \
1271 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1272 $as_echo X"$as_myself" |
1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1295 ac_srcdir_defaulted=no
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1301 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1305 # When building in place, set srcdir=.
1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
1309 # Remove unnecessary trailing slashes from srcdir.
1310 # Double slashes in file names in object file debugging info
1311 # mess up M-x gdb in Emacs.
1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315 for ac_var in $ac_precious_vars; do
1316 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_env_${ac_var}_value=\$${ac_var}
1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 # Report the --help message.
1325 if test "$ac_init_help" = "long"; then
1326 # Omit some internal or obsolete options to make the list less imposing.
1327 # This message is too long to be a string in the A/UX 3.1 sh.
1329 \`configure' configures libXrender 0.9.7 to adapt to many kinds of systems.
1331 Usage: $0 [OPTION]... [VAR=VALUE]...
1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334 VAR=VALUE. See below for descriptions of some of the useful variables.
1336 Defaults for the options are specified in brackets.
1339 -h, --help display this help and exit
1340 --help=short display options specific to this package
1341 --help=recursive display the short help of all the included packages
1342 -V, --version display version information and exit
1343 -q, --quiet, --silent do not print \`checking ...' messages
1344 --cache-file=FILE cache test results in FILE [disabled]
1345 -C, --config-cache alias for \`--cache-file=config.cache'
1346 -n, --no-create do not create output files
1347 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349 Installation directories:
1350 --prefix=PREFIX install architecture-independent files in PREFIX
1351 [$ac_default_prefix]
1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1355 By default, \`make install' will install all the files in
1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358 for instance \`--prefix=\$HOME'.
1360 For better control, use the options below.
1362 Fine tuning of the installation directories:
1363 --bindir=DIR user executables [EPREFIX/bin]
1364 --sbindir=DIR system admin executables [EPREFIX/sbin]
1365 --libexecdir=DIR program executables [EPREFIX/libexec]
1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
1377 --docdir=DIR documentation root [DATAROOTDIR/doc/libXrender]
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
1387 --program-prefix=PREFIX prepend PREFIX to installed program names
1388 --program-suffix=SUFFIX append SUFFIX to installed program names
1389 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1397 if test -n "$ac_init_help"; then
1398 case $ac_init_help in
1399 short | recursive ) echo "Configuration of libXrender 0.9.7:";;
1404 --disable-option-checking ignore unrecognized --enable/--with options
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1407 --enable-maintainer-mode enable make rules and dependencies not useful
1408 (and sometimes confusing) to the casual installer
1409 --enable-shared[=PKGS] build shared libraries [default=yes]
1410 --enable-static[=PKGS] build static libraries [default=yes]
1411 --enable-fast-install[=PKGS]
1412 optimize for fast installation [default=yes]
1413 --disable-dependency-tracking speeds up one-time build
1414 --enable-dependency-tracking do not reject slow dependency extractors
1415 --disable-libtool-lock avoid locking (might break parallel builds)
1416 --disable-selective-werror
1417 Turn off selective compiler errors. (default:
1419 --enable-strict-compilation
1420 Enable all warnings from compiler and make them
1421 errors (default: disabled)
1422 --enable-silent-rules less verbose build output (undo: `make V=1')
1423 --disable-silent-rules verbose build output (undo: `make V=0')
1424 --enable-malloc0returnsnull
1425 malloc(0) returns NULL (default: auto)
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1430 --with-pic try to use only PIC/non-PIC objects [default=use
1432 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1433 --with-sysroot=DIR Search for dependent libraries within DIR
1434 (or the compiler's sysroot if not specified).
1436 Some influential environment variables:
1437 CC C compiler command
1438 CFLAGS C compiler flags
1439 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1440 nonstandard directory <lib dir>
1441 LIBS libraries to pass to the linker, e.g. -l<library>
1442 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1443 you have headers in a nonstandard directory <include dir>
1445 PKG_CONFIG path to pkg-config utility
1447 C compiler flags for RENDER, overriding pkg-config
1448 RENDER_LIBS linker flags for RENDER, overriding pkg-config
1450 Use these variables to override the choices made by `configure' or to help
1451 it to find libraries and programs with nonstandard names/locations.
1453 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1458 if test "$ac_init_help" = "recursive"; then
1459 # If there are subdirs, report their specific --help.
1460 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1461 test -d "$ac_dir" ||
1462 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1470 # A ".." for each directory in $ac_dir_suffix.
1471 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1472 case $ac_top_builddir_sub in
1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477 ac_abs_top_builddir=$ac_pwd
1478 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479 # for backward compatibility:
1480 ac_top_builddir=$ac_top_build_prefix
1483 .) # We are building in place.
1485 ac_top_srcdir=$ac_top_builddir_sub
1486 ac_abs_top_srcdir=$ac_pwd ;;
1487 [\\/]* | ?:[\\/]* ) # Absolute name.
1488 ac_srcdir=$srcdir$ac_dir_suffix;
1489 ac_top_srcdir=$srcdir
1490 ac_abs_top_srcdir=$srcdir ;;
1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493 ac_top_srcdir=$ac_top_build_prefix$srcdir
1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498 cd "$ac_dir" || { ac_status=$?; continue; }
1499 # Check for guested configure.
1500 if test -f "$ac_srcdir/configure.gnu"; then
1502 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503 elif test -f "$ac_srcdir/configure"; then
1505 $SHELL "$ac_srcdir/configure" --help=recursive
1507 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509 cd "$ac_pwd" || { ac_status=$?; break; }
1513 test -n "$ac_init_help" && exit $ac_status
1514 if $ac_init_version; then
1516 libXrender configure 0.9.7
1517 generated by GNU Autoconf 2.68
1519 Copyright (C) 2010 Free Software Foundation, Inc.
1520 This configure script is free software; the Free Software Foundation
1521 gives unlimited permission to copy, distribute and modify it.
1526 ## ------------------------ ##
1527 ## Autoconf initialization. ##
1528 ## ------------------------ ##
1530 # ac_fn_c_try_compile LINENO
1531 # --------------------------
1532 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1533 ac_fn_c_try_compile ()
1535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536 rm -f conftest.$ac_objext
1537 if { { ac_try="$ac_compile"
1539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540 *) ac_try_echo=$ac_try;;
1542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543 $as_echo "$ac_try_echo"; } >&5
1544 (eval "$ac_compile") 2>conftest.err
1546 if test -s conftest.err; then
1547 grep -v '^ *+' conftest.err >conftest.er1
1548 cat conftest.er1 >&5
1549 mv -f conftest.er1 conftest.err
1551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552 test $ac_status = 0; } && {
1553 test -z "$ac_c_werror_flag" ||
1554 test ! -s conftest.err
1555 } && test -s conftest.$ac_objext; then :
1558 $as_echo "$as_me: failed program was:" >&5
1559 sed 's/^/| /' conftest.$ac_ext >&5
1563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1564 as_fn_set_status $ac_retval
1566 } # ac_fn_c_try_compile
1568 # ac_fn_c_try_link LINENO
1569 # -----------------------
1570 # Try to link conftest.$ac_ext, and return whether this succeeded.
1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574 rm -f conftest.$ac_objext conftest$ac_exeext
1575 if { { ac_try="$ac_link"
1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581 $as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_link") 2>conftest.err
1584 if test -s conftest.err; then
1585 grep -v '^ *+' conftest.err >conftest.er1
1586 cat conftest.er1 >&5
1587 mv -f conftest.er1 conftest.err
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590 test $ac_status = 0; } && {
1591 test -z "$ac_c_werror_flag" ||
1592 test ! -s conftest.err
1593 } && test -s conftest$ac_exeext && {
1594 test "$cross_compiling" = yes ||
1595 $as_test_x conftest$ac_exeext
1599 $as_echo "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.$ac_ext >&5
1604 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1605 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1606 # interfere with the next link command; also delete a directory that is
1607 # left behind by Apple's compiler. We do this before executing the actions.
1608 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610 as_fn_set_status $ac_retval
1612 } # ac_fn_c_try_link
1614 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1615 # -------------------------------------------------------
1616 # Tests whether HEADER exists and can be compiled using the include files in
1617 # INCLUDES, setting the cache variable VAR accordingly.
1618 ac_fn_c_check_header_compile ()
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1622 $as_echo_n "checking for $2... " >&6; }
1623 if eval \${$3+:} false; then :
1624 $as_echo_n "(cached) " >&6
1626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1627 /* end confdefs.h. */
1631 if ac_fn_c_try_compile "$LINENO"; then :
1636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1640 $as_echo "$ac_res" >&6; }
1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643 } # ac_fn_c_check_header_compile
1645 # ac_fn_c_try_cpp LINENO
1646 # ----------------------
1647 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 if { { ac_try="$ac_cpp conftest.$ac_ext"
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1660 if test -s conftest.err; then
1661 grep -v '^ *+' conftest.err >conftest.er1
1662 cat conftest.er1 >&5
1663 mv -f conftest.er1 conftest.err
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } > conftest.i && {
1667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1668 test ! -s conftest.err
1672 $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678 as_fn_set_status $ac_retval
1682 # ac_fn_c_try_run LINENO
1683 # ----------------------
1684 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1685 # that executables *can* be run.
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 if { { ac_try="$ac_link"
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_link") 2>&5
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1700 { { case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_try") 2>&5
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; }; }; then :
1712 $as_echo "$as_me: program exited with status $ac_status" >&5
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1716 ac_retval=$ac_status
1718 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720 as_fn_set_status $ac_retval
1724 # ac_fn_c_check_func LINENO FUNC VAR
1725 # ----------------------------------
1726 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1727 ac_fn_c_check_func ()
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 $as_echo_n "checking for $2... " >&6; }
1732 if eval \${$3+:} false; then :
1733 $as_echo_n "(cached) " >&6
1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736 /* end confdefs.h. */
1737 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1739 #define $2 innocuous_$2
1741 /* System header to define __stub macros and hopefully few prototypes,
1742 which can conflict with char $2 (); below.
1743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1744 <limits.h> exists even on freestanding compilers. */
1747 # include <limits.h>
1749 # include <assert.h>
1754 /* Override any GCC internal prototype to avoid an error.
1755 Use char because int might match the return type of a GCC
1756 builtin and then its argument prototype would still apply. */
1761 /* The GNU C library defines this for functions which it implements
1762 to always fail with ENOSYS. Some functions are actually named
1763 something starting with __ and the normal name is an alias. */
1764 #if defined __stub_$2 || defined __stub___$2
1776 if ac_fn_c_try_link "$LINENO"; then :
1781 rm -f core conftest.err conftest.$ac_objext \
1782 conftest$ac_exeext conftest.$ac_ext
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789 } # ac_fn_c_check_func
1791 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1792 # ---------------------------------------------
1793 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1795 ac_fn_c_check_decl ()
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 as_decl_name=`echo $2|sed 's/ *(.*//'`
1799 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1801 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1802 if eval \${$3+:} false; then :
1803 $as_echo_n "(cached) " >&6
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h. */
1811 #ifndef $as_decl_name
1813 (void) $as_decl_use;
1815 (void) $as_decl_name;
1823 if ac_fn_c_try_compile "$LINENO"; then :
1828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 } # ac_fn_c_check_decl
1836 cat >config.log <<_ACEOF
1837 This file contains any messages produced by compilers while
1838 running configure, to aid debugging if configure makes a mistake.
1840 It was created by libXrender $as_me 0.9.7, which was
1841 generated by GNU Autoconf 2.68. Invocation command line was
1853 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1854 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1855 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1856 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1857 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1859 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1860 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1862 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1863 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1864 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1865 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1866 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1867 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1868 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876 test -z "$as_dir" && as_dir=.
1877 $as_echo "PATH: $as_dir"
1893 # Keep a trace of the command line.
1894 # Strip out --no-create and --no-recursion so they do not pile up.
1895 # Strip out --silent because we don't want to record it for future runs.
1896 # Also quote any args containing shell meta-characters.
1897 # Make two passes to allow for proper duplicate-argument suppression.
1901 ac_must_keep_next=false
1907 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1908 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1909 | -silent | --silent | --silen | --sile | --sil)
1912 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1915 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1917 as_fn_append ac_configure_args1 " '$ac_arg'"
1918 if test $ac_must_keep_next = true; then
1919 ac_must_keep_next=false # Got value, back to normal.
1922 *=* | --config-cache | -C | -disable-* | --disable-* \
1923 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1924 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1925 | -with-* | --with-* | -without-* | --without-* | --x)
1926 case "$ac_configure_args0 " in
1927 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1930 -* ) ac_must_keep_next=true ;;
1933 as_fn_append ac_configure_args " '$ac_arg'"
1938 { ac_configure_args0=; unset ac_configure_args0;}
1939 { ac_configure_args1=; unset ac_configure_args1;}
1941 # When interrupted or exit'd, cleanup temporary files, and complete
1942 # config.log. We remove comments because anyway the quotes in there
1943 # would cause problems or look ugly.
1944 # WARNING: Use '\'' to represent an apostrophe within the trap.
1945 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1946 trap 'exit_status=$?
1947 # Save into config.log some information that might help in debugging.
1951 $as_echo "## ---------------- ##
1952 ## Cache variables. ##
1953 ## ---------------- ##"
1955 # The following way of writing the cache mishandles newlines in values,
1957 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1958 eval ac_val=\$$ac_var
1962 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1963 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1966 _ | IFS | as_nl) ;; #(
1967 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1968 *) { eval $ac_var=; unset $ac_var;} ;;
1973 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1974 *${as_nl}ac_space=\ *)
1976 "s/'\''/'\''\\\\'\'''\''/g;
1977 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1980 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1987 $as_echo "## ----------------- ##
1988 ## Output variables. ##
1989 ## ----------------- ##"
1991 for ac_var in $ac_subst_vars
1993 eval ac_val=\$$ac_var
1995 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1997 $as_echo "$ac_var='\''$ac_val'\''"
2001 if test -n "$ac_subst_files"; then
2002 $as_echo "## ------------------- ##
2003 ## File substitutions. ##
2004 ## ------------------- ##"
2006 for ac_var in $ac_subst_files
2008 eval ac_val=\$$ac_var
2010 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2012 $as_echo "$ac_var='\''$ac_val'\''"
2017 if test -s confdefs.h; then
2018 $as_echo "## ----------- ##
2025 test "$ac_signal" != 0 &&
2026 $as_echo "$as_me: caught signal $ac_signal"
2027 $as_echo "$as_me: exit $exit_status"
2029 rm -f core *.core core.conftest.* &&
2030 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2033 for ac_signal in 1 2 13 15; do
2034 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2038 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2039 rm -f -r conftest* confdefs.h
2041 $as_echo "/* confdefs.h */" > confdefs.h
2043 # Predefined preprocessor variables.
2045 cat >>confdefs.h <<_ACEOF
2046 #define PACKAGE_NAME "$PACKAGE_NAME"
2049 cat >>confdefs.h <<_ACEOF
2050 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2053 cat >>confdefs.h <<_ACEOF
2054 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2057 cat >>confdefs.h <<_ACEOF
2058 #define PACKAGE_STRING "$PACKAGE_STRING"
2061 cat >>confdefs.h <<_ACEOF
2062 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2065 cat >>confdefs.h <<_ACEOF
2066 #define PACKAGE_URL "$PACKAGE_URL"
2070 # Let the site file select an alternate cache file if it wants to.
2071 # Prefer an explicitly selected file to automatically selected ones.
2074 if test -n "$CONFIG_SITE"; then
2075 # We do not want a PATH search for config.site.
2076 case $CONFIG_SITE in #((
2077 -*) ac_site_file1=./$CONFIG_SITE;;
2078 */*) ac_site_file1=$CONFIG_SITE;;
2079 *) ac_site_file1=./$CONFIG_SITE;;
2081 elif test "x$prefix" != xNONE; then
2082 ac_site_file1=$prefix/share/config.site
2083 ac_site_file2=$prefix/etc/config.site
2085 ac_site_file1=$ac_default_prefix/share/config.site
2086 ac_site_file2=$ac_default_prefix/etc/config.site
2088 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2090 test "x$ac_site_file" = xNONE && continue
2091 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2093 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2094 sed 's/^/| /' "$ac_site_file" >&5
2096 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2098 as_fn_error $? "failed to load site script $ac_site_file
2099 See \`config.log' for more details" "$LINENO" 5; }
2103 if test -r "$cache_file"; then
2104 # Some versions of bash will fail to source /dev/null (special files
2105 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2106 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2108 $as_echo "$as_me: loading cache $cache_file" >&6;}
2110 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2111 *) . "./$cache_file";;
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2116 $as_echo "$as_me: creating cache $cache_file" >&6;}
2120 # Check that the precious variables saved in the cache have kept the same
2122 ac_cache_corrupted=false
2123 for ac_var in $ac_precious_vars; do
2124 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2125 eval ac_new_set=\$ac_env_${ac_var}_set
2126 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2127 eval ac_new_val=\$ac_env_${ac_var}_value
2128 case $ac_old_set,$ac_new_set in
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2131 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2132 ac_cache_corrupted=: ;;
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2135 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2136 ac_cache_corrupted=: ;;
2139 if test "x$ac_old_val" != "x$ac_new_val"; then
2140 # differences in whitespace do not lead to failure.
2141 ac_old_val_w=`echo x $ac_old_val`
2142 ac_new_val_w=`echo x $ac_new_val`
2143 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2145 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2146 ac_cache_corrupted=:
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2149 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2150 eval $ac_var=\$ac_old_val
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2153 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2155 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2158 # Pass precious variables to config.status.
2159 if test "$ac_new_set" = set; then
2161 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2162 *) ac_arg=$ac_var=$ac_new_val ;;
2164 case " $ac_configure_args " in
2165 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2166 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2170 if $ac_cache_corrupted; then
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2174 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2175 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2177 ## -------------------- ##
2178 ## Main body of script. ##
2179 ## -------------------- ##
2182 ac_cpp='$CPP $CPPFLAGS'
2183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2189 ac_config_headers="$ac_config_headers config.h"
2192 # Initialize Automake
2193 am__api_version='1.11'
2196 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2197 if test -f "$ac_dir/install-sh"; then
2199 ac_install_sh="$ac_aux_dir/install-sh -c"
2201 elif test -f "$ac_dir/install.sh"; then
2203 ac_install_sh="$ac_aux_dir/install.sh -c"
2205 elif test -f "$ac_dir/shtool"; then
2207 ac_install_sh="$ac_aux_dir/shtool install -c"
2211 if test -z "$ac_aux_dir"; then
2212 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2215 # These three variables are undocumented and unsupported,
2216 # and are intended to be withdrawn in a future Autoconf release.
2217 # They can cause serious problems if a builder's source tree is in a directory
2218 # whose full name contains unusual characters.
2219 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2220 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2221 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2224 # Find a good install program. We prefer a C program (faster),
2225 # so one script is as good as another. But avoid the broken or
2226 # incompatible versions:
2227 # SysV /etc/install, /usr/sbin/install
2228 # SunOS /usr/etc/install
2229 # IRIX /sbin/install
2231 # AmigaOS /C/install, which installs bootblocks on floppy discs
2232 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2233 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2234 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2235 # OS/2's system install, which has a completely different semantic
2236 # ./install, which can be erroneously created by make from ./install.sh.
2237 # Reject install programs that cannot install multiple files.
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2239 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2240 if test -z "$INSTALL"; then
2241 if ${ac_cv_path_install+:} false; then :
2242 $as_echo_n "(cached) " >&6
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 test -z "$as_dir" && as_dir=.
2249 # Account for people who put trailing slashes in PATH elements.
2250 case $as_dir/ in #((
2251 ./ | .// | /[cC]/* | \
2252 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2253 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2256 # OSF1 and SCO ODT 3.0 have their own names for install.
2257 # Don't use installbsd from OSF since it installs stuff as root
2259 for ac_prog in ginstall scoinst install; do
2260 for ac_exec_ext in '' $ac_executable_extensions; do
2261 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2262 if test $ac_prog = install &&
2263 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2264 # AIX install. It has an incompatible calling convention.
2266 elif test $ac_prog = install &&
2267 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2268 # program-specific install script used by HP pwplus--don't use.
2271 rm -rf conftest.one conftest.two conftest.dir
2272 echo one > conftest.one
2273 echo two > conftest.two
2275 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2276 test -s conftest.one && test -s conftest.two &&
2277 test -s conftest.dir/conftest.one &&
2278 test -s conftest.dir/conftest.two
2280 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2293 rm -rf conftest.one conftest.two conftest.dir
2296 if test "${ac_cv_path_install+set}" = set; then
2297 INSTALL=$ac_cv_path_install
2299 # As a last resort, use the slow shell script. Don't cache a
2300 # value for INSTALL within a source directory, because that will
2301 # break other packages using the cache if that directory is
2302 # removed, or if the value is a relative name.
2303 INSTALL=$ac_install_sh
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2307 $as_echo "$INSTALL" >&6; }
2309 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2310 # It thinks the first close brace ends the variable substitution.
2311 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2313 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2315 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2318 $as_echo_n "checking whether build environment is sane... " >&6; }
2321 echo timestamp > conftest.file
2322 # Reject unsafe characters in $srcdir or the absolute working directory
2323 # name. Accept space and tab only in the latter.
2327 *[\\\"\#\$\&\'\`$am_lf]*)
2328 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2331 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2332 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2335 # Do `set' in a subshell so we don't clobber the current shell's
2336 # arguments. Must try -L first in case configure is actually a
2337 # symlink; some systems play weird games with the mod time of symlinks
2338 # (eg FreeBSD returns the mod time of the symlink's containing
2341 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2342 if test "$*" = "X"; then
2344 set X `ls -t "$srcdir/configure" conftest.file`
2347 if test "$*" != "X $srcdir/configure conftest.file" \
2348 && test "$*" != "X conftest.file $srcdir/configure"; then
2350 # If neither matched, then we have a broken ls. This can happen
2351 # if, for instance, CONFIG_SHELL is bash and it inherits a
2352 # broken ls alias from the environment. This has actually
2353 # happened. Such a system could not be considered "sane".
2354 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2355 alias in your environment" "$LINENO" 5
2358 test "$2" = conftest.file
2364 as_fn_error $? "newly created file is older than distributed files!
2365 Check your system clock" "$LINENO" 5
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2368 $as_echo "yes" >&6; }
2369 test "$program_prefix" != NONE &&
2370 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2371 # Use a double $ so make ignores it.
2372 test "$program_suffix" != NONE &&
2373 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2374 # Double any \ or $.
2375 # By default was `s,x,x', remove it if useless.
2376 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2377 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2379 # expand $ac_aux_dir to an absolute path
2380 am_aux_dir=`cd $ac_aux_dir && pwd`
2382 if test x"${MISSING+set}" != xset; then
2385 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2387 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2390 # Use eval to expand $SHELL
2391 if eval "$MISSING --run true"; then
2392 am_missing_run="$MISSING --run "
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2396 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2399 if test x"${install_sh}" != xset; then
2402 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2404 install_sh="\${SHELL} $am_aux_dir/install-sh"
2408 # Installed binaries are usually stripped using `strip' when the user
2409 # run `make install-strip'. However `strip' might not be the right
2410 # tool to use in cross-compilation environments, therefore Automake
2411 # will honor the `STRIP' environment variable to overrule this program.
2412 if test "$cross_compiling" != no; then
2413 if test -n "$ac_tool_prefix"; then
2414 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2415 set dummy ${ac_tool_prefix}strip; ac_word=$2
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2417 $as_echo_n "checking for $ac_word... " >&6; }
2418 if ${ac_cv_prog_STRIP+:} false; then :
2419 $as_echo_n "(cached) " >&6
2421 if test -n "$STRIP"; then
2422 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
2430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2431 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2441 STRIP=$ac_cv_prog_STRIP
2442 if test -n "$STRIP"; then
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2444 $as_echo "$STRIP" >&6; }
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2447 $as_echo "no" >&6; }
2452 if test -z "$ac_cv_prog_STRIP"; then
2454 # Extract the first word of "strip", so it can be a program name with args.
2455 set dummy strip; ac_word=$2
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2457 $as_echo_n "checking for $ac_word... " >&6; }
2458 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2459 $as_echo_n "(cached) " >&6
2461 if test -n "$ac_ct_STRIP"; then
2462 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 test -z "$as_dir" && as_dir=.
2469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471 ac_cv_prog_ac_ct_STRIP="strip"
2472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2482 if test -n "$ac_ct_STRIP"; then
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2484 $as_echo "$ac_ct_STRIP" >&6; }
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2487 $as_echo "no" >&6; }
2490 if test "x$ac_ct_STRIP" = x; then
2493 case $cross_compiling:$ac_tool_warned in
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2497 ac_tool_warned=yes ;;
2502 STRIP="$ac_cv_prog_STRIP"
2506 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2509 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2510 if test -z "$MKDIR_P"; then
2511 if ${ac_cv_path_mkdir+:} false; then :
2512 $as_echo_n "(cached) " >&6
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2518 test -z "$as_dir" && as_dir=.
2519 for ac_prog in mkdir gmkdir; do
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2522 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2523 'mkdir (GNU coreutils) '* | \
2524 'mkdir (coreutils) '* | \
2525 'mkdir (fileutils) '4.1*)
2526 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2536 test -d ./--version && rmdir ./--version
2537 if test "${ac_cv_path_mkdir+set}" = set; then
2538 MKDIR_P="$ac_cv_path_mkdir -p"
2540 # As a last resort, use the slow shell script. Don't cache a
2541 # value for MKDIR_P within a source directory, because that will
2542 # break other packages using the cache if that directory is
2543 # removed, or if the value is a relative name.
2544 MKDIR_P="$ac_install_sh -d"
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2548 $as_echo "$MKDIR_P" >&6; }
2552 [\\/$]* | ?:[\\/]*) ;;
2553 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2556 for ac_prog in gawk mawk nawk awk
2558 # Extract the first word of "$ac_prog", so it can be a program name with args.
2559 set dummy $ac_prog; ac_word=$2
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561 $as_echo_n "checking for $ac_word... " >&6; }
2562 if ${ac_cv_prog_AWK+:} false; then :
2563 $as_echo_n "(cached) " >&6
2565 if test -n "$AWK"; then
2566 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575 ac_cv_prog_AWK="$ac_prog"
2576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 if test -n "$AWK"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2588 $as_echo "$AWK" >&6; }
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591 $as_echo "no" >&6; }
2595 test -n "$AWK" && break
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2599 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2601 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2602 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2603 $as_echo_n "(cached) " >&6
2605 cat >conftest.make <<\_ACEOF
2608 @echo '@@@%%%=$(MAKE)=@@@%%%'
2610 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2611 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2613 eval ac_cv_prog_make_${ac_make}_set=yes;;
2615 eval ac_cv_prog_make_${ac_make}_set=no;;
2619 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2621 $as_echo "yes" >&6; }
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625 $as_echo "no" >&6; }
2626 SET_MAKE="MAKE=${MAKE-make}"
2629 rm -rf .tst 2>/dev/null
2630 mkdir .tst 2>/dev/null
2631 if test -d .tst; then
2636 rmdir .tst 2>/dev/null
2638 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2639 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2640 # is not polluted with repeated "-I."
2641 am__isrc=' -I$(srcdir)'
2642 # test to see if srcdir already configured
2643 if test -f $srcdir/config.status; then
2644 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2648 # test whether we have cygpath
2649 if test -z "$CYGPATH_W"; then
2650 if (cygpath --version) >/dev/null 2>/dev/null; then
2651 CYGPATH_W='cygpath -w'
2658 # Define the identity of the package.
2659 PACKAGE='libXrender'
2663 cat >>confdefs.h <<_ACEOF
2664 #define PACKAGE "$PACKAGE"
2668 cat >>confdefs.h <<_ACEOF
2669 #define VERSION "$VERSION"
2672 # Some tools Automake needs.
2674 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2677 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2680 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2683 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2686 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2688 # We need awk for the "check" target. The system "awk" is bad on
2690 # Always define AMTAR for backward compatibility.
2692 AMTAR=${AMTAR-"${am_missing_run}tar"}
2694 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2702 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2703 # Check whether --enable-maintainer-mode was given.
2704 if test "${enable_maintainer_mode+set}" = set; then :
2705 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2707 USE_MAINTAINER_MODE=no
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2711 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2712 if test $USE_MAINTAINER_MODE = yes; then
2713 MAINTAINER_MODE_TRUE=
2714 MAINTAINER_MODE_FALSE='#'
2716 MAINTAINER_MODE_TRUE='#'
2717 MAINTAINER_MODE_FALSE=
2720 MAINT=$MAINTAINER_MODE_TRUE
2724 # Initialize libtool
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2728 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2734 macro_revision='1.3293'
2748 ltmain="$ac_aux_dir/ltmain.sh"
2750 # Make sure we can run config.sub.
2751 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2752 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2755 $as_echo_n "checking build system type... " >&6; }
2756 if ${ac_cv_build+:} false; then :
2757 $as_echo_n "(cached) " >&6
2759 ac_build_alias=$build_alias
2760 test "x$ac_build_alias" = x &&
2761 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2762 test "x$ac_build_alias" = x &&
2763 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2764 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2765 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2769 $as_echo "$ac_cv_build" >&6; }
2770 case $ac_cv_build in
2772 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2775 ac_save_IFS=$IFS; IFS='-'
2781 # Remember, the first character of IFS is used to create $*,
2782 # except with old shells:
2785 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2789 $as_echo_n "checking host system type... " >&6; }
2790 if ${ac_cv_host+:} false; then :
2791 $as_echo_n "(cached) " >&6
2793 if test "x$host_alias" = x; then
2794 ac_cv_host=$ac_cv_build
2796 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2797 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2802 $as_echo "$ac_cv_host" >&6; }
2805 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2808 ac_save_IFS=$IFS; IFS='-'
2814 # Remember, the first character of IFS is used to create $*,
2815 # except with old shells:
2818 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2821 # Backslashify metacharacters that are still active within
2822 # double-quoted strings.
2823 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2825 # Same as above, but do not quote variable references.
2826 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2828 # Sed substitution to delay expansion of an escaped shell variable in a
2829 # double_quote_subst'ed string.
2830 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2832 # Sed substitution to delay expansion of an escaped single quote.
2833 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2835 # Sed substitution to avoid accidental globbing in evaled expressions
2836 no_glob_subst='s/\*/\\\*/g'
2838 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2839 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2840 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2843 $as_echo_n "checking how to print strings... " >&6; }
2844 # Test print first, because it will be a builtin if present.
2845 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2846 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2848 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2851 # Use this function as a fallback that always works.
2852 func_fallback_echo ()
2854 eval 'cat <<_LTECHO_EOF
2858 ECHO='func_fallback_echo'
2861 # func_echo_all arg...
2862 # Invoke $ECHO with all args, space-separated.
2869 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2870 $as_echo "printf" >&6; } ;;
2871 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2872 $as_echo "print -r" >&6; } ;;
2873 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2874 $as_echo "cat" >&6; } ;;
2890 DEPDIR="${am__leading_dot}deps"
2892 ac_config_commands="$ac_config_commands depfiles"
2895 am_make=${MAKE-make}
2896 cat > confinc << 'END'
2898 @echo this is the am__doit target
2901 # If we don't find an include directive, just comment out the code.
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2903 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2907 # First try GNU make style include.
2908 echo "include confinc" > confmf
2909 # Ignore all kinds of additional output from `make'.
2910 case `$am_make -s -f confmf 2> /dev/null` in #(
2911 *the\ am__doit\ target*)
2917 # Now try BSD make style include.
2918 if test "$am__include" = "#"; then
2919 echo '.include "confinc"' > confmf
2920 case `$am_make -s -f confmf 2> /dev/null` in #(
2921 *the\ am__doit\ target*)
2922 am__include=.include
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2931 $as_echo "$_am_result" >&6; }
2932 rm -f confinc confmf
2934 # Check whether --enable-dependency-tracking was given.
2935 if test "${enable_dependency_tracking+set}" = set; then :
2936 enableval=$enable_dependency_tracking;
2939 if test "x$enable_dependency_tracking" != xno; then
2940 am_depcomp="$ac_aux_dir/depcomp"
2943 if test "x$enable_dependency_tracking" != xno; then
2953 ac_cpp='$CPP $CPPFLAGS'
2954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2957 if test -n "$ac_tool_prefix"; then
2958 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2959 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961 $as_echo_n "checking for $ac_word... " >&6; }
2962 if ${ac_cv_prog_CC+:} false; then :
2963 $as_echo_n "(cached) " >&6
2965 if test -n "$CC"; then
2966 ac_cv_prog_CC="$CC" # Let the user override the test.
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972 test -z "$as_dir" && as_dir=.
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 if test -n "$CC"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2988 $as_echo "$CC" >&6; }
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991 $as_echo "no" >&6; }
2996 if test -z "$ac_cv_prog_CC"; then
2998 # Extract the first word of "gcc", so it can be a program name with args.
2999 set dummy gcc; ac_word=$2
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001 $as_echo_n "checking for $ac_word... " >&6; }
3002 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3003 $as_echo_n "(cached) " >&6
3005 if test -n "$ac_ct_CC"; then
3006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 test -z "$as_dir" && as_dir=.
3013 for ac_exec_ext in '' $ac_executable_extensions; do
3014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015 ac_cv_prog_ac_ct_CC="gcc"
3016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3026 if test -n "$ac_ct_CC"; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3028 $as_echo "$ac_ct_CC" >&6; }
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031 $as_echo "no" >&6; }
3034 if test "x$ac_ct_CC" = x; then
3037 case $cross_compiling:$ac_tool_warned in
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3041 ac_tool_warned=yes ;;
3049 if test -z "$CC"; then
3050 if test -n "$ac_tool_prefix"; then
3051 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3052 set dummy ${ac_tool_prefix}cc; ac_word=$2
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3054 $as_echo_n "checking for $ac_word... " >&6; }
3055 if ${ac_cv_prog_CC+:} false; then :
3056 $as_echo_n "(cached) " >&6
3058 if test -n "$CC"; then
3059 ac_cv_prog_CC="$CC" # Let the user override the test.
3061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 test -z "$as_dir" && as_dir=.
3066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3068 ac_cv_prog_CC="${ac_tool_prefix}cc"
3069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 if test -n "$CC"; then
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3081 $as_echo "$CC" >&6; }
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084 $as_echo "no" >&6; }
3090 if test -z "$CC"; then
3091 # Extract the first word of "cc", so it can be a program name with args.
3092 set dummy cc; ac_word=$2
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if ${ac_cv_prog_CC+:} false; then :
3096 $as_echo_n "(cached) " >&6
3098 if test -n "$CC"; then
3099 ac_cv_prog_CC="$CC" # Let the user override the test.
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 test -z "$as_dir" && as_dir=.
3107 for ac_exec_ext in '' $ac_executable_extensions; do
3108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3109 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3110 ac_prog_rejected=yes
3114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 if test $ac_prog_rejected = yes; then
3122 # We found a bogon in the path, so make sure we never use it.
3123 set dummy $ac_cv_prog_CC
3125 if test $# != 0; then
3126 # We chose a different compiler from the bogus one.
3127 # However, it has the same basename, so the bogon will be chosen
3128 # first if we set CC to just the basename; use the full file name.
3130 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3136 if test -n "$CC"; then
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3138 $as_echo "$CC" >&6; }
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141 $as_echo "no" >&6; }
3146 if test -z "$CC"; then
3147 if test -n "$ac_tool_prefix"; then
3148 for ac_prog in cl.exe
3150 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3151 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if ${ac_cv_prog_CC+:} false; then :
3155 $as_echo_n "(cached) " >&6
3157 if test -n "$CC"; then
3158 ac_cv_prog_CC="$CC" # Let the user override the test.
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 if test -n "$CC"; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3180 $as_echo "$CC" >&6; }
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3187 test -n "$CC" && break
3190 if test -z "$CC"; then
3192 for ac_prog in cl.exe
3194 # Extract the first word of "$ac_prog", so it can be a program name with args.
3195 set dummy $ac_prog; ac_word=$2
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3199 $as_echo_n "(cached) " >&6
3201 if test -n "$ac_ct_CC"; then
3202 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 test -z "$as_dir" && as_dir=.
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3211 ac_cv_prog_ac_ct_CC="$ac_prog"
3212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3222 if test -n "$ac_ct_CC"; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3224 $as_echo "$ac_ct_CC" >&6; }
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3231 test -n "$ac_ct_CC" && break
3234 if test "x$ac_ct_CC" = x; then
3237 case $cross_compiling:$ac_tool_warned in
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3241 ac_tool_warned=yes ;;
3250 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3252 as_fn_error $? "no acceptable C compiler found in \$PATH
3253 See \`config.log' for more details" "$LINENO" 5; }
3255 # Provide some information about the compiler.
3256 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3259 for ac_option in --version -v -V -qversion; do
3260 { { ac_try="$ac_compiler $ac_option >&5"
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3265 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3266 $as_echo "$ac_try_echo"; } >&5
3267 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3269 if test -s conftest.err; then
3271 ... rest of stderr output deleted ...
3272 10q' conftest.err >conftest.er1
3273 cat conftest.er1 >&5
3275 rm -f conftest.er1 conftest.err
3276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277 test $ac_status = 0; }
3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281 /* end confdefs.h. */
3291 ac_clean_files_save=$ac_clean_files
3292 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3293 # Try to create an executable without -o first, disregard a.out.
3294 # It will help us diagnose broken compilers, and finding out an intuition
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3297 $as_echo_n "checking whether the C compiler works... " >&6; }
3298 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3300 # The possible output files:
3301 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3304 for ac_file in $ac_files
3307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3308 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3313 if { { ac_try="$ac_link_default"
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3318 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3319 $as_echo "$ac_try_echo"; } >&5
3320 (eval "$ac_link_default") 2>&5
3322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3323 test $ac_status = 0; }; then :
3324 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3325 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3326 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3327 # so that the user can short-circuit this test for compilers unknown to
3329 for ac_file in $ac_files ''
3331 test -f "$ac_file" || continue
3333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3336 # We found the default executable, but exeext='' is most
3340 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3342 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3344 # We set ac_cv_exeext here because the later test for it is not
3345 # safe: cross compilers may not add the suffix if given an `-o'
3346 # argument, so we may need to know it at that point already.
3347 # Even if this section looks crufty: it has the advantage of
3354 test "$ac_cv_exeext" = no && ac_cv_exeext=
3359 if test -z "$ac_file"; then :
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361 $as_echo "no" >&6; }
3362 $as_echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3367 as_fn_error 77 "C compiler cannot create executables
3368 See \`config.log' for more details" "$LINENO" 5; }
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3371 $as_echo "yes" >&6; }
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3374 $as_echo_n "checking for C compiler default output file name... " >&6; }
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3376 $as_echo "$ac_file" >&6; }
3377 ac_exeext=$ac_cv_exeext
3379 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3380 ac_clean_files=$ac_clean_files_save
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3382 $as_echo_n "checking for suffix of executables... " >&6; }
3383 if { { ac_try="$ac_link"
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389 $as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_link") 2>&5
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }; then :
3394 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3395 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3396 # work properly (i.e., refer to `conftest.exe'), while it won't with
3398 for ac_file in conftest.exe conftest conftest.*; do
3399 test -f "$ac_file" || continue
3401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3402 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3410 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3411 See \`config.log' for more details" "$LINENO" 5; }
3413 rm -f conftest conftest$ac_cv_exeext
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3415 $as_echo "$ac_cv_exeext" >&6; }
3417 rm -f conftest.$ac_ext
3418 EXEEXT=$ac_cv_exeext
3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421 /* end confdefs.h. */
3426 FILE *f = fopen ("conftest.out", "w");
3427 return ferror (f) || fclose (f) != 0;
3433 ac_clean_files="$ac_clean_files conftest.out"
3434 # Check that the compiler produces executables we can run. If not, either
3435 # the compiler is broken, or we cross compile.
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3437 $as_echo_n "checking whether we are cross compiling... " >&6; }
3438 if test "$cross_compiling" != yes; then
3439 { { ac_try="$ac_link"
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3445 $as_echo "$ac_try_echo"; } >&5
3446 (eval "$ac_link") 2>&5
3448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3449 test $ac_status = 0; }
3450 if { ac_try='./conftest$ac_cv_exeext'
3451 { { case "(($ac_try" in
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3456 $as_echo "$ac_try_echo"; } >&5
3457 (eval "$ac_try") 2>&5
3459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3460 test $ac_status = 0; }; }; then
3463 if test "$cross_compiling" = maybe; then
3466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3468 as_fn_error $? "cannot run C compiled programs.
3469 If you meant to cross compile, use \`--host'.
3470 See \`config.log' for more details" "$LINENO" 5; }
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3475 $as_echo "$cross_compiling" >&6; }
3477 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3478 ac_clean_files=$ac_clean_files_save
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3480 $as_echo_n "checking for suffix of object files... " >&6; }
3481 if ${ac_cv_objext+:} false; then :
3482 $as_echo_n "(cached) " >&6
3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485 /* end confdefs.h. */
3495 rm -f conftest.o conftest.obj
3496 if { { ac_try="$ac_compile"
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502 $as_echo "$ac_try_echo"; } >&5
3503 (eval "$ac_compile") 2>&5
3505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506 test $ac_status = 0; }; then :
3507 for ac_file in conftest.o conftest.obj conftest.*; do
3508 test -f "$ac_file" || continue;
3510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3511 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3516 $as_echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521 as_fn_error $? "cannot compute suffix of object files: cannot compile
3522 See \`config.log' for more details" "$LINENO" 5; }
3524 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3527 $as_echo "$ac_cv_objext" >&6; }
3528 OBJEXT=$ac_cv_objext
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3531 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3532 if ${ac_cv_c_compiler_gnu+:} false; then :
3533 $as_echo_n "(cached) " >&6
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h. */
3549 if ac_fn_c_try_compile "$LINENO"; then :
3554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3559 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3560 if test $ac_compiler_gnu = yes; then
3565 ac_test_CFLAGS=${CFLAGS+set}
3566 ac_save_CFLAGS=$CFLAGS
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3568 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3569 if ${ac_cv_prog_cc_g+:} false; then :
3570 $as_echo_n "(cached) " >&6
3572 ac_save_c_werror_flag=$ac_c_werror_flag
3573 ac_c_werror_flag=yes
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3587 if ac_fn_c_try_compile "$LINENO"; then :
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3602 if ac_fn_c_try_compile "$LINENO"; then :
3605 ac_c_werror_flag=$ac_save_c_werror_flag
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h. */
3618 if ac_fn_c_try_compile "$LINENO"; then :
3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626 ac_c_werror_flag=$ac_save_c_werror_flag
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3629 $as_echo "$ac_cv_prog_cc_g" >&6; }
3630 if test "$ac_test_CFLAGS" = set; then
3631 CFLAGS=$ac_save_CFLAGS
3632 elif test $ac_cv_prog_cc_g = yes; then
3633 if test "$GCC" = yes; then
3639 if test "$GCC" = yes; then
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3646 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3647 if ${ac_cv_prog_cc_c89+:} false; then :
3648 $as_echo_n "(cached) " >&6
3650 ac_cv_prog_cc_c89=no
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h. */
3656 #include <sys/types.h>
3657 #include <sys/stat.h>
3658 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3659 struct buf { int x; };
3660 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3661 static char *e (p, i)
3667 static char *f (char * (*g) (char **, int), char **p, ...)
3672 s = g (p, va_arg (v,int));
3677 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3678 function prototypes and stuff, but not '\xHH' hex character constants.
3679 These don't provoke an error unfortunately, instead are silently treated
3680 as 'x'. The following induces an error, until -std is added to get
3681 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3682 array size at least. It's necessary to write '\x00'==0 to get something
3683 that's true only with -std. */
3684 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3686 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3687 inside strings and character constants. */
3689 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3691 int test (int i, double x);
3692 struct s1 {int (*f) (int a);};
3693 struct s2 {int (*f) (double a);};
3694 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3700 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3705 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3706 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3708 CC="$ac_save_CC $ac_arg"
3709 if ac_fn_c_try_compile "$LINENO"; then :
3710 ac_cv_prog_cc_c89=$ac_arg
3712 rm -f core conftest.err conftest.$ac_objext
3713 test "x$ac_cv_prog_cc_c89" != "xno" && break
3715 rm -f conftest.$ac_ext
3720 case "x$ac_cv_prog_cc_c89" in
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3723 $as_echo "none needed" >&6; } ;;
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3726 $as_echo "unsupported" >&6; } ;;
3728 CC="$CC $ac_cv_prog_cc_c89"
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3730 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3732 if test "x$ac_cv_prog_cc_c89" != xno; then :
3737 ac_cpp='$CPP $CPPFLAGS'
3738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3742 depcc="$CC" am_compiler_list=
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3745 $as_echo_n "checking dependency style of $depcc... " >&6; }
3746 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3747 $as_echo_n "(cached) " >&6
3749 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3750 # We make a subdir and do the tests there. Otherwise we can end up
3751 # making bogus files that we don't know about and never remove. For
3752 # instance it was reported that on HP-UX the gcc test will end up
3753 # making a dummy file named `D' -- because `-MD' means `put the output
3756 # Copy depcomp to subdir because otherwise we won't find it if we're
3757 # using a relative directory.
3758 cp "$am_depcomp" conftest.dir
3760 # We will build objects and dependencies in a subdirectory because
3761 # it helps to detect inapplicable dependency modes. For instance
3762 # both Tru64's cc and ICC support -MD to output dependencies as a
3763 # side effect of compilation, but ICC will put the dependencies in
3764 # the current directory while Tru64 will put them in the object
3768 am_cv_CC_dependencies_compiler_type=none
3769 if test "$am_compiler_list" = ""; then
3770 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3773 case " $depcc " in #(
3774 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3777 for depmode in $am_compiler_list; do
3778 # Setup a source with many dependencies, because some compilers
3779 # like to wrap large dependency lists on column 80 (with \), and
3780 # we should not choose a depcomp mode which is confused by this.
3782 # We need to recreate these files for each test, as the compiler may
3783 # overwrite some of them when testing with obscure command lines.
3784 # This happens at least with the AIX C compiler.
3786 for i in 1 2 3 4 5 6; do
3787 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3788 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3789 # Solaris 8's {/usr,}/bin/sh.
3790 touch sub/conftst$i.h
3792 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3794 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3795 # mode. It turns out that the SunPro C++ compiler does not properly
3796 # handle `-M -o', and we need to detect this. Also, some Intel
3797 # versions had trouble with output in subdirs
3798 am__obj=sub/conftest.${OBJEXT-o}
3799 am__minus_obj="-o $am__obj"
3802 # This depmode causes a compiler race in universal mode.
3803 test "$am__universal" = false || continue
3806 # after this tag, mechanisms are not by side-effect, so they'll
3807 # only be used when explicitly requested
3808 if test "x$enable_dependency_tracking" = xyes; then
3814 msvisualcpp | msvcmsys)
3815 # This compiler won't grok `-c -o', but also, the minuso test has
3816 # not run yet. These depmodes are late enough in the game, and
3817 # so weak that their functioning should not be impacted.
3818 am__obj=conftest.${OBJEXT-o}
3823 if depmode=$depmode \
3824 source=sub/conftest.c object=$am__obj \
3825 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3826 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3827 >/dev/null 2>conftest.err &&
3828 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3829 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3830 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3831 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3832 # icc doesn't choke on unknown options, it will just issue warnings
3833 # or remarks (even with -Werror). So we grep stderr for any message
3834 # that says an option was ignored or not supported.
3835 # When given -MP, icc 7.0 and 7.1 complain thusly:
3836 # icc: Command line warning: ignoring option '-M'; no argument required
3837 # The diagnosis changed in icc 8.0:
3838 # icc: Command line remark: option '-MP' not supported
3839 if (grep 'ignoring option' conftest.err ||
3840 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3841 am_cv_CC_dependencies_compiler_type=$depmode
3850 am_cv_CC_dependencies_compiler_type=none
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3855 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3856 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3859 test "x$enable_dependency_tracking" != xno \
3860 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3862 am__fastdepCC_FALSE='#'
3864 am__fastdepCC_TRUE='#'
3865 am__fastdepCC_FALSE=
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3870 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3871 if ${ac_cv_path_SED+:} false; then :
3872 $as_echo_n "(cached) " >&6
3874 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3875 for ac_i in 1 2 3 4 5 6 7; do
3876 ac_script="$ac_script$as_nl$ac_script"
3878 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3879 { ac_script=; unset ac_script;}
3880 if test -z "$SED"; then
3881 ac_path_SED_found=false
3882 # Loop through the user's path and test for each of PROGNAME-LIST
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 test -z "$as_dir" && as_dir=.
3888 for ac_prog in sed gsed; do
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3891 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3892 # Check for GNU ac_path_SED and select it if it is found.
3893 # Check for GNU $ac_path_SED
3894 case `"$ac_path_SED" --version 2>&1` in
3896 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3899 $as_echo_n 0123456789 >"conftest.in"
3902 cat "conftest.in" "conftest.in" >"conftest.tmp"
3903 mv "conftest.tmp" "conftest.in"
3904 cp "conftest.in" "conftest.nl"
3905 $as_echo '' >> "conftest.nl"
3906 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3907 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3908 as_fn_arith $ac_count + 1 && ac_count=$as_val
3909 if test $ac_count -gt ${ac_path_SED_max-0}; then
3910 # Best one so far, save it but keep looking for a better one
3911 ac_cv_path_SED="$ac_path_SED"
3912 ac_path_SED_max=$ac_count
3914 # 10*(2^10) chars as input seems more than enough
3915 test $ac_count -gt 10 && break
3917 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3920 $ac_path_SED_found && break 3
3925 if test -z "$ac_cv_path_SED"; then
3926 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3934 $as_echo "$ac_cv_path_SED" >&6; }
3935 SED="$ac_cv_path_SED"
3938 test -z "$SED" && SED=sed
3939 Xsed="$SED -e 1s/^X//"
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3952 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3953 if ${ac_cv_path_GREP+:} false; then :
3954 $as_echo_n "(cached) " >&6
3956 if test -z "$GREP"; then
3957 ac_path_GREP_found=false
3958 # Loop through the user's path and test for each of PROGNAME-LIST
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3963 test -z "$as_dir" && as_dir=.
3964 for ac_prog in grep ggrep; do
3965 for ac_exec_ext in '' $ac_executable_extensions; do
3966 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3967 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3968 # Check for GNU ac_path_GREP and select it if it is found.
3969 # Check for GNU $ac_path_GREP
3970 case `"$ac_path_GREP" --version 2>&1` in
3972 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3975 $as_echo_n 0123456789 >"conftest.in"
3978 cat "conftest.in" "conftest.in" >"conftest.tmp"
3979 mv "conftest.tmp" "conftest.in"
3980 cp "conftest.in" "conftest.nl"
3981 $as_echo 'GREP' >> "conftest.nl"
3982 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3983 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3984 as_fn_arith $ac_count + 1 && ac_count=$as_val
3985 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3986 # Best one so far, save it but keep looking for a better one
3987 ac_cv_path_GREP="$ac_path_GREP"
3988 ac_path_GREP_max=$ac_count
3990 # 10*(2^10) chars as input seems more than enough
3991 test $ac_count -gt 10 && break
3993 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3996 $ac_path_GREP_found && break 3
4001 if test -z "$ac_cv_path_GREP"; then
4002 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4005 ac_cv_path_GREP=$GREP
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4010 $as_echo "$ac_cv_path_GREP" >&6; }
4011 GREP="$ac_cv_path_GREP"
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4015 $as_echo_n "checking for egrep... " >&6; }
4016 if ${ac_cv_path_EGREP+:} false; then :
4017 $as_echo_n "(cached) " >&6
4019 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4020 then ac_cv_path_EGREP="$GREP -E"
4022 if test -z "$EGREP"; then
4023 ac_path_EGREP_found=false
4024 # Loop through the user's path and test for each of PROGNAME-LIST
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4029 test -z "$as_dir" && as_dir=.
4030 for ac_prog in egrep; do
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4033 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4034 # Check for GNU ac_path_EGREP and select it if it is found.
4035 # Check for GNU $ac_path_EGREP
4036 case `"$ac_path_EGREP" --version 2>&1` in
4038 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4041 $as_echo_n 0123456789 >"conftest.in"
4044 cat "conftest.in" "conftest.in" >"conftest.tmp"
4045 mv "conftest.tmp" "conftest.in"
4046 cp "conftest.in" "conftest.nl"
4047 $as_echo 'EGREP' >> "conftest.nl"
4048 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4050 as_fn_arith $ac_count + 1 && ac_count=$as_val
4051 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4052 # Best one so far, save it but keep looking for a better one
4053 ac_cv_path_EGREP="$ac_path_EGREP"
4054 ac_path_EGREP_max=$ac_count
4056 # 10*(2^10) chars as input seems more than enough
4057 test $ac_count -gt 10 && break
4059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4062 $ac_path_EGREP_found && break 3
4067 if test -z "$ac_cv_path_EGREP"; then
4068 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4071 ac_cv_path_EGREP=$EGREP
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4077 $as_echo "$ac_cv_path_EGREP" >&6; }
4078 EGREP="$ac_cv_path_EGREP"
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4082 $as_echo_n "checking for fgrep... " >&6; }
4083 if ${ac_cv_path_FGREP+:} false; then :
4084 $as_echo_n "(cached) " >&6
4086 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4087 then ac_cv_path_FGREP="$GREP -F"
4089 if test -z "$FGREP"; then
4090 ac_path_FGREP_found=false
4091 # Loop through the user's path and test for each of PROGNAME-LIST
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4096 test -z "$as_dir" && as_dir=.
4097 for ac_prog in fgrep; do
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4100 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4101 # Check for GNU ac_path_FGREP and select it if it is found.
4102 # Check for GNU $ac_path_FGREP
4103 case `"$ac_path_FGREP" --version 2>&1` in
4105 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4108 $as_echo_n 0123456789 >"conftest.in"
4111 cat "conftest.in" "conftest.in" >"conftest.tmp"
4112 mv "conftest.tmp" "conftest.in"
4113 cp "conftest.in" "conftest.nl"
4114 $as_echo 'FGREP' >> "conftest.nl"
4115 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4117 as_fn_arith $ac_count + 1 && ac_count=$as_val
4118 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4119 # Best one so far, save it but keep looking for a better one
4120 ac_cv_path_FGREP="$ac_path_FGREP"
4121 ac_path_FGREP_max=$ac_count
4123 # 10*(2^10) chars as input seems more than enough
4124 test $ac_count -gt 10 && break
4126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4129 $ac_path_FGREP_found && break 3
4134 if test -z "$ac_cv_path_FGREP"; then
4135 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4138 ac_cv_path_FGREP=$FGREP
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4144 $as_echo "$ac_cv_path_FGREP" >&6; }
4145 FGREP="$ac_cv_path_FGREP"
4148 test -z "$GREP" && GREP=grep
4168 # Check whether --with-gnu-ld was given.
4169 if test "${with_gnu_ld+set}" = set; then :
4170 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4176 if test "$GCC" = yes; then
4177 # Check if gcc -print-prog-name=ld gives a path.
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4179 $as_echo_n "checking for ld used by $CC... " >&6; }
4182 # gcc leaves a trailing carriage return which upsets mingw
4183 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4185 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4188 # Accept absolute paths.
4190 re_direlt='/[^/][^/]*/\.\./'
4191 # Canonicalize the pathname of ld
4192 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4193 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4194 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4196 test -z "$LD" && LD="$ac_prog"
4199 # If it fails, then pretend we aren't using GCC.
4203 # If it is relative, then search for the first ld in PATH.
4207 elif test "$with_gnu_ld" = yes; then
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4209 $as_echo_n "checking for GNU ld... " >&6; }
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4212 $as_echo_n "checking for non-GNU ld... " >&6; }
4214 if ${lt_cv_path_LD+:} false; then :
4215 $as_echo_n "(cached) " >&6
4217 if test -z "$LD"; then
4218 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4219 for ac_dir in $PATH; do
4221 test -z "$ac_dir" && ac_dir=.
4222 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4223 lt_cv_path_LD="$ac_dir/$ac_prog"
4224 # Check to see if the program is GNU ld. I'd rather use --version,
4225 # but apparently some variants of GNU ld only accept -v.
4226 # Break only if it was the GNU/non-GNU ld that we prefer.
4227 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4228 *GNU* | *'with BFD'*)
4229 test "$with_gnu_ld" != no && break
4232 test "$with_gnu_ld" != yes && break
4239 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4244 if test -n "$LD"; then
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4246 $as_echo "$LD" >&6; }
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249 $as_echo "no" >&6; }
4251 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4253 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4254 if ${lt_cv_prog_gnu_ld+:} false; then :
4255 $as_echo_n "(cached) " >&6
4257 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4258 case `$LD -v 2>&1 </dev/null` in
4259 *GNU* | *'with BFD'*)
4260 lt_cv_prog_gnu_ld=yes
4263 lt_cv_prog_gnu_ld=no
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4268 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4269 with_gnu_ld=$lt_cv_prog_gnu_ld
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4280 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4281 if ${lt_cv_path_NM+:} false; then :
4282 $as_echo_n "(cached) " >&6
4284 if test -n "$NM"; then
4285 # Let the user override the test.
4288 lt_nm_to_check="${ac_tool_prefix}nm"
4289 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4290 lt_nm_to_check="$lt_nm_to_check nm"
4292 for lt_tmp_nm in $lt_nm_to_check; do
4293 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4294 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4296 test -z "$ac_dir" && ac_dir=.
4297 tmp_nm="$ac_dir/$lt_tmp_nm"
4298 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4299 # Check to see if the nm accepts a BSD-compat flag.
4300 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4301 # nm: unknown option "B" ignored
4302 # Tru64's nm complains that /dev/null is an invalid object file
4303 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4304 */dev/null* | *'Invalid file or object type'*)
4305 lt_cv_path_NM="$tmp_nm -B"
4309 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4311 lt_cv_path_NM="$tmp_nm -p"
4315 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4316 continue # so that we can try to find one that supports BSD flags
4325 : ${lt_cv_path_NM=no}
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4329 $as_echo "$lt_cv_path_NM" >&6; }
4330 if test "$lt_cv_path_NM" != "no"; then
4333 # Didn't find any BSD compatible name lister, look for dumpbin.
4334 if test -n "$DUMPBIN"; then :
4335 # Let the user override the test.
4337 if test -n "$ac_tool_prefix"; then
4338 for ac_prog in dumpbin "link -dump"
4340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4341 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4343 $as_echo_n "checking for $ac_word... " >&6; }
4344 if ${ac_cv_prog_DUMPBIN+:} false; then :
4345 $as_echo_n "(cached) " >&6
4347 if test -n "$DUMPBIN"; then
4348 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 test -z "$as_dir" && as_dir=.
4355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4357 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4367 DUMPBIN=$ac_cv_prog_DUMPBIN
4368 if test -n "$DUMPBIN"; then
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4370 $as_echo "$DUMPBIN" >&6; }
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4373 $as_echo "no" >&6; }
4377 test -n "$DUMPBIN" && break
4380 if test -z "$DUMPBIN"; then
4381 ac_ct_DUMPBIN=$DUMPBIN
4382 for ac_prog in dumpbin "link -dump"
4384 # Extract the first word of "$ac_prog", so it can be a program name with args.
4385 set dummy $ac_prog; ac_word=$2
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4387 $as_echo_n "checking for $ac_word... " >&6; }
4388 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4389 $as_echo_n "(cached) " >&6
4391 if test -n "$ac_ct_DUMPBIN"; then
4392 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 test -z "$as_dir" && as_dir=.
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4401 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4412 if test -n "$ac_ct_DUMPBIN"; then
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4414 $as_echo "$ac_ct_DUMPBIN" >&6; }
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
4421 test -n "$ac_ct_DUMPBIN" && break
4424 if test "x$ac_ct_DUMPBIN" = x; then
4427 case $cross_compiling:$ac_tool_warned in
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4431 ac_tool_warned=yes ;;
4433 DUMPBIN=$ac_ct_DUMPBIN
4437 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4439 DUMPBIN="$DUMPBIN -symbols"
4447 if test "$DUMPBIN" != ":"; then
4451 test -z "$NM" && NM=nm
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4459 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4460 if ${lt_cv_nm_interface+:} false; then :
4461 $as_echo_n "(cached) " >&6
4463 lt_cv_nm_interface="BSD nm"
4464 echo "int some_variable = 0;" > conftest.$ac_ext
4465 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4466 (eval "$ac_compile" 2>conftest.err)
4467 cat conftest.err >&5
4468 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4469 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4470 cat conftest.err >&5
4471 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4472 cat conftest.out >&5
4473 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4474 lt_cv_nm_interface="MS dumpbin"
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4479 $as_echo "$lt_cv_nm_interface" >&6; }
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4482 $as_echo_n "checking whether ln -s works... " >&6; }
4484 if test "$LN_S" = "ln -s"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4486 $as_echo "yes" >&6; }
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4489 $as_echo "no, using $LN_S" >&6; }
4492 # find the maximum length of command line arguments
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4494 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4495 if ${lt_cv_sys_max_cmd_len+:} false; then :
4496 $as_echo_n "(cached) " >&6
4503 # On DJGPP, this test can blow up pretty badly due to problems in libc
4504 # (any single argument exceeding 2000 bytes causes a buffer overrun
4505 # during glob expansion). Even if it were fixed, the result of this
4506 # check would be larger than it should be.
4507 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4511 # Under GNU Hurd, this test is not required because there is
4512 # no limit to the length of command line arguments.
4513 # Libtool will interpret -1 as no limit whatsoever
4514 lt_cv_sys_max_cmd_len=-1;
4517 cygwin* | mingw* | cegcc*)
4518 # On Win9x/ME, this test blows up -- it succeeds, but takes
4519 # about 5 minutes as the teststring grows exponentially.
4520 # Worse, since 9x/ME are not pre-emptively multitasking,
4521 # you end up with a "frozen" computer, even though with patience
4522 # the test eventually succeeds (with a max line length of 256k).
4523 # Instead, let's just punt: use the minimum linelength reported by
4524 # all of the supported platforms: 8192 (on NT/2K/XP).
4525 lt_cv_sys_max_cmd_len=8192;
4529 # On MiNT this can take a long time and run out of memory.
4530 lt_cv_sys_max_cmd_len=8192;
4534 # On AmigaOS with pdksh, this test takes hours, literally.
4535 # So we just punt and use a minimum line length of 8192.
4536 lt_cv_sys_max_cmd_len=8192;
4539 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4540 # This has been around since 386BSD, at least. Likely further.
4541 if test -x /sbin/sysctl; then
4542 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4543 elif test -x /usr/sbin/sysctl; then
4544 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4546 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4548 # And add a safety zone
4549 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4550 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4554 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4555 lt_cv_sys_max_cmd_len=196608
4559 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4560 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4561 # nice to cause kernel panics so lets avoid the loop below.
4562 # First set a reasonable default.
4563 lt_cv_sys_max_cmd_len=16384
4565 if test -x /sbin/sysconfig; then
4566 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4567 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4572 lt_cv_sys_max_cmd_len=102400
4574 sysv5* | sco5v6* | sysv4.2uw2*)
4575 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4576 if test -n "$kargmax"; then
4577 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4579 lt_cv_sys_max_cmd_len=32768
4583 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4584 if test -n "$lt_cv_sys_max_cmd_len"; then
4585 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4586 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4588 # Make teststring a little bigger before we do anything with it.
4589 # a 1K string should be a reasonable start.
4590 for i in 1 2 3 4 5 6 7 8 ; do
4591 teststring=$teststring$teststring
4593 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4594 # If test is not a shell built-in, we'll probably end up computing a
4595 # maximum length that is only half of the actual maximum length, but
4597 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4598 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4599 test $i != 17 # 1/2 MB should be enough
4602 teststring=$teststring$teststring
4604 # Only check the string length outside the loop.
4605 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4607 # Add a significant safety factor because C++ compilers can tack on
4608 # massive amounts of additional arguments before passing them to the
4609 # linker. It appears as though 1/2 is a usable value.
4610 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4617 if test -n $lt_cv_sys_max_cmd_len ; then
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4619 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4622 $as_echo "none" >&6; }
4624 max_cmd_len=$lt_cv_sys_max_cmd_len
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4636 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4637 # Try some XSI features
4640 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4642 && eval 'test $(( 1 + 1 )) -eq 2 \
4643 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4646 $as_echo "$xsi_shell" >&6; }
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4650 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4652 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4654 && lt_shell_append=yes
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4656 $as_echo "$lt_shell_append" >&6; }
4659 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4669 # test EBCDIC or ASCII
4670 case `echo X|tr X '\101'` in
4671 A) # ASCII based system
4672 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4673 lt_SP2NL='tr \040 \012'
4674 lt_NL2SP='tr \015\012 \040\040'
4676 *) # EBCDIC based system
4677 lt_SP2NL='tr \100 \n'
4678 lt_NL2SP='tr \r\n \100\100'
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4691 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4692 if ${lt_cv_to_host_file_cmd+:} false; then :
4693 $as_echo_n "(cached) " >&6
4698 *-*-mingw* ) # actually msys
4699 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4702 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4704 * ) # otherwise, assume *nix
4705 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4711 *-*-mingw* ) # actually msys
4712 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4715 lt_cv_to_host_file_cmd=func_convert_file_noop
4717 * ) # otherwise, assume *nix
4718 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4722 * ) # unhandled hosts (and "normal" native builds)
4723 lt_cv_to_host_file_cmd=func_convert_file_noop
4729 to_host_file_cmd=$lt_cv_to_host_file_cmd
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4731 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4738 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4739 if ${lt_cv_to_tool_file_cmd+:} false; then :
4740 $as_echo_n "(cached) " >&6
4742 #assume ordinary cross tools, or native build.
4743 lt_cv_to_tool_file_cmd=func_convert_file_noop
4747 *-*-mingw* ) # actually msys
4748 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4756 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4758 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4765 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4766 if ${lt_cv_ld_reload_flag+:} false; then :
4767 $as_echo_n "(cached) " >&6
4769 lt_cv_ld_reload_flag='-r'
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4772 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4773 reload_flag=$lt_cv_ld_reload_flag
4774 case $reload_flag in
4776 *) reload_flag=" $reload_flag" ;;
4778 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4780 cygwin* | mingw* | pw32* | cegcc*)
4781 if test "$GCC" != yes; then
4786 if test "$GCC" = yes; then
4787 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4789 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4802 if test -n "$ac_tool_prefix"; then
4803 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4804 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 $as_echo_n "checking for $ac_word... " >&6; }
4807 if ${ac_cv_prog_OBJDUMP+:} false; then :
4808 $as_echo_n "(cached) " >&6
4810 if test -n "$OBJDUMP"; then
4811 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 test -z "$as_dir" && as_dir=.
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4820 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 OBJDUMP=$ac_cv_prog_OBJDUMP
4831 if test -n "$OBJDUMP"; then
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4833 $as_echo "$OBJDUMP" >&6; }
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836 $as_echo "no" >&6; }
4841 if test -z "$ac_cv_prog_OBJDUMP"; then
4842 ac_ct_OBJDUMP=$OBJDUMP
4843 # Extract the first word of "objdump", so it can be a program name with args.
4844 set dummy objdump; ac_word=$2
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4846 $as_echo_n "checking for $ac_word... " >&6; }
4847 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4848 $as_echo_n "(cached) " >&6
4850 if test -n "$ac_ct_OBJDUMP"; then
4851 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 test -z "$as_dir" && as_dir=.
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4860 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4871 if test -n "$ac_ct_OBJDUMP"; then
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4873 $as_echo "$ac_ct_OBJDUMP" >&6; }
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4876 $as_echo "no" >&6; }
4879 if test "x$ac_ct_OBJDUMP" = x; then
4882 case $cross_compiling:$ac_tool_warned in
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4886 ac_tool_warned=yes ;;
4888 OBJDUMP=$ac_ct_OBJDUMP
4891 OBJDUMP="$ac_cv_prog_OBJDUMP"
4894 test -z "$OBJDUMP" && OBJDUMP=objdump
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4905 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4906 if ${lt_cv_deplibs_check_method+:} false; then :
4907 $as_echo_n "(cached) " >&6
4909 lt_cv_file_magic_cmd='$MAGIC_CMD'
4910 lt_cv_file_magic_test_file=
4911 lt_cv_deplibs_check_method='unknown'
4912 # Need to set the preceding variable on all platforms that support
4913 # interlibrary dependencies.
4914 # 'none' -- dependencies not supported.
4915 # `unknown' -- same as none, but documents that we really don't know.
4916 # 'pass_all' -- all dependencies passed with no checks.
4917 # 'test_compile' -- check by making test program.
4918 # 'file_magic [[regex]]' -- check by looking for files in library path
4919 # which responds to the $file_magic_cmd with a given extended regex.
4920 # If you have `file' or equivalent on your system and you're not sure
4921 # whether `pass_all' will *always* work, you probably want this one.
4925 lt_cv_deplibs_check_method=pass_all
4929 lt_cv_deplibs_check_method=pass_all
4933 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4934 lt_cv_file_magic_cmd='/usr/bin/file -L'
4935 lt_cv_file_magic_test_file=/shlib/libc.so
4939 # func_win32_libid is a shell function defined in ltmain.sh
4940 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4941 lt_cv_file_magic_cmd='func_win32_libid'
4945 # Base MSYS/MinGW do not provide the 'file' command needed by
4946 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4947 # unless we find 'file', for example because we are cross-compiling.
4948 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4949 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4950 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4951 lt_cv_file_magic_cmd='func_win32_libid'
4953 # Keep this pattern in sync with the one in func_win32_libid.
4954 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4955 lt_cv_file_magic_cmd='$OBJDUMP -f'
4960 # use the weaker test based on 'objdump'. See mingw*.
4961 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4962 lt_cv_file_magic_cmd='$OBJDUMP -f'
4965 darwin* | rhapsody*)
4966 lt_cv_deplibs_check_method=pass_all
4969 freebsd* | dragonfly*)
4970 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4973 # Not sure whether the presence of OpenBSD here was a mistake.
4974 # Let's accept both of them until this is cleared up.
4975 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4976 lt_cv_file_magic_cmd=/usr/bin/file
4977 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4981 lt_cv_deplibs_check_method=pass_all
4986 lt_cv_deplibs_check_method=pass_all
4990 lt_cv_deplibs_check_method=pass_all
4993 hpux10.20* | hpux11*)
4994 lt_cv_file_magic_cmd=/usr/bin/file
4997 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4998 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5001 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]'
5002 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5005 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5006 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5012 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5013 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5016 irix5* | irix6* | nonstopux*)
5018 *-32|*"-32 ") libmagic=32-bit;;
5019 *-n32|*"-n32 ") libmagic=N32;;
5020 *-64|*"-64 ") libmagic=64-bit;;
5021 *) libmagic=never-match;;
5023 lt_cv_deplibs_check_method=pass_all
5026 # This must be Linux ELF.
5027 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5028 lt_cv_deplibs_check_method=pass_all
5032 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5033 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5035 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5040 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5041 lt_cv_file_magic_cmd=/usr/bin/file
5042 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5046 lt_cv_deplibs_check_method=pass_all
5050 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5051 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5053 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5057 osf3* | osf4* | osf5*)
5058 lt_cv_deplibs_check_method=pass_all
5062 lt_cv_deplibs_check_method=pass_all
5066 lt_cv_deplibs_check_method=pass_all
5069 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5070 lt_cv_deplibs_check_method=pass_all
5074 case $host_vendor in
5076 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]'
5077 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5080 lt_cv_deplibs_check_method=pass_all
5083 lt_cv_file_magic_cmd='/bin/file'
5084 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5087 lt_cv_file_magic_cmd='/bin/file'
5088 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5089 lt_cv_file_magic_test_file=/lib/libc.so
5092 lt_cv_deplibs_check_method=pass_all
5095 lt_cv_deplibs_check_method=pass_all
5101 lt_cv_deplibs_check_method=pass_all
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5107 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5111 if test "$build" = "$host"; then
5114 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5117 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5123 file_magic_cmd=$lt_cv_file_magic_cmd
5124 deplibs_check_method=$lt_cv_deplibs_check_method
5125 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5148 if test -n "$ac_tool_prefix"; then
5149 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5150 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152 $as_echo_n "checking for $ac_word... " >&6; }
5153 if ${ac_cv_prog_DLLTOOL+:} false; then :
5154 $as_echo_n "(cached) " >&6
5156 if test -n "$DLLTOOL"; then
5157 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 test -z "$as_dir" && as_dir=.
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5166 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 DLLTOOL=$ac_cv_prog_DLLTOOL
5177 if test -n "$DLLTOOL"; then
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5179 $as_echo "$DLLTOOL" >&6; }
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182 $as_echo "no" >&6; }
5187 if test -z "$ac_cv_prog_DLLTOOL"; then
5188 ac_ct_DLLTOOL=$DLLTOOL
5189 # Extract the first word of "dlltool", so it can be a program name with args.
5190 set dummy dlltool; ac_word=$2
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192 $as_echo_n "checking for $ac_word... " >&6; }
5193 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5194 $as_echo_n "(cached) " >&6
5196 if test -n "$ac_ct_DLLTOOL"; then
5197 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 test -z "$as_dir" && as_dir=.
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5217 if test -n "$ac_ct_DLLTOOL"; then
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5219 $as_echo "$ac_ct_DLLTOOL" >&6; }
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222 $as_echo "no" >&6; }
5225 if test "x$ac_ct_DLLTOOL" = x; then
5228 case $cross_compiling:$ac_tool_warned in
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5232 ac_tool_warned=yes ;;
5234 DLLTOOL=$ac_ct_DLLTOOL
5237 DLLTOOL="$ac_cv_prog_DLLTOOL"
5240 test -z "$DLLTOOL" && DLLTOOL=dlltool
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5252 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5253 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5254 $as_echo_n "(cached) " >&6
5256 lt_cv_sharedlib_from_linklib_cmd='unknown'
5259 cygwin* | mingw* | pw32* | cegcc*)
5260 # two different shell functions defined in ltmain.sh
5261 # decide which to use based on capabilities of $DLLTOOL
5262 case `$DLLTOOL --help 2>&1` in
5263 *--identify-strict*)
5264 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5267 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5272 # fallback: assume linklib IS sharedlib
5273 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5279 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5280 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5281 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5290 if test -n "$ac_tool_prefix"; then
5293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5296 $as_echo_n "checking for $ac_word... " >&6; }
5297 if ${ac_cv_prog_AR+:} false; then :
5298 $as_echo_n "(cached) " >&6
5300 if test -n "$AR"; then
5301 ac_cv_prog_AR="$AR" # Let the user override the test.
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 test -z "$as_dir" && as_dir=.
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5310 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5321 if test -n "$AR"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5323 $as_echo "$AR" >&6; }
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5330 test -n "$AR" && break
5333 if test -z "$AR"; then
5337 # Extract the first word of "$ac_prog", so it can be a program name with args.
5338 set dummy $ac_prog; ac_word=$2
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5340 $as_echo_n "checking for $ac_word... " >&6; }
5341 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5342 $as_echo_n "(cached) " >&6
5344 if test -n "$ac_ct_AR"; then
5345 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5354 ac_cv_prog_ac_ct_AR="$ac_prog"
5355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5365 if test -n "$ac_ct_AR"; then
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5367 $as_echo "$ac_ct_AR" >&6; }
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5370 $as_echo "no" >&6; }
5374 test -n "$ac_ct_AR" && break
5377 if test "x$ac_ct_AR" = x; then
5380 case $cross_compiling:$ac_tool_warned in
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5384 ac_tool_warned=yes ;;
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5404 $as_echo_n "checking for archiver @FILE support... " >&6; }
5405 if ${lt_cv_ar_at_file+:} false; then :
5406 $as_echo_n "(cached) " >&6
5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5420 if ac_fn_c_try_compile "$LINENO"; then :
5421 echo conftest.$ac_objext > conftest.lst
5422 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5424 (eval $lt_ar_try) 2>&5
5426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5427 test $ac_status = 0; }
5428 if test "$ac_status" -eq 0; then
5429 # Ensure the archiver fails upon bogus file names.
5430 rm -f conftest.$ac_objext libconftest.a
5431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5432 (eval $lt_ar_try) 2>&5
5434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5435 test $ac_status = 0; }
5436 if test "$ac_status" -ne 0; then
5440 rm -f conftest.* libconftest.a
5443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5447 $as_echo "$lt_cv_ar_at_file" >&6; }
5449 if test "x$lt_cv_ar_at_file" = xno; then
5452 archiver_list_spec=$lt_cv_ar_at_file
5461 if test -n "$ac_tool_prefix"; then
5462 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5463 set dummy ${ac_tool_prefix}strip; ac_word=$2
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465 $as_echo_n "checking for $ac_word... " >&6; }
5466 if ${ac_cv_prog_STRIP+:} false; then :
5467 $as_echo_n "(cached) " >&6
5469 if test -n "$STRIP"; then
5470 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 test -z "$as_dir" && as_dir=.
5477 for ac_exec_ext in '' $ac_executable_extensions; do
5478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5479 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5489 STRIP=$ac_cv_prog_STRIP
5490 if test -n "$STRIP"; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5492 $as_echo "$STRIP" >&6; }
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495 $as_echo "no" >&6; }
5500 if test -z "$ac_cv_prog_STRIP"; then
5502 # Extract the first word of "strip", so it can be a program name with args.
5503 set dummy strip; ac_word=$2
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505 $as_echo_n "checking for $ac_word... " >&6; }
5506 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5507 $as_echo_n "(cached) " >&6
5509 if test -n "$ac_ct_STRIP"; then
5510 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 test -z "$as_dir" && as_dir=.
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5519 ac_cv_prog_ac_ct_STRIP="strip"
5520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5529 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5530 if test -n "$ac_ct_STRIP"; then
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5532 $as_echo "$ac_ct_STRIP" >&6; }
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535 $as_echo "no" >&6; }
5538 if test "x$ac_ct_STRIP" = x; then
5541 case $cross_compiling:$ac_tool_warned in
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5545 ac_tool_warned=yes ;;
5550 STRIP="$ac_cv_prog_STRIP"
5553 test -z "$STRIP" && STRIP=:
5560 if test -n "$ac_tool_prefix"; then
5561 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5562 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564 $as_echo_n "checking for $ac_word... " >&6; }
5565 if ${ac_cv_prog_RANLIB+:} false; then :
5566 $as_echo_n "(cached) " >&6
5568 if test -n "$RANLIB"; then
5569 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 test -z "$as_dir" && as_dir=.
5576 for ac_exec_ext in '' $ac_executable_extensions; do
5577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5578 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5588 RANLIB=$ac_cv_prog_RANLIB
5589 if test -n "$RANLIB"; then
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5591 $as_echo "$RANLIB" >&6; }
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5594 $as_echo "no" >&6; }
5599 if test -z "$ac_cv_prog_RANLIB"; then
5600 ac_ct_RANLIB=$RANLIB
5601 # Extract the first word of "ranlib", so it can be a program name with args.
5602 set dummy ranlib; ac_word=$2
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604 $as_echo_n "checking for $ac_word... " >&6; }
5605 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5606 $as_echo_n "(cached) " >&6
5608 if test -n "$ac_ct_RANLIB"; then
5609 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5618 ac_cv_prog_ac_ct_RANLIB="ranlib"
5619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5628 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5629 if test -n "$ac_ct_RANLIB"; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5631 $as_echo "$ac_ct_RANLIB" >&6; }
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634 $as_echo "no" >&6; }
5637 if test "x$ac_ct_RANLIB" = x; then
5640 case $cross_compiling:$ac_tool_warned in
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5644 ac_tool_warned=yes ;;
5646 RANLIB=$ac_ct_RANLIB
5649 RANLIB="$ac_cv_prog_RANLIB"
5652 test -z "$RANLIB" && RANLIB=:
5659 # Determine commands to create old-style static archives.
5660 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5661 old_postinstall_cmds='chmod 644 $oldlib'
5662 old_postuninstall_cmds=
5664 if test -n "$RANLIB"; then
5667 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5670 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5673 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5678 lock_old_archive_extraction=yes ;;
5680 lock_old_archive_extraction=no ;;
5721 # If no C compiler was specified, use CC.
5724 # If no C compiler flags were specified, use CFLAGS.
5725 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5727 # Allow CC to be a program name with arguments.
5731 # Check for command to grab the raw symbol name followed by C symbol from nm.
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5733 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5734 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5735 $as_echo_n "(cached) " >&6
5738 # These are sane defaults that work on at least a few old systems.
5739 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5741 # Character class describing NM global symbol codes.
5742 symcode='[BCDEGRST]'
5744 # Regexp to match symbols that can be accessed directly from C.
5745 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5747 # Define system-specific variables.
5752 cygwin* | mingw* | pw32* | cegcc*)
5753 symcode='[ABCDGISTW]'
5756 if test "$host_cpu" = ia64; then
5757 symcode='[ABCDEGRST]'
5761 symcode='[BCDEGRST]'
5764 symcode='[BCDEGQRST]'
5775 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5783 # If we're using GNU nm, then use its standard symbol codes.
5784 case `$NM -V 2>&1` in
5785 *GNU* | *'with BFD'*)
5786 symcode='[ABCDGIRSTW]' ;;
5789 # Transform an extracted symbol line into a proper C declaration.
5790 # Some systems (esp. on ia64) link data and code symbols differently,
5791 # so use this general approach.
5792 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5794 # Transform an extracted symbol line into symbol name and symbol address
5795 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5796 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'"
5798 # Handle CRLF in mingw tool chain
5802 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5806 # Try without a prefix underscore, then with it.
5807 for ac_symprfx in "" "_"; do
5809 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5810 symxfrm="\\1 $ac_symprfx\\2 \\2"
5812 # Write the raw and C identifiers.
5813 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5814 # Fake it for dumpbin and say T for any non-static function
5815 # and D for any global variable.
5816 # Also find C++ and __fastcall symbols from MSVC++,
5817 # which start with @ or ?.
5818 lt_cv_sys_global_symbol_pipe="$AWK '"\
5819 " {last_section=section; section=\$ 3};"\
5820 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5821 " \$ 0!~/External *\|/{next};"\
5822 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5823 " {if(hide[section]) next};"\
5824 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5825 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5826 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5827 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5828 " ' prfx=^$ac_symprfx"
5830 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5832 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5834 # Check to see that the pipe works correctly.
5838 cat > conftest.$ac_ext <<_LT_EOF
5843 void nm_test_func(void);
5844 void nm_test_func(void){}
5848 int main(){nm_test_var='a';nm_test_func();return(0);}
5851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5852 (eval $ac_compile) 2>&5
5854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5855 test $ac_status = 0; }; then
5856 # Now try to grab the symbols.
5858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5859 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5862 test $ac_status = 0; } && test -s "$nlist"; then
5863 # Try sorting and uniquifying the output.
5864 if sort "$nlist" | uniq > "$nlist"T; then
5865 mv -f "$nlist"T "$nlist"
5870 # Make sure that we snagged all the symbols we need.
5871 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5872 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5873 cat <<_LT_EOF > conftest.$ac_ext
5874 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5875 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5876 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5877 relocations are performed -- see ld's documentation on pseudo-relocs. */
5878 # define LT_DLSYM_CONST
5879 #elif defined(__osf__)
5880 /* This system does not cope well with relocations in const data. */
5881 # define LT_DLSYM_CONST
5883 # define LT_DLSYM_CONST const
5891 # Now generate the symbol file.
5892 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5894 cat <<_LT_EOF >> conftest.$ac_ext
5896 /* The mapping between symbol names and symbols. */
5897 LT_DLSYM_CONST struct {
5901 lt__PROGRAM__LTX_preloaded_symbols[] =
5903 { "@PROGRAM@", (void *) 0 },
5905 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5906 cat <<\_LT_EOF >> conftest.$ac_ext
5910 /* This works around a problem in FreeBSD linker */
5911 #ifdef FREEBSD_WORKAROUND
5912 static const void *lt_preloaded_setup() {
5913 return lt__PROGRAM__LTX_preloaded_symbols;
5921 # Now try linking the two files.
5922 mv conftest.$ac_objext conftstm.$ac_objext
5923 lt_globsym_save_LIBS=$LIBS
5924 lt_globsym_save_CFLAGS=$CFLAGS
5925 LIBS="conftstm.$ac_objext"
5926 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5928 (eval $ac_link) 2>&5
5930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5931 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5934 LIBS=$lt_globsym_save_LIBS
5935 CFLAGS=$lt_globsym_save_CFLAGS
5937 echo "cannot find nm_test_func in $nlist" >&5
5940 echo "cannot find nm_test_var in $nlist" >&5
5943 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5946 echo "$progname: failed program was:" >&5
5947 cat conftest.$ac_ext >&5
5949 rm -rf conftest* conftst*
5951 # Do not use the global_symbol_pipe unless it works.
5952 if test "$pipe_works" = yes; then
5955 lt_cv_sys_global_symbol_pipe=
5961 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5962 lt_cv_sys_global_symbol_to_cdecl=
5964 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5966 $as_echo "failed" >&6; }
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5969 $as_echo "ok" >&6; }
5972 # Response file support.
5973 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5974 nm_file_list_spec='@'
5975 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5976 nm_file_list_spec='@'
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6006 $as_echo_n "checking for sysroot... " >&6; }
6008 # Check whether --with-sysroot was given.
6009 if test "${with_sysroot+set}" = set; then :
6010 withval=$with_sysroot;
6017 case ${with_sysroot} in #(
6019 if test "$GCC" = yes; then
6020 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6024 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6030 $as_echo "${with_sysroot}" >&6; }
6031 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6036 $as_echo "${lt_sysroot:-no}" >&6; }
6042 # Check whether --enable-libtool-lock was given.
6043 if test "${enable_libtool_lock+set}" = set; then :
6044 enableval=$enable_libtool_lock;
6047 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6049 # Some flags need to be propagated to the compiler or linker for good
6053 # Find out which ABI we are using.
6054 echo 'int i;' > conftest.$ac_ext
6055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6056 (eval $ac_compile) 2>&5
6058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6059 test $ac_status = 0; }; then
6060 case `/usr/bin/file conftest.$ac_objext` in
6072 # Find out which ABI we are using.
6073 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6075 (eval $ac_compile) 2>&5
6077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6078 test $ac_status = 0; }; then
6079 if test "$lt_cv_prog_gnu_ld" = yes; then
6080 case `/usr/bin/file conftest.$ac_objext` in
6082 LD="${LD-ld} -melf32bsmip"
6085 LD="${LD-ld} -melf32bmipn32"
6088 LD="${LD-ld} -melf64bmip"
6092 case `/usr/bin/file conftest.$ac_objext` in
6108 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6109 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6110 # Find out which ABI we are using.
6111 echo 'int i;' > conftest.$ac_ext
6112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6113 (eval $ac_compile) 2>&5
6115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6116 test $ac_status = 0; }; then
6117 case `/usr/bin/file conftest.o` in
6120 x86_64-*kfreebsd*-gnu)
6121 LD="${LD-ld} -m elf_i386_fbsd"
6124 LD="${LD-ld} -m elf_i386"
6126 ppc64-*linux*|powerpc64-*linux*)
6127 LD="${LD-ld} -m elf32ppclinux"
6130 LD="${LD-ld} -m elf_s390"
6133 LD="${LD-ld} -m elf32_sparc"
6139 x86_64-*kfreebsd*-gnu)
6140 LD="${LD-ld} -m elf_x86_64_fbsd"
6143 LD="${LD-ld} -m elf_x86_64"
6145 ppc*-*linux*|powerpc*-*linux*)
6146 LD="${LD-ld} -m elf64ppc"
6148 s390*-*linux*|s390*-*tpf*)
6149 LD="${LD-ld} -m elf64_s390"
6152 LD="${LD-ld} -m elf64_sparc"
6162 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6163 SAVE_CFLAGS="$CFLAGS"
6164 CFLAGS="$CFLAGS -belf"
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6166 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6167 if ${lt_cv_cc_needs_belf+:} false; then :
6168 $as_echo_n "(cached) " >&6
6171 ac_cpp='$CPP $CPPFLAGS'
6172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6177 /* end confdefs.h. */
6187 if ac_fn_c_try_link "$LINENO"; then :
6188 lt_cv_cc_needs_belf=yes
6190 lt_cv_cc_needs_belf=no
6192 rm -f core conftest.err conftest.$ac_objext \
6193 conftest$ac_exeext conftest.$ac_ext
6195 ac_cpp='$CPP $CPPFLAGS'
6196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6202 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6203 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6204 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6205 CFLAGS="$SAVE_CFLAGS"
6209 # Find out which ABI we are using.
6210 echo 'int i;' > conftest.$ac_ext
6211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6212 (eval $ac_compile) 2>&5
6214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6215 test $ac_status = 0; }; then
6216 case `/usr/bin/file conftest.o` in
6218 case $lt_cv_prog_gnu_ld in
6219 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6221 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6233 need_locks="$enable_libtool_lock"
6235 if test -n "$ac_tool_prefix"; then
6236 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6237 set dummy ${ac_tool_prefix}mt; ac_word=$2
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6239 $as_echo_n "checking for $ac_word... " >&6; }
6240 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6241 $as_echo_n "(cached) " >&6
6243 if test -n "$MANIFEST_TOOL"; then
6244 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250 test -z "$as_dir" && as_dir=.
6251 for ac_exec_ext in '' $ac_executable_extensions; do
6252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6253 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6263 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6264 if test -n "$MANIFEST_TOOL"; then
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6266 $as_echo "$MANIFEST_TOOL" >&6; }
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6269 $as_echo "no" >&6; }
6274 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6275 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6276 # Extract the first word of "mt", so it can be a program name with args.
6277 set dummy mt; ac_word=$2
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6279 $as_echo_n "checking for $ac_word... " >&6; }
6280 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6281 $as_echo_n "(cached) " >&6
6283 if test -n "$ac_ct_MANIFEST_TOOL"; then
6284 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290 test -z "$as_dir" && as_dir=.
6291 for ac_exec_ext in '' $ac_executable_extensions; do
6292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6293 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6303 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6304 if test -n "$ac_ct_MANIFEST_TOOL"; then
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6306 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6309 $as_echo "no" >&6; }
6312 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6315 case $cross_compiling:$ac_tool_warned in
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6319 ac_tool_warned=yes ;;
6321 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6324 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6327 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6329 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6330 if ${lt_cv_path_mainfest_tool+:} false; then :
6331 $as_echo_n "(cached) " >&6
6333 lt_cv_path_mainfest_tool=no
6334 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6335 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6336 cat conftest.err >&5
6337 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6338 lt_cv_path_mainfest_tool=yes
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6343 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6344 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6354 rhapsody* | darwin*)
6355 if test -n "$ac_tool_prefix"; then
6356 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6357 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6359 $as_echo_n "checking for $ac_word... " >&6; }
6360 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6361 $as_echo_n "(cached) " >&6
6363 if test -n "$DSYMUTIL"; then
6364 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370 test -z "$as_dir" && as_dir=.
6371 for ac_exec_ext in '' $ac_executable_extensions; do
6372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6373 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6383 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6384 if test -n "$DSYMUTIL"; then
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6386 $as_echo "$DSYMUTIL" >&6; }
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389 $as_echo "no" >&6; }
6394 if test -z "$ac_cv_prog_DSYMUTIL"; then
6395 ac_ct_DSYMUTIL=$DSYMUTIL
6396 # Extract the first word of "dsymutil", so it can be a program name with args.
6397 set dummy dsymutil; ac_word=$2
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399 $as_echo_n "checking for $ac_word... " >&6; }
6400 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6401 $as_echo_n "(cached) " >&6
6403 if test -n "$ac_ct_DSYMUTIL"; then
6404 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6413 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6424 if test -n "$ac_ct_DSYMUTIL"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6426 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6432 if test "x$ac_ct_DSYMUTIL" = x; then
6435 case $cross_compiling:$ac_tool_warned in
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6439 ac_tool_warned=yes ;;
6441 DSYMUTIL=$ac_ct_DSYMUTIL
6444 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6447 if test -n "$ac_tool_prefix"; then
6448 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6449 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451 $as_echo_n "checking for $ac_word... " >&6; }
6452 if ${ac_cv_prog_NMEDIT+:} false; then :
6453 $as_echo_n "(cached) " >&6
6455 if test -n "$NMEDIT"; then
6456 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462 test -z "$as_dir" && as_dir=.
6463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6465 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 NMEDIT=$ac_cv_prog_NMEDIT
6476 if test -n "$NMEDIT"; then
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6478 $as_echo "$NMEDIT" >&6; }
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481 $as_echo "no" >&6; }
6486 if test -z "$ac_cv_prog_NMEDIT"; then
6487 ac_ct_NMEDIT=$NMEDIT
6488 # Extract the first word of "nmedit", so it can be a program name with args.
6489 set dummy nmedit; ac_word=$2
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491 $as_echo_n "checking for $ac_word... " >&6; }
6492 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6493 $as_echo_n "(cached) " >&6
6495 if test -n "$ac_ct_NMEDIT"; then
6496 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 test -z "$as_dir" && as_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6505 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6515 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6516 if test -n "$ac_ct_NMEDIT"; then
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6518 $as_echo "$ac_ct_NMEDIT" >&6; }
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6524 if test "x$ac_ct_NMEDIT" = x; then
6527 case $cross_compiling:$ac_tool_warned in
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6531 ac_tool_warned=yes ;;
6533 NMEDIT=$ac_ct_NMEDIT
6536 NMEDIT="$ac_cv_prog_NMEDIT"
6539 if test -n "$ac_tool_prefix"; then
6540 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6541 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6543 $as_echo_n "checking for $ac_word... " >&6; }
6544 if ${ac_cv_prog_LIPO+:} false; then :
6545 $as_echo_n "(cached) " >&6
6547 if test -n "$LIPO"; then
6548 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 test -z "$as_dir" && as_dir=.
6555 for ac_exec_ext in '' $ac_executable_extensions; do
6556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6557 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6567 LIPO=$ac_cv_prog_LIPO
6568 if test -n "$LIPO"; then
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6570 $as_echo "$LIPO" >&6; }
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6573 $as_echo "no" >&6; }
6578 if test -z "$ac_cv_prog_LIPO"; then
6580 # Extract the first word of "lipo", so it can be a program name with args.
6581 set dummy lipo; ac_word=$2
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583 $as_echo_n "checking for $ac_word... " >&6; }
6584 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6585 $as_echo_n "(cached) " >&6
6587 if test -n "$ac_ct_LIPO"; then
6588 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6597 ac_cv_prog_ac_ct_LIPO="lipo"
6598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6608 if test -n "$ac_ct_LIPO"; then
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6610 $as_echo "$ac_ct_LIPO" >&6; }
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613 $as_echo "no" >&6; }
6616 if test "x$ac_ct_LIPO" = x; then
6619 case $cross_compiling:$ac_tool_warned in
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6623 ac_tool_warned=yes ;;
6628 LIPO="$ac_cv_prog_LIPO"
6631 if test -n "$ac_tool_prefix"; then
6632 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6633 set dummy ${ac_tool_prefix}otool; ac_word=$2
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6635 $as_echo_n "checking for $ac_word... " >&6; }
6636 if ${ac_cv_prog_OTOOL+:} false; then :
6637 $as_echo_n "(cached) " >&6
6639 if test -n "$OTOOL"; then
6640 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646 test -z "$as_dir" && as_dir=.
6647 for ac_exec_ext in '' $ac_executable_extensions; do
6648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6649 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 OTOOL=$ac_cv_prog_OTOOL
6660 if test -n "$OTOOL"; then
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6662 $as_echo "$OTOOL" >&6; }
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665 $as_echo "no" >&6; }
6670 if test -z "$ac_cv_prog_OTOOL"; then
6672 # Extract the first word of "otool", so it can be a program name with args.
6673 set dummy otool; ac_word=$2
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675 $as_echo_n "checking for $ac_word... " >&6; }
6676 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6677 $as_echo_n "(cached) " >&6
6679 if test -n "$ac_ct_OTOOL"; then
6680 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 test -z "$as_dir" && as_dir=.
6687 for ac_exec_ext in '' $ac_executable_extensions; do
6688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6689 ac_cv_prog_ac_ct_OTOOL="otool"
6690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6700 if test -n "$ac_ct_OTOOL"; then
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6702 $as_echo "$ac_ct_OTOOL" >&6; }
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705 $as_echo "no" >&6; }
6708 if test "x$ac_ct_OTOOL" = x; then
6711 case $cross_compiling:$ac_tool_warned in
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6715 ac_tool_warned=yes ;;
6720 OTOOL="$ac_cv_prog_OTOOL"
6723 if test -n "$ac_tool_prefix"; then
6724 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6725 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727 $as_echo_n "checking for $ac_word... " >&6; }
6728 if ${ac_cv_prog_OTOOL64+:} false; then :
6729 $as_echo_n "(cached) " >&6
6731 if test -n "$OTOOL64"; then
6732 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6741 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 OTOOL64=$ac_cv_prog_OTOOL64
6752 if test -n "$OTOOL64"; then
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6754 $as_echo "$OTOOL64" >&6; }
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6757 $as_echo "no" >&6; }
6762 if test -z "$ac_cv_prog_OTOOL64"; then
6763 ac_ct_OTOOL64=$OTOOL64
6764 # Extract the first word of "otool64", so it can be a program name with args.
6765 set dummy otool64; ac_word=$2
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767 $as_echo_n "checking for $ac_word... " >&6; }
6768 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6769 $as_echo_n "(cached) " >&6
6771 if test -n "$ac_ct_OTOOL64"; then
6772 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_prog_ac_ct_OTOOL64="otool64"
6782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6792 if test -n "$ac_ct_OTOOL64"; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6794 $as_echo "$ac_ct_OTOOL64" >&6; }
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 $as_echo "no" >&6; }
6800 if test "x$ac_ct_OTOOL64" = x; then
6803 case $cross_compiling:$ac_tool_warned in
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6807 ac_tool_warned=yes ;;
6809 OTOOL64=$ac_ct_OTOOL64
6812 OTOOL64="$ac_cv_prog_OTOOL64"
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6842 $as_echo_n "checking for -single_module linker flag... " >&6; }
6843 if ${lt_cv_apple_cc_single_mod+:} false; then :
6844 $as_echo_n "(cached) " >&6
6846 lt_cv_apple_cc_single_mod=no
6847 if test -z "${LT_MULTI_MODULE}"; then
6848 # By default we will add the -single_module flag. You can override
6849 # by either setting the environment variable LT_MULTI_MODULE
6850 # non-empty at configure time, or by adding -multi_module to the
6852 rm -rf libconftest.dylib*
6853 echo "int foo(void){return 1;}" > conftest.c
6854 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6855 -dynamiclib -Wl,-single_module conftest.c" >&5
6856 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6857 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6859 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6860 lt_cv_apple_cc_single_mod=yes
6862 cat conftest.err >&5
6864 rm -rf libconftest.dylib*
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6869 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6871 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6872 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6873 $as_echo_n "(cached) " >&6
6875 lt_cv_ld_exported_symbols_list=no
6876 save_LDFLAGS=$LDFLAGS
6877 echo "_main" > conftest.sym
6878 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6880 /* end confdefs.h. */
6890 if ac_fn_c_try_link "$LINENO"; then :
6891 lt_cv_ld_exported_symbols_list=yes
6893 lt_cv_ld_exported_symbols_list=no
6895 rm -f core conftest.err conftest.$ac_objext \
6896 conftest$ac_exeext conftest.$ac_ext
6897 LDFLAGS="$save_LDFLAGS"
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6901 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6903 $as_echo_n "checking for -force_load linker flag... " >&6; }
6904 if ${lt_cv_ld_force_load+:} false; then :
6905 $as_echo_n "(cached) " >&6
6907 lt_cv_ld_force_load=no
6908 cat > conftest.c << _LT_EOF
6909 int forced_loaded() { return 2;}
6911 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6912 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6913 echo "$AR cru libconftest.a conftest.o" >&5
6914 $AR cru libconftest.a conftest.o 2>&5
6915 echo "$RANLIB libconftest.a" >&5
6916 $RANLIB libconftest.a 2>&5
6917 cat > conftest.c << _LT_EOF
6918 int main() { return 0;}
6920 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6921 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6923 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6924 lt_cv_ld_force_load=yes
6926 cat conftest.err >&5
6928 rm -f conftest.err libconftest.a conftest conftest.c
6929 rm -rf conftest.dSYM
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6933 $as_echo "$lt_cv_ld_force_load" >&6; }
6935 rhapsody* | darwin1.[012])
6936 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6938 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6939 darwin*) # darwin 5.x on
6940 # if running on 10.5 or later, the deployment target defaults
6941 # to the OS version, if on x86, and 10.4, the deployment
6942 # target defaults to 10.4. Don't you love it?
6943 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6944 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6945 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6947 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6949 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6953 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6954 _lt_dar_single_mod='$single_module'
6956 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6957 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6959 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6961 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6962 _lt_dsymutil='~$DSYMUTIL $lib || :'
6970 ac_cpp='$CPP $CPPFLAGS'
6971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6975 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6976 # On Suns, sometimes $CPP names a directory.
6977 if test -n "$CPP" && test -d "$CPP"; then
6980 if test -z "$CPP"; then
6981 if ${ac_cv_prog_CPP+:} false; then :
6982 $as_echo_n "(cached) " >&6
6984 # Double quotes because CPP needs to be expanded
6985 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6988 for ac_c_preproc_warn_flag in '' yes
6990 # Use a header file that comes with gcc, so configuring glibc
6991 # with a fresh cross-compiler works.
6992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6993 # <limits.h> exists even on freestanding compilers.
6994 # On the NeXT, cc -E runs the code through the compiler's parser,
6995 # not just through cpp. "Syntax error" is here to catch this case.
6996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997 /* end confdefs.h. */
6999 # include <limits.h>
7001 # include <assert.h>
7005 if ac_fn_c_try_cpp "$LINENO"; then :
7008 # Broken: fails on valid input.
7011 rm -f conftest.err conftest.i conftest.$ac_ext
7013 # OK, works on sane cases. Now check whether nonexistent headers
7014 # can be detected and how.
7015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7016 /* end confdefs.h. */
7017 #include <ac_nonexistent.h>
7019 if ac_fn_c_try_cpp "$LINENO"; then :
7020 # Broken: success on invalid input.
7023 # Passes both tests.
7027 rm -f conftest.err conftest.i conftest.$ac_ext
7030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7031 rm -f conftest.i conftest.err conftest.$ac_ext
7032 if $ac_preproc_ok; then :
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7045 $as_echo "$CPP" >&6; }
7047 for ac_c_preproc_warn_flag in '' yes
7049 # Use a header file that comes with gcc, so configuring glibc
7050 # with a fresh cross-compiler works.
7051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7052 # <limits.h> exists even on freestanding compilers.
7053 # On the NeXT, cc -E runs the code through the compiler's parser,
7054 # not just through cpp. "Syntax error" is here to catch this case.
7055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056 /* end confdefs.h. */
7058 # include <limits.h>
7060 # include <assert.h>
7064 if ac_fn_c_try_cpp "$LINENO"; then :
7067 # Broken: fails on valid input.
7070 rm -f conftest.err conftest.i conftest.$ac_ext
7072 # OK, works on sane cases. Now check whether nonexistent headers
7073 # can be detected and how.
7074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h. */
7076 #include <ac_nonexistent.h>
7078 if ac_fn_c_try_cpp "$LINENO"; then :
7079 # Broken: success on invalid input.
7082 # Passes both tests.
7086 rm -f conftest.err conftest.i conftest.$ac_ext
7089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7090 rm -f conftest.i conftest.err conftest.$ac_ext
7091 if $ac_preproc_ok; then :
7094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7096 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7097 See \`config.log' for more details" "$LINENO" 5; }
7101 ac_cpp='$CPP $CPPFLAGS'
7102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7108 $as_echo_n "checking for ANSI C header files... " >&6; }
7109 if ${ac_cv_header_stdc+:} false; then :
7110 $as_echo_n "(cached) " >&6
7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h. */
7127 if ac_fn_c_try_compile "$LINENO"; then :
7128 ac_cv_header_stdc=yes
7130 ac_cv_header_stdc=no
7132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7134 if test $ac_cv_header_stdc = yes; then
7135 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7142 $EGREP "memchr" >/dev/null 2>&1; then :
7145 ac_cv_header_stdc=no
7151 if test $ac_cv_header_stdc = yes; then
7152 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154 /* end confdefs.h. */
7158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7159 $EGREP "free" >/dev/null 2>&1; then :
7162 ac_cv_header_stdc=no
7168 if test $ac_cv_header_stdc = yes; then
7169 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7170 if test "$cross_compiling" = yes; then :
7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h. */
7177 #if ((' ' & 0x0FF) == 0x020)
7178 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7179 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7181 # define ISLOWER(c) \
7182 (('a' <= (c) && (c) <= 'i') \
7183 || ('j' <= (c) && (c) <= 'r') \
7184 || ('s' <= (c) && (c) <= 'z'))
7185 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7188 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7193 for (i = 0; i < 256; i++)
7194 if (XOR (islower (i), ISLOWER (i))
7195 || toupper (i) != TOUPPER (i))
7200 if ac_fn_c_try_run "$LINENO"; then :
7203 ac_cv_header_stdc=no
7205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7206 conftest.$ac_objext conftest.beam conftest.$ac_ext
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7212 $as_echo "$ac_cv_header_stdc" >&6; }
7213 if test $ac_cv_header_stdc = yes; then
7215 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7219 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7220 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7221 inttypes.h stdint.h unistd.h
7223 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7224 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7226 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7227 cat >>confdefs.h <<_ACEOF
7228 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7236 for ac_header in dlfcn.h
7238 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7240 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7241 cat >>confdefs.h <<_ACEOF
7242 #define HAVE_DLFCN_H 1
7263 # Check whether --enable-shared was given.
7264 if test "${enable_shared+set}" = set; then :
7265 enableval=$enable_shared; p=${PACKAGE-default}
7267 yes) enable_shared=yes ;;
7268 no) enable_shared=no ;;
7271 # Look at the argument we got. We use all the common list separators.
7272 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7273 for pkg in $enableval; do
7275 if test "X$pkg" = "X$p"; then
7294 # Check whether --enable-static was given.
7295 if test "${enable_static+set}" = set; then :
7296 enableval=$enable_static; p=${PACKAGE-default}
7298 yes) enable_static=yes ;;
7299 no) enable_static=no ;;
7302 # Look at the argument we got. We use all the common list separators.
7303 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7304 for pkg in $enableval; do
7306 if test "X$pkg" = "X$p"; then
7326 # Check whether --with-pic was given.
7327 if test "${with_pic+set}" = set; then :
7328 withval=$with_pic; pic_mode="$withval"
7334 test -z "$pic_mode" && pic_mode=default
7342 # Check whether --enable-fast-install was given.
7343 if test "${enable_fast_install+set}" = set; then :
7344 enableval=$enable_fast_install; p=${PACKAGE-default}
7346 yes) enable_fast_install=yes ;;
7347 no) enable_fast_install=no ;;
7349 enable_fast_install=no
7350 # Look at the argument we got. We use all the common list separators.
7351 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7352 for pkg in $enableval; do
7354 if test "X$pkg" = "X$p"; then
7355 enable_fast_install=yes
7362 enable_fast_install=yes
7375 # This can be used to rebuild libtool when needed
7376 LIBTOOL_DEPS="$ltmain"
7378 # Always use our own libtool.
7379 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7406 test -z "$LN_S" && LN_S="ln -s"
7421 if test -n "${ZSH_VERSION+set}" ; then
7422 setopt NO_GLOB_SUBST
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7426 $as_echo_n "checking for objdir... " >&6; }
7427 if ${lt_cv_objdir+:} false; then :
7428 $as_echo_n "(cached) " >&6
7430 rm -f .libs 2>/dev/null
7431 mkdir .libs 2>/dev/null
7432 if test -d .libs; then
7435 # MS-DOS does not allow filenames that begin with a dot.
7438 rmdir .libs 2>/dev/null
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7441 $as_echo "$lt_cv_objdir" >&6; }
7442 objdir=$lt_cv_objdir
7448 cat >>confdefs.h <<_ACEOF
7449 #define LT_OBJDIR "$lt_cv_objdir/"
7457 # AIX sometimes has problems with the GCC collect2 program. For some
7458 # reason, if we set the COLLECT_NAMES environment variable, the problems
7459 # vanish in a puff of smoke.
7460 if test "X${COLLECT_NAMES+set}" != Xset; then
7462 export COLLECT_NAMES
7469 can_build_shared=yes
7471 # All known linkers require a `.a' archive for static linking (except MSVC,
7472 # which needs '.lib').
7475 with_gnu_ld="$lt_cv_prog_gnu_ld"
7478 old_CFLAGS="$CFLAGS"
7480 # Set sane defaults for various variables
7481 test -z "$CC" && CC=cc
7482 test -z "$LTCC" && LTCC=$CC
7483 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7484 test -z "$LD" && LD=ld
7485 test -z "$ac_objext" && ac_objext=o
7487 for cc_temp in $compiler""; do
7489 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7490 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7495 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7498 # Only perform the check for file, if the check method requires it
7499 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7500 case $deplibs_check_method in
7502 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7504 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7505 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7506 $as_echo_n "(cached) " >&6
7510 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7513 lt_save_MAGIC_CMD="$MAGIC_CMD"
7514 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7515 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7516 for ac_dir in $ac_dummy; do
7518 test -z "$ac_dir" && ac_dir=.
7519 if test -f $ac_dir/${ac_tool_prefix}file; then
7520 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7521 if test -n "$file_magic_test_file"; then
7522 case $deplibs_check_method in
7524 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7525 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7526 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7527 $EGREP "$file_magic_regex" > /dev/null; then
7532 *** Warning: the command libtool uses to detect shared libraries,
7533 *** $file_magic_cmd, produces output that libtool cannot recognize.
7534 *** The result is that libtool may fail to recognize shared libraries
7535 *** as such. This will affect the creation of libtool libraries that
7536 *** depend on shared libraries, but programs linked with such libtool
7537 *** libraries will work regardless of this problem. Nevertheless, you
7538 *** may want to report the problem to your system manager and/or to
7539 *** bug-libtool@gnu.org
7549 MAGIC_CMD="$lt_save_MAGIC_CMD"
7554 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7555 if test -n "$MAGIC_CMD"; then
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7557 $as_echo "$MAGIC_CMD" >&6; }
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560 $as_echo "no" >&6; }
7567 if test -z "$lt_cv_path_MAGIC_CMD"; then
7568 if test -n "$ac_tool_prefix"; then
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7570 $as_echo_n "checking for file... " >&6; }
7571 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7572 $as_echo_n "(cached) " >&6
7576 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7579 lt_save_MAGIC_CMD="$MAGIC_CMD"
7580 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7581 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7582 for ac_dir in $ac_dummy; do
7584 test -z "$ac_dir" && ac_dir=.
7585 if test -f $ac_dir/file; then
7586 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7587 if test -n "$file_magic_test_file"; then
7588 case $deplibs_check_method in
7590 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7591 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7592 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7593 $EGREP "$file_magic_regex" > /dev/null; then
7598 *** Warning: the command libtool uses to detect shared libraries,
7599 *** $file_magic_cmd, produces output that libtool cannot recognize.
7600 *** The result is that libtool may fail to recognize shared libraries
7601 *** as such. This will affect the creation of libtool libraries that
7602 *** depend on shared libraries, but programs linked with such libtool
7603 *** libraries will work regardless of this problem. Nevertheless, you
7604 *** may want to report the problem to your system manager and/or to
7605 *** bug-libtool@gnu.org
7615 MAGIC_CMD="$lt_save_MAGIC_CMD"
7620 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7621 if test -n "$MAGIC_CMD"; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7623 $as_echo "$MAGIC_CMD" >&6; }
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 $as_echo "no" >&6; }
7639 # Use C for the default configuration in the libtool script
7643 ac_cpp='$CPP $CPPFLAGS'
7644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7649 # Source file extension for C test sources.
7652 # Object file extension for compiled C test sources.
7656 # Code to be used in simple compile tests
7657 lt_simple_compile_test_code="int some_variable = 0;"
7659 # Code to be used in simple link tests
7660 lt_simple_link_test_code='int main(){return(0);}'
7668 # If no C compiler was specified, use CC.
7671 # If no C compiler flags were specified, use CFLAGS.
7672 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7674 # Allow CC to be a program name with arguments.
7677 # Save the default compiler, since it gets overwritten when the other
7678 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7679 compiler_DEFAULT=$CC
7681 # save warnings/boilerplate of simple test code
7682 ac_outfile=conftest.$ac_objext
7683 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7684 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7685 _lt_compiler_boilerplate=`cat conftest.err`
7688 ac_outfile=conftest.$ac_objext
7689 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7690 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7691 _lt_linker_boilerplate=`cat conftest.err`
7695 if test -n "$compiler"; then
7697 lt_prog_compiler_no_builtin_flag=
7699 if test "$GCC" = yes; then
7700 case $cc_basename in
7702 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7704 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7708 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7709 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7710 $as_echo_n "(cached) " >&6
7712 lt_cv_prog_compiler_rtti_exceptions=no
7713 ac_outfile=conftest.$ac_objext
7714 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7715 lt_compiler_flag="-fno-rtti -fno-exceptions"
7716 # Insert the option either (1) after the last *FLAGS variable, or
7717 # (2) before a word containing "conftest.", or (3) at the end.
7718 # Note that $ac_compile itself does not contain backslashes and begins
7719 # with a dollar sign (not a hyphen), so the echo should work correctly.
7720 # The option is referenced via a variable to avoid confusing sed.
7721 lt_compile=`echo "$ac_compile" | $SED \
7722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7724 -e 's:$: $lt_compiler_flag:'`
7725 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7726 (eval "$lt_compile" 2>conftest.err)
7728 cat conftest.err >&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 if (exit $ac_status) && test -s "$ac_outfile"; then
7731 # The compiler can only warn and ignore the option if not recognized
7732 # So say no if there are warnings other than the usual output.
7733 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7734 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7735 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7736 lt_cv_prog_compiler_rtti_exceptions=yes
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7743 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7745 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7746 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7758 lt_prog_compiler_wl=
7759 lt_prog_compiler_pic=
7760 lt_prog_compiler_static=
7763 if test "$GCC" = yes; then
7764 lt_prog_compiler_wl='-Wl,'
7765 lt_prog_compiler_static='-static'
7769 # All AIX code is PIC.
7770 if test "$host_cpu" = ia64; then
7771 # AIX 5 now supports IA64 processor
7772 lt_prog_compiler_static='-Bstatic'
7779 # see comment about AmigaOS4 .so support
7780 lt_prog_compiler_pic='-fPIC'
7783 # FIXME: we need at least 68020 code to build shared libraries, but
7784 # adding the `-m68020' flag to GCC prevents building anything better,
7786 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7791 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7792 # PIC is the default for these OSes.
7795 mingw* | cygwin* | pw32* | os2* | cegcc*)
7796 # This hack is so that the source file can tell whether it is being
7797 # built for inclusion in a dll (and should export symbols for example).
7798 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7799 # (--disable-auto-import) libraries
7800 lt_prog_compiler_pic='-DDLL_EXPORT'
7803 darwin* | rhapsody*)
7804 # PIC is the default on this platform
7805 # Common symbols not allowed in MH_DYLIB files
7806 lt_prog_compiler_pic='-fno-common'
7810 # PIC is the default for Haiku.
7811 # The "-static" flag exists, but is broken.
7812 lt_prog_compiler_static=
7816 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7817 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7818 # sets the default TLS model and affects inlining.
7824 lt_prog_compiler_pic='-fPIC'
7830 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7831 # Instead, we relocate shared libraries at runtime.
7835 # Just because we use GCC doesn't mean we suddenly get shared libraries
7836 # on systems that don't support them.
7837 lt_prog_compiler_can_build_shared=no
7842 # QNX uses GNU C++, but need to define -shared option too, otherwise
7844 lt_prog_compiler_pic='-fPIC -shared'
7848 if test -d /usr/nec; then
7849 lt_prog_compiler_pic=-Kconform_pic
7854 lt_prog_compiler_pic='-fPIC'
7858 case $cc_basename in
7859 nvcc*) # Cuda Compiler Driver 2.2
7860 lt_prog_compiler_wl='-Xlinker '
7861 lt_prog_compiler_pic='-Xcompiler -fPIC'
7865 # PORTME Check for flag to pass linker flags through the system compiler.
7868 lt_prog_compiler_wl='-Wl,'
7869 if test "$host_cpu" = ia64; then
7870 # AIX 5 now supports IA64 processor
7871 lt_prog_compiler_static='-Bstatic'
7873 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7877 mingw* | cygwin* | pw32* | os2* | cegcc*)
7878 # This hack is so that the source file can tell whether it is being
7879 # built for inclusion in a dll (and should export symbols for example).
7880 lt_prog_compiler_pic='-DDLL_EXPORT'
7883 hpux9* | hpux10* | hpux11*)
7884 lt_prog_compiler_wl='-Wl,'
7885 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7892 lt_prog_compiler_pic='+Z'
7895 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7896 lt_prog_compiler_static='${wl}-a ${wl}archive'
7899 irix5* | irix6* | nonstopux*)
7900 lt_prog_compiler_wl='-Wl,'
7901 # PIC (with -KPIC) is the default.
7902 lt_prog_compiler_static='-non_shared'
7905 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7906 case $cc_basename in
7907 # old Intel for x86_64 which still supported -KPIC.
7909 lt_prog_compiler_wl='-Wl,'
7910 lt_prog_compiler_pic='-KPIC'
7911 lt_prog_compiler_static='-static'
7913 # icc used to be incompatible with GCC.
7914 # ICC 10 doesn't accept -KPIC any more.
7916 lt_prog_compiler_wl='-Wl,'
7917 lt_prog_compiler_pic='-fPIC'
7918 lt_prog_compiler_static='-static'
7920 # Lahey Fortran 8.1.
7922 lt_prog_compiler_wl='-Wl,'
7923 lt_prog_compiler_pic='--shared'
7924 lt_prog_compiler_static='--static'
7927 # NAG Fortran compiler
7928 lt_prog_compiler_wl='-Wl,-Wl,,'
7929 lt_prog_compiler_pic='-PIC'
7930 lt_prog_compiler_static='-Bstatic'
7932 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7933 # Portland Group compilers (*not* the Pentium gcc compiler,
7934 # which looks to be a dead project)
7935 lt_prog_compiler_wl='-Wl,'
7936 lt_prog_compiler_pic='-fpic'
7937 lt_prog_compiler_static='-Bstatic'
7940 lt_prog_compiler_wl='-Wl,'
7941 # All Alpha code is PIC.
7942 lt_prog_compiler_static='-non_shared'
7944 xl* | bgxl* | bgf* | mpixl*)
7945 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7946 lt_prog_compiler_wl='-Wl,'
7947 lt_prog_compiler_pic='-qpic'
7948 lt_prog_compiler_static='-qstaticlink'
7951 case `$CC -V 2>&1 | sed 5q` in
7952 *Sun\ F* | *Sun*Fortran*)
7953 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7954 lt_prog_compiler_pic='-KPIC'
7955 lt_prog_compiler_static='-Bstatic'
7956 lt_prog_compiler_wl=''
7960 lt_prog_compiler_pic='-KPIC'
7961 lt_prog_compiler_static='-Bstatic'
7962 lt_prog_compiler_wl='-Wl,'
7970 lt_prog_compiler_pic='-KPIC'
7971 lt_prog_compiler_static='-Bstatic'
7975 # QNX uses GNU C++, but need to define -shared option too, otherwise
7977 lt_prog_compiler_pic='-fPIC -shared'
7980 osf3* | osf4* | osf5*)
7981 lt_prog_compiler_wl='-Wl,'
7982 # All OSF/1 code is PIC.
7983 lt_prog_compiler_static='-non_shared'
7987 lt_prog_compiler_static='-non_shared'
7991 lt_prog_compiler_pic='-KPIC'
7992 lt_prog_compiler_static='-Bstatic'
7993 case $cc_basename in
7994 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7995 lt_prog_compiler_wl='-Qoption ld ';;
7997 lt_prog_compiler_wl='-Wl,';;
8002 lt_prog_compiler_wl='-Qoption ld '
8003 lt_prog_compiler_pic='-PIC'
8004 lt_prog_compiler_static='-Bstatic'
8007 sysv4 | sysv4.2uw2* | sysv4.3*)
8008 lt_prog_compiler_wl='-Wl,'
8009 lt_prog_compiler_pic='-KPIC'
8010 lt_prog_compiler_static='-Bstatic'
8014 if test -d /usr/nec ;then
8015 lt_prog_compiler_pic='-Kconform_pic'
8016 lt_prog_compiler_static='-Bstatic'
8020 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8021 lt_prog_compiler_wl='-Wl,'
8022 lt_prog_compiler_pic='-KPIC'
8023 lt_prog_compiler_static='-Bstatic'
8027 lt_prog_compiler_wl='-Wl,'
8028 lt_prog_compiler_can_build_shared=no
8032 lt_prog_compiler_pic='-pic'
8033 lt_prog_compiler_static='-Bstatic'
8037 lt_prog_compiler_can_build_shared=no
8043 # For platforms which do not support PIC, -DPIC is meaningless:
8045 lt_prog_compiler_pic=
8048 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8053 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8054 if ${lt_cv_prog_compiler_pic+:} false; then :
8055 $as_echo_n "(cached) " >&6
8057 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8060 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8061 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8064 # Check to make sure the PIC flag actually works.
8066 if test -n "$lt_prog_compiler_pic"; then
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8068 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8069 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8070 $as_echo_n "(cached) " >&6
8072 lt_cv_prog_compiler_pic_works=no
8073 ac_outfile=conftest.$ac_objext
8074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8075 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8076 # Insert the option either (1) after the last *FLAGS variable, or
8077 # (2) before a word containing "conftest.", or (3) at the end.
8078 # Note that $ac_compile itself does not contain backslashes and begins
8079 # with a dollar sign (not a hyphen), so the echo should work correctly.
8080 # The option is referenced via a variable to avoid confusing sed.
8081 lt_compile=`echo "$ac_compile" | $SED \
8082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8084 -e 's:$: $lt_compiler_flag:'`
8085 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8086 (eval "$lt_compile" 2>conftest.err)
8088 cat conftest.err >&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 if (exit $ac_status) && test -s "$ac_outfile"; then
8091 # The compiler can only warn and ignore the option if not recognized
8092 # So say no if there are warnings other than the usual output.
8093 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8094 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8095 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8096 lt_cv_prog_compiler_pic_works=yes
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8103 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8105 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8106 case $lt_prog_compiler_pic in
8108 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8111 lt_prog_compiler_pic=
8112 lt_prog_compiler_can_build_shared=no
8128 # Check to make sure the static flag actually works.
8130 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8132 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8133 if ${lt_cv_prog_compiler_static_works+:} false; then :
8134 $as_echo_n "(cached) " >&6
8136 lt_cv_prog_compiler_static_works=no
8137 save_LDFLAGS="$LDFLAGS"
8138 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8139 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8140 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8141 # The linker can only warn and ignore the option if not recognized
8142 # So say no if there are warnings
8143 if test -s conftest.err; then
8144 # Append any errors to the config.log.
8145 cat conftest.err 1>&5
8146 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8147 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8148 if diff conftest.exp conftest.er2 >/dev/null; then
8149 lt_cv_prog_compiler_static_works=yes
8152 lt_cv_prog_compiler_static_works=yes
8156 LDFLAGS="$save_LDFLAGS"
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8160 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8162 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8165 lt_prog_compiler_static=
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8175 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8176 if ${lt_cv_prog_compiler_c_o+:} false; then :
8177 $as_echo_n "(cached) " >&6
8179 lt_cv_prog_compiler_c_o=no
8180 $RM -r conftest 2>/dev/null
8184 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8186 lt_compiler_flag="-o out/conftest2.$ac_objext"
8187 # Insert the option either (1) after the last *FLAGS variable, or
8188 # (2) before a word containing "conftest.", or (3) at the end.
8189 # Note that $ac_compile itself does not contain backslashes and begins
8190 # with a dollar sign (not a hyphen), so the echo should work correctly.
8191 lt_compile=`echo "$ac_compile" | $SED \
8192 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8193 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8194 -e 's:$: $lt_compiler_flag:'`
8195 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8196 (eval "$lt_compile" 2>out/conftest.err)
8198 cat out/conftest.err >&5
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8202 # The compiler can only warn and ignore the option if not recognized
8203 # So say no if there are warnings
8204 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8205 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8206 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8207 lt_cv_prog_compiler_c_o=yes
8212 # SGI C++ compiler will create directory out/ii_files/ for
8213 # template instantiation
8214 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8215 $RM out/* && rmdir out
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8222 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8230 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8231 if ${lt_cv_prog_compiler_c_o+:} false; then :
8232 $as_echo_n "(cached) " >&6
8234 lt_cv_prog_compiler_c_o=no
8235 $RM -r conftest 2>/dev/null
8239 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8241 lt_compiler_flag="-o out/conftest2.$ac_objext"
8242 # Insert the option either (1) after the last *FLAGS variable, or
8243 # (2) before a word containing "conftest.", or (3) at the end.
8244 # Note that $ac_compile itself does not contain backslashes and begins
8245 # with a dollar sign (not a hyphen), so the echo should work correctly.
8246 lt_compile=`echo "$ac_compile" | $SED \
8247 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8249 -e 's:$: $lt_compiler_flag:'`
8250 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8251 (eval "$lt_compile" 2>out/conftest.err)
8253 cat out/conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8257 # The compiler can only warn and ignore the option if not recognized
8258 # So say no if there are warnings
8259 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8260 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8261 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8262 lt_cv_prog_compiler_c_o=yes
8267 # SGI C++ compiler will create directory out/ii_files/ for
8268 # template instantiation
8269 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8270 $RM out/* && rmdir out
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8277 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8282 hard_links="nottested"
8283 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8284 # do not overwrite the value of need_locks provided by the user
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8286 $as_echo_n "checking if we can lock with hard links... " >&6; }
8289 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8291 ln conftest.a conftest.b 2>&5 || hard_links=no
8292 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8294 $as_echo "$hard_links" >&6; }
8295 if test "$hard_links" = no; then
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8297 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8310 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8313 allow_undefined_flag=
8314 always_export_symbols=no
8316 archive_expsym_cmds=
8317 compiler_needs_object=no
8318 enable_shared_with_static_runtimes=no
8319 export_dynamic_flag_spec=
8320 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8321 hardcode_automatic=no
8323 hardcode_direct_absolute=no
8324 hardcode_libdir_flag_spec=
8325 hardcode_libdir_flag_spec_ld=
8326 hardcode_libdir_separator=
8328 hardcode_shlibpath_var=unsupported
8330 link_all_deplibs=unknown
8333 old_archive_from_new_cmds=
8334 old_archive_from_expsyms_cmds=
8335 thread_safe_flag_spec=
8336 whole_archive_flag_spec=
8337 # include_expsyms should be a list of space-separated symbols to be *always*
8338 # included in the symbol list
8340 # exclude_expsyms can be an extended regexp of symbols to exclude
8341 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8342 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8343 # as well as any symbol that contains `d'.
8344 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8345 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8346 # platforms (ab)use it in PIC code, but their linkers get confused if
8347 # the symbol is explicitly referenced. Since portable code cannot
8348 # rely on this symbol name, it's probably fine to never include it in
8349 # preloaded symbol tables.
8350 # Exclude shared library initialization/finalization symbols.
8351 extract_expsyms_cmds=
8354 cygwin* | mingw* | pw32* | cegcc*)
8355 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8356 # When not using gcc, we currently assume that we are using
8357 # Microsoft Visual C++.
8358 if test "$GCC" != yes; then
8363 # we just hope/assume this is gcc and not c89 (= MSVC++)
8373 # On some targets, GNU ld is compatible enough with the native linker
8374 # that we're better off using the native interface for both.
8375 lt_use_gnu_ld_interface=no
8376 if test "$with_gnu_ld" = yes; then
8379 # The AIX port of GNU ld has always aspired to compatibility
8380 # with the native linker. However, as the warning in the GNU ld
8381 # block says, versions before 2.19.5* couldn't really create working
8382 # shared libraries, regardless of the interface used.
8383 case `$LD -v 2>&1` in
8384 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8385 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8386 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8388 lt_use_gnu_ld_interface=yes
8393 lt_use_gnu_ld_interface=yes
8398 if test "$lt_use_gnu_ld_interface" = yes; then
8399 # If archive_cmds runs LD, not CC, wlarc should be empty
8402 # Set some defaults for GNU ld with shared library support. These
8403 # are reset later if shared libraries are not supported. Putting them
8404 # here allows them to be overridden if necessary.
8405 runpath_var=LD_RUN_PATH
8406 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8407 export_dynamic_flag_spec='${wl}--export-dynamic'
8408 # ancient GNU ld didn't support --whole-archive et. al.
8409 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8410 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8412 whole_archive_flag_spec=
8414 supports_anon_versioning=no
8415 case `$LD -v 2>&1` in
8416 *GNU\ gold*) supports_anon_versioning=yes ;;
8417 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8418 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8419 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8420 *\ 2.11.*) ;; # other 2.11 versions
8421 *) supports_anon_versioning=yes ;;
8424 # See if GNU ld supports shared libraries.
8427 # On AIX/PPC, the GNU linker is very broken
8428 if test "$host_cpu" != ia64; then
8432 *** Warning: the GNU linker, at least up to release 2.19, is reported
8433 *** to be unable to reliably create shared libraries on AIX.
8434 *** Therefore, libtool is disabling shared libraries support. If you
8435 *** really care for shared libraries, you may want to install binutils
8436 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8437 *** You will then need to restart the configuration process.
8446 # see comment about AmigaOS4 .so support
8447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8448 archive_expsym_cmds=''
8451 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)'
8452 hardcode_libdir_flag_spec='-L$libdir'
8453 hardcode_minus_L=yes
8459 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8460 allow_undefined_flag=unsupported
8461 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8462 # support --undefined. This deserves some investigation. FIXME
8463 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8469 cygwin* | mingw* | pw32* | cegcc*)
8470 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8471 # as there is no search path for DLLs.
8472 hardcode_libdir_flag_spec='-L$libdir'
8473 export_dynamic_flag_spec='${wl}--export-all-symbols'
8474 allow_undefined_flag=unsupported
8475 always_export_symbols=no
8476 enable_shared_with_static_runtimes=yes
8477 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'
8478 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8480 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8482 # If the export-symbols file already is a .def file (1st line
8483 # is EXPORTS), use it as is; otherwise, prepend...
8484 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8485 cp $export_symbols $output_objdir/$soname.def;
8487 echo EXPORTS > $output_objdir/$soname.def;
8488 cat $export_symbols >> $output_objdir/$soname.def;
8490 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8497 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8498 link_all_deplibs=yes
8503 hardcode_shlibpath_var=no
8504 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8505 export_dynamic_flag_spec='${wl}-E'
8506 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8507 # Instead, shared libraries are loaded at an image base (0x10000000 by
8508 # default) and relocated if they conflict, which is a slow very memory
8509 # consuming and fragmenting process. To avoid this, we pick a random,
8510 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8511 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8512 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8513 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'
8516 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8518 if test "$host_os" = linux-dietlibc; then
8519 case $cc_basename in
8520 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8523 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8524 && test "$tmp_diet" = no
8526 tmp_addflag=' $pic_flag'
8527 tmp_sharedflag='-shared'
8528 case $cc_basename,$host_cpu in
8529 pgcc*) # Portland Group C compiler
8530 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'
8531 tmp_addflag=' $pic_flag'
8533 pgf77* | pgf90* | pgf95* | pgfortran*)
8534 # Portland Group f77 and f90 compilers
8535 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'
8536 tmp_addflag=' $pic_flag -Mnomain' ;;
8537 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8538 tmp_addflag=' -i_dynamic' ;;
8539 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8540 tmp_addflag=' -i_dynamic -nofor_main' ;;
8541 ifc* | ifort*) # Intel Fortran compiler
8542 tmp_addflag=' -nofor_main' ;;
8543 lf95*) # Lahey Fortran 8.1
8544 whole_archive_flag_spec=
8545 tmp_sharedflag='--shared' ;;
8546 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8547 tmp_sharedflag='-qmkshrobj'
8549 nvcc*) # Cuda Compiler Driver 2.2
8550 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'
8551 compiler_needs_object=yes
8554 case `$CC -V 2>&1 | sed 5q` in
8555 *Sun\ C*) # Sun C 5.9
8556 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'
8557 compiler_needs_object=yes
8558 tmp_sharedflag='-G' ;;
8559 *Sun\ F*) # Sun Fortran 8.3
8560 tmp_sharedflag='-G' ;;
8562 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8564 if test "x$supports_anon_versioning" = xyes; then
8565 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8566 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8567 echo "local: *; };" >> $output_objdir/$libname.ver~
8568 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8571 case $cc_basename in
8572 xlf* | bgf* | bgxlf* | mpixlf*)
8573 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8574 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8575 hardcode_libdir_flag_spec=
8576 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8577 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $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 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8592 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8593 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8596 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8597 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8602 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8606 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8607 *** create shared libraries on Solaris systems. Therefore, libtool
8608 *** is disabling shared libraries support. We urge you to upgrade GNU
8609 *** binutils to release 2.9.1 or newer. Another option is to modify
8610 *** your PATH or compiler configuration so that the native linker is
8611 *** used, and then restart.
8614 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8615 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8616 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8622 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8623 case `$LD -v 2>&1` in
8624 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8628 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8629 *** reliably create shared libraries on SCO systems. Therefore, libtool
8630 *** is disabling shared libraries support. We urge you to upgrade GNU
8631 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8632 *** your PATH or compiler configuration so that the native linker is
8633 *** used, and then restart.
8638 # For security reasons, it is highly recommended that you always
8639 # use absolute paths for naming shared libraries, and exclude the
8640 # DT_RUNPATH tag from executables and libraries. But doing so
8641 # requires that you compile everything twice, which is a pain.
8642 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8643 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8644 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8645 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8654 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8657 hardcode_shlibpath_var=no
8661 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8662 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8663 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8670 if test "$ld_shlibs" = no; then
8672 hardcode_libdir_flag_spec=
8673 export_dynamic_flag_spec=
8674 whole_archive_flag_spec=
8677 # PORTME fill in a description of your system's linker (not GNU ld)
8680 allow_undefined_flag=unsupported
8681 always_export_symbols=yes
8682 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'
8683 # Note: this linker hardcodes the directories in LIBPATH if there
8684 # are no directories specified by -L.
8685 hardcode_minus_L=yes
8686 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8687 # Neither direct hardcoding nor static linking is supported with a
8689 hardcode_direct=unsupported
8694 if test "$host_cpu" = ia64; then
8695 # On IA64, the linker does run time linking by default, so we don't
8696 # have to do anything special.
8697 aix_use_runtimelinking=no
8698 exp_sym_flag='-Bexport'
8701 # If we're using GNU nm, then we don't want the "-C" option.
8702 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8703 # Also, AIX nm treats weak defined symbols like other global
8704 # defined symbols, whereas GNU nm marks them as "W".
8705 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8706 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'
8708 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'
8710 aix_use_runtimelinking=no
8712 # Test if we are trying to use run time linking or normal
8713 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8714 # need to do runtime linking.
8715 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8716 for ld_flag in $LDFLAGS; do
8717 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8718 aix_use_runtimelinking=yes
8725 exp_sym_flag='-bexport'
8726 no_entry_flag='-bnoentry'
8729 # When large executables or shared objects are built, AIX ld can
8730 # have problems creating the table of contents. If linking a library
8731 # or program results in "error TOC overflow" add -mminimal-toc to
8732 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8733 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8737 hardcode_direct_absolute=yes
8738 hardcode_libdir_separator=':'
8739 link_all_deplibs=yes
8740 file_list_spec='${wl}-f,'
8742 if test "$GCC" = yes; then
8743 case $host_os in aix4.[012]|aix4.[012].*)
8744 # We only want to do this on AIX 4.2 and lower, the check
8745 # below for broken collect2 doesn't work under 4.3+
8746 collect2name=`${CC} -print-prog-name=collect2`
8747 if test -f "$collect2name" &&
8748 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8750 # We have reworked collect2
8753 # We have old collect2
8754 hardcode_direct=unsupported
8755 # It fails to find uninstalled libraries when the uninstalled
8756 # path is not listed in the libpath. Setting hardcode_minus_L
8757 # to unsupported forces relinking
8758 hardcode_minus_L=yes
8759 hardcode_libdir_flag_spec='-L$libdir'
8760 hardcode_libdir_separator=
8764 shared_flag='-shared'
8765 if test "$aix_use_runtimelinking" = yes; then
8766 shared_flag="$shared_flag "'${wl}-G'
8770 if test "$host_cpu" = ia64; then
8771 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8772 # chokes on -Wl,-G. The following line is correct:
8775 if test "$aix_use_runtimelinking" = yes; then
8776 shared_flag='${wl}-G'
8778 shared_flag='${wl}-bM:SRE'
8783 export_dynamic_flag_spec='${wl}-bexpall'
8784 # It seems that -bexpall does not export symbols beginning with
8785 # underscore (_), so it is better to generate a list of symbols to export.
8786 always_export_symbols=yes
8787 if test "$aix_use_runtimelinking" = yes; then
8788 # Warning - without using the other runtime loading flags (-brtl),
8789 # -berok will link without error, but may produce a broken library.
8790 allow_undefined_flag='-berok'
8791 # Determine the default libpath from the value encoded in an
8793 if test "${lt_cv_aix_libpath+set}" = set; then
8794 aix_libpath=$lt_cv_aix_libpath
8796 if ${lt_cv_aix_libpath_+:} false; then :
8797 $as_echo_n "(cached) " >&6
8799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8800 /* end confdefs.h. */
8810 if ac_fn_c_try_link "$LINENO"; then :
8812 lt_aix_libpath_sed='
8813 /Import File Strings/,/^$/ {
8815 s/^0 *\([^ ]*\) *$/\1/
8819 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8820 # Check for a 64-bit object if we didn't find anything.
8821 if test -z "$lt_cv_aix_libpath_"; then
8822 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8825 rm -f core conftest.err conftest.$ac_objext \
8826 conftest$ac_exeext conftest.$ac_ext
8827 if test -z "$lt_cv_aix_libpath_"; then
8828 lt_cv_aix_libpath_="/usr/lib:/lib"
8833 aix_libpath=$lt_cv_aix_libpath_
8836 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8837 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"
8839 if test "$host_cpu" = ia64; then
8840 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8841 allow_undefined_flag="-z nodefs"
8842 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"
8844 # Determine the default libpath from the value encoded in an
8846 if test "${lt_cv_aix_libpath+set}" = set; then
8847 aix_libpath=$lt_cv_aix_libpath
8849 if ${lt_cv_aix_libpath_+:} false; then :
8850 $as_echo_n "(cached) " >&6
8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h. */
8863 if ac_fn_c_try_link "$LINENO"; then :
8865 lt_aix_libpath_sed='
8866 /Import File Strings/,/^$/ {
8868 s/^0 *\([^ ]*\) *$/\1/
8872 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8873 # Check for a 64-bit object if we didn't find anything.
8874 if test -z "$lt_cv_aix_libpath_"; then
8875 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8878 rm -f core conftest.err conftest.$ac_objext \
8879 conftest$ac_exeext conftest.$ac_ext
8880 if test -z "$lt_cv_aix_libpath_"; then
8881 lt_cv_aix_libpath_="/usr/lib:/lib"
8886 aix_libpath=$lt_cv_aix_libpath_
8889 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8890 # Warning - without using the other run time loading flags,
8891 # -berok will link without error, but may produce a broken library.
8892 no_undefined_flag=' ${wl}-bernotok'
8893 allow_undefined_flag=' ${wl}-berok'
8894 if test "$with_gnu_ld" = yes; then
8895 # We only use this code for GNU lds that support --whole-archive.
8896 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8898 # Exported symbols can be pulled into shared objects from archives
8899 whole_archive_flag_spec='$convenience'
8901 archive_cmds_need_lc=yes
8902 # This is similar to how AIX traditionally builds its shared libraries.
8903 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'
8911 # see comment about AmigaOS4 .so support
8912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8913 archive_expsym_cmds=''
8916 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)'
8917 hardcode_libdir_flag_spec='-L$libdir'
8918 hardcode_minus_L=yes
8924 export_dynamic_flag_spec=-rdynamic
8927 cygwin* | mingw* | pw32* | cegcc*)
8928 # When not using gcc, we currently assume that we are using
8929 # Microsoft Visual C++.
8930 # hardcode_libdir_flag_spec is actually meaningless, as there is
8931 # no search path for DLLs.
8932 case $cc_basename in
8935 hardcode_libdir_flag_spec=' '
8936 allow_undefined_flag=unsupported
8937 always_export_symbols=yes
8939 # Tell ltmain to make .lib files, not .a files.
8941 # Tell ltmain to make .dll files, not .so files.
8943 # FIXME: Setting linknames here is a bad hack.
8944 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8945 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8946 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8948 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8950 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8952 # The linker will not automatically build a static lib if we build a DLL.
8953 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8954 enable_shared_with_static_runtimes=yes
8955 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8957 old_postinstall_cmds='chmod 644 $oldlib'
8958 postlink_cmds='lt_outputfile="@OUTPUT@"~
8959 lt_tool_outputfile="@TOOL_OUTPUT@"~
8960 case $lt_outputfile in
8963 lt_outputfile="$lt_outputfile.exe"
8964 lt_tool_outputfile="$lt_tool_outputfile.exe"
8967 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8968 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8969 $RM "$lt_outputfile.manifest";
8973 # Assume MSVC wrapper
8974 hardcode_libdir_flag_spec=' '
8975 allow_undefined_flag=unsupported
8976 # Tell ltmain to make .lib files, not .a files.
8978 # Tell ltmain to make .dll files, not .so files.
8980 # FIXME: Setting linknames here is a bad hack.
8981 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8982 # The linker will automatically build a .lib file if we build a DLL.
8983 old_archive_from_new_cmds='true'
8984 # FIXME: Should let the user specify the lib program.
8985 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8986 enable_shared_with_static_runtimes=yes
8991 darwin* | rhapsody*)
8994 archive_cmds_need_lc=no
8996 hardcode_automatic=yes
8997 hardcode_shlibpath_var=unsupported
8998 if test "$lt_cv_ld_force_load" = "yes"; then
8999 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\"`'
9001 whole_archive_flag_spec=''
9003 link_all_deplibs=yes
9004 allow_undefined_flag="$_lt_dar_allow_undefined"
9005 case $cc_basename in
9006 ifort*) _lt_dar_can_shared=yes ;;
9007 *) _lt_dar_can_shared=$GCC ;;
9009 if test "$_lt_dar_can_shared" = "yes"; then
9010 output_verbose_link_cmd=func_echo_all
9011 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9012 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9013 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}"
9014 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}"
9023 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9024 hardcode_libdir_flag_spec='-L$libdir'
9025 hardcode_shlibpath_var=no
9032 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9033 # support. Future versions do this automatically, but an explicit c++rt0.o
9034 # does not break anything, and helps significantly (at the cost of a little
9037 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9038 hardcode_libdir_flag_spec='-R$libdir'
9040 hardcode_shlibpath_var=no
9043 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9045 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9047 hardcode_minus_L=yes
9048 hardcode_shlibpath_var=no
9051 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9052 freebsd* | dragonfly*)
9053 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9054 hardcode_libdir_flag_spec='-R$libdir'
9056 hardcode_shlibpath_var=no
9060 if test "$GCC" = yes; then
9061 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'
9063 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'
9065 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9066 hardcode_libdir_separator=:
9069 # hardcode_minus_L: Not really in the search PATH,
9070 # but as the default location of the library.
9071 hardcode_minus_L=yes
9072 export_dynamic_flag_spec='${wl}-E'
9076 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9077 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9079 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9081 if test "$with_gnu_ld" = no; then
9082 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9083 hardcode_libdir_flag_spec_ld='+b $libdir'
9084 hardcode_libdir_separator=:
9086 hardcode_direct_absolute=yes
9087 export_dynamic_flag_spec='${wl}-E'
9088 # hardcode_minus_L: Not really in the search PATH,
9089 # but as the default location of the library.
9090 hardcode_minus_L=yes
9095 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9098 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9101 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9104 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9110 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9113 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9117 # Older versions of the 11.00 compiler do not understand -b yet
9118 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9120 $as_echo_n "checking if $CC understands -b... " >&6; }
9121 if ${lt_cv_prog_compiler__b+:} false; then :
9122 $as_echo_n "(cached) " >&6
9124 lt_cv_prog_compiler__b=no
9125 save_LDFLAGS="$LDFLAGS"
9126 LDFLAGS="$LDFLAGS -b"
9127 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9128 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9129 # The linker can only warn and ignore the option if not recognized
9130 # So say no if there are warnings
9131 if test -s conftest.err; then
9132 # Append any errors to the config.log.
9133 cat conftest.err 1>&5
9134 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9135 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9136 if diff conftest.exp conftest.er2 >/dev/null; then
9137 lt_cv_prog_compiler__b=yes
9140 lt_cv_prog_compiler__b=yes
9144 LDFLAGS="$save_LDFLAGS"
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9148 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9150 if test x"$lt_cv_prog_compiler__b" = xyes; then
9151 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9153 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9159 if test "$with_gnu_ld" = no; then
9160 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9161 hardcode_libdir_separator=:
9166 hardcode_shlibpath_var=no
9170 hardcode_direct_absolute=yes
9171 export_dynamic_flag_spec='${wl}-E'
9173 # hardcode_minus_L: Not really in the search PATH,
9174 # but as the default location of the library.
9175 hardcode_minus_L=yes
9181 irix5* | irix6* | nonstopux*)
9182 if test "$GCC" = yes; then
9183 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'
9184 # Try to use the -exported_symbol ld option, if it does not
9185 # work, assume that -exports_file does not work either and
9186 # implicitly export all symbols.
9187 # This should be the same for all languages, so no per-tag cache variable.
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9189 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9190 if ${lt_cv_irix_exported_symbol+:} false; then :
9191 $as_echo_n "(cached) " >&6
9193 save_LDFLAGS="$LDFLAGS"
9194 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h. */
9197 int foo (void) { return 0; }
9199 if ac_fn_c_try_link "$LINENO"; then :
9200 lt_cv_irix_exported_symbol=yes
9202 lt_cv_irix_exported_symbol=no
9204 rm -f core conftest.err conftest.$ac_objext \
9205 conftest$ac_exeext conftest.$ac_ext
9206 LDFLAGS="$save_LDFLAGS"
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9209 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9210 if test "$lt_cv_irix_exported_symbol" = yes; then
9211 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'
9214 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'
9215 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'
9217 archive_cmds_need_lc='no'
9218 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9219 hardcode_libdir_separator=:
9221 link_all_deplibs=yes
9225 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9226 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9228 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9230 hardcode_libdir_flag_spec='-R$libdir'
9232 hardcode_shlibpath_var=no
9236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9238 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9239 hardcode_libdir_separator=:
9240 hardcode_shlibpath_var=no
9247 if test -f /usr/libexec/ld.so; then
9249 hardcode_shlibpath_var=no
9250 hardcode_direct_absolute=yes
9251 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9252 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9253 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9254 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9255 export_dynamic_flag_spec='${wl}-E'
9258 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9259 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9260 hardcode_libdir_flag_spec='-R$libdir'
9263 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9264 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9274 hardcode_libdir_flag_spec='-L$libdir'
9275 hardcode_minus_L=yes
9276 allow_undefined_flag=unsupported
9277 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'
9278 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9282 if test "$GCC" = yes; then
9283 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9284 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'
9286 allow_undefined_flag=' -expect_unresolved \*'
9287 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'
9289 archive_cmds_need_lc='no'
9290 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9291 hardcode_libdir_separator=:
9294 osf4* | osf5*) # as osf3* with the addition of -msym flag
9295 if test "$GCC" = yes; then
9296 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9297 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'
9298 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9300 allow_undefined_flag=' -expect_unresolved \*'
9301 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'
9302 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~
9303 $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'
9305 # Both c and cxx compiler support -rpath directly
9306 hardcode_libdir_flag_spec='-rpath $libdir'
9308 archive_cmds_need_lc='no'
9309 hardcode_libdir_separator=:
9313 no_undefined_flag=' -z defs'
9314 if test "$GCC" = yes; then
9316 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9317 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9318 $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'
9320 case `$CC -V 2>&1` in
9323 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9324 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9325 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9329 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9330 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9331 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9335 hardcode_libdir_flag_spec='-R$libdir'
9336 hardcode_shlibpath_var=no
9338 solaris2.[0-5] | solaris2.[0-5].*) ;;
9340 # The compiler driver will combine and reorder linker options,
9341 # but understands `-z linker_flag'. GCC discards it without `$wl',
9342 # but is careful enough not to reorder.
9343 # Supported since Solaris 2.6 (maybe 2.5.1?)
9344 if test "$GCC" = yes; then
9345 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9347 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9351 link_all_deplibs=yes
9355 if test "x$host_vendor" = xsequent; then
9356 # Use $CC to link under sequent, because it throws in some extra .o
9357 # files that make .init and .fini sections work.
9358 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9360 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9362 hardcode_libdir_flag_spec='-L$libdir'
9364 hardcode_minus_L=yes
9365 hardcode_shlibpath_var=no
9369 case $host_vendor in
9371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9372 hardcode_direct=yes # is this really true???
9375 ## LD is ld it makes a PLAMLIB
9376 ## CC just makes a GrossModule.
9377 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9378 reload_cmds='$CC -r -o $output$reload_objs'
9382 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9383 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9386 runpath_var='LD_RUN_PATH'
9387 hardcode_shlibpath_var=no
9391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9392 hardcode_shlibpath_var=no
9393 export_dynamic_flag_spec='-Bexport'
9397 if test -d /usr/nec; then
9398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399 hardcode_shlibpath_var=no
9400 runpath_var=LD_RUN_PATH
9401 hardcode_runpath_var=yes
9406 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9407 no_undefined_flag='${wl}-z,text'
9408 archive_cmds_need_lc=no
9409 hardcode_shlibpath_var=no
9410 runpath_var='LD_RUN_PATH'
9412 if test "$GCC" = yes; then
9413 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9414 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9416 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9417 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9421 sysv5* | sco3.2v5* | sco5v6*)
9422 # Note: We can NOT use -z defs as we might desire, because we do not
9423 # link with -lc, and that would cause any symbols used from libc to
9424 # always be unresolved, which means just about no library would
9425 # ever link correctly. If we're not using GNU ld we use -z text
9426 # though, which does catch some bad symbols but isn't as heavy-handed
9428 no_undefined_flag='${wl}-z,text'
9429 allow_undefined_flag='${wl}-z,nodefs'
9430 archive_cmds_need_lc=no
9431 hardcode_shlibpath_var=no
9432 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9433 hardcode_libdir_separator=':'
9434 link_all_deplibs=yes
9435 export_dynamic_flag_spec='${wl}-Bexport'
9436 runpath_var='LD_RUN_PATH'
9438 if test "$GCC" = yes; then
9439 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9440 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9442 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9443 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9449 hardcode_libdir_flag_spec='-L$libdir'
9450 hardcode_shlibpath_var=no
9458 if test x$host_vendor = xsni; then
9460 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9461 export_dynamic_flag_spec='${wl}-Blargedynsym'
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9468 $as_echo "$ld_shlibs" >&6; }
9469 test "$ld_shlibs" = no && can_build_shared=no
9471 with_gnu_ld=$with_gnu_ld
9488 # Do we need to explicitly link libc?
9490 case "x$archive_cmds_need_lc" in
9492 # Assume -lc should be added
9493 archive_cmds_need_lc=yes
9495 if test "$enable_shared" = yes && test "$GCC" = yes; then
9496 case $archive_cmds in
9498 # FIXME: we may have to deal with multi-command sequences.
9501 # Test whether the compiler implicitly links with -lc since on some
9502 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9503 # to ld, don't add -lc before -lgcc.
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9505 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9506 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9507 $as_echo_n "(cached) " >&6
9510 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9513 (eval $ac_compile) 2>&5
9515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9516 test $ac_status = 0; } 2>conftest.err; then
9519 libobjs=conftest.$ac_objext
9521 wl=$lt_prog_compiler_wl
9522 pic_flag=$lt_prog_compiler_pic
9528 lt_save_allow_undefined_flag=$allow_undefined_flag
9529 allow_undefined_flag=
9530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9531 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9534 test $ac_status = 0; }
9536 lt_cv_archive_cmds_need_lc=no
9538 lt_cv_archive_cmds_need_lc=yes
9540 allow_undefined_flag=$lt_save_allow_undefined_flag
9542 cat conftest.err 1>&5
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9548 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9549 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9713 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9715 if test "$GCC" = yes; then
9717 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9718 *) lt_awk_arg="/^libraries:/" ;;
9721 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9722 *) lt_sed_strip_eq="s,=/,/,g" ;;
9724 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9725 case $lt_search_path_spec in
9727 # if the path contains ";" then we assume it to be the separator
9728 # otherwise default to the standard path separator (i.e. ":") - it is
9729 # assumed that no part of a normal pathname contains ";" but that should
9730 # okay in the real world where ";" in dirpaths is itself problematic.
9731 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9734 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9737 # Ok, now we have the path, separated by spaces, we can step through it
9738 # and add multilib dir if necessary.
9739 lt_tmp_lt_search_path_spec=
9740 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9741 for lt_sys_path in $lt_search_path_spec; do
9742 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9743 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9745 test -d "$lt_sys_path" && \
9746 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9749 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9750 BEGIN {RS=" "; FS="/|\n";} {
9753 for (lt_i = NF; lt_i > 0; lt_i--) {
9754 if ($lt_i != "" && $lt_i != ".") {
9755 if ($lt_i == "..") {
9758 if (lt_count == 0) {
9759 lt_foo="/" $lt_i lt_foo;
9766 if (lt_foo != "") { lt_freq[lt_foo]++; }
9767 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9769 # AWK program above erroneously prepends '/' to C:/dos/paths
9772 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9773 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9775 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9777 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9780 libname_spec='lib$name'
9788 shlibpath_overrides_runpath=unknown
9790 dynamic_linker="$host_os ld.so"
9791 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9792 need_lib_prefix=unknown
9793 hardcode_into_libs=no
9795 # when you set need_version to no, make sure it does not cause -set_version
9796 # flags to be left without arguments
9797 need_version=unknown
9802 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9803 shlibpath_var=LIBPATH
9805 # AIX 3 has no versioning support, so we append a major version to the name.
9806 soname_spec='${libname}${release}${shared_ext}$major'
9813 hardcode_into_libs=yes
9814 if test "$host_cpu" = ia64; then
9815 # AIX 5 supports IA64
9816 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9817 shlibpath_var=LD_LIBRARY_PATH
9819 # With GCC up to 2.95.x, collect2 would create an import file
9820 # for dependence libraries. The import file would start with
9821 # the line `#! .'. This would cause the generated library to
9822 # depend on `.', always an invalid library. This was fixed in
9823 # development snapshots of GCC prior to 3.0.
9825 aix4 | aix4.[01] | aix4.[01].*)
9826 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9828 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9835 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9836 # soname into executable. Probably we can add versioning support to
9837 # collect2, so additional links can be useful in future.
9838 if test "$aix_use_runtimelinking" = yes; then
9839 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9840 # instead of lib<name>.a to let people know that these are not
9841 # typical AIX shared libraries.
9842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9844 # We preserve .a as extension for shared libraries through AIX4.2
9845 # and later when we are not doing run time linking.
9846 library_names_spec='${libname}${release}.a $libname.a'
9847 soname_spec='${libname}${release}${shared_ext}$major'
9849 shlibpath_var=LIBPATH
9856 # Since July 2007 AmigaOS4 officially supports .so libraries.
9857 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9861 library_names_spec='$libname.ixlibrary $libname.a'
9862 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9863 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'
9869 library_names_spec='${libname}${shared_ext}'
9870 dynamic_linker="$host_os ld.so"
9871 shlibpath_var=LIBRARY_PATH
9877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9878 soname_spec='${libname}${release}${shared_ext}$major'
9879 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9880 shlibpath_var=LD_LIBRARY_PATH
9881 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9882 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9883 # the default ld.so.conf also contains /usr/contrib/lib and
9884 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9885 # libtool to hard-code these into programs
9888 cygwin* | mingw* | pw32* | cegcc*)
9889 version_type=windows
9894 case $GCC,$cc_basename in
9897 library_names_spec='$libname.dll.a'
9898 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9899 postinstall_cmds='base_file=`basename \${file}`~
9900 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9901 dldir=$destdir/`dirname \$dlpath`~
9902 test -d \$dldir || mkdir -p \$dldir~
9903 $install_prog $dir/$dlname \$dldir/$dlname~
9904 chmod a+x \$dldir/$dlname~
9905 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9906 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9908 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9909 dlpath=$dir/\$dldll~
9911 shlibpath_overrides_runpath=yes
9915 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9916 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9918 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9921 # MinGW DLLs use traditional 'lib' prefix
9922 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9925 # pw32 DLLs use 'pw' prefix rather than 'lib'
9926 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9929 dynamic_linker='Win32 ld.exe'
9934 libname_spec='$name'
9935 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9936 library_names_spec='${libname}.dll.lib'
9940 sys_lib_search_path_spec=
9946 # Let DOS variable expansion print the short 8.3 style file name.
9947 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9948 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9951 # Convert to MSYS style.
9952 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9955 # Convert to unix form, then to dos form, then back to unix form
9956 # but this time dos style (no spaces!) so that the unix form looks
9957 # like /cygdrive/c/PROGRA~1:/cygdr...
9958 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9959 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9960 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9963 sys_lib_search_path_spec="$LIB"
9964 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9965 # It is most probably a Windows format PATH.
9966 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9968 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9970 # FIXME: find the short name or the path components, as spaces are
9971 # common. (e.g. "Program Files" -> "PROGRA~1")
9975 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9976 postinstall_cmds='base_file=`basename \${file}`~
9977 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9978 dldir=$destdir/`dirname \$dlpath`~
9979 test -d \$dldir || mkdir -p \$dldir~
9980 $install_prog $dir/$dlname \$dldir/$dlname'
9981 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9982 dlpath=$dir/\$dldll~
9984 shlibpath_overrides_runpath=yes
9985 dynamic_linker='Win32 link.exe'
9989 # Assume MSVC wrapper
9990 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9991 dynamic_linker='Win32 ld.exe'
9994 # FIXME: first we should search . and the directory the executable is in
9998 darwin* | rhapsody*)
9999 dynamic_linker="$host_os dyld"
10000 version_type=darwin
10003 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10004 soname_spec='${libname}${release}${major}$shared_ext'
10005 shlibpath_overrides_runpath=yes
10006 shlibpath_var=DYLD_LIBRARY_PATH
10007 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10009 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10010 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10018 soname_spec='${libname}${release}${shared_ext}$major'
10019 shlibpath_var=LD_LIBRARY_PATH
10026 freebsd* | dragonfly*)
10027 # DragonFly does not have aout. When/if they implement a new
10028 # versioning mechanism, adjust this.
10029 if test -x /usr/bin/objformat; then
10030 objformat=`/usr/bin/objformat`
10033 freebsd[123]*) objformat=aout ;;
10034 *) objformat=elf ;;
10037 version_type=freebsd-$objformat
10038 case $version_type in
10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10049 shlibpath_var=LD_LIBRARY_PATH
10052 shlibpath_overrides_runpath=yes
10054 freebsd3.[01]* | freebsdelf3.[01]*)
10055 shlibpath_overrides_runpath=yes
10056 hardcode_into_libs=yes
10058 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10059 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10060 shlibpath_overrides_runpath=no
10061 hardcode_into_libs=yes
10063 *) # from 4.6 on, and DragonFly
10064 shlibpath_overrides_runpath=yes
10065 hardcode_into_libs=yes
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10075 soname_spec='${libname}${release}${shared_ext}$major'
10076 shlibpath_var=LD_LIBRARY_PATH
10077 hardcode_into_libs=yes
10084 dynamic_linker="$host_os runtime_loader"
10085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10086 soname_spec='${libname}${release}${shared_ext}$major'
10087 shlibpath_var=LIBRARY_PATH
10088 shlibpath_overrides_runpath=yes
10089 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10090 hardcode_into_libs=yes
10093 hpux9* | hpux10* | hpux11*)
10094 # Give a soname corresponding to the major version so that dld.sl refuses to
10095 # link against other versions.
10102 hardcode_into_libs=yes
10103 dynamic_linker="$host_os dld.so"
10104 shlibpath_var=LD_LIBRARY_PATH
10105 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10107 soname_spec='${libname}${release}${shared_ext}$major'
10108 if test "X$HPUX_IA64_MODE" = X32; then
10109 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10111 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10113 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10117 hardcode_into_libs=yes
10118 dynamic_linker="$host_os dld.sl"
10119 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10120 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10122 soname_spec='${libname}${release}${shared_ext}$major'
10123 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10124 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10128 dynamic_linker="$host_os dld.sl"
10129 shlibpath_var=SHLIB_PATH
10130 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132 soname_spec='${libname}${release}${shared_ext}$major'
10135 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10136 postinstall_cmds='chmod 555 $lib'
10137 # or fails outright, so override atomically:
10138 install_override_mode=555
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'
10147 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10148 shlibpath_var=LD_LIBRARY_PATH
10149 shlibpath_overrides_runpath=no
10150 hardcode_into_libs=yes
10153 irix5* | irix6* | nonstopux*)
10155 nonstopux*) version_type=nonstopux ;;
10157 if test "$lt_cv_prog_gnu_ld" = yes; then
10165 soname_spec='${libname}${release}${shared_ext}$major'
10166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10168 irix5* | nonstopux*)
10169 libsuff= shlibsuff=
10172 case $LD in # libtool.m4 will add one of these switches to LD
10173 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10174 libsuff= shlibsuff= libmagic=32-bit;;
10175 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10176 libsuff=32 shlibsuff=N32 libmagic=N32;;
10177 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10178 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10179 *) libsuff= shlibsuff= libmagic=never-match;;
10183 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10184 shlibpath_overrides_runpath=no
10185 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10186 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10187 hardcode_into_libs=yes
10190 # No shared lib support for Linux oldld, aout, or coff.
10191 linux*oldld* | linux*aout* | linux*coff*)
10195 # This must be Linux ELF.
10196 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10201 soname_spec='${libname}${release}${shared_ext}$major'
10202 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10203 shlibpath_var=LD_LIBRARY_PATH
10204 shlibpath_overrides_runpath=no
10206 # Some binutils ld are patched to set DT_RUNPATH
10207 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10208 $as_echo_n "(cached) " >&6
10210 lt_cv_shlibpath_overrides_runpath=no
10211 save_LDFLAGS=$LDFLAGS
10212 save_libdir=$libdir
10213 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10214 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10216 /* end confdefs.h. */
10226 if ac_fn_c_try_link "$LINENO"; then :
10227 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10228 lt_cv_shlibpath_overrides_runpath=yes
10231 rm -f core conftest.err conftest.$ac_objext \
10232 conftest$ac_exeext conftest.$ac_ext
10233 LDFLAGS=$save_LDFLAGS
10234 libdir=$save_libdir
10238 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10240 # This implies no fast_install, which is unacceptable.
10241 # Some rework will be needed to allow for fast_install
10242 # before this can be enabled.
10243 hardcode_into_libs=yes
10245 # Append ld.so.conf contents to the search path
10246 if test -f /etc/ld.so.conf; then
10247 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' ' '`
10248 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10251 # We used to test for /lib/ld.so.1 and disable shared libraries on
10252 # powerpc, because MkLinux only supported shared libraries with the
10253 # GNU dynamic linker. Since this was broken with cross compilers,
10254 # most powerpc-linux boxes support dynamic linking these days and
10255 # people can always --disable-shared, the test was removed, and we
10256 # assume the GNU/Linux dynamic linker is in use.
10257 dynamic_linker='GNU/Linux ld.so'
10264 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10267 dynamic_linker='NetBSD (a.out) ld.so'
10269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10270 soname_spec='${libname}${release}${shared_ext}$major'
10271 dynamic_linker='NetBSD ld.elf_so'
10273 shlibpath_var=LD_LIBRARY_PATH
10274 shlibpath_overrides_runpath=yes
10275 hardcode_into_libs=yes
10280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10281 shlibpath_var=LD_LIBRARY_PATH
10282 shlibpath_overrides_runpath=yes
10289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10290 soname_spec='${libname}${release}${shared_ext}$major'
10291 shlibpath_var=LD_LIBRARY_PATH
10292 shlibpath_overrides_runpath=no
10293 hardcode_into_libs=yes
10294 dynamic_linker='ldqnx.so'
10299 sys_lib_dlsearch_path_spec="/usr/lib"
10301 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10303 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10304 *) need_version=no ;;
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10308 shlibpath_var=LD_LIBRARY_PATH
10309 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10311 openbsd2.[89] | openbsd2.[89].*)
10312 shlibpath_overrides_runpath=no
10315 shlibpath_overrides_runpath=yes
10319 shlibpath_overrides_runpath=yes
10324 libname_spec='$name'
10327 library_names_spec='$libname${shared_ext} $libname.a'
10328 dynamic_linker='OS/2 ld.exe'
10329 shlibpath_var=LIBPATH
10332 osf3* | osf4* | osf5*)
10336 soname_spec='${libname}${release}${shared_ext}$major'
10337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10338 shlibpath_var=LD_LIBRARY_PATH
10339 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10340 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10352 soname_spec='${libname}${release}${shared_ext}$major'
10353 shlibpath_var=LD_LIBRARY_PATH
10354 shlibpath_overrides_runpath=yes
10355 hardcode_into_libs=yes
10356 # ldd complains unless libraries are executable
10357 postinstall_cmds='chmod +x $lib'
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10363 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10364 shlibpath_var=LD_LIBRARY_PATH
10365 shlibpath_overrides_runpath=yes
10366 if test "$with_gnu_ld" = yes; then
10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10375 soname_spec='${libname}${release}${shared_ext}$major'
10376 shlibpath_var=LD_LIBRARY_PATH
10377 case $host_vendor in
10379 shlibpath_overrides_runpath=no
10381 runpath_var=LD_RUN_PATH
10389 shlibpath_overrides_runpath=no
10390 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10396 if test -d /usr/nec ;then
10398 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10399 soname_spec='$libname${shared_ext}.$major'
10400 shlibpath_var=LD_LIBRARY_PATH
10404 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10405 version_type=freebsd-elf
10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10409 soname_spec='${libname}${release}${shared_ext}$major'
10410 shlibpath_var=LD_LIBRARY_PATH
10411 shlibpath_overrides_runpath=yes
10412 hardcode_into_libs=yes
10413 if test "$with_gnu_ld" = yes; then
10414 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10416 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10419 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10423 sys_lib_dlsearch_path_spec='/usr/lib'
10427 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10432 shlibpath_var=LD_LIBRARY_PATH
10433 shlibpath_overrides_runpath=no
10434 hardcode_into_libs=yes
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10440 soname_spec='${libname}${release}${shared_ext}$major'
10441 shlibpath_var=LD_LIBRARY_PATH
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10449 $as_echo "$dynamic_linker" >&6; }
10450 test "$dynamic_linker" = no && can_build_shared=no
10452 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10453 if test "$GCC" = yes; then
10454 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10457 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10458 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10460 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10461 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10556 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10558 if test -n "$hardcode_libdir_flag_spec" ||
10559 test -n "$runpath_var" ||
10560 test "X$hardcode_automatic" = "Xyes" ; then
10562 # We can hardcode non-existent directories.
10563 if test "$hardcode_direct" != no &&
10564 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10565 # have to relink, otherwise we might link with an installed library
10566 # when we should be linking with a yet-to-be-installed one
10567 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10568 test "$hardcode_minus_L" != no; then
10569 # Linking always hardcodes the temporary library directory.
10570 hardcode_action=relink
10572 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10573 hardcode_action=immediate
10576 # We cannot hardcode anything, or else we can only hardcode existing
10578 hardcode_action=unsupported
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10581 $as_echo "$hardcode_action" >&6; }
10583 if test "$hardcode_action" = relink ||
10584 test "$inherit_rpath" = yes; then
10585 # Fast installation is not supported
10586 enable_fast_install=no
10587 elif test "$shlibpath_overrides_runpath" = yes ||
10588 test "$enable_shared" = no; then
10589 # Fast installation is not necessary
10590 enable_fast_install=needless
10598 if test "x$enable_dlopen" != xyes; then
10599 enable_dlopen=unknown
10600 enable_dlopen_self=unknown
10601 enable_dlopen_self_static=unknown
10608 lt_cv_dlopen="load_add_on"
10610 lt_cv_dlopen_self=yes
10613 mingw* | pw32* | cegcc*)
10614 lt_cv_dlopen="LoadLibrary"
10619 lt_cv_dlopen="dlopen"
10624 # if libdl is installed we need to link against it
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10626 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10627 if ${ac_cv_lib_dl_dlopen+:} false; then :
10628 $as_echo_n "(cached) " >&6
10630 ac_check_lib_save_LIBS=$LIBS
10632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10633 /* end confdefs.h. */
10635 /* Override any GCC internal prototype to avoid an error.
10636 Use char because int might match the return type of a GCC
10637 builtin and then its argument prototype would still apply. */
10650 if ac_fn_c_try_link "$LINENO"; then :
10651 ac_cv_lib_dl_dlopen=yes
10653 ac_cv_lib_dl_dlopen=no
10655 rm -f core conftest.err conftest.$ac_objext \
10656 conftest$ac_exeext conftest.$ac_ext
10657 LIBS=$ac_check_lib_save_LIBS
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10660 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10661 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10662 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10665 lt_cv_dlopen="dyld"
10667 lt_cv_dlopen_self=yes
10674 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10675 if test "x$ac_cv_func_shl_load" = xyes; then :
10676 lt_cv_dlopen="shl_load"
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10679 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10680 if ${ac_cv_lib_dld_shl_load+:} false; then :
10681 $as_echo_n "(cached) " >&6
10683 ac_check_lib_save_LIBS=$LIBS
10685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10686 /* end confdefs.h. */
10688 /* Override any GCC internal prototype to avoid an error.
10689 Use char because int might match the return type of a GCC
10690 builtin and then its argument prototype would still apply. */
10698 return shl_load ();
10703 if ac_fn_c_try_link "$LINENO"; then :
10704 ac_cv_lib_dld_shl_load=yes
10706 ac_cv_lib_dld_shl_load=no
10708 rm -f core conftest.err conftest.$ac_objext \
10709 conftest$ac_exeext conftest.$ac_ext
10710 LIBS=$ac_check_lib_save_LIBS
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10713 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10714 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10715 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10717 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10718 if test "x$ac_cv_func_dlopen" = xyes; then :
10719 lt_cv_dlopen="dlopen"
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10722 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10723 if ${ac_cv_lib_dl_dlopen+:} false; then :
10724 $as_echo_n "(cached) " >&6
10726 ac_check_lib_save_LIBS=$LIBS
10728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729 /* end confdefs.h. */
10731 /* Override any GCC internal prototype to avoid an error.
10732 Use char because int might match the return type of a GCC
10733 builtin and then its argument prototype would still apply. */
10746 if ac_fn_c_try_link "$LINENO"; then :
10747 ac_cv_lib_dl_dlopen=yes
10749 ac_cv_lib_dl_dlopen=no
10751 rm -f core conftest.err conftest.$ac_objext \
10752 conftest$ac_exeext conftest.$ac_ext
10753 LIBS=$ac_check_lib_save_LIBS
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10756 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10757 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10758 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10761 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10762 if ${ac_cv_lib_svld_dlopen+:} false; then :
10763 $as_echo_n "(cached) " >&6
10765 ac_check_lib_save_LIBS=$LIBS
10766 LIBS="-lsvld $LIBS"
10767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10768 /* end confdefs.h. */
10770 /* Override any GCC internal prototype to avoid an error.
10771 Use char because int might match the return type of a GCC
10772 builtin and then its argument prototype would still apply. */
10785 if ac_fn_c_try_link "$LINENO"; then :
10786 ac_cv_lib_svld_dlopen=yes
10788 ac_cv_lib_svld_dlopen=no
10790 rm -f core conftest.err conftest.$ac_objext \
10791 conftest$ac_exeext conftest.$ac_ext
10792 LIBS=$ac_check_lib_save_LIBS
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10795 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10796 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10797 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10800 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10801 if ${ac_cv_lib_dld_dld_link+:} false; then :
10802 $as_echo_n "(cached) " >&6
10804 ac_check_lib_save_LIBS=$LIBS
10806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10807 /* end confdefs.h. */
10809 /* Override any GCC internal prototype to avoid an error.
10810 Use char because int might match the return type of a GCC
10811 builtin and then its argument prototype would still apply. */
10819 return dld_link ();
10824 if ac_fn_c_try_link "$LINENO"; then :
10825 ac_cv_lib_dld_dld_link=yes
10827 ac_cv_lib_dld_dld_link=no
10829 rm -f core conftest.err conftest.$ac_objext \
10830 conftest$ac_exeext conftest.$ac_ext
10831 LIBS=$ac_check_lib_save_LIBS
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10834 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10835 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10836 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10857 if test "x$lt_cv_dlopen" != xno; then
10863 case $lt_cv_dlopen in
10865 save_CPPFLAGS="$CPPFLAGS"
10866 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10868 save_LDFLAGS="$LDFLAGS"
10869 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10872 LIBS="$lt_cv_dlopen_libs $LIBS"
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10875 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10876 if ${lt_cv_dlopen_self+:} false; then :
10877 $as_echo_n "(cached) " >&6
10879 if test "$cross_compiling" = yes; then :
10880 lt_cv_dlopen_self=cross
10882 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10883 lt_status=$lt_dlunknown
10884 cat > conftest.$ac_ext <<_LT_EOF
10885 #line $LINENO "configure"
10886 #include "confdefs.h"
10895 # define LT_DLGLOBAL RTLD_GLOBAL
10898 # define LT_DLGLOBAL DL_GLOBAL
10900 # define LT_DLGLOBAL 0
10904 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10905 find out it does not work in some platform. */
10906 #ifndef LT_DLLAZY_OR_NOW
10908 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10911 # define LT_DLLAZY_OR_NOW DL_LAZY
10914 # define LT_DLLAZY_OR_NOW RTLD_NOW
10917 # define LT_DLLAZY_OR_NOW DL_NOW
10919 # define LT_DLLAZY_OR_NOW 0
10926 /* When -fvisbility=hidden is used, assume the code has been annotated
10927 correspondingly for the symbols needed. */
10928 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10929 int fnord () __attribute__((visibility("default")));
10932 int fnord () { return 42; }
10935 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10936 int status = $lt_dlunknown;
10940 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10943 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10944 else puts (dlerror ());
10946 /* dlclose (self); */
10954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10955 (eval $ac_link) 2>&5
10957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10958 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10959 (./conftest; exit; ) >&5 2>/dev/null
10961 case x$lt_status in
10962 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10963 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10964 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10967 # compilation failed
10968 lt_cv_dlopen_self=no
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10976 $as_echo "$lt_cv_dlopen_self" >&6; }
10978 if test "x$lt_cv_dlopen_self" = xyes; then
10979 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10981 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10982 if ${lt_cv_dlopen_self_static+:} false; then :
10983 $as_echo_n "(cached) " >&6
10985 if test "$cross_compiling" = yes; then :
10986 lt_cv_dlopen_self_static=cross
10988 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10989 lt_status=$lt_dlunknown
10990 cat > conftest.$ac_ext <<_LT_EOF
10991 #line $LINENO "configure"
10992 #include "confdefs.h"
11001 # define LT_DLGLOBAL RTLD_GLOBAL
11004 # define LT_DLGLOBAL DL_GLOBAL
11006 # define LT_DLGLOBAL 0
11010 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11011 find out it does not work in some platform. */
11012 #ifndef LT_DLLAZY_OR_NOW
11014 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11017 # define LT_DLLAZY_OR_NOW DL_LAZY
11020 # define LT_DLLAZY_OR_NOW RTLD_NOW
11023 # define LT_DLLAZY_OR_NOW DL_NOW
11025 # define LT_DLLAZY_OR_NOW 0
11032 /* When -fvisbility=hidden is used, assume the code has been annotated
11033 correspondingly for the symbols needed. */
11034 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11035 int fnord () __attribute__((visibility("default")));
11038 int fnord () { return 42; }
11041 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11042 int status = $lt_dlunknown;
11046 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11049 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11050 else puts (dlerror ());
11052 /* dlclose (self); */
11060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11061 (eval $ac_link) 2>&5
11063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11064 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11065 (./conftest; exit; ) >&5 2>/dev/null
11067 case x$lt_status in
11068 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11069 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11070 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11073 # compilation failed
11074 lt_cv_dlopen_self_static=no
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11082 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11085 CPPFLAGS="$save_CPPFLAGS"
11086 LDFLAGS="$save_LDFLAGS"
11091 case $lt_cv_dlopen_self in
11092 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11093 *) enable_dlopen_self=unknown ;;
11096 case $lt_cv_dlopen_self_static in
11097 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11098 *) enable_dlopen_self_static=unknown ;;
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11121 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11122 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11123 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11124 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11126 $as_echo "yes" >&6; }
11128 # FIXME - insert some real tests, host_os isn't really good enough
11131 if test -n "$STRIP" ; then
11132 striplib="$STRIP -x"
11133 old_striplib="$STRIP -S"
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11135 $as_echo "yes" >&6; }
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11138 $as_echo "no" >&6; }
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11143 $as_echo "no" >&6; }
11159 # Report which library types will actually be built
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11161 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11163 $as_echo "$can_build_shared" >&6; }
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11166 $as_echo_n "checking whether to build shared libraries... " >&6; }
11167 test "$can_build_shared" = "no" && enable_shared=no
11169 # On AIX, shared libraries and static libraries use the same namespace, and
11170 # are all built from PIC.
11173 test "$enable_shared" = yes && enable_static=no
11174 if test -n "$RANLIB"; then
11175 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11176 postinstall_cmds='$RANLIB $lib'
11181 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11182 test "$enable_shared" = yes && enable_static=no
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11187 $as_echo "$enable_shared" >&6; }
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11190 $as_echo_n "checking whether to build static libraries... " >&6; }
11191 # Make sure either enable_shared or enable_static is yes.
11192 test "$enable_shared" = yes || enable_static=yes
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11194 $as_echo "$enable_static" >&6; }
11201 ac_cpp='$CPP $CPPFLAGS'
11202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11220 ac_config_commands="$ac_config_commands libtool"
11225 # Only expand once:
11229 # Require X.Org macros 1.8 or later for AC_PROG_INSTALL
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11242 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11243 if ${ac_cv_prog_cc_c99+:} false; then :
11244 $as_echo_n "(cached) " >&6
11246 ac_cv_prog_cc_c99=no
11248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11249 /* end confdefs.h. */
11250 #include <stdarg.h>
11251 #include <stdbool.h>
11252 #include <stdlib.h>
11256 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11257 #define debug(...) fprintf (stderr, __VA_ARGS__)
11258 #define showlist(...) puts (#__VA_ARGS__)
11259 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11261 test_varargs_macros (void)
11266 debug ("X = %d\n", x);
11267 showlist (The first, second, and third items.);
11268 report (x>y, "x is %d but y is %d", x, y);
11271 // Check long long types.
11272 #define BIG64 18446744073709551615ull
11273 #define BIG32 4294967295ul
11274 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11276 your preprocessor is broken;
11280 your preprocessor is broken;
11282 static long long int bignum = -9223372036854775807LL;
11283 static unsigned long long int ubignum = BIG64;
11285 struct incomplete_array
11291 struct named_init {
11293 const wchar_t *name;
11297 typedef const char *ccp;
11300 test_restrict (ccp restrict text)
11302 // See if C++-style comments work.
11303 // Iterate through items via the restricted pointer.
11304 // Also check for declarations in for loops.
11305 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11310 // Check varargs and va_copy.
11312 test_varargs (const char *format, ...)
11315 va_start (args, format);
11317 va_copy (args_copy, args);
11327 case 's': // string
11328 str = va_arg (args_copy, const char *);
11331 number = va_arg (args_copy, int);
11334 fnumber = va_arg (args_copy, double);
11340 va_end (args_copy);
11349 _Bool success = false;
11352 if (test_restrict ("String literal") == 0)
11354 char *restrict newvar = "Another string";
11357 test_varargs ("s, d' f .", "string", 65, 34.234);
11358 test_varargs_macros ();
11360 // Check flexible array members.
11361 struct incomplete_array *ia =
11362 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11364 for (int i = 0; i < ia->datasize; ++i)
11365 ia->data[i] = i * 1.234;
11367 // Check named initializers.
11368 struct named_init ni = {
11370 .name = L"Test wide string",
11371 .average = 543.34343,
11376 int dynamic_array[ni.number];
11377 dynamic_array[ni.number - 1] = 543;
11379 // work around unused variable warnings
11380 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11381 || dynamic_array[ni.number - 1] != 543);
11387 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11389 CC="$ac_save_CC $ac_arg"
11390 if ac_fn_c_try_compile "$LINENO"; then :
11391 ac_cv_prog_cc_c99=$ac_arg
11393 rm -f core conftest.err conftest.$ac_objext
11394 test "x$ac_cv_prog_cc_c99" != "xno" && break
11396 rm -f conftest.$ac_ext
11401 case "x$ac_cv_prog_cc_c99" in
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11404 $as_echo "none needed" >&6; } ;;
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11407 $as_echo "unsupported" >&6; } ;;
11409 CC="$CC $ac_cv_prog_cc_c99"
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11411 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11413 if test "x$ac_cv_prog_cc_c99" != xno; then :
11422 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11423 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11429 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11430 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11436 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11437 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11446 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11447 if test -n "$ac_tool_prefix"; then
11448 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11449 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11451 $as_echo_n "checking for $ac_word... " >&6; }
11452 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11453 $as_echo_n "(cached) " >&6
11455 case $PKG_CONFIG in
11457 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11461 for as_dir in $PATH
11464 test -z "$as_dir" && as_dir=.
11465 for ac_exec_ext in '' $ac_executable_extensions; do
11466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11467 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11478 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11479 if test -n "$PKG_CONFIG"; then
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11481 $as_echo "$PKG_CONFIG" >&6; }
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11484 $as_echo "no" >&6; }
11489 if test -z "$ac_cv_path_PKG_CONFIG"; then
11490 ac_pt_PKG_CONFIG=$PKG_CONFIG
11491 # Extract the first word of "pkg-config", so it can be a program name with args.
11492 set dummy pkg-config; ac_word=$2
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11494 $as_echo_n "checking for $ac_word... " >&6; }
11495 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11496 $as_echo_n "(cached) " >&6
11498 case $ac_pt_PKG_CONFIG in
11500 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11504 for as_dir in $PATH
11507 test -z "$as_dir" && as_dir=.
11508 for ac_exec_ext in '' $ac_executable_extensions; do
11509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11510 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11521 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11522 if test -n "$ac_pt_PKG_CONFIG"; then
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11524 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11527 $as_echo "no" >&6; }
11530 if test "x$ac_pt_PKG_CONFIG" = x; then
11533 case $cross_compiling:$ac_tool_warned in
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11537 ac_tool_warned=yes ;;
11539 PKG_CONFIG=$ac_pt_PKG_CONFIG
11542 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11546 if test -n "$PKG_CONFIG"; then
11547 _pkg_min_version=0.9.0
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11549 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11550 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11552 $as_echo "yes" >&6; }
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11555 $as_echo "no" >&6; }
11565 # Check whether --enable-selective-werror was given.
11566 if test "${enable_selective_werror+set}" = set; then :
11567 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11569 SELECTIVE_WERROR=yes
11576 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11577 if test "x$SUNCC" = "xyes"; then
11583 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11595 xorg_testset_save_CFLAGS="$CFLAGS"
11597 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11600 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11601 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11602 $as_echo_n "(cached) " >&6
11604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11605 /* end confdefs.h. */
11608 if ac_fn_c_try_compile "$LINENO"; then :
11609 xorg_cv_compiler_flag_unknown_warning_option=yes
11611 xorg_cv_compiler_flag_unknown_warning_option=no
11613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11616 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11617 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11618 CFLAGS="$xorg_testset_save_CFLAGS"
11621 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11622 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11627 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11628 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11629 $as_echo_n "(cached) " >&6
11631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11632 /* end confdefs.h. */
11635 if ac_fn_c_try_compile "$LINENO"; then :
11636 xorg_cv_compiler_flag_unused_command_line_argument=yes
11638 xorg_cv_compiler_flag_unused_command_line_argument=no
11640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11643 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11644 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11645 CFLAGS="$xorg_testset_save_CFLAGS"
11650 if test $found = "no" ; then
11651 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11655 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11659 CFLAGS="$CFLAGS -Wall"
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11662 $as_echo_n "checking if $CC supports -Wall... " >&6; }
11663 cacheid=`$as_echo xorg_cv_cc_flag_-Wall`
11664 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11665 $as_echo_n "(cached) " >&6
11667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11668 /* end confdefs.h. */
11678 if ac_fn_c_try_link "$LINENO"; then :
11679 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11681 eval `$as_echo "$cacheid" | $as_tr_sh`=no
11683 rm -f core conftest.err conftest.$ac_objext \
11684 conftest$ac_exeext conftest.$ac_ext
11688 CFLAGS="$xorg_testset_save_CFLAGS"
11690 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11692 $as_echo "$supported" >&6; }
11693 if test "$supported" = "yes" ; then
11694 BASE_CFLAGS="$BASE_CFLAGS -Wall"
11711 xorg_testset_save_CFLAGS="$CFLAGS"
11713 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11716 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11717 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11718 $as_echo_n "(cached) " >&6
11720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11721 /* end confdefs.h. */
11724 if ac_fn_c_try_compile "$LINENO"; then :
11725 xorg_cv_compiler_flag_unknown_warning_option=yes
11727 xorg_cv_compiler_flag_unknown_warning_option=no
11729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11732 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11733 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11734 CFLAGS="$xorg_testset_save_CFLAGS"
11737 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11738 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11743 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11744 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11745 $as_echo_n "(cached) " >&6
11747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11748 /* end confdefs.h. */
11751 if ac_fn_c_try_compile "$LINENO"; then :
11752 xorg_cv_compiler_flag_unused_command_line_argument=yes
11754 xorg_cv_compiler_flag_unused_command_line_argument=no
11756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11759 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11760 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11761 CFLAGS="$xorg_testset_save_CFLAGS"
11766 if test $found = "no" ; then
11767 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11771 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11775 CFLAGS="$CFLAGS -Wpointer-arith"
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
11778 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
11779 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith`
11780 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11781 $as_echo_n "(cached) " >&6
11783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784 /* end confdefs.h. */
11794 if ac_fn_c_try_link "$LINENO"; then :
11795 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11797 eval `$as_echo "$cacheid" | $as_tr_sh`=no
11799 rm -f core conftest.err conftest.$ac_objext \
11800 conftest$ac_exeext conftest.$ac_ext
11804 CFLAGS="$xorg_testset_save_CFLAGS"
11806 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11808 $as_echo "$supported" >&6; }
11809 if test "$supported" = "yes" ; then
11810 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
11827 xorg_testset_save_CFLAGS="$CFLAGS"
11829 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11832 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11833 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11834 $as_echo_n "(cached) " >&6
11836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11837 /* end confdefs.h. */
11840 if ac_fn_c_try_compile "$LINENO"; then :
11841 xorg_cv_compiler_flag_unknown_warning_option=yes
11843 xorg_cv_compiler_flag_unknown_warning_option=no
11845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11848 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11849 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11850 CFLAGS="$xorg_testset_save_CFLAGS"
11853 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11854 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11859 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11860 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11861 $as_echo_n "(cached) " >&6
11863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11864 /* end confdefs.h. */
11867 if ac_fn_c_try_compile "$LINENO"; then :
11868 xorg_cv_compiler_flag_unused_command_line_argument=yes
11870 xorg_cv_compiler_flag_unused_command_line_argument=no
11872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11875 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11876 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11877 CFLAGS="$xorg_testset_save_CFLAGS"
11882 if test $found = "no" ; then
11883 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11887 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11891 CFLAGS="$CFLAGS -Wmissing-declarations"
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
11894 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
11895 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations`
11896 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11897 $as_echo_n "(cached) " >&6
11899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11900 /* end confdefs.h. */
11910 if ac_fn_c_try_link "$LINENO"; then :
11911 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11913 eval `$as_echo "$cacheid" | $as_tr_sh`=no
11915 rm -f core conftest.err conftest.$ac_objext \
11916 conftest$ac_exeext conftest.$ac_ext
11920 CFLAGS="$xorg_testset_save_CFLAGS"
11922 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11924 $as_echo "$supported" >&6; }
11925 if test "$supported" = "yes" ; then
11926 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
11943 xorg_testset_save_CFLAGS="$CFLAGS"
11945 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11948 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11949 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11950 $as_echo_n "(cached) " >&6
11952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11953 /* end confdefs.h. */
11956 if ac_fn_c_try_compile "$LINENO"; then :
11957 xorg_cv_compiler_flag_unknown_warning_option=yes
11959 xorg_cv_compiler_flag_unknown_warning_option=no
11961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11964 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11965 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11966 CFLAGS="$xorg_testset_save_CFLAGS"
11969 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11970 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11975 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11976 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11977 $as_echo_n "(cached) " >&6
11979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980 /* end confdefs.h. */
11983 if ac_fn_c_try_compile "$LINENO"; then :
11984 xorg_cv_compiler_flag_unused_command_line_argument=yes
11986 xorg_cv_compiler_flag_unused_command_line_argument=no
11988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11991 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11992 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11993 CFLAGS="$xorg_testset_save_CFLAGS"
11998 if test $found = "no" ; then
11999 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12000 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12003 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12007 CFLAGS="$CFLAGS -Wformat=2"
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12010 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12011 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat=2`
12012 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12013 $as_echo_n "(cached) " >&6
12015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12016 /* end confdefs.h. */
12026 if ac_fn_c_try_link "$LINENO"; then :
12027 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12029 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12031 rm -f core conftest.err conftest.$ac_objext \
12032 conftest$ac_exeext conftest.$ac_ext
12036 CFLAGS="$xorg_testset_save_CFLAGS"
12038 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12040 $as_echo "$supported" >&6; }
12041 if test "$supported" = "yes" ; then
12042 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12047 if test $found = "no" ; then
12048 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12052 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12056 CFLAGS="$CFLAGS -Wformat"
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12059 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12060 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat`
12061 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12062 $as_echo_n "(cached) " >&6
12064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065 /* end confdefs.h. */
12075 if ac_fn_c_try_link "$LINENO"; then :
12076 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12078 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12080 rm -f core conftest.err conftest.$ac_objext \
12081 conftest$ac_exeext conftest.$ac_ext
12085 CFLAGS="$xorg_testset_save_CFLAGS"
12087 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12089 $as_echo "$supported" >&6; }
12090 if test "$supported" = "yes" ; then
12091 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12110 xorg_testset_save_CFLAGS="$CFLAGS"
12112 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12115 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12116 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12117 $as_echo_n "(cached) " >&6
12119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12120 /* end confdefs.h. */
12123 if ac_fn_c_try_compile "$LINENO"; then :
12124 xorg_cv_compiler_flag_unknown_warning_option=yes
12126 xorg_cv_compiler_flag_unknown_warning_option=no
12128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12131 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12132 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12133 CFLAGS="$xorg_testset_save_CFLAGS"
12136 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12137 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12142 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12143 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12144 $as_echo_n "(cached) " >&6
12146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147 /* end confdefs.h. */
12150 if ac_fn_c_try_compile "$LINENO"; then :
12151 xorg_cv_compiler_flag_unused_command_line_argument=yes
12153 xorg_cv_compiler_flag_unused_command_line_argument=no
12155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12158 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12159 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12160 CFLAGS="$xorg_testset_save_CFLAGS"
12165 if test $found = "no" ; then
12166 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12170 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12174 CFLAGS="$CFLAGS -Wstrict-prototypes"
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12177 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12178 cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes`
12179 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12180 $as_echo_n "(cached) " >&6
12182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12183 /* end confdefs.h. */
12193 if ac_fn_c_try_link "$LINENO"; then :
12194 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12196 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12198 rm -f core conftest.err conftest.$ac_objext \
12199 conftest$ac_exeext conftest.$ac_ext
12203 CFLAGS="$xorg_testset_save_CFLAGS"
12205 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12207 $as_echo "$supported" >&6; }
12208 if test "$supported" = "yes" ; then
12209 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12226 xorg_testset_save_CFLAGS="$CFLAGS"
12228 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12231 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12232 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12233 $as_echo_n "(cached) " >&6
12235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236 /* end confdefs.h. */
12239 if ac_fn_c_try_compile "$LINENO"; then :
12240 xorg_cv_compiler_flag_unknown_warning_option=yes
12242 xorg_cv_compiler_flag_unknown_warning_option=no
12244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12247 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12248 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12249 CFLAGS="$xorg_testset_save_CFLAGS"
12252 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12253 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12258 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12259 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12260 $as_echo_n "(cached) " >&6
12262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12263 /* end confdefs.h. */
12266 if ac_fn_c_try_compile "$LINENO"; then :
12267 xorg_cv_compiler_flag_unused_command_line_argument=yes
12269 xorg_cv_compiler_flag_unused_command_line_argument=no
12271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12274 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12275 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12276 CFLAGS="$xorg_testset_save_CFLAGS"
12281 if test $found = "no" ; then
12282 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12286 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12290 CFLAGS="$CFLAGS -Wmissing-prototypes"
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12293 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12294 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes`
12295 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12296 $as_echo_n "(cached) " >&6
12298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h. */
12309 if ac_fn_c_try_link "$LINENO"; then :
12310 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12312 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12314 rm -f core conftest.err conftest.$ac_objext \
12315 conftest$ac_exeext conftest.$ac_ext
12319 CFLAGS="$xorg_testset_save_CFLAGS"
12321 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12323 $as_echo "$supported" >&6; }
12324 if test "$supported" = "yes" ; then
12325 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12342 xorg_testset_save_CFLAGS="$CFLAGS"
12344 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12347 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12348 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12349 $as_echo_n "(cached) " >&6
12351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12352 /* end confdefs.h. */
12355 if ac_fn_c_try_compile "$LINENO"; then :
12356 xorg_cv_compiler_flag_unknown_warning_option=yes
12358 xorg_cv_compiler_flag_unknown_warning_option=no
12360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12363 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12364 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12365 CFLAGS="$xorg_testset_save_CFLAGS"
12368 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12369 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12374 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12375 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12376 $as_echo_n "(cached) " >&6
12378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379 /* end confdefs.h. */
12382 if ac_fn_c_try_compile "$LINENO"; then :
12383 xorg_cv_compiler_flag_unused_command_line_argument=yes
12385 xorg_cv_compiler_flag_unused_command_line_argument=no
12387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12390 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12391 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12392 CFLAGS="$xorg_testset_save_CFLAGS"
12397 if test $found = "no" ; then
12398 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12402 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12406 CFLAGS="$CFLAGS -Wnested-externs"
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12409 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12410 cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs`
12411 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12412 $as_echo_n "(cached) " >&6
12414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12415 /* end confdefs.h. */
12425 if ac_fn_c_try_link "$LINENO"; then :
12426 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12428 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12430 rm -f core conftest.err conftest.$ac_objext \
12431 conftest$ac_exeext conftest.$ac_ext
12435 CFLAGS="$xorg_testset_save_CFLAGS"
12437 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12439 $as_echo "$supported" >&6; }
12440 if test "$supported" = "yes" ; then
12441 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12458 xorg_testset_save_CFLAGS="$CFLAGS"
12460 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12463 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12464 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12465 $as_echo_n "(cached) " >&6
12467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12468 /* end confdefs.h. */
12471 if ac_fn_c_try_compile "$LINENO"; then :
12472 xorg_cv_compiler_flag_unknown_warning_option=yes
12474 xorg_cv_compiler_flag_unknown_warning_option=no
12476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12479 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12480 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12481 CFLAGS="$xorg_testset_save_CFLAGS"
12484 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12485 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12490 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12491 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12492 $as_echo_n "(cached) " >&6
12494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12495 /* end confdefs.h. */
12498 if ac_fn_c_try_compile "$LINENO"; then :
12499 xorg_cv_compiler_flag_unused_command_line_argument=yes
12501 xorg_cv_compiler_flag_unused_command_line_argument=no
12503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12506 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12507 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12508 CFLAGS="$xorg_testset_save_CFLAGS"
12513 if test $found = "no" ; then
12514 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12518 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12522 CFLAGS="$CFLAGS -Wbad-function-cast"
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12525 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12526 cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast`
12527 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12528 $as_echo_n "(cached) " >&6
12530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12531 /* end confdefs.h. */
12541 if ac_fn_c_try_link "$LINENO"; then :
12542 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12544 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12546 rm -f core conftest.err conftest.$ac_objext \
12547 conftest$ac_exeext conftest.$ac_ext
12551 CFLAGS="$xorg_testset_save_CFLAGS"
12553 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12555 $as_echo "$supported" >&6; }
12556 if test "$supported" = "yes" ; then
12557 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12574 xorg_testset_save_CFLAGS="$CFLAGS"
12576 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12579 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12580 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12581 $as_echo_n "(cached) " >&6
12583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12584 /* end confdefs.h. */
12587 if ac_fn_c_try_compile "$LINENO"; then :
12588 xorg_cv_compiler_flag_unknown_warning_option=yes
12590 xorg_cv_compiler_flag_unknown_warning_option=no
12592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12595 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12596 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12597 CFLAGS="$xorg_testset_save_CFLAGS"
12600 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12601 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12606 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12607 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12608 $as_echo_n "(cached) " >&6
12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611 /* end confdefs.h. */
12614 if ac_fn_c_try_compile "$LINENO"; then :
12615 xorg_cv_compiler_flag_unused_command_line_argument=yes
12617 xorg_cv_compiler_flag_unused_command_line_argument=no
12619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12622 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12623 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12624 CFLAGS="$xorg_testset_save_CFLAGS"
12629 if test $found = "no" ; then
12630 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12634 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12638 CFLAGS="$CFLAGS -Wold-style-definition"
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12641 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12642 cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition`
12643 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12644 $as_echo_n "(cached) " >&6
12646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12647 /* end confdefs.h. */
12657 if ac_fn_c_try_link "$LINENO"; then :
12658 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12660 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12662 rm -f core conftest.err conftest.$ac_objext \
12663 conftest$ac_exeext conftest.$ac_ext
12667 CFLAGS="$xorg_testset_save_CFLAGS"
12669 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12671 $as_echo "$supported" >&6; }
12672 if test "$supported" = "yes" ; then
12673 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12690 xorg_testset_save_CFLAGS="$CFLAGS"
12692 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12695 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12696 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12697 $as_echo_n "(cached) " >&6
12699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12700 /* end confdefs.h. */
12703 if ac_fn_c_try_compile "$LINENO"; then :
12704 xorg_cv_compiler_flag_unknown_warning_option=yes
12706 xorg_cv_compiler_flag_unknown_warning_option=no
12708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12711 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12712 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12713 CFLAGS="$xorg_testset_save_CFLAGS"
12716 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12717 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12722 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12723 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12724 $as_echo_n "(cached) " >&6
12726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12727 /* end confdefs.h. */
12730 if ac_fn_c_try_compile "$LINENO"; then :
12731 xorg_cv_compiler_flag_unused_command_line_argument=yes
12733 xorg_cv_compiler_flag_unused_command_line_argument=no
12735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12738 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12739 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12740 CFLAGS="$xorg_testset_save_CFLAGS"
12745 if test $found = "no" ; then
12746 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12750 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12754 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
12757 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
12758 cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statement`
12759 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12760 $as_echo_n "(cached) " >&6
12762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12763 /* end confdefs.h. */
12773 if ac_fn_c_try_link "$LINENO"; then :
12774 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12776 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12778 rm -f core conftest.err conftest.$ac_objext \
12779 conftest$ac_exeext conftest.$ac_ext
12783 CFLAGS="$xorg_testset_save_CFLAGS"
12785 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12787 $as_echo "$supported" >&6; }
12788 if test "$supported" = "yes" ; then
12789 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
12798 # This chunk adds additional warnings that could catch undesired effects.
12810 xorg_testset_save_CFLAGS="$CFLAGS"
12812 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12815 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12816 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12817 $as_echo_n "(cached) " >&6
12819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820 /* end confdefs.h. */
12823 if ac_fn_c_try_compile "$LINENO"; then :
12824 xorg_cv_compiler_flag_unknown_warning_option=yes
12826 xorg_cv_compiler_flag_unknown_warning_option=no
12828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12831 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12832 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12833 CFLAGS="$xorg_testset_save_CFLAGS"
12836 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12837 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12842 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12843 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12844 $as_echo_n "(cached) " >&6
12846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847 /* end confdefs.h. */
12850 if ac_fn_c_try_compile "$LINENO"; then :
12851 xorg_cv_compiler_flag_unused_command_line_argument=yes
12853 xorg_cv_compiler_flag_unused_command_line_argument=no
12855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12858 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12859 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12860 CFLAGS="$xorg_testset_save_CFLAGS"
12865 if test $found = "no" ; then
12866 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12870 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12874 CFLAGS="$CFLAGS -Wunused"
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
12877 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
12878 cacheid=`$as_echo xorg_cv_cc_flag_-Wunused`
12879 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12880 $as_echo_n "(cached) " >&6
12882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883 /* end confdefs.h. */
12893 if ac_fn_c_try_link "$LINENO"; then :
12894 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12896 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12898 rm -f core conftest.err conftest.$ac_objext \
12899 conftest$ac_exeext conftest.$ac_ext
12903 CFLAGS="$xorg_testset_save_CFLAGS"
12905 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12907 $as_echo "$supported" >&6; }
12908 if test "$supported" = "yes" ; then
12909 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
12926 xorg_testset_save_CFLAGS="$CFLAGS"
12928 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12931 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12932 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12933 $as_echo_n "(cached) " >&6
12935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936 /* end confdefs.h. */
12939 if ac_fn_c_try_compile "$LINENO"; then :
12940 xorg_cv_compiler_flag_unknown_warning_option=yes
12942 xorg_cv_compiler_flag_unknown_warning_option=no
12944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12947 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12948 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12949 CFLAGS="$xorg_testset_save_CFLAGS"
12952 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12953 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12958 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12959 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12960 $as_echo_n "(cached) " >&6
12962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h. */
12966 if ac_fn_c_try_compile "$LINENO"; then :
12967 xorg_cv_compiler_flag_unused_command_line_argument=yes
12969 xorg_cv_compiler_flag_unused_command_line_argument=no
12971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12974 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12975 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12976 CFLAGS="$xorg_testset_save_CFLAGS"
12981 if test $found = "no" ; then
12982 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12986 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12990 CFLAGS="$CFLAGS -Wuninitialized"
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
12993 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
12994 cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized`
12995 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12996 $as_echo_n "(cached) " >&6
12998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12999 /* end confdefs.h. */
13009 if ac_fn_c_try_link "$LINENO"; then :
13010 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13012 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13014 rm -f core conftest.err conftest.$ac_objext \
13015 conftest$ac_exeext conftest.$ac_ext
13019 CFLAGS="$xorg_testset_save_CFLAGS"
13021 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13023 $as_echo "$supported" >&6; }
13024 if test "$supported" = "yes" ; then
13025 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13042 xorg_testset_save_CFLAGS="$CFLAGS"
13044 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13047 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13048 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13049 $as_echo_n "(cached) " >&6
13051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13052 /* end confdefs.h. */
13055 if ac_fn_c_try_compile "$LINENO"; then :
13056 xorg_cv_compiler_flag_unknown_warning_option=yes
13058 xorg_cv_compiler_flag_unknown_warning_option=no
13060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13063 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13064 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13065 CFLAGS="$xorg_testset_save_CFLAGS"
13068 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13069 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13070 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13074 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13075 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13076 $as_echo_n "(cached) " >&6
13078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13079 /* end confdefs.h. */
13082 if ac_fn_c_try_compile "$LINENO"; then :
13083 xorg_cv_compiler_flag_unused_command_line_argument=yes
13085 xorg_cv_compiler_flag_unused_command_line_argument=no
13087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13090 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13091 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13092 CFLAGS="$xorg_testset_save_CFLAGS"
13097 if test $found = "no" ; then
13098 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13102 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13106 CFLAGS="$CFLAGS -Wshadow"
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13109 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13110 cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow`
13111 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13112 $as_echo_n "(cached) " >&6
13114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13115 /* end confdefs.h. */
13125 if ac_fn_c_try_link "$LINENO"; then :
13126 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13128 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13130 rm -f core conftest.err conftest.$ac_objext \
13131 conftest$ac_exeext conftest.$ac_ext
13135 CFLAGS="$xorg_testset_save_CFLAGS"
13137 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13139 $as_echo "$supported" >&6; }
13140 if test "$supported" = "yes" ; then
13141 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13158 xorg_testset_save_CFLAGS="$CFLAGS"
13160 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13163 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13164 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13165 $as_echo_n "(cached) " >&6
13167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13168 /* end confdefs.h. */
13171 if ac_fn_c_try_compile "$LINENO"; then :
13172 xorg_cv_compiler_flag_unknown_warning_option=yes
13174 xorg_cv_compiler_flag_unknown_warning_option=no
13176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13179 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13180 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13181 CFLAGS="$xorg_testset_save_CFLAGS"
13184 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13185 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13190 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13191 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13192 $as_echo_n "(cached) " >&6
13194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13195 /* end confdefs.h. */
13198 if ac_fn_c_try_compile "$LINENO"; then :
13199 xorg_cv_compiler_flag_unused_command_line_argument=yes
13201 xorg_cv_compiler_flag_unused_command_line_argument=no
13203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13206 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13207 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13208 CFLAGS="$xorg_testset_save_CFLAGS"
13213 if test $found = "no" ; then
13214 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13218 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13222 CFLAGS="$CFLAGS -Wcast-qual"
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13225 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13226 cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual`
13227 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13228 $as_echo_n "(cached) " >&6
13230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13231 /* end confdefs.h. */
13241 if ac_fn_c_try_link "$LINENO"; then :
13242 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13244 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13246 rm -f core conftest.err conftest.$ac_objext \
13247 conftest$ac_exeext conftest.$ac_ext
13251 CFLAGS="$xorg_testset_save_CFLAGS"
13253 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13255 $as_echo "$supported" >&6; }
13256 if test "$supported" = "yes" ; then
13257 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13274 xorg_testset_save_CFLAGS="$CFLAGS"
13276 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13279 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13280 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13281 $as_echo_n "(cached) " >&6
13283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h. */
13287 if ac_fn_c_try_compile "$LINENO"; then :
13288 xorg_cv_compiler_flag_unknown_warning_option=yes
13290 xorg_cv_compiler_flag_unknown_warning_option=no
13292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13295 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13296 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13297 CFLAGS="$xorg_testset_save_CFLAGS"
13300 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13301 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13306 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13307 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13308 $as_echo_n "(cached) " >&6
13310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13311 /* end confdefs.h. */
13314 if ac_fn_c_try_compile "$LINENO"; then :
13315 xorg_cv_compiler_flag_unused_command_line_argument=yes
13317 xorg_cv_compiler_flag_unused_command_line_argument=no
13319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13322 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13323 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13324 CFLAGS="$xorg_testset_save_CFLAGS"
13329 if test $found = "no" ; then
13330 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13334 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13338 CFLAGS="$CFLAGS -Wmissing-noreturn"
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13341 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13342 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn`
13343 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13344 $as_echo_n "(cached) " >&6
13346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347 /* end confdefs.h. */
13357 if ac_fn_c_try_link "$LINENO"; then :
13358 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13360 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13362 rm -f core conftest.err conftest.$ac_objext \
13363 conftest$ac_exeext conftest.$ac_ext
13367 CFLAGS="$xorg_testset_save_CFLAGS"
13369 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13371 $as_echo "$supported" >&6; }
13372 if test "$supported" = "yes" ; then
13373 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13390 xorg_testset_save_CFLAGS="$CFLAGS"
13392 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13395 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13396 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13397 $as_echo_n "(cached) " >&6
13399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13400 /* end confdefs.h. */
13403 if ac_fn_c_try_compile "$LINENO"; then :
13404 xorg_cv_compiler_flag_unknown_warning_option=yes
13406 xorg_cv_compiler_flag_unknown_warning_option=no
13408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13411 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13412 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13413 CFLAGS="$xorg_testset_save_CFLAGS"
13416 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13417 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13422 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13423 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13424 $as_echo_n "(cached) " >&6
13426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13427 /* end confdefs.h. */
13430 if ac_fn_c_try_compile "$LINENO"; then :
13431 xorg_cv_compiler_flag_unused_command_line_argument=yes
13433 xorg_cv_compiler_flag_unused_command_line_argument=no
13435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13438 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13439 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13440 CFLAGS="$xorg_testset_save_CFLAGS"
13445 if test $found = "no" ; then
13446 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13450 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13454 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13457 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13458 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute`
13459 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13460 $as_echo_n "(cached) " >&6
13462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13463 /* end confdefs.h. */
13473 if ac_fn_c_try_link "$LINENO"; then :
13474 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13476 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13478 rm -f core conftest.err conftest.$ac_objext \
13479 conftest$ac_exeext conftest.$ac_ext
13483 CFLAGS="$xorg_testset_save_CFLAGS"
13485 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13487 $as_echo "$supported" >&6; }
13488 if test "$supported" = "yes" ; then
13489 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13506 xorg_testset_save_CFLAGS="$CFLAGS"
13508 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13511 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13512 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13513 $as_echo_n "(cached) " >&6
13515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13516 /* end confdefs.h. */
13519 if ac_fn_c_try_compile "$LINENO"; then :
13520 xorg_cv_compiler_flag_unknown_warning_option=yes
13522 xorg_cv_compiler_flag_unknown_warning_option=no
13524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13527 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13528 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13529 CFLAGS="$xorg_testset_save_CFLAGS"
13532 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13533 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13538 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13539 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13540 $as_echo_n "(cached) " >&6
13542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543 /* end confdefs.h. */
13546 if ac_fn_c_try_compile "$LINENO"; then :
13547 xorg_cv_compiler_flag_unused_command_line_argument=yes
13549 xorg_cv_compiler_flag_unused_command_line_argument=no
13551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13554 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13555 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13556 CFLAGS="$xorg_testset_save_CFLAGS"
13561 if test $found = "no" ; then
13562 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13566 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13570 CFLAGS="$CFLAGS -Wredundant-decls"
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13573 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13574 cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls`
13575 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13576 $as_echo_n "(cached) " >&6
13578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13579 /* end confdefs.h. */
13589 if ac_fn_c_try_link "$LINENO"; then :
13590 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13592 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13594 rm -f core conftest.err conftest.$ac_objext \
13595 conftest$ac_exeext conftest.$ac_ext
13599 CFLAGS="$xorg_testset_save_CFLAGS"
13601 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13603 $as_echo "$supported" >&6; }
13604 if test "$supported" = "yes" ; then
13605 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13612 # These are currently disabled because they are noisy. They will be enabled
13613 # in the future once the codebase is sufficiently modernized to silence
13614 # them. For now, I don't want them to drown out the other warnings.
13615 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13616 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13617 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13619 # Turn some warnings into errors, so we don't accidently get successful builds
13620 # when there are problems that should be fixed.
13622 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13634 xorg_testset_save_CFLAGS="$CFLAGS"
13636 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13639 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13640 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13641 $as_echo_n "(cached) " >&6
13643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h. */
13647 if ac_fn_c_try_compile "$LINENO"; then :
13648 xorg_cv_compiler_flag_unknown_warning_option=yes
13650 xorg_cv_compiler_flag_unknown_warning_option=no
13652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13655 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13656 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13657 CFLAGS="$xorg_testset_save_CFLAGS"
13660 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13661 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13666 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13667 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13668 $as_echo_n "(cached) " >&6
13670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13671 /* end confdefs.h. */
13674 if ac_fn_c_try_compile "$LINENO"; then :
13675 xorg_cv_compiler_flag_unused_command_line_argument=yes
13677 xorg_cv_compiler_flag_unused_command_line_argument=no
13679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13682 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13683 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13684 CFLAGS="$xorg_testset_save_CFLAGS"
13689 if test $found = "no" ; then
13690 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13694 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13698 CFLAGS="$CFLAGS -Werror=implicit"
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13701 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13702 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit`
13703 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13704 $as_echo_n "(cached) " >&6
13706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13707 /* end confdefs.h. */
13717 if ac_fn_c_try_link "$LINENO"; then :
13718 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13720 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13722 rm -f core conftest.err conftest.$ac_objext \
13723 conftest$ac_exeext conftest.$ac_ext
13727 CFLAGS="$xorg_testset_save_CFLAGS"
13729 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13731 $as_echo "$supported" >&6; }
13732 if test "$supported" = "yes" ; then
13733 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13738 if test $found = "no" ; then
13739 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13743 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13747 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13750 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13751 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
13752 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13753 $as_echo_n "(cached) " >&6
13755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756 /* end confdefs.h. */
13766 if ac_fn_c_try_link "$LINENO"; then :
13767 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13769 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13771 rm -f core conftest.err conftest.$ac_objext \
13772 conftest$ac_exeext conftest.$ac_ext
13776 CFLAGS="$xorg_testset_save_CFLAGS"
13778 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13780 $as_echo "$supported" >&6; }
13781 if test "$supported" = "yes" ; then
13782 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13799 xorg_testset_save_CFLAGS="$CFLAGS"
13801 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13804 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13805 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13806 $as_echo_n "(cached) " >&6
13808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13809 /* end confdefs.h. */
13812 if ac_fn_c_try_compile "$LINENO"; then :
13813 xorg_cv_compiler_flag_unknown_warning_option=yes
13815 xorg_cv_compiler_flag_unknown_warning_option=no
13817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13820 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13821 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13822 CFLAGS="$xorg_testset_save_CFLAGS"
13825 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13826 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13831 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13832 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13833 $as_echo_n "(cached) " >&6
13835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13836 /* end confdefs.h. */
13839 if ac_fn_c_try_compile "$LINENO"; then :
13840 xorg_cv_compiler_flag_unused_command_line_argument=yes
13842 xorg_cv_compiler_flag_unused_command_line_argument=no
13844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13847 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13848 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13849 CFLAGS="$xorg_testset_save_CFLAGS"
13854 if test $found = "no" ; then
13855 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13859 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13863 CFLAGS="$CFLAGS -Werror=nonnull"
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
13866 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
13867 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull`
13868 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13869 $as_echo_n "(cached) " >&6
13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h. */
13882 if ac_fn_c_try_link "$LINENO"; then :
13883 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13885 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13887 rm -f core conftest.err conftest.$ac_objext \
13888 conftest$ac_exeext conftest.$ac_ext
13892 CFLAGS="$xorg_testset_save_CFLAGS"
13894 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13896 $as_echo "$supported" >&6; }
13897 if test "$supported" = "yes" ; then
13898 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
13915 xorg_testset_save_CFLAGS="$CFLAGS"
13917 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13920 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13921 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13922 $as_echo_n "(cached) " >&6
13924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13925 /* end confdefs.h. */
13928 if ac_fn_c_try_compile "$LINENO"; then :
13929 xorg_cv_compiler_flag_unknown_warning_option=yes
13931 xorg_cv_compiler_flag_unknown_warning_option=no
13933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13936 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13937 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13938 CFLAGS="$xorg_testset_save_CFLAGS"
13941 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13942 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13947 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13948 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13949 $as_echo_n "(cached) " >&6
13951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13952 /* end confdefs.h. */
13955 if ac_fn_c_try_compile "$LINENO"; then :
13956 xorg_cv_compiler_flag_unused_command_line_argument=yes
13958 xorg_cv_compiler_flag_unused_command_line_argument=no
13960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13963 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13964 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13965 CFLAGS="$xorg_testset_save_CFLAGS"
13970 if test $found = "no" ; then
13971 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13975 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13979 CFLAGS="$CFLAGS -Werror=init-self"
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
13982 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
13983 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self`
13984 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13985 $as_echo_n "(cached) " >&6
13987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h. */
13998 if ac_fn_c_try_link "$LINENO"; then :
13999 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14001 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14003 rm -f core conftest.err conftest.$ac_objext \
14004 conftest$ac_exeext conftest.$ac_ext
14008 CFLAGS="$xorg_testset_save_CFLAGS"
14010 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14012 $as_echo "$supported" >&6; }
14013 if test "$supported" = "yes" ; then
14014 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14031 xorg_testset_save_CFLAGS="$CFLAGS"
14033 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14036 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14037 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14038 $as_echo_n "(cached) " >&6
14040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14041 /* end confdefs.h. */
14044 if ac_fn_c_try_compile "$LINENO"; then :
14045 xorg_cv_compiler_flag_unknown_warning_option=yes
14047 xorg_cv_compiler_flag_unknown_warning_option=no
14049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14052 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14053 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14054 CFLAGS="$xorg_testset_save_CFLAGS"
14057 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14058 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14063 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14064 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14065 $as_echo_n "(cached) " >&6
14067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14068 /* end confdefs.h. */
14071 if ac_fn_c_try_compile "$LINENO"; then :
14072 xorg_cv_compiler_flag_unused_command_line_argument=yes
14074 xorg_cv_compiler_flag_unused_command_line_argument=no
14076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14079 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14080 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14081 CFLAGS="$xorg_testset_save_CFLAGS"
14086 if test $found = "no" ; then
14087 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14091 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14095 CFLAGS="$CFLAGS -Werror=main"
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14098 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14099 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main`
14100 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14101 $as_echo_n "(cached) " >&6
14103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14104 /* end confdefs.h. */
14114 if ac_fn_c_try_link "$LINENO"; then :
14115 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14117 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14119 rm -f core conftest.err conftest.$ac_objext \
14120 conftest$ac_exeext conftest.$ac_ext
14124 CFLAGS="$xorg_testset_save_CFLAGS"
14126 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14128 $as_echo "$supported" >&6; }
14129 if test "$supported" = "yes" ; then
14130 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14147 xorg_testset_save_CFLAGS="$CFLAGS"
14149 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14152 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14153 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14154 $as_echo_n "(cached) " >&6
14156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14157 /* end confdefs.h. */
14160 if ac_fn_c_try_compile "$LINENO"; then :
14161 xorg_cv_compiler_flag_unknown_warning_option=yes
14163 xorg_cv_compiler_flag_unknown_warning_option=no
14165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14168 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14169 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14170 CFLAGS="$xorg_testset_save_CFLAGS"
14173 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14174 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14179 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14180 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14181 $as_echo_n "(cached) " >&6
14183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14184 /* end confdefs.h. */
14187 if ac_fn_c_try_compile "$LINENO"; then :
14188 xorg_cv_compiler_flag_unused_command_line_argument=yes
14190 xorg_cv_compiler_flag_unused_command_line_argument=no
14192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14195 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14196 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14197 CFLAGS="$xorg_testset_save_CFLAGS"
14202 if test $found = "no" ; then
14203 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14207 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14211 CFLAGS="$CFLAGS -Werror=missing-braces"
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14214 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14215 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces`
14216 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14217 $as_echo_n "(cached) " >&6
14219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14220 /* end confdefs.h. */
14230 if ac_fn_c_try_link "$LINENO"; then :
14231 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14233 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14235 rm -f core conftest.err conftest.$ac_objext \
14236 conftest$ac_exeext conftest.$ac_ext
14240 CFLAGS="$xorg_testset_save_CFLAGS"
14242 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14244 $as_echo "$supported" >&6; }
14245 if test "$supported" = "yes" ; then
14246 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14263 xorg_testset_save_CFLAGS="$CFLAGS"
14265 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14268 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14269 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14270 $as_echo_n "(cached) " >&6
14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h. */
14276 if ac_fn_c_try_compile "$LINENO"; then :
14277 xorg_cv_compiler_flag_unknown_warning_option=yes
14279 xorg_cv_compiler_flag_unknown_warning_option=no
14281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14284 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14285 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14286 CFLAGS="$xorg_testset_save_CFLAGS"
14289 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14290 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14295 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14296 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14297 $as_echo_n "(cached) " >&6
14299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14300 /* end confdefs.h. */
14303 if ac_fn_c_try_compile "$LINENO"; then :
14304 xorg_cv_compiler_flag_unused_command_line_argument=yes
14306 xorg_cv_compiler_flag_unused_command_line_argument=no
14308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14311 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14312 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14313 CFLAGS="$xorg_testset_save_CFLAGS"
14318 if test $found = "no" ; then
14319 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14323 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14327 CFLAGS="$CFLAGS -Werror=sequence-point"
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14330 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14331 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point`
14332 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14333 $as_echo_n "(cached) " >&6
14335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14336 /* end confdefs.h. */
14346 if ac_fn_c_try_link "$LINENO"; then :
14347 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14349 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14351 rm -f core conftest.err conftest.$ac_objext \
14352 conftest$ac_exeext conftest.$ac_ext
14356 CFLAGS="$xorg_testset_save_CFLAGS"
14358 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14360 $as_echo "$supported" >&6; }
14361 if test "$supported" = "yes" ; then
14362 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14379 xorg_testset_save_CFLAGS="$CFLAGS"
14381 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14384 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14385 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14386 $as_echo_n "(cached) " >&6
14388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h. */
14392 if ac_fn_c_try_compile "$LINENO"; then :
14393 xorg_cv_compiler_flag_unknown_warning_option=yes
14395 xorg_cv_compiler_flag_unknown_warning_option=no
14397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14400 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14401 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14402 CFLAGS="$xorg_testset_save_CFLAGS"
14405 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14406 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14411 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14412 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14413 $as_echo_n "(cached) " >&6
14415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14416 /* end confdefs.h. */
14419 if ac_fn_c_try_compile "$LINENO"; then :
14420 xorg_cv_compiler_flag_unused_command_line_argument=yes
14422 xorg_cv_compiler_flag_unused_command_line_argument=no
14424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14427 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14428 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14429 CFLAGS="$xorg_testset_save_CFLAGS"
14434 if test $found = "no" ; then
14435 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14439 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14443 CFLAGS="$CFLAGS -Werror=return-type"
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14446 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14447 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type`
14448 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14449 $as_echo_n "(cached) " >&6
14451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14452 /* end confdefs.h. */
14462 if ac_fn_c_try_link "$LINENO"; then :
14463 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14465 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14467 rm -f core conftest.err conftest.$ac_objext \
14468 conftest$ac_exeext conftest.$ac_ext
14472 CFLAGS="$xorg_testset_save_CFLAGS"
14474 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14476 $as_echo "$supported" >&6; }
14477 if test "$supported" = "yes" ; then
14478 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14483 if test $found = "no" ; then
14484 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14488 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14492 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14495 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14496 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
14497 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14498 $as_echo_n "(cached) " >&6
14500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14501 /* end confdefs.h. */
14511 if ac_fn_c_try_link "$LINENO"; then :
14512 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14514 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14516 rm -f core conftest.err conftest.$ac_objext \
14517 conftest$ac_exeext conftest.$ac_ext
14521 CFLAGS="$xorg_testset_save_CFLAGS"
14523 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14525 $as_echo "$supported" >&6; }
14526 if test "$supported" = "yes" ; then
14527 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14544 xorg_testset_save_CFLAGS="$CFLAGS"
14546 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14549 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14550 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14551 $as_echo_n "(cached) " >&6
14553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14554 /* end confdefs.h. */
14557 if ac_fn_c_try_compile "$LINENO"; then :
14558 xorg_cv_compiler_flag_unknown_warning_option=yes
14560 xorg_cv_compiler_flag_unknown_warning_option=no
14562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14565 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14566 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14567 CFLAGS="$xorg_testset_save_CFLAGS"
14570 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14571 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14576 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14577 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14578 $as_echo_n "(cached) " >&6
14580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14581 /* end confdefs.h. */
14584 if ac_fn_c_try_compile "$LINENO"; then :
14585 xorg_cv_compiler_flag_unused_command_line_argument=yes
14587 xorg_cv_compiler_flag_unused_command_line_argument=no
14589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14592 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14593 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14594 CFLAGS="$xorg_testset_save_CFLAGS"
14599 if test $found = "no" ; then
14600 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14604 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14608 CFLAGS="$CFLAGS -Werror=trigraphs"
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14611 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14612 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs`
14613 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14614 $as_echo_n "(cached) " >&6
14616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14617 /* end confdefs.h. */
14627 if ac_fn_c_try_link "$LINENO"; then :
14628 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14630 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14632 rm -f core conftest.err conftest.$ac_objext \
14633 conftest$ac_exeext conftest.$ac_ext
14637 CFLAGS="$xorg_testset_save_CFLAGS"
14639 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14641 $as_echo "$supported" >&6; }
14642 if test "$supported" = "yes" ; then
14643 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14660 xorg_testset_save_CFLAGS="$CFLAGS"
14662 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14665 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14666 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14667 $as_echo_n "(cached) " >&6
14669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14670 /* end confdefs.h. */
14673 if ac_fn_c_try_compile "$LINENO"; then :
14674 xorg_cv_compiler_flag_unknown_warning_option=yes
14676 xorg_cv_compiler_flag_unknown_warning_option=no
14678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14681 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14682 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14683 CFLAGS="$xorg_testset_save_CFLAGS"
14686 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14687 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14688 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14692 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14693 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14694 $as_echo_n "(cached) " >&6
14696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14697 /* end confdefs.h. */
14700 if ac_fn_c_try_compile "$LINENO"; then :
14701 xorg_cv_compiler_flag_unused_command_line_argument=yes
14703 xorg_cv_compiler_flag_unused_command_line_argument=no
14705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14708 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14709 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14710 CFLAGS="$xorg_testset_save_CFLAGS"
14715 if test $found = "no" ; then
14716 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14720 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14724 CFLAGS="$CFLAGS -Werror=array-bounds"
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14727 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14728 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds`
14729 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14730 $as_echo_n "(cached) " >&6
14732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14733 /* end confdefs.h. */
14743 if ac_fn_c_try_link "$LINENO"; then :
14744 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14746 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14748 rm -f core conftest.err conftest.$ac_objext \
14749 conftest$ac_exeext conftest.$ac_ext
14753 CFLAGS="$xorg_testset_save_CFLAGS"
14755 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14757 $as_echo "$supported" >&6; }
14758 if test "$supported" = "yes" ; then
14759 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14776 xorg_testset_save_CFLAGS="$CFLAGS"
14778 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14781 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14782 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14783 $as_echo_n "(cached) " >&6
14785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14786 /* end confdefs.h. */
14789 if ac_fn_c_try_compile "$LINENO"; then :
14790 xorg_cv_compiler_flag_unknown_warning_option=yes
14792 xorg_cv_compiler_flag_unknown_warning_option=no
14794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14797 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14798 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14799 CFLAGS="$xorg_testset_save_CFLAGS"
14802 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14803 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14808 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14809 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14810 $as_echo_n "(cached) " >&6
14812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14813 /* end confdefs.h. */
14816 if ac_fn_c_try_compile "$LINENO"; then :
14817 xorg_cv_compiler_flag_unused_command_line_argument=yes
14819 xorg_cv_compiler_flag_unused_command_line_argument=no
14821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14824 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14825 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14826 CFLAGS="$xorg_testset_save_CFLAGS"
14831 if test $found = "no" ; then
14832 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14836 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14840 CFLAGS="$CFLAGS -Werror=write-strings"
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
14843 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
14844 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings`
14845 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14846 $as_echo_n "(cached) " >&6
14848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14849 /* end confdefs.h. */
14859 if ac_fn_c_try_link "$LINENO"; then :
14860 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14862 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14864 rm -f core conftest.err conftest.$ac_objext \
14865 conftest$ac_exeext conftest.$ac_ext
14869 CFLAGS="$xorg_testset_save_CFLAGS"
14871 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14873 $as_echo "$supported" >&6; }
14874 if test "$supported" = "yes" ; then
14875 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
14892 xorg_testset_save_CFLAGS="$CFLAGS"
14894 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14897 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14898 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14899 $as_echo_n "(cached) " >&6
14901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14902 /* end confdefs.h. */
14905 if ac_fn_c_try_compile "$LINENO"; then :
14906 xorg_cv_compiler_flag_unknown_warning_option=yes
14908 xorg_cv_compiler_flag_unknown_warning_option=no
14910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14913 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14914 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14915 CFLAGS="$xorg_testset_save_CFLAGS"
14918 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14919 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14924 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14925 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14926 $as_echo_n "(cached) " >&6
14928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14929 /* end confdefs.h. */
14932 if ac_fn_c_try_compile "$LINENO"; then :
14933 xorg_cv_compiler_flag_unused_command_line_argument=yes
14935 xorg_cv_compiler_flag_unused_command_line_argument=no
14937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14940 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14941 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14942 CFLAGS="$xorg_testset_save_CFLAGS"
14947 if test $found = "no" ; then
14948 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14952 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14956 CFLAGS="$CFLAGS -Werror=address"
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
14959 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
14960 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address`
14961 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14962 $as_echo_n "(cached) " >&6
14964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14965 /* end confdefs.h. */
14975 if ac_fn_c_try_link "$LINENO"; then :
14976 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14978 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14980 rm -f core conftest.err conftest.$ac_objext \
14981 conftest$ac_exeext conftest.$ac_ext
14985 CFLAGS="$xorg_testset_save_CFLAGS"
14987 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14989 $as_echo "$supported" >&6; }
14990 if test "$supported" = "yes" ; then
14991 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15008 xorg_testset_save_CFLAGS="$CFLAGS"
15010 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15013 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15014 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15015 $as_echo_n "(cached) " >&6
15017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15018 /* end confdefs.h. */
15021 if ac_fn_c_try_compile "$LINENO"; then :
15022 xorg_cv_compiler_flag_unknown_warning_option=yes
15024 xorg_cv_compiler_flag_unknown_warning_option=no
15026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15029 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15030 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15031 CFLAGS="$xorg_testset_save_CFLAGS"
15034 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15035 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15040 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15041 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15042 $as_echo_n "(cached) " >&6
15044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15045 /* end confdefs.h. */
15048 if ac_fn_c_try_compile "$LINENO"; then :
15049 xorg_cv_compiler_flag_unused_command_line_argument=yes
15051 xorg_cv_compiler_flag_unused_command_line_argument=no
15053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15056 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15057 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15058 CFLAGS="$xorg_testset_save_CFLAGS"
15063 if test $found = "no" ; then
15064 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15068 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15072 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15075 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15076 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
15077 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15078 $as_echo_n "(cached) " >&6
15080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15081 /* end confdefs.h. */
15091 if ac_fn_c_try_link "$LINENO"; then :
15092 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15094 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15096 rm -f core conftest.err conftest.$ac_objext \
15097 conftest$ac_exeext conftest.$ac_ext
15101 CFLAGS="$xorg_testset_save_CFLAGS"
15103 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15105 $as_echo "$supported" >&6; }
15106 if test "$supported" = "yes" ; then
15107 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15112 if test $found = "no" ; then
15113 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15117 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15121 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15124 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15125 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
15126 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15127 $as_echo_n "(cached) " >&6
15129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15130 /* end confdefs.h. */
15140 if ac_fn_c_try_link "$LINENO"; then :
15141 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15143 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15145 rm -f core conftest.err conftest.$ac_objext \
15146 conftest$ac_exeext conftest.$ac_ext
15150 CFLAGS="$xorg_testset_save_CFLAGS"
15152 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15154 $as_echo "$supported" >&6; }
15155 if test "$supported" = "yes" ; then
15156 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15173 xorg_testset_save_CFLAGS="$CFLAGS"
15175 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15178 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15179 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15180 $as_echo_n "(cached) " >&6
15182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15183 /* end confdefs.h. */
15186 if ac_fn_c_try_compile "$LINENO"; then :
15187 xorg_cv_compiler_flag_unknown_warning_option=yes
15189 xorg_cv_compiler_flag_unknown_warning_option=no
15191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15194 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15195 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15196 CFLAGS="$xorg_testset_save_CFLAGS"
15199 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15200 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15205 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15206 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15207 $as_echo_n "(cached) " >&6
15209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15210 /* end confdefs.h. */
15213 if ac_fn_c_try_compile "$LINENO"; then :
15214 xorg_cv_compiler_flag_unused_command_line_argument=yes
15216 xorg_cv_compiler_flag_unused_command_line_argument=no
15218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15221 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15222 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15223 CFLAGS="$xorg_testset_save_CFLAGS"
15228 if test $found = "no" ; then
15229 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15233 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15237 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15240 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15241 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
15242 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15243 $as_echo_n "(cached) " >&6
15245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15246 /* end confdefs.h. */
15256 if ac_fn_c_try_link "$LINENO"; then :
15257 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15259 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15261 rm -f core conftest.err conftest.$ac_objext \
15262 conftest$ac_exeext conftest.$ac_ext
15266 CFLAGS="$xorg_testset_save_CFLAGS"
15268 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15270 $as_echo "$supported" >&6; }
15271 if test "$supported" = "yes" ; then
15272 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15277 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15279 { $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
15280 $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;}
15292 xorg_testset_save_CFLAGS="$CFLAGS"
15294 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15297 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15298 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15299 $as_echo_n "(cached) " >&6
15301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302 /* end confdefs.h. */
15305 if ac_fn_c_try_compile "$LINENO"; then :
15306 xorg_cv_compiler_flag_unknown_warning_option=yes
15308 xorg_cv_compiler_flag_unknown_warning_option=no
15310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15313 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15314 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15315 CFLAGS="$xorg_testset_save_CFLAGS"
15318 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15319 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15324 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15325 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15326 $as_echo_n "(cached) " >&6
15328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15329 /* end confdefs.h. */
15332 if ac_fn_c_try_compile "$LINENO"; then :
15333 xorg_cv_compiler_flag_unused_command_line_argument=yes
15335 xorg_cv_compiler_flag_unused_command_line_argument=no
15337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15340 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15341 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15342 CFLAGS="$xorg_testset_save_CFLAGS"
15347 if test $found = "no" ; then
15348 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15352 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15356 CFLAGS="$CFLAGS -Wimplicit"
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15359 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15360 cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit`
15361 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15362 $as_echo_n "(cached) " >&6
15364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15365 /* end confdefs.h. */
15375 if ac_fn_c_try_link "$LINENO"; then :
15376 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15378 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15380 rm -f core conftest.err conftest.$ac_objext \
15381 conftest$ac_exeext conftest.$ac_ext
15385 CFLAGS="$xorg_testset_save_CFLAGS"
15387 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15389 $as_echo "$supported" >&6; }
15390 if test "$supported" = "yes" ; then
15391 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15408 xorg_testset_save_CFLAGS="$CFLAGS"
15410 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15413 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15414 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15415 $as_echo_n "(cached) " >&6
15417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15418 /* end confdefs.h. */
15421 if ac_fn_c_try_compile "$LINENO"; then :
15422 xorg_cv_compiler_flag_unknown_warning_option=yes
15424 xorg_cv_compiler_flag_unknown_warning_option=no
15426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15429 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15430 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15431 CFLAGS="$xorg_testset_save_CFLAGS"
15434 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15435 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15440 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15441 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15442 $as_echo_n "(cached) " >&6
15444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15445 /* end confdefs.h. */
15448 if ac_fn_c_try_compile "$LINENO"; then :
15449 xorg_cv_compiler_flag_unused_command_line_argument=yes
15451 xorg_cv_compiler_flag_unused_command_line_argument=no
15453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15456 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15457 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15458 CFLAGS="$xorg_testset_save_CFLAGS"
15463 if test $found = "no" ; then
15464 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15468 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15472 CFLAGS="$CFLAGS -Wnonnull"
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15475 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15476 cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull`
15477 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15478 $as_echo_n "(cached) " >&6
15480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15481 /* end confdefs.h. */
15491 if ac_fn_c_try_link "$LINENO"; then :
15492 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15494 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15496 rm -f core conftest.err conftest.$ac_objext \
15497 conftest$ac_exeext conftest.$ac_ext
15501 CFLAGS="$xorg_testset_save_CFLAGS"
15503 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15505 $as_echo "$supported" >&6; }
15506 if test "$supported" = "yes" ; then
15507 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15524 xorg_testset_save_CFLAGS="$CFLAGS"
15526 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15529 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15530 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15531 $as_echo_n "(cached) " >&6
15533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15534 /* end confdefs.h. */
15537 if ac_fn_c_try_compile "$LINENO"; then :
15538 xorg_cv_compiler_flag_unknown_warning_option=yes
15540 xorg_cv_compiler_flag_unknown_warning_option=no
15542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15545 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15546 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15547 CFLAGS="$xorg_testset_save_CFLAGS"
15550 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15551 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15556 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15557 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15558 $as_echo_n "(cached) " >&6
15560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15561 /* end confdefs.h. */
15564 if ac_fn_c_try_compile "$LINENO"; then :
15565 xorg_cv_compiler_flag_unused_command_line_argument=yes
15567 xorg_cv_compiler_flag_unused_command_line_argument=no
15569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15572 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15573 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15574 CFLAGS="$xorg_testset_save_CFLAGS"
15579 if test $found = "no" ; then
15580 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15584 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15588 CFLAGS="$CFLAGS -Winit-self"
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15591 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15592 cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self`
15593 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15594 $as_echo_n "(cached) " >&6
15596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15597 /* end confdefs.h. */
15607 if ac_fn_c_try_link "$LINENO"; then :
15608 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15610 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15612 rm -f core conftest.err conftest.$ac_objext \
15613 conftest$ac_exeext conftest.$ac_ext
15617 CFLAGS="$xorg_testset_save_CFLAGS"
15619 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15621 $as_echo "$supported" >&6; }
15622 if test "$supported" = "yes" ; then
15623 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15640 xorg_testset_save_CFLAGS="$CFLAGS"
15642 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15645 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15646 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15647 $as_echo_n "(cached) " >&6
15649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15650 /* end confdefs.h. */
15653 if ac_fn_c_try_compile "$LINENO"; then :
15654 xorg_cv_compiler_flag_unknown_warning_option=yes
15656 xorg_cv_compiler_flag_unknown_warning_option=no
15658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15661 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15662 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15663 CFLAGS="$xorg_testset_save_CFLAGS"
15666 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15667 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15672 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15673 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15674 $as_echo_n "(cached) " >&6
15676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15677 /* end confdefs.h. */
15680 if ac_fn_c_try_compile "$LINENO"; then :
15681 xorg_cv_compiler_flag_unused_command_line_argument=yes
15683 xorg_cv_compiler_flag_unused_command_line_argument=no
15685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15688 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15689 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15690 CFLAGS="$xorg_testset_save_CFLAGS"
15695 if test $found = "no" ; then
15696 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15700 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15704 CFLAGS="$CFLAGS -Wmain"
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15707 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
15708 cacheid=`$as_echo xorg_cv_cc_flag_-Wmain`
15709 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15710 $as_echo_n "(cached) " >&6
15712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15713 /* end confdefs.h. */
15723 if ac_fn_c_try_link "$LINENO"; then :
15724 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15726 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15728 rm -f core conftest.err conftest.$ac_objext \
15729 conftest$ac_exeext conftest.$ac_ext
15733 CFLAGS="$xorg_testset_save_CFLAGS"
15735 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15737 $as_echo "$supported" >&6; }
15738 if test "$supported" = "yes" ; then
15739 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15756 xorg_testset_save_CFLAGS="$CFLAGS"
15758 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15761 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15762 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15763 $as_echo_n "(cached) " >&6
15765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15766 /* end confdefs.h. */
15769 if ac_fn_c_try_compile "$LINENO"; then :
15770 xorg_cv_compiler_flag_unknown_warning_option=yes
15772 xorg_cv_compiler_flag_unknown_warning_option=no
15774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15777 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15778 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15779 CFLAGS="$xorg_testset_save_CFLAGS"
15782 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15783 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15788 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15789 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15790 $as_echo_n "(cached) " >&6
15792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15793 /* end confdefs.h. */
15796 if ac_fn_c_try_compile "$LINENO"; then :
15797 xorg_cv_compiler_flag_unused_command_line_argument=yes
15799 xorg_cv_compiler_flag_unused_command_line_argument=no
15801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15804 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15805 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15806 CFLAGS="$xorg_testset_save_CFLAGS"
15811 if test $found = "no" ; then
15812 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15816 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15820 CFLAGS="$CFLAGS -Wmissing-braces"
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
15823 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
15824 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces`
15825 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15826 $as_echo_n "(cached) " >&6
15828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15829 /* end confdefs.h. */
15839 if ac_fn_c_try_link "$LINENO"; then :
15840 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15842 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15844 rm -f core conftest.err conftest.$ac_objext \
15845 conftest$ac_exeext conftest.$ac_ext
15849 CFLAGS="$xorg_testset_save_CFLAGS"
15851 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15853 $as_echo "$supported" >&6; }
15854 if test "$supported" = "yes" ; then
15855 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
15872 xorg_testset_save_CFLAGS="$CFLAGS"
15874 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15877 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15878 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15879 $as_echo_n "(cached) " >&6
15881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882 /* end confdefs.h. */
15885 if ac_fn_c_try_compile "$LINENO"; then :
15886 xorg_cv_compiler_flag_unknown_warning_option=yes
15888 xorg_cv_compiler_flag_unknown_warning_option=no
15890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15893 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15894 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15895 CFLAGS="$xorg_testset_save_CFLAGS"
15898 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15899 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15904 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15905 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15906 $as_echo_n "(cached) " >&6
15908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15909 /* end confdefs.h. */
15912 if ac_fn_c_try_compile "$LINENO"; then :
15913 xorg_cv_compiler_flag_unused_command_line_argument=yes
15915 xorg_cv_compiler_flag_unused_command_line_argument=no
15917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15920 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15921 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15922 CFLAGS="$xorg_testset_save_CFLAGS"
15927 if test $found = "no" ; then
15928 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15932 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15936 CFLAGS="$CFLAGS -Wsequence-point"
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
15939 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
15940 cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point`
15941 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15942 $as_echo_n "(cached) " >&6
15944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15945 /* end confdefs.h. */
15955 if ac_fn_c_try_link "$LINENO"; then :
15956 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15958 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15960 rm -f core conftest.err conftest.$ac_objext \
15961 conftest$ac_exeext conftest.$ac_ext
15965 CFLAGS="$xorg_testset_save_CFLAGS"
15967 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15969 $as_echo "$supported" >&6; }
15970 if test "$supported" = "yes" ; then
15971 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
15988 xorg_testset_save_CFLAGS="$CFLAGS"
15990 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15993 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15994 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15995 $as_echo_n "(cached) " >&6
15997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15998 /* end confdefs.h. */
16001 if ac_fn_c_try_compile "$LINENO"; then :
16002 xorg_cv_compiler_flag_unknown_warning_option=yes
16004 xorg_cv_compiler_flag_unknown_warning_option=no
16006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16009 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16010 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16011 CFLAGS="$xorg_testset_save_CFLAGS"
16014 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16015 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16020 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16021 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16022 $as_echo_n "(cached) " >&6
16024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16025 /* end confdefs.h. */
16028 if ac_fn_c_try_compile "$LINENO"; then :
16029 xorg_cv_compiler_flag_unused_command_line_argument=yes
16031 xorg_cv_compiler_flag_unused_command_line_argument=no
16033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16036 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16037 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16038 CFLAGS="$xorg_testset_save_CFLAGS"
16043 if test $found = "no" ; then
16044 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16048 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16052 CFLAGS="$CFLAGS -Wreturn-type"
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16055 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16056 cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type`
16057 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16058 $as_echo_n "(cached) " >&6
16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061 /* end confdefs.h. */
16071 if ac_fn_c_try_link "$LINENO"; then :
16072 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16074 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16076 rm -f core conftest.err conftest.$ac_objext \
16077 conftest$ac_exeext conftest.$ac_ext
16081 CFLAGS="$xorg_testset_save_CFLAGS"
16083 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16085 $as_echo "$supported" >&6; }
16086 if test "$supported" = "yes" ; then
16087 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16104 xorg_testset_save_CFLAGS="$CFLAGS"
16106 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16109 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16110 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16111 $as_echo_n "(cached) " >&6
16113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114 /* end confdefs.h. */
16117 if ac_fn_c_try_compile "$LINENO"; then :
16118 xorg_cv_compiler_flag_unknown_warning_option=yes
16120 xorg_cv_compiler_flag_unknown_warning_option=no
16122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16125 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16126 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16127 CFLAGS="$xorg_testset_save_CFLAGS"
16130 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16131 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16136 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16137 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16138 $as_echo_n "(cached) " >&6
16140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16141 /* end confdefs.h. */
16144 if ac_fn_c_try_compile "$LINENO"; then :
16145 xorg_cv_compiler_flag_unused_command_line_argument=yes
16147 xorg_cv_compiler_flag_unused_command_line_argument=no
16149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16152 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16153 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16154 CFLAGS="$xorg_testset_save_CFLAGS"
16159 if test $found = "no" ; then
16160 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16164 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16168 CFLAGS="$CFLAGS -Wtrigraphs"
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16171 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16172 cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs`
16173 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16174 $as_echo_n "(cached) " >&6
16176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16177 /* end confdefs.h. */
16187 if ac_fn_c_try_link "$LINENO"; then :
16188 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16190 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16192 rm -f core conftest.err conftest.$ac_objext \
16193 conftest$ac_exeext conftest.$ac_ext
16197 CFLAGS="$xorg_testset_save_CFLAGS"
16199 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16201 $as_echo "$supported" >&6; }
16202 if test "$supported" = "yes" ; then
16203 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16220 xorg_testset_save_CFLAGS="$CFLAGS"
16222 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16225 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16226 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16227 $as_echo_n "(cached) " >&6
16229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16230 /* end confdefs.h. */
16233 if ac_fn_c_try_compile "$LINENO"; then :
16234 xorg_cv_compiler_flag_unknown_warning_option=yes
16236 xorg_cv_compiler_flag_unknown_warning_option=no
16238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16241 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16242 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16243 CFLAGS="$xorg_testset_save_CFLAGS"
16246 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16247 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16252 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16253 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16254 $as_echo_n "(cached) " >&6
16256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16257 /* end confdefs.h. */
16260 if ac_fn_c_try_compile "$LINENO"; then :
16261 xorg_cv_compiler_flag_unused_command_line_argument=yes
16263 xorg_cv_compiler_flag_unused_command_line_argument=no
16265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16268 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16269 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16270 CFLAGS="$xorg_testset_save_CFLAGS"
16275 if test $found = "no" ; then
16276 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16280 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16284 CFLAGS="$CFLAGS -Warray-bounds"
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16287 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16288 cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds`
16289 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16290 $as_echo_n "(cached) " >&6
16292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16293 /* end confdefs.h. */
16303 if ac_fn_c_try_link "$LINENO"; then :
16304 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16306 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16308 rm -f core conftest.err conftest.$ac_objext \
16309 conftest$ac_exeext conftest.$ac_ext
16313 CFLAGS="$xorg_testset_save_CFLAGS"
16315 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16317 $as_echo "$supported" >&6; }
16318 if test "$supported" = "yes" ; then
16319 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16336 xorg_testset_save_CFLAGS="$CFLAGS"
16338 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16341 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16342 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16343 $as_echo_n "(cached) " >&6
16345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16346 /* end confdefs.h. */
16349 if ac_fn_c_try_compile "$LINENO"; then :
16350 xorg_cv_compiler_flag_unknown_warning_option=yes
16352 xorg_cv_compiler_flag_unknown_warning_option=no
16354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16357 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16358 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16359 CFLAGS="$xorg_testset_save_CFLAGS"
16362 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16363 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16368 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16369 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16370 $as_echo_n "(cached) " >&6
16372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16373 /* end confdefs.h. */
16376 if ac_fn_c_try_compile "$LINENO"; then :
16377 xorg_cv_compiler_flag_unused_command_line_argument=yes
16379 xorg_cv_compiler_flag_unused_command_line_argument=no
16381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16384 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16385 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16386 CFLAGS="$xorg_testset_save_CFLAGS"
16391 if test $found = "no" ; then
16392 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16396 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16400 CFLAGS="$CFLAGS -Wwrite-strings"
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16403 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16404 cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings`
16405 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16406 $as_echo_n "(cached) " >&6
16408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16409 /* end confdefs.h. */
16419 if ac_fn_c_try_link "$LINENO"; then :
16420 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16422 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16424 rm -f core conftest.err conftest.$ac_objext \
16425 conftest$ac_exeext conftest.$ac_ext
16429 CFLAGS="$xorg_testset_save_CFLAGS"
16431 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16433 $as_echo "$supported" >&6; }
16434 if test "$supported" = "yes" ; then
16435 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16452 xorg_testset_save_CFLAGS="$CFLAGS"
16454 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16457 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16458 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16459 $as_echo_n "(cached) " >&6
16461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16462 /* end confdefs.h. */
16465 if ac_fn_c_try_compile "$LINENO"; then :
16466 xorg_cv_compiler_flag_unknown_warning_option=yes
16468 xorg_cv_compiler_flag_unknown_warning_option=no
16470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16473 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16474 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16475 CFLAGS="$xorg_testset_save_CFLAGS"
16478 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16479 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16484 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16485 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16486 $as_echo_n "(cached) " >&6
16488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16489 /* end confdefs.h. */
16492 if ac_fn_c_try_compile "$LINENO"; then :
16493 xorg_cv_compiler_flag_unused_command_line_argument=yes
16495 xorg_cv_compiler_flag_unused_command_line_argument=no
16497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16500 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16501 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16502 CFLAGS="$xorg_testset_save_CFLAGS"
16507 if test $found = "no" ; then
16508 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16512 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16516 CFLAGS="$CFLAGS -Waddress"
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16519 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
16520 cacheid=`$as_echo xorg_cv_cc_flag_-Waddress`
16521 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16522 $as_echo_n "(cached) " >&6
16524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16525 /* end confdefs.h. */
16535 if ac_fn_c_try_link "$LINENO"; then :
16536 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16538 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16540 rm -f core conftest.err conftest.$ac_objext \
16541 conftest$ac_exeext conftest.$ac_ext
16545 CFLAGS="$xorg_testset_save_CFLAGS"
16547 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16549 $as_echo "$supported" >&6; }
16550 if test "$supported" = "yes" ; then
16551 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16568 xorg_testset_save_CFLAGS="$CFLAGS"
16570 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16573 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16574 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16575 $as_echo_n "(cached) " >&6
16577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16578 /* end confdefs.h. */
16581 if ac_fn_c_try_compile "$LINENO"; then :
16582 xorg_cv_compiler_flag_unknown_warning_option=yes
16584 xorg_cv_compiler_flag_unknown_warning_option=no
16586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16589 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16590 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16591 CFLAGS="$xorg_testset_save_CFLAGS"
16594 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16595 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16600 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16601 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16602 $as_echo_n "(cached) " >&6
16604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16605 /* end confdefs.h. */
16608 if ac_fn_c_try_compile "$LINENO"; then :
16609 xorg_cv_compiler_flag_unused_command_line_argument=yes
16611 xorg_cv_compiler_flag_unused_command_line_argument=no
16613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16616 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16617 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16618 CFLAGS="$xorg_testset_save_CFLAGS"
16623 if test $found = "no" ; then
16624 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16628 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16632 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16635 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16636 cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast`
16637 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16638 $as_echo_n "(cached) " >&6
16640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16641 /* end confdefs.h. */
16651 if ac_fn_c_try_link "$LINENO"; then :
16652 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16654 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16656 rm -f core conftest.err conftest.$ac_objext \
16657 conftest$ac_exeext conftest.$ac_ext
16661 CFLAGS="$xorg_testset_save_CFLAGS"
16663 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16665 $as_echo "$supported" >&6; }
16666 if test "$supported" = "yes" ; then
16667 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16684 xorg_testset_save_CFLAGS="$CFLAGS"
16686 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16689 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16690 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16691 $as_echo_n "(cached) " >&6
16693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16694 /* end confdefs.h. */
16697 if ac_fn_c_try_compile "$LINENO"; then :
16698 xorg_cv_compiler_flag_unknown_warning_option=yes
16700 xorg_cv_compiler_flag_unknown_warning_option=no
16702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16705 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16706 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16707 CFLAGS="$xorg_testset_save_CFLAGS"
16710 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16711 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16716 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16717 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16718 $as_echo_n "(cached) " >&6
16720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16721 /* end confdefs.h. */
16724 if ac_fn_c_try_compile "$LINENO"; then :
16725 xorg_cv_compiler_flag_unused_command_line_argument=yes
16727 xorg_cv_compiler_flag_unused_command_line_argument=no
16729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16732 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16733 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16734 CFLAGS="$xorg_testset_save_CFLAGS"
16739 if test $found = "no" ; then
16740 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16744 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16748 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
16751 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
16752 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast`
16753 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16754 $as_echo_n "(cached) " >&6
16756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16757 /* end confdefs.h. */
16767 if ac_fn_c_try_link "$LINENO"; then :
16768 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16770 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16772 rm -f core conftest.err conftest.$ac_objext \
16773 conftest$ac_exeext conftest.$ac_ext
16777 CFLAGS="$xorg_testset_save_CFLAGS"
16779 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16781 $as_echo "$supported" >&6; }
16782 if test "$supported" = "yes" ; then
16783 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
16797 CWARNFLAGS="$BASE_CFLAGS"
16798 if test "x$GCC" = xyes ; then
16799 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
16809 # Check whether --enable-strict-compilation was given.
16810 if test "${enable_strict_compilation+set}" = set; then :
16811 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
16833 xorg_testset_save_CFLAGS="$CFLAGS"
16835 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16838 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16839 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16840 $as_echo_n "(cached) " >&6
16842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16843 /* end confdefs.h. */
16846 if ac_fn_c_try_compile "$LINENO"; then :
16847 xorg_cv_compiler_flag_unknown_warning_option=yes
16849 xorg_cv_compiler_flag_unknown_warning_option=no
16851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16854 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16855 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16856 CFLAGS="$xorg_testset_save_CFLAGS"
16859 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16860 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16865 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16866 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16867 $as_echo_n "(cached) " >&6
16869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16870 /* end confdefs.h. */
16873 if ac_fn_c_try_compile "$LINENO"; then :
16874 xorg_cv_compiler_flag_unused_command_line_argument=yes
16876 xorg_cv_compiler_flag_unused_command_line_argument=no
16878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16881 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16882 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16883 CFLAGS="$xorg_testset_save_CFLAGS"
16888 if test $found = "no" ; then
16889 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16893 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16897 CFLAGS="$CFLAGS -pedantic"
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
16900 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
16901 cacheid=`$as_echo xorg_cv_cc_flag_-pedantic`
16902 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16903 $as_echo_n "(cached) " >&6
16905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16906 /* end confdefs.h. */
16916 if ac_fn_c_try_link "$LINENO"; then :
16917 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16919 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16921 rm -f core conftest.err conftest.$ac_objext \
16922 conftest$ac_exeext conftest.$ac_ext
16926 CFLAGS="$xorg_testset_save_CFLAGS"
16928 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16930 $as_echo "$supported" >&6; }
16931 if test "$supported" = "yes" ; then
16932 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
16949 xorg_testset_save_CFLAGS="$CFLAGS"
16951 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16954 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16955 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16956 $as_echo_n "(cached) " >&6
16958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16959 /* end confdefs.h. */
16962 if ac_fn_c_try_compile "$LINENO"; then :
16963 xorg_cv_compiler_flag_unknown_warning_option=yes
16965 xorg_cv_compiler_flag_unknown_warning_option=no
16967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16970 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16971 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16972 CFLAGS="$xorg_testset_save_CFLAGS"
16975 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16976 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16981 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16982 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16983 $as_echo_n "(cached) " >&6
16985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16986 /* end confdefs.h. */
16989 if ac_fn_c_try_compile "$LINENO"; then :
16990 xorg_cv_compiler_flag_unused_command_line_argument=yes
16992 xorg_cv_compiler_flag_unused_command_line_argument=no
16994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16997 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16998 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16999 CFLAGS="$xorg_testset_save_CFLAGS"
17004 if test $found = "no" ; then
17005 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17009 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17013 CFLAGS="$CFLAGS -Werror"
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17016 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17017 cacheid=`$as_echo xorg_cv_cc_flag_-Werror`
17018 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17019 $as_echo_n "(cached) " >&6
17021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17022 /* end confdefs.h. */
17032 if ac_fn_c_try_link "$LINENO"; then :
17033 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17035 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17037 rm -f core conftest.err conftest.$ac_objext \
17038 conftest$ac_exeext conftest.$ac_ext
17042 CFLAGS="$xorg_testset_save_CFLAGS"
17044 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17046 $as_echo "$supported" >&6; }
17047 if test "$supported" = "yes" ; then
17048 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17053 if test $found = "no" ; then
17054 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17058 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17062 CFLAGS="$CFLAGS -errwarn"
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17065 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17066 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn`
17067 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17068 $as_echo_n "(cached) " >&6
17070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17071 /* end confdefs.h. */
17081 if ac_fn_c_try_link "$LINENO"; then :
17082 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17084 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17086 rm -f core conftest.err conftest.$ac_objext \
17087 conftest$ac_exeext conftest.$ac_ext
17091 CFLAGS="$xorg_testset_save_CFLAGS"
17093 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17095 $as_echo "$supported" >&6; }
17096 if test "$supported" = "yes" ; then
17097 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17104 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17105 # activate it with -Werror, so we add it here explicitly.
17117 xorg_testset_save_CFLAGS="$CFLAGS"
17119 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
17120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
17122 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
17123 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
17124 $as_echo_n "(cached) " >&6
17126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17127 /* end confdefs.h. */
17130 if ac_fn_c_try_compile "$LINENO"; then :
17131 xorg_cv_compiler_flag_unknown_warning_option=yes
17133 xorg_cv_compiler_flag_unknown_warning_option=no
17135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
17138 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
17139 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
17140 CFLAGS="$xorg_testset_save_CFLAGS"
17143 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
17144 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
17149 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
17150 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
17151 $as_echo_n "(cached) " >&6
17153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17154 /* end confdefs.h. */
17157 if ac_fn_c_try_compile "$LINENO"; then :
17158 xorg_cv_compiler_flag_unused_command_line_argument=yes
17160 xorg_cv_compiler_flag_unused_command_line_argument=no
17162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17165 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17166 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17167 CFLAGS="$xorg_testset_save_CFLAGS"
17172 if test $found = "no" ; then
17173 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17177 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17181 CFLAGS="$CFLAGS -Werror=attributes"
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17184 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17185 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes`
17186 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17187 $as_echo_n "(cached) " >&6
17189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17190 /* end confdefs.h. */
17200 if ac_fn_c_try_link "$LINENO"; then :
17201 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17203 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17205 rm -f core conftest.err conftest.$ac_objext \
17206 conftest$ac_exeext conftest.$ac_ext
17210 CFLAGS="$xorg_testset_save_CFLAGS"
17212 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17214 $as_echo "$supported" >&6; }
17215 if test "$supported" = "yes" ; then
17216 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17223 if test "x$STRICT_COMPILE" = "xyes"; then
17224 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17225 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17233 cat >>confdefs.h <<_ACEOF
17234 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17237 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17238 if test "x$PVM" = "x"; then
17242 cat >>confdefs.h <<_ACEOF
17243 #define PACKAGE_VERSION_MINOR $PVM
17246 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17247 if test "x$PVP" = "x"; then
17251 cat >>confdefs.h <<_ACEOF
17252 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17257 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17258 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17259 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17260 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17265 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17266 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17267 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17268 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17269 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17276 if test x$APP_MAN_SUFFIX = x ; then
17279 if test x$APP_MAN_DIR = x ; then
17280 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17283 if test x$LIB_MAN_SUFFIX = x ; then
17286 if test x$LIB_MAN_DIR = x ; then
17287 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17290 if test x$FILE_MAN_SUFFIX = x ; then
17292 solaris*) FILE_MAN_SUFFIX=4 ;;
17293 *) FILE_MAN_SUFFIX=5 ;;
17296 if test x$FILE_MAN_DIR = x ; then
17297 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17300 if test x$MISC_MAN_SUFFIX = x ; then
17302 solaris*) MISC_MAN_SUFFIX=5 ;;
17303 *) MISC_MAN_SUFFIX=7 ;;
17306 if test x$MISC_MAN_DIR = x ; then
17307 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17310 if test x$DRIVER_MAN_SUFFIX = x ; then
17312 solaris*) DRIVER_MAN_SUFFIX=7 ;;
17313 *) DRIVER_MAN_SUFFIX=4 ;;
17316 if test x$DRIVER_MAN_DIR = x ; then
17317 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17320 if test x$ADMIN_MAN_SUFFIX = x ; then
17322 solaris*) ADMIN_MAN_SUFFIX=1m ;;
17323 *) ADMIN_MAN_SUFFIX=8 ;;
17326 if test x$ADMIN_MAN_DIR = x ; then
17327 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17344 XORG_MAN_PAGE="X Version 11"
17347 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17348 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17349 -e 's|__xservername__|Xorg|g' \
17350 -e 's|__xconfigfile__|xorg.conf|g' \
17351 -e 's|__projectroot__|\$(prefix)|g' \
17352 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17353 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17354 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17355 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17356 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17357 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17358 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17362 # Check whether --enable-silent-rules was given.
17363 if test "${enable_silent_rules+set}" = set; then :
17364 enableval=$enable_silent_rules;
17367 case $enable_silent_rules in
17368 yes) AM_DEFAULT_VERBOSITY=0;;
17369 no) AM_DEFAULT_VERBOSITY=1;;
17370 *) AM_DEFAULT_VERBOSITY=0;;
17376 # Check whether --enable-malloc0returnsnull was given.
17377 if test "${enable_malloc0returnsnull+set}" = set; then :
17378 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
17380 MALLOC_ZERO_RETURNS_NULL=auto
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
17385 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
17386 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
17387 if test "$cross_compiling" = yes; then :
17388 MALLOC_ZERO_RETURNS_NULL=yes
17390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17391 /* end confdefs.h. */
17393 #include <stdlib.h>
17399 char *m0, *r0, *c0, *p;
17404 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
17410 if ac_fn_c_try_run "$LINENO"; then :
17411 MALLOC_ZERO_RETURNS_NULL=yes
17413 MALLOC_ZERO_RETURNS_NULL=no
17415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17416 conftest.$ac_objext conftest.beam conftest.$ac_ext
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
17421 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
17423 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
17424 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
17425 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
17426 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
17428 MALLOC_ZERO_CFLAGS=""
17429 XMALLOC_ZERO_CFLAGS=""
17430 XTMALLOC_ZERO_CFLAGS=""
17438 # Check render configuration, strip extra digits from package version to
17439 # find the required protocol version
17440 if test "$VERSION" = "" ; then
17441 VERSION=$PACKAGE_VERSION;
17443 RENDER_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
17446 # Obtain compiler/linker options for depedencies
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RENDER" >&5
17450 $as_echo_n "checking for RENDER... " >&6; }
17452 if test -n "$RENDER_CFLAGS"; then
17453 pkg_cv_RENDER_CFLAGS="$RENDER_CFLAGS"
17454 elif test -n "$PKG_CONFIG"; then
17455 if test -n "$PKG_CONFIG" && \
17456 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 renderproto >= \$RENDER_VERSION\""; } >&5
17457 ($PKG_CONFIG --exists --print-errors "x11 renderproto >= $RENDER_VERSION") 2>&5
17459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17460 test $ac_status = 0; }; then
17461 pkg_cv_RENDER_CFLAGS=`$PKG_CONFIG --cflags "x11 renderproto >= $RENDER_VERSION" 2>/dev/null`
17468 if test -n "$RENDER_LIBS"; then
17469 pkg_cv_RENDER_LIBS="$RENDER_LIBS"
17470 elif test -n "$PKG_CONFIG"; then
17471 if test -n "$PKG_CONFIG" && \
17472 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 renderproto >= \$RENDER_VERSION\""; } >&5
17473 ($PKG_CONFIG --exists --print-errors "x11 renderproto >= $RENDER_VERSION") 2>&5
17475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17476 test $ac_status = 0; }; then
17477 pkg_cv_RENDER_LIBS=`$PKG_CONFIG --libs "x11 renderproto >= $RENDER_VERSION" 2>/dev/null`
17487 if test $pkg_failed = yes; then
17489 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17490 _pkg_short_errors_supported=yes
17492 _pkg_short_errors_supported=no
17494 if test $_pkg_short_errors_supported = yes; then
17495 RENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 renderproto >= $RENDER_VERSION" 2>&1`
17497 RENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 renderproto >= $RENDER_VERSION" 2>&1`
17499 # Put the nasty error message in config.log where it belongs
17500 echo "$RENDER_PKG_ERRORS" >&5
17502 as_fn_error $? "Package requirements (x11 renderproto >= $RENDER_VERSION) were not met:
17506 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17507 installed software in a non-standard prefix.
17509 Alternatively, you may set the environment variables RENDER_CFLAGS
17510 and RENDER_LIBS to avoid the need to call pkg-config.
17511 See the pkg-config man page for more details.
17513 elif test $pkg_failed = untried; then
17514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17516 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17517 is in your PATH or set the PKG_CONFIG environment variable to the full
17518 path to pkg-config.
17520 Alternatively, you may set the environment variables RENDER_CFLAGS
17521 and RENDER_LIBS to avoid the need to call pkg-config.
17522 See the pkg-config man page for more details.
17524 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17525 See \`config.log' for more details" "$LINENO" 5; }
17527 RENDER_CFLAGS=$pkg_cv_RENDER_CFLAGS
17528 RENDER_LIBS=$pkg_cv_RENDER_LIBS
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17530 $as_echo "yes" >&6; }
17534 ac_config_files="$ac_config_files Makefile src/Makefile xrender.pc"
17536 cat >confcache <<\_ACEOF
17537 # This file is a shell script that caches the results of configure
17538 # tests run on this system so they can be shared between configure
17539 # scripts and configure runs, see configure's option --config-cache.
17540 # It is not useful on other systems. If it contains results you don't
17541 # want to keep, you may remove or edit it.
17543 # config.status only pays attention to the cache file if you give it
17544 # the --recheck option to rerun configure.
17546 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17547 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17548 # following values.
17552 # The following way of writing the cache mishandles newlines in values,
17553 # but we know of no workaround that is simple, portable, and efficient.
17554 # So, we kill variables containing newlines.
17555 # Ultrix sh set writes to stderr and can't be redirected directly,
17556 # and sets the high bit in the cache file unless we assign to the vars.
17558 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17559 eval ac_val=\$$ac_var
17563 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17564 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17567 _ | IFS | as_nl) ;; #(
17568 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17569 *) { eval $ac_var=; unset $ac_var;} ;;
17575 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17576 *${as_nl}ac_space=\ *)
17577 # `set' does not quote correctly, so add quotes: double-quote
17578 # substitution turns \\\\ into \\, and sed turns \\ into \.
17581 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17584 # `set' quotes correctly as required by POSIX, so do not add quotes.
17585 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17594 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17596 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17598 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17599 if test -w "$cache_file"; then
17600 if test "x$cache_file" != "x/dev/null"; then
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17602 $as_echo "$as_me: updating cache $cache_file" >&6;}
17603 if test ! -f "$cache_file" || test -h "$cache_file"; then
17604 cat confcache >"$cache_file"
17606 case $cache_file in #(
17608 mv -f confcache "$cache_file"$$ &&
17609 mv -f "$cache_file"$$ "$cache_file" ;; #(
17611 mv -f confcache "$cache_file" ;;
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17617 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17622 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17623 # Let make expand exec_prefix.
17624 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17626 DEFS=-DHAVE_CONFIG_H
17631 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17632 # 1. Remove the extension, and $U if already installed.
17633 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17634 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17635 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17636 # will be set to the directory where LIBOBJS objects are built.
17637 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17638 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17640 LIBOBJS=$ac_libobjs
17642 LTLIBOBJS=$ac_ltlibobjs
17645 if test -n "$EXEEXT"; then
17647 am__EXEEXT_FALSE='#'
17649 am__EXEEXT_TRUE='#'
17653 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17654 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17657 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17658 as_fn_error $? "conditional \"AMDEP\" was never defined.
17659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17661 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17662 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17666 : "${CONFIG_STATUS=./config.status}"
17668 ac_clean_files_save=$ac_clean_files
17669 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17671 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17673 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17675 # Generated by $as_me.
17676 # Run this file to recreate the current configuration.
17677 # Compiler output produced by configure, useful for debugging
17678 # configure, is in config.log if it exists.
17681 ac_cs_recheck=false
17684 SHELL=\${CONFIG_SHELL-$SHELL}
17687 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17688 ## -------------------- ##
17689 ## M4sh Initialization. ##
17690 ## -------------------- ##
17692 # Be more Bourne compatible
17693 DUALCASE=1; export DUALCASE # for MKS sh
17694 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17697 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17698 # is contrary to our usage. Disable this feature.
17699 alias -g '${1+"$@"}'='"$@"'
17700 setopt NO_GLOB_SUBST
17702 case `(set -o) 2>/dev/null` in #(
17714 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17715 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17716 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17717 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17718 # Prefer a ksh shell builtin over an external printf program on Solaris,
17719 # but without wasting forks for bash or zsh.
17720 if test -z "$BASH_VERSION$ZSH_VERSION" \
17721 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17722 as_echo='print -r --'
17723 as_echo_n='print -rn --'
17724 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17725 as_echo='printf %s\n'
17726 as_echo_n='printf %s'
17728 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17729 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17730 as_echo_n='/usr/ucb/echo -n'
17732 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17733 as_echo_n_body='eval
17737 expr "X$arg" : "X\\(.*\\)$as_nl";
17738 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17740 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17742 export as_echo_n_body
17743 as_echo_n='sh -c $as_echo_n_body as_echo'
17745 export as_echo_body
17746 as_echo='sh -c $as_echo_body as_echo'
17749 # The user is always right.
17750 if test "${PATH_SEPARATOR+set}" != set; then
17752 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17753 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17760 # We need space, tab and new line, in precisely that order. Quoting is
17761 # there to prevent editors from complaining about space-tab.
17762 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17763 # splitting by setting IFS to empty value.)
17766 # Find who we are. Look in the path if we contain no directory separator.
17769 *[\\/]* ) as_myself=$0 ;;
17770 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17771 for as_dir in $PATH
17774 test -z "$as_dir" && as_dir=.
17775 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17781 # We did not find ourselves, most probably we were run as `sh COMMAND'
17782 # in which case we are not to be found in the path.
17783 if test "x$as_myself" = x; then
17786 if test ! -f "$as_myself"; then
17787 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17791 # Unset variables that we do not need and which cause bugs (e.g. in
17792 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17793 # suppresses any "Segmentation fault" message there. '((' could
17794 # trigger a bug in pdksh 5.2.14.
17795 for as_var in BASH_ENV ENV MAIL MAILPATH
17796 do eval test x\${$as_var+set} = xset \
17797 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17810 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17813 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17814 # ----------------------------------------
17815 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17816 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17817 # script with STATUS, using 1 if that was 0.
17820 as_status=$1; test $as_status -eq 0 && as_status=1
17822 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17823 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17825 $as_echo "$as_me: error: $2" >&2
17826 as_fn_exit $as_status
17830 # as_fn_set_status STATUS
17831 # -----------------------
17832 # Set $? to STATUS, without forking.
17833 as_fn_set_status ()
17836 } # as_fn_set_status
17838 # as_fn_exit STATUS
17839 # -----------------
17840 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17844 as_fn_set_status $1
17850 # Portably unset VAR.
17853 { eval $1=; unset $1;}
17855 as_unset=as_fn_unset
17856 # as_fn_append VAR VALUE
17857 # ----------------------
17858 # Append the text in VALUE to the end of the definition contained in VAR. Take
17859 # advantage of any shell optimizations that allow amortized linear growth over
17860 # repeated appends, instead of the typical quadratic growth present in naive
17862 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17863 eval 'as_fn_append ()
17874 # as_fn_arith ARG...
17875 # ------------------
17876 # Perform arithmetic evaluation on the ARGs, and store the result in the
17877 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17878 # must be portable across $(()) and expr.
17879 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17880 eval 'as_fn_arith ()
17887 as_val=`expr "$@" || test $? -eq 1`
17892 if expr a : '\(a\)' >/dev/null 2>&1 &&
17893 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17899 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17900 as_basename=basename
17905 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17911 as_me=`$as_basename -- "$0" ||
17912 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17913 X"$0" : 'X\(//\)$' \| \
17914 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17916 sed '/^.*\/\([^/][^/]*\)\/*$/{
17930 # Avoid depending upon Character Ranges.
17931 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17932 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17933 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17934 as_cr_digits='0123456789'
17935 as_cr_alnum=$as_cr_Letters$as_cr_digits
17937 ECHO_C= ECHO_N= ECHO_T=
17938 case `echo -n x` in #(((((
17940 case `echo 'xy\c'` in
17941 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17943 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17950 rm -f conf$$ conf$$.exe conf$$.file
17951 if test -d conf$$.dir; then
17952 rm -f conf$$.dir/conf$$.file
17955 mkdir conf$$.dir 2>/dev/null
17957 if (echo >conf$$.file) 2>/dev/null; then
17958 if ln -s conf$$.file conf$$ 2>/dev/null; then
17960 # ... but there are two gotchas:
17961 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17962 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17963 # In both cases, we have to default to `cp -p'.
17964 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17966 elif ln conf$$.file conf$$ 2>/dev/null; then
17974 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17975 rmdir conf$$.dir 2>/dev/null
17980 # Create "$as_dir" as a directory, including parents if necessary.
17985 -*) as_dir=./$as_dir;;
17987 test -d "$as_dir" || eval $as_mkdir_p || {
17991 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17992 *) as_qdir=$as_dir;;
17994 as_dirs="'$as_qdir' $as_dirs"
17995 as_dir=`$as_dirname -- "$as_dir" ||
17996 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17997 X"$as_dir" : 'X\(//\)[^/]' \| \
17998 X"$as_dir" : 'X\(//\)$' \| \
17999 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18000 $as_echo X"$as_dir" |
18001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18005 /^X\(\/\/\)[^/].*/{
18018 test -d "$as_dir" && break
18020 test -z "$as_dirs" || eval "mkdir $as_dirs"
18021 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18025 if mkdir -p . 2>/dev/null; then
18026 as_mkdir_p='mkdir -p "$as_dir"'
18028 test -d ./-p && rmdir ./-p
18032 if test -x / >/dev/null 2>&1; then
18033 as_test_x='test -x'
18035 if ls -dL / >/dev/null 2>&1; then
18042 if test -d "$1"; then
18048 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18049 ???[sx]*):;;*)false;;esac;fi
18053 as_executable_p=$as_test_x
18055 # Sed expression to map a string onto a valid CPP name.
18056 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18058 # Sed expression to map a string onto a valid variable name.
18059 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18063 ## ----------------------------------- ##
18064 ## Main body of $CONFIG_STATUS script. ##
18065 ## ----------------------------------- ##
18067 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18070 # Save the log message, to keep $0 and so on meaningful, and to
18071 # report actual input values of CONFIG_FILES etc. instead of their
18072 # values after options handling.
18074 This file was extended by libXrender $as_me 0.9.7, which was
18075 generated by GNU Autoconf 2.68. Invocation command line was
18077 CONFIG_FILES = $CONFIG_FILES
18078 CONFIG_HEADERS = $CONFIG_HEADERS
18079 CONFIG_LINKS = $CONFIG_LINKS
18080 CONFIG_COMMANDS = $CONFIG_COMMANDS
18083 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18088 case $ac_config_files in *"
18089 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18092 case $ac_config_headers in *"
18093 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18098 # Files that config.status was made for.
18099 config_files="$ac_config_files"
18100 config_headers="$ac_config_headers"
18101 config_commands="$ac_config_commands"
18105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18107 \`$as_me' instantiates files and other configuration actions
18108 from templates according to the current configuration. Unless the files
18109 and actions are specified as TAGs, all are instantiated by default.
18111 Usage: $0 [OPTION]... [TAG]...
18113 -h, --help print this help, then exit
18114 -V, --version print version number and configuration settings, then exit
18115 --config print configuration, then exit
18116 -q, --quiet, --silent
18117 do not print progress messages
18118 -d, --debug don't remove temporary files
18119 --recheck update $as_me by reconfiguring in the same conditions
18120 --file=FILE[:TEMPLATE]
18121 instantiate the configuration file FILE
18122 --header=FILE[:TEMPLATE]
18123 instantiate the configuration header FILE
18125 Configuration files:
18128 Configuration headers:
18131 Configuration commands:
18134 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18138 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18140 libXrender config.status 0.9.7
18141 configured by $0, generated by GNU Autoconf 2.68,
18142 with options \\"\$ac_cs_config\\"
18144 Copyright (C) 2010 Free Software Foundation, Inc.
18145 This config.status script is free software; the Free Software Foundation
18146 gives unlimited permission to copy, distribute and modify it."
18153 test -n "\$AWK" || AWK=awk
18156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18157 # The default lists apply if the user does not specify any file.
18163 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18164 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18168 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18180 # Handling of the options.
18181 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18183 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18184 $as_echo "$ac_cs_version"; exit ;;
18185 --config | --confi | --conf | --con | --co | --c )
18186 $as_echo "$ac_cs_config"; exit ;;
18187 --debug | --debu | --deb | --de | --d | -d )
18189 --file | --fil | --fi | --f )
18192 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18193 '') as_fn_error $? "missing file argument" ;;
18195 as_fn_append CONFIG_FILES " '$ac_optarg'"
18196 ac_need_defaults=false;;
18197 --header | --heade | --head | --hea )
18200 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18202 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18203 ac_need_defaults=false;;
18205 # Conflict between --help and --header
18206 as_fn_error $? "ambiguous option: \`$1'
18207 Try \`$0 --help' for more information.";;
18208 --help | --hel | -h )
18209 $as_echo "$ac_cs_usage"; exit ;;
18210 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18211 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18214 # This is an error.
18215 -*) as_fn_error $? "unrecognized option: \`$1'
18216 Try \`$0 --help' for more information." ;;
18218 *) as_fn_append ac_config_targets " $1"
18219 ac_need_defaults=false ;;
18225 ac_configure_extra_args=
18227 if $ac_cs_silent; then
18229 ac_configure_extra_args="$ac_configure_extra_args --silent"
18233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18234 if \$ac_cs_recheck; then
18235 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18237 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18238 CONFIG_SHELL='$SHELL'
18239 export CONFIG_SHELL
18244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18248 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18249 ## Running $as_me. ##
18255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18259 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18262 # The HP-UX ksh and POSIX shell print the target directory to stdout
18263 # if CDPATH is set.
18264 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18266 sed_quote_subst='$sed_quote_subst'
18267 double_quote_subst='$double_quote_subst'
18268 delay_variable_subst='$delay_variable_subst'
18269 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18270 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18271 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18272 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18273 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18274 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18275 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18276 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18277 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18278 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18279 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18280 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18281 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18282 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18283 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18284 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18285 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18286 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18287 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18288 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18289 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18290 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18291 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18292 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18293 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18294 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18295 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18296 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18297 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18298 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18299 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18300 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18301 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18302 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18303 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18304 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18305 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18306 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18307 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18308 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18309 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18310 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18311 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18312 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18313 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18314 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18315 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18316 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18317 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18318 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18319 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18320 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18321 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18322 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18323 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18324 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"`'
18325 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18326 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18327 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18328 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18329 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18330 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18331 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18332 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18333 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18334 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18335 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18336 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18337 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18338 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18339 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18340 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18341 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18342 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18343 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18344 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18345 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18346 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18347 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18348 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18349 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18350 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18351 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18352 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18353 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18354 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18355 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18356 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18357 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18358 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18359 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18360 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18361 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18362 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18363 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18364 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18365 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18366 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18367 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18368 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18369 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18370 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18371 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18372 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18373 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18374 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18375 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18376 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18377 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18378 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18379 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18380 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18381 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18382 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18383 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18384 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18385 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18386 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18387 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18388 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18389 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18390 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18391 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18392 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18393 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18394 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18395 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18396 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18397 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18398 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18401 LTCFLAGS='$LTCFLAGS'
18402 compiler='$compiler_DEFAULT'
18404 # A function that is used when there is no print builtin or printf.
18405 func_fallback_echo ()
18407 eval 'cat <<_LTECHO_EOF
18412 # Quote evaled strings.
18426 deplibs_check_method \
18431 sharedlib_from_linklib_cmd \
18434 archiver_list_spec \
18440 lt_cv_sys_global_symbol_pipe \
18441 lt_cv_sys_global_symbol_to_cdecl \
18442 lt_cv_sys_global_symbol_to_c_name_address \
18443 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18444 nm_file_list_spec \
18445 lt_prog_compiler_no_builtin_flag \
18446 lt_prog_compiler_pic \
18447 lt_prog_compiler_wl \
18448 lt_prog_compiler_static \
18449 lt_cv_prog_compiler_c_o \
18458 export_dynamic_flag_spec \
18459 whole_archive_flag_spec \
18460 compiler_needs_object \
18462 allow_undefined_flag \
18463 no_undefined_flag \
18464 hardcode_libdir_flag_spec \
18465 hardcode_libdir_flag_spec_ld \
18466 hardcode_libdir_separator \
18470 variables_saved_for_relink \
18472 library_names_spec \
18474 install_override_mode \
18478 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18479 *[\\\\\\\`\\"\\\$]*)
18480 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18483 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18488 # Double-quote double-evaled strings.
18489 for var in reload_cmds \
18490 old_postinstall_cmds \
18491 old_postuninstall_cmds \
18493 extract_expsyms_cmds \
18494 old_archive_from_new_cmds \
18495 old_archive_from_expsyms_cmds \
18497 archive_expsym_cmds \
18499 module_expsym_cmds \
18500 export_symbols_cmds \
18504 postuninstall_cmds \
18506 sys_lib_search_path_spec \
18507 sys_lib_dlsearch_path_spec; do
18508 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18509 *[\\\\\\\`\\"\\\$]*)
18510 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18513 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18518 ac_aux_dir='$ac_aux_dir'
18519 xsi_shell='$xsi_shell'
18520 lt_shell_append='$lt_shell_append'
18522 # See if we are running on zsh, and set the options which allow our
18523 # commands through without removal of \ escapes INIT.
18524 if test -n "\${ZSH_VERSION+set}" ; then
18525 setopt NO_GLOB_SUBST
18531 TIMESTAMP='$TIMESTAMP'
18540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18542 # Handling of arguments.
18543 for ac_config_target in $ac_config_targets
18545 case $ac_config_target in
18546 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18547 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18548 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18549 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18550 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18551 "xrender.pc") CONFIG_FILES="$CONFIG_FILES xrender.pc" ;;
18553 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18558 # If the user did not use the arguments to specify the items to instantiate,
18559 # then the envvar interface is used. Set only those that are not.
18560 # We use the long form for the default assignment because of an extremely
18561 # bizarre bug on SunOS 4.1.3.
18562 if $ac_need_defaults; then
18563 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18564 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18565 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18568 # Have a temporary directory for convenience. Make it in the build tree
18569 # simply because there is no reason against having it here, and in addition,
18570 # creating and moving files from /tmp can sometimes cause problems.
18571 # Hook for its removal unless debugging.
18572 # Note that there is a small window in which the directory will not be cleaned:
18573 # after its creation but before its name has been assigned to `$tmp'.
18577 trap 'exit_status=$?
18578 : "${ac_tmp:=$tmp}"
18579 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18581 trap 'as_fn_exit 1' 1 2 13 15
18583 # Create a (secure) tmp directory for tmp files.
18586 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18590 tmp=./conf$$-$RANDOM
18591 (umask 077 && mkdir "$tmp")
18592 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18595 # Set up the scripts for CONFIG_FILES section.
18596 # No need to generate them if there are no CONFIG_FILES.
18597 # This happens for instance with `./config.status config.h'.
18598 if test -n "$CONFIG_FILES"; then
18601 ac_cr=`echo X | tr X '\015'`
18602 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18603 # But we know of no other shell where ac_cr would be empty at this
18604 # point, so we can use a bashism as a fallback.
18605 if test "x$ac_cr" = x; then
18606 eval ac_cr=\$\'\\r\'
18608 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18609 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18612 ac_cs_awk_cr=$ac_cr
18615 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18620 echo "cat >conf$$subs.awk <<_ACEOF" &&
18621 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18623 } >conf$$subs.sh ||
18624 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18625 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18627 for ac_last_try in false false false false false :; do
18628 . ./conf$$subs.sh ||
18629 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18631 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18632 if test $ac_delim_n = $ac_delim_num; then
18634 elif $ac_last_try; then
18635 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18637 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18640 rm -f conf$$subs.sh
18642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18643 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18647 s/^/S["/; s/!.*/"]=/
18657 s/\(.\{148\}\)..*/\1/
18659 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18664 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18671 s/\(.\{148\}\)..*/\1/
18673 s/["\\]/\\&/g; s/^/"/; s/$/"/
18677 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18682 ' <conf$$subs.awk | sed '
18687 ' >>$CONFIG_STATUS || ac_write_fail=1
18688 rm -f conf$$subs.awk
18689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18691 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18692 for (key in S) S_is_set[key] = 1
18698 nfields = split(line, field, "@")
18700 len = length(field[1])
18701 for (i = 2; i < nfields; i++) {
18703 keylen = length(key)
18704 if (S_is_set[key]) {
18706 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18707 len += length(value) + length(field[++i])
18718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18719 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18720 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18723 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18724 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18727 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18728 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18729 # trailing colons and then remove the whole line if VPATH becomes empty
18730 # (actually we leave an empty line to preserve line numbers).
18731 if test "x$srcdir" = x.; then
18732 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18751 fi # test -n "$CONFIG_FILES"
18753 # Set up the scripts for CONFIG_HEADERS section.
18754 # No need to generate them if there are no CONFIG_HEADERS.
18755 # This happens for instance with `./config.status Makefile'.
18756 if test -n "$CONFIG_HEADERS"; then
18757 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18761 # Transform confdefs.h into an awk script `defines.awk', embedded as
18762 # here-document in config.status, that substitutes the proper values into
18763 # config.h.in to produce config.h.
18765 # Create a delimiter string that does not exist in confdefs.h, to ease
18766 # handling of long lines.
18768 for ac_last_try in false false :; do
18769 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18770 if test -z "$ac_tt"; then
18772 elif $ac_last_try; then
18773 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18775 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18779 # For the awk script, D is an array of macro values keyed by name,
18780 # likewise P contains macro parameters if any. Preserve backslash
18781 # newline sequences.
18783 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18785 s/.\{148\}/&'"$ac_delim"'/g
18788 s/^[ ]*#[ ]*define[ ][ ]*/ /
18795 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18797 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18801 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18802 D["\1"]=" \3\\\\\\n"\\/p
18804 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18809 s/.\{148\}/&'"$ac_delim"'/g
18814 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18817 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18819 ' <confdefs.h | sed '
18820 s/'"$ac_delim"'/"\\\
18821 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18824 for (key in D) D_is_set[key] = 1
18827 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18829 split(line, arg, " ")
18830 if (arg[1] == "#") {
18834 defundef = substr(arg[1], 2)
18837 split(mac1, mac2, "(") #)
18839 prefix = substr(line, 1, index(line, defundef) - 1)
18840 if (D_is_set[macro]) {
18841 # Preserve the white space surrounding the "#".
18842 print prefix "define", macro P[macro] D[macro]
18845 # Replace #undef with comments. This is necessary, for example,
18846 # in the case of _POSIX_SOURCE, which is predefined and required
18847 # on some systems where configure will not decide to define it.
18848 if (defundef == "undef") {
18849 print "/*", prefix defundef, macro, "*/"
18857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18858 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18859 fi # test -n "$CONFIG_HEADERS"
18862 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18867 :[FHLC]) ac_mode=$ac_tag; continue;;
18869 case $ac_mode$ac_tag in
18871 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18872 :[FH]-) ac_tag=-:-;;
18873 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18890 -) ac_f="$ac_tmp/stdin";;
18891 *) # Look for the file first in the build tree, then in the source tree
18892 # (if the path is not absolute). The absolute path cannot be DOS-style,
18893 # because $ac_f cannot contain `:'.
18897 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18899 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18901 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18902 as_fn_append ac_file_inputs " '$ac_f'"
18905 # Let's still pretend it is `configure' which instantiates (i.e., don't
18906 # use $as_me), people would be surprised to read:
18907 # /* config.h. Generated by config.status. */
18908 configure_input='Generated from '`
18909 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18911 if test x"$ac_file" != x-; then
18912 configure_input="$ac_file. $configure_input"
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18914 $as_echo "$as_me: creating $ac_file" >&6;}
18916 # Neutralize special characters interpreted by sed in replacement strings.
18917 case $configure_input in #(
18918 *\&* | *\|* | *\\* )
18919 ac_sed_conf_input=`$as_echo "$configure_input" |
18920 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18921 *) ac_sed_conf_input=$configure_input;;
18925 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18926 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18931 ac_dir=`$as_dirname -- "$ac_file" ||
18932 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18933 X"$ac_file" : 'X\(//\)[^/]' \| \
18934 X"$ac_file" : 'X\(//\)$' \| \
18935 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18936 $as_echo X"$ac_file" |
18937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18941 /^X\(\/\/\)[^/].*/{
18954 as_dir="$ac_dir"; as_fn_mkdir_p
18958 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18960 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18961 # A ".." for each directory in $ac_dir_suffix.
18962 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18963 case $ac_top_builddir_sub in
18964 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18965 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18968 ac_abs_top_builddir=$ac_pwd
18969 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18970 # for backward compatibility:
18971 ac_top_builddir=$ac_top_build_prefix
18974 .) # We are building in place.
18976 ac_top_srcdir=$ac_top_builddir_sub
18977 ac_abs_top_srcdir=$ac_pwd ;;
18978 [\\/]* | ?:[\\/]* ) # Absolute name.
18979 ac_srcdir=$srcdir$ac_dir_suffix;
18980 ac_top_srcdir=$srcdir
18981 ac_abs_top_srcdir=$srcdir ;;
18982 *) # Relative name.
18983 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18984 ac_top_srcdir=$ac_top_build_prefix$srcdir
18985 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18987 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18997 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18998 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19000 ac_MKDIR_P=$MKDIR_P
19002 [\\/$]* | ?:[\\/]* ) ;;
19003 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19008 # If the template does not know about datarootdir, expand it.
19009 # FIXME: This hack should be removed a few years after 2.60.
19010 ac_datarootdir_hack=; ac_datarootdir_seen=
19021 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19022 *datarootdir*) ac_datarootdir_seen=yes;;
19023 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19025 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19028 ac_datarootdir_hack='
19029 s&@datadir@&$datadir&g
19030 s&@docdir@&$docdir&g
19031 s&@infodir@&$infodir&g
19032 s&@localedir@&$localedir&g
19033 s&@mandir@&$mandir&g
19034 s&\\\${datarootdir}&$datarootdir&g' ;;
19038 # Neutralize VPATH when `$srcdir' = `.'.
19039 # Shell code in configure.ac might set extrasub.
19040 # FIXME: do we really want to maintain this feature?
19041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19042 ac_sed_extra="$ac_vpsub
19045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19047 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19048 s|@configure_input@|$ac_sed_conf_input|;t t
19049 s&@top_builddir@&$ac_top_builddir_sub&;t t
19050 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19051 s&@srcdir@&$ac_srcdir&;t t
19052 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19053 s&@top_srcdir@&$ac_top_srcdir&;t t
19054 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19055 s&@builddir@&$ac_builddir&;t t
19056 s&@abs_builddir@&$ac_abs_builddir&;t t
19057 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19058 s&@INSTALL@&$ac_INSTALL&;t t
19059 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19060 $ac_datarootdir_hack
19062 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19063 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19065 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19066 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19067 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19068 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19070 which seems to be undefined. Please make sure it is defined" >&5
19071 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19072 which seems to be undefined. Please make sure it is defined" >&2;}
19074 rm -f "$ac_tmp/stdin"
19076 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19077 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19079 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19085 if test x"$ac_file" != x-; then
19087 $as_echo "/* $configure_input */" \
19088 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19089 } >"$ac_tmp/config.h" \
19090 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19091 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19093 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19096 mv "$ac_tmp/config.h" "$ac_file" \
19097 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19100 $as_echo "/* $configure_input */" \
19101 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19102 || as_fn_error $? "could not create -" "$LINENO" 5
19104 # Compute "$ac_file"'s index in $config_headers.
19107 for _am_header in $config_headers :; do
19108 case $_am_header in
19109 $_am_arg | $_am_arg:* )
19112 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19115 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19116 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19117 X"$_am_arg" : 'X\(//\)[^/]' \| \
19118 X"$_am_arg" : 'X\(//\)$' \| \
19119 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19120 $as_echo X"$_am_arg" |
19121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19125 /^X\(\/\/\)[^/].*/{
19137 s/.*/./; q'`/stamp-h$_am_stamp_count
19140 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19141 $as_echo "$as_me: executing $ac_file commands" >&6;}
19146 case $ac_file$ac_mode in
19147 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19148 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19149 # are listed without --file. Let's play safe and only enable the eval
19150 # if we detect the quoting.
19151 case $CONFIG_FILES in
19152 *\'*) eval set x "$CONFIG_FILES" ;;
19153 *) set x $CONFIG_FILES ;;
19158 # Strip MF so we end up with the name of the file.
19159 mf=`echo "$mf" | sed -e 's/:.*$//'`
19160 # Check whether this is an Automake generated Makefile or not.
19161 # We used to match only the files named `Makefile.in', but
19162 # some people rename them; so instead we look at the file content.
19163 # Grep'ing the first line is not enough: some people post-process
19164 # each Makefile.in and add a new line on top of each file to say so.
19165 # Grep'ing the whole file is not good either: AIX grep has a line
19166 # limit of 2048, but all sed's we know have understand at least 4000.
19167 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19168 dirpart=`$as_dirname -- "$mf" ||
19169 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19170 X"$mf" : 'X\(//\)[^/]' \| \
19171 X"$mf" : 'X\(//\)$' \| \
19172 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19178 /^X\(\/\/\)[^/].*/{
19194 # Extract the definition of DEPDIR, am__include, and am__quote
19195 # from the Makefile without running `make'.
19196 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19197 test -z "$DEPDIR" && continue
19198 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19199 test -z "am__include" && continue
19200 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19201 # When using ansi2knr, U may be empty or an underscore; expand it
19202 U=`sed -n 's/^U = //p' < "$mf"`
19203 # Find all dependency output files, they are included files with
19204 # $(DEPDIR) in their names. We invoke sed twice because it is the
19205 # simplest approach to changing $(DEPDIR) to its actual value in the
19207 for file in `sed -n "
19208 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19209 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19210 # Make sure the directory exists.
19211 test -f "$dirpart/$file" && continue
19212 fdir=`$as_dirname -- "$file" ||
19213 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19214 X"$file" : 'X\(//\)[^/]' \| \
19215 X"$file" : 'X\(//\)$' \| \
19216 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19217 $as_echo X"$file" |
19218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19222 /^X\(\/\/\)[^/].*/{
19235 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19236 # echo "creating $dirpart/$file"
19237 echo '# dummy' > "$dirpart/$file"
19244 # See if we are running on zsh, and set the options which allow our
19245 # commands through without removal of \ escapes.
19246 if test -n "${ZSH_VERSION+set}" ; then
19247 setopt NO_GLOB_SUBST
19250 cfgfile="${ofile}T"
19251 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19254 cat <<_LT_EOF >> "$cfgfile"
19257 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19258 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19259 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19260 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19262 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19263 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19265 # Written by Gordon Matzigkeit, 1996
19267 # This file is part of GNU Libtool.
19269 # GNU Libtool is free software; you can redistribute it and/or
19270 # modify it under the terms of the GNU General Public License as
19271 # published by the Free Software Foundation; either version 2 of
19272 # the License, or (at your option) any later version.
19274 # As a special exception to the GNU General Public License,
19275 # if you distribute this file as part of a program or library that
19276 # is built using GNU Libtool, you may include this file under the
19277 # same distribution terms that you use for the rest of that program.
19279 # GNU Libtool is distributed in the hope that it will be useful,
19280 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19281 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19282 # GNU General Public License for more details.
19284 # You should have received a copy of the GNU General Public License
19285 # along with GNU Libtool; see the file COPYING. If not, a copy
19286 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19287 # obtained by writing to the Free Software Foundation, Inc.,
19288 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19291 # The names of the tagged configurations supported by this script.
19294 # ### BEGIN LIBTOOL CONFIG
19296 # Which release of libtool.m4 was used?
19297 macro_version=$macro_version
19298 macro_revision=$macro_revision
19300 # Whether or not to build shared libraries.
19301 build_libtool_libs=$enable_shared
19303 # Whether or not to build static libraries.
19304 build_old_libs=$enable_static
19306 # What type of objects to build.
19309 # Whether or not to optimize for fast installation.
19310 fast_install=$enable_fast_install
19312 # Shell to use when invoking shell scripts.
19315 # An echo program that protects backslashes.
19319 host_alias=$host_alias
19323 # The build system.
19324 build_alias=$build_alias
19328 # A sed program that does not truncate output.
19331 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19332 Xsed="\$SED -e 1s/^X//"
19334 # A grep program that handles long lines.
19340 # A literal string matcher.
19343 # A BSD- or MS-compatible name lister.
19346 # Whether we need soft or hard links.
19349 # What is the maximum length of a command?
19350 max_cmd_len=$max_cmd_len
19352 # Object file suffix (normally "o").
19355 # Executable file suffix (normally "").
19358 # whether the shell understands "unset".
19361 # turn spaces into newlines.
19364 # turn newlines into spaces.
19367 # convert \$build file names to \$host format.
19368 to_host_file_cmd=$lt_cv_to_host_file_cmd
19370 # convert \$build files to toolchain format.
19371 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19373 # An object symbol dumper.
19374 OBJDUMP=$lt_OBJDUMP
19376 # Method to check whether dependent libraries are shared objects.
19377 deplibs_check_method=$lt_deplibs_check_method
19379 # Command to use when deplibs_check_method = "file_magic".
19380 file_magic_cmd=$lt_file_magic_cmd
19382 # How to find potential files when deplibs_check_method = "file_magic".
19383 file_magic_glob=$lt_file_magic_glob
19385 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19386 want_nocaseglob=$lt_want_nocaseglob
19388 # DLL creation program.
19389 DLLTOOL=$lt_DLLTOOL
19391 # Command to associate shared and link libraries.
19392 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19397 # Flags to create an archive.
19398 AR_FLAGS=$lt_AR_FLAGS
19400 # How to feed a file listing to the archiver.
19401 archiver_list_spec=$lt_archiver_list_spec
19403 # A symbol stripping program.
19406 # Commands used to install an old-style archive.
19408 old_postinstall_cmds=$lt_old_postinstall_cmds
19409 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19411 # Whether to use a lock for old archive extraction.
19412 lock_old_archive_extraction=$lock_old_archive_extraction
19417 # LTCC compiler flags.
19418 LTCFLAGS=$lt_CFLAGS
19420 # Take the output of nm and produce a listing of raw symbols and C names.
19421 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19423 # Transform the output of nm in a proper C declaration.
19424 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19426 # Transform the output of nm in a C name address pair.
19427 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19429 # Transform the output of nm in a C name address pair when lib prefix is needed.
19430 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19432 # Specify filename containing input files for \$NM.
19433 nm_file_list_spec=$lt_nm_file_list_spec
19435 # The root where to search for dependent libraries,and in which our libraries should be installed.
19436 lt_sysroot=$lt_sysroot
19438 # The name of the directory that contains temporary libtool files.
19441 # Used to examine libraries when file_magic_cmd begins with "file".
19442 MAGIC_CMD=$MAGIC_CMD
19444 # Must we lock files when doing compilation?
19445 need_locks=$lt_need_locks
19448 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19450 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19451 DSYMUTIL=$lt_DSYMUTIL
19453 # Tool to change global to local symbols on Mac OS X.
19456 # Tool to manipulate fat objects and archives on Mac OS X.
19459 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19462 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19463 OTOOL64=$lt_OTOOL64
19465 # Old archive suffix (normally "a").
19468 # Shared library suffix (normally ".so").
19469 shrext_cmds=$lt_shrext_cmds
19471 # The commands to extract the exported symbol list from a shared archive.
19472 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19474 # Variables whose values should be saved in libtool wrapper scripts and
19475 # restored at link time.
19476 variables_saved_for_relink=$lt_variables_saved_for_relink
19478 # Do we need the "lib" prefix for modules?
19479 need_lib_prefix=$need_lib_prefix
19481 # Do we need a version for libraries?
19482 need_version=$need_version
19484 # Library versioning type.
19485 version_type=$version_type
19487 # Shared library runtime path variable.
19488 runpath_var=$runpath_var
19490 # Shared library path variable.
19491 shlibpath_var=$shlibpath_var
19493 # Is shlibpath searched before the hard-coded library search path?
19494 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19496 # Format of library name prefix.
19497 libname_spec=$lt_libname_spec
19499 # List of archive names. First name is the real one, the rest are links.
19500 # The last name is the one that the linker finds with -lNAME
19501 library_names_spec=$lt_library_names_spec
19503 # The coded name of the library, if different from the real name.
19504 soname_spec=$lt_soname_spec
19506 # Permission mode override for installation of shared libraries.
19507 install_override_mode=$lt_install_override_mode
19509 # Command to use after installation of a shared archive.
19510 postinstall_cmds=$lt_postinstall_cmds
19512 # Command to use after uninstallation of a shared archive.
19513 postuninstall_cmds=$lt_postuninstall_cmds
19515 # Commands used to finish a libtool library installation in a directory.
19516 finish_cmds=$lt_finish_cmds
19518 # As "finish_cmds", except a single script fragment to be evaled but
19520 finish_eval=$lt_finish_eval
19522 # Whether we should hardcode library paths into libraries.
19523 hardcode_into_libs=$hardcode_into_libs
19525 # Compile-time system search path for libraries.
19526 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19528 # Run-time system search path for libraries.
19529 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19531 # Whether dlopen is supported.
19532 dlopen_support=$enable_dlopen
19534 # Whether dlopen of programs is supported.
19535 dlopen_self=$enable_dlopen_self
19537 # Whether dlopen of statically linked programs is supported.
19538 dlopen_self_static=$enable_dlopen_self_static
19540 # Commands to strip libraries.
19541 old_striplib=$lt_old_striplib
19542 striplib=$lt_striplib
19545 # The linker used to build libraries.
19548 # How to create reloadable object files.
19549 reload_flag=$lt_reload_flag
19550 reload_cmds=$lt_reload_cmds
19552 # Commands used to build an old-style archive.
19553 old_archive_cmds=$lt_old_archive_cmds
19555 # A language specific compiler.
19558 # Is the compiler the GNU compiler?
19561 # Compiler flag to turn off builtin functions.
19562 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19564 # Additional compiler flags for building library objects.
19565 pic_flag=$lt_lt_prog_compiler_pic
19567 # How to pass a linker flag through the compiler.
19568 wl=$lt_lt_prog_compiler_wl
19570 # Compiler flag to prevent dynamic linking.
19571 link_static_flag=$lt_lt_prog_compiler_static
19573 # Does compiler simultaneously support -c and -o options?
19574 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19576 # Whether or not to add -lc for building shared libraries.
19577 build_libtool_need_lc=$archive_cmds_need_lc
19579 # Whether or not to disallow shared libs when runtime libs are static.
19580 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19582 # Compiler flag to allow reflexive dlopens.
19583 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19585 # Compiler flag to generate shared objects directly from archives.
19586 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19588 # Whether the compiler copes with passing no objects directly.
19589 compiler_needs_object=$lt_compiler_needs_object
19591 # Create an old-style archive from a shared archive.
19592 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19594 # Create a temporary old-style archive to link instead of a shared archive.
19595 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19597 # Commands used to build a shared archive.
19598 archive_cmds=$lt_archive_cmds
19599 archive_expsym_cmds=$lt_archive_expsym_cmds
19601 # Commands used to build a loadable module if different from building
19602 # a shared archive.
19603 module_cmds=$lt_module_cmds
19604 module_expsym_cmds=$lt_module_expsym_cmds
19606 # Whether we are building with GNU ld or not.
19607 with_gnu_ld=$lt_with_gnu_ld
19609 # Flag that allows shared libraries with undefined symbols to be built.
19610 allow_undefined_flag=$lt_allow_undefined_flag
19612 # Flag that enforces no undefined symbols.
19613 no_undefined_flag=$lt_no_undefined_flag
19615 # Flag to hardcode \$libdir into a binary during linking.
19616 # This must work even if \$libdir does not exist
19617 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19619 # If ld is used when linking, flag to hardcode \$libdir into a binary
19620 # during linking. This must work even if \$libdir does not exist.
19621 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19623 # Whether we need a single "-rpath" flag with a separated argument.
19624 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19626 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19627 # DIR into the resulting binary.
19628 hardcode_direct=$hardcode_direct
19630 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19631 # DIR into the resulting binary and the resulting library dependency is
19632 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19633 # library is relocated.
19634 hardcode_direct_absolute=$hardcode_direct_absolute
19636 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19637 # into the resulting binary.
19638 hardcode_minus_L=$hardcode_minus_L
19640 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19641 # into the resulting binary.
19642 hardcode_shlibpath_var=$hardcode_shlibpath_var
19644 # Set to "yes" if building a shared library automatically hardcodes DIR
19645 # into the library and all subsequent libraries and executables linked
19647 hardcode_automatic=$hardcode_automatic
19649 # Set to yes if linker adds runtime paths of dependent libraries
19650 # to runtime path list.
19651 inherit_rpath=$inherit_rpath
19653 # Whether libtool must link a program against all its dependency libraries.
19654 link_all_deplibs=$link_all_deplibs
19656 # Set to "yes" if exported symbols are required.
19657 always_export_symbols=$always_export_symbols
19659 # The commands to list exported symbols.
19660 export_symbols_cmds=$lt_export_symbols_cmds
19662 # Symbols that should not be listed in the preloaded symbols.
19663 exclude_expsyms=$lt_exclude_expsyms
19665 # Symbols that must always be exported.
19666 include_expsyms=$lt_include_expsyms
19668 # Commands necessary for linking programs (against libraries) with templates.
19669 prelink_cmds=$lt_prelink_cmds
19671 # Commands necessary for finishing linking programs.
19672 postlink_cmds=$lt_postlink_cmds
19674 # Specify filename containing input files.
19675 file_list_spec=$lt_file_list_spec
19677 # How to hardcode a shared library path into an executable.
19678 hardcode_action=$hardcode_action
19680 # ### END LIBTOOL CONFIG
19686 cat <<\_LT_EOF >> "$cfgfile"
19687 # AIX sometimes has problems with the GCC collect2 program. For some
19688 # reason, if we set the COLLECT_NAMES environment variable, the problems
19689 # vanish in a puff of smoke.
19690 if test "X${COLLECT_NAMES+set}" != Xset; then
19692 export COLLECT_NAMES
19699 ltmain="$ac_aux_dir/ltmain.sh"
19702 # We use sed instead of cat because bash on DJGPP gets confused if
19703 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19704 # text mode, it properly converts lines to CR/LF. This bash problem
19705 # is reportedly fixed, but why not run on old versions too?
19706 sed '$q' "$ltmain" >> "$cfgfile" \
19707 || (rm -f "$cfgfile"; exit 1)
19709 if test x"$xsi_shell" = xyes; then
19710 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19714 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19715 \ * ) func_dirname_result="${3}" ;;\
19717 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19718 && mv -f "$cfgfile.tmp" "$cfgfile" \
19719 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19720 test 0 -eq $? || _lt_function_replace_fail=:
19723 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19726 \ func_basename_result="${1##*/}"\
19727 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19728 && mv -f "$cfgfile.tmp" "$cfgfile" \
19729 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19730 test 0 -eq $? || _lt_function_replace_fail=:
19733 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19734 func_dirname_and_basename ()\
19737 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19738 \ * ) func_dirname_result="${3}" ;;\
19740 \ func_basename_result="${1##*/}"\
19741 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19742 && mv -f "$cfgfile.tmp" "$cfgfile" \
19743 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19744 test 0 -eq $? || _lt_function_replace_fail=:
19747 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19750 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19751 \ # positional parameters, so assign one to ordinary parameter first.\
19752 \ func_stripname_result=${3}\
19753 \ func_stripname_result=${func_stripname_result#"${1}"}\
19754 \ func_stripname_result=${func_stripname_result%"${2}"}\
19755 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19756 && mv -f "$cfgfile.tmp" "$cfgfile" \
19757 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19758 test 0 -eq $? || _lt_function_replace_fail=:
19761 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19762 func_split_long_opt ()\
19764 \ func_split_long_opt_name=${1%%=*}\
19765 \ func_split_long_opt_arg=${1#*=}\
19766 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19767 && mv -f "$cfgfile.tmp" "$cfgfile" \
19768 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19769 test 0 -eq $? || _lt_function_replace_fail=:
19772 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19773 func_split_short_opt ()\
19775 \ func_split_short_opt_arg=${1#??}\
19776 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19777 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19778 && mv -f "$cfgfile.tmp" "$cfgfile" \
19779 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19780 test 0 -eq $? || _lt_function_replace_fail=:
19783 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19787 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19788 \ *) func_lo2o_result=${1} ;;\
19790 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19791 && mv -f "$cfgfile.tmp" "$cfgfile" \
19792 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19793 test 0 -eq $? || _lt_function_replace_fail=:
19796 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19799 func_xform_result=${1%.*}.lo\
19800 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19801 && mv -f "$cfgfile.tmp" "$cfgfile" \
19802 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19803 test 0 -eq $? || _lt_function_replace_fail=:
19806 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19809 func_arith_result=$(( $* ))\
19810 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19811 && mv -f "$cfgfile.tmp" "$cfgfile" \
19812 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19813 test 0 -eq $? || _lt_function_replace_fail=:
19816 sed -e '/^func_len ()$/,/^} # func_len /c\
19819 func_len_result=${#1}\
19820 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19821 && mv -f "$cfgfile.tmp" "$cfgfile" \
19822 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19823 test 0 -eq $? || _lt_function_replace_fail=:
19827 if test x"$lt_shell_append" = xyes; then
19828 sed -e '/^func_append ()$/,/^} # func_append /c\
19831 eval "${1}+=\\${2}"\
19832 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19833 && mv -f "$cfgfile.tmp" "$cfgfile" \
19834 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19835 test 0 -eq $? || _lt_function_replace_fail=:
19838 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19839 func_append_quoted ()\
19841 \ func_quote_for_eval "${2}"\
19842 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19843 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19844 && mv -f "$cfgfile.tmp" "$cfgfile" \
19845 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19846 test 0 -eq $? || _lt_function_replace_fail=:
19849 # Save a `func_append' function call where possible by direct use of '+='
19850 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19851 && mv -f "$cfgfile.tmp" "$cfgfile" \
19852 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19853 test 0 -eq $? || _lt_function_replace_fail=:
19855 # Save a `func_append' function call even when '+=' is not available
19856 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19857 && mv -f "$cfgfile.tmp" "$cfgfile" \
19858 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19859 test 0 -eq $? || _lt_function_replace_fail=:
19862 if test x"$_lt_function_replace_fail" = x":"; then
19863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19864 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19868 mv -f "$cfgfile" "$ofile" ||
19869 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19880 ac_clean_files=$ac_clean_files_save
19882 test $ac_write_fail = 0 ||
19883 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19886 # configure is writing to config.log, and then calls config.status.
19887 # config.status does its own redirection, appending to config.log.
19888 # Unfortunately, on DOS this fails, as config.log is still kept open
19889 # by configure, so config.status won't be able to write to it; its
19890 # output is simply discarded. So we exec the FD to /dev/null,
19891 # effectively closing config.log, so it can be properly (re)opened and
19892 # appended to by config.status. When coming back to configure, we
19893 # need to make the FD available again.
19894 if test "$no_create" != yes; then
19896 ac_config_status_args=
19897 test "$silent" = yes &&
19898 ac_config_status_args="$ac_config_status_args --quiet"
19900 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19902 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19903 # would make configure fail if this is the last instruction.
19904 $ac_cs_success || as_fn_exit 1
19906 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19908 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}