2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xf86-video-vesa 2.3.2.
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
271 # Portably unset VAR.
274 { eval $1=; unset $1;}
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
298 # Create "$as_dir" as a directory, including parents if necessary.
303 -*) as_dir=./$as_dir;;
305 test -d "$as_dir" || eval $as_mkdir_p || {
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 test -d "$as_dir" && break
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
374 as_val=`expr "$@" || test $? -eq 1`
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
386 as_status=$1; test $as_status -eq 0 && as_status=1
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
468 # Exit status is that of the last command.
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
490 mkdir conf$$.dir 2>/dev/null
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
515 test -d ./-p && rmdir ./-p
519 if test -x / >/dev/null 2>&1; then
522 if ls -dL / >/dev/null 2>&1; then
529 if test -d "$1"; then
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
540 as_executable_p=$as_test_x
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548 SHELL=${CONFIG_SHELL-/bin/sh}
551 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='xf86-video-vesa'
573 PACKAGE_TARNAME='xf86-video-vesa'
574 PACKAGE_VERSION='2.3.2'
575 PACKAGE_STRING='xf86-video-vesa 2.3.2'
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
621 XSERVER_LIBPCIACCESS_FALSE
622 XSERVER_LIBPCIACCESS_TRUE
625 HAVE_XEXTPROTO_71_FALSE
626 HAVE_XEXTPROTO_71_TRUE
706 MAINTAINER_MODE_FALSE
716 INSTALL_STRIP_PROGRAM
758 program_transform_name
771 enable_option_checking
772 enable_maintainer_mode
773 enable_dependency_tracking
774 enable_selective_werror
775 enable_strict_compilation
786 ac_precious_vars='build_alias
806 # Initialize some variables set by options.
808 ac_init_version=false
809 ac_unrecognized_opts=
811 # The variables have the same names as the options, with
812 # dashes changed to underlines.
820 program_transform_name=s,x,x,
828 # Installation directory options.
829 # These are left unexpanded so users can "make install exec_prefix=/foo"
830 # and all the variables that are supposed to be based on exec_prefix
831 # by default will actually change.
832 # Use braces instead of parens because sh, perl, etc. also accept them.
833 # (The list follows the same order as the GNU Coding Standards.)
834 bindir='${exec_prefix}/bin'
835 sbindir='${exec_prefix}/sbin'
836 libexecdir='${exec_prefix}/libexec'
837 datarootdir='${prefix}/share'
838 datadir='${datarootdir}'
839 sysconfdir='${prefix}/etc'
840 sharedstatedir='${prefix}/com'
841 localstatedir='${prefix}/var'
842 includedir='${prefix}/include'
843 oldincludedir='/usr/include'
844 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845 infodir='${datarootdir}/info'
850 libdir='${exec_prefix}/lib'
851 localedir='${datarootdir}/locale'
852 mandir='${datarootdir}/man'
858 # If the previous option needs an argument, assign it.
859 if test -n "$ac_prev"; then
860 eval $ac_prev=\$ac_option
866 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871 # Accept the important Cygnus configure options, so we can diagnose typos.
873 case $ac_dashdash$ac_option in
877 -bindir | --bindir | --bindi | --bind | --bin | --bi)
879 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
882 -build | --build | --buil | --bui | --bu)
883 ac_prev=build_alias ;;
884 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885 build_alias=$ac_optarg ;;
887 -cache-file | --cache-file | --cache-fil | --cache-fi \
888 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889 ac_prev=cache_file ;;
890 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892 cache_file=$ac_optarg ;;
895 cache_file=config.cache ;;
897 -datadir | --datadir | --datadi | --datad)
899 -datadir=* | --datadir=* | --datadi=* | --datad=*)
900 datadir=$ac_optarg ;;
902 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903 | --dataroo | --dataro | --datar)
904 ac_prev=datarootdir ;;
905 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907 datarootdir=$ac_optarg ;;
909 -disable-* | --disable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
923 eval enable_$ac_useropt=no ;;
925 -docdir | --docdir | --docdi | --doc | --do)
927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935 -enable-* | --enable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error $? "invalid feature name: $ac_useropt"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
949 eval enable_$ac_useropt=\$ac_optarg ;;
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
964 -help | --help | --hel | --he | -h)
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980 htmldir=$ac_optarg ;;
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
994 -libdir | --libdir | --libdi | --libd)
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1085 -psdir | --psdir | --psdi | --psd | --ps)
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 sbindir=$ac_optarg ;;
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 sharedstatedir=$ac_optarg ;;
1111 -site | --site | --sit)
1113 -site=* | --site=* | --sit=*)
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1140 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1153 eval with_$ac_useropt=\$ac_optarg ;;
1155 -without-* | --without-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1169 eval with_$ac_useropt=no ;;
1172 # Obsolete; use --with-x.
1175 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176 | --x-incl | --x-inc | --x-in | --x-i)
1177 ac_prev=x_includes ;;
1178 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180 x_includes=$ac_optarg ;;
1182 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184 ac_prev=x_libraries ;;
1185 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187 x_libraries=$ac_optarg ;;
1189 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1190 Try \`$0 --help' for more information"
1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195 # Reject names that are not valid shell variable names.
1196 case $ac_envvar in #(
1197 '' | [0-9]* | *[!_$as_cr_alnum]* )
1198 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1200 eval $ac_envvar=\$ac_optarg
1201 export $ac_envvar ;;
1204 # FIXME: should be removed in autoconf 3.0.
1205 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1208 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1214 if test -n "$ac_prev"; then
1215 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216 as_fn_error $? "missing argument to $ac_option"
1219 if test -n "$ac_unrecognized_opts"; then
1220 case $enable_option_checking in
1222 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1223 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227 # Check all directory arguments for consistency.
1228 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229 datadir sysconfdir sharedstatedir localstatedir includedir \
1230 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231 libdir localedir mandir
1233 eval ac_val=\$$ac_var
1234 # Remove trailing slashes.
1237 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1238 eval $ac_var=\$ac_val;;
1240 # Be sure to have absolute directory names.
1242 [\\/$]* | ?:[\\/]* ) continue;;
1243 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1248 # There might be people who depend on the old broken behavior: `$host'
1249 # used to hold the argument of --host etc.
1250 # FIXME: To remove some day.
1253 target=$target_alias
1255 # FIXME: To remove some day.
1256 if test "x$host_alias" != x; then
1257 if test "x$build_alias" = x; then
1258 cross_compiling=maybe
1259 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1260 If a cross compiler is detected then cross compile mode will be used" >&2
1261 elif test "x$build_alias" != "x$host_alias"; then
1267 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1269 test "$silent" = yes && exec 6>/dev/null
1272 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1273 ac_ls_di=`ls -di .` &&
1274 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1275 as_fn_error $? "working directory cannot be determined"
1276 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1277 as_fn_error $? "pwd does not report name of working directory"
1280 # Find the source files, if location was not specified.
1281 if test -z "$srcdir"; then
1282 ac_srcdir_defaulted=yes
1283 # Try the directory containing this script, then the parent directory.
1284 ac_confdir=`$as_dirname -- "$as_myself" ||
1285 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1286 X"$as_myself" : 'X\(//\)[^/]' \| \
1287 X"$as_myself" : 'X\(//\)$' \| \
1288 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1289 $as_echo X"$as_myself" |
1290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1312 ac_srcdir_defaulted=no
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1316 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1318 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1322 # When building in place, set srcdir=.
1323 if test "$ac_abs_confdir" = "$ac_pwd"; then
1326 # Remove unnecessary trailing slashes from srcdir.
1327 # Double slashes in file names in object file debugging info
1328 # mess up M-x gdb in Emacs.
1330 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332 for ac_var in $ac_precious_vars; do
1333 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_env_${ac_var}_value=\$${ac_var}
1335 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1340 # Report the --help message.
1342 if test "$ac_init_help" = "long"; then
1343 # Omit some internal or obsolete options to make the list less imposing.
1344 # This message is too long to be a string in the A/UX 3.1 sh.
1346 \`configure' configures xf86-video-vesa 2.3.2 to adapt to many kinds of systems.
1348 Usage: $0 [OPTION]... [VAR=VALUE]...
1350 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1351 VAR=VALUE. See below for descriptions of some of the useful variables.
1353 Defaults for the options are specified in brackets.
1356 -h, --help display this help and exit
1357 --help=short display options specific to this package
1358 --help=recursive display the short help of all the included packages
1359 -V, --version display version information and exit
1360 -q, --quiet, --silent do not print \`checking ...' messages
1361 --cache-file=FILE cache test results in FILE [disabled]
1362 -C, --config-cache alias for \`--cache-file=config.cache'
1363 -n, --no-create do not create output files
1364 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1366 Installation directories:
1367 --prefix=PREFIX install architecture-independent files in PREFIX
1368 [$ac_default_prefix]
1369 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1372 By default, \`make install' will install all the files in
1373 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1374 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1375 for instance \`--prefix=\$HOME'.
1377 For better control, use the options below.
1379 Fine tuning of the installation directories:
1380 --bindir=DIR user executables [EPREFIX/bin]
1381 --sbindir=DIR system admin executables [EPREFIX/sbin]
1382 --libexecdir=DIR program executables [EPREFIX/libexec]
1383 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1384 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1385 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1386 --libdir=DIR object code libraries [EPREFIX/lib]
1387 --includedir=DIR C header files [PREFIX/include]
1388 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1389 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1390 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1391 --infodir=DIR info documentation [DATAROOTDIR/info]
1392 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1393 --mandir=DIR man documentation [DATAROOTDIR/man]
1394 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-vesa]
1395 --htmldir=DIR html documentation [DOCDIR]
1396 --dvidir=DIR dvi documentation [DOCDIR]
1397 --pdfdir=DIR pdf documentation [DOCDIR]
1398 --psdir=DIR ps documentation [DOCDIR]
1404 --program-prefix=PREFIX prepend PREFIX to installed program names
1405 --program-suffix=SUFFIX append SUFFIX to installed program names
1406 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1409 --build=BUILD configure for building on BUILD [guessed]
1410 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1414 if test -n "$ac_init_help"; then
1415 case $ac_init_help in
1416 short | recursive ) echo "Configuration of xf86-video-vesa 2.3.2:";;
1421 --disable-option-checking ignore unrecognized --enable/--with options
1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1424 --enable-maintainer-mode enable make rules and dependencies not useful
1425 (and sometimes confusing) to the casual installer
1426 --disable-dependency-tracking speeds up one-time build
1427 --enable-dependency-tracking do not reject slow dependency extractors
1428 --disable-selective-werror
1429 Turn off selective compiler errors. (default:
1431 --enable-strict-compilation
1432 Enable all warnings from compiler and make them
1433 errors (default: disabled)
1434 --enable-silent-rules less verbose build output (undo: `make V=1')
1435 --disable-silent-rules verbose build output (undo: `make V=0')
1436 --enable-static[=PKGS] build static libraries [default=no]
1437 --enable-shared[=PKGS] build shared libraries [default=yes]
1438 --enable-fast-install[=PKGS]
1439 optimize for fast installation [default=yes]
1440 --disable-libtool-lock avoid locking (might break parallel builds)
1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1445 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1447 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1448 --with-sysroot=DIR Search for dependent libraries within DIR
1449 (or the compiler's sysroot if not specified).
1450 --with-xorg-module-dir=DIR
1452 Some influential environment variables:
1453 CC C compiler command
1454 CFLAGS C compiler flags
1455 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1456 nonstandard directory <lib dir>
1457 LIBS libraries to pass to the linker, e.g. -l<library>
1458 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1459 you have headers in a nonstandard directory <include dir>
1461 PKG_CONFIG path to pkg-config utility
1463 directories to add to pkg-config's search path
1465 path overriding pkg-config's built-in search path
1466 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1467 XORG_LIBS linker flags for XORG, overriding pkg-config
1468 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1469 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1471 C compiler flags for PCIACCESS, overriding pkg-config
1473 linker flags for PCIACCESS, overriding pkg-config
1475 Use these variables to override the choices made by `configure' or to help
1476 it to find libraries and programs with nonstandard names/locations.
1478 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1483 if test "$ac_init_help" = "recursive"; then
1484 # If there are subdirs, report their specific --help.
1485 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1486 test -d "$ac_dir" ||
1487 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1495 # A ".." for each directory in $ac_dir_suffix.
1496 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1497 case $ac_top_builddir_sub in
1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502 ac_abs_top_builddir=$ac_pwd
1503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504 # for backward compatibility:
1505 ac_top_builddir=$ac_top_build_prefix
1508 .) # We are building in place.
1510 ac_top_srcdir=$ac_top_builddir_sub
1511 ac_abs_top_srcdir=$ac_pwd ;;
1512 [\\/]* | ?:[\\/]* ) # Absolute name.
1513 ac_srcdir=$srcdir$ac_dir_suffix;
1514 ac_top_srcdir=$srcdir
1515 ac_abs_top_srcdir=$srcdir ;;
1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518 ac_top_srcdir=$ac_top_build_prefix$srcdir
1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523 cd "$ac_dir" || { ac_status=$?; continue; }
1524 # Check for guested configure.
1525 if test -f "$ac_srcdir/configure.gnu"; then
1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528 elif test -f "$ac_srcdir/configure"; then
1530 $SHELL "$ac_srcdir/configure" --help=recursive
1532 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534 cd "$ac_pwd" || { ac_status=$?; break; }
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1541 xf86-video-vesa configure 2.3.2
1542 generated by GNU Autoconf 2.68
1544 Copyright (C) 2010 Free Software Foundation, Inc.
1545 This configure script is free software; the Free Software Foundation
1546 gives unlimited permission to copy, distribute and modify it.
1551 ## ------------------------ ##
1552 ## Autoconf initialization. ##
1553 ## ------------------------ ##
1555 # ac_fn_c_try_compile LINENO
1556 # --------------------------
1557 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1558 ac_fn_c_try_compile ()
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 rm -f conftest.$ac_objext
1562 if { { ac_try="$ac_compile"
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568 $as_echo "$ac_try_echo"; } >&5
1569 (eval "$ac_compile") 2>conftest.err
1571 if test -s conftest.err; then
1572 grep -v '^ *+' conftest.err >conftest.er1
1573 cat conftest.er1 >&5
1574 mv -f conftest.er1 conftest.err
1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } && {
1578 test -z "$ac_c_werror_flag" ||
1579 test ! -s conftest.err
1580 } && test -s conftest.$ac_objext; then :
1583 $as_echo "$as_me: failed program was:" >&5
1584 sed 's/^/| /' conftest.$ac_ext >&5
1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589 as_fn_set_status $ac_retval
1591 } # ac_fn_c_try_compile
1593 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1594 # ---------------------------------------------
1595 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1597 ac_fn_c_check_decl ()
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 as_decl_name=`echo $2|sed 's/ *(.*//'`
1601 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1603 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1604 if eval \${$3+:} false; then :
1605 $as_echo_n "(cached) " >&6
1607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1608 /* end confdefs.h. */
1613 #ifndef $as_decl_name
1615 (void) $as_decl_use;
1617 (void) $as_decl_name;
1625 if ac_fn_c_try_compile "$LINENO"; then :
1630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1634 $as_echo "$ac_res" >&6; }
1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637 } # ac_fn_c_check_decl
1639 # ac_fn_c_try_cpp LINENO
1640 # ----------------------
1641 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 if { { ac_try="$ac_cpp conftest.$ac_ext"
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1654 if test -s conftest.err; then
1655 grep -v '^ *+' conftest.err >conftest.er1
1656 cat conftest.er1 >&5
1657 mv -f conftest.er1 conftest.err
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } > conftest.i && {
1661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1662 test ! -s conftest.err
1666 $as_echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672 as_fn_set_status $ac_retval
1676 # ac_fn_c_try_run LINENO
1677 # ----------------------
1678 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1679 # that executables *can* be run.
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 if { { ac_try="$ac_link"
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_link") 2>&5
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1694 { { case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_try") 2>&5
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; }; }; then :
1706 $as_echo "$as_me: program exited with status $ac_status" >&5
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1710 ac_retval=$ac_status
1712 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714 as_fn_set_status $ac_retval
1718 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1719 # -------------------------------------------------------
1720 # Tests whether HEADER exists and can be compiled using the include files in
1721 # INCLUDES, setting the cache variable VAR accordingly.
1722 ac_fn_c_check_header_compile ()
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726 $as_echo_n "checking for $2... " >&6; }
1727 if eval \${$3+:} false; then :
1728 $as_echo_n "(cached) " >&6
1730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731 /* end confdefs.h. */
1735 if ac_fn_c_try_compile "$LINENO"; then :
1740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1744 $as_echo "$ac_res" >&6; }
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747 } # ac_fn_c_check_header_compile
1749 # ac_fn_c_try_link LINENO
1750 # -----------------------
1751 # Try to link conftest.$ac_ext, and return whether this succeeded.
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 rm -f conftest.$ac_objext conftest$ac_exeext
1756 if { { ac_try="$ac_link"
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_link") 2>conftest.err
1765 if test -s conftest.err; then
1766 grep -v '^ *+' conftest.err >conftest.er1
1767 cat conftest.er1 >&5
1768 mv -f conftest.er1 conftest.err
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && {
1772 test -z "$ac_c_werror_flag" ||
1773 test ! -s conftest.err
1774 } && test -s conftest$ac_exeext && {
1775 test "$cross_compiling" = yes ||
1776 $as_test_x conftest$ac_exeext
1780 $as_echo "$as_me: failed program was:" >&5
1781 sed 's/^/| /' conftest.$ac_ext >&5
1785 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1786 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1787 # interfere with the next link command; also delete a directory that is
1788 # left behind by Apple's compiler. We do this before executing the actions.
1789 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791 as_fn_set_status $ac_retval
1793 } # ac_fn_c_try_link
1795 # ac_fn_c_check_func LINENO FUNC VAR
1796 # ----------------------------------
1797 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1798 ac_fn_c_check_func ()
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if eval \${$3+:} false; then :
1804 $as_echo_n "(cached) " >&6
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1808 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1810 #define $2 innocuous_$2
1812 /* System header to define __stub macros and hopefully few prototypes,
1813 which can conflict with char $2 (); below.
1814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1815 <limits.h> exists even on freestanding compilers. */
1818 # include <limits.h>
1820 # include <assert.h>
1825 /* Override any GCC internal prototype to avoid an error.
1826 Use char because int might match the return type of a GCC
1827 builtin and then its argument prototype would still apply. */
1832 /* The GNU C library defines this for functions which it implements
1833 to always fail with ENOSYS. Some functions are actually named
1834 something starting with __ and the normal name is an alias. */
1835 #if defined __stub_$2 || defined __stub___$2
1847 if ac_fn_c_try_link "$LINENO"; then :
1852 rm -f core conftest.err conftest.$ac_objext \
1853 conftest$ac_exeext conftest.$ac_ext
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 } # ac_fn_c_check_func
1861 cat >config.log <<_ACEOF
1862 This file contains any messages produced by compilers while
1863 running configure, to aid debugging if configure makes a mistake.
1865 It was created by xf86-video-vesa $as_me 2.3.2, which was
1866 generated by GNU Autoconf 2.68. Invocation command line was
1878 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1879 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1880 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1881 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1882 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1884 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1885 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1887 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1888 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1889 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1890 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1891 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1892 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1893 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901 test -z "$as_dir" && as_dir=.
1902 $as_echo "PATH: $as_dir"
1918 # Keep a trace of the command line.
1919 # Strip out --no-create and --no-recursion so they do not pile up.
1920 # Strip out --silent because we don't want to record it for future runs.
1921 # Also quote any args containing shell meta-characters.
1922 # Make two passes to allow for proper duplicate-argument suppression.
1926 ac_must_keep_next=false
1932 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1933 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1934 | -silent | --silent | --silen | --sile | --sil)
1937 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1940 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1942 as_fn_append ac_configure_args1 " '$ac_arg'"
1943 if test $ac_must_keep_next = true; then
1944 ac_must_keep_next=false # Got value, back to normal.
1947 *=* | --config-cache | -C | -disable-* | --disable-* \
1948 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1949 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1950 | -with-* | --with-* | -without-* | --without-* | --x)
1951 case "$ac_configure_args0 " in
1952 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1955 -* ) ac_must_keep_next=true ;;
1958 as_fn_append ac_configure_args " '$ac_arg'"
1963 { ac_configure_args0=; unset ac_configure_args0;}
1964 { ac_configure_args1=; unset ac_configure_args1;}
1966 # When interrupted or exit'd, cleanup temporary files, and complete
1967 # config.log. We remove comments because anyway the quotes in there
1968 # would cause problems or look ugly.
1969 # WARNING: Use '\'' to represent an apostrophe within the trap.
1970 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1971 trap 'exit_status=$?
1972 # Save into config.log some information that might help in debugging.
1976 $as_echo "## ---------------- ##
1977 ## Cache variables. ##
1978 ## ---------------- ##"
1980 # The following way of writing the cache mishandles newlines in values,
1982 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1983 eval ac_val=\$$ac_var
1987 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1988 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1991 _ | IFS | as_nl) ;; #(
1992 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1993 *) { eval $ac_var=; unset $ac_var;} ;;
1998 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1999 *${as_nl}ac_space=\ *)
2001 "s/'\''/'\''\\\\'\'''\''/g;
2002 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2005 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2012 $as_echo "## ----------------- ##
2013 ## Output variables. ##
2014 ## ----------------- ##"
2016 for ac_var in $ac_subst_vars
2018 eval ac_val=\$$ac_var
2020 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2022 $as_echo "$ac_var='\''$ac_val'\''"
2026 if test -n "$ac_subst_files"; then
2027 $as_echo "## ------------------- ##
2028 ## File substitutions. ##
2029 ## ------------------- ##"
2031 for ac_var in $ac_subst_files
2033 eval ac_val=\$$ac_var
2035 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2037 $as_echo "$ac_var='\''$ac_val'\''"
2042 if test -s confdefs.h; then
2043 $as_echo "## ----------- ##
2050 test "$ac_signal" != 0 &&
2051 $as_echo "$as_me: caught signal $ac_signal"
2052 $as_echo "$as_me: exit $exit_status"
2054 rm -f core *.core core.conftest.* &&
2055 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2058 for ac_signal in 1 2 13 15; do
2059 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2063 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2064 rm -f -r conftest* confdefs.h
2066 $as_echo "/* confdefs.h */" > confdefs.h
2068 # Predefined preprocessor variables.
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_NAME "$PACKAGE_NAME"
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2082 cat >>confdefs.h <<_ACEOF
2083 #define PACKAGE_STRING "$PACKAGE_STRING"
2086 cat >>confdefs.h <<_ACEOF
2087 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2090 cat >>confdefs.h <<_ACEOF
2091 #define PACKAGE_URL "$PACKAGE_URL"
2095 # Let the site file select an alternate cache file if it wants to.
2096 # Prefer an explicitly selected file to automatically selected ones.
2099 if test -n "$CONFIG_SITE"; then
2100 # We do not want a PATH search for config.site.
2101 case $CONFIG_SITE in #((
2102 -*) ac_site_file1=./$CONFIG_SITE;;
2103 */*) ac_site_file1=$CONFIG_SITE;;
2104 *) ac_site_file1=./$CONFIG_SITE;;
2106 elif test "x$prefix" != xNONE; then
2107 ac_site_file1=$prefix/share/config.site
2108 ac_site_file2=$prefix/etc/config.site
2110 ac_site_file1=$ac_default_prefix/share/config.site
2111 ac_site_file2=$ac_default_prefix/etc/config.site
2113 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2115 test "x$ac_site_file" = xNONE && continue
2116 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2118 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2119 sed 's/^/| /' "$ac_site_file" >&5
2121 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2123 as_fn_error $? "failed to load site script $ac_site_file
2124 See \`config.log' for more details" "$LINENO" 5; }
2128 if test -r "$cache_file"; then
2129 # Some versions of bash will fail to source /dev/null (special files
2130 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2131 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2133 $as_echo "$as_me: loading cache $cache_file" >&6;}
2135 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2136 *) . "./$cache_file";;
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2141 $as_echo "$as_me: creating cache $cache_file" >&6;}
2145 # Check that the precious variables saved in the cache have kept the same
2147 ac_cache_corrupted=false
2148 for ac_var in $ac_precious_vars; do
2149 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2150 eval ac_new_set=\$ac_env_${ac_var}_set
2151 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2152 eval ac_new_val=\$ac_env_${ac_var}_value
2153 case $ac_old_set,$ac_new_set in
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2156 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2157 ac_cache_corrupted=: ;;
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2160 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2161 ac_cache_corrupted=: ;;
2164 if test "x$ac_old_val" != "x$ac_new_val"; then
2165 # differences in whitespace do not lead to failure.
2166 ac_old_val_w=`echo x $ac_old_val`
2167 ac_new_val_w=`echo x $ac_new_val`
2168 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2170 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2171 ac_cache_corrupted=:
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2174 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2175 eval $ac_var=\$ac_old_val
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2178 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2180 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2183 # Pass precious variables to config.status.
2184 if test "$ac_new_set" = set; then
2186 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2187 *) ac_arg=$ac_var=$ac_new_val ;;
2189 case " $ac_configure_args " in
2190 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2191 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2195 if $ac_cache_corrupted; then
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2199 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2200 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2202 ## -------------------- ##
2203 ## Main body of script. ##
2204 ## -------------------- ##
2207 ac_cpp='$CPP $CPPFLAGS'
2208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2214 ac_config_headers="$ac_config_headers config.h"
2217 for ac_dir in . "$srcdir"/.; do
2218 if test -f "$ac_dir/install-sh"; then
2220 ac_install_sh="$ac_aux_dir/install-sh -c"
2222 elif test -f "$ac_dir/install.sh"; then
2224 ac_install_sh="$ac_aux_dir/install.sh -c"
2226 elif test -f "$ac_dir/shtool"; then
2228 ac_install_sh="$ac_aux_dir/shtool install -c"
2232 if test -z "$ac_aux_dir"; then
2233 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2236 # These three variables are undocumented and unsupported,
2237 # and are intended to be withdrawn in a future Autoconf release.
2238 # They can cause serious problems if a builder's source tree is in a directory
2239 # whose full name contains unusual characters.
2240 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2241 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2242 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2246 # Initialize Automake
2247 am__api_version='1.11'
2249 # Find a good install program. We prefer a C program (faster),
2250 # so one script is as good as another. But avoid the broken or
2251 # incompatible versions:
2252 # SysV /etc/install, /usr/sbin/install
2253 # SunOS /usr/etc/install
2254 # IRIX /sbin/install
2256 # AmigaOS /C/install, which installs bootblocks on floppy discs
2257 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2258 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2259 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2260 # OS/2's system install, which has a completely different semantic
2261 # ./install, which can be erroneously created by make from ./install.sh.
2262 # Reject install programs that cannot install multiple files.
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2264 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2265 if test -z "$INSTALL"; then
2266 if ${ac_cv_path_install+:} false; then :
2267 $as_echo_n "(cached) " >&6
2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273 test -z "$as_dir" && as_dir=.
2274 # Account for people who put trailing slashes in PATH elements.
2275 case $as_dir/ in #((
2276 ./ | .// | /[cC]/* | \
2277 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2278 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2281 # OSF1 and SCO ODT 3.0 have their own names for install.
2282 # Don't use installbsd from OSF since it installs stuff as root
2284 for ac_prog in ginstall scoinst install; do
2285 for ac_exec_ext in '' $ac_executable_extensions; do
2286 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2287 if test $ac_prog = install &&
2288 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2289 # AIX install. It has an incompatible calling convention.
2291 elif test $ac_prog = install &&
2292 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2293 # program-specific install script used by HP pwplus--don't use.
2296 rm -rf conftest.one conftest.two conftest.dir
2297 echo one > conftest.one
2298 echo two > conftest.two
2300 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2301 test -s conftest.one && test -s conftest.two &&
2302 test -s conftest.dir/conftest.one &&
2303 test -s conftest.dir/conftest.two
2305 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2318 rm -rf conftest.one conftest.two conftest.dir
2321 if test "${ac_cv_path_install+set}" = set; then
2322 INSTALL=$ac_cv_path_install
2324 # As a last resort, use the slow shell script. Don't cache a
2325 # value for INSTALL within a source directory, because that will
2326 # break other packages using the cache if that directory is
2327 # removed, or if the value is a relative name.
2328 INSTALL=$ac_install_sh
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2332 $as_echo "$INSTALL" >&6; }
2334 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2335 # It thinks the first close brace ends the variable substitution.
2336 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2338 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2340 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2343 $as_echo_n "checking whether build environment is sane... " >&6; }
2346 echo timestamp > conftest.file
2347 # Reject unsafe characters in $srcdir or the absolute working directory
2348 # name. Accept space and tab only in the latter.
2352 *[\\\"\#\$\&\'\`$am_lf]*)
2353 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2356 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2357 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2360 # Do `set' in a subshell so we don't clobber the current shell's
2361 # arguments. Must try -L first in case configure is actually a
2362 # symlink; some systems play weird games with the mod time of symlinks
2363 # (eg FreeBSD returns the mod time of the symlink's containing
2366 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2367 if test "$*" = "X"; then
2369 set X `ls -t "$srcdir/configure" conftest.file`
2372 if test "$*" != "X $srcdir/configure conftest.file" \
2373 && test "$*" != "X conftest.file $srcdir/configure"; then
2375 # If neither matched, then we have a broken ls. This can happen
2376 # if, for instance, CONFIG_SHELL is bash and it inherits a
2377 # broken ls alias from the environment. This has actually
2378 # happened. Such a system could not be considered "sane".
2379 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2380 alias in your environment" "$LINENO" 5
2383 test "$2" = conftest.file
2389 as_fn_error $? "newly created file is older than distributed files!
2390 Check your system clock" "$LINENO" 5
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2393 $as_echo "yes" >&6; }
2394 test "$program_prefix" != NONE &&
2395 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2396 # Use a double $ so make ignores it.
2397 test "$program_suffix" != NONE &&
2398 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2399 # Double any \ or $.
2400 # By default was `s,x,x', remove it if useless.
2401 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2402 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2404 # expand $ac_aux_dir to an absolute path
2405 am_aux_dir=`cd $ac_aux_dir && pwd`
2407 if test x"${MISSING+set}" != xset; then
2410 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2412 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2415 # Use eval to expand $SHELL
2416 if eval "$MISSING --run true"; then
2417 am_missing_run="$MISSING --run "
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2421 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2424 if test x"${install_sh}" != xset; then
2427 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2429 install_sh="\${SHELL} $am_aux_dir/install-sh"
2433 # Installed binaries are usually stripped using `strip' when the user
2434 # run `make install-strip'. However `strip' might not be the right
2435 # tool to use in cross-compilation environments, therefore Automake
2436 # will honor the `STRIP' environment variable to overrule this program.
2437 if test "$cross_compiling" != no; then
2438 if test -n "$ac_tool_prefix"; then
2439 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2440 set dummy ${ac_tool_prefix}strip; ac_word=$2
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2442 $as_echo_n "checking for $ac_word... " >&6; }
2443 if ${ac_cv_prog_STRIP+:} false; then :
2444 $as_echo_n "(cached) " >&6
2446 if test -n "$STRIP"; then
2447 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 test -z "$as_dir" && as_dir=.
2454 for ac_exec_ext in '' $ac_executable_extensions; do
2455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2456 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2466 STRIP=$ac_cv_prog_STRIP
2467 if test -n "$STRIP"; then
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2469 $as_echo "$STRIP" >&6; }
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2472 $as_echo "no" >&6; }
2477 if test -z "$ac_cv_prog_STRIP"; then
2479 # Extract the first word of "strip", so it can be a program name with args.
2480 set dummy strip; ac_word=$2
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2482 $as_echo_n "checking for $ac_word... " >&6; }
2483 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2484 $as_echo_n "(cached) " >&6
2486 if test -n "$ac_ct_STRIP"; then
2487 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 test -z "$as_dir" && as_dir=.
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2496 ac_cv_prog_ac_ct_STRIP="strip"
2497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2507 if test -n "$ac_ct_STRIP"; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2509 $as_echo "$ac_ct_STRIP" >&6; }
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2512 $as_echo "no" >&6; }
2515 if test "x$ac_ct_STRIP" = x; then
2518 case $cross_compiling:$ac_tool_warned in
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2522 ac_tool_warned=yes ;;
2527 STRIP="$ac_cv_prog_STRIP"
2531 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2534 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2535 if test -z "$MKDIR_P"; then
2536 if ${ac_cv_path_mkdir+:} false; then :
2537 $as_echo_n "(cached) " >&6
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2543 test -z "$as_dir" && as_dir=.
2544 for ac_prog in mkdir gmkdir; do
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2547 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2548 'mkdir (GNU coreutils) '* | \
2549 'mkdir (coreutils) '* | \
2550 'mkdir (fileutils) '4.1*)
2551 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2561 test -d ./--version && rmdir ./--version
2562 if test "${ac_cv_path_mkdir+set}" = set; then
2563 MKDIR_P="$ac_cv_path_mkdir -p"
2565 # As a last resort, use the slow shell script. Don't cache a
2566 # value for MKDIR_P within a source directory, because that will
2567 # break other packages using the cache if that directory is
2568 # removed, or if the value is a relative name.
2569 MKDIR_P="$ac_install_sh -d"
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2573 $as_echo "$MKDIR_P" >&6; }
2577 [\\/$]* | ?:[\\/]*) ;;
2578 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2581 for ac_prog in gawk mawk nawk awk
2583 # Extract the first word of "$ac_prog", so it can be a program name with args.
2584 set dummy $ac_prog; ac_word=$2
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2586 $as_echo_n "checking for $ac_word... " >&6; }
2587 if ${ac_cv_prog_AWK+:} false; then :
2588 $as_echo_n "(cached) " >&6
2590 if test -n "$AWK"; then
2591 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 test -z "$as_dir" && as_dir=.
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2600 ac_cv_prog_AWK="$ac_prog"
2601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 if test -n "$AWK"; then
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2613 $as_echo "$AWK" >&6; }
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2616 $as_echo "no" >&6; }
2620 test -n "$AWK" && break
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2624 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2626 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2627 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2628 $as_echo_n "(cached) " >&6
2630 cat >conftest.make <<\_ACEOF
2633 @echo '@@@%%%=$(MAKE)=@@@%%%'
2635 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2636 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2638 eval ac_cv_prog_make_${ac_make}_set=yes;;
2640 eval ac_cv_prog_make_${ac_make}_set=no;;
2644 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2646 $as_echo "yes" >&6; }
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650 $as_echo "no" >&6; }
2651 SET_MAKE="MAKE=${MAKE-make}"
2654 rm -rf .tst 2>/dev/null
2655 mkdir .tst 2>/dev/null
2656 if test -d .tst; then
2661 rmdir .tst 2>/dev/null
2663 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2664 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2665 # is not polluted with repeated "-I."
2666 am__isrc=' -I$(srcdir)'
2667 # test to see if srcdir already configured
2668 if test -f $srcdir/config.status; then
2669 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2673 # test whether we have cygpath
2674 if test -z "$CYGPATH_W"; then
2675 if (cygpath --version) >/dev/null 2>/dev/null; then
2676 CYGPATH_W='cygpath -w'
2683 # Define the identity of the package.
2684 PACKAGE='xf86-video-vesa'
2688 cat >>confdefs.h <<_ACEOF
2689 #define PACKAGE "$PACKAGE"
2693 cat >>confdefs.h <<_ACEOF
2694 #define VERSION "$VERSION"
2697 # Some tools Automake needs.
2699 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2702 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2705 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2708 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2711 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2713 # We need awk for the "check" target. The system "awk" is bad on
2715 # Always define AMTAR for backward compatibility. Yes, it's still used
2716 # in the wild :-( We should find a proper way to deprecate it ...
2719 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2727 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2728 # Check whether --enable-maintainer-mode was given.
2729 if test "${enable_maintainer_mode+set}" = set; then :
2730 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2732 USE_MAINTAINER_MODE=no
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2736 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2737 if test $USE_MAINTAINER_MODE = yes; then
2738 MAINTAINER_MODE_TRUE=
2739 MAINTAINER_MODE_FALSE='#'
2741 MAINTAINER_MODE_TRUE='#'
2742 MAINTAINER_MODE_FALSE=
2745 MAINT=$MAINTAINER_MODE_TRUE
2749 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2761 DEPDIR="${am__leading_dot}deps"
2763 ac_config_commands="$ac_config_commands depfiles"
2766 am_make=${MAKE-make}
2767 cat > confinc << 'END'
2769 @echo this is the am__doit target
2772 # If we don't find an include directive, just comment out the code.
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2774 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2778 # First try GNU make style include.
2779 echo "include confinc" > confmf
2780 # Ignore all kinds of additional output from `make'.
2781 case `$am_make -s -f confmf 2> /dev/null` in #(
2782 *the\ am__doit\ target*)
2788 # Now try BSD make style include.
2789 if test "$am__include" = "#"; then
2790 echo '.include "confinc"' > confmf
2791 case `$am_make -s -f confmf 2> /dev/null` in #(
2792 *the\ am__doit\ target*)
2793 am__include=.include
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2802 $as_echo "$_am_result" >&6; }
2803 rm -f confinc confmf
2805 # Check whether --enable-dependency-tracking was given.
2806 if test "${enable_dependency_tracking+set}" = set; then :
2807 enableval=$enable_dependency_tracking;
2810 if test "x$enable_dependency_tracking" != xno; then
2811 am_depcomp="$ac_aux_dir/depcomp"
2815 if test "x$enable_dependency_tracking" != xno; then
2825 ac_cpp='$CPP $CPPFLAGS'
2826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2829 if test -n "$ac_tool_prefix"; then
2830 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2831 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if ${ac_cv_prog_CC+:} false; then :
2835 $as_echo_n "(cached) " >&6
2837 if test -n "$CC"; then
2838 ac_cv_prog_CC="$CC" # Let the user override the test.
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2847 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 if test -n "$CC"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2860 $as_echo "$CC" >&6; }
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2868 if test -z "$ac_cv_prog_CC"; then
2870 # Extract the first word of "gcc", so it can be a program name with args.
2871 set dummy gcc; ac_word=$2
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873 $as_echo_n "checking for $ac_word... " >&6; }
2874 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2875 $as_echo_n "(cached) " >&6
2877 if test -n "$ac_ct_CC"; then
2878 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2887 ac_cv_prog_ac_ct_CC="gcc"
2888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2898 if test -n "$ac_ct_CC"; then
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2900 $as_echo "$ac_ct_CC" >&6; }
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903 $as_echo "no" >&6; }
2906 if test "x$ac_ct_CC" = x; then
2909 case $cross_compiling:$ac_tool_warned in
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2913 ac_tool_warned=yes ;;
2921 if test -z "$CC"; then
2922 if test -n "$ac_tool_prefix"; then
2923 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2924 set dummy ${ac_tool_prefix}cc; ac_word=$2
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 $as_echo_n "checking for $ac_word... " >&6; }
2927 if ${ac_cv_prog_CC+:} false; then :
2928 $as_echo_n "(cached) " >&6
2930 if test -n "$CC"; then
2931 ac_cv_prog_CC="$CC" # Let the user override the test.
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 test -z "$as_dir" && as_dir=.
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2940 ac_cv_prog_CC="${ac_tool_prefix}cc"
2941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 if test -n "$CC"; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2953 $as_echo "$CC" >&6; }
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2962 if test -z "$CC"; then
2963 # Extract the first word of "cc", so it can be a program name with args.
2964 set dummy cc; ac_word=$2
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966 $as_echo_n "checking for $ac_word... " >&6; }
2967 if ${ac_cv_prog_CC+:} false; then :
2968 $as_echo_n "(cached) " >&6
2970 if test -n "$CC"; then
2971 ac_cv_prog_CC="$CC" # Let the user override the test.
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2981 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2982 ac_prog_rejected=yes
2986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 if test $ac_prog_rejected = yes; then
2994 # We found a bogon in the path, so make sure we never use it.
2995 set dummy $ac_cv_prog_CC
2997 if test $# != 0; then
2998 # We chose a different compiler from the bogus one.
2999 # However, it has the same basename, so the bogon will be chosen
3000 # first if we set CC to just the basename; use the full file name.
3002 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3008 if test -n "$CC"; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3010 $as_echo "$CC" >&6; }
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 $as_echo "no" >&6; }
3018 if test -z "$CC"; then
3019 if test -n "$ac_tool_prefix"; then
3020 for ac_prog in cl.exe
3022 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3023 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 $as_echo_n "checking for $ac_word... " >&6; }
3026 if ${ac_cv_prog_CC+:} false; then :
3027 $as_echo_n "(cached) " >&6
3029 if test -n "$CC"; then
3030 ac_cv_prog_CC="$CC" # Let the user override the test.
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3039 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050 if test -n "$CC"; then
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3052 $as_echo "$CC" >&6; }
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 $as_echo "no" >&6; }
3059 test -n "$CC" && break
3062 if test -z "$CC"; then
3064 for ac_prog in cl.exe
3066 # Extract the first word of "$ac_prog", so it can be a program name with args.
3067 set dummy $ac_prog; ac_word=$2
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069 $as_echo_n "checking for $ac_word... " >&6; }
3070 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3071 $as_echo_n "(cached) " >&6
3073 if test -n "$ac_ct_CC"; then
3074 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3083 ac_cv_prog_ac_ct_CC="$ac_prog"
3084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3094 if test -n "$ac_ct_CC"; then
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3096 $as_echo "$ac_ct_CC" >&6; }
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; }
3103 test -n "$ac_ct_CC" && break
3106 if test "x$ac_ct_CC" = x; then
3109 case $cross_compiling:$ac_tool_warned in
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3113 ac_tool_warned=yes ;;
3122 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3124 as_fn_error $? "no acceptable C compiler found in \$PATH
3125 See \`config.log' for more details" "$LINENO" 5; }
3127 # Provide some information about the compiler.
3128 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3131 for ac_option in --version -v -V -qversion; do
3132 { { ac_try="$ac_compiler $ac_option >&5"
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3138 $as_echo "$ac_try_echo"; } >&5
3139 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3141 if test -s conftest.err; then
3143 ... rest of stderr output deleted ...
3144 10q' conftest.err >conftest.er1
3145 cat conftest.er1 >&5
3147 rm -f conftest.er1 conftest.err
3148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3149 test $ac_status = 0; }
3152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3153 /* end confdefs.h. */
3163 ac_clean_files_save=$ac_clean_files
3164 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3165 # Try to create an executable without -o first, disregard a.out.
3166 # It will help us diagnose broken compilers, and finding out an intuition
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3169 $as_echo_n "checking whether the C compiler works... " >&6; }
3170 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3172 # The possible output files:
3173 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3176 for ac_file in $ac_files
3179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3180 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3185 if { { ac_try="$ac_link_default"
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3191 $as_echo "$ac_try_echo"; } >&5
3192 (eval "$ac_link_default") 2>&5
3194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3195 test $ac_status = 0; }; then :
3196 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3197 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3198 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3199 # so that the user can short-circuit this test for compilers unknown to
3201 for ac_file in $ac_files ''
3203 test -f "$ac_file" || continue
3205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3208 # We found the default executable, but exeext='' is most
3212 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3214 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3216 # We set ac_cv_exeext here because the later test for it is not
3217 # safe: cross compilers may not add the suffix if given an `-o'
3218 # argument, so we may need to know it at that point already.
3219 # Even if this section looks crufty: it has the advantage of
3226 test "$ac_cv_exeext" = no && ac_cv_exeext=
3231 if test -z "$ac_file"; then :
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3234 $as_echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239 as_fn_error 77 "C compiler cannot create executables
3240 See \`config.log' for more details" "$LINENO" 5; }
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3243 $as_echo "yes" >&6; }
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3246 $as_echo_n "checking for C compiler default output file name... " >&6; }
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3248 $as_echo "$ac_file" >&6; }
3249 ac_exeext=$ac_cv_exeext
3251 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3252 ac_clean_files=$ac_clean_files_save
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3254 $as_echo_n "checking for suffix of executables... " >&6; }
3255 if { { ac_try="$ac_link"
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3261 $as_echo "$ac_try_echo"; } >&5
3262 (eval "$ac_link") 2>&5
3264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3265 test $ac_status = 0; }; then :
3266 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3267 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3268 # work properly (i.e., refer to `conftest.exe'), while it won't with
3270 for ac_file in conftest.exe conftest conftest.*; do
3271 test -f "$ac_file" || continue
3273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3274 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3282 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3283 See \`config.log' for more details" "$LINENO" 5; }
3285 rm -f conftest conftest$ac_cv_exeext
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3287 $as_echo "$ac_cv_exeext" >&6; }
3289 rm -f conftest.$ac_ext
3290 EXEEXT=$ac_cv_exeext
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3298 FILE *f = fopen ("conftest.out", "w");
3299 return ferror (f) || fclose (f) != 0;
3305 ac_clean_files="$ac_clean_files conftest.out"
3306 # Check that the compiler produces executables we can run. If not, either
3307 # the compiler is broken, or we cross compile.
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3309 $as_echo_n "checking whether we are cross compiling... " >&6; }
3310 if test "$cross_compiling" != yes; then
3311 { { ac_try="$ac_link"
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317 $as_echo "$ac_try_echo"; } >&5
3318 (eval "$ac_link") 2>&5
3320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321 test $ac_status = 0; }
3322 if { ac_try='./conftest$ac_cv_exeext'
3323 { { case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328 $as_echo "$ac_try_echo"; } >&5
3329 (eval "$ac_try") 2>&5
3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332 test $ac_status = 0; }; }; then
3335 if test "$cross_compiling" = maybe; then
3338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3340 as_fn_error $? "cannot run C compiled programs.
3341 If you meant to cross compile, use \`--host'.
3342 See \`config.log' for more details" "$LINENO" 5; }
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3347 $as_echo "$cross_compiling" >&6; }
3349 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3350 ac_clean_files=$ac_clean_files_save
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3352 $as_echo_n "checking for suffix of object files... " >&6; }
3353 if ${ac_cv_objext+:} false; then :
3354 $as_echo_n "(cached) " >&6
3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h. */
3367 rm -f conftest.o conftest.obj
3368 if { { ac_try="$ac_compile"
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374 $as_echo "$ac_try_echo"; } >&5
3375 (eval "$ac_compile") 2>&5
3377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378 test $ac_status = 0; }; then :
3379 for ac_file in conftest.o conftest.obj conftest.*; do
3380 test -f "$ac_file" || continue;
3382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3383 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3388 $as_echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393 as_fn_error $? "cannot compute suffix of object files: cannot compile
3394 See \`config.log' for more details" "$LINENO" 5; }
3396 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3399 $as_echo "$ac_cv_objext" >&6; }
3400 OBJEXT=$ac_cv_objext
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3403 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3404 if ${ac_cv_c_compiler_gnu+:} false; then :
3405 $as_echo_n "(cached) " >&6
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3421 if ac_fn_c_try_compile "$LINENO"; then :
3426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3431 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3432 if test $ac_compiler_gnu = yes; then
3437 ac_test_CFLAGS=${CFLAGS+set}
3438 ac_save_CFLAGS=$CFLAGS
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3440 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3441 if ${ac_cv_prog_cc_g+:} false; then :
3442 $as_echo_n "(cached) " >&6
3444 ac_save_c_werror_flag=$ac_c_werror_flag
3445 ac_c_werror_flag=yes
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h. */
3459 if ac_fn_c_try_compile "$LINENO"; then :
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3474 if ac_fn_c_try_compile "$LINENO"; then :
3477 ac_c_werror_flag=$ac_save_c_werror_flag
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3490 if ac_fn_c_try_compile "$LINENO"; then :
3493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 ac_c_werror_flag=$ac_save_c_werror_flag
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3501 $as_echo "$ac_cv_prog_cc_g" >&6; }
3502 if test "$ac_test_CFLAGS" = set; then
3503 CFLAGS=$ac_save_CFLAGS
3504 elif test $ac_cv_prog_cc_g = yes; then
3505 if test "$GCC" = yes; then
3511 if test "$GCC" = yes; then
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3518 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3519 if ${ac_cv_prog_cc_c89+:} false; then :
3520 $as_echo_n "(cached) " >&6
3522 ac_cv_prog_cc_c89=no
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3528 #include <sys/types.h>
3529 #include <sys/stat.h>
3530 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3531 struct buf { int x; };
3532 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3533 static char *e (p, i)
3539 static char *f (char * (*g) (char **, int), char **p, ...)
3544 s = g (p, va_arg (v,int));
3549 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3550 function prototypes and stuff, but not '\xHH' hex character constants.
3551 These don't provoke an error unfortunately, instead are silently treated
3552 as 'x'. The following induces an error, until -std is added to get
3553 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3554 array size at least. It's necessary to write '\x00'==0 to get something
3555 that's true only with -std. */
3556 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3558 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3559 inside strings and character constants. */
3561 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3563 int test (int i, double x);
3564 struct s1 {int (*f) (int a);};
3565 struct s2 {int (*f) (double a);};
3566 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3572 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3577 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3578 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3580 CC="$ac_save_CC $ac_arg"
3581 if ac_fn_c_try_compile "$LINENO"; then :
3582 ac_cv_prog_cc_c89=$ac_arg
3584 rm -f core conftest.err conftest.$ac_objext
3585 test "x$ac_cv_prog_cc_c89" != "xno" && break
3587 rm -f conftest.$ac_ext
3592 case "x$ac_cv_prog_cc_c89" in
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3595 $as_echo "none needed" >&6; } ;;
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3598 $as_echo "unsupported" >&6; } ;;
3600 CC="$CC $ac_cv_prog_cc_c89"
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3602 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3604 if test "x$ac_cv_prog_cc_c89" != xno; then :
3609 ac_cpp='$CPP $CPPFLAGS'
3610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614 depcc="$CC" am_compiler_list=
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3617 $as_echo_n "checking dependency style of $depcc... " >&6; }
3618 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3619 $as_echo_n "(cached) " >&6
3621 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3622 # We make a subdir and do the tests there. Otherwise we can end up
3623 # making bogus files that we don't know about and never remove. For
3624 # instance it was reported that on HP-UX the gcc test will end up
3625 # making a dummy file named `D' -- because `-MD' means `put the output
3629 # Copy depcomp to subdir because otherwise we won't find it if we're
3630 # using a relative directory.
3631 cp "$am_depcomp" conftest.dir
3633 # We will build objects and dependencies in a subdirectory because
3634 # it helps to detect inapplicable dependency modes. For instance
3635 # both Tru64's cc and ICC support -MD to output dependencies as a
3636 # side effect of compilation, but ICC will put the dependencies in
3637 # the current directory while Tru64 will put them in the object
3641 am_cv_CC_dependencies_compiler_type=none
3642 if test "$am_compiler_list" = ""; then
3643 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3646 case " $depcc " in #(
3647 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3650 for depmode in $am_compiler_list; do
3651 # Setup a source with many dependencies, because some compilers
3652 # like to wrap large dependency lists on column 80 (with \), and
3653 # we should not choose a depcomp mode which is confused by this.
3655 # We need to recreate these files for each test, as the compiler may
3656 # overwrite some of them when testing with obscure command lines.
3657 # This happens at least with the AIX C compiler.
3659 for i in 1 2 3 4 5 6; do
3660 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3661 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3662 # Solaris 8's {/usr,}/bin/sh.
3663 touch sub/conftst$i.h
3665 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3667 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3668 # mode. It turns out that the SunPro C++ compiler does not properly
3669 # handle `-M -o', and we need to detect this. Also, some Intel
3670 # versions had trouble with output in subdirs
3671 am__obj=sub/conftest.${OBJEXT-o}
3672 am__minus_obj="-o $am__obj"
3675 # This depmode causes a compiler race in universal mode.
3676 test "$am__universal" = false || continue
3679 # after this tag, mechanisms are not by side-effect, so they'll
3680 # only be used when explicitly requested
3681 if test "x$enable_dependency_tracking" = xyes; then
3687 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3688 # This compiler won't grok `-c -o', but also, the minuso test has
3689 # not run yet. These depmodes are late enough in the game, and
3690 # so weak that their functioning should not be impacted.
3691 am__obj=conftest.${OBJEXT-o}
3696 if depmode=$depmode \
3697 source=sub/conftest.c object=$am__obj \
3698 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3699 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3700 >/dev/null 2>conftest.err &&
3701 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3702 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3703 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3704 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3705 # icc doesn't choke on unknown options, it will just issue warnings
3706 # or remarks (even with -Werror). So we grep stderr for any message
3707 # that says an option was ignored or not supported.
3708 # When given -MP, icc 7.0 and 7.1 complain thusly:
3709 # icc: Command line warning: ignoring option '-M'; no argument required
3710 # The diagnosis changed in icc 8.0:
3711 # icc: Command line remark: option '-MP' not supported
3712 if (grep 'ignoring option' conftest.err ||
3713 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3714 am_cv_CC_dependencies_compiler_type=$depmode
3723 am_cv_CC_dependencies_compiler_type=none
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3728 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3729 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3732 test "x$enable_dependency_tracking" != xno \
3733 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3735 am__fastdepCC_FALSE='#'
3737 am__fastdepCC_TRUE='#'
3738 am__fastdepCC_FALSE=
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3743 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3744 if ${ac_cv_prog_cc_c99+:} false; then :
3745 $as_echo_n "(cached) " >&6
3747 ac_cv_prog_cc_c99=no
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3752 #include <stdbool.h>
3757 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3758 #define debug(...) fprintf (stderr, __VA_ARGS__)
3759 #define showlist(...) puts (#__VA_ARGS__)
3760 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3762 test_varargs_macros (void)
3767 debug ("X = %d\n", x);
3768 showlist (The first, second, and third items.);
3769 report (x>y, "x is %d but y is %d", x, y);
3772 // Check long long types.
3773 #define BIG64 18446744073709551615ull
3774 #define BIG32 4294967295ul
3775 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3777 your preprocessor is broken;
3781 your preprocessor is broken;
3783 static long long int bignum = -9223372036854775807LL;
3784 static unsigned long long int ubignum = BIG64;
3786 struct incomplete_array
3794 const wchar_t *name;
3798 typedef const char *ccp;
3801 test_restrict (ccp restrict text)
3803 // See if C++-style comments work.
3804 // Iterate through items via the restricted pointer.
3805 // Also check for declarations in for loops.
3806 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3811 // Check varargs and va_copy.
3813 test_varargs (const char *format, ...)
3816 va_start (args, format);
3818 va_copy (args_copy, args);
3829 str = va_arg (args_copy, const char *);
3832 number = va_arg (args_copy, int);
3835 fnumber = va_arg (args_copy, double);
3850 _Bool success = false;
3853 if (test_restrict ("String literal") == 0)
3855 char *restrict newvar = "Another string";
3858 test_varargs ("s, d' f .", "string", 65, 34.234);
3859 test_varargs_macros ();
3861 // Check flexible array members.
3862 struct incomplete_array *ia =
3863 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3865 for (int i = 0; i < ia->datasize; ++i)
3866 ia->data[i] = i * 1.234;
3868 // Check named initializers.
3869 struct named_init ni = {
3871 .name = L"Test wide string",
3872 .average = 543.34343,
3877 int dynamic_array[ni.number];
3878 dynamic_array[ni.number - 1] = 543;
3880 // work around unused variable warnings
3881 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3882 || dynamic_array[ni.number - 1] != 543);
3888 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3890 CC="$ac_save_CC $ac_arg"
3891 if ac_fn_c_try_compile "$LINENO"; then :
3892 ac_cv_prog_cc_c99=$ac_arg
3894 rm -f core conftest.err conftest.$ac_objext
3895 test "x$ac_cv_prog_cc_c99" != "xno" && break
3897 rm -f conftest.$ac_ext
3902 case "x$ac_cv_prog_cc_c99" in
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3905 $as_echo "none needed" >&6; } ;;
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3908 $as_echo "unsupported" >&6; } ;;
3910 CC="$CC $ac_cv_prog_cc_c99"
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3912 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3914 if test "x$ac_cv_prog_cc_c99" != xno; then :
3921 ac_cpp='$CPP $CPPFLAGS'
3922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3926 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3927 # On Suns, sometimes $CPP names a directory.
3928 if test -n "$CPP" && test -d "$CPP"; then
3931 if test -z "$CPP"; then
3932 if ${ac_cv_prog_CPP+:} false; then :
3933 $as_echo_n "(cached) " >&6
3935 # Double quotes because CPP needs to be expanded
3936 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3939 for ac_c_preproc_warn_flag in '' yes
3941 # Use a header file that comes with gcc, so configuring glibc
3942 # with a fresh cross-compiler works.
3943 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3944 # <limits.h> exists even on freestanding compilers.
3945 # On the NeXT, cc -E runs the code through the compiler's parser,
3946 # not just through cpp. "Syntax error" is here to catch this case.
3947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h. */
3950 # include <limits.h>
3952 # include <assert.h>
3956 if ac_fn_c_try_cpp "$LINENO"; then :
3959 # Broken: fails on valid input.
3962 rm -f conftest.err conftest.i conftest.$ac_ext
3964 # OK, works on sane cases. Now check whether nonexistent headers
3965 # can be detected and how.
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h. */
3968 #include <ac_nonexistent.h>
3970 if ac_fn_c_try_cpp "$LINENO"; then :
3971 # Broken: success on invalid input.
3974 # Passes both tests.
3978 rm -f conftest.err conftest.i conftest.$ac_ext
3981 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3982 rm -f conftest.i conftest.err conftest.$ac_ext
3983 if $ac_preproc_ok; then :
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3996 $as_echo "$CPP" >&6; }
3998 for ac_c_preproc_warn_flag in '' yes
4000 # Use a header file that comes with gcc, so configuring glibc
4001 # with a fresh cross-compiler works.
4002 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4003 # <limits.h> exists even on freestanding compilers.
4004 # On the NeXT, cc -E runs the code through the compiler's parser,
4005 # not just through cpp. "Syntax error" is here to catch this case.
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4009 # include <limits.h>
4011 # include <assert.h>
4015 if ac_fn_c_try_cpp "$LINENO"; then :
4018 # Broken: fails on valid input.
4021 rm -f conftest.err conftest.i conftest.$ac_ext
4023 # OK, works on sane cases. Now check whether nonexistent headers
4024 # can be detected and how.
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4027 #include <ac_nonexistent.h>
4029 if ac_fn_c_try_cpp "$LINENO"; then :
4030 # Broken: success on invalid input.
4033 # Passes both tests.
4037 rm -f conftest.err conftest.i conftest.$ac_ext
4040 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4041 rm -f conftest.i conftest.err conftest.$ac_ext
4042 if $ac_preproc_ok; then :
4045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4047 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4048 See \`config.log' for more details" "$LINENO" 5; }
4052 ac_cpp='$CPP $CPPFLAGS'
4053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4059 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4060 if ${ac_cv_path_GREP+:} false; then :
4061 $as_echo_n "(cached) " >&6
4063 if test -z "$GREP"; then
4064 ac_path_GREP_found=false
4065 # Loop through the user's path and test for each of PROGNAME-LIST
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4070 test -z "$as_dir" && as_dir=.
4071 for ac_prog in grep ggrep; do
4072 for ac_exec_ext in '' $ac_executable_extensions; do
4073 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4074 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4075 # Check for GNU ac_path_GREP and select it if it is found.
4076 # Check for GNU $ac_path_GREP
4077 case `"$ac_path_GREP" --version 2>&1` in
4079 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4082 $as_echo_n 0123456789 >"conftest.in"
4085 cat "conftest.in" "conftest.in" >"conftest.tmp"
4086 mv "conftest.tmp" "conftest.in"
4087 cp "conftest.in" "conftest.nl"
4088 $as_echo 'GREP' >> "conftest.nl"
4089 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4090 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4091 as_fn_arith $ac_count + 1 && ac_count=$as_val
4092 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4093 # Best one so far, save it but keep looking for a better one
4094 ac_cv_path_GREP="$ac_path_GREP"
4095 ac_path_GREP_max=$ac_count
4097 # 10*(2^10) chars as input seems more than enough
4098 test $ac_count -gt 10 && break
4100 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4103 $ac_path_GREP_found && break 3
4108 if test -z "$ac_cv_path_GREP"; then
4109 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4112 ac_cv_path_GREP=$GREP
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4117 $as_echo "$ac_cv_path_GREP" >&6; }
4118 GREP="$ac_cv_path_GREP"
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4122 $as_echo_n "checking for egrep... " >&6; }
4123 if ${ac_cv_path_EGREP+:} false; then :
4124 $as_echo_n "(cached) " >&6
4126 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4127 then ac_cv_path_EGREP="$GREP -E"
4129 if test -z "$EGREP"; then
4130 ac_path_EGREP_found=false
4131 # Loop through the user's path and test for each of PROGNAME-LIST
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4136 test -z "$as_dir" && as_dir=.
4137 for ac_prog in egrep; do
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4140 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4141 # Check for GNU ac_path_EGREP and select it if it is found.
4142 # Check for GNU $ac_path_EGREP
4143 case `"$ac_path_EGREP" --version 2>&1` in
4145 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4148 $as_echo_n 0123456789 >"conftest.in"
4151 cat "conftest.in" "conftest.in" >"conftest.tmp"
4152 mv "conftest.tmp" "conftest.in"
4153 cp "conftest.in" "conftest.nl"
4154 $as_echo 'EGREP' >> "conftest.nl"
4155 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4156 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4157 as_fn_arith $ac_count + 1 && ac_count=$as_val
4158 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4159 # Best one so far, save it but keep looking for a better one
4160 ac_cv_path_EGREP="$ac_path_EGREP"
4161 ac_path_EGREP_max=$ac_count
4163 # 10*(2^10) chars as input seems more than enough
4164 test $ac_count -gt 10 && break
4166 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4169 $ac_path_EGREP_found && break 3
4174 if test -z "$ac_cv_path_EGREP"; then
4175 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4178 ac_cv_path_EGREP=$EGREP
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4184 $as_echo "$ac_cv_path_EGREP" >&6; }
4185 EGREP="$ac_cv_path_EGREP"
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4189 $as_echo_n "checking for ANSI C header files... " >&6; }
4190 if ${ac_cv_header_stdc+:} false; then :
4191 $as_echo_n "(cached) " >&6
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4208 if ac_fn_c_try_compile "$LINENO"; then :
4209 ac_cv_header_stdc=yes
4211 ac_cv_header_stdc=no
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 if test $ac_cv_header_stdc = yes; then
4216 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h. */
4222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4223 $EGREP "memchr" >/dev/null 2>&1; then :
4226 ac_cv_header_stdc=no
4232 if test $ac_cv_header_stdc = yes; then
4233 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4240 $EGREP "free" >/dev/null 2>&1; then :
4243 ac_cv_header_stdc=no
4249 if test $ac_cv_header_stdc = yes; then
4250 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4251 if test "$cross_compiling" = yes; then :
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4258 #if ((' ' & 0x0FF) == 0x020)
4259 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4260 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4262 # define ISLOWER(c) \
4263 (('a' <= (c) && (c) <= 'i') \
4264 || ('j' <= (c) && (c) <= 'r') \
4265 || ('s' <= (c) && (c) <= 'z'))
4266 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4269 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4274 for (i = 0; i < 256; i++)
4275 if (XOR (islower (i), ISLOWER (i))
4276 || toupper (i) != TOUPPER (i))
4281 if ac_fn_c_try_run "$LINENO"; then :
4284 ac_cv_header_stdc=no
4286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4287 conftest.$ac_objext conftest.beam conftest.$ac_ext
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4293 $as_echo "$ac_cv_header_stdc" >&6; }
4294 if test $ac_cv_header_stdc = yes; then
4296 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4300 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4301 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4302 inttypes.h stdint.h unistd.h
4304 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4305 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4307 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4308 cat >>confdefs.h <<_ACEOF
4309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4321 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4322 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4328 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4329 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4335 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4336 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4349 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4350 if test -n "$ac_tool_prefix"; then
4351 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4352 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4354 $as_echo_n "checking for $ac_word... " >&6; }
4355 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4356 $as_echo_n "(cached) " >&6
4360 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4370 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4382 if test -n "$PKG_CONFIG"; then
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4384 $as_echo "$PKG_CONFIG" >&6; }
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 $as_echo "no" >&6; }
4392 if test -z "$ac_cv_path_PKG_CONFIG"; then
4393 ac_pt_PKG_CONFIG=$PKG_CONFIG
4394 # Extract the first word of "pkg-config", so it can be a program name with args.
4395 set dummy pkg-config; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4399 $as_echo_n "(cached) " >&6
4401 case $ac_pt_PKG_CONFIG in
4403 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4413 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4425 if test -n "$ac_pt_PKG_CONFIG"; then
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4427 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430 $as_echo "no" >&6; }
4433 if test "x$ac_pt_PKG_CONFIG" = x; then
4436 case $cross_compiling:$ac_tool_warned in
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4440 ac_tool_warned=yes ;;
4442 PKG_CONFIG=$ac_pt_PKG_CONFIG
4445 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4449 if test -n "$PKG_CONFIG"; then
4450 _pkg_min_version=0.9.0
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4452 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4453 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4455 $as_echo "yes" >&6; }
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4458 $as_echo "no" >&6; }
4462 # Make sure we can run config.sub.
4463 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4464 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4467 $as_echo_n "checking build system type... " >&6; }
4468 if ${ac_cv_build+:} false; then :
4469 $as_echo_n "(cached) " >&6
4471 ac_build_alias=$build_alias
4472 test "x$ac_build_alias" = x &&
4473 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4474 test "x$ac_build_alias" = x &&
4475 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4476 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4477 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4481 $as_echo "$ac_cv_build" >&6; }
4482 case $ac_cv_build in
4484 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4487 ac_save_IFS=$IFS; IFS='-'
4493 # Remember, the first character of IFS is used to create $*,
4494 # except with old shells:
4497 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4501 $as_echo_n "checking host system type... " >&6; }
4502 if ${ac_cv_host+:} false; then :
4503 $as_echo_n "(cached) " >&6
4505 if test "x$host_alias" = x; then
4506 ac_cv_host=$ac_cv_build
4508 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4509 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4514 $as_echo "$ac_cv_host" >&6; }
4517 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4520 ac_save_IFS=$IFS; IFS='-'
4526 # Remember, the first character of IFS is used to create $*,
4527 # except with old shells:
4530 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4534 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4535 if ${ac_cv_path_SED+:} false; then :
4536 $as_echo_n "(cached) " >&6
4538 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4539 for ac_i in 1 2 3 4 5 6 7; do
4540 ac_script="$ac_script$as_nl$ac_script"
4542 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4543 { ac_script=; unset ac_script;}
4544 if test -z "$SED"; then
4545 ac_path_SED_found=false
4546 # Loop through the user's path and test for each of PROGNAME-LIST
4547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 test -z "$as_dir" && as_dir=.
4552 for ac_prog in sed gsed; do
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4555 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4556 # Check for GNU ac_path_SED and select it if it is found.
4557 # Check for GNU $ac_path_SED
4558 case `"$ac_path_SED" --version 2>&1` in
4560 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4563 $as_echo_n 0123456789 >"conftest.in"
4566 cat "conftest.in" "conftest.in" >"conftest.tmp"
4567 mv "conftest.tmp" "conftest.in"
4568 cp "conftest.in" "conftest.nl"
4569 $as_echo '' >> "conftest.nl"
4570 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4571 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4572 as_fn_arith $ac_count + 1 && ac_count=$as_val
4573 if test $ac_count -gt ${ac_path_SED_max-0}; then
4574 # Best one so far, save it but keep looking for a better one
4575 ac_cv_path_SED="$ac_path_SED"
4576 ac_path_SED_max=$ac_count
4578 # 10*(2^10) chars as input seems more than enough
4579 test $ac_count -gt 10 && break
4581 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4584 $ac_path_SED_found && break 3
4589 if test -z "$ac_cv_path_SED"; then
4590 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4598 $as_echo "$ac_cv_path_SED" >&6; }
4599 SED="$ac_cv_path_SED"
4607 # Check whether --enable-selective-werror was given.
4608 if test "${enable_selective_werror+set}" = set; then :
4609 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4611 SELECTIVE_WERROR=yes
4618 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4619 if test "x$SUNCC" = "xyes"; then
4625 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4639 xorg_testset_save_CFLAGS="$CFLAGS"
4641 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4644 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4645 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4646 $as_echo_n "(cached) " >&6
4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h. */
4652 if ac_fn_c_try_compile "$LINENO"; then :
4653 xorg_cv_cc_flag_unknown_warning_option=yes
4655 xorg_cv_cc_flag_unknown_warning_option=no
4657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4660 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4661 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4662 CFLAGS="$xorg_testset_save_CFLAGS"
4665 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4671 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4672 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4673 $as_echo_n "(cached) " >&6
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h. */
4679 if ac_fn_c_try_compile "$LINENO"; then :
4680 xorg_cv_cc_flag_unused_command_line_argument=yes
4682 xorg_cv_cc_flag_unused_command_line_argument=no
4684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4687 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4688 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4689 CFLAGS="$xorg_testset_save_CFLAGS"
4694 if test $found = "no" ; then
4695 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4699 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4703 CFLAGS="$CFLAGS -Wall"
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4706 $as_echo_n "checking if $CC supports-Wall... " >&6; }
4707 cacheid=xorg_cv_cc_flag__Wall
4708 if eval \${$cacheid+:} false; then :
4709 $as_echo_n "(cached) " >&6
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4722 if ac_fn_c_try_link "$LINENO"; then :
4727 rm -f core conftest.err conftest.$ac_objext \
4728 conftest$ac_exeext conftest.$ac_ext
4732 CFLAGS="$xorg_testset_save_CFLAGS"
4734 eval supported=\$$cacheid
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4736 $as_echo "$supported" >&6; }
4737 if test "$supported" = "yes" ; then
4738 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4757 xorg_testset_save_CFLAGS="$CFLAGS"
4759 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4762 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4763 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4764 $as_echo_n "(cached) " >&6
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4770 if ac_fn_c_try_compile "$LINENO"; then :
4771 xorg_cv_cc_flag_unknown_warning_option=yes
4773 xorg_cv_cc_flag_unknown_warning_option=no
4775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4778 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4779 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4780 CFLAGS="$xorg_testset_save_CFLAGS"
4783 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4789 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4790 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4791 $as_echo_n "(cached) " >&6
4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h. */
4797 if ac_fn_c_try_compile "$LINENO"; then :
4798 xorg_cv_cc_flag_unused_command_line_argument=yes
4800 xorg_cv_cc_flag_unused_command_line_argument=no
4802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4805 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4806 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4807 CFLAGS="$xorg_testset_save_CFLAGS"
4812 if test $found = "no" ; then
4813 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4817 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4821 CFLAGS="$CFLAGS -Wpointer-arith"
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4824 $as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
4825 cacheid=xorg_cv_cc_flag__Wpointer_arith
4826 if eval \${$cacheid+:} false; then :
4827 $as_echo_n "(cached) " >&6
4829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h. */
4840 if ac_fn_c_try_link "$LINENO"; then :
4845 rm -f core conftest.err conftest.$ac_objext \
4846 conftest$ac_exeext conftest.$ac_ext
4850 CFLAGS="$xorg_testset_save_CFLAGS"
4852 eval supported=\$$cacheid
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4854 $as_echo "$supported" >&6; }
4855 if test "$supported" = "yes" ; then
4856 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4875 xorg_testset_save_CFLAGS="$CFLAGS"
4877 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4880 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4881 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4882 $as_echo_n "(cached) " >&6
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4888 if ac_fn_c_try_compile "$LINENO"; then :
4889 xorg_cv_cc_flag_unknown_warning_option=yes
4891 xorg_cv_cc_flag_unknown_warning_option=no
4893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4896 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4897 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4898 CFLAGS="$xorg_testset_save_CFLAGS"
4901 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4907 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4908 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4909 $as_echo_n "(cached) " >&6
4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h. */
4915 if ac_fn_c_try_compile "$LINENO"; then :
4916 xorg_cv_cc_flag_unused_command_line_argument=yes
4918 xorg_cv_cc_flag_unused_command_line_argument=no
4920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4923 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4924 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4925 CFLAGS="$xorg_testset_save_CFLAGS"
4930 if test $found = "no" ; then
4931 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4935 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4939 CFLAGS="$CFLAGS -Wmissing-declarations"
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
4942 $as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
4943 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4944 if eval \${$cacheid+:} false; then :
4945 $as_echo_n "(cached) " >&6
4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h. */
4958 if ac_fn_c_try_link "$LINENO"; then :
4963 rm -f core conftest.err conftest.$ac_objext \
4964 conftest$ac_exeext conftest.$ac_ext
4968 CFLAGS="$xorg_testset_save_CFLAGS"
4970 eval supported=\$$cacheid
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4972 $as_echo "$supported" >&6; }
4973 if test "$supported" = "yes" ; then
4974 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4993 xorg_testset_save_CFLAGS="$CFLAGS"
4995 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4998 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4999 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5000 $as_echo_n "(cached) " >&6
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5006 if ac_fn_c_try_compile "$LINENO"; then :
5007 xorg_cv_cc_flag_unknown_warning_option=yes
5009 xorg_cv_cc_flag_unknown_warning_option=no
5011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5014 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5015 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5016 CFLAGS="$xorg_testset_save_CFLAGS"
5019 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5025 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5026 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5027 $as_echo_n "(cached) " >&6
5029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5030 /* end confdefs.h. */
5033 if ac_fn_c_try_compile "$LINENO"; then :
5034 xorg_cv_cc_flag_unused_command_line_argument=yes
5036 xorg_cv_cc_flag_unused_command_line_argument=no
5038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5041 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5042 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5043 CFLAGS="$xorg_testset_save_CFLAGS"
5048 if test $found = "no" ; then
5049 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5053 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5057 CFLAGS="$CFLAGS -Wformat=2"
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
5060 $as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
5061 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5062 if eval \${$cacheid+:} false; then :
5063 $as_echo_n "(cached) " >&6
5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5076 if ac_fn_c_try_link "$LINENO"; then :
5081 rm -f core conftest.err conftest.$ac_objext \
5082 conftest$ac_exeext conftest.$ac_ext
5086 CFLAGS="$xorg_testset_save_CFLAGS"
5088 eval supported=\$$cacheid
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5090 $as_echo "$supported" >&6; }
5091 if test "$supported" = "yes" ; then
5092 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5097 if test $found = "no" ; then
5098 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5102 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5106 CFLAGS="$CFLAGS -Wformat"
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
5109 $as_echo_n "checking if $CC supports-Wformat... " >&6; }
5110 cacheid=xorg_cv_cc_flag__Wformat
5111 if eval \${$cacheid+:} false; then :
5112 $as_echo_n "(cached) " >&6
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5125 if ac_fn_c_try_link "$LINENO"; then :
5130 rm -f core conftest.err conftest.$ac_objext \
5131 conftest$ac_exeext conftest.$ac_ext
5135 CFLAGS="$xorg_testset_save_CFLAGS"
5137 eval supported=\$$cacheid
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5139 $as_echo "$supported" >&6; }
5140 if test "$supported" = "yes" ; then
5141 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5162 xorg_testset_save_CFLAGS="$CFLAGS"
5164 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5165 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5167 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5168 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5169 $as_echo_n "(cached) " >&6
5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h. */
5175 if ac_fn_c_try_compile "$LINENO"; then :
5176 xorg_cv_cc_flag_unknown_warning_option=yes
5178 xorg_cv_cc_flag_unknown_warning_option=no
5180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5183 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5184 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5185 CFLAGS="$xorg_testset_save_CFLAGS"
5188 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5194 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5195 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5196 $as_echo_n "(cached) " >&6
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5202 if ac_fn_c_try_compile "$LINENO"; then :
5203 xorg_cv_cc_flag_unused_command_line_argument=yes
5205 xorg_cv_cc_flag_unused_command_line_argument=no
5207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5210 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5211 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5212 CFLAGS="$xorg_testset_save_CFLAGS"
5217 if test $found = "no" ; then
5218 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5222 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5226 CFLAGS="$CFLAGS -Wstrict-prototypes"
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5229 $as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5230 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5231 if eval \${$cacheid+:} false; then :
5232 $as_echo_n "(cached) " >&6
5234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235 /* end confdefs.h. */
5245 if ac_fn_c_try_link "$LINENO"; then :
5250 rm -f core conftest.err conftest.$ac_objext \
5251 conftest$ac_exeext conftest.$ac_ext
5255 CFLAGS="$xorg_testset_save_CFLAGS"
5257 eval supported=\$$cacheid
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5259 $as_echo "$supported" >&6; }
5260 if test "$supported" = "yes" ; then
5261 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5280 xorg_testset_save_CFLAGS="$CFLAGS"
5282 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5285 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5286 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5287 $as_echo_n "(cached) " >&6
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5293 if ac_fn_c_try_compile "$LINENO"; then :
5294 xorg_cv_cc_flag_unknown_warning_option=yes
5296 xorg_cv_cc_flag_unknown_warning_option=no
5298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5301 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5302 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5303 CFLAGS="$xorg_testset_save_CFLAGS"
5306 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5312 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5313 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5314 $as_echo_n "(cached) " >&6
5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h. */
5320 if ac_fn_c_try_compile "$LINENO"; then :
5321 xorg_cv_cc_flag_unused_command_line_argument=yes
5323 xorg_cv_cc_flag_unused_command_line_argument=no
5325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5328 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5329 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5330 CFLAGS="$xorg_testset_save_CFLAGS"
5335 if test $found = "no" ; then
5336 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5340 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5344 CFLAGS="$CFLAGS -Wmissing-prototypes"
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5347 $as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5348 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5349 if eval \${$cacheid+:} false; then :
5350 $as_echo_n "(cached) " >&6
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5363 if ac_fn_c_try_link "$LINENO"; then :
5368 rm -f core conftest.err conftest.$ac_objext \
5369 conftest$ac_exeext conftest.$ac_ext
5373 CFLAGS="$xorg_testset_save_CFLAGS"
5375 eval supported=\$$cacheid
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5377 $as_echo "$supported" >&6; }
5378 if test "$supported" = "yes" ; then
5379 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5398 xorg_testset_save_CFLAGS="$CFLAGS"
5400 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5403 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5404 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5405 $as_echo_n "(cached) " >&6
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5411 if ac_fn_c_try_compile "$LINENO"; then :
5412 xorg_cv_cc_flag_unknown_warning_option=yes
5414 xorg_cv_cc_flag_unknown_warning_option=no
5416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5419 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5420 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5421 CFLAGS="$xorg_testset_save_CFLAGS"
5424 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5430 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5431 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5432 $as_echo_n "(cached) " >&6
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h. */
5438 if ac_fn_c_try_compile "$LINENO"; then :
5439 xorg_cv_cc_flag_unused_command_line_argument=yes
5441 xorg_cv_cc_flag_unused_command_line_argument=no
5443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5446 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5447 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5448 CFLAGS="$xorg_testset_save_CFLAGS"
5453 if test $found = "no" ; then
5454 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5458 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5462 CFLAGS="$CFLAGS -Wnested-externs"
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5465 $as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5466 cacheid=xorg_cv_cc_flag__Wnested_externs
5467 if eval \${$cacheid+:} false; then :
5468 $as_echo_n "(cached) " >&6
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5481 if ac_fn_c_try_link "$LINENO"; then :
5486 rm -f core conftest.err conftest.$ac_objext \
5487 conftest$ac_exeext conftest.$ac_ext
5491 CFLAGS="$xorg_testset_save_CFLAGS"
5493 eval supported=\$$cacheid
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5495 $as_echo "$supported" >&6; }
5496 if test "$supported" = "yes" ; then
5497 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5516 xorg_testset_save_CFLAGS="$CFLAGS"
5518 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5521 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5522 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5523 $as_echo_n "(cached) " >&6
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h. */
5529 if ac_fn_c_try_compile "$LINENO"; then :
5530 xorg_cv_cc_flag_unknown_warning_option=yes
5532 xorg_cv_cc_flag_unknown_warning_option=no
5534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5537 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5538 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5539 CFLAGS="$xorg_testset_save_CFLAGS"
5542 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5548 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5549 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5550 $as_echo_n "(cached) " >&6
5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h. */
5556 if ac_fn_c_try_compile "$LINENO"; then :
5557 xorg_cv_cc_flag_unused_command_line_argument=yes
5559 xorg_cv_cc_flag_unused_command_line_argument=no
5561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5564 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5565 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5566 CFLAGS="$xorg_testset_save_CFLAGS"
5571 if test $found = "no" ; then
5572 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5576 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5580 CFLAGS="$CFLAGS -Wbad-function-cast"
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5583 $as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5584 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5585 if eval \${$cacheid+:} false; then :
5586 $as_echo_n "(cached) " >&6
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5599 if ac_fn_c_try_link "$LINENO"; then :
5604 rm -f core conftest.err conftest.$ac_objext \
5605 conftest$ac_exeext conftest.$ac_ext
5609 CFLAGS="$xorg_testset_save_CFLAGS"
5611 eval supported=\$$cacheid
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5613 $as_echo "$supported" >&6; }
5614 if test "$supported" = "yes" ; then
5615 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5634 xorg_testset_save_CFLAGS="$CFLAGS"
5636 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5639 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5640 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5641 $as_echo_n "(cached) " >&6
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h. */
5647 if ac_fn_c_try_compile "$LINENO"; then :
5648 xorg_cv_cc_flag_unknown_warning_option=yes
5650 xorg_cv_cc_flag_unknown_warning_option=no
5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5655 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5656 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5657 CFLAGS="$xorg_testset_save_CFLAGS"
5660 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5666 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5667 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5668 $as_echo_n "(cached) " >&6
5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671 /* end confdefs.h. */
5674 if ac_fn_c_try_compile "$LINENO"; then :
5675 xorg_cv_cc_flag_unused_command_line_argument=yes
5677 xorg_cv_cc_flag_unused_command_line_argument=no
5679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5682 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5683 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5684 CFLAGS="$xorg_testset_save_CFLAGS"
5689 if test $found = "no" ; then
5690 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5694 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5698 CFLAGS="$CFLAGS -Wold-style-definition"
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5701 $as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5702 cacheid=xorg_cv_cc_flag__Wold_style_definition
5703 if eval \${$cacheid+:} false; then :
5704 $as_echo_n "(cached) " >&6
5706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h. */
5717 if ac_fn_c_try_link "$LINENO"; then :
5722 rm -f core conftest.err conftest.$ac_objext \
5723 conftest$ac_exeext conftest.$ac_ext
5727 CFLAGS="$xorg_testset_save_CFLAGS"
5729 eval supported=\$$cacheid
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5731 $as_echo "$supported" >&6; }
5732 if test "$supported" = "yes" ; then
5733 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5752 xorg_testset_save_CFLAGS="$CFLAGS"
5754 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5757 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5758 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5759 $as_echo_n "(cached) " >&6
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5765 if ac_fn_c_try_compile "$LINENO"; then :
5766 xorg_cv_cc_flag_unknown_warning_option=yes
5768 xorg_cv_cc_flag_unknown_warning_option=no
5770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5773 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5775 CFLAGS="$xorg_testset_save_CFLAGS"
5778 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5784 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5785 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5786 $as_echo_n "(cached) " >&6
5788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789 /* end confdefs.h. */
5792 if ac_fn_c_try_compile "$LINENO"; then :
5793 xorg_cv_cc_flag_unused_command_line_argument=yes
5795 xorg_cv_cc_flag_unused_command_line_argument=no
5797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5800 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5801 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5802 CFLAGS="$xorg_testset_save_CFLAGS"
5807 if test $found = "no" ; then
5808 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5812 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5816 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5819 $as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
5820 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5821 if eval \${$cacheid+:} false; then :
5822 $as_echo_n "(cached) " >&6
5824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825 /* end confdefs.h. */
5835 if ac_fn_c_try_link "$LINENO"; then :
5840 rm -f core conftest.err conftest.$ac_objext \
5841 conftest$ac_exeext conftest.$ac_ext
5845 CFLAGS="$xorg_testset_save_CFLAGS"
5847 eval supported=\$$cacheid
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5849 $as_echo "$supported" >&6; }
5850 if test "$supported" = "yes" ; then
5851 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5860 # This chunk adds additional warnings that could catch undesired effects.
5874 xorg_testset_save_CFLAGS="$CFLAGS"
5876 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5879 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5880 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5881 $as_echo_n "(cached) " >&6
5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884 /* end confdefs.h. */
5887 if ac_fn_c_try_compile "$LINENO"; then :
5888 xorg_cv_cc_flag_unknown_warning_option=yes
5890 xorg_cv_cc_flag_unknown_warning_option=no
5892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5895 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5896 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5897 CFLAGS="$xorg_testset_save_CFLAGS"
5900 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5906 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5907 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5908 $as_echo_n "(cached) " >&6
5910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911 /* end confdefs.h. */
5914 if ac_fn_c_try_compile "$LINENO"; then :
5915 xorg_cv_cc_flag_unused_command_line_argument=yes
5917 xorg_cv_cc_flag_unused_command_line_argument=no
5919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5922 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5923 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5924 CFLAGS="$xorg_testset_save_CFLAGS"
5929 if test $found = "no" ; then
5930 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5931 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5934 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5938 CFLAGS="$CFLAGS -Wunused"
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
5941 $as_echo_n "checking if $CC supports-Wunused... " >&6; }
5942 cacheid=xorg_cv_cc_flag__Wunused
5943 if eval \${$cacheid+:} false; then :
5944 $as_echo_n "(cached) " >&6
5946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947 /* end confdefs.h. */
5957 if ac_fn_c_try_link "$LINENO"; then :
5962 rm -f core conftest.err conftest.$ac_objext \
5963 conftest$ac_exeext conftest.$ac_ext
5967 CFLAGS="$xorg_testset_save_CFLAGS"
5969 eval supported=\$$cacheid
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5971 $as_echo "$supported" >&6; }
5972 if test "$supported" = "yes" ; then
5973 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5992 xorg_testset_save_CFLAGS="$CFLAGS"
5994 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5997 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5998 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5999 $as_echo_n "(cached) " >&6
6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6005 if ac_fn_c_try_compile "$LINENO"; then :
6006 xorg_cv_cc_flag_unknown_warning_option=yes
6008 xorg_cv_cc_flag_unknown_warning_option=no
6010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6013 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6015 CFLAGS="$xorg_testset_save_CFLAGS"
6018 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6024 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6025 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6026 $as_echo_n "(cached) " >&6
6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h. */
6032 if ac_fn_c_try_compile "$LINENO"; then :
6033 xorg_cv_cc_flag_unused_command_line_argument=yes
6035 xorg_cv_cc_flag_unused_command_line_argument=no
6037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6040 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6041 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6042 CFLAGS="$xorg_testset_save_CFLAGS"
6047 if test $found = "no" ; then
6048 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6052 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6056 CFLAGS="$CFLAGS -Wuninitialized"
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
6059 $as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
6060 cacheid=xorg_cv_cc_flag__Wuninitialized
6061 if eval \${$cacheid+:} false; then :
6062 $as_echo_n "(cached) " >&6
6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065 /* end confdefs.h. */
6075 if ac_fn_c_try_link "$LINENO"; then :
6080 rm -f core conftest.err conftest.$ac_objext \
6081 conftest$ac_exeext conftest.$ac_ext
6085 CFLAGS="$xorg_testset_save_CFLAGS"
6087 eval supported=\$$cacheid
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6089 $as_echo "$supported" >&6; }
6090 if test "$supported" = "yes" ; then
6091 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6110 xorg_testset_save_CFLAGS="$CFLAGS"
6112 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6115 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6116 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6117 $as_echo_n "(cached) " >&6
6119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120 /* end confdefs.h. */
6123 if ac_fn_c_try_compile "$LINENO"; then :
6124 xorg_cv_cc_flag_unknown_warning_option=yes
6126 xorg_cv_cc_flag_unknown_warning_option=no
6128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6131 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6133 CFLAGS="$xorg_testset_save_CFLAGS"
6136 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6142 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6143 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6144 $as_echo_n "(cached) " >&6
6146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6147 /* end confdefs.h. */
6150 if ac_fn_c_try_compile "$LINENO"; then :
6151 xorg_cv_cc_flag_unused_command_line_argument=yes
6153 xorg_cv_cc_flag_unused_command_line_argument=no
6155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6158 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6160 CFLAGS="$xorg_testset_save_CFLAGS"
6165 if test $found = "no" ; then
6166 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6170 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6174 CFLAGS="$CFLAGS -Wshadow"
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6177 $as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6178 cacheid=xorg_cv_cc_flag__Wshadow
6179 if eval \${$cacheid+:} false; then :
6180 $as_echo_n "(cached) " >&6
6182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183 /* end confdefs.h. */
6193 if ac_fn_c_try_link "$LINENO"; then :
6198 rm -f core conftest.err conftest.$ac_objext \
6199 conftest$ac_exeext conftest.$ac_ext
6203 CFLAGS="$xorg_testset_save_CFLAGS"
6205 eval supported=\$$cacheid
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6207 $as_echo "$supported" >&6; }
6208 if test "$supported" = "yes" ; then
6209 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6228 xorg_testset_save_CFLAGS="$CFLAGS"
6230 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6233 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6234 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6235 $as_echo_n "(cached) " >&6
6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238 /* end confdefs.h. */
6241 if ac_fn_c_try_compile "$LINENO"; then :
6242 xorg_cv_cc_flag_unknown_warning_option=yes
6244 xorg_cv_cc_flag_unknown_warning_option=no
6246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6249 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6250 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6251 CFLAGS="$xorg_testset_save_CFLAGS"
6254 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6260 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6261 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6262 $as_echo_n "(cached) " >&6
6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6268 if ac_fn_c_try_compile "$LINENO"; then :
6269 xorg_cv_cc_flag_unused_command_line_argument=yes
6271 xorg_cv_cc_flag_unused_command_line_argument=no
6273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6276 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6277 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6278 CFLAGS="$xorg_testset_save_CFLAGS"
6283 if test $found = "no" ; then
6284 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6288 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6292 CFLAGS="$CFLAGS -Wcast-qual"
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6295 $as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6296 cacheid=xorg_cv_cc_flag__Wcast_qual
6297 if eval \${$cacheid+:} false; then :
6298 $as_echo_n "(cached) " >&6
6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301 /* end confdefs.h. */
6311 if ac_fn_c_try_link "$LINENO"; then :
6316 rm -f core conftest.err conftest.$ac_objext \
6317 conftest$ac_exeext conftest.$ac_ext
6321 CFLAGS="$xorg_testset_save_CFLAGS"
6323 eval supported=\$$cacheid
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6325 $as_echo "$supported" >&6; }
6326 if test "$supported" = "yes" ; then
6327 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6346 xorg_testset_save_CFLAGS="$CFLAGS"
6348 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6351 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6352 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6353 $as_echo_n "(cached) " >&6
6355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356 /* end confdefs.h. */
6359 if ac_fn_c_try_compile "$LINENO"; then :
6360 xorg_cv_cc_flag_unknown_warning_option=yes
6362 xorg_cv_cc_flag_unknown_warning_option=no
6364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6367 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6368 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6369 CFLAGS="$xorg_testset_save_CFLAGS"
6372 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6378 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6379 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6380 $as_echo_n "(cached) " >&6
6382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383 /* end confdefs.h. */
6386 if ac_fn_c_try_compile "$LINENO"; then :
6387 xorg_cv_cc_flag_unused_command_line_argument=yes
6389 xorg_cv_cc_flag_unused_command_line_argument=no
6391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6394 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6395 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6396 CFLAGS="$xorg_testset_save_CFLAGS"
6401 if test $found = "no" ; then
6402 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6406 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6410 CFLAGS="$CFLAGS -Wmissing-noreturn"
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6413 $as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6414 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6415 if eval \${$cacheid+:} false; then :
6416 $as_echo_n "(cached) " >&6
6418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h. */
6429 if ac_fn_c_try_link "$LINENO"; then :
6434 rm -f core conftest.err conftest.$ac_objext \
6435 conftest$ac_exeext conftest.$ac_ext
6439 CFLAGS="$xorg_testset_save_CFLAGS"
6441 eval supported=\$$cacheid
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6443 $as_echo "$supported" >&6; }
6444 if test "$supported" = "yes" ; then
6445 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6464 xorg_testset_save_CFLAGS="$CFLAGS"
6466 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6469 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6470 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6471 $as_echo_n "(cached) " >&6
6473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h. */
6477 if ac_fn_c_try_compile "$LINENO"; then :
6478 xorg_cv_cc_flag_unknown_warning_option=yes
6480 xorg_cv_cc_flag_unknown_warning_option=no
6482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6485 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6486 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6487 CFLAGS="$xorg_testset_save_CFLAGS"
6490 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6496 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6497 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6498 $as_echo_n "(cached) " >&6
6500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501 /* end confdefs.h. */
6504 if ac_fn_c_try_compile "$LINENO"; then :
6505 xorg_cv_cc_flag_unused_command_line_argument=yes
6507 xorg_cv_cc_flag_unused_command_line_argument=no
6509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6512 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6513 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6514 CFLAGS="$xorg_testset_save_CFLAGS"
6519 if test $found = "no" ; then
6520 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6524 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6528 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6531 $as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6532 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6533 if eval \${$cacheid+:} false; then :
6534 $as_echo_n "(cached) " >&6
6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6547 if ac_fn_c_try_link "$LINENO"; then :
6552 rm -f core conftest.err conftest.$ac_objext \
6553 conftest$ac_exeext conftest.$ac_ext
6557 CFLAGS="$xorg_testset_save_CFLAGS"
6559 eval supported=\$$cacheid
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6561 $as_echo "$supported" >&6; }
6562 if test "$supported" = "yes" ; then
6563 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6582 xorg_testset_save_CFLAGS="$CFLAGS"
6584 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6587 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6588 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6589 $as_echo_n "(cached) " >&6
6591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6592 /* end confdefs.h. */
6595 if ac_fn_c_try_compile "$LINENO"; then :
6596 xorg_cv_cc_flag_unknown_warning_option=yes
6598 xorg_cv_cc_flag_unknown_warning_option=no
6600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6603 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6604 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6605 CFLAGS="$xorg_testset_save_CFLAGS"
6608 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6614 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6615 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6616 $as_echo_n "(cached) " >&6
6618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6619 /* end confdefs.h. */
6622 if ac_fn_c_try_compile "$LINENO"; then :
6623 xorg_cv_cc_flag_unused_command_line_argument=yes
6625 xorg_cv_cc_flag_unused_command_line_argument=no
6627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6630 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6631 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6632 CFLAGS="$xorg_testset_save_CFLAGS"
6637 if test $found = "no" ; then
6638 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6642 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6646 CFLAGS="$CFLAGS -Wredundant-decls"
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6649 $as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6650 cacheid=xorg_cv_cc_flag__Wredundant_decls
6651 if eval \${$cacheid+:} false; then :
6652 $as_echo_n "(cached) " >&6
6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h. */
6665 if ac_fn_c_try_link "$LINENO"; then :
6670 rm -f core conftest.err conftest.$ac_objext \
6671 conftest$ac_exeext conftest.$ac_ext
6675 CFLAGS="$xorg_testset_save_CFLAGS"
6677 eval supported=\$$cacheid
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6679 $as_echo "$supported" >&6; }
6680 if test "$supported" = "yes" ; then
6681 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6688 # These are currently disabled because they are noisy. They will be enabled
6689 # in the future once the codebase is sufficiently modernized to silence
6690 # them. For now, I don't want them to drown out the other warnings.
6691 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6692 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6693 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6695 # Turn some warnings into errors, so we don't accidently get successful builds
6696 # when there are problems that should be fixed.
6698 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6712 xorg_testset_save_CFLAGS="$CFLAGS"
6714 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6717 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6718 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6719 $as_echo_n "(cached) " >&6
6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722 /* end confdefs.h. */
6725 if ac_fn_c_try_compile "$LINENO"; then :
6726 xorg_cv_cc_flag_unknown_warning_option=yes
6728 xorg_cv_cc_flag_unknown_warning_option=no
6730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6733 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6734 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6735 CFLAGS="$xorg_testset_save_CFLAGS"
6738 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6744 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6745 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6746 $as_echo_n "(cached) " >&6
6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6752 if ac_fn_c_try_compile "$LINENO"; then :
6753 xorg_cv_cc_flag_unused_command_line_argument=yes
6755 xorg_cv_cc_flag_unused_command_line_argument=no
6757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6760 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6761 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6762 CFLAGS="$xorg_testset_save_CFLAGS"
6767 if test $found = "no" ; then
6768 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6772 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6776 CFLAGS="$CFLAGS -Werror=implicit"
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6779 $as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6780 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6781 if eval \${$cacheid+:} false; then :
6782 $as_echo_n "(cached) " >&6
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6795 if ac_fn_c_try_link "$LINENO"; then :
6800 rm -f core conftest.err conftest.$ac_objext \
6801 conftest$ac_exeext conftest.$ac_ext
6805 CFLAGS="$xorg_testset_save_CFLAGS"
6807 eval supported=\$$cacheid
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6809 $as_echo "$supported" >&6; }
6810 if test "$supported" = "yes" ; then
6811 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6816 if test $found = "no" ; then
6817 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6821 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6825 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6828 $as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6829 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6830 if eval \${$cacheid+:} false; then :
6831 $as_echo_n "(cached) " >&6
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6844 if ac_fn_c_try_link "$LINENO"; then :
6849 rm -f core conftest.err conftest.$ac_objext \
6850 conftest$ac_exeext conftest.$ac_ext
6854 CFLAGS="$xorg_testset_save_CFLAGS"
6856 eval supported=\$$cacheid
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6858 $as_echo "$supported" >&6; }
6859 if test "$supported" = "yes" ; then
6860 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6879 xorg_testset_save_CFLAGS="$CFLAGS"
6881 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6884 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6885 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6886 $as_echo_n "(cached) " >&6
6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6892 if ac_fn_c_try_compile "$LINENO"; then :
6893 xorg_cv_cc_flag_unknown_warning_option=yes
6895 xorg_cv_cc_flag_unknown_warning_option=no
6897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6900 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6901 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6902 CFLAGS="$xorg_testset_save_CFLAGS"
6905 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6911 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6912 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6913 $as_echo_n "(cached) " >&6
6915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916 /* end confdefs.h. */
6919 if ac_fn_c_try_compile "$LINENO"; then :
6920 xorg_cv_cc_flag_unused_command_line_argument=yes
6922 xorg_cv_cc_flag_unused_command_line_argument=no
6924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6927 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6928 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6929 CFLAGS="$xorg_testset_save_CFLAGS"
6934 if test $found = "no" ; then
6935 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6939 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6943 CFLAGS="$CFLAGS -Werror=nonnull"
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
6946 $as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
6947 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6948 if eval \${$cacheid+:} false; then :
6949 $as_echo_n "(cached) " >&6
6951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952 /* end confdefs.h. */
6962 if ac_fn_c_try_link "$LINENO"; then :
6967 rm -f core conftest.err conftest.$ac_objext \
6968 conftest$ac_exeext conftest.$ac_ext
6972 CFLAGS="$xorg_testset_save_CFLAGS"
6974 eval supported=\$$cacheid
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6976 $as_echo "$supported" >&6; }
6977 if test "$supported" = "yes" ; then
6978 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6997 xorg_testset_save_CFLAGS="$CFLAGS"
6999 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7000 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7002 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7003 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7004 $as_echo_n "(cached) " >&6
7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h. */
7010 if ac_fn_c_try_compile "$LINENO"; then :
7011 xorg_cv_cc_flag_unknown_warning_option=yes
7013 xorg_cv_cc_flag_unknown_warning_option=no
7015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7018 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7019 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7020 CFLAGS="$xorg_testset_save_CFLAGS"
7023 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7029 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7030 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7031 $as_echo_n "(cached) " >&6
7033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034 /* end confdefs.h. */
7037 if ac_fn_c_try_compile "$LINENO"; then :
7038 xorg_cv_cc_flag_unused_command_line_argument=yes
7040 xorg_cv_cc_flag_unused_command_line_argument=no
7042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7045 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7046 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7047 CFLAGS="$xorg_testset_save_CFLAGS"
7052 if test $found = "no" ; then
7053 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7057 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7061 CFLAGS="$CFLAGS -Werror=init-self"
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
7064 $as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
7065 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7066 if eval \${$cacheid+:} false; then :
7067 $as_echo_n "(cached) " >&6
7069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h. */
7080 if ac_fn_c_try_link "$LINENO"; then :
7085 rm -f core conftest.err conftest.$ac_objext \
7086 conftest$ac_exeext conftest.$ac_ext
7090 CFLAGS="$xorg_testset_save_CFLAGS"
7092 eval supported=\$$cacheid
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7094 $as_echo "$supported" >&6; }
7095 if test "$supported" = "yes" ; then
7096 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7115 xorg_testset_save_CFLAGS="$CFLAGS"
7117 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7120 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7121 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7122 $as_echo_n "(cached) " >&6
7124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7125 /* end confdefs.h. */
7128 if ac_fn_c_try_compile "$LINENO"; then :
7129 xorg_cv_cc_flag_unknown_warning_option=yes
7131 xorg_cv_cc_flag_unknown_warning_option=no
7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7136 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7137 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7138 CFLAGS="$xorg_testset_save_CFLAGS"
7141 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7147 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7148 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7149 $as_echo_n "(cached) " >&6
7151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152 /* end confdefs.h. */
7155 if ac_fn_c_try_compile "$LINENO"; then :
7156 xorg_cv_cc_flag_unused_command_line_argument=yes
7158 xorg_cv_cc_flag_unused_command_line_argument=no
7160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7163 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7164 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7165 CFLAGS="$xorg_testset_save_CFLAGS"
7170 if test $found = "no" ; then
7171 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7175 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7179 CFLAGS="$CFLAGS -Werror=main"
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7182 $as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7183 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7184 if eval \${$cacheid+:} false; then :
7185 $as_echo_n "(cached) " >&6
7187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h. */
7198 if ac_fn_c_try_link "$LINENO"; then :
7203 rm -f core conftest.err conftest.$ac_objext \
7204 conftest$ac_exeext conftest.$ac_ext
7208 CFLAGS="$xorg_testset_save_CFLAGS"
7210 eval supported=\$$cacheid
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7212 $as_echo "$supported" >&6; }
7213 if test "$supported" = "yes" ; then
7214 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7233 xorg_testset_save_CFLAGS="$CFLAGS"
7235 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7238 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7239 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7240 $as_echo_n "(cached) " >&6
7242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243 /* end confdefs.h. */
7246 if ac_fn_c_try_compile "$LINENO"; then :
7247 xorg_cv_cc_flag_unknown_warning_option=yes
7249 xorg_cv_cc_flag_unknown_warning_option=no
7251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7254 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7255 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7256 CFLAGS="$xorg_testset_save_CFLAGS"
7259 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7261 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7265 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7266 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7267 $as_echo_n "(cached) " >&6
7269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h. */
7273 if ac_fn_c_try_compile "$LINENO"; then :
7274 xorg_cv_cc_flag_unused_command_line_argument=yes
7276 xorg_cv_cc_flag_unused_command_line_argument=no
7278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7281 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7282 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7283 CFLAGS="$xorg_testset_save_CFLAGS"
7288 if test $found = "no" ; then
7289 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7293 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7297 CFLAGS="$CFLAGS -Werror=missing-braces"
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7300 $as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7301 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7302 if eval \${$cacheid+:} false; then :
7303 $as_echo_n "(cached) " >&6
7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h. */
7316 if ac_fn_c_try_link "$LINENO"; then :
7321 rm -f core conftest.err conftest.$ac_objext \
7322 conftest$ac_exeext conftest.$ac_ext
7326 CFLAGS="$xorg_testset_save_CFLAGS"
7328 eval supported=\$$cacheid
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7330 $as_echo "$supported" >&6; }
7331 if test "$supported" = "yes" ; then
7332 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7351 xorg_testset_save_CFLAGS="$CFLAGS"
7353 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7356 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7357 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7358 $as_echo_n "(cached) " >&6
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7364 if ac_fn_c_try_compile "$LINENO"; then :
7365 xorg_cv_cc_flag_unknown_warning_option=yes
7367 xorg_cv_cc_flag_unknown_warning_option=no
7369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7372 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7373 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7374 CFLAGS="$xorg_testset_save_CFLAGS"
7377 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7383 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7384 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7385 $as_echo_n "(cached) " >&6
7387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7388 /* end confdefs.h. */
7391 if ac_fn_c_try_compile "$LINENO"; then :
7392 xorg_cv_cc_flag_unused_command_line_argument=yes
7394 xorg_cv_cc_flag_unused_command_line_argument=no
7396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7399 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7400 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7401 CFLAGS="$xorg_testset_save_CFLAGS"
7406 if test $found = "no" ; then
7407 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7411 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7415 CFLAGS="$CFLAGS -Werror=sequence-point"
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7418 $as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7419 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7420 if eval \${$cacheid+:} false; then :
7421 $as_echo_n "(cached) " >&6
7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h. */
7434 if ac_fn_c_try_link "$LINENO"; then :
7439 rm -f core conftest.err conftest.$ac_objext \
7440 conftest$ac_exeext conftest.$ac_ext
7444 CFLAGS="$xorg_testset_save_CFLAGS"
7446 eval supported=\$$cacheid
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7448 $as_echo "$supported" >&6; }
7449 if test "$supported" = "yes" ; then
7450 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7469 xorg_testset_save_CFLAGS="$CFLAGS"
7471 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7474 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7475 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7476 $as_echo_n "(cached) " >&6
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h. */
7482 if ac_fn_c_try_compile "$LINENO"; then :
7483 xorg_cv_cc_flag_unknown_warning_option=yes
7485 xorg_cv_cc_flag_unknown_warning_option=no
7487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7490 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7491 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7492 CFLAGS="$xorg_testset_save_CFLAGS"
7495 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7501 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7502 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7503 $as_echo_n "(cached) " >&6
7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h. */
7509 if ac_fn_c_try_compile "$LINENO"; then :
7510 xorg_cv_cc_flag_unused_command_line_argument=yes
7512 xorg_cv_cc_flag_unused_command_line_argument=no
7514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7517 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7518 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7519 CFLAGS="$xorg_testset_save_CFLAGS"
7524 if test $found = "no" ; then
7525 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7529 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7533 CFLAGS="$CFLAGS -Werror=return-type"
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7536 $as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7537 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7538 if eval \${$cacheid+:} false; then :
7539 $as_echo_n "(cached) " >&6
7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h. */
7552 if ac_fn_c_try_link "$LINENO"; then :
7557 rm -f core conftest.err conftest.$ac_objext \
7558 conftest$ac_exeext conftest.$ac_ext
7562 CFLAGS="$xorg_testset_save_CFLAGS"
7564 eval supported=\$$cacheid
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7566 $as_echo "$supported" >&6; }
7567 if test "$supported" = "yes" ; then
7568 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7573 if test $found = "no" ; then
7574 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7578 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7582 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7585 $as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7586 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7587 if eval \${$cacheid+:} false; then :
7588 $as_echo_n "(cached) " >&6
7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h. */
7601 if ac_fn_c_try_link "$LINENO"; then :
7606 rm -f core conftest.err conftest.$ac_objext \
7607 conftest$ac_exeext conftest.$ac_ext
7611 CFLAGS="$xorg_testset_save_CFLAGS"
7613 eval supported=\$$cacheid
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7615 $as_echo "$supported" >&6; }
7616 if test "$supported" = "yes" ; then
7617 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7636 xorg_testset_save_CFLAGS="$CFLAGS"
7638 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7641 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7642 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7643 $as_echo_n "(cached) " >&6
7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646 /* end confdefs.h. */
7649 if ac_fn_c_try_compile "$LINENO"; then :
7650 xorg_cv_cc_flag_unknown_warning_option=yes
7652 xorg_cv_cc_flag_unknown_warning_option=no
7654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7657 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7658 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7659 CFLAGS="$xorg_testset_save_CFLAGS"
7662 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7668 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7669 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7670 $as_echo_n "(cached) " >&6
7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673 /* end confdefs.h. */
7676 if ac_fn_c_try_compile "$LINENO"; then :
7677 xorg_cv_cc_flag_unused_command_line_argument=yes
7679 xorg_cv_cc_flag_unused_command_line_argument=no
7681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7684 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7685 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7686 CFLAGS="$xorg_testset_save_CFLAGS"
7691 if test $found = "no" ; then
7692 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7696 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7700 CFLAGS="$CFLAGS -Werror=trigraphs"
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7703 $as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7704 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7705 if eval \${$cacheid+:} false; then :
7706 $as_echo_n "(cached) " >&6
7708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709 /* end confdefs.h. */
7719 if ac_fn_c_try_link "$LINENO"; then :
7724 rm -f core conftest.err conftest.$ac_objext \
7725 conftest$ac_exeext conftest.$ac_ext
7729 CFLAGS="$xorg_testset_save_CFLAGS"
7731 eval supported=\$$cacheid
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7733 $as_echo "$supported" >&6; }
7734 if test "$supported" = "yes" ; then
7735 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7754 xorg_testset_save_CFLAGS="$CFLAGS"
7756 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7759 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7760 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7761 $as_echo_n "(cached) " >&6
7763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764 /* end confdefs.h. */
7767 if ac_fn_c_try_compile "$LINENO"; then :
7768 xorg_cv_cc_flag_unknown_warning_option=yes
7770 xorg_cv_cc_flag_unknown_warning_option=no
7772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7775 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7776 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7777 CFLAGS="$xorg_testset_save_CFLAGS"
7780 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7786 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7787 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7788 $as_echo_n "(cached) " >&6
7790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7791 /* end confdefs.h. */
7794 if ac_fn_c_try_compile "$LINENO"; then :
7795 xorg_cv_cc_flag_unused_command_line_argument=yes
7797 xorg_cv_cc_flag_unused_command_line_argument=no
7799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7802 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7803 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7804 CFLAGS="$xorg_testset_save_CFLAGS"
7809 if test $found = "no" ; then
7810 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7814 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7818 CFLAGS="$CFLAGS -Werror=array-bounds"
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7821 $as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7822 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7823 if eval \${$cacheid+:} false; then :
7824 $as_echo_n "(cached) " >&6
7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827 /* end confdefs.h. */
7837 if ac_fn_c_try_link "$LINENO"; then :
7842 rm -f core conftest.err conftest.$ac_objext \
7843 conftest$ac_exeext conftest.$ac_ext
7847 CFLAGS="$xorg_testset_save_CFLAGS"
7849 eval supported=\$$cacheid
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7851 $as_echo "$supported" >&6; }
7852 if test "$supported" = "yes" ; then
7853 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7872 xorg_testset_save_CFLAGS="$CFLAGS"
7874 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7877 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7878 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7879 $as_echo_n "(cached) " >&6
7881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882 /* end confdefs.h. */
7885 if ac_fn_c_try_compile "$LINENO"; then :
7886 xorg_cv_cc_flag_unknown_warning_option=yes
7888 xorg_cv_cc_flag_unknown_warning_option=no
7890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7893 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7894 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7895 CFLAGS="$xorg_testset_save_CFLAGS"
7898 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7904 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7905 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7906 $as_echo_n "(cached) " >&6
7908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909 /* end confdefs.h. */
7912 if ac_fn_c_try_compile "$LINENO"; then :
7913 xorg_cv_cc_flag_unused_command_line_argument=yes
7915 xorg_cv_cc_flag_unused_command_line_argument=no
7917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7920 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7921 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7922 CFLAGS="$xorg_testset_save_CFLAGS"
7927 if test $found = "no" ; then
7928 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7932 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7936 CFLAGS="$CFLAGS -Werror=write-strings"
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
7939 $as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
7940 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7941 if eval \${$cacheid+:} false; then :
7942 $as_echo_n "(cached) " >&6
7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h. */
7955 if ac_fn_c_try_link "$LINENO"; then :
7960 rm -f core conftest.err conftest.$ac_objext \
7961 conftest$ac_exeext conftest.$ac_ext
7965 CFLAGS="$xorg_testset_save_CFLAGS"
7967 eval supported=\$$cacheid
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7969 $as_echo "$supported" >&6; }
7970 if test "$supported" = "yes" ; then
7971 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7990 xorg_testset_save_CFLAGS="$CFLAGS"
7992 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7995 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7996 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7997 $as_echo_n "(cached) " >&6
7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000 /* end confdefs.h. */
8003 if ac_fn_c_try_compile "$LINENO"; then :
8004 xorg_cv_cc_flag_unknown_warning_option=yes
8006 xorg_cv_cc_flag_unknown_warning_option=no
8008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8011 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8012 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8013 CFLAGS="$xorg_testset_save_CFLAGS"
8016 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8022 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8023 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8024 $as_echo_n "(cached) " >&6
8026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8027 /* end confdefs.h. */
8030 if ac_fn_c_try_compile "$LINENO"; then :
8031 xorg_cv_cc_flag_unused_command_line_argument=yes
8033 xorg_cv_cc_flag_unused_command_line_argument=no
8035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8038 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8039 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8040 CFLAGS="$xorg_testset_save_CFLAGS"
8045 if test $found = "no" ; then
8046 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8050 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8054 CFLAGS="$CFLAGS -Werror=address"
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
8057 $as_echo_n "checking if $CC supports-Werror=address... " >&6; }
8058 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8059 if eval \${$cacheid+:} false; then :
8060 $as_echo_n "(cached) " >&6
8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063 /* end confdefs.h. */
8073 if ac_fn_c_try_link "$LINENO"; then :
8078 rm -f core conftest.err conftest.$ac_objext \
8079 conftest$ac_exeext conftest.$ac_ext
8083 CFLAGS="$xorg_testset_save_CFLAGS"
8085 eval supported=\$$cacheid
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8087 $as_echo "$supported" >&6; }
8088 if test "$supported" = "yes" ; then
8089 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8108 xorg_testset_save_CFLAGS="$CFLAGS"
8110 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8113 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8114 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8115 $as_echo_n "(cached) " >&6
8117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118 /* end confdefs.h. */
8121 if ac_fn_c_try_compile "$LINENO"; then :
8122 xorg_cv_cc_flag_unknown_warning_option=yes
8124 xorg_cv_cc_flag_unknown_warning_option=no
8126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8129 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8130 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8131 CFLAGS="$xorg_testset_save_CFLAGS"
8134 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8140 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8141 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8142 $as_echo_n "(cached) " >&6
8144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h. */
8148 if ac_fn_c_try_compile "$LINENO"; then :
8149 xorg_cv_cc_flag_unused_command_line_argument=yes
8151 xorg_cv_cc_flag_unused_command_line_argument=no
8153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8156 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8157 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8158 CFLAGS="$xorg_testset_save_CFLAGS"
8163 if test $found = "no" ; then
8164 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8165 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8168 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8172 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8175 $as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8176 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8177 if eval \${$cacheid+:} false; then :
8178 $as_echo_n "(cached) " >&6
8180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181 /* end confdefs.h. */
8191 if ac_fn_c_try_link "$LINENO"; then :
8196 rm -f core conftest.err conftest.$ac_objext \
8197 conftest$ac_exeext conftest.$ac_ext
8201 CFLAGS="$xorg_testset_save_CFLAGS"
8203 eval supported=\$$cacheid
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8205 $as_echo "$supported" >&6; }
8206 if test "$supported" = "yes" ; then
8207 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8212 if test $found = "no" ; then
8213 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8217 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8221 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8224 $as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8225 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8226 if eval \${$cacheid+:} false; then :
8227 $as_echo_n "(cached) " >&6
8229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8230 /* end confdefs.h. */
8240 if ac_fn_c_try_link "$LINENO"; then :
8245 rm -f core conftest.err conftest.$ac_objext \
8246 conftest$ac_exeext conftest.$ac_ext
8250 CFLAGS="$xorg_testset_save_CFLAGS"
8252 eval supported=\$$cacheid
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8254 $as_echo "$supported" >&6; }
8255 if test "$supported" = "yes" ; then
8256 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8275 xorg_testset_save_CFLAGS="$CFLAGS"
8277 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8280 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8281 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8282 $as_echo_n "(cached) " >&6
8284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285 /* end confdefs.h. */
8288 if ac_fn_c_try_compile "$LINENO"; then :
8289 xorg_cv_cc_flag_unknown_warning_option=yes
8291 xorg_cv_cc_flag_unknown_warning_option=no
8293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8296 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8297 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8298 CFLAGS="$xorg_testset_save_CFLAGS"
8301 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8307 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8308 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8309 $as_echo_n "(cached) " >&6
8311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312 /* end confdefs.h. */
8315 if ac_fn_c_try_compile "$LINENO"; then :
8316 xorg_cv_cc_flag_unused_command_line_argument=yes
8318 xorg_cv_cc_flag_unused_command_line_argument=no
8320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8323 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8324 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8325 CFLAGS="$xorg_testset_save_CFLAGS"
8330 if test $found = "no" ; then
8331 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8335 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8339 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8342 $as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8343 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8344 if eval \${$cacheid+:} false; then :
8345 $as_echo_n "(cached) " >&6
8347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348 /* end confdefs.h. */
8358 if ac_fn_c_try_link "$LINENO"; then :
8363 rm -f core conftest.err conftest.$ac_objext \
8364 conftest$ac_exeext conftest.$ac_ext
8368 CFLAGS="$xorg_testset_save_CFLAGS"
8370 eval supported=\$$cacheid
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8372 $as_echo "$supported" >&6; }
8373 if test "$supported" = "yes" ; then
8374 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8379 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8381 { $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
8382 $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;}
8396 xorg_testset_save_CFLAGS="$CFLAGS"
8398 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8401 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8402 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8403 $as_echo_n "(cached) " >&6
8405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8406 /* end confdefs.h. */
8409 if ac_fn_c_try_compile "$LINENO"; then :
8410 xorg_cv_cc_flag_unknown_warning_option=yes
8412 xorg_cv_cc_flag_unknown_warning_option=no
8414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8417 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8418 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8419 CFLAGS="$xorg_testset_save_CFLAGS"
8422 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8428 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8429 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8430 $as_echo_n "(cached) " >&6
8432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8433 /* end confdefs.h. */
8436 if ac_fn_c_try_compile "$LINENO"; then :
8437 xorg_cv_cc_flag_unused_command_line_argument=yes
8439 xorg_cv_cc_flag_unused_command_line_argument=no
8441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8444 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8445 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8446 CFLAGS="$xorg_testset_save_CFLAGS"
8451 if test $found = "no" ; then
8452 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8456 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8460 CFLAGS="$CFLAGS -Wimplicit"
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8463 $as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8464 cacheid=xorg_cv_cc_flag__Wimplicit
8465 if eval \${$cacheid+:} false; then :
8466 $as_echo_n "(cached) " >&6
8468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8469 /* end confdefs.h. */
8479 if ac_fn_c_try_link "$LINENO"; then :
8484 rm -f core conftest.err conftest.$ac_objext \
8485 conftest$ac_exeext conftest.$ac_ext
8489 CFLAGS="$xorg_testset_save_CFLAGS"
8491 eval supported=\$$cacheid
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8493 $as_echo "$supported" >&6; }
8494 if test "$supported" = "yes" ; then
8495 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8514 xorg_testset_save_CFLAGS="$CFLAGS"
8516 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8519 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8520 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8521 $as_echo_n "(cached) " >&6
8523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8524 /* end confdefs.h. */
8527 if ac_fn_c_try_compile "$LINENO"; then :
8528 xorg_cv_cc_flag_unknown_warning_option=yes
8530 xorg_cv_cc_flag_unknown_warning_option=no
8532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8535 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8536 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8537 CFLAGS="$xorg_testset_save_CFLAGS"
8540 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8546 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8547 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8548 $as_echo_n "(cached) " >&6
8550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551 /* end confdefs.h. */
8554 if ac_fn_c_try_compile "$LINENO"; then :
8555 xorg_cv_cc_flag_unused_command_line_argument=yes
8557 xorg_cv_cc_flag_unused_command_line_argument=no
8559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8562 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8563 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8564 CFLAGS="$xorg_testset_save_CFLAGS"
8569 if test $found = "no" ; then
8570 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8574 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8578 CFLAGS="$CFLAGS -Wnonnull"
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8581 $as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8582 cacheid=xorg_cv_cc_flag__Wnonnull
8583 if eval \${$cacheid+:} false; then :
8584 $as_echo_n "(cached) " >&6
8586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8587 /* end confdefs.h. */
8597 if ac_fn_c_try_link "$LINENO"; then :
8602 rm -f core conftest.err conftest.$ac_objext \
8603 conftest$ac_exeext conftest.$ac_ext
8607 CFLAGS="$xorg_testset_save_CFLAGS"
8609 eval supported=\$$cacheid
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8611 $as_echo "$supported" >&6; }
8612 if test "$supported" = "yes" ; then
8613 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8632 xorg_testset_save_CFLAGS="$CFLAGS"
8634 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8637 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8638 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8639 $as_echo_n "(cached) " >&6
8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8645 if ac_fn_c_try_compile "$LINENO"; then :
8646 xorg_cv_cc_flag_unknown_warning_option=yes
8648 xorg_cv_cc_flag_unknown_warning_option=no
8650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8653 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8654 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8655 CFLAGS="$xorg_testset_save_CFLAGS"
8658 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8664 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8665 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8666 $as_echo_n "(cached) " >&6
8668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669 /* end confdefs.h. */
8672 if ac_fn_c_try_compile "$LINENO"; then :
8673 xorg_cv_cc_flag_unused_command_line_argument=yes
8675 xorg_cv_cc_flag_unused_command_line_argument=no
8677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8680 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8681 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8682 CFLAGS="$xorg_testset_save_CFLAGS"
8687 if test $found = "no" ; then
8688 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8692 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8696 CFLAGS="$CFLAGS -Winit-self"
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8699 $as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8700 cacheid=xorg_cv_cc_flag__Winit_self
8701 if eval \${$cacheid+:} false; then :
8702 $as_echo_n "(cached) " >&6
8704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705 /* end confdefs.h. */
8715 if ac_fn_c_try_link "$LINENO"; then :
8720 rm -f core conftest.err conftest.$ac_objext \
8721 conftest$ac_exeext conftest.$ac_ext
8725 CFLAGS="$xorg_testset_save_CFLAGS"
8727 eval supported=\$$cacheid
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8729 $as_echo "$supported" >&6; }
8730 if test "$supported" = "yes" ; then
8731 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8750 xorg_testset_save_CFLAGS="$CFLAGS"
8752 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8755 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8756 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8757 $as_echo_n "(cached) " >&6
8759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h. */
8763 if ac_fn_c_try_compile "$LINENO"; then :
8764 xorg_cv_cc_flag_unknown_warning_option=yes
8766 xorg_cv_cc_flag_unknown_warning_option=no
8768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8771 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8772 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8773 CFLAGS="$xorg_testset_save_CFLAGS"
8776 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8782 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8783 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8784 $as_echo_n "(cached) " >&6
8786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8787 /* end confdefs.h. */
8790 if ac_fn_c_try_compile "$LINENO"; then :
8791 xorg_cv_cc_flag_unused_command_line_argument=yes
8793 xorg_cv_cc_flag_unused_command_line_argument=no
8795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8798 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8799 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8800 CFLAGS="$xorg_testset_save_CFLAGS"
8805 if test $found = "no" ; then
8806 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8810 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8814 CFLAGS="$CFLAGS -Wmain"
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8817 $as_echo_n "checking if $CC supports-Wmain... " >&6; }
8818 cacheid=xorg_cv_cc_flag__Wmain
8819 if eval \${$cacheid+:} false; then :
8820 $as_echo_n "(cached) " >&6
8822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8823 /* end confdefs.h. */
8833 if ac_fn_c_try_link "$LINENO"; then :
8838 rm -f core conftest.err conftest.$ac_objext \
8839 conftest$ac_exeext conftest.$ac_ext
8843 CFLAGS="$xorg_testset_save_CFLAGS"
8845 eval supported=\$$cacheid
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8847 $as_echo "$supported" >&6; }
8848 if test "$supported" = "yes" ; then
8849 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8868 xorg_testset_save_CFLAGS="$CFLAGS"
8870 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8873 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8874 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8875 $as_echo_n "(cached) " >&6
8877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8878 /* end confdefs.h. */
8881 if ac_fn_c_try_compile "$LINENO"; then :
8882 xorg_cv_cc_flag_unknown_warning_option=yes
8884 xorg_cv_cc_flag_unknown_warning_option=no
8886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8889 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8890 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8891 CFLAGS="$xorg_testset_save_CFLAGS"
8894 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8900 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8901 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8902 $as_echo_n "(cached) " >&6
8904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8905 /* end confdefs.h. */
8908 if ac_fn_c_try_compile "$LINENO"; then :
8909 xorg_cv_cc_flag_unused_command_line_argument=yes
8911 xorg_cv_cc_flag_unused_command_line_argument=no
8913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8916 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8917 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8918 CFLAGS="$xorg_testset_save_CFLAGS"
8923 if test $found = "no" ; then
8924 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8928 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8932 CFLAGS="$CFLAGS -Wmissing-braces"
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
8935 $as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
8936 cacheid=xorg_cv_cc_flag__Wmissing_braces
8937 if eval \${$cacheid+:} false; then :
8938 $as_echo_n "(cached) " >&6
8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h. */
8951 if ac_fn_c_try_link "$LINENO"; then :
8956 rm -f core conftest.err conftest.$ac_objext \
8957 conftest$ac_exeext conftest.$ac_ext
8961 CFLAGS="$xorg_testset_save_CFLAGS"
8963 eval supported=\$$cacheid
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8965 $as_echo "$supported" >&6; }
8966 if test "$supported" = "yes" ; then
8967 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8986 xorg_testset_save_CFLAGS="$CFLAGS"
8988 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8991 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8992 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8993 $as_echo_n "(cached) " >&6
8995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996 /* end confdefs.h. */
8999 if ac_fn_c_try_compile "$LINENO"; then :
9000 xorg_cv_cc_flag_unknown_warning_option=yes
9002 xorg_cv_cc_flag_unknown_warning_option=no
9004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9007 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9008 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9009 CFLAGS="$xorg_testset_save_CFLAGS"
9012 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9018 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9019 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9020 $as_echo_n "(cached) " >&6
9022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9023 /* end confdefs.h. */
9026 if ac_fn_c_try_compile "$LINENO"; then :
9027 xorg_cv_cc_flag_unused_command_line_argument=yes
9029 xorg_cv_cc_flag_unused_command_line_argument=no
9031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9034 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9036 CFLAGS="$xorg_testset_save_CFLAGS"
9041 if test $found = "no" ; then
9042 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9046 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9050 CFLAGS="$CFLAGS -Wsequence-point"
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
9053 $as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
9054 cacheid=xorg_cv_cc_flag__Wsequence_point
9055 if eval \${$cacheid+:} false; then :
9056 $as_echo_n "(cached) " >&6
9058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h. */
9069 if ac_fn_c_try_link "$LINENO"; then :
9074 rm -f core conftest.err conftest.$ac_objext \
9075 conftest$ac_exeext conftest.$ac_ext
9079 CFLAGS="$xorg_testset_save_CFLAGS"
9081 eval supported=\$$cacheid
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9083 $as_echo "$supported" >&6; }
9084 if test "$supported" = "yes" ; then
9085 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9104 xorg_testset_save_CFLAGS="$CFLAGS"
9106 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9109 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9110 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9111 $as_echo_n "(cached) " >&6
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9117 if ac_fn_c_try_compile "$LINENO"; then :
9118 xorg_cv_cc_flag_unknown_warning_option=yes
9120 xorg_cv_cc_flag_unknown_warning_option=no
9122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9125 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9126 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9127 CFLAGS="$xorg_testset_save_CFLAGS"
9130 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9136 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9137 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9138 $as_echo_n "(cached) " >&6
9140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9141 /* end confdefs.h. */
9144 if ac_fn_c_try_compile "$LINENO"; then :
9145 xorg_cv_cc_flag_unused_command_line_argument=yes
9147 xorg_cv_cc_flag_unused_command_line_argument=no
9149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9152 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9153 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9154 CFLAGS="$xorg_testset_save_CFLAGS"
9159 if test $found = "no" ; then
9160 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9164 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9168 CFLAGS="$CFLAGS -Wreturn-type"
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9171 $as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9172 cacheid=xorg_cv_cc_flag__Wreturn_type
9173 if eval \${$cacheid+:} false; then :
9174 $as_echo_n "(cached) " >&6
9176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9177 /* end confdefs.h. */
9187 if ac_fn_c_try_link "$LINENO"; then :
9192 rm -f core conftest.err conftest.$ac_objext \
9193 conftest$ac_exeext conftest.$ac_ext
9197 CFLAGS="$xorg_testset_save_CFLAGS"
9199 eval supported=\$$cacheid
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9201 $as_echo "$supported" >&6; }
9202 if test "$supported" = "yes" ; then
9203 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9222 xorg_testset_save_CFLAGS="$CFLAGS"
9224 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9227 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9228 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9229 $as_echo_n "(cached) " >&6
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9235 if ac_fn_c_try_compile "$LINENO"; then :
9236 xorg_cv_cc_flag_unknown_warning_option=yes
9238 xorg_cv_cc_flag_unknown_warning_option=no
9240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9243 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9244 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9245 CFLAGS="$xorg_testset_save_CFLAGS"
9248 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9254 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9255 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9256 $as_echo_n "(cached) " >&6
9258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9259 /* end confdefs.h. */
9262 if ac_fn_c_try_compile "$LINENO"; then :
9263 xorg_cv_cc_flag_unused_command_line_argument=yes
9265 xorg_cv_cc_flag_unused_command_line_argument=no
9267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9270 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9271 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9272 CFLAGS="$xorg_testset_save_CFLAGS"
9277 if test $found = "no" ; then
9278 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9282 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9286 CFLAGS="$CFLAGS -Wtrigraphs"
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9289 $as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9290 cacheid=xorg_cv_cc_flag__Wtrigraphs
9291 if eval \${$cacheid+:} false; then :
9292 $as_echo_n "(cached) " >&6
9294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9295 /* end confdefs.h. */
9305 if ac_fn_c_try_link "$LINENO"; then :
9310 rm -f core conftest.err conftest.$ac_objext \
9311 conftest$ac_exeext conftest.$ac_ext
9315 CFLAGS="$xorg_testset_save_CFLAGS"
9317 eval supported=\$$cacheid
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9319 $as_echo "$supported" >&6; }
9320 if test "$supported" = "yes" ; then
9321 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9340 xorg_testset_save_CFLAGS="$CFLAGS"
9342 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9345 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9346 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9347 $as_echo_n "(cached) " >&6
9349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9350 /* end confdefs.h. */
9353 if ac_fn_c_try_compile "$LINENO"; then :
9354 xorg_cv_cc_flag_unknown_warning_option=yes
9356 xorg_cv_cc_flag_unknown_warning_option=no
9358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9361 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9362 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9363 CFLAGS="$xorg_testset_save_CFLAGS"
9366 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9372 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9373 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9374 $as_echo_n "(cached) " >&6
9376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h. */
9380 if ac_fn_c_try_compile "$LINENO"; then :
9381 xorg_cv_cc_flag_unused_command_line_argument=yes
9383 xorg_cv_cc_flag_unused_command_line_argument=no
9385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9388 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9389 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9390 CFLAGS="$xorg_testset_save_CFLAGS"
9395 if test $found = "no" ; then
9396 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9400 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9404 CFLAGS="$CFLAGS -Warray-bounds"
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9407 $as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9408 cacheid=xorg_cv_cc_flag__Warray_bounds
9409 if eval \${$cacheid+:} false; then :
9410 $as_echo_n "(cached) " >&6
9412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9413 /* end confdefs.h. */
9423 if ac_fn_c_try_link "$LINENO"; then :
9428 rm -f core conftest.err conftest.$ac_objext \
9429 conftest$ac_exeext conftest.$ac_ext
9433 CFLAGS="$xorg_testset_save_CFLAGS"
9435 eval supported=\$$cacheid
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9437 $as_echo "$supported" >&6; }
9438 if test "$supported" = "yes" ; then
9439 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9458 xorg_testset_save_CFLAGS="$CFLAGS"
9460 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9463 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9464 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9465 $as_echo_n "(cached) " >&6
9467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468 /* end confdefs.h. */
9471 if ac_fn_c_try_compile "$LINENO"; then :
9472 xorg_cv_cc_flag_unknown_warning_option=yes
9474 xorg_cv_cc_flag_unknown_warning_option=no
9476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9479 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9481 CFLAGS="$xorg_testset_save_CFLAGS"
9484 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9490 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9491 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9492 $as_echo_n "(cached) " >&6
9494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9495 /* end confdefs.h. */
9498 if ac_fn_c_try_compile "$LINENO"; then :
9499 xorg_cv_cc_flag_unused_command_line_argument=yes
9501 xorg_cv_cc_flag_unused_command_line_argument=no
9503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9506 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9507 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9508 CFLAGS="$xorg_testset_save_CFLAGS"
9513 if test $found = "no" ; then
9514 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9518 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9522 CFLAGS="$CFLAGS -Wwrite-strings"
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9525 $as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9526 cacheid=xorg_cv_cc_flag__Wwrite_strings
9527 if eval \${$cacheid+:} false; then :
9528 $as_echo_n "(cached) " >&6
9530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531 /* end confdefs.h. */
9541 if ac_fn_c_try_link "$LINENO"; then :
9546 rm -f core conftest.err conftest.$ac_objext \
9547 conftest$ac_exeext conftest.$ac_ext
9551 CFLAGS="$xorg_testset_save_CFLAGS"
9553 eval supported=\$$cacheid
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9555 $as_echo "$supported" >&6; }
9556 if test "$supported" = "yes" ; then
9557 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9576 xorg_testset_save_CFLAGS="$CFLAGS"
9578 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9581 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9582 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9583 $as_echo_n "(cached) " >&6
9585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586 /* end confdefs.h. */
9589 if ac_fn_c_try_compile "$LINENO"; then :
9590 xorg_cv_cc_flag_unknown_warning_option=yes
9592 xorg_cv_cc_flag_unknown_warning_option=no
9594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9597 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9598 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9599 CFLAGS="$xorg_testset_save_CFLAGS"
9602 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9608 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9609 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9610 $as_echo_n "(cached) " >&6
9612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613 /* end confdefs.h. */
9616 if ac_fn_c_try_compile "$LINENO"; then :
9617 xorg_cv_cc_flag_unused_command_line_argument=yes
9619 xorg_cv_cc_flag_unused_command_line_argument=no
9621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9624 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9625 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9626 CFLAGS="$xorg_testset_save_CFLAGS"
9631 if test $found = "no" ; then
9632 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9636 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9640 CFLAGS="$CFLAGS -Waddress"
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9643 $as_echo_n "checking if $CC supports-Waddress... " >&6; }
9644 cacheid=xorg_cv_cc_flag__Waddress
9645 if eval \${$cacheid+:} false; then :
9646 $as_echo_n "(cached) " >&6
9648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h. */
9659 if ac_fn_c_try_link "$LINENO"; then :
9664 rm -f core conftest.err conftest.$ac_objext \
9665 conftest$ac_exeext conftest.$ac_ext
9669 CFLAGS="$xorg_testset_save_CFLAGS"
9671 eval supported=\$$cacheid
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9673 $as_echo "$supported" >&6; }
9674 if test "$supported" = "yes" ; then
9675 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9694 xorg_testset_save_CFLAGS="$CFLAGS"
9696 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9699 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9700 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9701 $as_echo_n "(cached) " >&6
9703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9704 /* end confdefs.h. */
9707 if ac_fn_c_try_compile "$LINENO"; then :
9708 xorg_cv_cc_flag_unknown_warning_option=yes
9710 xorg_cv_cc_flag_unknown_warning_option=no
9712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9715 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9716 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9717 CFLAGS="$xorg_testset_save_CFLAGS"
9720 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9726 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9727 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9728 $as_echo_n "(cached) " >&6
9730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731 /* end confdefs.h. */
9734 if ac_fn_c_try_compile "$LINENO"; then :
9735 xorg_cv_cc_flag_unused_command_line_argument=yes
9737 xorg_cv_cc_flag_unused_command_line_argument=no
9739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9742 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9743 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9744 CFLAGS="$xorg_testset_save_CFLAGS"
9749 if test $found = "no" ; then
9750 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9754 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9758 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9761 $as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9762 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9763 if eval \${$cacheid+:} false; then :
9764 $as_echo_n "(cached) " >&6
9766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9767 /* end confdefs.h. */
9777 if ac_fn_c_try_link "$LINENO"; then :
9782 rm -f core conftest.err conftest.$ac_objext \
9783 conftest$ac_exeext conftest.$ac_ext
9787 CFLAGS="$xorg_testset_save_CFLAGS"
9789 eval supported=\$$cacheid
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9791 $as_echo "$supported" >&6; }
9792 if test "$supported" = "yes" ; then
9793 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9812 xorg_testset_save_CFLAGS="$CFLAGS"
9814 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9817 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9818 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9819 $as_echo_n "(cached) " >&6
9821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9822 /* end confdefs.h. */
9825 if ac_fn_c_try_compile "$LINENO"; then :
9826 xorg_cv_cc_flag_unknown_warning_option=yes
9828 xorg_cv_cc_flag_unknown_warning_option=no
9830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9833 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9834 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9835 CFLAGS="$xorg_testset_save_CFLAGS"
9838 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9844 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9845 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9846 $as_echo_n "(cached) " >&6
9848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9849 /* end confdefs.h. */
9852 if ac_fn_c_try_compile "$LINENO"; then :
9853 xorg_cv_cc_flag_unused_command_line_argument=yes
9855 xorg_cv_cc_flag_unused_command_line_argument=no
9857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9860 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9861 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9862 CFLAGS="$xorg_testset_save_CFLAGS"
9867 if test $found = "no" ; then
9868 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9872 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9876 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
9879 $as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
9880 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9881 if eval \${$cacheid+:} false; then :
9882 $as_echo_n "(cached) " >&6
9884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9885 /* end confdefs.h. */
9895 if ac_fn_c_try_link "$LINENO"; then :
9900 rm -f core conftest.err conftest.$ac_objext \
9901 conftest$ac_exeext conftest.$ac_ext
9905 CFLAGS="$xorg_testset_save_CFLAGS"
9907 eval supported=\$$cacheid
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9909 $as_echo "$supported" >&6; }
9910 if test "$supported" = "yes" ; then
9911 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9925 CWARNFLAGS="$BASE_CFLAGS"
9926 if test "x$GCC" = xyes ; then
9927 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9937 # Check whether --enable-strict-compilation was given.
9938 if test "${enable_strict_compilation+set}" = set; then :
9939 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9963 xorg_testset_save_CFLAGS="$CFLAGS"
9965 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9968 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9969 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9970 $as_echo_n "(cached) " >&6
9972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9973 /* end confdefs.h. */
9976 if ac_fn_c_try_compile "$LINENO"; then :
9977 xorg_cv_cc_flag_unknown_warning_option=yes
9979 xorg_cv_cc_flag_unknown_warning_option=no
9981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9984 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9985 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9986 CFLAGS="$xorg_testset_save_CFLAGS"
9989 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9995 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9996 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9997 $as_echo_n "(cached) " >&6
9999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000 /* end confdefs.h. */
10003 if ac_fn_c_try_compile "$LINENO"; then :
10004 xorg_cv_cc_flag_unused_command_line_argument=yes
10006 xorg_cv_cc_flag_unused_command_line_argument=no
10008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10011 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10013 CFLAGS="$xorg_testset_save_CFLAGS"
10018 if test $found = "no" ; then
10019 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10023 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10027 CFLAGS="$CFLAGS -pedantic"
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
10030 $as_echo_n "checking if $CC supports-pedantic... " >&6; }
10031 cacheid=xorg_cv_cc_flag__pedantic
10032 if eval \${$cacheid+:} false; then :
10033 $as_echo_n "(cached) " >&6
10035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10036 /* end confdefs.h. */
10046 if ac_fn_c_try_link "$LINENO"; then :
10051 rm -f core conftest.err conftest.$ac_objext \
10052 conftest$ac_exeext conftest.$ac_ext
10056 CFLAGS="$xorg_testset_save_CFLAGS"
10058 eval supported=\$$cacheid
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10060 $as_echo "$supported" >&6; }
10061 if test "$supported" = "yes" ; then
10062 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10081 xorg_testset_save_CFLAGS="$CFLAGS"
10083 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10086 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10087 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10088 $as_echo_n "(cached) " >&6
10090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10091 /* end confdefs.h. */
10094 if ac_fn_c_try_compile "$LINENO"; then :
10095 xorg_cv_cc_flag_unknown_warning_option=yes
10097 xorg_cv_cc_flag_unknown_warning_option=no
10099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10102 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10103 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10104 CFLAGS="$xorg_testset_save_CFLAGS"
10107 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10113 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10114 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10115 $as_echo_n "(cached) " >&6
10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118 /* end confdefs.h. */
10121 if ac_fn_c_try_compile "$LINENO"; then :
10122 xorg_cv_cc_flag_unused_command_line_argument=yes
10124 xorg_cv_cc_flag_unused_command_line_argument=no
10126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10129 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10130 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10131 CFLAGS="$xorg_testset_save_CFLAGS"
10136 if test $found = "no" ; then
10137 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10141 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10145 CFLAGS="$CFLAGS -Werror"
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10148 $as_echo_n "checking if $CC supports-Werror... " >&6; }
10149 cacheid=xorg_cv_cc_flag__Werror
10150 if eval \${$cacheid+:} false; then :
10151 $as_echo_n "(cached) " >&6
10153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154 /* end confdefs.h. */
10164 if ac_fn_c_try_link "$LINENO"; then :
10169 rm -f core conftest.err conftest.$ac_objext \
10170 conftest$ac_exeext conftest.$ac_ext
10174 CFLAGS="$xorg_testset_save_CFLAGS"
10176 eval supported=\$$cacheid
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10178 $as_echo "$supported" >&6; }
10179 if test "$supported" = "yes" ; then
10180 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10185 if test $found = "no" ; then
10186 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10190 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10194 CFLAGS="$CFLAGS -errwarn"
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10197 $as_echo_n "checking if $CC supports-errwarn... " >&6; }
10198 cacheid=xorg_cv_cc_flag__errwarn
10199 if eval \${$cacheid+:} false; then :
10200 $as_echo_n "(cached) " >&6
10202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203 /* end confdefs.h. */
10213 if ac_fn_c_try_link "$LINENO"; then :
10218 rm -f core conftest.err conftest.$ac_objext \
10219 conftest$ac_exeext conftest.$ac_ext
10223 CFLAGS="$xorg_testset_save_CFLAGS"
10225 eval supported=\$$cacheid
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10227 $as_echo "$supported" >&6; }
10228 if test "$supported" = "yes" ; then
10229 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10236 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10237 # activate it with -Werror, so we add it here explicitly.
10251 xorg_testset_save_CFLAGS="$CFLAGS"
10253 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10256 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10257 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10258 $as_echo_n "(cached) " >&6
10260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10261 /* end confdefs.h. */
10264 if ac_fn_c_try_compile "$LINENO"; then :
10265 xorg_cv_cc_flag_unknown_warning_option=yes
10267 xorg_cv_cc_flag_unknown_warning_option=no
10269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10272 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10273 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10274 CFLAGS="$xorg_testset_save_CFLAGS"
10277 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10283 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10284 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10285 $as_echo_n "(cached) " >&6
10287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10288 /* end confdefs.h. */
10291 if ac_fn_c_try_compile "$LINENO"; then :
10292 xorg_cv_cc_flag_unused_command_line_argument=yes
10294 xorg_cv_cc_flag_unused_command_line_argument=no
10296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10299 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10300 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10301 CFLAGS="$xorg_testset_save_CFLAGS"
10306 if test $found = "no" ; then
10307 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10311 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10315 CFLAGS="$CFLAGS -Werror=attributes"
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10318 $as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10319 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10320 if eval \${$cacheid+:} false; then :
10321 $as_echo_n "(cached) " >&6
10323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10324 /* end confdefs.h. */
10334 if ac_fn_c_try_link "$LINENO"; then :
10339 rm -f core conftest.err conftest.$ac_objext \
10340 conftest$ac_exeext conftest.$ac_ext
10344 CFLAGS="$xorg_testset_save_CFLAGS"
10346 eval supported=\$$cacheid
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10348 $as_echo "$supported" >&6; }
10349 if test "$supported" = "yes" ; then
10350 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10357 if test "x$STRICT_COMPILE" = "xyes"; then
10358 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10359 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10367 cat >>confdefs.h <<_ACEOF
10368 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10371 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10372 if test "x$PVM" = "x"; then
10376 cat >>confdefs.h <<_ACEOF
10377 #define PACKAGE_VERSION_MINOR $PVM
10380 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10381 if test "x$PVP" = "x"; then
10385 cat >>confdefs.h <<_ACEOF
10386 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10391 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10392 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10393 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10394 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10399 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10400 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10401 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10402 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10403 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10410 if test x$APP_MAN_SUFFIX = x ; then
10413 if test x$APP_MAN_DIR = x ; then
10414 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10417 if test x$LIB_MAN_SUFFIX = x ; then
10420 if test x$LIB_MAN_DIR = x ; then
10421 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10424 if test x$FILE_MAN_SUFFIX = x ; then
10426 solaris*) FILE_MAN_SUFFIX=4 ;;
10427 *) FILE_MAN_SUFFIX=5 ;;
10430 if test x$FILE_MAN_DIR = x ; then
10431 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10434 if test x$MISC_MAN_SUFFIX = x ; then
10436 solaris*) MISC_MAN_SUFFIX=5 ;;
10437 *) MISC_MAN_SUFFIX=7 ;;
10440 if test x$MISC_MAN_DIR = x ; then
10441 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10444 if test x$DRIVER_MAN_SUFFIX = x ; then
10446 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10447 *) DRIVER_MAN_SUFFIX=4 ;;
10450 if test x$DRIVER_MAN_DIR = x ; then
10451 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10454 if test x$ADMIN_MAN_SUFFIX = x ; then
10456 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10457 *) ADMIN_MAN_SUFFIX=8 ;;
10460 if test x$ADMIN_MAN_DIR = x ; then
10461 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10478 XORG_MAN_PAGE="X Version 11"
10481 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10482 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10483 -e 's|__xservername__|Xorg|g' \
10484 -e 's|__xconfigfile__|xorg.conf|g' \
10485 -e 's|__projectroot__|\$(prefix)|g' \
10486 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10487 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10488 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10489 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10490 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10491 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10492 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10496 # Check whether --enable-silent-rules was given.
10497 if test "${enable_silent_rules+set}" = set; then :
10498 enableval=$enable_silent_rules;
10501 case $enable_silent_rules in
10502 yes) AM_DEFAULT_VERBOSITY=0;;
10503 no) AM_DEFAULT_VERBOSITY=1;;
10504 *) AM_DEFAULT_VERBOSITY=0;;
10506 am_make=${MAKE-make}
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10508 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10509 if ${am_cv_make_support_nested_variables+:} false; then :
10510 $as_echo_n "(cached) " >&6
10512 if $as_echo 'TRUE=$(BAR$(V))
10518 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10519 am_cv_make_support_nested_variables=yes
10521 am_cv_make_support_nested_variables=no
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10525 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10526 if test $am_cv_make_support_nested_variables = yes; then
10528 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10530 AM_V=$AM_DEFAULT_VERBOSITY
10531 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10537 # Initialize libtool
10538 # Check whether --enable-static was given.
10539 if test "${enable_static+set}" = set; then :
10540 enableval=$enable_static; p=${PACKAGE-default}
10542 yes) enable_static=yes ;;
10543 no) enable_static=no ;;
10546 # Look at the argument we got. We use all the common list separators.
10547 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10548 for pkg in $enableval; do
10550 if test "X$pkg" = "X$p"; then
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10572 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10577 macro_version='2.4.2'
10578 macro_revision='1.3337'
10592 ltmain="$ac_aux_dir/ltmain.sh"
10594 # Backslashify metacharacters that are still active within
10595 # double-quoted strings.
10596 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10598 # Same as above, but do not quote variable references.
10599 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10601 # Sed substitution to delay expansion of an escaped shell variable in a
10602 # double_quote_subst'ed string.
10603 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10605 # Sed substitution to delay expansion of an escaped single quote.
10606 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10608 # Sed substitution to avoid accidental globbing in evaled expressions
10609 no_glob_subst='s/\*/\\\*/g'
10611 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10612 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10613 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10616 $as_echo_n "checking how to print strings... " >&6; }
10617 # Test print first, because it will be a builtin if present.
10618 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10619 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10621 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10624 # Use this function as a fallback that always works.
10625 func_fallback_echo ()
10627 eval 'cat <<_LTECHO_EOF
10631 ECHO='func_fallback_echo'
10634 # func_echo_all arg...
10635 # Invoke $ECHO with all args, space-separated.
10642 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10643 $as_echo "printf" >&6; } ;;
10644 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10645 $as_echo "print -r" >&6; } ;;
10646 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10647 $as_echo "cat" >&6; } ;;
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10664 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10665 if ${ac_cv_path_SED+:} false; then :
10666 $as_echo_n "(cached) " >&6
10668 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10669 for ac_i in 1 2 3 4 5 6 7; do
10670 ac_script="$ac_script$as_nl$ac_script"
10672 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10673 { ac_script=; unset ac_script;}
10674 if test -z "$SED"; then
10675 ac_path_SED_found=false
10676 # Loop through the user's path and test for each of PROGNAME-LIST
10677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10678 for as_dir in $PATH
10681 test -z "$as_dir" && as_dir=.
10682 for ac_prog in sed gsed; do
10683 for ac_exec_ext in '' $ac_executable_extensions; do
10684 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10685 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
10686 # Check for GNU ac_path_SED and select it if it is found.
10687 # Check for GNU $ac_path_SED
10688 case `"$ac_path_SED" --version 2>&1` in
10690 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10693 $as_echo_n 0123456789 >"conftest.in"
10696 cat "conftest.in" "conftest.in" >"conftest.tmp"
10697 mv "conftest.tmp" "conftest.in"
10698 cp "conftest.in" "conftest.nl"
10699 $as_echo '' >> "conftest.nl"
10700 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10701 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10702 as_fn_arith $ac_count + 1 && ac_count=$as_val
10703 if test $ac_count -gt ${ac_path_SED_max-0}; then
10704 # Best one so far, save it but keep looking for a better one
10705 ac_cv_path_SED="$ac_path_SED"
10706 ac_path_SED_max=$ac_count
10708 # 10*(2^10) chars as input seems more than enough
10709 test $ac_count -gt 10 && break
10711 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10714 $ac_path_SED_found && break 3
10719 if test -z "$ac_cv_path_SED"; then
10720 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10723 ac_cv_path_SED=$SED
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10728 $as_echo "$ac_cv_path_SED" >&6; }
10729 SED="$ac_cv_path_SED"
10732 test -z "$SED" && SED=sed
10733 Xsed="$SED -e 1s/^X//"
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10746 $as_echo_n "checking for fgrep... " >&6; }
10747 if ${ac_cv_path_FGREP+:} false; then :
10748 $as_echo_n "(cached) " >&6
10750 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10751 then ac_cv_path_FGREP="$GREP -F"
10753 if test -z "$FGREP"; then
10754 ac_path_FGREP_found=false
10755 # Loop through the user's path and test for each of PROGNAME-LIST
10756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10760 test -z "$as_dir" && as_dir=.
10761 for ac_prog in fgrep; do
10762 for ac_exec_ext in '' $ac_executable_extensions; do
10763 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10764 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
10765 # Check for GNU ac_path_FGREP and select it if it is found.
10766 # Check for GNU $ac_path_FGREP
10767 case `"$ac_path_FGREP" --version 2>&1` in
10769 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10772 $as_echo_n 0123456789 >"conftest.in"
10775 cat "conftest.in" "conftest.in" >"conftest.tmp"
10776 mv "conftest.tmp" "conftest.in"
10777 cp "conftest.in" "conftest.nl"
10778 $as_echo 'FGREP' >> "conftest.nl"
10779 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10780 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10781 as_fn_arith $ac_count + 1 && ac_count=$as_val
10782 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10783 # Best one so far, save it but keep looking for a better one
10784 ac_cv_path_FGREP="$ac_path_FGREP"
10785 ac_path_FGREP_max=$ac_count
10787 # 10*(2^10) chars as input seems more than enough
10788 test $ac_count -gt 10 && break
10790 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10793 $ac_path_FGREP_found && break 3
10798 if test -z "$ac_cv_path_FGREP"; then
10799 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10802 ac_cv_path_FGREP=$FGREP
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10808 $as_echo "$ac_cv_path_FGREP" >&6; }
10809 FGREP="$ac_cv_path_FGREP"
10812 test -z "$GREP" && GREP=grep
10832 # Check whether --with-gnu-ld was given.
10833 if test "${with_gnu_ld+set}" = set; then :
10834 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10840 if test "$GCC" = yes; then
10841 # Check if gcc -print-prog-name=ld gives a path.
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10843 $as_echo_n "checking for ld used by $CC... " >&6; }
10846 # gcc leaves a trailing carriage return which upsets mingw
10847 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10849 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10852 # Accept absolute paths.
10854 re_direlt='/[^/][^/]*/\.\./'
10855 # Canonicalize the pathname of ld
10856 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10857 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10858 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10860 test -z "$LD" && LD="$ac_prog"
10863 # If it fails, then pretend we aren't using GCC.
10867 # If it is relative, then search for the first ld in PATH.
10868 with_gnu_ld=unknown
10871 elif test "$with_gnu_ld" = yes; then
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10873 $as_echo_n "checking for GNU ld... " >&6; }
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10876 $as_echo_n "checking for non-GNU ld... " >&6; }
10878 if ${lt_cv_path_LD+:} false; then :
10879 $as_echo_n "(cached) " >&6
10881 if test -z "$LD"; then
10882 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10883 for ac_dir in $PATH; do
10885 test -z "$ac_dir" && ac_dir=.
10886 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10887 lt_cv_path_LD="$ac_dir/$ac_prog"
10888 # Check to see if the program is GNU ld. I'd rather use --version,
10889 # but apparently some variants of GNU ld only accept -v.
10890 # Break only if it was the GNU/non-GNU ld that we prefer.
10891 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10892 *GNU* | *'with BFD'*)
10893 test "$with_gnu_ld" != no && break
10896 test "$with_gnu_ld" != yes && break
10903 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10907 LD="$lt_cv_path_LD"
10908 if test -n "$LD"; then
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10910 $as_echo "$LD" >&6; }
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10913 $as_echo "no" >&6; }
10915 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10917 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10918 if ${lt_cv_prog_gnu_ld+:} false; then :
10919 $as_echo_n "(cached) " >&6
10921 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10922 case `$LD -v 2>&1 </dev/null` in
10923 *GNU* | *'with BFD'*)
10924 lt_cv_prog_gnu_ld=yes
10927 lt_cv_prog_gnu_ld=no
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10932 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10933 with_gnu_ld=$lt_cv_prog_gnu_ld
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10944 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
10945 if ${lt_cv_path_NM+:} false; then :
10946 $as_echo_n "(cached) " >&6
10948 if test -n "$NM"; then
10949 # Let the user override the test.
10950 lt_cv_path_NM="$NM"
10952 lt_nm_to_check="${ac_tool_prefix}nm"
10953 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10954 lt_nm_to_check="$lt_nm_to_check nm"
10956 for lt_tmp_nm in $lt_nm_to_check; do
10957 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10958 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10960 test -z "$ac_dir" && ac_dir=.
10961 tmp_nm="$ac_dir/$lt_tmp_nm"
10962 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10963 # Check to see if the nm accepts a BSD-compat flag.
10964 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10965 # nm: unknown option "B" ignored
10966 # Tru64's nm complains that /dev/null is an invalid object file
10967 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10968 */dev/null* | *'Invalid file or object type'*)
10969 lt_cv_path_NM="$tmp_nm -B"
10973 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10975 lt_cv_path_NM="$tmp_nm -p"
10979 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10980 continue # so that we can try to find one that supports BSD flags
10989 : ${lt_cv_path_NM=no}
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10993 $as_echo "$lt_cv_path_NM" >&6; }
10994 if test "$lt_cv_path_NM" != "no"; then
10995 NM="$lt_cv_path_NM"
10997 # Didn't find any BSD compatible name lister, look for dumpbin.
10998 if test -n "$DUMPBIN"; then :
10999 # Let the user override the test.
11001 if test -n "$ac_tool_prefix"; then
11002 for ac_prog in dumpbin "link -dump"
11004 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11005 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11007 $as_echo_n "checking for $ac_word... " >&6; }
11008 if ${ac_cv_prog_DUMPBIN+:} false; then :
11009 $as_echo_n "(cached) " >&6
11011 if test -n "$DUMPBIN"; then
11012 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11015 for as_dir in $PATH
11018 test -z "$as_dir" && as_dir=.
11019 for ac_exec_ext in '' $ac_executable_extensions; do
11020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11021 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11031 DUMPBIN=$ac_cv_prog_DUMPBIN
11032 if test -n "$DUMPBIN"; then
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11034 $as_echo "$DUMPBIN" >&6; }
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11037 $as_echo "no" >&6; }
11041 test -n "$DUMPBIN" && break
11044 if test -z "$DUMPBIN"; then
11045 ac_ct_DUMPBIN=$DUMPBIN
11046 for ac_prog in dumpbin "link -dump"
11048 # Extract the first word of "$ac_prog", so it can be a program name with args.
11049 set dummy $ac_prog; ac_word=$2
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11051 $as_echo_n "checking for $ac_word... " >&6; }
11052 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11053 $as_echo_n "(cached) " >&6
11055 if test -n "$ac_ct_DUMPBIN"; then
11056 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11059 for as_dir in $PATH
11062 test -z "$as_dir" && as_dir=.
11063 for ac_exec_ext in '' $ac_executable_extensions; do
11064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11065 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11075 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11076 if test -n "$ac_ct_DUMPBIN"; then
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11078 $as_echo "$ac_ct_DUMPBIN" >&6; }
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11081 $as_echo "no" >&6; }
11085 test -n "$ac_ct_DUMPBIN" && break
11088 if test "x$ac_ct_DUMPBIN" = x; then
11091 case $cross_compiling:$ac_tool_warned in
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11095 ac_tool_warned=yes ;;
11097 DUMPBIN=$ac_ct_DUMPBIN
11101 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11103 DUMPBIN="$DUMPBIN -symbols"
11111 if test "$DUMPBIN" != ":"; then
11115 test -z "$NM" && NM=nm
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11123 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11124 if ${lt_cv_nm_interface+:} false; then :
11125 $as_echo_n "(cached) " >&6
11127 lt_cv_nm_interface="BSD nm"
11128 echo "int some_variable = 0;" > conftest.$ac_ext
11129 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11130 (eval "$ac_compile" 2>conftest.err)
11131 cat conftest.err >&5
11132 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11133 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11134 cat conftest.err >&5
11135 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11136 cat conftest.out >&5
11137 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11138 lt_cv_nm_interface="MS dumpbin"
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11143 $as_echo "$lt_cv_nm_interface" >&6; }
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11146 $as_echo_n "checking whether ln -s works... " >&6; }
11148 if test "$LN_S" = "ln -s"; then
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11150 $as_echo "yes" >&6; }
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11153 $as_echo "no, using $LN_S" >&6; }
11156 # find the maximum length of command line arguments
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11158 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11159 if ${lt_cv_sys_max_cmd_len+:} false; then :
11160 $as_echo_n "(cached) " >&6
11167 # On DJGPP, this test can blow up pretty badly due to problems in libc
11168 # (any single argument exceeding 2000 bytes causes a buffer overrun
11169 # during glob expansion). Even if it were fixed, the result of this
11170 # check would be larger than it should be.
11171 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11175 # Under GNU Hurd, this test is not required because there is
11176 # no limit to the length of command line arguments.
11177 # Libtool will interpret -1 as no limit whatsoever
11178 lt_cv_sys_max_cmd_len=-1;
11181 cygwin* | mingw* | cegcc*)
11182 # On Win9x/ME, this test blows up -- it succeeds, but takes
11183 # about 5 minutes as the teststring grows exponentially.
11184 # Worse, since 9x/ME are not pre-emptively multitasking,
11185 # you end up with a "frozen" computer, even though with patience
11186 # the test eventually succeeds (with a max line length of 256k).
11187 # Instead, let's just punt: use the minimum linelength reported by
11188 # all of the supported platforms: 8192 (on NT/2K/XP).
11189 lt_cv_sys_max_cmd_len=8192;
11193 # On MiNT this can take a long time and run out of memory.
11194 lt_cv_sys_max_cmd_len=8192;
11198 # On AmigaOS with pdksh, this test takes hours, literally.
11199 # So we just punt and use a minimum line length of 8192.
11200 lt_cv_sys_max_cmd_len=8192;
11203 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11204 # This has been around since 386BSD, at least. Likely further.
11205 if test -x /sbin/sysctl; then
11206 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11207 elif test -x /usr/sbin/sysctl; then
11208 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11210 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11212 # And add a safety zone
11213 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11214 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11218 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11219 lt_cv_sys_max_cmd_len=196608
11223 # The test takes a long time on OS/2.
11224 lt_cv_sys_max_cmd_len=8192
11228 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11229 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11230 # nice to cause kernel panics so lets avoid the loop below.
11231 # First set a reasonable default.
11232 lt_cv_sys_max_cmd_len=16384
11234 if test -x /sbin/sysconfig; then
11235 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11236 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11241 lt_cv_sys_max_cmd_len=102400
11243 sysv5* | sco5v6* | sysv4.2uw2*)
11244 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11245 if test -n "$kargmax"; then
11246 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11248 lt_cv_sys_max_cmd_len=32768
11252 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11253 if test -n "$lt_cv_sys_max_cmd_len"; then
11254 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11255 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11257 # Make teststring a little bigger before we do anything with it.
11258 # a 1K string should be a reasonable start.
11259 for i in 1 2 3 4 5 6 7 8 ; do
11260 teststring=$teststring$teststring
11262 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11263 # If test is not a shell built-in, we'll probably end up computing a
11264 # maximum length that is only half of the actual maximum length, but
11266 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11267 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11268 test $i != 17 # 1/2 MB should be enough
11271 teststring=$teststring$teststring
11273 # Only check the string length outside the loop.
11274 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11276 # Add a significant safety factor because C++ compilers can tack on
11277 # massive amounts of additional arguments before passing them to the
11278 # linker. It appears as though 1/2 is a usable value.
11279 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11286 if test -n $lt_cv_sys_max_cmd_len ; then
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11288 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11291 $as_echo "none" >&6; }
11293 max_cmd_len=$lt_cv_sys_max_cmd_len
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11305 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11306 # Try some XSI features
11308 ( _lt_dummy="a/b/c"
11309 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11311 && eval 'test $(( 1 + 1 )) -eq 2 \
11312 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11315 $as_echo "$xsi_shell" >&6; }
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11319 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11321 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11323 && lt_shell_append=yes
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11325 $as_echo "$lt_shell_append" >&6; }
11328 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11338 # test EBCDIC or ASCII
11339 case `echo X|tr X '\101'` in
11340 A) # ASCII based system
11341 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11342 lt_SP2NL='tr \040 \012'
11343 lt_NL2SP='tr \015\012 \040\040'
11345 *) # EBCDIC based system
11346 lt_SP2NL='tr \100 \n'
11347 lt_NL2SP='tr \r\n \100\100'
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11360 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11361 if ${lt_cv_to_host_file_cmd+:} false; then :
11362 $as_echo_n "(cached) " >&6
11367 *-*-mingw* ) # actually msys
11368 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11371 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11373 * ) # otherwise, assume *nix
11374 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11380 *-*-mingw* ) # actually msys
11381 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11384 lt_cv_to_host_file_cmd=func_convert_file_noop
11386 * ) # otherwise, assume *nix
11387 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11391 * ) # unhandled hosts (and "normal" native builds)
11392 lt_cv_to_host_file_cmd=func_convert_file_noop
11398 to_host_file_cmd=$lt_cv_to_host_file_cmd
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11400 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11407 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11408 if ${lt_cv_to_tool_file_cmd+:} false; then :
11409 $as_echo_n "(cached) " >&6
11411 #assume ordinary cross tools, or native build.
11412 lt_cv_to_tool_file_cmd=func_convert_file_noop
11416 *-*-mingw* ) # actually msys
11417 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11425 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11427 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11434 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11435 if ${lt_cv_ld_reload_flag+:} false; then :
11436 $as_echo_n "(cached) " >&6
11438 lt_cv_ld_reload_flag='-r'
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11441 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11442 reload_flag=$lt_cv_ld_reload_flag
11443 case $reload_flag in
11445 *) reload_flag=" $reload_flag" ;;
11447 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11449 cygwin* | mingw* | pw32* | cegcc*)
11450 if test "$GCC" != yes; then
11455 if test "$GCC" = yes; then
11456 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11458 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11471 if test -n "$ac_tool_prefix"; then
11472 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11473 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11475 $as_echo_n "checking for $ac_word... " >&6; }
11476 if ${ac_cv_prog_OBJDUMP+:} false; then :
11477 $as_echo_n "(cached) " >&6
11479 if test -n "$OBJDUMP"; then
11480 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11483 for as_dir in $PATH
11486 test -z "$as_dir" && as_dir=.
11487 for ac_exec_ext in '' $ac_executable_extensions; do
11488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11489 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11499 OBJDUMP=$ac_cv_prog_OBJDUMP
11500 if test -n "$OBJDUMP"; then
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11502 $as_echo "$OBJDUMP" >&6; }
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11505 $as_echo "no" >&6; }
11510 if test -z "$ac_cv_prog_OBJDUMP"; then
11511 ac_ct_OBJDUMP=$OBJDUMP
11512 # Extract the first word of "objdump", so it can be a program name with args.
11513 set dummy objdump; ac_word=$2
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11515 $as_echo_n "checking for $ac_word... " >&6; }
11516 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11517 $as_echo_n "(cached) " >&6
11519 if test -n "$ac_ct_OBJDUMP"; then
11520 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11523 for as_dir in $PATH
11526 test -z "$as_dir" && as_dir=.
11527 for ac_exec_ext in '' $ac_executable_extensions; do
11528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11529 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11539 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11540 if test -n "$ac_ct_OBJDUMP"; then
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11542 $as_echo "$ac_ct_OBJDUMP" >&6; }
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11545 $as_echo "no" >&6; }
11548 if test "x$ac_ct_OBJDUMP" = x; then
11551 case $cross_compiling:$ac_tool_warned in
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11555 ac_tool_warned=yes ;;
11557 OBJDUMP=$ac_ct_OBJDUMP
11560 OBJDUMP="$ac_cv_prog_OBJDUMP"
11563 test -z "$OBJDUMP" && OBJDUMP=objdump
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11574 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11575 if ${lt_cv_deplibs_check_method+:} false; then :
11576 $as_echo_n "(cached) " >&6
11578 lt_cv_file_magic_cmd='$MAGIC_CMD'
11579 lt_cv_file_magic_test_file=
11580 lt_cv_deplibs_check_method='unknown'
11581 # Need to set the preceding variable on all platforms that support
11582 # interlibrary dependencies.
11583 # 'none' -- dependencies not supported.
11584 # `unknown' -- same as none, but documents that we really don't know.
11585 # 'pass_all' -- all dependencies passed with no checks.
11586 # 'test_compile' -- check by making test program.
11587 # 'file_magic [[regex]]' -- check by looking for files in library path
11588 # which responds to the $file_magic_cmd with a given extended regex.
11589 # If you have `file' or equivalent on your system and you're not sure
11590 # whether `pass_all' will *always* work, you probably want this one.
11594 lt_cv_deplibs_check_method=pass_all
11598 lt_cv_deplibs_check_method=pass_all
11602 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11603 lt_cv_file_magic_cmd='/usr/bin/file -L'
11604 lt_cv_file_magic_test_file=/shlib/libc.so
11608 # func_win32_libid is a shell function defined in ltmain.sh
11609 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11610 lt_cv_file_magic_cmd='func_win32_libid'
11614 # Base MSYS/MinGW do not provide the 'file' command needed by
11615 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11616 # unless we find 'file', for example because we are cross-compiling.
11617 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11618 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11619 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11620 lt_cv_file_magic_cmd='func_win32_libid'
11622 # Keep this pattern in sync with the one in func_win32_libid.
11623 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11624 lt_cv_file_magic_cmd='$OBJDUMP -f'
11629 # use the weaker test based on 'objdump'. See mingw*.
11630 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11631 lt_cv_file_magic_cmd='$OBJDUMP -f'
11634 darwin* | rhapsody*)
11635 lt_cv_deplibs_check_method=pass_all
11638 freebsd* | dragonfly*)
11639 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11642 # Not sure whether the presence of OpenBSD here was a mistake.
11643 # Let's accept both of them until this is cleared up.
11644 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11645 lt_cv_file_magic_cmd=/usr/bin/file
11646 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11650 lt_cv_deplibs_check_method=pass_all
11655 lt_cv_deplibs_check_method=pass_all
11659 lt_cv_deplibs_check_method=pass_all
11662 hpux10.20* | hpux11*)
11663 lt_cv_file_magic_cmd=/usr/bin/file
11666 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11667 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11670 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]'
11671 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11674 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11675 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11681 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11685 irix5* | irix6* | nonstopux*)
11687 *-32|*"-32 ") libmagic=32-bit;;
11688 *-n32|*"-n32 ") libmagic=N32;;
11689 *-64|*"-64 ") libmagic=64-bit;;
11690 *) libmagic=never-match;;
11692 lt_cv_deplibs_check_method=pass_all
11695 # This must be glibc/ELF.
11696 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11697 lt_cv_deplibs_check_method=pass_all
11701 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11702 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11704 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11709 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11710 lt_cv_file_magic_cmd=/usr/bin/file
11711 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11715 lt_cv_deplibs_check_method=pass_all
11719 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11720 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11722 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11726 osf3* | osf4* | osf5*)
11727 lt_cv_deplibs_check_method=pass_all
11731 lt_cv_deplibs_check_method=pass_all
11735 lt_cv_deplibs_check_method=pass_all
11738 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11739 lt_cv_deplibs_check_method=pass_all
11743 case $host_vendor in
11745 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]'
11746 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11749 lt_cv_deplibs_check_method=pass_all
11752 lt_cv_file_magic_cmd='/bin/file'
11753 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11756 lt_cv_file_magic_cmd='/bin/file'
11757 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11758 lt_cv_file_magic_test_file=/lib/libc.so
11761 lt_cv_deplibs_check_method=pass_all
11764 lt_cv_deplibs_check_method=pass_all
11770 lt_cv_deplibs_check_method=pass_all
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11776 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11780 if test "$build" = "$host"; then
11783 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11784 want_nocaseglob=yes
11786 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11792 file_magic_cmd=$lt_cv_file_magic_cmd
11793 deplibs_check_method=$lt_cv_deplibs_check_method
11794 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11817 if test -n "$ac_tool_prefix"; then
11818 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11819 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11821 $as_echo_n "checking for $ac_word... " >&6; }
11822 if ${ac_cv_prog_DLLTOOL+:} false; then :
11823 $as_echo_n "(cached) " >&6
11825 if test -n "$DLLTOOL"; then
11826 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829 for as_dir in $PATH
11832 test -z "$as_dir" && as_dir=.
11833 for ac_exec_ext in '' $ac_executable_extensions; do
11834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11835 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11845 DLLTOOL=$ac_cv_prog_DLLTOOL
11846 if test -n "$DLLTOOL"; then
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11848 $as_echo "$DLLTOOL" >&6; }
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851 $as_echo "no" >&6; }
11856 if test -z "$ac_cv_prog_DLLTOOL"; then
11857 ac_ct_DLLTOOL=$DLLTOOL
11858 # Extract the first word of "dlltool", so it can be a program name with args.
11859 set dummy dlltool; ac_word=$2
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11861 $as_echo_n "checking for $ac_word... " >&6; }
11862 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11863 $as_echo_n "(cached) " >&6
11865 if test -n "$ac_ct_DLLTOOL"; then
11866 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11869 for as_dir in $PATH
11872 test -z "$as_dir" && as_dir=.
11873 for ac_exec_ext in '' $ac_executable_extensions; do
11874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11875 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11885 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11886 if test -n "$ac_ct_DLLTOOL"; then
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11888 $as_echo "$ac_ct_DLLTOOL" >&6; }
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891 $as_echo "no" >&6; }
11894 if test "x$ac_ct_DLLTOOL" = x; then
11897 case $cross_compiling:$ac_tool_warned in
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11901 ac_tool_warned=yes ;;
11903 DLLTOOL=$ac_ct_DLLTOOL
11906 DLLTOOL="$ac_cv_prog_DLLTOOL"
11909 test -z "$DLLTOOL" && DLLTOOL=dlltool
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11921 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11922 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11923 $as_echo_n "(cached) " >&6
11925 lt_cv_sharedlib_from_linklib_cmd='unknown'
11928 cygwin* | mingw* | pw32* | cegcc*)
11929 # two different shell functions defined in ltmain.sh
11930 # decide which to use based on capabilities of $DLLTOOL
11931 case `$DLLTOOL --help 2>&1` in
11932 *--identify-strict*)
11933 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11936 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11941 # fallback: assume linklib IS sharedlib
11942 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11948 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11949 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11950 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11958 if test -n "$ac_tool_prefix"; then
11961 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11962 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11964 $as_echo_n "checking for $ac_word... " >&6; }
11965 if ${ac_cv_prog_AR+:} false; then :
11966 $as_echo_n "(cached) " >&6
11968 if test -n "$AR"; then
11969 ac_cv_prog_AR="$AR" # Let the user override the test.
11971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11972 for as_dir in $PATH
11975 test -z "$as_dir" && as_dir=.
11976 for ac_exec_ext in '' $ac_executable_extensions; do
11977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11978 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
11979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11989 if test -n "$AR"; then
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11991 $as_echo "$AR" >&6; }
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994 $as_echo "no" >&6; }
11998 test -n "$AR" && break
12001 if test -z "$AR"; then
12005 # Extract the first word of "$ac_prog", so it can be a program name with args.
12006 set dummy $ac_prog; ac_word=$2
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12008 $as_echo_n "checking for $ac_word... " >&6; }
12009 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12010 $as_echo_n "(cached) " >&6
12012 if test -n "$ac_ct_AR"; then
12013 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12016 for as_dir in $PATH
12019 test -z "$as_dir" && as_dir=.
12020 for ac_exec_ext in '' $ac_executable_extensions; do
12021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12022 ac_cv_prog_ac_ct_AR="$ac_prog"
12023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12032 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12033 if test -n "$ac_ct_AR"; then
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12035 $as_echo "$ac_ct_AR" >&6; }
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038 $as_echo "no" >&6; }
12042 test -n "$ac_ct_AR" && break
12045 if test "x$ac_ct_AR" = x; then
12048 case $cross_compiling:$ac_tool_warned in
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12052 ac_tool_warned=yes ;;
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12072 $as_echo_n "checking for archiver @FILE support... " >&6; }
12073 if ${lt_cv_ar_at_file+:} false; then :
12074 $as_echo_n "(cached) " >&6
12076 lt_cv_ar_at_file=no
12077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078 /* end confdefs.h. */
12088 if ac_fn_c_try_compile "$LINENO"; then :
12089 echo conftest.$ac_objext > conftest.lst
12090 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12092 (eval $lt_ar_try) 2>&5
12094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12095 test $ac_status = 0; }
12096 if test "$ac_status" -eq 0; then
12097 # Ensure the archiver fails upon bogus file names.
12098 rm -f conftest.$ac_objext libconftest.a
12099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12100 (eval $lt_ar_try) 2>&5
12102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12103 test $ac_status = 0; }
12104 if test "$ac_status" -ne 0; then
12108 rm -f conftest.* libconftest.a
12111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12115 $as_echo "$lt_cv_ar_at_file" >&6; }
12117 if test "x$lt_cv_ar_at_file" = xno; then
12118 archiver_list_spec=
12120 archiver_list_spec=$lt_cv_ar_at_file
12129 if test -n "$ac_tool_prefix"; then
12130 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12131 set dummy ${ac_tool_prefix}strip; ac_word=$2
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12133 $as_echo_n "checking for $ac_word... " >&6; }
12134 if ${ac_cv_prog_STRIP+:} false; then :
12135 $as_echo_n "(cached) " >&6
12137 if test -n "$STRIP"; then
12138 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12141 for as_dir in $PATH
12144 test -z "$as_dir" && as_dir=.
12145 for ac_exec_ext in '' $ac_executable_extensions; do
12146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12147 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12157 STRIP=$ac_cv_prog_STRIP
12158 if test -n "$STRIP"; then
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12160 $as_echo "$STRIP" >&6; }
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163 $as_echo "no" >&6; }
12168 if test -z "$ac_cv_prog_STRIP"; then
12170 # Extract the first word of "strip", so it can be a program name with args.
12171 set dummy strip; ac_word=$2
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12173 $as_echo_n "checking for $ac_word... " >&6; }
12174 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12175 $as_echo_n "(cached) " >&6
12177 if test -n "$ac_ct_STRIP"; then
12178 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12181 for as_dir in $PATH
12184 test -z "$as_dir" && as_dir=.
12185 for ac_exec_ext in '' $ac_executable_extensions; do
12186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12187 ac_cv_prog_ac_ct_STRIP="strip"
12188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12197 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12198 if test -n "$ac_ct_STRIP"; then
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12200 $as_echo "$ac_ct_STRIP" >&6; }
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12203 $as_echo "no" >&6; }
12206 if test "x$ac_ct_STRIP" = x; then
12209 case $cross_compiling:$ac_tool_warned in
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12213 ac_tool_warned=yes ;;
12218 STRIP="$ac_cv_prog_STRIP"
12221 test -z "$STRIP" && STRIP=:
12228 if test -n "$ac_tool_prefix"; then
12229 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12230 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12232 $as_echo_n "checking for $ac_word... " >&6; }
12233 if ${ac_cv_prog_RANLIB+:} false; then :
12234 $as_echo_n "(cached) " >&6
12236 if test -n "$RANLIB"; then
12237 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240 for as_dir in $PATH
12243 test -z "$as_dir" && as_dir=.
12244 for ac_exec_ext in '' $ac_executable_extensions; do
12245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12246 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12256 RANLIB=$ac_cv_prog_RANLIB
12257 if test -n "$RANLIB"; then
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12259 $as_echo "$RANLIB" >&6; }
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262 $as_echo "no" >&6; }
12267 if test -z "$ac_cv_prog_RANLIB"; then
12268 ac_ct_RANLIB=$RANLIB
12269 # Extract the first word of "ranlib", so it can be a program name with args.
12270 set dummy ranlib; ac_word=$2
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12272 $as_echo_n "checking for $ac_word... " >&6; }
12273 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12274 $as_echo_n "(cached) " >&6
12276 if test -n "$ac_ct_RANLIB"; then
12277 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280 for as_dir in $PATH
12283 test -z "$as_dir" && as_dir=.
12284 for ac_exec_ext in '' $ac_executable_extensions; do
12285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12286 ac_cv_prog_ac_ct_RANLIB="ranlib"
12287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12296 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12297 if test -n "$ac_ct_RANLIB"; then
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12299 $as_echo "$ac_ct_RANLIB" >&6; }
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12302 $as_echo "no" >&6; }
12305 if test "x$ac_ct_RANLIB" = x; then
12308 case $cross_compiling:$ac_tool_warned in
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12312 ac_tool_warned=yes ;;
12314 RANLIB=$ac_ct_RANLIB
12317 RANLIB="$ac_cv_prog_RANLIB"
12320 test -z "$RANLIB" && RANLIB=:
12327 # Determine commands to create old-style static archives.
12328 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12329 old_postinstall_cmds='chmod 644 $oldlib'
12330 old_postuninstall_cmds=
12332 if test -n "$RANLIB"; then
12335 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12338 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12341 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12346 lock_old_archive_extraction=yes ;;
12348 lock_old_archive_extraction=no ;;
12389 # If no C compiler was specified, use CC.
12392 # If no C compiler flags were specified, use CFLAGS.
12393 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12395 # Allow CC to be a program name with arguments.
12399 # Check for command to grab the raw symbol name followed by C symbol from nm.
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12401 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12402 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12403 $as_echo_n "(cached) " >&6
12406 # These are sane defaults that work on at least a few old systems.
12407 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12409 # Character class describing NM global symbol codes.
12410 symcode='[BCDEGRST]'
12412 # Regexp to match symbols that can be accessed directly from C.
12413 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12415 # Define system-specific variables.
12420 cygwin* | mingw* | pw32* | cegcc*)
12421 symcode='[ABCDGISTW]'
12424 if test "$host_cpu" = ia64; then
12425 symcode='[ABCDEGRST]'
12428 irix* | nonstopux*)
12429 symcode='[BCDEGRST]'
12432 symcode='[BCDEGQRST]'
12443 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12451 # If we're using GNU nm, then use its standard symbol codes.
12452 case `$NM -V 2>&1` in
12453 *GNU* | *'with BFD'*)
12454 symcode='[ABCDGIRSTW]' ;;
12457 # Transform an extracted symbol line into a proper C declaration.
12458 # Some systems (esp. on ia64) link data and code symbols differently,
12459 # so use this general approach.
12460 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12462 # Transform an extracted symbol line into symbol name and symbol address
12463 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12464 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'"
12466 # Handle CRLF in mingw tool chain
12470 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12474 # Try without a prefix underscore, then with it.
12475 for ac_symprfx in "" "_"; do
12477 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12478 symxfrm="\\1 $ac_symprfx\\2 \\2"
12480 # Write the raw and C identifiers.
12481 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12482 # Fake it for dumpbin and say T for any non-static function
12483 # and D for any global variable.
12484 # Also find C++ and __fastcall symbols from MSVC++,
12485 # which start with @ or ?.
12486 lt_cv_sys_global_symbol_pipe="$AWK '"\
12487 " {last_section=section; section=\$ 3};"\
12488 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12489 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12490 " \$ 0!~/External *\|/{next};"\
12491 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12492 " {if(hide[section]) next};"\
12493 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12494 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12495 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12496 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12497 " ' prfx=^$ac_symprfx"
12499 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12501 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12503 # Check to see that the pipe works correctly.
12507 cat > conftest.$ac_ext <<_LT_EOF
12512 void nm_test_func(void);
12513 void nm_test_func(void){}
12517 int main(){nm_test_var='a';nm_test_func();return(0);}
12520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12521 (eval $ac_compile) 2>&5
12523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12524 test $ac_status = 0; }; then
12525 # Now try to grab the symbols.
12527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12528 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12531 test $ac_status = 0; } && test -s "$nlist"; then
12532 # Try sorting and uniquifying the output.
12533 if sort "$nlist" | uniq > "$nlist"T; then
12534 mv -f "$nlist"T "$nlist"
12539 # Make sure that we snagged all the symbols we need.
12540 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12541 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12542 cat <<_LT_EOF > conftest.$ac_ext
12543 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12544 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12545 /* DATA imports from DLLs on WIN32 con't be const, because runtime
12546 relocations are performed -- see ld's documentation on pseudo-relocs. */
12547 # define LT_DLSYM_CONST
12548 #elif defined(__osf__)
12549 /* This system does not cope well with relocations in const data. */
12550 # define LT_DLSYM_CONST
12552 # define LT_DLSYM_CONST const
12560 # Now generate the symbol file.
12561 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12563 cat <<_LT_EOF >> conftest.$ac_ext
12565 /* The mapping between symbol names and symbols. */
12566 LT_DLSYM_CONST struct {
12570 lt__PROGRAM__LTX_preloaded_symbols[] =
12572 { "@PROGRAM@", (void *) 0 },
12574 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12575 cat <<\_LT_EOF >> conftest.$ac_ext
12579 /* This works around a problem in FreeBSD linker */
12580 #ifdef FREEBSD_WORKAROUND
12581 static const void *lt_preloaded_setup() {
12582 return lt__PROGRAM__LTX_preloaded_symbols;
12590 # Now try linking the two files.
12591 mv conftest.$ac_objext conftstm.$ac_objext
12592 lt_globsym_save_LIBS=$LIBS
12593 lt_globsym_save_CFLAGS=$CFLAGS
12594 LIBS="conftstm.$ac_objext"
12595 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12597 (eval $ac_link) 2>&5
12599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12600 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12603 LIBS=$lt_globsym_save_LIBS
12604 CFLAGS=$lt_globsym_save_CFLAGS
12606 echo "cannot find nm_test_func in $nlist" >&5
12609 echo "cannot find nm_test_var in $nlist" >&5
12612 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12615 echo "$progname: failed program was:" >&5
12616 cat conftest.$ac_ext >&5
12618 rm -rf conftest* conftst*
12620 # Do not use the global_symbol_pipe unless it works.
12621 if test "$pipe_works" = yes; then
12624 lt_cv_sys_global_symbol_pipe=
12630 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12631 lt_cv_sys_global_symbol_to_cdecl=
12633 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12635 $as_echo "failed" >&6; }
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12638 $as_echo "ok" >&6; }
12641 # Response file support.
12642 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12643 nm_file_list_spec='@'
12644 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12645 nm_file_list_spec='@'
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12675 $as_echo_n "checking for sysroot... " >&6; }
12677 # Check whether --with-sysroot was given.
12678 if test "${with_sysroot+set}" = set; then :
12679 withval=$with_sysroot;
12686 case ${with_sysroot} in #(
12688 if test "$GCC" = yes; then
12689 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12693 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12699 $as_echo "${with_sysroot}" >&6; }
12700 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12705 $as_echo "${lt_sysroot:-no}" >&6; }
12711 # Check whether --enable-libtool-lock was given.
12712 if test "${enable_libtool_lock+set}" = set; then :
12713 enableval=$enable_libtool_lock;
12716 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12718 # Some flags need to be propagated to the compiler or linker for good
12722 # Find out which ABI we are using.
12723 echo 'int i;' > conftest.$ac_ext
12724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12725 (eval $ac_compile) 2>&5
12727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12728 test $ac_status = 0; }; then
12729 case `/usr/bin/file conftest.$ac_objext` in
12731 HPUX_IA64_MODE="32"
12734 HPUX_IA64_MODE="64"
12741 # Find out which ABI we are using.
12742 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12744 (eval $ac_compile) 2>&5
12746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12747 test $ac_status = 0; }; then
12748 if test "$lt_cv_prog_gnu_ld" = yes; then
12749 case `/usr/bin/file conftest.$ac_objext` in
12751 LD="${LD-ld} -melf32bsmip"
12754 LD="${LD-ld} -melf32bmipn32"
12757 LD="${LD-ld} -melf64bmip"
12761 case `/usr/bin/file conftest.$ac_objext` in
12777 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12778 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12779 # Find out which ABI we are using.
12780 echo 'int i;' > conftest.$ac_ext
12781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12782 (eval $ac_compile) 2>&5
12784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12785 test $ac_status = 0; }; then
12786 case `/usr/bin/file conftest.o` in
12789 x86_64-*kfreebsd*-gnu)
12790 LD="${LD-ld} -m elf_i386_fbsd"
12793 LD="${LD-ld} -m elf_i386"
12795 ppc64-*linux*|powerpc64-*linux*)
12796 LD="${LD-ld} -m elf32ppclinux"
12799 LD="${LD-ld} -m elf_s390"
12802 LD="${LD-ld} -m elf32_sparc"
12808 x86_64-*kfreebsd*-gnu)
12809 LD="${LD-ld} -m elf_x86_64_fbsd"
12812 LD="${LD-ld} -m elf_x86_64"
12814 ppc*-*linux*|powerpc*-*linux*)
12815 LD="${LD-ld} -m elf64ppc"
12817 s390*-*linux*|s390*-*tpf*)
12818 LD="${LD-ld} -m elf64_s390"
12821 LD="${LD-ld} -m elf64_sparc"
12831 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12832 SAVE_CFLAGS="$CFLAGS"
12833 CFLAGS="$CFLAGS -belf"
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12835 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12836 if ${lt_cv_cc_needs_belf+:} false; then :
12837 $as_echo_n "(cached) " >&6
12840 ac_cpp='$CPP $CPPFLAGS'
12841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12846 /* end confdefs.h. */
12856 if ac_fn_c_try_link "$LINENO"; then :
12857 lt_cv_cc_needs_belf=yes
12859 lt_cv_cc_needs_belf=no
12861 rm -f core conftest.err conftest.$ac_objext \
12862 conftest$ac_exeext conftest.$ac_ext
12864 ac_cpp='$CPP $CPPFLAGS'
12865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12871 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12872 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12873 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12874 CFLAGS="$SAVE_CFLAGS"
12878 # Find out which ABI we are using.
12879 echo 'int i;' > conftest.$ac_ext
12880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12881 (eval $ac_compile) 2>&5
12883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12884 test $ac_status = 0; }; then
12885 case `/usr/bin/file conftest.o` in
12887 case $lt_cv_prog_gnu_ld in
12891 LD="${LD-ld} -m elf_x86_64"
12894 LD="${LD-ld} -m elf64_sparc"
12897 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12898 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12903 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12915 need_locks="$enable_libtool_lock"
12917 if test -n "$ac_tool_prefix"; then
12918 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12919 set dummy ${ac_tool_prefix}mt; ac_word=$2
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12921 $as_echo_n "checking for $ac_word... " >&6; }
12922 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12923 $as_echo_n "(cached) " >&6
12925 if test -n "$MANIFEST_TOOL"; then
12926 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12929 for as_dir in $PATH
12932 test -z "$as_dir" && as_dir=.
12933 for ac_exec_ext in '' $ac_executable_extensions; do
12934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12935 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12945 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12946 if test -n "$MANIFEST_TOOL"; then
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12948 $as_echo "$MANIFEST_TOOL" >&6; }
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12951 $as_echo "no" >&6; }
12956 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12957 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12958 # Extract the first word of "mt", so it can be a program name with args.
12959 set dummy mt; ac_word=$2
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12961 $as_echo_n "checking for $ac_word... " >&6; }
12962 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12963 $as_echo_n "(cached) " >&6
12965 if test -n "$ac_ct_MANIFEST_TOOL"; then
12966 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12969 for as_dir in $PATH
12972 test -z "$as_dir" && as_dir=.
12973 for ac_exec_ext in '' $ac_executable_extensions; do
12974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12975 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12985 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12986 if test -n "$ac_ct_MANIFEST_TOOL"; then
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12988 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12991 $as_echo "no" >&6; }
12994 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12997 case $cross_compiling:$ac_tool_warned in
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13001 ac_tool_warned=yes ;;
13003 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13006 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13009 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13011 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13012 if ${lt_cv_path_mainfest_tool+:} false; then :
13013 $as_echo_n "(cached) " >&6
13015 lt_cv_path_mainfest_tool=no
13016 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13017 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13018 cat conftest.err >&5
13019 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13020 lt_cv_path_mainfest_tool=yes
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13025 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13026 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13036 rhapsody* | darwin*)
13037 if test -n "$ac_tool_prefix"; then
13038 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13039 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13041 $as_echo_n "checking for $ac_word... " >&6; }
13042 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13043 $as_echo_n "(cached) " >&6
13045 if test -n "$DSYMUTIL"; then
13046 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13049 for as_dir in $PATH
13052 test -z "$as_dir" && as_dir=.
13053 for ac_exec_ext in '' $ac_executable_extensions; do
13054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13055 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13065 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13066 if test -n "$DSYMUTIL"; then
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13068 $as_echo "$DSYMUTIL" >&6; }
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13071 $as_echo "no" >&6; }
13076 if test -z "$ac_cv_prog_DSYMUTIL"; then
13077 ac_ct_DSYMUTIL=$DSYMUTIL
13078 # Extract the first word of "dsymutil", so it can be a program name with args.
13079 set dummy dsymutil; ac_word=$2
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13081 $as_echo_n "checking for $ac_word... " >&6; }
13082 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13083 $as_echo_n "(cached) " >&6
13085 if test -n "$ac_ct_DSYMUTIL"; then
13086 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13089 for as_dir in $PATH
13092 test -z "$as_dir" && as_dir=.
13093 for ac_exec_ext in '' $ac_executable_extensions; do
13094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13095 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13105 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13106 if test -n "$ac_ct_DSYMUTIL"; then
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13108 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13111 $as_echo "no" >&6; }
13114 if test "x$ac_ct_DSYMUTIL" = x; then
13117 case $cross_compiling:$ac_tool_warned in
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13121 ac_tool_warned=yes ;;
13123 DSYMUTIL=$ac_ct_DSYMUTIL
13126 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13129 if test -n "$ac_tool_prefix"; then
13130 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13131 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13133 $as_echo_n "checking for $ac_word... " >&6; }
13134 if ${ac_cv_prog_NMEDIT+:} false; then :
13135 $as_echo_n "(cached) " >&6
13137 if test -n "$NMEDIT"; then
13138 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141 for as_dir in $PATH
13144 test -z "$as_dir" && as_dir=.
13145 for ac_exec_ext in '' $ac_executable_extensions; do
13146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13147 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13157 NMEDIT=$ac_cv_prog_NMEDIT
13158 if test -n "$NMEDIT"; then
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13160 $as_echo "$NMEDIT" >&6; }
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13163 $as_echo "no" >&6; }
13168 if test -z "$ac_cv_prog_NMEDIT"; then
13169 ac_ct_NMEDIT=$NMEDIT
13170 # Extract the first word of "nmedit", so it can be a program name with args.
13171 set dummy nmedit; ac_word=$2
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13173 $as_echo_n "checking for $ac_word... " >&6; }
13174 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13175 $as_echo_n "(cached) " >&6
13177 if test -n "$ac_ct_NMEDIT"; then
13178 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13181 for as_dir in $PATH
13184 test -z "$as_dir" && as_dir=.
13185 for ac_exec_ext in '' $ac_executable_extensions; do
13186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13187 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13197 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13198 if test -n "$ac_ct_NMEDIT"; then
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13200 $as_echo "$ac_ct_NMEDIT" >&6; }
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13203 $as_echo "no" >&6; }
13206 if test "x$ac_ct_NMEDIT" = x; then
13209 case $cross_compiling:$ac_tool_warned in
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13213 ac_tool_warned=yes ;;
13215 NMEDIT=$ac_ct_NMEDIT
13218 NMEDIT="$ac_cv_prog_NMEDIT"
13221 if test -n "$ac_tool_prefix"; then
13222 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13223 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13225 $as_echo_n "checking for $ac_word... " >&6; }
13226 if ${ac_cv_prog_LIPO+:} false; then :
13227 $as_echo_n "(cached) " >&6
13229 if test -n "$LIPO"; then
13230 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233 for as_dir in $PATH
13236 test -z "$as_dir" && as_dir=.
13237 for ac_exec_ext in '' $ac_executable_extensions; do
13238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13239 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13249 LIPO=$ac_cv_prog_LIPO
13250 if test -n "$LIPO"; then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13252 $as_echo "$LIPO" >&6; }
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255 $as_echo "no" >&6; }
13260 if test -z "$ac_cv_prog_LIPO"; then
13262 # Extract the first word of "lipo", so it can be a program name with args.
13263 set dummy lipo; ac_word=$2
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13265 $as_echo_n "checking for $ac_word... " >&6; }
13266 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13267 $as_echo_n "(cached) " >&6
13269 if test -n "$ac_ct_LIPO"; then
13270 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273 for as_dir in $PATH
13276 test -z "$as_dir" && as_dir=.
13277 for ac_exec_ext in '' $ac_executable_extensions; do
13278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13279 ac_cv_prog_ac_ct_LIPO="lipo"
13280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13289 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13290 if test -n "$ac_ct_LIPO"; then
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13292 $as_echo "$ac_ct_LIPO" >&6; }
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13295 $as_echo "no" >&6; }
13298 if test "x$ac_ct_LIPO" = x; then
13301 case $cross_compiling:$ac_tool_warned in
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13305 ac_tool_warned=yes ;;
13310 LIPO="$ac_cv_prog_LIPO"
13313 if test -n "$ac_tool_prefix"; then
13314 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13315 set dummy ${ac_tool_prefix}otool; ac_word=$2
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13317 $as_echo_n "checking for $ac_word... " >&6; }
13318 if ${ac_cv_prog_OTOOL+:} false; then :
13319 $as_echo_n "(cached) " >&6
13321 if test -n "$OTOOL"; then
13322 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13325 for as_dir in $PATH
13328 test -z "$as_dir" && as_dir=.
13329 for ac_exec_ext in '' $ac_executable_extensions; do
13330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13331 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13341 OTOOL=$ac_cv_prog_OTOOL
13342 if test -n "$OTOOL"; then
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13344 $as_echo "$OTOOL" >&6; }
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13347 $as_echo "no" >&6; }
13352 if test -z "$ac_cv_prog_OTOOL"; then
13354 # Extract the first word of "otool", so it can be a program name with args.
13355 set dummy otool; ac_word=$2
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13357 $as_echo_n "checking for $ac_word... " >&6; }
13358 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13359 $as_echo_n "(cached) " >&6
13361 if test -n "$ac_ct_OTOOL"; then
13362 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13365 for as_dir in $PATH
13368 test -z "$as_dir" && as_dir=.
13369 for ac_exec_ext in '' $ac_executable_extensions; do
13370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13371 ac_cv_prog_ac_ct_OTOOL="otool"
13372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13381 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13382 if test -n "$ac_ct_OTOOL"; then
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13384 $as_echo "$ac_ct_OTOOL" >&6; }
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13387 $as_echo "no" >&6; }
13390 if test "x$ac_ct_OTOOL" = x; then
13393 case $cross_compiling:$ac_tool_warned in
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13397 ac_tool_warned=yes ;;
13402 OTOOL="$ac_cv_prog_OTOOL"
13405 if test -n "$ac_tool_prefix"; then
13406 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13407 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13409 $as_echo_n "checking for $ac_word... " >&6; }
13410 if ${ac_cv_prog_OTOOL64+:} false; then :
13411 $as_echo_n "(cached) " >&6
13413 if test -n "$OTOOL64"; then
13414 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13417 for as_dir in $PATH
13420 test -z "$as_dir" && as_dir=.
13421 for ac_exec_ext in '' $ac_executable_extensions; do
13422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13423 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13433 OTOOL64=$ac_cv_prog_OTOOL64
13434 if test -n "$OTOOL64"; then
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13436 $as_echo "$OTOOL64" >&6; }
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13439 $as_echo "no" >&6; }
13444 if test -z "$ac_cv_prog_OTOOL64"; then
13445 ac_ct_OTOOL64=$OTOOL64
13446 # Extract the first word of "otool64", so it can be a program name with args.
13447 set dummy otool64; ac_word=$2
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13449 $as_echo_n "checking for $ac_word... " >&6; }
13450 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13451 $as_echo_n "(cached) " >&6
13453 if test -n "$ac_ct_OTOOL64"; then
13454 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13457 for as_dir in $PATH
13460 test -z "$as_dir" && as_dir=.
13461 for ac_exec_ext in '' $ac_executable_extensions; do
13462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13463 ac_cv_prog_ac_ct_OTOOL64="otool64"
13464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13473 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13474 if test -n "$ac_ct_OTOOL64"; then
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13476 $as_echo "$ac_ct_OTOOL64" >&6; }
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13479 $as_echo "no" >&6; }
13482 if test "x$ac_ct_OTOOL64" = x; then
13485 case $cross_compiling:$ac_tool_warned in
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13489 ac_tool_warned=yes ;;
13491 OTOOL64=$ac_ct_OTOOL64
13494 OTOOL64="$ac_cv_prog_OTOOL64"
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13524 $as_echo_n "checking for -single_module linker flag... " >&6; }
13525 if ${lt_cv_apple_cc_single_mod+:} false; then :
13526 $as_echo_n "(cached) " >&6
13528 lt_cv_apple_cc_single_mod=no
13529 if test -z "${LT_MULTI_MODULE}"; then
13530 # By default we will add the -single_module flag. You can override
13531 # by either setting the environment variable LT_MULTI_MODULE
13532 # non-empty at configure time, or by adding -multi_module to the
13534 rm -rf libconftest.dylib*
13535 echo "int foo(void){return 1;}" > conftest.c
13536 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13537 -dynamiclib -Wl,-single_module conftest.c" >&5
13538 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13539 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13541 # If there is a non-empty error log, and "single_module"
13542 # appears in it, assume the flag caused a linker warning
13543 if test -s conftest.err && $GREP single_module conftest.err; then
13544 cat conftest.err >&5
13545 # Otherwise, if the output was created with a 0 exit code from
13546 # the compiler, it worked.
13547 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13548 lt_cv_apple_cc_single_mod=yes
13550 cat conftest.err >&5
13552 rm -rf libconftest.dylib*
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13557 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13560 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13561 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13562 $as_echo_n "(cached) " >&6
13564 lt_cv_ld_exported_symbols_list=no
13565 save_LDFLAGS=$LDFLAGS
13566 echo "_main" > conftest.sym
13567 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13569 /* end confdefs.h. */
13579 if ac_fn_c_try_link "$LINENO"; then :
13580 lt_cv_ld_exported_symbols_list=yes
13582 lt_cv_ld_exported_symbols_list=no
13584 rm -f core conftest.err conftest.$ac_objext \
13585 conftest$ac_exeext conftest.$ac_ext
13586 LDFLAGS="$save_LDFLAGS"
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13590 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13593 $as_echo_n "checking for -force_load linker flag... " >&6; }
13594 if ${lt_cv_ld_force_load+:} false; then :
13595 $as_echo_n "(cached) " >&6
13597 lt_cv_ld_force_load=no
13598 cat > conftest.c << _LT_EOF
13599 int forced_loaded() { return 2;}
13601 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13602 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13603 echo "$AR cru libconftest.a conftest.o" >&5
13604 $AR cru libconftest.a conftest.o 2>&5
13605 echo "$RANLIB libconftest.a" >&5
13606 $RANLIB libconftest.a 2>&5
13607 cat > conftest.c << _LT_EOF
13608 int main() { return 0;}
13610 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13611 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13613 if test -s conftest.err && $GREP force_load conftest.err; then
13614 cat conftest.err >&5
13615 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13616 lt_cv_ld_force_load=yes
13618 cat conftest.err >&5
13620 rm -f conftest.err libconftest.a conftest conftest.c
13621 rm -rf conftest.dSYM
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13625 $as_echo "$lt_cv_ld_force_load" >&6; }
13627 rhapsody* | darwin1.[012])
13628 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13630 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13631 darwin*) # darwin 5.x on
13632 # if running on 10.5 or later, the deployment target defaults
13633 # to the OS version, if on x86, and 10.4, the deployment
13634 # target defaults to 10.4. Don't you love it?
13635 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13636 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13637 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13639 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13641 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13645 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13646 _lt_dar_single_mod='$single_module'
13648 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13649 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13651 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13653 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13654 _lt_dsymutil='~$DSYMUTIL $lib || :'
13661 for ac_header in dlfcn.h
13663 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13665 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13666 cat >>confdefs.h <<_ACEOF
13667 #define HAVE_DLFCN_H 1
13685 enable_win32_dll=no
13688 # Check whether --enable-shared was given.
13689 if test "${enable_shared+set}" = set; then :
13690 enableval=$enable_shared; p=${PACKAGE-default}
13692 yes) enable_shared=yes ;;
13693 no) enable_shared=no ;;
13696 # Look at the argument we got. We use all the common list separators.
13697 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13698 for pkg in $enableval; do
13700 if test "X$pkg" = "X$p"; then
13721 # Check whether --with-pic was given.
13722 if test "${with_pic+set}" = set; then :
13723 withval=$with_pic; lt_p=${PACKAGE-default}
13725 yes|no) pic_mode=$withval ;;
13728 # Look at the argument we got. We use all the common list separators.
13729 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13730 for lt_pkg in $withval; do
13732 if test "X$lt_pkg" = "X$lt_p"; then
13744 test -z "$pic_mode" && pic_mode=default
13752 # Check whether --enable-fast-install was given.
13753 if test "${enable_fast_install+set}" = set; then :
13754 enableval=$enable_fast_install; p=${PACKAGE-default}
13756 yes) enable_fast_install=yes ;;
13757 no) enable_fast_install=no ;;
13759 enable_fast_install=no
13760 # Look at the argument we got. We use all the common list separators.
13761 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13762 for pkg in $enableval; do
13764 if test "X$pkg" = "X$p"; then
13765 enable_fast_install=yes
13772 enable_fast_install=yes
13785 # This can be used to rebuild libtool when needed
13786 LIBTOOL_DEPS="$ltmain"
13788 # Always use our own libtool.
13789 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13820 test -z "$LN_S" && LN_S="ln -s"
13835 if test -n "${ZSH_VERSION+set}" ; then
13836 setopt NO_GLOB_SUBST
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13840 $as_echo_n "checking for objdir... " >&6; }
13841 if ${lt_cv_objdir+:} false; then :
13842 $as_echo_n "(cached) " >&6
13844 rm -f .libs 2>/dev/null
13845 mkdir .libs 2>/dev/null
13846 if test -d .libs; then
13849 # MS-DOS does not allow filenames that begin with a dot.
13852 rmdir .libs 2>/dev/null
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13855 $as_echo "$lt_cv_objdir" >&6; }
13856 objdir=$lt_cv_objdir
13862 cat >>confdefs.h <<_ACEOF
13863 #define LT_OBJDIR "$lt_cv_objdir/"
13871 # AIX sometimes has problems with the GCC collect2 program. For some
13872 # reason, if we set the COLLECT_NAMES environment variable, the problems
13873 # vanish in a puff of smoke.
13874 if test "X${COLLECT_NAMES+set}" != Xset; then
13876 export COLLECT_NAMES
13881 # Global variables:
13883 can_build_shared=yes
13885 # All known linkers require a `.a' archive for static linking (except MSVC,
13886 # which needs '.lib').
13889 with_gnu_ld="$lt_cv_prog_gnu_ld"
13892 old_CFLAGS="$CFLAGS"
13894 # Set sane defaults for various variables
13895 test -z "$CC" && CC=cc
13896 test -z "$LTCC" && LTCC=$CC
13897 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13898 test -z "$LD" && LD=ld
13899 test -z "$ac_objext" && ac_objext=o
13901 for cc_temp in $compiler""; do
13903 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13904 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13909 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13912 # Only perform the check for file, if the check method requires it
13913 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13914 case $deplibs_check_method in
13916 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13918 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13919 if ${lt_cv_path_MAGIC_CMD+:} false; then :
13920 $as_echo_n "(cached) " >&6
13924 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13927 lt_save_MAGIC_CMD="$MAGIC_CMD"
13928 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13929 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13930 for ac_dir in $ac_dummy; do
13932 test -z "$ac_dir" && ac_dir=.
13933 if test -f $ac_dir/${ac_tool_prefix}file; then
13934 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13935 if test -n "$file_magic_test_file"; then
13936 case $deplibs_check_method in
13938 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13939 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13940 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13941 $EGREP "$file_magic_regex" > /dev/null; then
13946 *** Warning: the command libtool uses to detect shared libraries,
13947 *** $file_magic_cmd, produces output that libtool cannot recognize.
13948 *** The result is that libtool may fail to recognize shared libraries
13949 *** as such. This will affect the creation of libtool libraries that
13950 *** depend on shared libraries, but programs linked with such libtool
13951 *** libraries will work regardless of this problem. Nevertheless, you
13952 *** may want to report the problem to your system manager and/or to
13953 *** bug-libtool@gnu.org
13963 MAGIC_CMD="$lt_save_MAGIC_CMD"
13968 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13969 if test -n "$MAGIC_CMD"; then
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13971 $as_echo "$MAGIC_CMD" >&6; }
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13974 $as_echo "no" >&6; }
13981 if test -z "$lt_cv_path_MAGIC_CMD"; then
13982 if test -n "$ac_tool_prefix"; then
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13984 $as_echo_n "checking for file... " >&6; }
13985 if ${lt_cv_path_MAGIC_CMD+:} false; then :
13986 $as_echo_n "(cached) " >&6
13990 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13993 lt_save_MAGIC_CMD="$MAGIC_CMD"
13994 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13995 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13996 for ac_dir in $ac_dummy; do
13998 test -z "$ac_dir" && ac_dir=.
13999 if test -f $ac_dir/file; then
14000 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14001 if test -n "$file_magic_test_file"; then
14002 case $deplibs_check_method in
14004 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14005 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14006 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14007 $EGREP "$file_magic_regex" > /dev/null; then
14012 *** Warning: the command libtool uses to detect shared libraries,
14013 *** $file_magic_cmd, produces output that libtool cannot recognize.
14014 *** The result is that libtool may fail to recognize shared libraries
14015 *** as such. This will affect the creation of libtool libraries that
14016 *** depend on shared libraries, but programs linked with such libtool
14017 *** libraries will work regardless of this problem. Nevertheless, you
14018 *** may want to report the problem to your system manager and/or to
14019 *** bug-libtool@gnu.org
14029 MAGIC_CMD="$lt_save_MAGIC_CMD"
14034 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14035 if test -n "$MAGIC_CMD"; then
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14037 $as_echo "$MAGIC_CMD" >&6; }
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14040 $as_echo "no" >&6; }
14053 # Use C for the default configuration in the libtool script
14057 ac_cpp='$CPP $CPPFLAGS'
14058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14063 # Source file extension for C test sources.
14066 # Object file extension for compiled C test sources.
14070 # Code to be used in simple compile tests
14071 lt_simple_compile_test_code="int some_variable = 0;"
14073 # Code to be used in simple link tests
14074 lt_simple_link_test_code='int main(){return(0);}'
14082 # If no C compiler was specified, use CC.
14085 # If no C compiler flags were specified, use CFLAGS.
14086 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14088 # Allow CC to be a program name with arguments.
14091 # Save the default compiler, since it gets overwritten when the other
14092 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14093 compiler_DEFAULT=$CC
14095 # save warnings/boilerplate of simple test code
14096 ac_outfile=conftest.$ac_objext
14097 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14098 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14099 _lt_compiler_boilerplate=`cat conftest.err`
14102 ac_outfile=conftest.$ac_objext
14103 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14104 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14105 _lt_linker_boilerplate=`cat conftest.err`
14109 if test -n "$compiler"; then
14111 lt_prog_compiler_no_builtin_flag=
14113 if test "$GCC" = yes; then
14114 case $cc_basename in
14116 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14118 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14122 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14123 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14124 $as_echo_n "(cached) " >&6
14126 lt_cv_prog_compiler_rtti_exceptions=no
14127 ac_outfile=conftest.$ac_objext
14128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14129 lt_compiler_flag="-fno-rtti -fno-exceptions"
14130 # Insert the option either (1) after the last *FLAGS variable, or
14131 # (2) before a word containing "conftest.", or (3) at the end.
14132 # Note that $ac_compile itself does not contain backslashes and begins
14133 # with a dollar sign (not a hyphen), so the echo should work correctly.
14134 # The option is referenced via a variable to avoid confusing sed.
14135 lt_compile=`echo "$ac_compile" | $SED \
14136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14138 -e 's:$: $lt_compiler_flag:'`
14139 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14140 (eval "$lt_compile" 2>conftest.err)
14142 cat conftest.err >&5
14143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 if (exit $ac_status) && test -s "$ac_outfile"; then
14145 # The compiler can only warn and ignore the option if not recognized
14146 # So say no if there are warnings other than the usual output.
14147 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14149 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14150 lt_cv_prog_compiler_rtti_exceptions=yes
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14157 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14159 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14160 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14172 lt_prog_compiler_wl=
14173 lt_prog_compiler_pic=
14174 lt_prog_compiler_static=
14177 if test "$GCC" = yes; then
14178 lt_prog_compiler_wl='-Wl,'
14179 lt_prog_compiler_static='-static'
14183 # All AIX code is PIC.
14184 if test "$host_cpu" = ia64; then
14185 # AIX 5 now supports IA64 processor
14186 lt_prog_compiler_static='-Bstatic'
14193 # see comment about AmigaOS4 .so support
14194 lt_prog_compiler_pic='-fPIC'
14197 # FIXME: we need at least 68020 code to build shared libraries, but
14198 # adding the `-m68020' flag to GCC prevents building anything better,
14200 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14205 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14206 # PIC is the default for these OSes.
14209 mingw* | cygwin* | pw32* | os2* | cegcc*)
14210 # This hack is so that the source file can tell whether it is being
14211 # built for inclusion in a dll (and should export symbols for example).
14212 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14213 # (--disable-auto-import) libraries
14214 lt_prog_compiler_pic='-DDLL_EXPORT'
14217 darwin* | rhapsody*)
14218 # PIC is the default on this platform
14219 # Common symbols not allowed in MH_DYLIB files
14220 lt_prog_compiler_pic='-fno-common'
14224 # PIC is the default for Haiku.
14225 # The "-static" flag exists, but is broken.
14226 lt_prog_compiler_static=
14230 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14231 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14232 # sets the default TLS model and affects inlining.
14238 lt_prog_compiler_pic='-fPIC'
14244 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14245 # Instead, we relocate shared libraries at runtime.
14249 # Just because we use GCC doesn't mean we suddenly get shared libraries
14250 # on systems that don't support them.
14251 lt_prog_compiler_can_build_shared=no
14256 # QNX uses GNU C++, but need to define -shared option too, otherwise
14257 # it will coredump.
14258 lt_prog_compiler_pic='-fPIC -shared'
14262 if test -d /usr/nec; then
14263 lt_prog_compiler_pic=-Kconform_pic
14268 lt_prog_compiler_pic='-fPIC'
14272 case $cc_basename in
14273 nvcc*) # Cuda Compiler Driver 2.2
14274 lt_prog_compiler_wl='-Xlinker '
14275 if test -n "$lt_prog_compiler_pic"; then
14276 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14281 # PORTME Check for flag to pass linker flags through the system compiler.
14284 lt_prog_compiler_wl='-Wl,'
14285 if test "$host_cpu" = ia64; then
14286 # AIX 5 now supports IA64 processor
14287 lt_prog_compiler_static='-Bstatic'
14289 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14293 mingw* | cygwin* | pw32* | os2* | cegcc*)
14294 # This hack is so that the source file can tell whether it is being
14295 # built for inclusion in a dll (and should export symbols for example).
14296 lt_prog_compiler_pic='-DDLL_EXPORT'
14299 hpux9* | hpux10* | hpux11*)
14300 lt_prog_compiler_wl='-Wl,'
14301 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14302 # not for PA HP-UX.
14308 lt_prog_compiler_pic='+Z'
14311 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14312 lt_prog_compiler_static='${wl}-a ${wl}archive'
14315 irix5* | irix6* | nonstopux*)
14316 lt_prog_compiler_wl='-Wl,'
14317 # PIC (with -KPIC) is the default.
14318 lt_prog_compiler_static='-non_shared'
14321 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14322 case $cc_basename in
14323 # old Intel for x86_64 which still supported -KPIC.
14325 lt_prog_compiler_wl='-Wl,'
14326 lt_prog_compiler_pic='-KPIC'
14327 lt_prog_compiler_static='-static'
14329 # icc used to be incompatible with GCC.
14330 # ICC 10 doesn't accept -KPIC any more.
14332 lt_prog_compiler_wl='-Wl,'
14333 lt_prog_compiler_pic='-fPIC'
14334 lt_prog_compiler_static='-static'
14336 # Lahey Fortran 8.1.
14338 lt_prog_compiler_wl='-Wl,'
14339 lt_prog_compiler_pic='--shared'
14340 lt_prog_compiler_static='--static'
14343 # NAG Fortran compiler
14344 lt_prog_compiler_wl='-Wl,-Wl,,'
14345 lt_prog_compiler_pic='-PIC'
14346 lt_prog_compiler_static='-Bstatic'
14348 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14349 # Portland Group compilers (*not* the Pentium gcc compiler,
14350 # which looks to be a dead project)
14351 lt_prog_compiler_wl='-Wl,'
14352 lt_prog_compiler_pic='-fpic'
14353 lt_prog_compiler_static='-Bstatic'
14356 lt_prog_compiler_wl='-Wl,'
14357 # All Alpha code is PIC.
14358 lt_prog_compiler_static='-non_shared'
14360 xl* | bgxl* | bgf* | mpixl*)
14361 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14362 lt_prog_compiler_wl='-Wl,'
14363 lt_prog_compiler_pic='-qpic'
14364 lt_prog_compiler_static='-qstaticlink'
14367 case `$CC -V 2>&1 | sed 5q` in
14368 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14369 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14370 lt_prog_compiler_pic='-KPIC'
14371 lt_prog_compiler_static='-Bstatic'
14372 lt_prog_compiler_wl=''
14374 *Sun\ F* | *Sun*Fortran*)
14375 lt_prog_compiler_pic='-KPIC'
14376 lt_prog_compiler_static='-Bstatic'
14377 lt_prog_compiler_wl='-Qoption ld '
14381 lt_prog_compiler_pic='-KPIC'
14382 lt_prog_compiler_static='-Bstatic'
14383 lt_prog_compiler_wl='-Wl,'
14385 *Intel*\ [CF]*Compiler*)
14386 lt_prog_compiler_wl='-Wl,'
14387 lt_prog_compiler_pic='-fPIC'
14388 lt_prog_compiler_static='-static'
14391 lt_prog_compiler_wl='-Wl,'
14392 lt_prog_compiler_pic='-fpic'
14393 lt_prog_compiler_static='-Bstatic'
14401 lt_prog_compiler_pic='-KPIC'
14402 lt_prog_compiler_static='-Bstatic'
14406 # QNX uses GNU C++, but need to define -shared option too, otherwise
14407 # it will coredump.
14408 lt_prog_compiler_pic='-fPIC -shared'
14411 osf3* | osf4* | osf5*)
14412 lt_prog_compiler_wl='-Wl,'
14413 # All OSF/1 code is PIC.
14414 lt_prog_compiler_static='-non_shared'
14418 lt_prog_compiler_static='-non_shared'
14422 lt_prog_compiler_pic='-KPIC'
14423 lt_prog_compiler_static='-Bstatic'
14424 case $cc_basename in
14425 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14426 lt_prog_compiler_wl='-Qoption ld ';;
14428 lt_prog_compiler_wl='-Wl,';;
14433 lt_prog_compiler_wl='-Qoption ld '
14434 lt_prog_compiler_pic='-PIC'
14435 lt_prog_compiler_static='-Bstatic'
14438 sysv4 | sysv4.2uw2* | sysv4.3*)
14439 lt_prog_compiler_wl='-Wl,'
14440 lt_prog_compiler_pic='-KPIC'
14441 lt_prog_compiler_static='-Bstatic'
14445 if test -d /usr/nec ;then
14446 lt_prog_compiler_pic='-Kconform_pic'
14447 lt_prog_compiler_static='-Bstatic'
14451 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14452 lt_prog_compiler_wl='-Wl,'
14453 lt_prog_compiler_pic='-KPIC'
14454 lt_prog_compiler_static='-Bstatic'
14458 lt_prog_compiler_wl='-Wl,'
14459 lt_prog_compiler_can_build_shared=no
14463 lt_prog_compiler_pic='-pic'
14464 lt_prog_compiler_static='-Bstatic'
14468 lt_prog_compiler_can_build_shared=no
14474 # For platforms which do not support PIC, -DPIC is meaningless:
14476 lt_prog_compiler_pic=
14479 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14484 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14485 if ${lt_cv_prog_compiler_pic+:} false; then :
14486 $as_echo_n "(cached) " >&6
14488 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14491 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14492 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14495 # Check to make sure the PIC flag actually works.
14497 if test -n "$lt_prog_compiler_pic"; then
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14499 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14500 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14501 $as_echo_n "(cached) " >&6
14503 lt_cv_prog_compiler_pic_works=no
14504 ac_outfile=conftest.$ac_objext
14505 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14506 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14507 # Insert the option either (1) after the last *FLAGS variable, or
14508 # (2) before a word containing "conftest.", or (3) at the end.
14509 # Note that $ac_compile itself does not contain backslashes and begins
14510 # with a dollar sign (not a hyphen), so the echo should work correctly.
14511 # The option is referenced via a variable to avoid confusing sed.
14512 lt_compile=`echo "$ac_compile" | $SED \
14513 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14515 -e 's:$: $lt_compiler_flag:'`
14516 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14517 (eval "$lt_compile" 2>conftest.err)
14519 cat conftest.err >&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 if (exit $ac_status) && test -s "$ac_outfile"; then
14522 # The compiler can only warn and ignore the option if not recognized
14523 # So say no if there are warnings other than the usual output.
14524 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14525 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14526 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14527 lt_cv_prog_compiler_pic_works=yes
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14534 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14536 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14537 case $lt_prog_compiler_pic in
14539 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14542 lt_prog_compiler_pic=
14543 lt_prog_compiler_can_build_shared=no
14559 # Check to make sure the static flag actually works.
14561 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14563 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14564 if ${lt_cv_prog_compiler_static_works+:} false; then :
14565 $as_echo_n "(cached) " >&6
14567 lt_cv_prog_compiler_static_works=no
14568 save_LDFLAGS="$LDFLAGS"
14569 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14570 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14571 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14572 # The linker can only warn and ignore the option if not recognized
14573 # So say no if there are warnings
14574 if test -s conftest.err; then
14575 # Append any errors to the config.log.
14576 cat conftest.err 1>&5
14577 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14578 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14579 if diff conftest.exp conftest.er2 >/dev/null; then
14580 lt_cv_prog_compiler_static_works=yes
14583 lt_cv_prog_compiler_static_works=yes
14587 LDFLAGS="$save_LDFLAGS"
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14591 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14593 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14596 lt_prog_compiler_static=
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14606 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14607 if ${lt_cv_prog_compiler_c_o+:} false; then :
14608 $as_echo_n "(cached) " >&6
14610 lt_cv_prog_compiler_c_o=no
14611 $RM -r conftest 2>/dev/null
14615 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14617 lt_compiler_flag="-o out/conftest2.$ac_objext"
14618 # Insert the option either (1) after the last *FLAGS variable, or
14619 # (2) before a word containing "conftest.", or (3) at the end.
14620 # Note that $ac_compile itself does not contain backslashes and begins
14621 # with a dollar sign (not a hyphen), so the echo should work correctly.
14622 lt_compile=`echo "$ac_compile" | $SED \
14623 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14625 -e 's:$: $lt_compiler_flag:'`
14626 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14627 (eval "$lt_compile" 2>out/conftest.err)
14629 cat out/conftest.err >&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14633 # The compiler can only warn and ignore the option if not recognized
14634 # So say no if there are warnings
14635 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14636 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14637 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14638 lt_cv_prog_compiler_c_o=yes
14643 # SGI C++ compiler will create directory out/ii_files/ for
14644 # template instantiation
14645 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14646 $RM out/* && rmdir out
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14653 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14661 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14662 if ${lt_cv_prog_compiler_c_o+:} false; then :
14663 $as_echo_n "(cached) " >&6
14665 lt_cv_prog_compiler_c_o=no
14666 $RM -r conftest 2>/dev/null
14670 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14672 lt_compiler_flag="-o out/conftest2.$ac_objext"
14673 # Insert the option either (1) after the last *FLAGS variable, or
14674 # (2) before a word containing "conftest.", or (3) at the end.
14675 # Note that $ac_compile itself does not contain backslashes and begins
14676 # with a dollar sign (not a hyphen), so the echo should work correctly.
14677 lt_compile=`echo "$ac_compile" | $SED \
14678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14680 -e 's:$: $lt_compiler_flag:'`
14681 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14682 (eval "$lt_compile" 2>out/conftest.err)
14684 cat out/conftest.err >&5
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14688 # The compiler can only warn and ignore the option if not recognized
14689 # So say no if there are warnings
14690 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14691 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14692 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14693 lt_cv_prog_compiler_c_o=yes
14698 # SGI C++ compiler will create directory out/ii_files/ for
14699 # template instantiation
14700 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14701 $RM out/* && rmdir out
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14708 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14713 hard_links="nottested"
14714 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14715 # do not overwrite the value of need_locks provided by the user
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14717 $as_echo_n "checking if we can lock with hard links... " >&6; }
14720 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14722 ln conftest.a conftest.b 2>&5 || hard_links=no
14723 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14725 $as_echo "$hard_links" >&6; }
14726 if test "$hard_links" = no; then
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14728 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14741 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14744 allow_undefined_flag=
14745 always_export_symbols=no
14747 archive_expsym_cmds=
14748 compiler_needs_object=no
14749 enable_shared_with_static_runtimes=no
14750 export_dynamic_flag_spec=
14751 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14752 hardcode_automatic=no
14754 hardcode_direct_absolute=no
14755 hardcode_libdir_flag_spec=
14756 hardcode_libdir_separator=
14757 hardcode_minus_L=no
14758 hardcode_shlibpath_var=unsupported
14760 link_all_deplibs=unknown
14762 module_expsym_cmds=
14763 old_archive_from_new_cmds=
14764 old_archive_from_expsyms_cmds=
14765 thread_safe_flag_spec=
14766 whole_archive_flag_spec=
14767 # include_expsyms should be a list of space-separated symbols to be *always*
14768 # included in the symbol list
14770 # exclude_expsyms can be an extended regexp of symbols to exclude
14771 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14772 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14773 # as well as any symbol that contains `d'.
14774 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14775 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14776 # platforms (ab)use it in PIC code, but their linkers get confused if
14777 # the symbol is explicitly referenced. Since portable code cannot
14778 # rely on this symbol name, it's probably fine to never include it in
14779 # preloaded symbol tables.
14780 # Exclude shared library initialization/finalization symbols.
14781 extract_expsyms_cmds=
14784 cygwin* | mingw* | pw32* | cegcc*)
14785 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14786 # When not using gcc, we currently assume that we are using
14787 # Microsoft Visual C++.
14788 if test "$GCC" != yes; then
14793 # we just hope/assume this is gcc and not c89 (= MSVC++)
14803 # On some targets, GNU ld is compatible enough with the native linker
14804 # that we're better off using the native interface for both.
14805 lt_use_gnu_ld_interface=no
14806 if test "$with_gnu_ld" = yes; then
14809 # The AIX port of GNU ld has always aspired to compatibility
14810 # with the native linker. However, as the warning in the GNU ld
14811 # block says, versions before 2.19.5* couldn't really create working
14812 # shared libraries, regardless of the interface used.
14813 case `$LD -v 2>&1` in
14814 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14815 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14816 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14818 lt_use_gnu_ld_interface=yes
14823 lt_use_gnu_ld_interface=yes
14828 if test "$lt_use_gnu_ld_interface" = yes; then
14829 # If archive_cmds runs LD, not CC, wlarc should be empty
14832 # Set some defaults for GNU ld with shared library support. These
14833 # are reset later if shared libraries are not supported. Putting them
14834 # here allows them to be overridden if necessary.
14835 runpath_var=LD_RUN_PATH
14836 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14837 export_dynamic_flag_spec='${wl}--export-dynamic'
14838 # ancient GNU ld didn't support --whole-archive et. al.
14839 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14840 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14842 whole_archive_flag_spec=
14844 supports_anon_versioning=no
14845 case `$LD -v 2>&1` in
14846 *GNU\ gold*) supports_anon_versioning=yes ;;
14847 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14848 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14849 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14850 *\ 2.11.*) ;; # other 2.11 versions
14851 *) supports_anon_versioning=yes ;;
14854 # See if GNU ld supports shared libraries.
14857 # On AIX/PPC, the GNU linker is very broken
14858 if test "$host_cpu" != ia64; then
14862 *** Warning: the GNU linker, at least up to release 2.19, is reported
14863 *** to be unable to reliably create shared libraries on AIX.
14864 *** Therefore, libtool is disabling shared libraries support. If you
14865 *** really care for shared libraries, you may want to install binutils
14866 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14867 *** You will then need to restart the configuration process.
14876 # see comment about AmigaOS4 .so support
14877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14878 archive_expsym_cmds=''
14881 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)'
14882 hardcode_libdir_flag_spec='-L$libdir'
14883 hardcode_minus_L=yes
14889 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14890 allow_undefined_flag=unsupported
14891 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14892 # support --undefined. This deserves some investigation. FIXME
14893 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14899 cygwin* | mingw* | pw32* | cegcc*)
14900 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14901 # as there is no search path for DLLs.
14902 hardcode_libdir_flag_spec='-L$libdir'
14903 export_dynamic_flag_spec='${wl}--export-all-symbols'
14904 allow_undefined_flag=unsupported
14905 always_export_symbols=no
14906 enable_shared_with_static_runtimes=yes
14907 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'
14908 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14910 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14911 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14912 # If the export-symbols file already is a .def file (1st line
14913 # is EXPORTS), use it as is; otherwise, prepend...
14914 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14915 cp $export_symbols $output_objdir/$soname.def;
14917 echo EXPORTS > $output_objdir/$soname.def;
14918 cat $export_symbols >> $output_objdir/$soname.def;
14920 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14927 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14928 link_all_deplibs=yes
14933 hardcode_shlibpath_var=no
14934 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14935 export_dynamic_flag_spec='${wl}-E'
14936 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14937 # Instead, shared libraries are loaded at an image base (0x10000000 by
14938 # default) and relocated if they conflict, which is a slow very memory
14939 # consuming and fragmenting process. To avoid this, we pick a random,
14940 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14941 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14942 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14943 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'
14946 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14948 if test "$host_os" = linux-dietlibc; then
14949 case $cc_basename in
14950 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14953 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14954 && test "$tmp_diet" = no
14956 tmp_addflag=' $pic_flag'
14957 tmp_sharedflag='-shared'
14958 case $cc_basename,$host_cpu in
14959 pgcc*) # Portland Group C compiler
14960 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'
14961 tmp_addflag=' $pic_flag'
14963 pgf77* | pgf90* | pgf95* | pgfortran*)
14964 # Portland Group f77 and f90 compilers
14965 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'
14966 tmp_addflag=' $pic_flag -Mnomain' ;;
14967 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14968 tmp_addflag=' -i_dynamic' ;;
14969 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14970 tmp_addflag=' -i_dynamic -nofor_main' ;;
14971 ifc* | ifort*) # Intel Fortran compiler
14972 tmp_addflag=' -nofor_main' ;;
14973 lf95*) # Lahey Fortran 8.1
14974 whole_archive_flag_spec=
14975 tmp_sharedflag='--shared' ;;
14976 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14977 tmp_sharedflag='-qmkshrobj'
14979 nvcc*) # Cuda Compiler Driver 2.2
14980 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'
14981 compiler_needs_object=yes
14984 case `$CC -V 2>&1 | sed 5q` in
14985 *Sun\ C*) # Sun C 5.9
14986 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'
14987 compiler_needs_object=yes
14988 tmp_sharedflag='-G' ;;
14989 *Sun\ F*) # Sun Fortran 8.3
14990 tmp_sharedflag='-G' ;;
14992 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14994 if test "x$supports_anon_versioning" = xyes; then
14995 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14996 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14997 echo "local: *; };" >> $output_objdir/$libname.ver~
14998 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15001 case $cc_basename in
15002 xlf* | bgf* | bgxlf* | mpixlf*)
15003 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15004 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15005 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15006 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15007 if test "x$supports_anon_versioning" = xyes; then
15008 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15009 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15010 echo "local: *; };" >> $output_objdir/$libname.ver~
15011 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15021 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15022 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15025 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15026 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15031 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15035 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15036 *** create shared libraries on Solaris systems. Therefore, libtool
15037 *** is disabling shared libraries support. We urge you to upgrade GNU
15038 *** binutils to release 2.9.1 or newer. Another option is to modify
15039 *** your PATH or compiler configuration so that the native linker is
15040 *** used, and then restart.
15043 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15044 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15045 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15051 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15052 case `$LD -v 2>&1` in
15053 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15057 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15058 *** reliably create shared libraries on SCO systems. Therefore, libtool
15059 *** is disabling shared libraries support. We urge you to upgrade GNU
15060 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15061 *** your PATH or compiler configuration so that the native linker is
15062 *** used, and then restart.
15067 # For security reasons, it is highly recommended that you always
15068 # use absolute paths for naming shared libraries, and exclude the
15069 # DT_RUNPATH tag from executables and libraries. But doing so
15070 # requires that you compile everything twice, which is a pain.
15071 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15072 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15073 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15074 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15083 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15085 hardcode_direct=yes
15086 hardcode_shlibpath_var=no
15090 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15091 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15092 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15099 if test "$ld_shlibs" = no; then
15101 hardcode_libdir_flag_spec=
15102 export_dynamic_flag_spec=
15103 whole_archive_flag_spec=
15106 # PORTME fill in a description of your system's linker (not GNU ld)
15109 allow_undefined_flag=unsupported
15110 always_export_symbols=yes
15111 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'
15112 # Note: this linker hardcodes the directories in LIBPATH if there
15113 # are no directories specified by -L.
15114 hardcode_minus_L=yes
15115 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15116 # Neither direct hardcoding nor static linking is supported with a
15118 hardcode_direct=unsupported
15123 if test "$host_cpu" = ia64; then
15124 # On IA64, the linker does run time linking by default, so we don't
15125 # have to do anything special.
15126 aix_use_runtimelinking=no
15127 exp_sym_flag='-Bexport'
15130 # If we're using GNU nm, then we don't want the "-C" option.
15131 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15132 # Also, AIX nm treats weak defined symbols like other global
15133 # defined symbols, whereas GNU nm marks them as "W".
15134 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15135 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'
15137 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'
15139 aix_use_runtimelinking=no
15141 # Test if we are trying to use run time linking or normal
15142 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15143 # need to do runtime linking.
15144 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15145 for ld_flag in $LDFLAGS; do
15146 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15147 aix_use_runtimelinking=yes
15154 exp_sym_flag='-bexport'
15155 no_entry_flag='-bnoentry'
15158 # When large executables or shared objects are built, AIX ld can
15159 # have problems creating the table of contents. If linking a library
15160 # or program results in "error TOC overflow" add -mminimal-toc to
15161 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15162 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15165 hardcode_direct=yes
15166 hardcode_direct_absolute=yes
15167 hardcode_libdir_separator=':'
15168 link_all_deplibs=yes
15169 file_list_spec='${wl}-f,'
15171 if test "$GCC" = yes; then
15172 case $host_os in aix4.[012]|aix4.[012].*)
15173 # We only want to do this on AIX 4.2 and lower, the check
15174 # below for broken collect2 doesn't work under 4.3+
15175 collect2name=`${CC} -print-prog-name=collect2`
15176 if test -f "$collect2name" &&
15177 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15179 # We have reworked collect2
15182 # We have old collect2
15183 hardcode_direct=unsupported
15184 # It fails to find uninstalled libraries when the uninstalled
15185 # path is not listed in the libpath. Setting hardcode_minus_L
15186 # to unsupported forces relinking
15187 hardcode_minus_L=yes
15188 hardcode_libdir_flag_spec='-L$libdir'
15189 hardcode_libdir_separator=
15193 shared_flag='-shared'
15194 if test "$aix_use_runtimelinking" = yes; then
15195 shared_flag="$shared_flag "'${wl}-G'
15199 if test "$host_cpu" = ia64; then
15200 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15201 # chokes on -Wl,-G. The following line is correct:
15204 if test "$aix_use_runtimelinking" = yes; then
15205 shared_flag='${wl}-G'
15207 shared_flag='${wl}-bM:SRE'
15212 export_dynamic_flag_spec='${wl}-bexpall'
15213 # It seems that -bexpall does not export symbols beginning with
15214 # underscore (_), so it is better to generate a list of symbols to export.
15215 always_export_symbols=yes
15216 if test "$aix_use_runtimelinking" = yes; then
15217 # Warning - without using the other runtime loading flags (-brtl),
15218 # -berok will link without error, but may produce a broken library.
15219 allow_undefined_flag='-berok'
15220 # Determine the default libpath from the value encoded in an
15221 # empty executable.
15222 if test "${lt_cv_aix_libpath+set}" = set; then
15223 aix_libpath=$lt_cv_aix_libpath
15225 if ${lt_cv_aix_libpath_+:} false; then :
15226 $as_echo_n "(cached) " >&6
15228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229 /* end confdefs.h. */
15239 if ac_fn_c_try_link "$LINENO"; then :
15241 lt_aix_libpath_sed='
15242 /Import File Strings/,/^$/ {
15244 s/^0 *\([^ ]*\) *$/\1/
15248 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15249 # Check for a 64-bit object if we didn't find anything.
15250 if test -z "$lt_cv_aix_libpath_"; then
15251 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15254 rm -f core conftest.err conftest.$ac_objext \
15255 conftest$ac_exeext conftest.$ac_ext
15256 if test -z "$lt_cv_aix_libpath_"; then
15257 lt_cv_aix_libpath_="/usr/lib:/lib"
15262 aix_libpath=$lt_cv_aix_libpath_
15265 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15266 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"
15268 if test "$host_cpu" = ia64; then
15269 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15270 allow_undefined_flag="-z nodefs"
15271 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"
15273 # Determine the default libpath from the value encoded in an
15274 # empty executable.
15275 if test "${lt_cv_aix_libpath+set}" = set; then
15276 aix_libpath=$lt_cv_aix_libpath
15278 if ${lt_cv_aix_libpath_+:} false; then :
15279 $as_echo_n "(cached) " >&6
15281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15282 /* end confdefs.h. */
15292 if ac_fn_c_try_link "$LINENO"; then :
15294 lt_aix_libpath_sed='
15295 /Import File Strings/,/^$/ {
15297 s/^0 *\([^ ]*\) *$/\1/
15301 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15302 # Check for a 64-bit object if we didn't find anything.
15303 if test -z "$lt_cv_aix_libpath_"; then
15304 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15307 rm -f core conftest.err conftest.$ac_objext \
15308 conftest$ac_exeext conftest.$ac_ext
15309 if test -z "$lt_cv_aix_libpath_"; then
15310 lt_cv_aix_libpath_="/usr/lib:/lib"
15315 aix_libpath=$lt_cv_aix_libpath_
15318 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15319 # Warning - without using the other run time loading flags,
15320 # -berok will link without error, but may produce a broken library.
15321 no_undefined_flag=' ${wl}-bernotok'
15322 allow_undefined_flag=' ${wl}-berok'
15323 if test "$with_gnu_ld" = yes; then
15324 # We only use this code for GNU lds that support --whole-archive.
15325 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15327 # Exported symbols can be pulled into shared objects from archives
15328 whole_archive_flag_spec='$convenience'
15330 archive_cmds_need_lc=yes
15331 # This is similar to how AIX traditionally builds its shared libraries.
15332 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'
15340 # see comment about AmigaOS4 .so support
15341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15342 archive_expsym_cmds=''
15345 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)'
15346 hardcode_libdir_flag_spec='-L$libdir'
15347 hardcode_minus_L=yes
15353 export_dynamic_flag_spec=-rdynamic
15356 cygwin* | mingw* | pw32* | cegcc*)
15357 # When not using gcc, we currently assume that we are using
15358 # Microsoft Visual C++.
15359 # hardcode_libdir_flag_spec is actually meaningless, as there is
15360 # no search path for DLLs.
15361 case $cc_basename in
15364 hardcode_libdir_flag_spec=' '
15365 allow_undefined_flag=unsupported
15366 always_export_symbols=yes
15368 # Tell ltmain to make .lib files, not .a files.
15370 # Tell ltmain to make .dll files, not .so files.
15372 # FIXME: Setting linknames here is a bad hack.
15373 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15374 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15375 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15377 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15379 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15381 # The linker will not automatically build a static lib if we build a DLL.
15382 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15383 enable_shared_with_static_runtimes=yes
15384 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15385 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15387 old_postinstall_cmds='chmod 644 $oldlib'
15388 postlink_cmds='lt_outputfile="@OUTPUT@"~
15389 lt_tool_outputfile="@TOOL_OUTPUT@"~
15390 case $lt_outputfile in
15393 lt_outputfile="$lt_outputfile.exe"
15394 lt_tool_outputfile="$lt_tool_outputfile.exe"
15397 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15398 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15399 $RM "$lt_outputfile.manifest";
15403 # Assume MSVC wrapper
15404 hardcode_libdir_flag_spec=' '
15405 allow_undefined_flag=unsupported
15406 # Tell ltmain to make .lib files, not .a files.
15408 # Tell ltmain to make .dll files, not .so files.
15410 # FIXME: Setting linknames here is a bad hack.
15411 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15412 # The linker will automatically build a .lib file if we build a DLL.
15413 old_archive_from_new_cmds='true'
15414 # FIXME: Should let the user specify the lib program.
15415 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15416 enable_shared_with_static_runtimes=yes
15421 darwin* | rhapsody*)
15424 archive_cmds_need_lc=no
15426 hardcode_automatic=yes
15427 hardcode_shlibpath_var=unsupported
15428 if test "$lt_cv_ld_force_load" = "yes"; then
15429 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\"`'
15432 whole_archive_flag_spec=''
15434 link_all_deplibs=yes
15435 allow_undefined_flag="$_lt_dar_allow_undefined"
15436 case $cc_basename in
15437 ifort*) _lt_dar_can_shared=yes ;;
15438 *) _lt_dar_can_shared=$GCC ;;
15440 if test "$_lt_dar_can_shared" = "yes"; then
15441 output_verbose_link_cmd=func_echo_all
15442 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15443 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15444 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}"
15445 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}"
15454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15455 hardcode_libdir_flag_spec='-L$libdir'
15456 hardcode_shlibpath_var=no
15459 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15460 # support. Future versions do this automatically, but an explicit c++rt0.o
15461 # does not break anything, and helps significantly (at the cost of a little
15464 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15465 hardcode_libdir_flag_spec='-R$libdir'
15466 hardcode_direct=yes
15467 hardcode_shlibpath_var=no
15470 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15472 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15473 hardcode_direct=yes
15474 hardcode_minus_L=yes
15475 hardcode_shlibpath_var=no
15478 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15479 freebsd* | dragonfly*)
15480 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15481 hardcode_libdir_flag_spec='-R$libdir'
15482 hardcode_direct=yes
15483 hardcode_shlibpath_var=no
15487 if test "$GCC" = yes; then
15488 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'
15490 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'
15492 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15493 hardcode_libdir_separator=:
15494 hardcode_direct=yes
15496 # hardcode_minus_L: Not really in the search PATH,
15497 # but as the default location of the library.
15498 hardcode_minus_L=yes
15499 export_dynamic_flag_spec='${wl}-E'
15503 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15504 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15506 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15508 if test "$with_gnu_ld" = no; then
15509 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15510 hardcode_libdir_separator=:
15511 hardcode_direct=yes
15512 hardcode_direct_absolute=yes
15513 export_dynamic_flag_spec='${wl}-E'
15514 # hardcode_minus_L: Not really in the search PATH,
15515 # but as the default location of the library.
15516 hardcode_minus_L=yes
15521 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15524 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15527 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15530 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15536 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15539 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15543 # Older versions of the 11.00 compiler do not understand -b yet
15544 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15546 $as_echo_n "checking if $CC understands -b... " >&6; }
15547 if ${lt_cv_prog_compiler__b+:} false; then :
15548 $as_echo_n "(cached) " >&6
15550 lt_cv_prog_compiler__b=no
15551 save_LDFLAGS="$LDFLAGS"
15552 LDFLAGS="$LDFLAGS -b"
15553 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15554 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15555 # The linker can only warn and ignore the option if not recognized
15556 # So say no if there are warnings
15557 if test -s conftest.err; then
15558 # Append any errors to the config.log.
15559 cat conftest.err 1>&5
15560 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15561 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15562 if diff conftest.exp conftest.er2 >/dev/null; then
15563 lt_cv_prog_compiler__b=yes
15566 lt_cv_prog_compiler__b=yes
15570 LDFLAGS="$save_LDFLAGS"
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15574 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15576 if test x"$lt_cv_prog_compiler__b" = xyes; then
15577 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15579 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15585 if test "$with_gnu_ld" = no; then
15586 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15587 hardcode_libdir_separator=:
15592 hardcode_shlibpath_var=no
15595 hardcode_direct=yes
15596 hardcode_direct_absolute=yes
15597 export_dynamic_flag_spec='${wl}-E'
15599 # hardcode_minus_L: Not really in the search PATH,
15600 # but as the default location of the library.
15601 hardcode_minus_L=yes
15607 irix5* | irix6* | nonstopux*)
15608 if test "$GCC" = yes; then
15609 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'
15610 # Try to use the -exported_symbol ld option, if it does not
15611 # work, assume that -exports_file does not work either and
15612 # implicitly export all symbols.
15613 # This should be the same for all languages, so no per-tag cache variable.
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15615 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15616 if ${lt_cv_irix_exported_symbol+:} false; then :
15617 $as_echo_n "(cached) " >&6
15619 save_LDFLAGS="$LDFLAGS"
15620 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15622 /* end confdefs.h. */
15623 int foo (void) { return 0; }
15625 if ac_fn_c_try_link "$LINENO"; then :
15626 lt_cv_irix_exported_symbol=yes
15628 lt_cv_irix_exported_symbol=no
15630 rm -f core conftest.err conftest.$ac_objext \
15631 conftest$ac_exeext conftest.$ac_ext
15632 LDFLAGS="$save_LDFLAGS"
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15635 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
15636 if test "$lt_cv_irix_exported_symbol" = yes; then
15637 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'
15640 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'
15641 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'
15643 archive_cmds_need_lc='no'
15644 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15645 hardcode_libdir_separator=:
15647 link_all_deplibs=yes
15651 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15652 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15654 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15656 hardcode_libdir_flag_spec='-R$libdir'
15657 hardcode_direct=yes
15658 hardcode_shlibpath_var=no
15662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15663 hardcode_direct=yes
15664 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15665 hardcode_libdir_separator=:
15666 hardcode_shlibpath_var=no
15673 if test -f /usr/libexec/ld.so; then
15674 hardcode_direct=yes
15675 hardcode_shlibpath_var=no
15676 hardcode_direct_absolute=yes
15677 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15678 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15679 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15680 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15681 export_dynamic_flag_spec='${wl}-E'
15684 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15685 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15686 hardcode_libdir_flag_spec='-R$libdir'
15689 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15690 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15700 hardcode_libdir_flag_spec='-L$libdir'
15701 hardcode_minus_L=yes
15702 allow_undefined_flag=unsupported
15703 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'
15704 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15708 if test "$GCC" = yes; then
15709 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15710 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'
15712 allow_undefined_flag=' -expect_unresolved \*'
15713 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'
15715 archive_cmds_need_lc='no'
15716 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15717 hardcode_libdir_separator=:
15720 osf4* | osf5*) # as osf3* with the addition of -msym flag
15721 if test "$GCC" = yes; then
15722 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15723 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'
15724 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15726 allow_undefined_flag=' -expect_unresolved \*'
15727 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'
15728 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~
15729 $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'
15731 # Both c and cxx compiler support -rpath directly
15732 hardcode_libdir_flag_spec='-rpath $libdir'
15734 archive_cmds_need_lc='no'
15735 hardcode_libdir_separator=:
15739 no_undefined_flag=' -z defs'
15740 if test "$GCC" = yes; then
15742 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15743 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15744 $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'
15746 case `$CC -V 2>&1` in
15749 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15750 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15751 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15755 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15756 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15757 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15761 hardcode_libdir_flag_spec='-R$libdir'
15762 hardcode_shlibpath_var=no
15764 solaris2.[0-5] | solaris2.[0-5].*) ;;
15766 # The compiler driver will combine and reorder linker options,
15767 # but understands `-z linker_flag'. GCC discards it without `$wl',
15768 # but is careful enough not to reorder.
15769 # Supported since Solaris 2.6 (maybe 2.5.1?)
15770 if test "$GCC" = yes; then
15771 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15773 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15777 link_all_deplibs=yes
15781 if test "x$host_vendor" = xsequent; then
15782 # Use $CC to link under sequent, because it throws in some extra .o
15783 # files that make .init and .fini sections work.
15784 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15786 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15788 hardcode_libdir_flag_spec='-L$libdir'
15789 hardcode_direct=yes
15790 hardcode_minus_L=yes
15791 hardcode_shlibpath_var=no
15795 case $host_vendor in
15797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15798 hardcode_direct=yes # is this really true???
15801 ## LD is ld it makes a PLAMLIB
15802 ## CC just makes a GrossModule.
15803 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15804 reload_cmds='$CC -r -o $output$reload_objs'
15808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15809 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15812 runpath_var='LD_RUN_PATH'
15813 hardcode_shlibpath_var=no
15817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15818 hardcode_shlibpath_var=no
15819 export_dynamic_flag_spec='-Bexport'
15823 if test -d /usr/nec; then
15824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15825 hardcode_shlibpath_var=no
15826 runpath_var=LD_RUN_PATH
15827 hardcode_runpath_var=yes
15832 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15833 no_undefined_flag='${wl}-z,text'
15834 archive_cmds_need_lc=no
15835 hardcode_shlibpath_var=no
15836 runpath_var='LD_RUN_PATH'
15838 if test "$GCC" = yes; then
15839 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15840 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15842 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15843 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15847 sysv5* | sco3.2v5* | sco5v6*)
15848 # Note: We can NOT use -z defs as we might desire, because we do not
15849 # link with -lc, and that would cause any symbols used from libc to
15850 # always be unresolved, which means just about no library would
15851 # ever link correctly. If we're not using GNU ld we use -z text
15852 # though, which does catch some bad symbols but isn't as heavy-handed
15854 no_undefined_flag='${wl}-z,text'
15855 allow_undefined_flag='${wl}-z,nodefs'
15856 archive_cmds_need_lc=no
15857 hardcode_shlibpath_var=no
15858 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15859 hardcode_libdir_separator=':'
15860 link_all_deplibs=yes
15861 export_dynamic_flag_spec='${wl}-Bexport'
15862 runpath_var='LD_RUN_PATH'
15864 if test "$GCC" = yes; then
15865 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15866 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15868 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15869 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15875 hardcode_libdir_flag_spec='-L$libdir'
15876 hardcode_shlibpath_var=no
15884 if test x$host_vendor = xsni; then
15886 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15887 export_dynamic_flag_spec='${wl}-Blargedynsym'
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15894 $as_echo "$ld_shlibs" >&6; }
15895 test "$ld_shlibs" = no && can_build_shared=no
15897 with_gnu_ld=$with_gnu_ld
15914 # Do we need to explicitly link libc?
15916 case "x$archive_cmds_need_lc" in
15918 # Assume -lc should be added
15919 archive_cmds_need_lc=yes
15921 if test "$enable_shared" = yes && test "$GCC" = yes; then
15922 case $archive_cmds in
15924 # FIXME: we may have to deal with multi-command sequences.
15927 # Test whether the compiler implicitly links with -lc since on some
15928 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15929 # to ld, don't add -lc before -lgcc.
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15931 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15932 if ${lt_cv_archive_cmds_need_lc+:} false; then :
15933 $as_echo_n "(cached) " >&6
15936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15939 (eval $ac_compile) 2>&5
15941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15942 test $ac_status = 0; } 2>conftest.err; then
15945 libobjs=conftest.$ac_objext
15947 wl=$lt_prog_compiler_wl
15948 pic_flag=$lt_prog_compiler_pic
15954 lt_save_allow_undefined_flag=$allow_undefined_flag
15955 allow_undefined_flag=
15956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15957 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15960 test $ac_status = 0; }
15962 lt_cv_archive_cmds_need_lc=no
15964 lt_cv_archive_cmds_need_lc=yes
15966 allow_undefined_flag=$lt_save_allow_undefined_flag
15968 cat conftest.err 1>&5
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15974 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15975 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16134 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16136 if test "$GCC" = yes; then
16138 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16139 *) lt_awk_arg="/^libraries:/" ;;
16142 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16143 *) lt_sed_strip_eq="s,=/,/,g" ;;
16145 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16146 case $lt_search_path_spec in
16148 # if the path contains ";" then we assume it to be the separator
16149 # otherwise default to the standard path separator (i.e. ":") - it is
16150 # assumed that no part of a normal pathname contains ";" but that should
16151 # okay in the real world where ";" in dirpaths is itself problematic.
16152 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16155 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16158 # Ok, now we have the path, separated by spaces, we can step through it
16159 # and add multilib dir if necessary.
16160 lt_tmp_lt_search_path_spec=
16161 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16162 for lt_sys_path in $lt_search_path_spec; do
16163 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16164 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16166 test -d "$lt_sys_path" && \
16167 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16170 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16171 BEGIN {RS=" "; FS="/|\n";} {
16174 for (lt_i = NF; lt_i > 0; lt_i--) {
16175 if ($lt_i != "" && $lt_i != ".") {
16176 if ($lt_i == "..") {
16179 if (lt_count == 0) {
16180 lt_foo="/" $lt_i lt_foo;
16187 if (lt_foo != "") { lt_freq[lt_foo]++; }
16188 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16190 # AWK program above erroneously prepends '/' to C:/dos/paths
16193 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16194 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16196 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16198 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16200 library_names_spec=
16201 libname_spec='lib$name'
16205 postuninstall_cmds=
16209 shlibpath_overrides_runpath=unknown
16211 dynamic_linker="$host_os ld.so"
16212 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16213 need_lib_prefix=unknown
16214 hardcode_into_libs=no
16216 # when you set need_version to no, make sure it does not cause -set_version
16217 # flags to be left without arguments
16218 need_version=unknown
16222 version_type=linux # correct to gnu/linux during the next big refactor
16223 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16224 shlibpath_var=LIBPATH
16226 # AIX 3 has no versioning support, so we append a major version to the name.
16227 soname_spec='${libname}${release}${shared_ext}$major'
16231 version_type=linux # correct to gnu/linux during the next big refactor
16234 hardcode_into_libs=yes
16235 if test "$host_cpu" = ia64; then
16236 # AIX 5 supports IA64
16237 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16238 shlibpath_var=LD_LIBRARY_PATH
16240 # With GCC up to 2.95.x, collect2 would create an import file
16241 # for dependence libraries. The import file would start with
16242 # the line `#! .'. This would cause the generated library to
16243 # depend on `.', always an invalid library. This was fixed in
16244 # development snapshots of GCC prior to 3.0.
16246 aix4 | aix4.[01] | aix4.[01].*)
16247 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16249 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16252 can_build_shared=no
16256 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16257 # soname into executable. Probably we can add versioning support to
16258 # collect2, so additional links can be useful in future.
16259 if test "$aix_use_runtimelinking" = yes; then
16260 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16261 # instead of lib<name>.a to let people know that these are not
16262 # typical AIX shared libraries.
16263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16265 # We preserve .a as extension for shared libraries through AIX4.2
16266 # and later when we are not doing run time linking.
16267 library_names_spec='${libname}${release}.a $libname.a'
16268 soname_spec='${libname}${release}${shared_ext}$major'
16270 shlibpath_var=LIBPATH
16277 # Since July 2007 AmigaOS4 officially supports .so libraries.
16278 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16282 library_names_spec='$libname.ixlibrary $libname.a'
16283 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16284 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'
16290 library_names_spec='${libname}${shared_ext}'
16291 dynamic_linker="$host_os ld.so"
16292 shlibpath_var=LIBRARY_PATH
16296 version_type=linux # correct to gnu/linux during the next big refactor
16298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16299 soname_spec='${libname}${release}${shared_ext}$major'
16300 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16301 shlibpath_var=LD_LIBRARY_PATH
16302 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16303 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16304 # the default ld.so.conf also contains /usr/contrib/lib and
16305 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16306 # libtool to hard-code these into programs
16309 cygwin* | mingw* | pw32* | cegcc*)
16310 version_type=windows
16315 case $GCC,$cc_basename in
16318 library_names_spec='$libname.dll.a'
16319 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16320 postinstall_cmds='base_file=`basename \${file}`~
16321 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16322 dldir=$destdir/`dirname \$dlpath`~
16323 test -d \$dldir || mkdir -p \$dldir~
16324 $install_prog $dir/$dlname \$dldir/$dlname~
16325 chmod a+x \$dldir/$dlname~
16326 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16327 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16329 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16330 dlpath=$dir/\$dldll~
16332 shlibpath_overrides_runpath=yes
16336 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16337 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16339 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16342 # MinGW DLLs use traditional 'lib' prefix
16343 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16346 # pw32 DLLs use 'pw' prefix rather than 'lib'
16347 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16350 dynamic_linker='Win32 ld.exe'
16355 libname_spec='$name'
16356 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16357 library_names_spec='${libname}.dll.lib'
16361 sys_lib_search_path_spec=
16364 for lt_path in $LIB
16367 # Let DOS variable expansion print the short 8.3 style file name.
16368 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16369 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16372 # Convert to MSYS style.
16373 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16376 # Convert to unix form, then to dos form, then back to unix form
16377 # but this time dos style (no spaces!) so that the unix form looks
16378 # like /cygdrive/c/PROGRA~1:/cygdr...
16379 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16380 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16381 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16384 sys_lib_search_path_spec="$LIB"
16385 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16386 # It is most probably a Windows format PATH.
16387 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16389 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16391 # FIXME: find the short name or the path components, as spaces are
16392 # common. (e.g. "Program Files" -> "PROGRA~1")
16396 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16397 postinstall_cmds='base_file=`basename \${file}`~
16398 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16399 dldir=$destdir/`dirname \$dlpath`~
16400 test -d \$dldir || mkdir -p \$dldir~
16401 $install_prog $dir/$dlname \$dldir/$dlname'
16402 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16403 dlpath=$dir/\$dldll~
16405 shlibpath_overrides_runpath=yes
16406 dynamic_linker='Win32 link.exe'
16410 # Assume MSVC wrapper
16411 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16412 dynamic_linker='Win32 ld.exe'
16415 # FIXME: first we should search . and the directory the executable is in
16419 darwin* | rhapsody*)
16420 dynamic_linker="$host_os dyld"
16421 version_type=darwin
16424 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16425 soname_spec='${libname}${release}${major}$shared_ext'
16426 shlibpath_overrides_runpath=yes
16427 shlibpath_var=DYLD_LIBRARY_PATH
16428 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16430 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16431 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16435 version_type=linux # correct to gnu/linux during the next big refactor
16438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16439 soname_spec='${libname}${release}${shared_ext}$major'
16440 shlibpath_var=LD_LIBRARY_PATH
16443 freebsd* | dragonfly*)
16444 # DragonFly does not have aout. When/if they implement a new
16445 # versioning mechanism, adjust this.
16446 if test -x /usr/bin/objformat; then
16447 objformat=`/usr/bin/objformat`
16450 freebsd[23].*) objformat=aout ;;
16451 *) objformat=elf ;;
16454 version_type=freebsd-$objformat
16455 case $version_type in
16457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16462 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16466 shlibpath_var=LD_LIBRARY_PATH
16469 shlibpath_overrides_runpath=yes
16471 freebsd3.[01]* | freebsdelf3.[01]*)
16472 shlibpath_overrides_runpath=yes
16473 hardcode_into_libs=yes
16475 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16476 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16477 shlibpath_overrides_runpath=no
16478 hardcode_into_libs=yes
16480 *) # from 4.6 on, and DragonFly
16481 shlibpath_overrides_runpath=yes
16482 hardcode_into_libs=yes
16488 version_type=linux # correct to gnu/linux during the next big refactor
16491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16492 soname_spec='${libname}${release}${shared_ext}$major'
16493 shlibpath_var=LD_LIBRARY_PATH
16494 shlibpath_overrides_runpath=no
16495 hardcode_into_libs=yes
16499 version_type=linux # correct to gnu/linux during the next big refactor
16502 dynamic_linker="$host_os runtime_loader"
16503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16504 soname_spec='${libname}${release}${shared_ext}$major'
16505 shlibpath_var=LIBRARY_PATH
16506 shlibpath_overrides_runpath=yes
16507 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16508 hardcode_into_libs=yes
16511 hpux9* | hpux10* | hpux11*)
16512 # Give a soname corresponding to the major version so that dld.sl refuses to
16513 # link against other versions.
16520 hardcode_into_libs=yes
16521 dynamic_linker="$host_os dld.so"
16522 shlibpath_var=LD_LIBRARY_PATH
16523 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16525 soname_spec='${libname}${release}${shared_ext}$major'
16526 if test "X$HPUX_IA64_MODE" = X32; then
16527 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16529 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16531 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16535 hardcode_into_libs=yes
16536 dynamic_linker="$host_os dld.sl"
16537 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16538 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16540 soname_spec='${libname}${release}${shared_ext}$major'
16541 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16542 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16546 dynamic_linker="$host_os dld.sl"
16547 shlibpath_var=SHLIB_PATH
16548 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16550 soname_spec='${libname}${release}${shared_ext}$major'
16553 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16554 postinstall_cmds='chmod 555 $lib'
16555 # or fails outright, so override atomically:
16556 install_override_mode=555
16560 version_type=linux # correct to gnu/linux during the next big refactor
16563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16564 soname_spec='${libname}${release}${shared_ext}$major'
16565 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16566 shlibpath_var=LD_LIBRARY_PATH
16567 shlibpath_overrides_runpath=no
16568 hardcode_into_libs=yes
16571 irix5* | irix6* | nonstopux*)
16573 nonstopux*) version_type=nonstopux ;;
16575 if test "$lt_cv_prog_gnu_ld" = yes; then
16576 version_type=linux # correct to gnu/linux during the next big refactor
16583 soname_spec='${libname}${release}${shared_ext}$major'
16584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16586 irix5* | nonstopux*)
16587 libsuff= shlibsuff=
16590 case $LD in # libtool.m4 will add one of these switches to LD
16591 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16592 libsuff= shlibsuff= libmagic=32-bit;;
16593 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16594 libsuff=32 shlibsuff=N32 libmagic=N32;;
16595 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16596 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16597 *) libsuff= shlibsuff= libmagic=never-match;;
16601 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16602 shlibpath_overrides_runpath=no
16603 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16604 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16605 hardcode_into_libs=yes
16608 # No shared lib support for Linux oldld, aout, or coff.
16609 linux*oldld* | linux*aout* | linux*coff*)
16613 # This must be glibc/ELF.
16614 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16615 version_type=linux # correct to gnu/linux during the next big refactor
16618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16619 soname_spec='${libname}${release}${shared_ext}$major'
16620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16621 shlibpath_var=LD_LIBRARY_PATH
16622 shlibpath_overrides_runpath=no
16624 # Some binutils ld are patched to set DT_RUNPATH
16625 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16626 $as_echo_n "(cached) " >&6
16628 lt_cv_shlibpath_overrides_runpath=no
16629 save_LDFLAGS=$LDFLAGS
16630 save_libdir=$libdir
16631 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16632 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16634 /* end confdefs.h. */
16644 if ac_fn_c_try_link "$LINENO"; then :
16645 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16646 lt_cv_shlibpath_overrides_runpath=yes
16649 rm -f core conftest.err conftest.$ac_objext \
16650 conftest$ac_exeext conftest.$ac_ext
16651 LDFLAGS=$save_LDFLAGS
16652 libdir=$save_libdir
16656 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16658 # This implies no fast_install, which is unacceptable.
16659 # Some rework will be needed to allow for fast_install
16660 # before this can be enabled.
16661 hardcode_into_libs=yes
16663 # Add ABI-specific directories to the system library path.
16664 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16666 # Append ld.so.conf contents to the search path
16667 if test -f /etc/ld.so.conf; then
16668 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' ' '`
16669 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16673 # We used to test for /lib/ld.so.1 and disable shared libraries on
16674 # powerpc, because MkLinux only supported shared libraries with the
16675 # GNU dynamic linker. Since this was broken with cross compilers,
16676 # most powerpc-linux boxes support dynamic linking these days and
16677 # people can always --disable-shared, the test was removed, and we
16678 # assume the GNU/Linux dynamic linker is in use.
16679 dynamic_linker='GNU/Linux ld.so'
16686 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16689 dynamic_linker='NetBSD (a.out) ld.so'
16691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16692 soname_spec='${libname}${release}${shared_ext}$major'
16693 dynamic_linker='NetBSD ld.elf_so'
16695 shlibpath_var=LD_LIBRARY_PATH
16696 shlibpath_overrides_runpath=yes
16697 hardcode_into_libs=yes
16701 version_type=linux # correct to gnu/linux during the next big refactor
16702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16703 shlibpath_var=LD_LIBRARY_PATH
16704 shlibpath_overrides_runpath=yes
16711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16712 soname_spec='${libname}${release}${shared_ext}$major'
16713 shlibpath_var=LD_LIBRARY_PATH
16714 shlibpath_overrides_runpath=no
16715 hardcode_into_libs=yes
16716 dynamic_linker='ldqnx.so'
16721 sys_lib_dlsearch_path_spec="/usr/lib"
16723 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16725 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16726 *) need_version=no ;;
16728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16729 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16730 shlibpath_var=LD_LIBRARY_PATH
16731 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16733 openbsd2.[89] | openbsd2.[89].*)
16734 shlibpath_overrides_runpath=no
16737 shlibpath_overrides_runpath=yes
16741 shlibpath_overrides_runpath=yes
16746 libname_spec='$name'
16749 library_names_spec='$libname${shared_ext} $libname.a'
16750 dynamic_linker='OS/2 ld.exe'
16751 shlibpath_var=LIBPATH
16754 osf3* | osf4* | osf5*)
16758 soname_spec='${libname}${release}${shared_ext}$major'
16759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16760 shlibpath_var=LD_LIBRARY_PATH
16761 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16762 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16770 version_type=linux # correct to gnu/linux during the next big refactor
16773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16774 soname_spec='${libname}${release}${shared_ext}$major'
16775 shlibpath_var=LD_LIBRARY_PATH
16776 shlibpath_overrides_runpath=yes
16777 hardcode_into_libs=yes
16778 # ldd complains unless libraries are executable
16779 postinstall_cmds='chmod +x $lib'
16784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16785 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16786 shlibpath_var=LD_LIBRARY_PATH
16787 shlibpath_overrides_runpath=yes
16788 if test "$with_gnu_ld" = yes; then
16795 version_type=linux # correct to gnu/linux during the next big refactor
16796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16797 soname_spec='${libname}${release}${shared_ext}$major'
16798 shlibpath_var=LD_LIBRARY_PATH
16799 case $host_vendor in
16801 shlibpath_overrides_runpath=no
16803 runpath_var=LD_RUN_PATH
16811 shlibpath_overrides_runpath=no
16812 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16818 if test -d /usr/nec ;then
16819 version_type=linux # correct to gnu/linux during the next big refactor
16820 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16821 soname_spec='$libname${shared_ext}.$major'
16822 shlibpath_var=LD_LIBRARY_PATH
16826 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16827 version_type=freebsd-elf
16830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16831 soname_spec='${libname}${release}${shared_ext}$major'
16832 shlibpath_var=LD_LIBRARY_PATH
16833 shlibpath_overrides_runpath=yes
16834 hardcode_into_libs=yes
16835 if test "$with_gnu_ld" = yes; then
16836 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16838 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16841 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16845 sys_lib_dlsearch_path_spec='/usr/lib'
16849 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16850 version_type=linux # correct to gnu/linux during the next big refactor
16853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16854 shlibpath_var=LD_LIBRARY_PATH
16855 shlibpath_overrides_runpath=no
16856 hardcode_into_libs=yes
16860 version_type=linux # correct to gnu/linux during the next big refactor
16861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16862 soname_spec='${libname}${release}${shared_ext}$major'
16863 shlibpath_var=LD_LIBRARY_PATH
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16871 $as_echo "$dynamic_linker" >&6; }
16872 test "$dynamic_linker" = no && can_build_shared=no
16874 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16875 if test "$GCC" = yes; then
16876 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16879 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16880 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16882 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16883 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16978 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16980 if test -n "$hardcode_libdir_flag_spec" ||
16981 test -n "$runpath_var" ||
16982 test "X$hardcode_automatic" = "Xyes" ; then
16984 # We can hardcode non-existent directories.
16985 if test "$hardcode_direct" != no &&
16986 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16987 # have to relink, otherwise we might link with an installed library
16988 # when we should be linking with a yet-to-be-installed one
16989 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16990 test "$hardcode_minus_L" != no; then
16991 # Linking always hardcodes the temporary library directory.
16992 hardcode_action=relink
16994 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16995 hardcode_action=immediate
16998 # We cannot hardcode anything, or else we can only hardcode existing
17000 hardcode_action=unsupported
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17003 $as_echo "$hardcode_action" >&6; }
17005 if test "$hardcode_action" = relink ||
17006 test "$inherit_rpath" = yes; then
17007 # Fast installation is not supported
17008 enable_fast_install=no
17009 elif test "$shlibpath_overrides_runpath" = yes ||
17010 test "$enable_shared" = no; then
17011 # Fast installation is not necessary
17012 enable_fast_install=needless
17020 if test "x$enable_dlopen" != xyes; then
17021 enable_dlopen=unknown
17022 enable_dlopen_self=unknown
17023 enable_dlopen_self_static=unknown
17030 lt_cv_dlopen="load_add_on"
17032 lt_cv_dlopen_self=yes
17035 mingw* | pw32* | cegcc*)
17036 lt_cv_dlopen="LoadLibrary"
17041 lt_cv_dlopen="dlopen"
17046 # if libdl is installed we need to link against it
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17048 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17049 if ${ac_cv_lib_dl_dlopen+:} false; then :
17050 $as_echo_n "(cached) " >&6
17052 ac_check_lib_save_LIBS=$LIBS
17054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17055 /* end confdefs.h. */
17057 /* Override any GCC internal prototype to avoid an error.
17058 Use char because int might match the return type of a GCC
17059 builtin and then its argument prototype would still apply. */
17072 if ac_fn_c_try_link "$LINENO"; then :
17073 ac_cv_lib_dl_dlopen=yes
17075 ac_cv_lib_dl_dlopen=no
17077 rm -f core conftest.err conftest.$ac_objext \
17078 conftest$ac_exeext conftest.$ac_ext
17079 LIBS=$ac_check_lib_save_LIBS
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17082 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17083 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17084 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17087 lt_cv_dlopen="dyld"
17089 lt_cv_dlopen_self=yes
17096 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17097 if test "x$ac_cv_func_shl_load" = xyes; then :
17098 lt_cv_dlopen="shl_load"
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17101 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17102 if ${ac_cv_lib_dld_shl_load+:} false; then :
17103 $as_echo_n "(cached) " >&6
17105 ac_check_lib_save_LIBS=$LIBS
17107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17108 /* end confdefs.h. */
17110 /* Override any GCC internal prototype to avoid an error.
17111 Use char because int might match the return type of a GCC
17112 builtin and then its argument prototype would still apply. */
17120 return shl_load ();
17125 if ac_fn_c_try_link "$LINENO"; then :
17126 ac_cv_lib_dld_shl_load=yes
17128 ac_cv_lib_dld_shl_load=no
17130 rm -f core conftest.err conftest.$ac_objext \
17131 conftest$ac_exeext conftest.$ac_ext
17132 LIBS=$ac_check_lib_save_LIBS
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17135 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17136 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17137 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17139 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17140 if test "x$ac_cv_func_dlopen" = xyes; then :
17141 lt_cv_dlopen="dlopen"
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17144 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17145 if ${ac_cv_lib_dl_dlopen+:} false; then :
17146 $as_echo_n "(cached) " >&6
17148 ac_check_lib_save_LIBS=$LIBS
17150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17151 /* end confdefs.h. */
17153 /* Override any GCC internal prototype to avoid an error.
17154 Use char because int might match the return type of a GCC
17155 builtin and then its argument prototype would still apply. */
17168 if ac_fn_c_try_link "$LINENO"; then :
17169 ac_cv_lib_dl_dlopen=yes
17171 ac_cv_lib_dl_dlopen=no
17173 rm -f core conftest.err conftest.$ac_objext \
17174 conftest$ac_exeext conftest.$ac_ext
17175 LIBS=$ac_check_lib_save_LIBS
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17178 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17179 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17180 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17183 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17184 if ${ac_cv_lib_svld_dlopen+:} false; then :
17185 $as_echo_n "(cached) " >&6
17187 ac_check_lib_save_LIBS=$LIBS
17188 LIBS="-lsvld $LIBS"
17189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17190 /* end confdefs.h. */
17192 /* Override any GCC internal prototype to avoid an error.
17193 Use char because int might match the return type of a GCC
17194 builtin and then its argument prototype would still apply. */
17207 if ac_fn_c_try_link "$LINENO"; then :
17208 ac_cv_lib_svld_dlopen=yes
17210 ac_cv_lib_svld_dlopen=no
17212 rm -f core conftest.err conftest.$ac_objext \
17213 conftest$ac_exeext conftest.$ac_ext
17214 LIBS=$ac_check_lib_save_LIBS
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17217 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17218 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17219 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17222 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17223 if ${ac_cv_lib_dld_dld_link+:} false; then :
17224 $as_echo_n "(cached) " >&6
17226 ac_check_lib_save_LIBS=$LIBS
17228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17229 /* end confdefs.h. */
17231 /* Override any GCC internal prototype to avoid an error.
17232 Use char because int might match the return type of a GCC
17233 builtin and then its argument prototype would still apply. */
17241 return dld_link ();
17246 if ac_fn_c_try_link "$LINENO"; then :
17247 ac_cv_lib_dld_dld_link=yes
17249 ac_cv_lib_dld_dld_link=no
17251 rm -f core conftest.err conftest.$ac_objext \
17252 conftest$ac_exeext conftest.$ac_ext
17253 LIBS=$ac_check_lib_save_LIBS
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17256 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17257 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17258 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17279 if test "x$lt_cv_dlopen" != xno; then
17285 case $lt_cv_dlopen in
17287 save_CPPFLAGS="$CPPFLAGS"
17288 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17290 save_LDFLAGS="$LDFLAGS"
17291 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17294 LIBS="$lt_cv_dlopen_libs $LIBS"
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17297 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17298 if ${lt_cv_dlopen_self+:} false; then :
17299 $as_echo_n "(cached) " >&6
17301 if test "$cross_compiling" = yes; then :
17302 lt_cv_dlopen_self=cross
17304 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17305 lt_status=$lt_dlunknown
17306 cat > conftest.$ac_ext <<_LT_EOF
17307 #line $LINENO "configure"
17308 #include "confdefs.h"
17317 # define LT_DLGLOBAL RTLD_GLOBAL
17320 # define LT_DLGLOBAL DL_GLOBAL
17322 # define LT_DLGLOBAL 0
17326 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17327 find out it does not work in some platform. */
17328 #ifndef LT_DLLAZY_OR_NOW
17330 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17333 # define LT_DLLAZY_OR_NOW DL_LAZY
17336 # define LT_DLLAZY_OR_NOW RTLD_NOW
17339 # define LT_DLLAZY_OR_NOW DL_NOW
17341 # define LT_DLLAZY_OR_NOW 0
17348 /* When -fvisbility=hidden is used, assume the code has been annotated
17349 correspondingly for the symbols needed. */
17350 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17351 int fnord () __attribute__((visibility("default")));
17354 int fnord () { return 42; }
17357 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17358 int status = $lt_dlunknown;
17362 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17365 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17366 else puts (dlerror ());
17368 /* dlclose (self); */
17376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17377 (eval $ac_link) 2>&5
17379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17380 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17381 (./conftest; exit; ) >&5 2>/dev/null
17383 case x$lt_status in
17384 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17385 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17386 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17389 # compilation failed
17390 lt_cv_dlopen_self=no
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17398 $as_echo "$lt_cv_dlopen_self" >&6; }
17400 if test "x$lt_cv_dlopen_self" = xyes; then
17401 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17403 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17404 if ${lt_cv_dlopen_self_static+:} false; then :
17405 $as_echo_n "(cached) " >&6
17407 if test "$cross_compiling" = yes; then :
17408 lt_cv_dlopen_self_static=cross
17410 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17411 lt_status=$lt_dlunknown
17412 cat > conftest.$ac_ext <<_LT_EOF
17413 #line $LINENO "configure"
17414 #include "confdefs.h"
17423 # define LT_DLGLOBAL RTLD_GLOBAL
17426 # define LT_DLGLOBAL DL_GLOBAL
17428 # define LT_DLGLOBAL 0
17432 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17433 find out it does not work in some platform. */
17434 #ifndef LT_DLLAZY_OR_NOW
17436 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17439 # define LT_DLLAZY_OR_NOW DL_LAZY
17442 # define LT_DLLAZY_OR_NOW RTLD_NOW
17445 # define LT_DLLAZY_OR_NOW DL_NOW
17447 # define LT_DLLAZY_OR_NOW 0
17454 /* When -fvisbility=hidden is used, assume the code has been annotated
17455 correspondingly for the symbols needed. */
17456 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17457 int fnord () __attribute__((visibility("default")));
17460 int fnord () { return 42; }
17463 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17464 int status = $lt_dlunknown;
17468 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17471 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17472 else puts (dlerror ());
17474 /* dlclose (self); */
17482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17483 (eval $ac_link) 2>&5
17485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17486 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17487 (./conftest; exit; ) >&5 2>/dev/null
17489 case x$lt_status in
17490 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17491 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17492 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17495 # compilation failed
17496 lt_cv_dlopen_self_static=no
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17504 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17507 CPPFLAGS="$save_CPPFLAGS"
17508 LDFLAGS="$save_LDFLAGS"
17513 case $lt_cv_dlopen_self in
17514 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17515 *) enable_dlopen_self=unknown ;;
17518 case $lt_cv_dlopen_self_static in
17519 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17520 *) enable_dlopen_self_static=unknown ;;
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17543 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17544 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17545 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17546 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17548 $as_echo "yes" >&6; }
17550 # FIXME - insert some real tests, host_os isn't really good enough
17553 if test -n "$STRIP" ; then
17554 striplib="$STRIP -x"
17555 old_striplib="$STRIP -S"
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17557 $as_echo "yes" >&6; }
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17560 $as_echo "no" >&6; }
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17565 $as_echo "no" >&6; }
17581 # Report which library types will actually be built
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17583 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17585 $as_echo "$can_build_shared" >&6; }
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17588 $as_echo_n "checking whether to build shared libraries... " >&6; }
17589 test "$can_build_shared" = "no" && enable_shared=no
17591 # On AIX, shared libraries and static libraries use the same namespace, and
17592 # are all built from PIC.
17595 test "$enable_shared" = yes && enable_static=no
17596 if test -n "$RANLIB"; then
17597 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17598 postinstall_cmds='$RANLIB $lib'
17603 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17604 test "$enable_shared" = yes && enable_static=no
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17609 $as_echo "$enable_shared" >&6; }
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17612 $as_echo_n "checking whether to build static libraries... " >&6; }
17613 # Make sure either enable_shared or enable_static is yes.
17614 test "$enable_shared" = yes || enable_static=yes
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17616 $as_echo "$enable_static" >&6; }
17623 ac_cpp='$CPP $CPPFLAGS'
17624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17644 ac_config_commands="$ac_config_commands libtool"
17649 # Only expand once:
17655 # Define a configure option for an alternate module directory
17657 # Check whether --with-xorg-module-dir was given.
17658 if test "${with_xorg_module_dir+set}" = set; then :
17659 withval=$with_xorg_module_dir; moduledir="$withval"
17661 moduledir="$libdir/xorg/modules"
17666 # Store the list of server defined optional extensions in REQUIRED_MODULES
17669 SAVE_CFLAGS="$CFLAGS"
17670 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17672 /* end confdefs.h. */
17674 #include "xorg-server.h"
17676 #error RANDR not defined
17687 if ac_fn_c_try_compile "$LINENO"; then :
17692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17693 CFLAGS="$SAVE_CFLAGS"
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17695 $as_echo_n "checking if RANDR is defined... " >&6; }
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17697 $as_echo "$_EXT_CHECK" >&6; }
17698 if test "$_EXT_CHECK" != no; then
17699 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17704 SAVE_CFLAGS="$CFLAGS"
17705 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17707 /* end confdefs.h. */
17709 #include "xorg-server.h"
17710 #if !defined RENDER
17711 #error RENDER not defined
17722 if ac_fn_c_try_compile "$LINENO"; then :
17727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17728 CFLAGS="$SAVE_CFLAGS"
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17730 $as_echo_n "checking if RENDER is defined... " >&6; }
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17732 $as_echo "$_EXT_CHECK" >&6; }
17733 if test "$_EXT_CHECK" != no; then
17734 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17739 SAVE_CFLAGS="$CFLAGS"
17740 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17742 /* end confdefs.h. */
17744 #include "xorg-server.h"
17745 #if !defined DPMSExtension
17746 #error DPMSExtension not defined
17757 if ac_fn_c_try_compile "$LINENO"; then :
17762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17763 CFLAGS="$SAVE_CFLAGS"
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
17765 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17767 $as_echo "$_EXT_CHECK" >&6; }
17768 if test "$_EXT_CHECK" != no; then
17769 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
17773 # Obtain compiler/linker options for the driver dependencies
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17777 $as_echo_n "checking for XORG... " >&6; }
17779 if test -n "$XORG_CFLAGS"; then
17780 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17781 elif test -n "$PKG_CONFIG"; then
17782 if test -n "$PKG_CONFIG" && \
17783 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17784 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
17786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17787 test $ac_status = 0; }; then
17788 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17795 if test -n "$XORG_LIBS"; then
17796 pkg_cv_XORG_LIBS="$XORG_LIBS"
17797 elif test -n "$PKG_CONFIG"; then
17798 if test -n "$PKG_CONFIG" && \
17799 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17800 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
17802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17803 test $ac_status = 0; }; then
17804 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17814 if test $pkg_failed = yes; then
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17816 $as_echo "no" >&6; }
17818 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17819 _pkg_short_errors_supported=yes
17821 _pkg_short_errors_supported=no
17823 if test $_pkg_short_errors_supported = yes; then
17824 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17826 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17828 # Put the nasty error message in config.log where it belongs
17829 echo "$XORG_PKG_ERRORS" >&5
17831 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
17835 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17836 installed software in a non-standard prefix.
17838 Alternatively, you may set the environment variables XORG_CFLAGS
17839 and XORG_LIBS to avoid the need to call pkg-config.
17840 See the pkg-config man page for more details." "$LINENO" 5
17842 elif test $pkg_failed = untried; then
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17844 $as_echo "no" >&6; }
17845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17847 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17848 is in your PATH or set the PKG_CONFIG environment variable to the full
17849 path to pkg-config.
17851 Alternatively, you may set the environment variables XORG_CFLAGS
17852 and XORG_LIBS to avoid the need to call pkg-config.
17853 See the pkg-config man page for more details.
17855 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17856 See \`config.log' for more details" "$LINENO" 5; }
17859 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
17860 XORG_LIBS=$pkg_cv_XORG_LIBS
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17862 $as_echo "yes" >&6; }
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
17868 $as_echo_n "checking for XEXT... " >&6; }
17870 if test -n "$XEXT_CFLAGS"; then
17871 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
17872 elif test -n "$PKG_CONFIG"; then
17873 if test -n "$PKG_CONFIG" && \
17874 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
17875 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
17877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17878 test $ac_status = 0; }; then
17879 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
17886 if test -n "$XEXT_LIBS"; then
17887 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
17888 elif test -n "$PKG_CONFIG"; then
17889 if test -n "$PKG_CONFIG" && \
17890 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
17891 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
17893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17894 test $ac_status = 0; }; then
17895 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
17905 if test $pkg_failed = yes; then
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17907 $as_echo "no" >&6; }
17909 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17910 _pkg_short_errors_supported=yes
17912 _pkg_short_errors_supported=no
17914 if test $_pkg_short_errors_supported = yes; then
17915 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1`
17917 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1`
17919 # Put the nasty error message in config.log where it belongs
17920 echo "$XEXT_PKG_ERRORS" >&5
17922 HAVE_XEXTPROTO_71="no"
17923 elif test $pkg_failed = untried; then
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17925 $as_echo "no" >&6; }
17926 HAVE_XEXTPROTO_71="no"
17928 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
17929 XEXT_LIBS=$pkg_cv_XEXT_LIBS
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17931 $as_echo "yes" >&6; }
17932 HAVE_XEXTPROTO_71="yes";
17933 $as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
17936 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
17937 HAVE_XEXTPROTO_71_TRUE=
17938 HAVE_XEXTPROTO_71_FALSE='#'
17940 HAVE_XEXTPROTO_71_TRUE='#'
17941 HAVE_XEXTPROTO_71_FALSE=
17945 save_CFLAGS="$CFLAGS"
17946 CFLAGS="$XORG_CFLAGS"
17947 ac_fn_c_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\"
17949 if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = xyes; then :
17951 $as_echo "#define HAVE_ISA 1" >>confdefs.h
17955 CFLAGS="$save_CFLAGS"
17957 save_CFLAGS="$CFLAGS"
17958 CFLAGS="$XORG_CFLAGS"
17959 ac_fn_c_check_decl "$LINENO" "VBEReadPanelID" "ac_cv_have_decl_VBEReadPanelID" "#include \"vbe.h\"
17961 if test "x$ac_cv_have_decl_VBEReadPanelID" = xyes; then :
17963 $as_echo "#define HAVE_PANELID 1" >>confdefs.h
17967 CFLAGS="$save_CFLAGS"
17969 save_CFLAGS="$CFLAGS"
17970 CFLAGS="$XORG_CFLAGS"
17971 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
17973 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
17974 XSERVER_LIBPCIACCESS=yes
17976 XSERVER_LIBPCIACCESS=no
17979 CFLAGS="$save_CFLAGS"
17981 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
17985 $as_echo_n "checking for PCIACCESS... " >&6; }
17987 if test -n "$PCIACCESS_CFLAGS"; then
17988 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
17989 elif test -n "$PKG_CONFIG"; then
17990 if test -n "$PKG_CONFIG" && \
17991 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
17992 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
17994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17995 test $ac_status = 0; }; then
17996 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.12.901" 2>/dev/null`
18003 if test -n "$PCIACCESS_LIBS"; then
18004 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18005 elif test -n "$PKG_CONFIG"; then
18006 if test -n "$PKG_CONFIG" && \
18007 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
18008 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
18010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18011 test $ac_status = 0; }; then
18012 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.12.901" 2>/dev/null`
18022 if test $pkg_failed = yes; then
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18024 $as_echo "no" >&6; }
18026 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18027 _pkg_short_errors_supported=yes
18029 _pkg_short_errors_supported=no
18031 if test $_pkg_short_errors_supported = yes; then
18032 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.12.901" 2>&1`
18034 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.12.901" 2>&1`
18036 # Put the nasty error message in config.log where it belongs
18037 echo "$PCIACCESS_PKG_ERRORS" >&5
18039 as_fn_error $? "Package requirements (pciaccess >= 0.12.901) were not met:
18041 $PCIACCESS_PKG_ERRORS
18043 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18044 installed software in a non-standard prefix.
18046 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18047 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18048 See the pkg-config man page for more details." "$LINENO" 5
18050 elif test $pkg_failed = untried; then
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18052 $as_echo "no" >&6; }
18053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18055 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18056 is in your PATH or set the PKG_CONFIG environment variable to the full
18057 path to pkg-config.
18059 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18060 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18061 See the pkg-config man page for more details.
18063 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18064 See \`config.log' for more details" "$LINENO" 5; }
18067 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18068 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18070 $as_echo "yes" >&6; }
18074 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18075 XSERVER_LIBPCIACCESS_TRUE=
18076 XSERVER_LIBPCIACCESS_FALSE='#'
18078 XSERVER_LIBPCIACCESS_TRUE='#'
18079 XSERVER_LIBPCIACCESS_FALSE=
18083 # Checks for libraries.
18088 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18090 cat >confcache <<\_ACEOF
18091 # This file is a shell script that caches the results of configure
18092 # tests run on this system so they can be shared between configure
18093 # scripts and configure runs, see configure's option --config-cache.
18094 # It is not useful on other systems. If it contains results you don't
18095 # want to keep, you may remove or edit it.
18097 # config.status only pays attention to the cache file if you give it
18098 # the --recheck option to rerun configure.
18100 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18101 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18102 # following values.
18106 # The following way of writing the cache mishandles newlines in values,
18107 # but we know of no workaround that is simple, portable, and efficient.
18108 # So, we kill variables containing newlines.
18109 # Ultrix sh set writes to stderr and can't be redirected directly,
18110 # and sets the high bit in the cache file unless we assign to the vars.
18112 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18113 eval ac_val=\$$ac_var
18117 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18118 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18121 _ | IFS | as_nl) ;; #(
18122 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18123 *) { eval $ac_var=; unset $ac_var;} ;;
18129 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18130 *${as_nl}ac_space=\ *)
18131 # `set' does not quote correctly, so add quotes: double-quote
18132 # substitution turns \\\\ into \\, and sed turns \\ into \.
18135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18138 # `set' quotes correctly as required by POSIX, so do not add quotes.
18139 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18148 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18150 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18152 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18153 if test -w "$cache_file"; then
18154 if test "x$cache_file" != "x/dev/null"; then
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18156 $as_echo "$as_me: updating cache $cache_file" >&6;}
18157 if test ! -f "$cache_file" || test -h "$cache_file"; then
18158 cat confcache >"$cache_file"
18160 case $cache_file in #(
18162 mv -f confcache "$cache_file"$$ &&
18163 mv -f "$cache_file"$$ "$cache_file" ;; #(
18165 mv -f confcache "$cache_file" ;;
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18171 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18176 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18177 # Let make expand exec_prefix.
18178 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18180 DEFS=-DHAVE_CONFIG_H
18185 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18186 # 1. Remove the extension, and $U if already installed.
18187 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18188 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18189 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18190 # will be set to the directory where LIBOBJS objects are built.
18191 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18192 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18194 LIBOBJS=$ac_libobjs
18196 LTLIBOBJS=$ac_ltlibobjs
18199 if test -n "$EXEEXT"; then
18201 am__EXEEXT_FALSE='#'
18203 am__EXEEXT_TRUE='#'
18207 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18208 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18211 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18212 as_fn_error $? "conditional \"AMDEP\" was never defined.
18213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18215 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18216 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18219 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
18220 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
18221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18223 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18224 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18228 : "${CONFIG_STATUS=./config.status}"
18230 ac_clean_files_save=$ac_clean_files
18231 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18233 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18235 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18237 # Generated by $as_me.
18238 # Run this file to recreate the current configuration.
18239 # Compiler output produced by configure, useful for debugging
18240 # configure, is in config.log if it exists.
18243 ac_cs_recheck=false
18246 SHELL=\${CONFIG_SHELL-$SHELL}
18249 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18250 ## -------------------- ##
18251 ## M4sh Initialization. ##
18252 ## -------------------- ##
18254 # Be more Bourne compatible
18255 DUALCASE=1; export DUALCASE # for MKS sh
18256 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18259 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18260 # is contrary to our usage. Disable this feature.
18261 alias -g '${1+"$@"}'='"$@"'
18262 setopt NO_GLOB_SUBST
18264 case `(set -o) 2>/dev/null` in #(
18276 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18277 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18278 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18279 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18280 # Prefer a ksh shell builtin over an external printf program on Solaris,
18281 # but without wasting forks for bash or zsh.
18282 if test -z "$BASH_VERSION$ZSH_VERSION" \
18283 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18284 as_echo='print -r --'
18285 as_echo_n='print -rn --'
18286 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18287 as_echo='printf %s\n'
18288 as_echo_n='printf %s'
18290 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18291 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18292 as_echo_n='/usr/ucb/echo -n'
18294 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18295 as_echo_n_body='eval
18299 expr "X$arg" : "X\\(.*\\)$as_nl";
18300 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18302 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18304 export as_echo_n_body
18305 as_echo_n='sh -c $as_echo_n_body as_echo'
18307 export as_echo_body
18308 as_echo='sh -c $as_echo_body as_echo'
18311 # The user is always right.
18312 if test "${PATH_SEPARATOR+set}" != set; then
18314 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18315 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18322 # We need space, tab and new line, in precisely that order. Quoting is
18323 # there to prevent editors from complaining about space-tab.
18324 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18325 # splitting by setting IFS to empty value.)
18328 # Find who we are. Look in the path if we contain no directory separator.
18331 *[\\/]* ) as_myself=$0 ;;
18332 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18333 for as_dir in $PATH
18336 test -z "$as_dir" && as_dir=.
18337 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18343 # We did not find ourselves, most probably we were run as `sh COMMAND'
18344 # in which case we are not to be found in the path.
18345 if test "x$as_myself" = x; then
18348 if test ! -f "$as_myself"; then
18349 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18353 # Unset variables that we do not need and which cause bugs (e.g. in
18354 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18355 # suppresses any "Segmentation fault" message there. '((' could
18356 # trigger a bug in pdksh 5.2.14.
18357 for as_var in BASH_ENV ENV MAIL MAILPATH
18358 do eval test x\${$as_var+set} = xset \
18359 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18372 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18376 # ----------------------------------------
18377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18379 # script with STATUS, using 1 if that was 0.
18382 as_status=$1; test $as_status -eq 0 && as_status=1
18384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18387 $as_echo "$as_me: error: $2" >&2
18388 as_fn_exit $as_status
18392 # as_fn_set_status STATUS
18393 # -----------------------
18394 # Set $? to STATUS, without forking.
18395 as_fn_set_status ()
18398 } # as_fn_set_status
18400 # as_fn_exit STATUS
18401 # -----------------
18402 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18406 as_fn_set_status $1
18412 # Portably unset VAR.
18415 { eval $1=; unset $1;}
18417 as_unset=as_fn_unset
18418 # as_fn_append VAR VALUE
18419 # ----------------------
18420 # Append the text in VALUE to the end of the definition contained in VAR. Take
18421 # advantage of any shell optimizations that allow amortized linear growth over
18422 # repeated appends, instead of the typical quadratic growth present in naive
18424 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18425 eval 'as_fn_append ()
18436 # as_fn_arith ARG...
18437 # ------------------
18438 # Perform arithmetic evaluation on the ARGs, and store the result in the
18439 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18440 # must be portable across $(()) and expr.
18441 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18442 eval 'as_fn_arith ()
18449 as_val=`expr "$@" || test $? -eq 1`
18454 if expr a : '\(a\)' >/dev/null 2>&1 &&
18455 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18461 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18462 as_basename=basename
18467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18473 as_me=`$as_basename -- "$0" ||
18474 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18475 X"$0" : 'X\(//\)$' \| \
18476 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18478 sed '/^.*\/\([^/][^/]*\)\/*$/{
18492 # Avoid depending upon Character Ranges.
18493 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18494 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18495 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18496 as_cr_digits='0123456789'
18497 as_cr_alnum=$as_cr_Letters$as_cr_digits
18499 ECHO_C= ECHO_N= ECHO_T=
18500 case `echo -n x` in #(((((
18502 case `echo 'xy\c'` in
18503 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18505 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18512 rm -f conf$$ conf$$.exe conf$$.file
18513 if test -d conf$$.dir; then
18514 rm -f conf$$.dir/conf$$.file
18517 mkdir conf$$.dir 2>/dev/null
18519 if (echo >conf$$.file) 2>/dev/null; then
18520 if ln -s conf$$.file conf$$ 2>/dev/null; then
18522 # ... but there are two gotchas:
18523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18525 # In both cases, we have to default to `cp -p'.
18526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18528 elif ln conf$$.file conf$$ 2>/dev/null; then
18536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18537 rmdir conf$$.dir 2>/dev/null
18542 # Create "$as_dir" as a directory, including parents if necessary.
18547 -*) as_dir=./$as_dir;;
18549 test -d "$as_dir" || eval $as_mkdir_p || {
18553 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18554 *) as_qdir=$as_dir;;
18556 as_dirs="'$as_qdir' $as_dirs"
18557 as_dir=`$as_dirname -- "$as_dir" ||
18558 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18559 X"$as_dir" : 'X\(//\)[^/]' \| \
18560 X"$as_dir" : 'X\(//\)$' \| \
18561 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18562 $as_echo X"$as_dir" |
18563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18567 /^X\(\/\/\)[^/].*/{
18580 test -d "$as_dir" && break
18582 test -z "$as_dirs" || eval "mkdir $as_dirs"
18583 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18587 if mkdir -p . 2>/dev/null; then
18588 as_mkdir_p='mkdir -p "$as_dir"'
18590 test -d ./-p && rmdir ./-p
18594 if test -x / >/dev/null 2>&1; then
18595 as_test_x='test -x'
18597 if ls -dL / >/dev/null 2>&1; then
18604 if test -d "$1"; then
18610 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18611 ???[sx]*):;;*)false;;esac;fi
18615 as_executable_p=$as_test_x
18617 # Sed expression to map a string onto a valid CPP name.
18618 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18620 # Sed expression to map a string onto a valid variable name.
18621 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18625 ## ----------------------------------- ##
18626 ## Main body of $CONFIG_STATUS script. ##
18627 ## ----------------------------------- ##
18629 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18632 # Save the log message, to keep $0 and so on meaningful, and to
18633 # report actual input values of CONFIG_FILES etc. instead of their
18634 # values after options handling.
18636 This file was extended by xf86-video-vesa $as_me 2.3.2, which was
18637 generated by GNU Autoconf 2.68. Invocation command line was
18639 CONFIG_FILES = $CONFIG_FILES
18640 CONFIG_HEADERS = $CONFIG_HEADERS
18641 CONFIG_LINKS = $CONFIG_LINKS
18642 CONFIG_COMMANDS = $CONFIG_COMMANDS
18645 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18650 case $ac_config_files in *"
18651 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18654 case $ac_config_headers in *"
18655 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18660 # Files that config.status was made for.
18661 config_files="$ac_config_files"
18662 config_headers="$ac_config_headers"
18663 config_commands="$ac_config_commands"
18667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18669 \`$as_me' instantiates files and other configuration actions
18670 from templates according to the current configuration. Unless the files
18671 and actions are specified as TAGs, all are instantiated by default.
18673 Usage: $0 [OPTION]... [TAG]...
18675 -h, --help print this help, then exit
18676 -V, --version print version number and configuration settings, then exit
18677 --config print configuration, then exit
18678 -q, --quiet, --silent
18679 do not print progress messages
18680 -d, --debug don't remove temporary files
18681 --recheck update $as_me by reconfiguring in the same conditions
18682 --file=FILE[:TEMPLATE]
18683 instantiate the configuration file FILE
18684 --header=FILE[:TEMPLATE]
18685 instantiate the configuration header FILE
18687 Configuration files:
18690 Configuration headers:
18693 Configuration commands:
18696 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18700 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18702 xf86-video-vesa config.status 2.3.2
18703 configured by $0, generated by GNU Autoconf 2.68,
18704 with options \\"\$ac_cs_config\\"
18706 Copyright (C) 2010 Free Software Foundation, Inc.
18707 This config.status script is free software; the Free Software Foundation
18708 gives unlimited permission to copy, distribute and modify it."
18715 test -n "\$AWK" || AWK=awk
18718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18719 # The default lists apply if the user does not specify any file.
18725 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18726 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18730 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18742 # Handling of the options.
18743 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18745 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18746 $as_echo "$ac_cs_version"; exit ;;
18747 --config | --confi | --conf | --con | --co | --c )
18748 $as_echo "$ac_cs_config"; exit ;;
18749 --debug | --debu | --deb | --de | --d | -d )
18751 --file | --fil | --fi | --f )
18754 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18755 '') as_fn_error $? "missing file argument" ;;
18757 as_fn_append CONFIG_FILES " '$ac_optarg'"
18758 ac_need_defaults=false;;
18759 --header | --heade | --head | --hea )
18762 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18764 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18765 ac_need_defaults=false;;
18767 # Conflict between --help and --header
18768 as_fn_error $? "ambiguous option: \`$1'
18769 Try \`$0 --help' for more information.";;
18770 --help | --hel | -h )
18771 $as_echo "$ac_cs_usage"; exit ;;
18772 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18773 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18776 # This is an error.
18777 -*) as_fn_error $? "unrecognized option: \`$1'
18778 Try \`$0 --help' for more information." ;;
18780 *) as_fn_append ac_config_targets " $1"
18781 ac_need_defaults=false ;;
18787 ac_configure_extra_args=
18789 if $ac_cs_silent; then
18791 ac_configure_extra_args="$ac_configure_extra_args --silent"
18795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18796 if \$ac_cs_recheck; then
18797 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18799 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18800 CONFIG_SHELL='$SHELL'
18801 export CONFIG_SHELL
18806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18810 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18811 ## Running $as_me. ##
18817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18821 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18824 # The HP-UX ksh and POSIX shell print the target directory to stdout
18825 # if CDPATH is set.
18826 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18828 sed_quote_subst='$sed_quote_subst'
18829 double_quote_subst='$double_quote_subst'
18830 delay_variable_subst='$delay_variable_subst'
18831 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18832 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18833 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18834 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18835 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18836 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18837 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18838 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18839 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18840 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18841 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18842 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18843 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18844 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18845 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18846 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18847 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18848 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18849 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18850 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18851 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18852 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18853 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18854 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18855 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18856 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18857 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18858 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18859 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18860 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18861 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18862 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18863 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18864 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18865 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18866 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18867 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18868 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18869 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18870 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18871 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18872 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18873 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18874 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18875 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18876 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18877 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18878 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18879 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18880 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18881 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18882 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18883 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18884 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18885 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18886 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18887 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"`'
18888 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18889 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18890 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18891 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18892 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18893 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18894 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18895 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18896 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18897 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18898 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18899 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18900 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18901 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18902 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18903 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18904 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18905 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18906 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18907 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18908 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18909 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18910 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18911 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18912 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18913 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18914 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18915 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18916 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18917 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18918 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18919 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18920 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18921 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18922 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18923 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18924 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18925 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18926 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18927 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18928 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18929 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18930 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18931 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18932 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18933 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18934 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18935 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18936 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18937 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18938 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18939 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18940 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18941 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18942 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18943 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18944 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18945 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18946 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18947 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18948 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18949 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18950 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18951 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18952 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18953 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18954 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18955 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18956 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18957 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18958 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18959 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18960 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18963 LTCFLAGS='$LTCFLAGS'
18964 compiler='$compiler_DEFAULT'
18966 # A function that is used when there is no print builtin or printf.
18967 func_fallback_echo ()
18969 eval 'cat <<_LTECHO_EOF
18974 # Quote evaled strings.
18989 deplibs_check_method \
18994 sharedlib_from_linklib_cmd \
18997 archiver_list_spec \
19003 lt_cv_sys_global_symbol_pipe \
19004 lt_cv_sys_global_symbol_to_cdecl \
19005 lt_cv_sys_global_symbol_to_c_name_address \
19006 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19007 nm_file_list_spec \
19008 lt_prog_compiler_no_builtin_flag \
19009 lt_prog_compiler_pic \
19010 lt_prog_compiler_wl \
19011 lt_prog_compiler_static \
19012 lt_cv_prog_compiler_c_o \
19021 export_dynamic_flag_spec \
19022 whole_archive_flag_spec \
19023 compiler_needs_object \
19025 allow_undefined_flag \
19026 no_undefined_flag \
19027 hardcode_libdir_flag_spec \
19028 hardcode_libdir_separator \
19032 variables_saved_for_relink \
19034 library_names_spec \
19036 install_override_mode \
19040 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19041 *[\\\\\\\`\\"\\\$]*)
19042 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19045 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19050 # Double-quote double-evaled strings.
19051 for var in reload_cmds \
19052 old_postinstall_cmds \
19053 old_postuninstall_cmds \
19055 extract_expsyms_cmds \
19056 old_archive_from_new_cmds \
19057 old_archive_from_expsyms_cmds \
19059 archive_expsym_cmds \
19061 module_expsym_cmds \
19062 export_symbols_cmds \
19066 postuninstall_cmds \
19068 sys_lib_search_path_spec \
19069 sys_lib_dlsearch_path_spec; do
19070 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19071 *[\\\\\\\`\\"\\\$]*)
19072 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19075 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19080 ac_aux_dir='$ac_aux_dir'
19081 xsi_shell='$xsi_shell'
19082 lt_shell_append='$lt_shell_append'
19084 # See if we are running on zsh, and set the options which allow our
19085 # commands through without removal of \ escapes INIT.
19086 if test -n "\${ZSH_VERSION+set}" ; then
19087 setopt NO_GLOB_SUBST
19093 TIMESTAMP='$TIMESTAMP'
19102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19104 # Handling of arguments.
19105 for ac_config_target in $ac_config_targets
19107 case $ac_config_target in
19108 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19109 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19110 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19111 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19112 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19113 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19115 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19120 # If the user did not use the arguments to specify the items to instantiate,
19121 # then the envvar interface is used. Set only those that are not.
19122 # We use the long form for the default assignment because of an extremely
19123 # bizarre bug on SunOS 4.1.3.
19124 if $ac_need_defaults; then
19125 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19126 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19127 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19130 # Have a temporary directory for convenience. Make it in the build tree
19131 # simply because there is no reason against having it here, and in addition,
19132 # creating and moving files from /tmp can sometimes cause problems.
19133 # Hook for its removal unless debugging.
19134 # Note that there is a small window in which the directory will not be cleaned:
19135 # after its creation but before its name has been assigned to `$tmp'.
19139 trap 'exit_status=$?
19140 : "${ac_tmp:=$tmp}"
19141 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19143 trap 'as_fn_exit 1' 1 2 13 15
19145 # Create a (secure) tmp directory for tmp files.
19148 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19152 tmp=./conf$$-$RANDOM
19153 (umask 077 && mkdir "$tmp")
19154 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19157 # Set up the scripts for CONFIG_FILES section.
19158 # No need to generate them if there are no CONFIG_FILES.
19159 # This happens for instance with `./config.status config.h'.
19160 if test -n "$CONFIG_FILES"; then
19163 ac_cr=`echo X | tr X '\015'`
19164 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19165 # But we know of no other shell where ac_cr would be empty at this
19166 # point, so we can use a bashism as a fallback.
19167 if test "x$ac_cr" = x; then
19168 eval ac_cr=\$\'\\r\'
19170 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19171 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19174 ac_cs_awk_cr=$ac_cr
19177 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19182 echo "cat >conf$$subs.awk <<_ACEOF" &&
19183 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19185 } >conf$$subs.sh ||
19186 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19187 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19189 for ac_last_try in false false false false false :; do
19190 . ./conf$$subs.sh ||
19191 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19193 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19194 if test $ac_delim_n = $ac_delim_num; then
19196 elif $ac_last_try; then
19197 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19199 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19202 rm -f conf$$subs.sh
19204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19205 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19209 s/^/S["/; s/!.*/"]=/
19219 s/\(.\{148\}\)..*/\1/
19221 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19226 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19233 s/\(.\{148\}\)..*/\1/
19235 s/["\\]/\\&/g; s/^/"/; s/$/"/
19239 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19244 ' <conf$$subs.awk | sed '
19249 ' >>$CONFIG_STATUS || ac_write_fail=1
19250 rm -f conf$$subs.awk
19251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19253 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19254 for (key in S) S_is_set[key] = 1
19260 nfields = split(line, field, "@")
19262 len = length(field[1])
19263 for (i = 2; i < nfields; i++) {
19265 keylen = length(key)
19266 if (S_is_set[key]) {
19268 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19269 len += length(value) + length(field[++i])
19280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19281 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19282 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19285 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19286 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19289 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19290 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19291 # trailing colons and then remove the whole line if VPATH becomes empty
19292 # (actually we leave an empty line to preserve line numbers).
19293 if test "x$srcdir" = x.; then
19294 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19313 fi # test -n "$CONFIG_FILES"
19315 # Set up the scripts for CONFIG_HEADERS section.
19316 # No need to generate them if there are no CONFIG_HEADERS.
19317 # This happens for instance with `./config.status Makefile'.
19318 if test -n "$CONFIG_HEADERS"; then
19319 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19323 # Transform confdefs.h into an awk script `defines.awk', embedded as
19324 # here-document in config.status, that substitutes the proper values into
19325 # config.h.in to produce config.h.
19327 # Create a delimiter string that does not exist in confdefs.h, to ease
19328 # handling of long lines.
19330 for ac_last_try in false false :; do
19331 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19332 if test -z "$ac_tt"; then
19334 elif $ac_last_try; then
19335 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19337 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19341 # For the awk script, D is an array of macro values keyed by name,
19342 # likewise P contains macro parameters if any. Preserve backslash
19343 # newline sequences.
19345 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19347 s/.\{148\}/&'"$ac_delim"'/g
19350 s/^[ ]*#[ ]*define[ ][ ]*/ /
19357 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19359 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19363 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19364 D["\1"]=" \3\\\\\\n"\\/p
19366 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19371 s/.\{148\}/&'"$ac_delim"'/g
19376 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19379 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19381 ' <confdefs.h | sed '
19382 s/'"$ac_delim"'/"\\\
19383 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19386 for (key in D) D_is_set[key] = 1
19389 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19391 split(line, arg, " ")
19392 if (arg[1] == "#") {
19396 defundef = substr(arg[1], 2)
19399 split(mac1, mac2, "(") #)
19401 prefix = substr(line, 1, index(line, defundef) - 1)
19402 if (D_is_set[macro]) {
19403 # Preserve the white space surrounding the "#".
19404 print prefix "define", macro P[macro] D[macro]
19407 # Replace #undef with comments. This is necessary, for example,
19408 # in the case of _POSIX_SOURCE, which is predefined and required
19409 # on some systems where configure will not decide to define it.
19410 if (defundef == "undef") {
19411 print "/*", prefix defundef, macro, "*/"
19419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19420 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19421 fi # test -n "$CONFIG_HEADERS"
19424 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19429 :[FHLC]) ac_mode=$ac_tag; continue;;
19431 case $ac_mode$ac_tag in
19433 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19434 :[FH]-) ac_tag=-:-;;
19435 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19452 -) ac_f="$ac_tmp/stdin";;
19453 *) # Look for the file first in the build tree, then in the source tree
19454 # (if the path is not absolute). The absolute path cannot be DOS-style,
19455 # because $ac_f cannot contain `:'.
19459 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19461 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19463 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19464 as_fn_append ac_file_inputs " '$ac_f'"
19467 # Let's still pretend it is `configure' which instantiates (i.e., don't
19468 # use $as_me), people would be surprised to read:
19469 # /* config.h. Generated by config.status. */
19470 configure_input='Generated from '`
19471 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19473 if test x"$ac_file" != x-; then
19474 configure_input="$ac_file. $configure_input"
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19476 $as_echo "$as_me: creating $ac_file" >&6;}
19478 # Neutralize special characters interpreted by sed in replacement strings.
19479 case $configure_input in #(
19480 *\&* | *\|* | *\\* )
19481 ac_sed_conf_input=`$as_echo "$configure_input" |
19482 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19483 *) ac_sed_conf_input=$configure_input;;
19487 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19488 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19493 ac_dir=`$as_dirname -- "$ac_file" ||
19494 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19495 X"$ac_file" : 'X\(//\)[^/]' \| \
19496 X"$ac_file" : 'X\(//\)$' \| \
19497 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19498 $as_echo X"$ac_file" |
19499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19503 /^X\(\/\/\)[^/].*/{
19516 as_dir="$ac_dir"; as_fn_mkdir_p
19520 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19522 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19523 # A ".." for each directory in $ac_dir_suffix.
19524 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19525 case $ac_top_builddir_sub in
19526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19530 ac_abs_top_builddir=$ac_pwd
19531 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19532 # for backward compatibility:
19533 ac_top_builddir=$ac_top_build_prefix
19536 .) # We are building in place.
19538 ac_top_srcdir=$ac_top_builddir_sub
19539 ac_abs_top_srcdir=$ac_pwd ;;
19540 [\\/]* | ?:[\\/]* ) # Absolute name.
19541 ac_srcdir=$srcdir$ac_dir_suffix;
19542 ac_top_srcdir=$srcdir
19543 ac_abs_top_srcdir=$srcdir ;;
19544 *) # Relative name.
19545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19546 ac_top_srcdir=$ac_top_build_prefix$srcdir
19547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19549 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19559 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19560 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19562 ac_MKDIR_P=$MKDIR_P
19564 [\\/$]* | ?:[\\/]* ) ;;
19565 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19570 # If the template does not know about datarootdir, expand it.
19571 # FIXME: This hack should be removed a few years after 2.60.
19572 ac_datarootdir_hack=; ac_datarootdir_seen=
19583 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19584 *datarootdir*) ac_datarootdir_seen=yes;;
19585 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19587 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19590 ac_datarootdir_hack='
19591 s&@datadir@&$datadir&g
19592 s&@docdir@&$docdir&g
19593 s&@infodir@&$infodir&g
19594 s&@localedir@&$localedir&g
19595 s&@mandir@&$mandir&g
19596 s&\\\${datarootdir}&$datarootdir&g' ;;
19600 # Neutralize VPATH when `$srcdir' = `.'.
19601 # Shell code in configure.ac might set extrasub.
19602 # FIXME: do we really want to maintain this feature?
19603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19604 ac_sed_extra="$ac_vpsub
19607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19609 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19610 s|@configure_input@|$ac_sed_conf_input|;t t
19611 s&@top_builddir@&$ac_top_builddir_sub&;t t
19612 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19613 s&@srcdir@&$ac_srcdir&;t t
19614 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19615 s&@top_srcdir@&$ac_top_srcdir&;t t
19616 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19617 s&@builddir@&$ac_builddir&;t t
19618 s&@abs_builddir@&$ac_abs_builddir&;t t
19619 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19620 s&@INSTALL@&$ac_INSTALL&;t t
19621 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19622 $ac_datarootdir_hack
19624 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19625 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19627 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19628 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19629 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19630 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19632 which seems to be undefined. Please make sure it is defined" >&5
19633 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19634 which seems to be undefined. Please make sure it is defined" >&2;}
19636 rm -f "$ac_tmp/stdin"
19638 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19639 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19641 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19647 if test x"$ac_file" != x-; then
19649 $as_echo "/* $configure_input */" \
19650 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19651 } >"$ac_tmp/config.h" \
19652 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19653 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19655 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19658 mv "$ac_tmp/config.h" "$ac_file" \
19659 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19662 $as_echo "/* $configure_input */" \
19663 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19664 || as_fn_error $? "could not create -" "$LINENO" 5
19666 # Compute "$ac_file"'s index in $config_headers.
19669 for _am_header in $config_headers :; do
19670 case $_am_header in
19671 $_am_arg | $_am_arg:* )
19674 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19677 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19678 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19679 X"$_am_arg" : 'X\(//\)[^/]' \| \
19680 X"$_am_arg" : 'X\(//\)$' \| \
19681 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19682 $as_echo X"$_am_arg" |
19683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19687 /^X\(\/\/\)[^/].*/{
19699 s/.*/./; q'`/stamp-h$_am_stamp_count
19702 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19703 $as_echo "$as_me: executing $ac_file commands" >&6;}
19708 case $ac_file$ac_mode in
19709 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19710 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19711 # are listed without --file. Let's play safe and only enable the eval
19712 # if we detect the quoting.
19713 case $CONFIG_FILES in
19714 *\'*) eval set x "$CONFIG_FILES" ;;
19715 *) set x $CONFIG_FILES ;;
19720 # Strip MF so we end up with the name of the file.
19721 mf=`echo "$mf" | sed -e 's/:.*$//'`
19722 # Check whether this is an Automake generated Makefile or not.
19723 # We used to match only the files named `Makefile.in', but
19724 # some people rename them; so instead we look at the file content.
19725 # Grep'ing the first line is not enough: some people post-process
19726 # each Makefile.in and add a new line on top of each file to say so.
19727 # Grep'ing the whole file is not good either: AIX grep has a line
19728 # limit of 2048, but all sed's we know have understand at least 4000.
19729 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19730 dirpart=`$as_dirname -- "$mf" ||
19731 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19732 X"$mf" : 'X\(//\)[^/]' \| \
19733 X"$mf" : 'X\(//\)$' \| \
19734 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19740 /^X\(\/\/\)[^/].*/{
19756 # Extract the definition of DEPDIR, am__include, and am__quote
19757 # from the Makefile without running `make'.
19758 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19759 test -z "$DEPDIR" && continue
19760 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19761 test -z "am__include" && continue
19762 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19763 # When using ansi2knr, U may be empty or an underscore; expand it
19764 U=`sed -n 's/^U = //p' < "$mf"`
19765 # Find all dependency output files, they are included files with
19766 # $(DEPDIR) in their names. We invoke sed twice because it is the
19767 # simplest approach to changing $(DEPDIR) to its actual value in the
19769 for file in `sed -n "
19770 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19771 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19772 # Make sure the directory exists.
19773 test -f "$dirpart/$file" && continue
19774 fdir=`$as_dirname -- "$file" ||
19775 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19776 X"$file" : 'X\(//\)[^/]' \| \
19777 X"$file" : 'X\(//\)$' \| \
19778 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19779 $as_echo X"$file" |
19780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19784 /^X\(\/\/\)[^/].*/{
19797 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19798 # echo "creating $dirpart/$file"
19799 echo '# dummy' > "$dirpart/$file"
19806 # See if we are running on zsh, and set the options which allow our
19807 # commands through without removal of \ escapes.
19808 if test -n "${ZSH_VERSION+set}" ; then
19809 setopt NO_GLOB_SUBST
19812 cfgfile="${ofile}T"
19813 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19816 cat <<_LT_EOF >> "$cfgfile"
19819 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19820 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19821 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19822 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19824 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19825 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19827 # Written by Gordon Matzigkeit, 1996
19829 # This file is part of GNU Libtool.
19831 # GNU Libtool is free software; you can redistribute it and/or
19832 # modify it under the terms of the GNU General Public License as
19833 # published by the Free Software Foundation; either version 2 of
19834 # the License, or (at your option) any later version.
19836 # As a special exception to the GNU General Public License,
19837 # if you distribute this file as part of a program or library that
19838 # is built using GNU Libtool, you may include this file under the
19839 # same distribution terms that you use for the rest of that program.
19841 # GNU Libtool is distributed in the hope that it will be useful,
19842 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19843 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19844 # GNU General Public License for more details.
19846 # You should have received a copy of the GNU General Public License
19847 # along with GNU Libtool; see the file COPYING. If not, a copy
19848 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19849 # obtained by writing to the Free Software Foundation, Inc.,
19850 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19853 # The names of the tagged configurations supported by this script.
19856 # ### BEGIN LIBTOOL CONFIG
19858 # Whether or not to build static libraries.
19859 build_old_libs=$enable_static
19861 # Which release of libtool.m4 was used?
19862 macro_version=$macro_version
19863 macro_revision=$macro_revision
19865 # Whether or not to build shared libraries.
19866 build_libtool_libs=$enable_shared
19868 # What type of objects to build.
19871 # Whether or not to optimize for fast installation.
19872 fast_install=$enable_fast_install
19874 # Shell to use when invoking shell scripts.
19877 # An echo program that protects backslashes.
19880 # The PATH separator for the build system.
19881 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19884 host_alias=$host_alias
19888 # The build system.
19889 build_alias=$build_alias
19893 # A sed program that does not truncate output.
19896 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19897 Xsed="\$SED -e 1s/^X//"
19899 # A grep program that handles long lines.
19905 # A literal string matcher.
19908 # A BSD- or MS-compatible name lister.
19911 # Whether we need soft or hard links.
19914 # What is the maximum length of a command?
19915 max_cmd_len=$max_cmd_len
19917 # Object file suffix (normally "o").
19920 # Executable file suffix (normally "").
19923 # whether the shell understands "unset".
19926 # turn spaces into newlines.
19929 # turn newlines into spaces.
19932 # convert \$build file names to \$host format.
19933 to_host_file_cmd=$lt_cv_to_host_file_cmd
19935 # convert \$build files to toolchain format.
19936 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19938 # An object symbol dumper.
19939 OBJDUMP=$lt_OBJDUMP
19941 # Method to check whether dependent libraries are shared objects.
19942 deplibs_check_method=$lt_deplibs_check_method
19944 # Command to use when deplibs_check_method = "file_magic".
19945 file_magic_cmd=$lt_file_magic_cmd
19947 # How to find potential files when deplibs_check_method = "file_magic".
19948 file_magic_glob=$lt_file_magic_glob
19950 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19951 want_nocaseglob=$lt_want_nocaseglob
19953 # DLL creation program.
19954 DLLTOOL=$lt_DLLTOOL
19956 # Command to associate shared and link libraries.
19957 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19962 # Flags to create an archive.
19963 AR_FLAGS=$lt_AR_FLAGS
19965 # How to feed a file listing to the archiver.
19966 archiver_list_spec=$lt_archiver_list_spec
19968 # A symbol stripping program.
19971 # Commands used to install an old-style archive.
19973 old_postinstall_cmds=$lt_old_postinstall_cmds
19974 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19976 # Whether to use a lock for old archive extraction.
19977 lock_old_archive_extraction=$lock_old_archive_extraction
19982 # LTCC compiler flags.
19983 LTCFLAGS=$lt_CFLAGS
19985 # Take the output of nm and produce a listing of raw symbols and C names.
19986 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19988 # Transform the output of nm in a proper C declaration.
19989 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19991 # Transform the output of nm in a C name address pair.
19992 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19994 # Transform the output of nm in a C name address pair when lib prefix is needed.
19995 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19997 # Specify filename containing input files for \$NM.
19998 nm_file_list_spec=$lt_nm_file_list_spec
20000 # The root where to search for dependent libraries,and in which our libraries should be installed.
20001 lt_sysroot=$lt_sysroot
20003 # The name of the directory that contains temporary libtool files.
20006 # Used to examine libraries when file_magic_cmd begins with "file".
20007 MAGIC_CMD=$MAGIC_CMD
20009 # Must we lock files when doing compilation?
20010 need_locks=$lt_need_locks
20013 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20015 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20016 DSYMUTIL=$lt_DSYMUTIL
20018 # Tool to change global to local symbols on Mac OS X.
20021 # Tool to manipulate fat objects and archives on Mac OS X.
20024 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20027 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20028 OTOOL64=$lt_OTOOL64
20030 # Old archive suffix (normally "a").
20033 # Shared library suffix (normally ".so").
20034 shrext_cmds=$lt_shrext_cmds
20036 # The commands to extract the exported symbol list from a shared archive.
20037 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20039 # Variables whose values should be saved in libtool wrapper scripts and
20040 # restored at link time.
20041 variables_saved_for_relink=$lt_variables_saved_for_relink
20043 # Do we need the "lib" prefix for modules?
20044 need_lib_prefix=$need_lib_prefix
20046 # Do we need a version for libraries?
20047 need_version=$need_version
20049 # Library versioning type.
20050 version_type=$version_type
20052 # Shared library runtime path variable.
20053 runpath_var=$runpath_var
20055 # Shared library path variable.
20056 shlibpath_var=$shlibpath_var
20058 # Is shlibpath searched before the hard-coded library search path?
20059 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20061 # Format of library name prefix.
20062 libname_spec=$lt_libname_spec
20064 # List of archive names. First name is the real one, the rest are links.
20065 # The last name is the one that the linker finds with -lNAME
20066 library_names_spec=$lt_library_names_spec
20068 # The coded name of the library, if different from the real name.
20069 soname_spec=$lt_soname_spec
20071 # Permission mode override for installation of shared libraries.
20072 install_override_mode=$lt_install_override_mode
20074 # Command to use after installation of a shared archive.
20075 postinstall_cmds=$lt_postinstall_cmds
20077 # Command to use after uninstallation of a shared archive.
20078 postuninstall_cmds=$lt_postuninstall_cmds
20080 # Commands used to finish a libtool library installation in a directory.
20081 finish_cmds=$lt_finish_cmds
20083 # As "finish_cmds", except a single script fragment to be evaled but
20085 finish_eval=$lt_finish_eval
20087 # Whether we should hardcode library paths into libraries.
20088 hardcode_into_libs=$hardcode_into_libs
20090 # Compile-time system search path for libraries.
20091 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20093 # Run-time system search path for libraries.
20094 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20096 # Whether dlopen is supported.
20097 dlopen_support=$enable_dlopen
20099 # Whether dlopen of programs is supported.
20100 dlopen_self=$enable_dlopen_self
20102 # Whether dlopen of statically linked programs is supported.
20103 dlopen_self_static=$enable_dlopen_self_static
20105 # Commands to strip libraries.
20106 old_striplib=$lt_old_striplib
20107 striplib=$lt_striplib
20110 # The linker used to build libraries.
20113 # How to create reloadable object files.
20114 reload_flag=$lt_reload_flag
20115 reload_cmds=$lt_reload_cmds
20117 # Commands used to build an old-style archive.
20118 old_archive_cmds=$lt_old_archive_cmds
20120 # A language specific compiler.
20123 # Is the compiler the GNU compiler?
20126 # Compiler flag to turn off builtin functions.
20127 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20129 # Additional compiler flags for building library objects.
20130 pic_flag=$lt_lt_prog_compiler_pic
20132 # How to pass a linker flag through the compiler.
20133 wl=$lt_lt_prog_compiler_wl
20135 # Compiler flag to prevent dynamic linking.
20136 link_static_flag=$lt_lt_prog_compiler_static
20138 # Does compiler simultaneously support -c and -o options?
20139 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20141 # Whether or not to add -lc for building shared libraries.
20142 build_libtool_need_lc=$archive_cmds_need_lc
20144 # Whether or not to disallow shared libs when runtime libs are static.
20145 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20147 # Compiler flag to allow reflexive dlopens.
20148 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20150 # Compiler flag to generate shared objects directly from archives.
20151 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20153 # Whether the compiler copes with passing no objects directly.
20154 compiler_needs_object=$lt_compiler_needs_object
20156 # Create an old-style archive from a shared archive.
20157 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20159 # Create a temporary old-style archive to link instead of a shared archive.
20160 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20162 # Commands used to build a shared archive.
20163 archive_cmds=$lt_archive_cmds
20164 archive_expsym_cmds=$lt_archive_expsym_cmds
20166 # Commands used to build a loadable module if different from building
20167 # a shared archive.
20168 module_cmds=$lt_module_cmds
20169 module_expsym_cmds=$lt_module_expsym_cmds
20171 # Whether we are building with GNU ld or not.
20172 with_gnu_ld=$lt_with_gnu_ld
20174 # Flag that allows shared libraries with undefined symbols to be built.
20175 allow_undefined_flag=$lt_allow_undefined_flag
20177 # Flag that enforces no undefined symbols.
20178 no_undefined_flag=$lt_no_undefined_flag
20180 # Flag to hardcode \$libdir into a binary during linking.
20181 # This must work even if \$libdir does not exist
20182 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20184 # Whether we need a single "-rpath" flag with a separated argument.
20185 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20187 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20188 # DIR into the resulting binary.
20189 hardcode_direct=$hardcode_direct
20191 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20192 # DIR into the resulting binary and the resulting library dependency is
20193 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20194 # library is relocated.
20195 hardcode_direct_absolute=$hardcode_direct_absolute
20197 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20198 # into the resulting binary.
20199 hardcode_minus_L=$hardcode_minus_L
20201 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20202 # into the resulting binary.
20203 hardcode_shlibpath_var=$hardcode_shlibpath_var
20205 # Set to "yes" if building a shared library automatically hardcodes DIR
20206 # into the library and all subsequent libraries and executables linked
20208 hardcode_automatic=$hardcode_automatic
20210 # Set to yes if linker adds runtime paths of dependent libraries
20211 # to runtime path list.
20212 inherit_rpath=$inherit_rpath
20214 # Whether libtool must link a program against all its dependency libraries.
20215 link_all_deplibs=$link_all_deplibs
20217 # Set to "yes" if exported symbols are required.
20218 always_export_symbols=$always_export_symbols
20220 # The commands to list exported symbols.
20221 export_symbols_cmds=$lt_export_symbols_cmds
20223 # Symbols that should not be listed in the preloaded symbols.
20224 exclude_expsyms=$lt_exclude_expsyms
20226 # Symbols that must always be exported.
20227 include_expsyms=$lt_include_expsyms
20229 # Commands necessary for linking programs (against libraries) with templates.
20230 prelink_cmds=$lt_prelink_cmds
20232 # Commands necessary for finishing linking programs.
20233 postlink_cmds=$lt_postlink_cmds
20235 # Specify filename containing input files.
20236 file_list_spec=$lt_file_list_spec
20238 # How to hardcode a shared library path into an executable.
20239 hardcode_action=$hardcode_action
20241 # ### END LIBTOOL CONFIG
20247 cat <<\_LT_EOF >> "$cfgfile"
20248 # AIX sometimes has problems with the GCC collect2 program. For some
20249 # reason, if we set the COLLECT_NAMES environment variable, the problems
20250 # vanish in a puff of smoke.
20251 if test "X${COLLECT_NAMES+set}" != Xset; then
20253 export COLLECT_NAMES
20260 ltmain="$ac_aux_dir/ltmain.sh"
20263 # We use sed instead of cat because bash on DJGPP gets confused if
20264 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20265 # text mode, it properly converts lines to CR/LF. This bash problem
20266 # is reportedly fixed, but why not run on old versions too?
20267 sed '$q' "$ltmain" >> "$cfgfile" \
20268 || (rm -f "$cfgfile"; exit 1)
20270 if test x"$xsi_shell" = xyes; then
20271 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20275 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20276 \ * ) func_dirname_result="${3}" ;;\
20278 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20279 && mv -f "$cfgfile.tmp" "$cfgfile" \
20280 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20281 test 0 -eq $? || _lt_function_replace_fail=:
20284 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20287 \ func_basename_result="${1##*/}"\
20288 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20289 && mv -f "$cfgfile.tmp" "$cfgfile" \
20290 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20291 test 0 -eq $? || _lt_function_replace_fail=:
20294 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20295 func_dirname_and_basename ()\
20298 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20299 \ * ) func_dirname_result="${3}" ;;\
20301 \ func_basename_result="${1##*/}"\
20302 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20303 && mv -f "$cfgfile.tmp" "$cfgfile" \
20304 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20305 test 0 -eq $? || _lt_function_replace_fail=:
20308 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20311 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20312 \ # positional parameters, so assign one to ordinary parameter first.\
20313 \ func_stripname_result=${3}\
20314 \ func_stripname_result=${func_stripname_result#"${1}"}\
20315 \ func_stripname_result=${func_stripname_result%"${2}"}\
20316 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20317 && mv -f "$cfgfile.tmp" "$cfgfile" \
20318 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20319 test 0 -eq $? || _lt_function_replace_fail=:
20322 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20323 func_split_long_opt ()\
20325 \ func_split_long_opt_name=${1%%=*}\
20326 \ func_split_long_opt_arg=${1#*=}\
20327 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20328 && mv -f "$cfgfile.tmp" "$cfgfile" \
20329 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20330 test 0 -eq $? || _lt_function_replace_fail=:
20333 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20334 func_split_short_opt ()\
20336 \ func_split_short_opt_arg=${1#??}\
20337 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20338 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20339 && mv -f "$cfgfile.tmp" "$cfgfile" \
20340 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20341 test 0 -eq $? || _lt_function_replace_fail=:
20344 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20348 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20349 \ *) func_lo2o_result=${1} ;;\
20351 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20352 && mv -f "$cfgfile.tmp" "$cfgfile" \
20353 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20354 test 0 -eq $? || _lt_function_replace_fail=:
20357 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20360 func_xform_result=${1%.*}.lo\
20361 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20362 && mv -f "$cfgfile.tmp" "$cfgfile" \
20363 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20364 test 0 -eq $? || _lt_function_replace_fail=:
20367 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20370 func_arith_result=$(( $* ))\
20371 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20372 && mv -f "$cfgfile.tmp" "$cfgfile" \
20373 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20374 test 0 -eq $? || _lt_function_replace_fail=:
20377 sed -e '/^func_len ()$/,/^} # func_len /c\
20380 func_len_result=${#1}\
20381 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20382 && mv -f "$cfgfile.tmp" "$cfgfile" \
20383 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20384 test 0 -eq $? || _lt_function_replace_fail=:
20388 if test x"$lt_shell_append" = xyes; then
20389 sed -e '/^func_append ()$/,/^} # func_append /c\
20392 eval "${1}+=\\${2}"\
20393 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20394 && mv -f "$cfgfile.tmp" "$cfgfile" \
20395 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20396 test 0 -eq $? || _lt_function_replace_fail=:
20399 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20400 func_append_quoted ()\
20402 \ func_quote_for_eval "${2}"\
20403 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20404 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20405 && mv -f "$cfgfile.tmp" "$cfgfile" \
20406 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20407 test 0 -eq $? || _lt_function_replace_fail=:
20410 # Save a `func_append' function call where possible by direct use of '+='
20411 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20412 && mv -f "$cfgfile.tmp" "$cfgfile" \
20413 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20414 test 0 -eq $? || _lt_function_replace_fail=:
20416 # Save a `func_append' function call even when '+=' is not available
20417 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20418 && mv -f "$cfgfile.tmp" "$cfgfile" \
20419 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20420 test 0 -eq $? || _lt_function_replace_fail=:
20423 if test x"$_lt_function_replace_fail" = x":"; then
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20425 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20429 mv -f "$cfgfile" "$ofile" ||
20430 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20441 ac_clean_files=$ac_clean_files_save
20443 test $ac_write_fail = 0 ||
20444 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20447 # configure is writing to config.log, and then calls config.status.
20448 # config.status does its own redirection, appending to config.log.
20449 # Unfortunately, on DOS this fails, as config.log is still kept open
20450 # by configure, so config.status won't be able to write to it; its
20451 # output is simply discarded. So we exec the FD to /dev/null,
20452 # effectively closing config.log, so it can be properly (re)opened and
20453 # appended to by config.status. When coming back to configure, we
20454 # need to make the FD available again.
20455 if test "$no_create" != yes; then
20457 ac_config_status_args=
20458 test "$silent" = yes &&
20459 ac_config_status_args="$ac_config_status_args --quiet"
20461 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20463 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20464 # would make configure fail if this is the last instruction.
20465 $ac_cs_success || as_fn_exit 1
20467 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20469 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}