2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXinerama 1.1.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
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
271 # Portably unset VAR.
274 { eval $1=; unset $1;}
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
298 # Create "$as_dir" as a directory, including parents if necessary.
303 -*) as_dir=./$as_dir;;
305 test -d "$as_dir" || eval $as_mkdir_p || {
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 test -d "$as_dir" && break
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
374 as_val=`expr "$@" || test $? -eq 1`
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
386 as_status=$1; test $as_status -eq 0 && as_status=1
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
468 # Exit status is that of the last command.
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
490 mkdir conf$$.dir 2>/dev/null
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
515 test -d ./-p && rmdir ./-p
519 if test -x / >/dev/null 2>&1; then
522 if ls -dL / >/dev/null 2>&1; then
529 if test -d "$1"; then
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
540 as_executable_p=$as_test_x
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548 SHELL=${CONFIG_SHELL-/bin/sh}
551 test -n "$DJDIR" || exec 7<&0 </dev/null
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
571 # Identity of this package.
572 PACKAGE_NAME='libXinerama'
573 PACKAGE_TARNAME='libXinerama'
574 PACKAGE_VERSION='1.1.2'
575 PACKAGE_STRING='libXinerama 1.1.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
698 MAINTAINER_MODE_FALSE
708 INSTALL_STRIP_PROGRAM
750 program_transform_name
763 enable_option_checking
764 enable_maintainer_mode
769 enable_dependency_tracking
773 enable_selective_werror
774 enable_strict_compilation
776 enable_malloc0returnsnull
779 ac_precious_vars='build_alias
795 # Initialize some variables set by options.
797 ac_init_version=false
798 ac_unrecognized_opts=
800 # The variables have the same names as the options, with
801 # dashes changed to underlines.
809 program_transform_name=s,x,x,
817 # Installation directory options.
818 # These are left unexpanded so users can "make install exec_prefix=/foo"
819 # and all the variables that are supposed to be based on exec_prefix
820 # by default will actually change.
821 # Use braces instead of parens because sh, perl, etc. also accept them.
822 # (The list follows the same order as the GNU Coding Standards.)
823 bindir='${exec_prefix}/bin'
824 sbindir='${exec_prefix}/sbin'
825 libexecdir='${exec_prefix}/libexec'
826 datarootdir='${prefix}/share'
827 datadir='${datarootdir}'
828 sysconfdir='${prefix}/etc'
829 sharedstatedir='${prefix}/com'
830 localstatedir='${prefix}/var'
831 includedir='${prefix}/include'
832 oldincludedir='/usr/include'
833 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
834 infodir='${datarootdir}/info'
839 libdir='${exec_prefix}/lib'
840 localedir='${datarootdir}/locale'
841 mandir='${datarootdir}/man'
847 # If the previous option needs an argument, assign it.
848 if test -n "$ac_prev"; then
849 eval $ac_prev=\$ac_option
855 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
860 # Accept the important Cygnus configure options, so we can diagnose typos.
862 case $ac_dashdash$ac_option in
866 -bindir | --bindir | --bindi | --bind | --bin | --bi)
868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
871 -build | --build | --buil | --bui | --bu)
872 ac_prev=build_alias ;;
873 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874 build_alias=$ac_optarg ;;
876 -cache-file | --cache-file | --cache-fil | --cache-fi \
877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878 ac_prev=cache_file ;;
879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881 cache_file=$ac_optarg ;;
884 cache_file=config.cache ;;
886 -datadir | --datadir | --datadi | --datad)
888 -datadir=* | --datadir=* | --datadi=* | --datad=*)
889 datadir=$ac_optarg ;;
891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892 | --dataroo | --dataro | --datar)
893 ac_prev=datarootdir ;;
894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896 datarootdir=$ac_optarg ;;
898 -disable-* | --disable-*)
899 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900 # Reject names that are not valid shell variable names.
901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902 as_fn_error $? "invalid feature name: $ac_useropt"
903 ac_useropt_orig=$ac_useropt
904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905 case $ac_user_opts in
909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910 ac_unrecognized_sep=', ';;
912 eval enable_$ac_useropt=no ;;
914 -docdir | --docdir | --docdi | --doc | --do)
916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
924 -enable-* | --enable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: $ac_useropt"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
938 eval enable_$ac_useropt=\$ac_optarg ;;
940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942 | --exec | --exe | --ex)
943 ac_prev=exec_prefix ;;
944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946 | --exec=* | --exe=* | --ex=*)
947 exec_prefix=$ac_optarg ;;
949 -gas | --gas | --ga | --g)
950 # Obsolete; use --with-gas.
953 -help | --help | --hel | --he | -h)
955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956 ac_init_help=recursive ;;
957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958 ac_init_help=short ;;
960 -host | --host | --hos | --ho)
961 ac_prev=host_alias ;;
962 -host=* | --host=* | --hos=* | --ho=*)
963 host_alias=$ac_optarg ;;
965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969 htmldir=$ac_optarg ;;
971 -includedir | --includedir | --includedi | --included | --include \
972 | --includ | --inclu | --incl | --inc)
973 ac_prev=includedir ;;
974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975 | --includ=* | --inclu=* | --incl=* | --inc=*)
976 includedir=$ac_optarg ;;
978 -infodir | --infodir | --infodi | --infod | --info | --inf)
980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981 infodir=$ac_optarg ;;
983 -libdir | --libdir | --libdi | --libd)
985 -libdir=* | --libdir=* | --libdi=* | --libd=*)
988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989 | --libexe | --libex | --libe)
990 ac_prev=libexecdir ;;
991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992 | --libexe=* | --libex=* | --libe=*)
993 libexecdir=$ac_optarg ;;
995 -localedir | --localedir | --localedi | --localed | --locale)
997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998 localedir=$ac_optarg ;;
1000 -localstatedir | --localstatedir | --localstatedi | --localstated \
1001 | --localstate | --localstat | --localsta | --localst | --locals)
1002 ac_prev=localstatedir ;;
1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005 localstatedir=$ac_optarg ;;
1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010 mandir=$ac_optarg ;;
1012 -nfp | --nfp | --nf)
1013 # Obsolete; use --without-fp.
1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017 | --no-cr | --no-c | -n)
1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026 | --oldin | --oldi | --old | --ol | --o)
1027 ac_prev=oldincludedir ;;
1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031 oldincludedir=$ac_optarg ;;
1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036 prefix=$ac_optarg ;;
1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039 | --program-pre | --program-pr | --program-p)
1040 ac_prev=program_prefix ;;
1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043 program_prefix=$ac_optarg ;;
1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046 | --program-suf | --program-su | --program-s)
1047 ac_prev=program_suffix ;;
1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050 program_suffix=$ac_optarg ;;
1052 -program-transform-name | --program-transform-name \
1053 | --program-transform-nam | --program-transform-na \
1054 | --program-transform-n | --program-transform- \
1055 | --program-transform | --program-transfor \
1056 | --program-transfo | --program-transf \
1057 | --program-trans | --program-tran \
1058 | --progr-tra | --program-tr | --program-t)
1059 ac_prev=program_transform_name ;;
1060 -program-transform-name=* | --program-transform-name=* \
1061 | --program-transform-nam=* | --program-transform-na=* \
1062 | --program-transform-n=* | --program-transform-=* \
1063 | --program-transform=* | --program-transfor=* \
1064 | --program-transfo=* | --program-transf=* \
1065 | --program-trans=* | --program-tran=* \
1066 | --progr-tra=* | --program-tr=* | --program-t=*)
1067 program_transform_name=$ac_optarg ;;
1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072 pdfdir=$ac_optarg ;;
1074 -psdir | --psdir | --psdi | --psd | --ps)
1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080 | -silent | --silent | --silen | --sile | --sil)
1083 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087 sbindir=$ac_optarg ;;
1089 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091 | --sharedst | --shareds | --shared | --share | --shar \
1093 ac_prev=sharedstatedir ;;
1094 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098 sharedstatedir=$ac_optarg ;;
1100 -site | --site | --sit)
1102 -site=* | --site=* | --sit=*)
1105 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108 srcdir=$ac_optarg ;;
1110 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111 | --syscon | --sysco | --sysc | --sys | --sy)
1112 ac_prev=sysconfdir ;;
1113 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115 sysconfdir=$ac_optarg ;;
1117 -target | --target | --targe | --targ | --tar | --ta | --t)
1118 ac_prev=target_alias ;;
1119 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120 target_alias=$ac_optarg ;;
1122 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1125 -version | --version | --versio | --versi | --vers | -V)
1126 ac_init_version=: ;;
1129 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 as_fn_error $? "invalid package name: $ac_useropt"
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1142 eval with_$ac_useropt=\$ac_optarg ;;
1144 -without-* | --without-*)
1145 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error $? "invalid package name: $ac_useropt"
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1158 eval with_$ac_useropt=no ;;
1161 # Obsolete; use --with-x.
1164 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165 | --x-incl | --x-inc | --x-in | --x-i)
1166 ac_prev=x_includes ;;
1167 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169 x_includes=$ac_optarg ;;
1171 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173 ac_prev=x_libraries ;;
1174 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176 x_libraries=$ac_optarg ;;
1178 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1179 Try \`$0 --help' for more information"
1183 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184 # Reject names that are not valid shell variable names.
1185 case $ac_envvar in #(
1186 '' | [0-9]* | *[!_$as_cr_alnum]* )
1187 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1189 eval $ac_envvar=\$ac_optarg
1190 export $ac_envvar ;;
1193 # FIXME: should be removed in autoconf 3.0.
1194 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1203 if test -n "$ac_prev"; then
1204 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205 as_fn_error $? "missing argument to $ac_option"
1208 if test -n "$ac_unrecognized_opts"; then
1209 case $enable_option_checking in
1211 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1212 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1216 # Check all directory arguments for consistency.
1217 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218 datadir sysconfdir sharedstatedir localstatedir includedir \
1219 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220 libdir localedir mandir
1222 eval ac_val=\$$ac_var
1223 # Remove trailing slashes.
1226 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227 eval $ac_var=\$ac_val;;
1229 # Be sure to have absolute directory names.
1231 [\\/$]* | ?:[\\/]* ) continue;;
1232 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1234 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1237 # There might be people who depend on the old broken behavior: `$host'
1238 # used to hold the argument of --host etc.
1239 # FIXME: To remove some day.
1242 target=$target_alias
1244 # FIXME: To remove some day.
1245 if test "x$host_alias" != x; then
1246 if test "x$build_alias" = x; then
1247 cross_compiling=maybe
1248 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1249 If a cross compiler is detected then cross compile mode will be used" >&2
1250 elif test "x$build_alias" != "x$host_alias"; then
1256 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1258 test "$silent" = yes && exec 6>/dev/null
1261 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1262 ac_ls_di=`ls -di .` &&
1263 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1264 as_fn_error $? "working directory cannot be determined"
1265 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1266 as_fn_error $? "pwd does not report name of working directory"
1269 # Find the source files, if location was not specified.
1270 if test -z "$srcdir"; then
1271 ac_srcdir_defaulted=yes
1272 # Try the directory containing this script, then the parent directory.
1273 ac_confdir=`$as_dirname -- "$as_myself" ||
1274 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275 X"$as_myself" : 'X\(//\)[^/]' \| \
1276 X"$as_myself" : 'X\(//\)$' \| \
1277 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1278 $as_echo X"$as_myself" |
1279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1301 ac_srcdir_defaulted=no
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1307 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1311 # When building in place, set srcdir=.
1312 if test "$ac_abs_confdir" = "$ac_pwd"; then
1315 # Remove unnecessary trailing slashes from srcdir.
1316 # Double slashes in file names in object file debugging info
1317 # mess up M-x gdb in Emacs.
1319 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321 for ac_var in $ac_precious_vars; do
1322 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_env_${ac_var}_value=\$${ac_var}
1324 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1329 # Report the --help message.
1331 if test "$ac_init_help" = "long"; then
1332 # Omit some internal or obsolete options to make the list less imposing.
1333 # This message is too long to be a string in the A/UX 3.1 sh.
1335 \`configure' configures libXinerama 1.1.2 to adapt to many kinds of systems.
1337 Usage: $0 [OPTION]... [VAR=VALUE]...
1339 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340 VAR=VALUE. See below for descriptions of some of the useful variables.
1342 Defaults for the options are specified in brackets.
1345 -h, --help display this help and exit
1346 --help=short display options specific to this package
1347 --help=recursive display the short help of all the included packages
1348 -V, --version display version information and exit
1349 -q, --quiet, --silent do not print \`checking ...' messages
1350 --cache-file=FILE cache test results in FILE [disabled]
1351 -C, --config-cache alias for \`--cache-file=config.cache'
1352 -n, --no-create do not create output files
1353 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1355 Installation directories:
1356 --prefix=PREFIX install architecture-independent files in PREFIX
1357 [$ac_default_prefix]
1358 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1361 By default, \`make install' will install all the files in
1362 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1363 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364 for instance \`--prefix=\$HOME'.
1366 For better control, use the options below.
1368 Fine tuning of the installation directories:
1369 --bindir=DIR user executables [EPREFIX/bin]
1370 --sbindir=DIR system admin executables [EPREFIX/sbin]
1371 --libexecdir=DIR program executables [EPREFIX/libexec]
1372 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1373 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1374 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1375 --libdir=DIR object code libraries [EPREFIX/lib]
1376 --includedir=DIR C header files [PREFIX/include]
1377 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1378 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1379 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1380 --infodir=DIR info documentation [DATAROOTDIR/info]
1381 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1382 --mandir=DIR man documentation [DATAROOTDIR/man]
1383 --docdir=DIR documentation root [DATAROOTDIR/doc/libXinerama]
1384 --htmldir=DIR html documentation [DOCDIR]
1385 --dvidir=DIR dvi documentation [DOCDIR]
1386 --pdfdir=DIR pdf documentation [DOCDIR]
1387 --psdir=DIR ps documentation [DOCDIR]
1393 --program-prefix=PREFIX prepend PREFIX to installed program names
1394 --program-suffix=SUFFIX append SUFFIX to installed program names
1395 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1398 --build=BUILD configure for building on BUILD [guessed]
1399 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1403 if test -n "$ac_init_help"; then
1404 case $ac_init_help in
1405 short | recursive ) echo "Configuration of libXinerama 1.1.2:";;
1410 --disable-option-checking ignore unrecognized --enable/--with options
1411 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1412 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1413 --enable-maintainer-mode enable make rules and dependencies not useful
1414 (and sometimes confusing) to the casual installer
1415 --enable-shared[=PKGS] build shared libraries [default=yes]
1416 --enable-static[=PKGS] build static libraries [default=yes]
1417 --enable-fast-install[=PKGS]
1418 optimize for fast installation [default=yes]
1419 --disable-dependency-tracking speeds up one-time build
1420 --enable-dependency-tracking do not reject slow dependency extractors
1421 --disable-libtool-lock avoid locking (might break parallel builds)
1422 --disable-selective-werror
1423 Turn off selective compiler errors. (default:
1425 --enable-strict-compilation
1426 Enable all warnings from compiler and make them
1427 errors (default: disabled)
1428 --enable-silent-rules less verbose build output (undo: `make V=1')
1429 --disable-silent-rules verbose build output (undo: `make V=0')
1430 --enable-malloc0returnsnull
1431 malloc(0) returns NULL (default: auto)
1434 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1435 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1436 --with-pic try to use only PIC/non-PIC objects [default=use
1438 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1439 --with-sysroot=DIR Search for dependent libraries within DIR
1440 (or the compiler's sysroot if not specified).
1441 --with-lint Use a lint-style source code checker (default:
1444 Some influential environment variables:
1445 CC C compiler command
1446 CFLAGS C compiler flags
1447 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1448 nonstandard directory <lib dir>
1449 LIBS libraries to pass to the linker, e.g. -l<library>
1450 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1451 you have headers in a nonstandard directory <include dir>
1453 PKG_CONFIG path to pkg-config utility
1455 C compiler flags for XINERAMA, overriding pkg-config
1457 linker flags for XINERAMA, overriding pkg-config
1458 LINT Path to a lint-style command
1459 LINT_FLAGS Flags for the lint-style command
1461 Use these variables to override the choices made by `configure' or to help
1462 it to find libraries and programs with nonstandard names/locations.
1464 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1469 if test "$ac_init_help" = "recursive"; then
1470 # If there are subdirs, report their specific --help.
1471 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1472 test -d "$ac_dir" ||
1473 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1478 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1481 # A ".." for each directory in $ac_dir_suffix.
1482 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1483 case $ac_top_builddir_sub in
1484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1488 ac_abs_top_builddir=$ac_pwd
1489 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490 # for backward compatibility:
1491 ac_top_builddir=$ac_top_build_prefix
1494 .) # We are building in place.
1496 ac_top_srcdir=$ac_top_builddir_sub
1497 ac_abs_top_srcdir=$ac_pwd ;;
1498 [\\/]* | ?:[\\/]* ) # Absolute name.
1499 ac_srcdir=$srcdir$ac_dir_suffix;
1500 ac_top_srcdir=$srcdir
1501 ac_abs_top_srcdir=$srcdir ;;
1503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504 ac_top_srcdir=$ac_top_build_prefix$srcdir
1505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1507 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1509 cd "$ac_dir" || { ac_status=$?; continue; }
1510 # Check for guested configure.
1511 if test -f "$ac_srcdir/configure.gnu"; then
1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514 elif test -f "$ac_srcdir/configure"; then
1516 $SHELL "$ac_srcdir/configure" --help=recursive
1518 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1520 cd "$ac_pwd" || { ac_status=$?; break; }
1524 test -n "$ac_init_help" && exit $ac_status
1525 if $ac_init_version; then
1527 libXinerama configure 1.1.2
1528 generated by GNU Autoconf 2.68
1530 Copyright (C) 2010 Free Software Foundation, Inc.
1531 This configure script is free software; the Free Software Foundation
1532 gives unlimited permission to copy, distribute and modify it.
1537 ## ------------------------ ##
1538 ## Autoconf initialization. ##
1539 ## ------------------------ ##
1541 # ac_fn_c_try_compile LINENO
1542 # --------------------------
1543 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1544 ac_fn_c_try_compile ()
1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547 rm -f conftest.$ac_objext
1548 if { { ac_try="$ac_compile"
1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551 *) ac_try_echo=$ac_try;;
1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554 $as_echo "$ac_try_echo"; } >&5
1555 (eval "$ac_compile") 2>conftest.err
1557 if test -s conftest.err; then
1558 grep -v '^ *+' conftest.err >conftest.er1
1559 cat conftest.er1 >&5
1560 mv -f conftest.er1 conftest.err
1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563 test $ac_status = 0; } && {
1564 test -z "$ac_c_werror_flag" ||
1565 test ! -s conftest.err
1566 } && test -s conftest.$ac_objext; then :
1569 $as_echo "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575 as_fn_set_status $ac_retval
1577 } # ac_fn_c_try_compile
1579 # ac_fn_c_try_link LINENO
1580 # -----------------------
1581 # Try to link conftest.$ac_ext, and return whether this succeeded.
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 rm -f conftest.$ac_objext conftest$ac_exeext
1586 if { { ac_try="$ac_link"
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 $as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_link") 2>conftest.err
1595 if test -s conftest.err; then
1596 grep -v '^ *+' conftest.err >conftest.er1
1597 cat conftest.er1 >&5
1598 mv -f conftest.er1 conftest.err
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; } && {
1602 test -z "$ac_c_werror_flag" ||
1603 test ! -s conftest.err
1604 } && test -s conftest$ac_exeext && {
1605 test "$cross_compiling" = yes ||
1606 $as_test_x conftest$ac_exeext
1610 $as_echo "$as_me: failed program was:" >&5
1611 sed 's/^/| /' conftest.$ac_ext >&5
1615 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1616 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1617 # interfere with the next link command; also delete a directory that is
1618 # left behind by Apple's compiler. We do this before executing the actions.
1619 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621 as_fn_set_status $ac_retval
1623 } # ac_fn_c_try_link
1625 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1626 # -------------------------------------------------------
1627 # Tests whether HEADER exists and can be compiled using the include files in
1628 # INCLUDES, setting the cache variable VAR accordingly.
1629 ac_fn_c_check_header_compile ()
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1633 $as_echo_n "checking for $2... " >&6; }
1634 if eval \${$3+:} false; then :
1635 $as_echo_n "(cached) " >&6
1637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638 /* end confdefs.h. */
1642 if ac_fn_c_try_compile "$LINENO"; then :
1647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1651 $as_echo "$ac_res" >&6; }
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 } # ac_fn_c_check_header_compile
1656 # ac_fn_c_try_cpp LINENO
1657 # ----------------------
1658 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 if { { ac_try="$ac_cpp conftest.$ac_ext"
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } > conftest.i && {
1678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1679 test ! -s conftest.err
1683 $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 as_fn_set_status $ac_retval
1693 # ac_fn_c_try_run LINENO
1694 # ----------------------
1695 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1696 # that executables *can* be run.
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 if { { ac_try="$ac_link"
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_link") 2>&5
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1711 { { case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_try") 2>&5
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; }; }; then :
1723 $as_echo "$as_me: program exited with status $ac_status" >&5
1724 $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1727 ac_retval=$ac_status
1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status $ac_retval
1735 # ac_fn_c_check_func LINENO FUNC VAR
1736 # ----------------------------------
1737 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1738 ac_fn_c_check_func ()
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742 $as_echo_n "checking for $2... " >&6; }
1743 if eval \${$3+:} false; then :
1744 $as_echo_n "(cached) " >&6
1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h. */
1748 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1750 #define $2 innocuous_$2
1752 /* System header to define __stub macros and hopefully few prototypes,
1753 which can conflict with char $2 (); below.
1754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1755 <limits.h> exists even on freestanding compilers. */
1758 # include <limits.h>
1760 # include <assert.h>
1765 /* Override any GCC internal prototype to avoid an error.
1766 Use char because int might match the return type of a GCC
1767 builtin and then its argument prototype would still apply. */
1772 /* The GNU C library defines this for functions which it implements
1773 to always fail with ENOSYS. Some functions are actually named
1774 something starting with __ and the normal name is an alias. */
1775 #if defined __stub_$2 || defined __stub___$2
1787 if ac_fn_c_try_link "$LINENO"; then :
1792 rm -f core conftest.err conftest.$ac_objext \
1793 conftest$ac_exeext conftest.$ac_ext
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 } # ac_fn_c_check_func
1802 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1803 # ---------------------------------------------
1804 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1806 ac_fn_c_check_decl ()
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 as_decl_name=`echo $2|sed 's/ *(.*//'`
1810 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1812 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1813 if eval \${$3+:} false; then :
1814 $as_echo_n "(cached) " >&6
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1822 #ifndef $as_decl_name
1824 (void) $as_decl_use;
1826 (void) $as_decl_name;
1834 if ac_fn_c_try_compile "$LINENO"; then :
1839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 } # ac_fn_c_check_decl
1847 cat >config.log <<_ACEOF
1848 This file contains any messages produced by compilers while
1849 running configure, to aid debugging if configure makes a mistake.
1851 It was created by libXinerama $as_me 1.1.2, which was
1852 generated by GNU Autoconf 2.68. Invocation command line was
1864 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1865 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1866 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1867 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1868 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1870 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1871 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1873 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1874 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1875 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1876 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1877 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1878 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1879 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 test -z "$as_dir" && as_dir=.
1888 $as_echo "PATH: $as_dir"
1904 # Keep a trace of the command line.
1905 # Strip out --no-create and --no-recursion so they do not pile up.
1906 # Strip out --silent because we don't want to record it for future runs.
1907 # Also quote any args containing shell meta-characters.
1908 # Make two passes to allow for proper duplicate-argument suppression.
1912 ac_must_keep_next=false
1918 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1919 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1920 | -silent | --silent | --silen | --sile | --sil)
1923 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1926 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1928 as_fn_append ac_configure_args1 " '$ac_arg'"
1929 if test $ac_must_keep_next = true; then
1930 ac_must_keep_next=false # Got value, back to normal.
1933 *=* | --config-cache | -C | -disable-* | --disable-* \
1934 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1935 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1936 | -with-* | --with-* | -without-* | --without-* | --x)
1937 case "$ac_configure_args0 " in
1938 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1941 -* ) ac_must_keep_next=true ;;
1944 as_fn_append ac_configure_args " '$ac_arg'"
1949 { ac_configure_args0=; unset ac_configure_args0;}
1950 { ac_configure_args1=; unset ac_configure_args1;}
1952 # When interrupted or exit'd, cleanup temporary files, and complete
1953 # config.log. We remove comments because anyway the quotes in there
1954 # would cause problems or look ugly.
1955 # WARNING: Use '\'' to represent an apostrophe within the trap.
1956 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1957 trap 'exit_status=$?
1958 # Save into config.log some information that might help in debugging.
1962 $as_echo "## ---------------- ##
1963 ## Cache variables. ##
1964 ## ---------------- ##"
1966 # The following way of writing the cache mishandles newlines in values,
1968 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1969 eval ac_val=\$$ac_var
1973 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1974 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1977 _ | IFS | as_nl) ;; #(
1978 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1979 *) { eval $ac_var=; unset $ac_var;} ;;
1984 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1985 *${as_nl}ac_space=\ *)
1987 "s/'\''/'\''\\\\'\'''\''/g;
1988 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1991 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1998 $as_echo "## ----------------- ##
1999 ## Output variables. ##
2000 ## ----------------- ##"
2002 for ac_var in $ac_subst_vars
2004 eval ac_val=\$$ac_var
2006 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2008 $as_echo "$ac_var='\''$ac_val'\''"
2012 if test -n "$ac_subst_files"; then
2013 $as_echo "## ------------------- ##
2014 ## File substitutions. ##
2015 ## ------------------- ##"
2017 for ac_var in $ac_subst_files
2019 eval ac_val=\$$ac_var
2021 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2023 $as_echo "$ac_var='\''$ac_val'\''"
2028 if test -s confdefs.h; then
2029 $as_echo "## ----------- ##
2036 test "$ac_signal" != 0 &&
2037 $as_echo "$as_me: caught signal $ac_signal"
2038 $as_echo "$as_me: exit $exit_status"
2040 rm -f core *.core core.conftest.* &&
2041 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2044 for ac_signal in 1 2 13 15; do
2045 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2049 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2050 rm -f -r conftest* confdefs.h
2052 $as_echo "/* confdefs.h */" > confdefs.h
2054 # Predefined preprocessor variables.
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_NAME "$PACKAGE_NAME"
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_STRING "$PACKAGE_STRING"
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_URL "$PACKAGE_URL"
2081 # Let the site file select an alternate cache file if it wants to.
2082 # Prefer an explicitly selected file to automatically selected ones.
2085 if test -n "$CONFIG_SITE"; then
2086 # We do not want a PATH search for config.site.
2087 case $CONFIG_SITE in #((
2088 -*) ac_site_file1=./$CONFIG_SITE;;
2089 */*) ac_site_file1=$CONFIG_SITE;;
2090 *) ac_site_file1=./$CONFIG_SITE;;
2092 elif test "x$prefix" != xNONE; then
2093 ac_site_file1=$prefix/share/config.site
2094 ac_site_file2=$prefix/etc/config.site
2096 ac_site_file1=$ac_default_prefix/share/config.site
2097 ac_site_file2=$ac_default_prefix/etc/config.site
2099 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2101 test "x$ac_site_file" = xNONE && continue
2102 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2104 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2105 sed 's/^/| /' "$ac_site_file" >&5
2107 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2109 as_fn_error $? "failed to load site script $ac_site_file
2110 See \`config.log' for more details" "$LINENO" 5; }
2114 if test -r "$cache_file"; then
2115 # Some versions of bash will fail to source /dev/null (special files
2116 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2117 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2119 $as_echo "$as_me: loading cache $cache_file" >&6;}
2121 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2122 *) . "./$cache_file";;
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2127 $as_echo "$as_me: creating cache $cache_file" >&6;}
2131 # Check that the precious variables saved in the cache have kept the same
2133 ac_cache_corrupted=false
2134 for ac_var in $ac_precious_vars; do
2135 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2136 eval ac_new_set=\$ac_env_${ac_var}_set
2137 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2138 eval ac_new_val=\$ac_env_${ac_var}_value
2139 case $ac_old_set,$ac_new_set in
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2142 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2143 ac_cache_corrupted=: ;;
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2146 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2147 ac_cache_corrupted=: ;;
2150 if test "x$ac_old_val" != "x$ac_new_val"; then
2151 # differences in whitespace do not lead to failure.
2152 ac_old_val_w=`echo x $ac_old_val`
2153 ac_new_val_w=`echo x $ac_new_val`
2154 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2156 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2157 ac_cache_corrupted=:
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2160 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2161 eval $ac_var=\$ac_old_val
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2164 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2166 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2169 # Pass precious variables to config.status.
2170 if test "$ac_new_set" = set; then
2172 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2173 *) ac_arg=$ac_var=$ac_new_val ;;
2175 case " $ac_configure_args " in
2176 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2177 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2181 if $ac_cache_corrupted; then
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2185 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2186 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2188 ## -------------------- ##
2189 ## Main body of script. ##
2190 ## -------------------- ##
2193 ac_cpp='$CPP $CPPFLAGS'
2194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2200 ac_config_headers="$ac_config_headers config.h"
2203 # Initialize Automake
2204 am__api_version='1.11'
2207 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2208 if test -f "$ac_dir/install-sh"; then
2210 ac_install_sh="$ac_aux_dir/install-sh -c"
2212 elif test -f "$ac_dir/install.sh"; then
2214 ac_install_sh="$ac_aux_dir/install.sh -c"
2216 elif test -f "$ac_dir/shtool"; then
2218 ac_install_sh="$ac_aux_dir/shtool install -c"
2222 if test -z "$ac_aux_dir"; then
2223 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2226 # These three variables are undocumented and unsupported,
2227 # and are intended to be withdrawn in a future Autoconf release.
2228 # They can cause serious problems if a builder's source tree is in a directory
2229 # whose full name contains unusual characters.
2230 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2231 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2232 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2235 # Find a good install program. We prefer a C program (faster),
2236 # so one script is as good as another. But avoid the broken or
2237 # incompatible versions:
2238 # SysV /etc/install, /usr/sbin/install
2239 # SunOS /usr/etc/install
2240 # IRIX /sbin/install
2242 # AmigaOS /C/install, which installs bootblocks on floppy discs
2243 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2244 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2245 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2246 # OS/2's system install, which has a completely different semantic
2247 # ./install, which can be erroneously created by make from ./install.sh.
2248 # Reject install programs that cannot install multiple files.
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2250 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2251 if test -z "$INSTALL"; then
2252 if ${ac_cv_path_install+:} false; then :
2253 $as_echo_n "(cached) " >&6
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259 test -z "$as_dir" && as_dir=.
2260 # Account for people who put trailing slashes in PATH elements.
2261 case $as_dir/ in #((
2262 ./ | .// | /[cC]/* | \
2263 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2264 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2267 # OSF1 and SCO ODT 3.0 have their own names for install.
2268 # Don't use installbsd from OSF since it installs stuff as root
2270 for ac_prog in ginstall scoinst install; do
2271 for ac_exec_ext in '' $ac_executable_extensions; do
2272 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2273 if test $ac_prog = install &&
2274 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2275 # AIX install. It has an incompatible calling convention.
2277 elif test $ac_prog = install &&
2278 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2279 # program-specific install script used by HP pwplus--don't use.
2282 rm -rf conftest.one conftest.two conftest.dir
2283 echo one > conftest.one
2284 echo two > conftest.two
2286 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2287 test -s conftest.one && test -s conftest.two &&
2288 test -s conftest.dir/conftest.one &&
2289 test -s conftest.dir/conftest.two
2291 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2304 rm -rf conftest.one conftest.two conftest.dir
2307 if test "${ac_cv_path_install+set}" = set; then
2308 INSTALL=$ac_cv_path_install
2310 # As a last resort, use the slow shell script. Don't cache a
2311 # value for INSTALL within a source directory, because that will
2312 # break other packages using the cache if that directory is
2313 # removed, or if the value is a relative name.
2314 INSTALL=$ac_install_sh
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2318 $as_echo "$INSTALL" >&6; }
2320 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2321 # It thinks the first close brace ends the variable substitution.
2322 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2324 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2326 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2329 $as_echo_n "checking whether build environment is sane... " >&6; }
2332 echo timestamp > conftest.file
2333 # Reject unsafe characters in $srcdir or the absolute working directory
2334 # name. Accept space and tab only in the latter.
2338 *[\\\"\#\$\&\'\`$am_lf]*)
2339 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2342 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2343 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2346 # Do `set' in a subshell so we don't clobber the current shell's
2347 # arguments. Must try -L first in case configure is actually a
2348 # symlink; some systems play weird games with the mod time of symlinks
2349 # (eg FreeBSD returns the mod time of the symlink's containing
2352 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2353 if test "$*" = "X"; then
2355 set X `ls -t "$srcdir/configure" conftest.file`
2358 if test "$*" != "X $srcdir/configure conftest.file" \
2359 && test "$*" != "X conftest.file $srcdir/configure"; then
2361 # If neither matched, then we have a broken ls. This can happen
2362 # if, for instance, CONFIG_SHELL is bash and it inherits a
2363 # broken ls alias from the environment. This has actually
2364 # happened. Such a system could not be considered "sane".
2365 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2366 alias in your environment" "$LINENO" 5
2369 test "$2" = conftest.file
2375 as_fn_error $? "newly created file is older than distributed files!
2376 Check your system clock" "$LINENO" 5
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2379 $as_echo "yes" >&6; }
2380 test "$program_prefix" != NONE &&
2381 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2382 # Use a double $ so make ignores it.
2383 test "$program_suffix" != NONE &&
2384 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2385 # Double any \ or $.
2386 # By default was `s,x,x', remove it if useless.
2387 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2388 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2390 # expand $ac_aux_dir to an absolute path
2391 am_aux_dir=`cd $ac_aux_dir && pwd`
2393 if test x"${MISSING+set}" != xset; then
2396 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2398 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2401 # Use eval to expand $SHELL
2402 if eval "$MISSING --run true"; then
2403 am_missing_run="$MISSING --run "
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2407 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2410 if test x"${install_sh}" != xset; then
2413 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2415 install_sh="\${SHELL} $am_aux_dir/install-sh"
2419 # Installed binaries are usually stripped using `strip' when the user
2420 # run `make install-strip'. However `strip' might not be the right
2421 # tool to use in cross-compilation environments, therefore Automake
2422 # will honor the `STRIP' environment variable to overrule this program.
2423 if test "$cross_compiling" != no; then
2424 if test -n "$ac_tool_prefix"; then
2425 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2426 set dummy ${ac_tool_prefix}strip; ac_word=$2
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2428 $as_echo_n "checking for $ac_word... " >&6; }
2429 if ${ac_cv_prog_STRIP+:} false; then :
2430 $as_echo_n "(cached) " >&6
2432 if test -n "$STRIP"; then
2433 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 test -z "$as_dir" && as_dir=.
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2442 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2452 STRIP=$ac_cv_prog_STRIP
2453 if test -n "$STRIP"; then
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2455 $as_echo "$STRIP" >&6; }
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2458 $as_echo "no" >&6; }
2463 if test -z "$ac_cv_prog_STRIP"; then
2465 # Extract the first word of "strip", so it can be a program name with args.
2466 set dummy strip; ac_word=$2
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2468 $as_echo_n "checking for $ac_word... " >&6; }
2469 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2470 $as_echo_n "(cached) " >&6
2472 if test -n "$ac_ct_STRIP"; then
2473 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 test -z "$as_dir" && as_dir=.
2480 for ac_exec_ext in '' $ac_executable_extensions; do
2481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2482 ac_cv_prog_ac_ct_STRIP="strip"
2483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2493 if test -n "$ac_ct_STRIP"; then
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2495 $as_echo "$ac_ct_STRIP" >&6; }
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2498 $as_echo "no" >&6; }
2501 if test "x$ac_ct_STRIP" = x; then
2504 case $cross_compiling:$ac_tool_warned in
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2508 ac_tool_warned=yes ;;
2513 STRIP="$ac_cv_prog_STRIP"
2517 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2520 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2521 if test -z "$MKDIR_P"; then
2522 if ${ac_cv_path_mkdir+:} false; then :
2523 $as_echo_n "(cached) " >&6
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2529 test -z "$as_dir" && as_dir=.
2530 for ac_prog in mkdir gmkdir; do
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2533 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2534 'mkdir (GNU coreutils) '* | \
2535 'mkdir (coreutils) '* | \
2536 'mkdir (fileutils) '4.1*)
2537 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2547 test -d ./--version && rmdir ./--version
2548 if test "${ac_cv_path_mkdir+set}" = set; then
2549 MKDIR_P="$ac_cv_path_mkdir -p"
2551 # As a last resort, use the slow shell script. Don't cache a
2552 # value for MKDIR_P within a source directory, because that will
2553 # break other packages using the cache if that directory is
2554 # removed, or if the value is a relative name.
2555 MKDIR_P="$ac_install_sh -d"
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2559 $as_echo "$MKDIR_P" >&6; }
2563 [\\/$]* | ?:[\\/]*) ;;
2564 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2567 for ac_prog in gawk mawk nawk awk
2569 # Extract the first word of "$ac_prog", so it can be a program name with args.
2570 set dummy $ac_prog; ac_word=$2
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572 $as_echo_n "checking for $ac_word... " >&6; }
2573 if ${ac_cv_prog_AWK+:} false; then :
2574 $as_echo_n "(cached) " >&6
2576 if test -n "$AWK"; then
2577 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2586 ac_cv_prog_AWK="$ac_prog"
2587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 if test -n "$AWK"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2599 $as_echo "$AWK" >&6; }
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602 $as_echo "no" >&6; }
2606 test -n "$AWK" && break
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2610 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2612 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2613 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2614 $as_echo_n "(cached) " >&6
2616 cat >conftest.make <<\_ACEOF
2619 @echo '@@@%%%=$(MAKE)=@@@%%%'
2621 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2622 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2624 eval ac_cv_prog_make_${ac_make}_set=yes;;
2626 eval ac_cv_prog_make_${ac_make}_set=no;;
2630 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2632 $as_echo "yes" >&6; }
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636 $as_echo "no" >&6; }
2637 SET_MAKE="MAKE=${MAKE-make}"
2640 rm -rf .tst 2>/dev/null
2641 mkdir .tst 2>/dev/null
2642 if test -d .tst; then
2647 rmdir .tst 2>/dev/null
2649 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2650 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2651 # is not polluted with repeated "-I."
2652 am__isrc=' -I$(srcdir)'
2653 # test to see if srcdir already configured
2654 if test -f $srcdir/config.status; then
2655 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2659 # test whether we have cygpath
2660 if test -z "$CYGPATH_W"; then
2661 if (cygpath --version) >/dev/null 2>/dev/null; then
2662 CYGPATH_W='cygpath -w'
2669 # Define the identity of the package.
2670 PACKAGE='libXinerama'
2674 cat >>confdefs.h <<_ACEOF
2675 #define PACKAGE "$PACKAGE"
2679 cat >>confdefs.h <<_ACEOF
2680 #define VERSION "$VERSION"
2683 # Some tools Automake needs.
2685 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2688 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2691 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2694 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2697 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2699 # We need awk for the "check" target. The system "awk" is bad on
2701 # Always define AMTAR for backward compatibility.
2703 AMTAR=${AMTAR-"${am_missing_run}tar"}
2705 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2713 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2714 # Check whether --enable-maintainer-mode was given.
2715 if test "${enable_maintainer_mode+set}" = set; then :
2716 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2718 USE_MAINTAINER_MODE=no
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2722 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2723 if test $USE_MAINTAINER_MODE = yes; then
2724 MAINTAINER_MODE_TRUE=
2725 MAINTAINER_MODE_FALSE='#'
2727 MAINTAINER_MODE_TRUE='#'
2728 MAINTAINER_MODE_FALSE=
2731 MAINT=$MAINTAINER_MODE_TRUE
2735 # Initialize libtool
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2739 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2745 macro_revision='1.3293'
2759 ltmain="$ac_aux_dir/ltmain.sh"
2761 # Make sure we can run config.sub.
2762 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2763 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2766 $as_echo_n "checking build system type... " >&6; }
2767 if ${ac_cv_build+:} false; then :
2768 $as_echo_n "(cached) " >&6
2770 ac_build_alias=$build_alias
2771 test "x$ac_build_alias" = x &&
2772 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2773 test "x$ac_build_alias" = x &&
2774 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2775 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2776 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2780 $as_echo "$ac_cv_build" >&6; }
2781 case $ac_cv_build in
2783 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2786 ac_save_IFS=$IFS; IFS='-'
2792 # Remember, the first character of IFS is used to create $*,
2793 # except with old shells:
2796 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2800 $as_echo_n "checking host system type... " >&6; }
2801 if ${ac_cv_host+:} false; then :
2802 $as_echo_n "(cached) " >&6
2804 if test "x$host_alias" = x; then
2805 ac_cv_host=$ac_cv_build
2807 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2808 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2813 $as_echo "$ac_cv_host" >&6; }
2816 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2819 ac_save_IFS=$IFS; IFS='-'
2825 # Remember, the first character of IFS is used to create $*,
2826 # except with old shells:
2829 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2832 # Backslashify metacharacters that are still active within
2833 # double-quoted strings.
2834 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2836 # Same as above, but do not quote variable references.
2837 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2839 # Sed substitution to delay expansion of an escaped shell variable in a
2840 # double_quote_subst'ed string.
2841 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2843 # Sed substitution to delay expansion of an escaped single quote.
2844 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2846 # Sed substitution to avoid accidental globbing in evaled expressions
2847 no_glob_subst='s/\*/\\\*/g'
2849 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2850 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2851 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2854 $as_echo_n "checking how to print strings... " >&6; }
2855 # Test print first, because it will be a builtin if present.
2856 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2857 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2859 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2862 # Use this function as a fallback that always works.
2863 func_fallback_echo ()
2865 eval 'cat <<_LTECHO_EOF
2869 ECHO='func_fallback_echo'
2872 # func_echo_all arg...
2873 # Invoke $ECHO with all args, space-separated.
2880 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2881 $as_echo "printf" >&6; } ;;
2882 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2883 $as_echo "print -r" >&6; } ;;
2884 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2885 $as_echo "cat" >&6; } ;;
2901 DEPDIR="${am__leading_dot}deps"
2903 ac_config_commands="$ac_config_commands depfiles"
2906 am_make=${MAKE-make}
2907 cat > confinc << 'END'
2909 @echo this is the am__doit target
2912 # If we don't find an include directive, just comment out the code.
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2914 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2918 # First try GNU make style include.
2919 echo "include confinc" > confmf
2920 # Ignore all kinds of additional output from `make'.
2921 case `$am_make -s -f confmf 2> /dev/null` in #(
2922 *the\ am__doit\ target*)
2928 # Now try BSD make style include.
2929 if test "$am__include" = "#"; then
2930 echo '.include "confinc"' > confmf
2931 case `$am_make -s -f confmf 2> /dev/null` in #(
2932 *the\ am__doit\ target*)
2933 am__include=.include
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2942 $as_echo "$_am_result" >&6; }
2943 rm -f confinc confmf
2945 # Check whether --enable-dependency-tracking was given.
2946 if test "${enable_dependency_tracking+set}" = set; then :
2947 enableval=$enable_dependency_tracking;
2950 if test "x$enable_dependency_tracking" != xno; then
2951 am_depcomp="$ac_aux_dir/depcomp"
2954 if test "x$enable_dependency_tracking" != xno; then
2964 ac_cpp='$CPP $CPPFLAGS'
2965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2968 if test -n "$ac_tool_prefix"; then
2969 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2970 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972 $as_echo_n "checking for $ac_word... " >&6; }
2973 if ${ac_cv_prog_CC+:} false; then :
2974 $as_echo_n "(cached) " >&6
2976 if test -n "$CC"; then
2977 ac_cv_prog_CC="$CC" # Let the user override the test.
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 if test -n "$CC"; then
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2999 $as_echo "$CC" >&6; }
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002 $as_echo "no" >&6; }
3007 if test -z "$ac_cv_prog_CC"; then
3009 # Extract the first word of "gcc", so it can be a program name with args.
3010 set dummy gcc; ac_word=$2
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3012 $as_echo_n "checking for $ac_word... " >&6; }
3013 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3014 $as_echo_n "(cached) " >&6
3016 if test -n "$ac_ct_CC"; then
3017 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 test -z "$as_dir" && as_dir=.
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026 ac_cv_prog_ac_ct_CC="gcc"
3027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3036 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3037 if test -n "$ac_ct_CC"; then
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3039 $as_echo "$ac_ct_CC" >&6; }
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042 $as_echo "no" >&6; }
3045 if test "x$ac_ct_CC" = x; then
3048 case $cross_compiling:$ac_tool_warned in
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3052 ac_tool_warned=yes ;;
3060 if test -z "$CC"; then
3061 if test -n "$ac_tool_prefix"; then
3062 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3063 set dummy ${ac_tool_prefix}cc; ac_word=$2
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065 $as_echo_n "checking for $ac_word... " >&6; }
3066 if ${ac_cv_prog_CC+:} false; then :
3067 $as_echo_n "(cached) " >&6
3069 if test -n "$CC"; then
3070 ac_cv_prog_CC="$CC" # Let the user override the test.
3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3079 ac_cv_prog_CC="${ac_tool_prefix}cc"
3080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 if test -n "$CC"; then
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3092 $as_echo "$CC" >&6; }
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095 $as_echo "no" >&6; }
3101 if test -z "$CC"; then
3102 # Extract the first word of "cc", so it can be a program name with args.
3103 set dummy cc; ac_word=$2
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105 $as_echo_n "checking for $ac_word... " >&6; }
3106 if ${ac_cv_prog_CC+:} false; then :
3107 $as_echo_n "(cached) " >&6
3109 if test -n "$CC"; then
3110 ac_cv_prog_CC="$CC" # Let the user override the test.
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3120 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3121 ac_prog_rejected=yes
3125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3132 if test $ac_prog_rejected = yes; then
3133 # We found a bogon in the path, so make sure we never use it.
3134 set dummy $ac_cv_prog_CC
3136 if test $# != 0; then
3137 # We chose a different compiler from the bogus one.
3138 # However, it has the same basename, so the bogon will be chosen
3139 # first if we set CC to just the basename; use the full file name.
3141 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3147 if test -n "$CC"; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3149 $as_echo "$CC" >&6; }
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3157 if test -z "$CC"; then
3158 if test -n "$ac_tool_prefix"; then
3159 for ac_prog in cl.exe
3161 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3162 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if ${ac_cv_prog_CC+:} false; then :
3166 $as_echo_n "(cached) " >&6
3168 if test -n "$CC"; then
3169 ac_cv_prog_CC="$CC" # Let the user override the test.
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3178 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 if test -n "$CC"; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3191 $as_echo "$CC" >&6; }
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 $as_echo "no" >&6; }
3198 test -n "$CC" && break
3201 if test -z "$CC"; then
3203 for ac_prog in cl.exe
3205 # Extract the first word of "$ac_prog", so it can be a program name with args.
3206 set dummy $ac_prog; ac_word=$2
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208 $as_echo_n "checking for $ac_word... " >&6; }
3209 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3210 $as_echo_n "(cached) " >&6
3212 if test -n "$ac_ct_CC"; then
3213 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 test -z "$as_dir" && as_dir=.
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3222 ac_cv_prog_ac_ct_CC="$ac_prog"
3223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3232 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3233 if test -n "$ac_ct_CC"; then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3235 $as_echo "$ac_ct_CC" >&6; }
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238 $as_echo "no" >&6; }
3242 test -n "$ac_ct_CC" && break
3245 if test "x$ac_ct_CC" = x; then
3248 case $cross_compiling:$ac_tool_warned in
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3252 ac_tool_warned=yes ;;
3261 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3263 as_fn_error $? "no acceptable C compiler found in \$PATH
3264 See \`config.log' for more details" "$LINENO" 5; }
3266 # Provide some information about the compiler.
3267 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3270 for ac_option in --version -v -V -qversion; do
3271 { { ac_try="$ac_compiler $ac_option >&5"
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3277 $as_echo "$ac_try_echo"; } >&5
3278 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3280 if test -s conftest.err; then
3282 ... rest of stderr output deleted ...
3283 10q' conftest.err >conftest.er1
3284 cat conftest.er1 >&5
3286 rm -f conftest.er1 conftest.err
3287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3288 test $ac_status = 0; }
3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h. */
3302 ac_clean_files_save=$ac_clean_files
3303 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3304 # Try to create an executable without -o first, disregard a.out.
3305 # It will help us diagnose broken compilers, and finding out an intuition
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3308 $as_echo_n "checking whether the C compiler works... " >&6; }
3309 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3311 # The possible output files:
3312 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3315 for ac_file in $ac_files
3318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3319 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3324 if { { ac_try="$ac_link_default"
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3329 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3330 $as_echo "$ac_try_echo"; } >&5
3331 (eval "$ac_link_default") 2>&5
3333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3334 test $ac_status = 0; }; then :
3335 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3336 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3337 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3338 # so that the user can short-circuit this test for compilers unknown to
3340 for ac_file in $ac_files ''
3342 test -f "$ac_file" || continue
3344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3347 # We found the default executable, but exeext='' is most
3351 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3353 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3355 # We set ac_cv_exeext here because the later test for it is not
3356 # safe: cross compilers may not add the suffix if given an `-o'
3357 # argument, so we may need to know it at that point already.
3358 # Even if this section looks crufty: it has the advantage of
3365 test "$ac_cv_exeext" = no && ac_cv_exeext=
3370 if test -z "$ac_file"; then :
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372 $as_echo "no" >&6; }
3373 $as_echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3378 as_fn_error 77 "C compiler cannot create executables
3379 See \`config.log' for more details" "$LINENO" 5; }
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3382 $as_echo "yes" >&6; }
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3385 $as_echo_n "checking for C compiler default output file name... " >&6; }
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3387 $as_echo "$ac_file" >&6; }
3388 ac_exeext=$ac_cv_exeext
3390 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3391 ac_clean_files=$ac_clean_files_save
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3393 $as_echo_n "checking for suffix of executables... " >&6; }
3394 if { { ac_try="$ac_link"
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3400 $as_echo "$ac_try_echo"; } >&5
3401 (eval "$ac_link") 2>&5
3403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3404 test $ac_status = 0; }; then :
3405 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3406 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3407 # work properly (i.e., refer to `conftest.exe'), while it won't with
3409 for ac_file in conftest.exe conftest conftest.*; do
3410 test -f "$ac_file" || continue
3412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3413 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3421 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3422 See \`config.log' for more details" "$LINENO" 5; }
3424 rm -f conftest conftest$ac_cv_exeext
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3426 $as_echo "$ac_cv_exeext" >&6; }
3428 rm -f conftest.$ac_ext
3429 EXEEXT=$ac_cv_exeext
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3437 FILE *f = fopen ("conftest.out", "w");
3438 return ferror (f) || fclose (f) != 0;
3444 ac_clean_files="$ac_clean_files conftest.out"
3445 # Check that the compiler produces executables we can run. If not, either
3446 # the compiler is broken, or we cross compile.
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3448 $as_echo_n "checking whether we are cross compiling... " >&6; }
3449 if test "$cross_compiling" != yes; then
3450 { { ac_try="$ac_link"
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3456 $as_echo "$ac_try_echo"; } >&5
3457 (eval "$ac_link") 2>&5
3459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3460 test $ac_status = 0; }
3461 if { ac_try='./conftest$ac_cv_exeext'
3462 { { case "(($ac_try" in
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467 $as_echo "$ac_try_echo"; } >&5
3468 (eval "$ac_try") 2>&5
3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471 test $ac_status = 0; }; }; then
3474 if test "$cross_compiling" = maybe; then
3477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3479 as_fn_error $? "cannot run C compiled programs.
3480 If you meant to cross compile, use \`--host'.
3481 See \`config.log' for more details" "$LINENO" 5; }
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3486 $as_echo "$cross_compiling" >&6; }
3488 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3489 ac_clean_files=$ac_clean_files_save
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3491 $as_echo_n "checking for suffix of object files... " >&6; }
3492 if ${ac_cv_objext+:} false; then :
3493 $as_echo_n "(cached) " >&6
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h. */
3506 rm -f conftest.o conftest.obj
3507 if { { ac_try="$ac_compile"
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513 $as_echo "$ac_try_echo"; } >&5
3514 (eval "$ac_compile") 2>&5
3516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517 test $ac_status = 0; }; then :
3518 for ac_file in conftest.o conftest.obj conftest.*; do
3519 test -f "$ac_file" || continue;
3521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3522 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3527 $as_echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3532 as_fn_error $? "cannot compute suffix of object files: cannot compile
3533 See \`config.log' for more details" "$LINENO" 5; }
3535 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3538 $as_echo "$ac_cv_objext" >&6; }
3539 OBJEXT=$ac_cv_objext
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3542 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3543 if ${ac_cv_c_compiler_gnu+:} false; then :
3544 $as_echo_n "(cached) " >&6
3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h. */
3560 if ac_fn_c_try_compile "$LINENO"; then :
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3570 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3571 if test $ac_compiler_gnu = yes; then
3576 ac_test_CFLAGS=${CFLAGS+set}
3577 ac_save_CFLAGS=$CFLAGS
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3579 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3580 if ${ac_cv_prog_cc_g+:} false; then :
3581 $as_echo_n "(cached) " >&6
3583 ac_save_c_werror_flag=$ac_c_werror_flag
3584 ac_c_werror_flag=yes
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h. */
3598 if ac_fn_c_try_compile "$LINENO"; then :
3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603 /* end confdefs.h. */
3613 if ac_fn_c_try_compile "$LINENO"; then :
3616 ac_c_werror_flag=$ac_save_c_werror_flag
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h. */
3629 if ac_fn_c_try_compile "$LINENO"; then :
3632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637 ac_c_werror_flag=$ac_save_c_werror_flag
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3640 $as_echo "$ac_cv_prog_cc_g" >&6; }
3641 if test "$ac_test_CFLAGS" = set; then
3642 CFLAGS=$ac_save_CFLAGS
3643 elif test $ac_cv_prog_cc_g = yes; then
3644 if test "$GCC" = yes; then
3650 if test "$GCC" = yes; then
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3657 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3658 if ${ac_cv_prog_cc_c89+:} false; then :
3659 $as_echo_n "(cached) " >&6
3661 ac_cv_prog_cc_c89=no
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3667 #include <sys/types.h>
3668 #include <sys/stat.h>
3669 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3670 struct buf { int x; };
3671 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3672 static char *e (p, i)
3678 static char *f (char * (*g) (char **, int), char **p, ...)
3683 s = g (p, va_arg (v,int));
3688 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3689 function prototypes and stuff, but not '\xHH' hex character constants.
3690 These don't provoke an error unfortunately, instead are silently treated
3691 as 'x'. The following induces an error, until -std is added to get
3692 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3693 array size at least. It's necessary to write '\x00'==0 to get something
3694 that's true only with -std. */
3695 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3697 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3698 inside strings and character constants. */
3700 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3702 int test (int i, double x);
3703 struct s1 {int (*f) (int a);};
3704 struct s2 {int (*f) (double a);};
3705 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3711 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3716 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3717 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3719 CC="$ac_save_CC $ac_arg"
3720 if ac_fn_c_try_compile "$LINENO"; then :
3721 ac_cv_prog_cc_c89=$ac_arg
3723 rm -f core conftest.err conftest.$ac_objext
3724 test "x$ac_cv_prog_cc_c89" != "xno" && break
3726 rm -f conftest.$ac_ext
3731 case "x$ac_cv_prog_cc_c89" in
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3734 $as_echo "none needed" >&6; } ;;
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3737 $as_echo "unsupported" >&6; } ;;
3739 CC="$CC $ac_cv_prog_cc_c89"
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3741 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3743 if test "x$ac_cv_prog_cc_c89" != xno; then :
3748 ac_cpp='$CPP $CPPFLAGS'
3749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753 depcc="$CC" am_compiler_list=
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3756 $as_echo_n "checking dependency style of $depcc... " >&6; }
3757 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3758 $as_echo_n "(cached) " >&6
3760 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3761 # We make a subdir and do the tests there. Otherwise we can end up
3762 # making bogus files that we don't know about and never remove. For
3763 # instance it was reported that on HP-UX the gcc test will end up
3764 # making a dummy file named `D' -- because `-MD' means `put the output
3767 # Copy depcomp to subdir because otherwise we won't find it if we're
3768 # using a relative directory.
3769 cp "$am_depcomp" conftest.dir
3771 # We will build objects and dependencies in a subdirectory because
3772 # it helps to detect inapplicable dependency modes. For instance
3773 # both Tru64's cc and ICC support -MD to output dependencies as a
3774 # side effect of compilation, but ICC will put the dependencies in
3775 # the current directory while Tru64 will put them in the object
3779 am_cv_CC_dependencies_compiler_type=none
3780 if test "$am_compiler_list" = ""; then
3781 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3784 case " $depcc " in #(
3785 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3788 for depmode in $am_compiler_list; do
3789 # Setup a source with many dependencies, because some compilers
3790 # like to wrap large dependency lists on column 80 (with \), and
3791 # we should not choose a depcomp mode which is confused by this.
3793 # We need to recreate these files for each test, as the compiler may
3794 # overwrite some of them when testing with obscure command lines.
3795 # This happens at least with the AIX C compiler.
3797 for i in 1 2 3 4 5 6; do
3798 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3799 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3800 # Solaris 8's {/usr,}/bin/sh.
3801 touch sub/conftst$i.h
3803 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3805 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3806 # mode. It turns out that the SunPro C++ compiler does not properly
3807 # handle `-M -o', and we need to detect this. Also, some Intel
3808 # versions had trouble with output in subdirs
3809 am__obj=sub/conftest.${OBJEXT-o}
3810 am__minus_obj="-o $am__obj"
3813 # This depmode causes a compiler race in universal mode.
3814 test "$am__universal" = false || continue
3817 # after this tag, mechanisms are not by side-effect, so they'll
3818 # only be used when explicitly requested
3819 if test "x$enable_dependency_tracking" = xyes; then
3825 msvisualcpp | msvcmsys)
3826 # This compiler won't grok `-c -o', but also, the minuso test has
3827 # not run yet. These depmodes are late enough in the game, and
3828 # so weak that their functioning should not be impacted.
3829 am__obj=conftest.${OBJEXT-o}
3834 if depmode=$depmode \
3835 source=sub/conftest.c object=$am__obj \
3836 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3837 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3838 >/dev/null 2>conftest.err &&
3839 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3840 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3841 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3842 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3843 # icc doesn't choke on unknown options, it will just issue warnings
3844 # or remarks (even with -Werror). So we grep stderr for any message
3845 # that says an option was ignored or not supported.
3846 # When given -MP, icc 7.0 and 7.1 complain thusly:
3847 # icc: Command line warning: ignoring option '-M'; no argument required
3848 # The diagnosis changed in icc 8.0:
3849 # icc: Command line remark: option '-MP' not supported
3850 if (grep 'ignoring option' conftest.err ||
3851 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3852 am_cv_CC_dependencies_compiler_type=$depmode
3861 am_cv_CC_dependencies_compiler_type=none
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3866 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3867 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3870 test "x$enable_dependency_tracking" != xno \
3871 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3873 am__fastdepCC_FALSE='#'
3875 am__fastdepCC_TRUE='#'
3876 am__fastdepCC_FALSE=
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3881 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3882 if ${ac_cv_path_SED+:} false; then :
3883 $as_echo_n "(cached) " >&6
3885 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3886 for ac_i in 1 2 3 4 5 6 7; do
3887 ac_script="$ac_script$as_nl$ac_script"
3889 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3890 { ac_script=; unset ac_script;}
3891 if test -z "$SED"; then
3892 ac_path_SED_found=false
3893 # Loop through the user's path and test for each of PROGNAME-LIST
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 test -z "$as_dir" && as_dir=.
3899 for ac_prog in sed gsed; do
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3902 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3903 # Check for GNU ac_path_SED and select it if it is found.
3904 # Check for GNU $ac_path_SED
3905 case `"$ac_path_SED" --version 2>&1` in
3907 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3910 $as_echo_n 0123456789 >"conftest.in"
3913 cat "conftest.in" "conftest.in" >"conftest.tmp"
3914 mv "conftest.tmp" "conftest.in"
3915 cp "conftest.in" "conftest.nl"
3916 $as_echo '' >> "conftest.nl"
3917 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3918 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3919 as_fn_arith $ac_count + 1 && ac_count=$as_val
3920 if test $ac_count -gt ${ac_path_SED_max-0}; then
3921 # Best one so far, save it but keep looking for a better one
3922 ac_cv_path_SED="$ac_path_SED"
3923 ac_path_SED_max=$ac_count
3925 # 10*(2^10) chars as input seems more than enough
3926 test $ac_count -gt 10 && break
3928 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3931 $ac_path_SED_found && break 3
3936 if test -z "$ac_cv_path_SED"; then
3937 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3945 $as_echo "$ac_cv_path_SED" >&6; }
3946 SED="$ac_cv_path_SED"
3949 test -z "$SED" && SED=sed
3950 Xsed="$SED -e 1s/^X//"
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3963 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3964 if ${ac_cv_path_GREP+:} false; then :
3965 $as_echo_n "(cached) " >&6
3967 if test -z "$GREP"; then
3968 ac_path_GREP_found=false
3969 # Loop through the user's path and test for each of PROGNAME-LIST
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3974 test -z "$as_dir" && as_dir=.
3975 for ac_prog in grep ggrep; do
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3978 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3979 # Check for GNU ac_path_GREP and select it if it is found.
3980 # Check for GNU $ac_path_GREP
3981 case `"$ac_path_GREP" --version 2>&1` in
3983 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3986 $as_echo_n 0123456789 >"conftest.in"
3989 cat "conftest.in" "conftest.in" >"conftest.tmp"
3990 mv "conftest.tmp" "conftest.in"
3991 cp "conftest.in" "conftest.nl"
3992 $as_echo 'GREP' >> "conftest.nl"
3993 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3994 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3995 as_fn_arith $ac_count + 1 && ac_count=$as_val
3996 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3997 # Best one so far, save it but keep looking for a better one
3998 ac_cv_path_GREP="$ac_path_GREP"
3999 ac_path_GREP_max=$ac_count
4001 # 10*(2^10) chars as input seems more than enough
4002 test $ac_count -gt 10 && break
4004 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4007 $ac_path_GREP_found && break 3
4012 if test -z "$ac_cv_path_GREP"; then
4013 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4016 ac_cv_path_GREP=$GREP
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4021 $as_echo "$ac_cv_path_GREP" >&6; }
4022 GREP="$ac_cv_path_GREP"
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4026 $as_echo_n "checking for egrep... " >&6; }
4027 if ${ac_cv_path_EGREP+:} false; then :
4028 $as_echo_n "(cached) " >&6
4030 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4031 then ac_cv_path_EGREP="$GREP -E"
4033 if test -z "$EGREP"; then
4034 ac_path_EGREP_found=false
4035 # Loop through the user's path and test for each of PROGNAME-LIST
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4040 test -z "$as_dir" && as_dir=.
4041 for ac_prog in egrep; do
4042 for ac_exec_ext in '' $ac_executable_extensions; do
4043 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4044 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4045 # Check for GNU ac_path_EGREP and select it if it is found.
4046 # Check for GNU $ac_path_EGREP
4047 case `"$ac_path_EGREP" --version 2>&1` in
4049 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4052 $as_echo_n 0123456789 >"conftest.in"
4055 cat "conftest.in" "conftest.in" >"conftest.tmp"
4056 mv "conftest.tmp" "conftest.in"
4057 cp "conftest.in" "conftest.nl"
4058 $as_echo 'EGREP' >> "conftest.nl"
4059 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4060 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4061 as_fn_arith $ac_count + 1 && ac_count=$as_val
4062 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4063 # Best one so far, save it but keep looking for a better one
4064 ac_cv_path_EGREP="$ac_path_EGREP"
4065 ac_path_EGREP_max=$ac_count
4067 # 10*(2^10) chars as input seems more than enough
4068 test $ac_count -gt 10 && break
4070 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4073 $ac_path_EGREP_found && break 3
4078 if test -z "$ac_cv_path_EGREP"; then
4079 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4082 ac_cv_path_EGREP=$EGREP
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4088 $as_echo "$ac_cv_path_EGREP" >&6; }
4089 EGREP="$ac_cv_path_EGREP"
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4093 $as_echo_n "checking for fgrep... " >&6; }
4094 if ${ac_cv_path_FGREP+:} false; then :
4095 $as_echo_n "(cached) " >&6
4097 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4098 then ac_cv_path_FGREP="$GREP -F"
4100 if test -z "$FGREP"; then
4101 ac_path_FGREP_found=false
4102 # Loop through the user's path and test for each of PROGNAME-LIST
4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4107 test -z "$as_dir" && as_dir=.
4108 for ac_prog in fgrep; do
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4111 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4112 # Check for GNU ac_path_FGREP and select it if it is found.
4113 # Check for GNU $ac_path_FGREP
4114 case `"$ac_path_FGREP" --version 2>&1` in
4116 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4119 $as_echo_n 0123456789 >"conftest.in"
4122 cat "conftest.in" "conftest.in" >"conftest.tmp"
4123 mv "conftest.tmp" "conftest.in"
4124 cp "conftest.in" "conftest.nl"
4125 $as_echo 'FGREP' >> "conftest.nl"
4126 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4128 as_fn_arith $ac_count + 1 && ac_count=$as_val
4129 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4130 # Best one so far, save it but keep looking for a better one
4131 ac_cv_path_FGREP="$ac_path_FGREP"
4132 ac_path_FGREP_max=$ac_count
4134 # 10*(2^10) chars as input seems more than enough
4135 test $ac_count -gt 10 && break
4137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4140 $ac_path_FGREP_found && break 3
4145 if test -z "$ac_cv_path_FGREP"; then
4146 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4149 ac_cv_path_FGREP=$FGREP
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4155 $as_echo "$ac_cv_path_FGREP" >&6; }
4156 FGREP="$ac_cv_path_FGREP"
4159 test -z "$GREP" && GREP=grep
4179 # Check whether --with-gnu-ld was given.
4180 if test "${with_gnu_ld+set}" = set; then :
4181 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4187 if test "$GCC" = yes; then
4188 # Check if gcc -print-prog-name=ld gives a path.
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4190 $as_echo_n "checking for ld used by $CC... " >&6; }
4193 # gcc leaves a trailing carriage return which upsets mingw
4194 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4196 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4199 # Accept absolute paths.
4201 re_direlt='/[^/][^/]*/\.\./'
4202 # Canonicalize the pathname of ld
4203 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4204 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4205 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4207 test -z "$LD" && LD="$ac_prog"
4210 # If it fails, then pretend we aren't using GCC.
4214 # If it is relative, then search for the first ld in PATH.
4218 elif test "$with_gnu_ld" = yes; then
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4220 $as_echo_n "checking for GNU ld... " >&6; }
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4223 $as_echo_n "checking for non-GNU ld... " >&6; }
4225 if ${lt_cv_path_LD+:} false; then :
4226 $as_echo_n "(cached) " >&6
4228 if test -z "$LD"; then
4229 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4230 for ac_dir in $PATH; do
4232 test -z "$ac_dir" && ac_dir=.
4233 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4234 lt_cv_path_LD="$ac_dir/$ac_prog"
4235 # Check to see if the program is GNU ld. I'd rather use --version,
4236 # but apparently some variants of GNU ld only accept -v.
4237 # Break only if it was the GNU/non-GNU ld that we prefer.
4238 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4239 *GNU* | *'with BFD'*)
4240 test "$with_gnu_ld" != no && break
4243 test "$with_gnu_ld" != yes && break
4250 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4255 if test -n "$LD"; then
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4257 $as_echo "$LD" >&6; }
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4260 $as_echo "no" >&6; }
4262 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4264 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4265 if ${lt_cv_prog_gnu_ld+:} false; then :
4266 $as_echo_n "(cached) " >&6
4268 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4269 case `$LD -v 2>&1 </dev/null` in
4270 *GNU* | *'with BFD'*)
4271 lt_cv_prog_gnu_ld=yes
4274 lt_cv_prog_gnu_ld=no
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4279 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4280 with_gnu_ld=$lt_cv_prog_gnu_ld
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4291 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4292 if ${lt_cv_path_NM+:} false; then :
4293 $as_echo_n "(cached) " >&6
4295 if test -n "$NM"; then
4296 # Let the user override the test.
4299 lt_nm_to_check="${ac_tool_prefix}nm"
4300 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4301 lt_nm_to_check="$lt_nm_to_check nm"
4303 for lt_tmp_nm in $lt_nm_to_check; do
4304 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4305 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4307 test -z "$ac_dir" && ac_dir=.
4308 tmp_nm="$ac_dir/$lt_tmp_nm"
4309 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4310 # Check to see if the nm accepts a BSD-compat flag.
4311 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4312 # nm: unknown option "B" ignored
4313 # Tru64's nm complains that /dev/null is an invalid object file
4314 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4315 */dev/null* | *'Invalid file or object type'*)
4316 lt_cv_path_NM="$tmp_nm -B"
4320 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4322 lt_cv_path_NM="$tmp_nm -p"
4326 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4327 continue # so that we can try to find one that supports BSD flags
4336 : ${lt_cv_path_NM=no}
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4340 $as_echo "$lt_cv_path_NM" >&6; }
4341 if test "$lt_cv_path_NM" != "no"; then
4344 # Didn't find any BSD compatible name lister, look for dumpbin.
4345 if test -n "$DUMPBIN"; then :
4346 # Let the user override the test.
4348 if test -n "$ac_tool_prefix"; then
4349 for ac_prog in dumpbin "link -dump"
4351 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4352 set dummy $ac_tool_prefix$ac_prog; 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_prog_DUMPBIN+:} false; then :
4356 $as_echo_n "(cached) " >&6
4358 if test -n "$DUMPBIN"; then
4359 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 test -z "$as_dir" && as_dir=.
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4368 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 DUMPBIN=$ac_cv_prog_DUMPBIN
4379 if test -n "$DUMPBIN"; then
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4381 $as_echo "$DUMPBIN" >&6; }
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4384 $as_echo "no" >&6; }
4388 test -n "$DUMPBIN" && break
4391 if test -z "$DUMPBIN"; then
4392 ac_ct_DUMPBIN=$DUMPBIN
4393 for ac_prog in dumpbin "link -dump"
4395 # Extract the first word of "$ac_prog", so it can be a program name with args.
4396 set dummy $ac_prog; ac_word=$2
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398 $as_echo_n "checking for $ac_word... " >&6; }
4399 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4400 $as_echo_n "(cached) " >&6
4402 if test -n "$ac_ct_DUMPBIN"; then
4403 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4412 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4423 if test -n "$ac_ct_DUMPBIN"; then
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4425 $as_echo "$ac_ct_DUMPBIN" >&6; }
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428 $as_echo "no" >&6; }
4432 test -n "$ac_ct_DUMPBIN" && break
4435 if test "x$ac_ct_DUMPBIN" = x; then
4438 case $cross_compiling:$ac_tool_warned in
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4442 ac_tool_warned=yes ;;
4444 DUMPBIN=$ac_ct_DUMPBIN
4448 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4450 DUMPBIN="$DUMPBIN -symbols"
4458 if test "$DUMPBIN" != ":"; then
4462 test -z "$NM" && NM=nm
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4470 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4471 if ${lt_cv_nm_interface+:} false; then :
4472 $as_echo_n "(cached) " >&6
4474 lt_cv_nm_interface="BSD nm"
4475 echo "int some_variable = 0;" > conftest.$ac_ext
4476 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4477 (eval "$ac_compile" 2>conftest.err)
4478 cat conftest.err >&5
4479 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4480 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4481 cat conftest.err >&5
4482 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4483 cat conftest.out >&5
4484 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4485 lt_cv_nm_interface="MS dumpbin"
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4490 $as_echo "$lt_cv_nm_interface" >&6; }
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4493 $as_echo_n "checking whether ln -s works... " >&6; }
4495 if test "$LN_S" = "ln -s"; then
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4497 $as_echo "yes" >&6; }
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4500 $as_echo "no, using $LN_S" >&6; }
4503 # find the maximum length of command line arguments
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4505 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4506 if ${lt_cv_sys_max_cmd_len+:} false; then :
4507 $as_echo_n "(cached) " >&6
4514 # On DJGPP, this test can blow up pretty badly due to problems in libc
4515 # (any single argument exceeding 2000 bytes causes a buffer overrun
4516 # during glob expansion). Even if it were fixed, the result of this
4517 # check would be larger than it should be.
4518 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4522 # Under GNU Hurd, this test is not required because there is
4523 # no limit to the length of command line arguments.
4524 # Libtool will interpret -1 as no limit whatsoever
4525 lt_cv_sys_max_cmd_len=-1;
4528 cygwin* | mingw* | cegcc*)
4529 # On Win9x/ME, this test blows up -- it succeeds, but takes
4530 # about 5 minutes as the teststring grows exponentially.
4531 # Worse, since 9x/ME are not pre-emptively multitasking,
4532 # you end up with a "frozen" computer, even though with patience
4533 # the test eventually succeeds (with a max line length of 256k).
4534 # Instead, let's just punt: use the minimum linelength reported by
4535 # all of the supported platforms: 8192 (on NT/2K/XP).
4536 lt_cv_sys_max_cmd_len=8192;
4540 # On MiNT this can take a long time and run out of memory.
4541 lt_cv_sys_max_cmd_len=8192;
4545 # On AmigaOS with pdksh, this test takes hours, literally.
4546 # So we just punt and use a minimum line length of 8192.
4547 lt_cv_sys_max_cmd_len=8192;
4550 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4551 # This has been around since 386BSD, at least. Likely further.
4552 if test -x /sbin/sysctl; then
4553 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4554 elif test -x /usr/sbin/sysctl; then
4555 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4557 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4559 # And add a safety zone
4560 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4561 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4565 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4566 lt_cv_sys_max_cmd_len=196608
4570 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4571 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4572 # nice to cause kernel panics so lets avoid the loop below.
4573 # First set a reasonable default.
4574 lt_cv_sys_max_cmd_len=16384
4576 if test -x /sbin/sysconfig; then
4577 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4578 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4583 lt_cv_sys_max_cmd_len=102400
4585 sysv5* | sco5v6* | sysv4.2uw2*)
4586 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4587 if test -n "$kargmax"; then
4588 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4590 lt_cv_sys_max_cmd_len=32768
4594 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4595 if test -n "$lt_cv_sys_max_cmd_len"; then
4596 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4597 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4599 # Make teststring a little bigger before we do anything with it.
4600 # a 1K string should be a reasonable start.
4601 for i in 1 2 3 4 5 6 7 8 ; do
4602 teststring=$teststring$teststring
4604 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4605 # If test is not a shell built-in, we'll probably end up computing a
4606 # maximum length that is only half of the actual maximum length, but
4608 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4609 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4610 test $i != 17 # 1/2 MB should be enough
4613 teststring=$teststring$teststring
4615 # Only check the string length outside the loop.
4616 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4618 # Add a significant safety factor because C++ compilers can tack on
4619 # massive amounts of additional arguments before passing them to the
4620 # linker. It appears as though 1/2 is a usable value.
4621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4628 if test -n $lt_cv_sys_max_cmd_len ; then
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4630 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4633 $as_echo "none" >&6; }
4635 max_cmd_len=$lt_cv_sys_max_cmd_len
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4647 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4648 # Try some XSI features
4651 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4653 && eval 'test $(( 1 + 1 )) -eq 2 \
4654 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4657 $as_echo "$xsi_shell" >&6; }
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4661 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4663 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4665 && lt_shell_append=yes
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4667 $as_echo "$lt_shell_append" >&6; }
4670 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4680 # test EBCDIC or ASCII
4681 case `echo X|tr X '\101'` in
4682 A) # ASCII based system
4683 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4684 lt_SP2NL='tr \040 \012'
4685 lt_NL2SP='tr \015\012 \040\040'
4687 *) # EBCDIC based system
4688 lt_SP2NL='tr \100 \n'
4689 lt_NL2SP='tr \r\n \100\100'
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4702 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4703 if ${lt_cv_to_host_file_cmd+:} false; then :
4704 $as_echo_n "(cached) " >&6
4709 *-*-mingw* ) # actually msys
4710 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4713 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4715 * ) # otherwise, assume *nix
4716 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4722 *-*-mingw* ) # actually msys
4723 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4726 lt_cv_to_host_file_cmd=func_convert_file_noop
4728 * ) # otherwise, assume *nix
4729 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4733 * ) # unhandled hosts (and "normal" native builds)
4734 lt_cv_to_host_file_cmd=func_convert_file_noop
4740 to_host_file_cmd=$lt_cv_to_host_file_cmd
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4742 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4749 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4750 if ${lt_cv_to_tool_file_cmd+:} false; then :
4751 $as_echo_n "(cached) " >&6
4753 #assume ordinary cross tools, or native build.
4754 lt_cv_to_tool_file_cmd=func_convert_file_noop
4758 *-*-mingw* ) # actually msys
4759 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4767 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4769 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4776 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4777 if ${lt_cv_ld_reload_flag+:} false; then :
4778 $as_echo_n "(cached) " >&6
4780 lt_cv_ld_reload_flag='-r'
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4783 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4784 reload_flag=$lt_cv_ld_reload_flag
4785 case $reload_flag in
4787 *) reload_flag=" $reload_flag" ;;
4789 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4791 cygwin* | mingw* | pw32* | cegcc*)
4792 if test "$GCC" != yes; then
4797 if test "$GCC" = yes; then
4798 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4800 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4813 if test -n "$ac_tool_prefix"; then
4814 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4815 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if ${ac_cv_prog_OBJDUMP+:} false; then :
4819 $as_echo_n "(cached) " >&6
4821 if test -n "$OBJDUMP"; then
4822 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 OBJDUMP=$ac_cv_prog_OBJDUMP
4842 if test -n "$OBJDUMP"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4844 $as_echo "$OBJDUMP" >&6; }
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4852 if test -z "$ac_cv_prog_OBJDUMP"; then
4853 ac_ct_OBJDUMP=$OBJDUMP
4854 # Extract the first word of "objdump", so it can be a program name with args.
4855 set dummy objdump; ac_word=$2
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857 $as_echo_n "checking for $ac_word... " >&6; }
4858 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4859 $as_echo_n "(cached) " >&6
4861 if test -n "$ac_ct_OBJDUMP"; then
4862 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4871 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4882 if test -n "$ac_ct_OBJDUMP"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4884 $as_echo "$ac_ct_OBJDUMP" >&6; }
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4890 if test "x$ac_ct_OBJDUMP" = x; then
4893 case $cross_compiling:$ac_tool_warned in
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4897 ac_tool_warned=yes ;;
4899 OBJDUMP=$ac_ct_OBJDUMP
4902 OBJDUMP="$ac_cv_prog_OBJDUMP"
4905 test -z "$OBJDUMP" && OBJDUMP=objdump
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4916 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4917 if ${lt_cv_deplibs_check_method+:} false; then :
4918 $as_echo_n "(cached) " >&6
4920 lt_cv_file_magic_cmd='$MAGIC_CMD'
4921 lt_cv_file_magic_test_file=
4922 lt_cv_deplibs_check_method='unknown'
4923 # Need to set the preceding variable on all platforms that support
4924 # interlibrary dependencies.
4925 # 'none' -- dependencies not supported.
4926 # `unknown' -- same as none, but documents that we really don't know.
4927 # 'pass_all' -- all dependencies passed with no checks.
4928 # 'test_compile' -- check by making test program.
4929 # 'file_magic [[regex]]' -- check by looking for files in library path
4930 # which responds to the $file_magic_cmd with a given extended regex.
4931 # If you have `file' or equivalent on your system and you're not sure
4932 # whether `pass_all' will *always* work, you probably want this one.
4936 lt_cv_deplibs_check_method=pass_all
4940 lt_cv_deplibs_check_method=pass_all
4944 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4945 lt_cv_file_magic_cmd='/usr/bin/file -L'
4946 lt_cv_file_magic_test_file=/shlib/libc.so
4950 # func_win32_libid is a shell function defined in ltmain.sh
4951 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4952 lt_cv_file_magic_cmd='func_win32_libid'
4956 # Base MSYS/MinGW do not provide the 'file' command needed by
4957 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4958 # unless we find 'file', for example because we are cross-compiling.
4959 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4960 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4961 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4962 lt_cv_file_magic_cmd='func_win32_libid'
4964 # Keep this pattern in sync with the one in func_win32_libid.
4965 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4966 lt_cv_file_magic_cmd='$OBJDUMP -f'
4971 # use the weaker test based on 'objdump'. See mingw*.
4972 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4973 lt_cv_file_magic_cmd='$OBJDUMP -f'
4976 darwin* | rhapsody*)
4977 lt_cv_deplibs_check_method=pass_all
4980 freebsd* | dragonfly*)
4981 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4984 # Not sure whether the presence of OpenBSD here was a mistake.
4985 # Let's accept both of them until this is cleared up.
4986 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4987 lt_cv_file_magic_cmd=/usr/bin/file
4988 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4992 lt_cv_deplibs_check_method=pass_all
4997 lt_cv_deplibs_check_method=pass_all
5001 lt_cv_deplibs_check_method=pass_all
5004 hpux10.20* | hpux11*)
5005 lt_cv_file_magic_cmd=/usr/bin/file
5008 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5009 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5012 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]'
5013 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5016 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5017 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5023 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5027 irix5* | irix6* | nonstopux*)
5029 *-32|*"-32 ") libmagic=32-bit;;
5030 *-n32|*"-n32 ") libmagic=N32;;
5031 *-64|*"-64 ") libmagic=64-bit;;
5032 *) libmagic=never-match;;
5034 lt_cv_deplibs_check_method=pass_all
5037 # This must be Linux ELF.
5038 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5039 lt_cv_deplibs_check_method=pass_all
5043 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5044 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5051 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5052 lt_cv_file_magic_cmd=/usr/bin/file
5053 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5057 lt_cv_deplibs_check_method=pass_all
5061 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5068 osf3* | osf4* | osf5*)
5069 lt_cv_deplibs_check_method=pass_all
5073 lt_cv_deplibs_check_method=pass_all
5077 lt_cv_deplibs_check_method=pass_all
5080 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5081 lt_cv_deplibs_check_method=pass_all
5085 case $host_vendor in
5087 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]'
5088 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5091 lt_cv_deplibs_check_method=pass_all
5094 lt_cv_file_magic_cmd='/bin/file'
5095 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5098 lt_cv_file_magic_cmd='/bin/file'
5099 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5100 lt_cv_file_magic_test_file=/lib/libc.so
5103 lt_cv_deplibs_check_method=pass_all
5106 lt_cv_deplibs_check_method=pass_all
5112 lt_cv_deplibs_check_method=pass_all
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5118 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5122 if test "$build" = "$host"; then
5125 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5128 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5134 file_magic_cmd=$lt_cv_file_magic_cmd
5135 deplibs_check_method=$lt_cv_deplibs_check_method
5136 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5159 if test -n "$ac_tool_prefix"; then
5160 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5161 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5163 $as_echo_n "checking for $ac_word... " >&6; }
5164 if ${ac_cv_prog_DLLTOOL+:} false; then :
5165 $as_echo_n "(cached) " >&6
5167 if test -n "$DLLTOOL"; then
5168 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5187 DLLTOOL=$ac_cv_prog_DLLTOOL
5188 if test -n "$DLLTOOL"; then
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5190 $as_echo "$DLLTOOL" >&6; }
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193 $as_echo "no" >&6; }
5198 if test -z "$ac_cv_prog_DLLTOOL"; then
5199 ac_ct_DLLTOOL=$DLLTOOL
5200 # Extract the first word of "dlltool", so it can be a program name with args.
5201 set dummy dlltool; ac_word=$2
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203 $as_echo_n "checking for $ac_word... " >&6; }
5204 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5205 $as_echo_n "(cached) " >&6
5207 if test -n "$ac_ct_DLLTOOL"; then
5208 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5217 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5227 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5228 if test -n "$ac_ct_DLLTOOL"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5230 $as_echo "$ac_ct_DLLTOOL" >&6; }
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5236 if test "x$ac_ct_DLLTOOL" = x; then
5239 case $cross_compiling:$ac_tool_warned in
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5243 ac_tool_warned=yes ;;
5245 DLLTOOL=$ac_ct_DLLTOOL
5248 DLLTOOL="$ac_cv_prog_DLLTOOL"
5251 test -z "$DLLTOOL" && DLLTOOL=dlltool
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5263 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5264 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5265 $as_echo_n "(cached) " >&6
5267 lt_cv_sharedlib_from_linklib_cmd='unknown'
5270 cygwin* | mingw* | pw32* | cegcc*)
5271 # two different shell functions defined in ltmain.sh
5272 # decide which to use based on capabilities of $DLLTOOL
5273 case `$DLLTOOL --help 2>&1` in
5274 *--identify-strict*)
5275 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5278 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5283 # fallback: assume linklib IS sharedlib
5284 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5290 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5291 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5292 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5301 if test -n "$ac_tool_prefix"; then
5304 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5305 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5307 $as_echo_n "checking for $ac_word... " >&6; }
5308 if ${ac_cv_prog_AR+:} false; then :
5309 $as_echo_n "(cached) " >&6
5311 if test -n "$AR"; then
5312 ac_cv_prog_AR="$AR" # Let the user override the test.
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 test -z "$as_dir" && as_dir=.
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5321 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 if test -n "$AR"; then
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5334 $as_echo "$AR" >&6; }
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337 $as_echo "no" >&6; }
5341 test -n "$AR" && break
5344 if test -z "$AR"; then
5348 # Extract the first word of "$ac_prog", so it can be a program name with args.
5349 set dummy $ac_prog; ac_word=$2
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5353 $as_echo_n "(cached) " >&6
5355 if test -n "$ac_ct_AR"; then
5356 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5365 ac_cv_prog_ac_ct_AR="$ac_prog"
5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5376 if test -n "$ac_ct_AR"; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5378 $as_echo "$ac_ct_AR" >&6; }
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381 $as_echo "no" >&6; }
5385 test -n "$ac_ct_AR" && break
5388 if test "x$ac_ct_AR" = x; then
5391 case $cross_compiling:$ac_tool_warned in
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5395 ac_tool_warned=yes ;;
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5415 $as_echo_n "checking for archiver @FILE support... " >&6; }
5416 if ${lt_cv_ar_at_file+:} false; then :
5417 $as_echo_n "(cached) " >&6
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5431 if ac_fn_c_try_compile "$LINENO"; then :
5432 echo conftest.$ac_objext > conftest.lst
5433 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5435 (eval $lt_ar_try) 2>&5
5437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5438 test $ac_status = 0; }
5439 if test "$ac_status" -eq 0; then
5440 # Ensure the archiver fails upon bogus file names.
5441 rm -f conftest.$ac_objext libconftest.a
5442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5443 (eval $lt_ar_try) 2>&5
5445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5446 test $ac_status = 0; }
5447 if test "$ac_status" -ne 0; then
5451 rm -f conftest.* libconftest.a
5454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5458 $as_echo "$lt_cv_ar_at_file" >&6; }
5460 if test "x$lt_cv_ar_at_file" = xno; then
5463 archiver_list_spec=$lt_cv_ar_at_file
5472 if test -n "$ac_tool_prefix"; then
5473 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5474 set dummy ${ac_tool_prefix}strip; ac_word=$2
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if ${ac_cv_prog_STRIP+:} false; then :
5478 $as_echo_n "(cached) " >&6
5480 if test -n "$STRIP"; then
5481 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5490 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 STRIP=$ac_cv_prog_STRIP
5501 if test -n "$STRIP"; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5503 $as_echo "$STRIP" >&6; }
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5511 if test -z "$ac_cv_prog_STRIP"; then
5513 # Extract the first word of "strip", so it can be a program name with args.
5514 set dummy strip; ac_word=$2
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5516 $as_echo_n "checking for $ac_word... " >&6; }
5517 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5518 $as_echo_n "(cached) " >&6
5520 if test -n "$ac_ct_STRIP"; then
5521 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 test -z "$as_dir" && as_dir=.
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5530 ac_cv_prog_ac_ct_STRIP="strip"
5531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5541 if test -n "$ac_ct_STRIP"; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5543 $as_echo "$ac_ct_STRIP" >&6; }
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546 $as_echo "no" >&6; }
5549 if test "x$ac_ct_STRIP" = x; then
5552 case $cross_compiling:$ac_tool_warned in
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5556 ac_tool_warned=yes ;;
5561 STRIP="$ac_cv_prog_STRIP"
5564 test -z "$STRIP" && STRIP=:
5571 if test -n "$ac_tool_prefix"; then
5572 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5573 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5575 $as_echo_n "checking for $ac_word... " >&6; }
5576 if ${ac_cv_prog_RANLIB+:} false; then :
5577 $as_echo_n "(cached) " >&6
5579 if test -n "$RANLIB"; then
5580 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 test -z "$as_dir" && as_dir=.
5587 for ac_exec_ext in '' $ac_executable_extensions; do
5588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5589 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5599 RANLIB=$ac_cv_prog_RANLIB
5600 if test -n "$RANLIB"; then
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5602 $as_echo "$RANLIB" >&6; }
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5605 $as_echo "no" >&6; }
5610 if test -z "$ac_cv_prog_RANLIB"; then
5611 ac_ct_RANLIB=$RANLIB
5612 # Extract the first word of "ranlib", so it can be a program name with args.
5613 set dummy ranlib; ac_word=$2
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5615 $as_echo_n "checking for $ac_word... " >&6; }
5616 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5617 $as_echo_n "(cached) " >&6
5619 if test -n "$ac_ct_RANLIB"; then
5620 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 test -z "$as_dir" && as_dir=.
5627 for ac_exec_ext in '' $ac_executable_extensions; do
5628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5629 ac_cv_prog_ac_ct_RANLIB="ranlib"
5630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5639 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5640 if test -n "$ac_ct_RANLIB"; then
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5642 $as_echo "$ac_ct_RANLIB" >&6; }
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5645 $as_echo "no" >&6; }
5648 if test "x$ac_ct_RANLIB" = x; then
5651 case $cross_compiling:$ac_tool_warned in
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5655 ac_tool_warned=yes ;;
5657 RANLIB=$ac_ct_RANLIB
5660 RANLIB="$ac_cv_prog_RANLIB"
5663 test -z "$RANLIB" && RANLIB=:
5670 # Determine commands to create old-style static archives.
5671 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5672 old_postinstall_cmds='chmod 644 $oldlib'
5673 old_postuninstall_cmds=
5675 if test -n "$RANLIB"; then
5678 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5681 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5684 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5689 lock_old_archive_extraction=yes ;;
5691 lock_old_archive_extraction=no ;;
5732 # If no C compiler was specified, use CC.
5735 # If no C compiler flags were specified, use CFLAGS.
5736 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5738 # Allow CC to be a program name with arguments.
5742 # Check for command to grab the raw symbol name followed by C symbol from nm.
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5744 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5745 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5746 $as_echo_n "(cached) " >&6
5749 # These are sane defaults that work on at least a few old systems.
5750 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5752 # Character class describing NM global symbol codes.
5753 symcode='[BCDEGRST]'
5755 # Regexp to match symbols that can be accessed directly from C.
5756 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5758 # Define system-specific variables.
5763 cygwin* | mingw* | pw32* | cegcc*)
5764 symcode='[ABCDGISTW]'
5767 if test "$host_cpu" = ia64; then
5768 symcode='[ABCDEGRST]'
5772 symcode='[BCDEGRST]'
5775 symcode='[BCDEGQRST]'
5786 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5794 # If we're using GNU nm, then use its standard symbol codes.
5795 case `$NM -V 2>&1` in
5796 *GNU* | *'with BFD'*)
5797 symcode='[ABCDGIRSTW]' ;;
5800 # Transform an extracted symbol line into a proper C declaration.
5801 # Some systems (esp. on ia64) link data and code symbols differently,
5802 # so use this general approach.
5803 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5805 # Transform an extracted symbol line into symbol name and symbol address
5806 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5807 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'"
5809 # Handle CRLF in mingw tool chain
5813 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5817 # Try without a prefix underscore, then with it.
5818 for ac_symprfx in "" "_"; do
5820 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5821 symxfrm="\\1 $ac_symprfx\\2 \\2"
5823 # Write the raw and C identifiers.
5824 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5825 # Fake it for dumpbin and say T for any non-static function
5826 # and D for any global variable.
5827 # Also find C++ and __fastcall symbols from MSVC++,
5828 # which start with @ or ?.
5829 lt_cv_sys_global_symbol_pipe="$AWK '"\
5830 " {last_section=section; section=\$ 3};"\
5831 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5832 " \$ 0!~/External *\|/{next};"\
5833 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5834 " {if(hide[section]) next};"\
5835 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5836 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5837 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5838 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5839 " ' prfx=^$ac_symprfx"
5841 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5843 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5845 # Check to see that the pipe works correctly.
5849 cat > conftest.$ac_ext <<_LT_EOF
5854 void nm_test_func(void);
5855 void nm_test_func(void){}
5859 int main(){nm_test_var='a';nm_test_func();return(0);}
5862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5863 (eval $ac_compile) 2>&5
5865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5866 test $ac_status = 0; }; then
5867 # Now try to grab the symbols.
5869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5870 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5873 test $ac_status = 0; } && test -s "$nlist"; then
5874 # Try sorting and uniquifying the output.
5875 if sort "$nlist" | uniq > "$nlist"T; then
5876 mv -f "$nlist"T "$nlist"
5881 # Make sure that we snagged all the symbols we need.
5882 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5883 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5884 cat <<_LT_EOF > conftest.$ac_ext
5885 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5886 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5887 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5888 relocations are performed -- see ld's documentation on pseudo-relocs. */
5889 # define LT_DLSYM_CONST
5890 #elif defined(__osf__)
5891 /* This system does not cope well with relocations in const data. */
5892 # define LT_DLSYM_CONST
5894 # define LT_DLSYM_CONST const
5902 # Now generate the symbol file.
5903 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5905 cat <<_LT_EOF >> conftest.$ac_ext
5907 /* The mapping between symbol names and symbols. */
5908 LT_DLSYM_CONST struct {
5912 lt__PROGRAM__LTX_preloaded_symbols[] =
5914 { "@PROGRAM@", (void *) 0 },
5916 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5917 cat <<\_LT_EOF >> conftest.$ac_ext
5921 /* This works around a problem in FreeBSD linker */
5922 #ifdef FREEBSD_WORKAROUND
5923 static const void *lt_preloaded_setup() {
5924 return lt__PROGRAM__LTX_preloaded_symbols;
5932 # Now try linking the two files.
5933 mv conftest.$ac_objext conftstm.$ac_objext
5934 lt_globsym_save_LIBS=$LIBS
5935 lt_globsym_save_CFLAGS=$CFLAGS
5936 LIBS="conftstm.$ac_objext"
5937 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5939 (eval $ac_link) 2>&5
5941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5942 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5945 LIBS=$lt_globsym_save_LIBS
5946 CFLAGS=$lt_globsym_save_CFLAGS
5948 echo "cannot find nm_test_func in $nlist" >&5
5951 echo "cannot find nm_test_var in $nlist" >&5
5954 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5957 echo "$progname: failed program was:" >&5
5958 cat conftest.$ac_ext >&5
5960 rm -rf conftest* conftst*
5962 # Do not use the global_symbol_pipe unless it works.
5963 if test "$pipe_works" = yes; then
5966 lt_cv_sys_global_symbol_pipe=
5972 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5973 lt_cv_sys_global_symbol_to_cdecl=
5975 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5977 $as_echo "failed" >&6; }
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5980 $as_echo "ok" >&6; }
5983 # Response file support.
5984 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5985 nm_file_list_spec='@'
5986 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5987 nm_file_list_spec='@'
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6017 $as_echo_n "checking for sysroot... " >&6; }
6019 # Check whether --with-sysroot was given.
6020 if test "${with_sysroot+set}" = set; then :
6021 withval=$with_sysroot;
6028 case ${with_sysroot} in #(
6030 if test "$GCC" = yes; then
6031 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6035 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6041 $as_echo "${with_sysroot}" >&6; }
6042 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6047 $as_echo "${lt_sysroot:-no}" >&6; }
6053 # Check whether --enable-libtool-lock was given.
6054 if test "${enable_libtool_lock+set}" = set; then :
6055 enableval=$enable_libtool_lock;
6058 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6060 # Some flags need to be propagated to the compiler or linker for good
6064 # Find out which ABI we are using.
6065 echo 'int i;' > conftest.$ac_ext
6066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6067 (eval $ac_compile) 2>&5
6069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6070 test $ac_status = 0; }; then
6071 case `/usr/bin/file conftest.$ac_objext` in
6083 # Find out which ABI we are using.
6084 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6086 (eval $ac_compile) 2>&5
6088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6089 test $ac_status = 0; }; then
6090 if test "$lt_cv_prog_gnu_ld" = yes; then
6091 case `/usr/bin/file conftest.$ac_objext` in
6093 LD="${LD-ld} -melf32bsmip"
6096 LD="${LD-ld} -melf32bmipn32"
6099 LD="${LD-ld} -melf64bmip"
6103 case `/usr/bin/file conftest.$ac_objext` in
6119 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6120 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6121 # Find out which ABI we are using.
6122 echo 'int i;' > conftest.$ac_ext
6123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6124 (eval $ac_compile) 2>&5
6126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6127 test $ac_status = 0; }; then
6128 case `/usr/bin/file conftest.o` in
6131 x86_64-*kfreebsd*-gnu)
6132 LD="${LD-ld} -m elf_i386_fbsd"
6135 LD="${LD-ld} -m elf_i386"
6137 ppc64-*linux*|powerpc64-*linux*)
6138 LD="${LD-ld} -m elf32ppclinux"
6141 LD="${LD-ld} -m elf_s390"
6144 LD="${LD-ld} -m elf32_sparc"
6150 x86_64-*kfreebsd*-gnu)
6151 LD="${LD-ld} -m elf_x86_64_fbsd"
6154 LD="${LD-ld} -m elf_x86_64"
6156 ppc*-*linux*|powerpc*-*linux*)
6157 LD="${LD-ld} -m elf64ppc"
6159 s390*-*linux*|s390*-*tpf*)
6160 LD="${LD-ld} -m elf64_s390"
6163 LD="${LD-ld} -m elf64_sparc"
6173 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6174 SAVE_CFLAGS="$CFLAGS"
6175 CFLAGS="$CFLAGS -belf"
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6177 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6178 if ${lt_cv_cc_needs_belf+:} false; then :
6179 $as_echo_n "(cached) " >&6
6182 ac_cpp='$CPP $CPPFLAGS'
6183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h. */
6198 if ac_fn_c_try_link "$LINENO"; then :
6199 lt_cv_cc_needs_belf=yes
6201 lt_cv_cc_needs_belf=no
6203 rm -f core conftest.err conftest.$ac_objext \
6204 conftest$ac_exeext conftest.$ac_ext
6206 ac_cpp='$CPP $CPPFLAGS'
6207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6213 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6214 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6215 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6216 CFLAGS="$SAVE_CFLAGS"
6220 # Find out which ABI we are using.
6221 echo 'int i;' > conftest.$ac_ext
6222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6223 (eval $ac_compile) 2>&5
6225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6226 test $ac_status = 0; }; then
6227 case `/usr/bin/file conftest.o` in
6229 case $lt_cv_prog_gnu_ld in
6230 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6232 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6244 need_locks="$enable_libtool_lock"
6246 if test -n "$ac_tool_prefix"; then
6247 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6248 set dummy ${ac_tool_prefix}mt; ac_word=$2
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6250 $as_echo_n "checking for $ac_word... " >&6; }
6251 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6252 $as_echo_n "(cached) " >&6
6254 if test -n "$MANIFEST_TOOL"; then
6255 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 test -z "$as_dir" && as_dir=.
6262 for ac_exec_ext in '' $ac_executable_extensions; do
6263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6264 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6274 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6275 if test -n "$MANIFEST_TOOL"; then
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6277 $as_echo "$MANIFEST_TOOL" >&6; }
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280 $as_echo "no" >&6; }
6285 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6286 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6287 # Extract the first word of "mt", so it can be a program name with args.
6288 set dummy mt; ac_word=$2
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290 $as_echo_n "checking for $ac_word... " >&6; }
6291 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6292 $as_echo_n "(cached) " >&6
6294 if test -n "$ac_ct_MANIFEST_TOOL"; then
6295 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6304 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6314 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6315 if test -n "$ac_ct_MANIFEST_TOOL"; then
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6317 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 $as_echo "no" >&6; }
6323 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6326 case $cross_compiling:$ac_tool_warned in
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6330 ac_tool_warned=yes ;;
6332 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6335 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6338 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6340 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6341 if ${lt_cv_path_mainfest_tool+:} false; then :
6342 $as_echo_n "(cached) " >&6
6344 lt_cv_path_mainfest_tool=no
6345 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6346 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6347 cat conftest.err >&5
6348 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6349 lt_cv_path_mainfest_tool=yes
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6354 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6355 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6365 rhapsody* | darwin*)
6366 if test -n "$ac_tool_prefix"; then
6367 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6368 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6370 $as_echo_n "checking for $ac_word... " >&6; }
6371 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6372 $as_echo_n "(cached) " >&6
6374 if test -n "$DSYMUTIL"; then
6375 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 test -z "$as_dir" && as_dir=.
6382 for ac_exec_ext in '' $ac_executable_extensions; do
6383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6384 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6394 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6395 if test -n "$DSYMUTIL"; then
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6397 $as_echo "$DSYMUTIL" >&6; }
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6400 $as_echo "no" >&6; }
6405 if test -z "$ac_cv_prog_DSYMUTIL"; then
6406 ac_ct_DSYMUTIL=$DSYMUTIL
6407 # Extract the first word of "dsymutil", so it can be a program name with args.
6408 set dummy dsymutil; ac_word=$2
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6410 $as_echo_n "checking for $ac_word... " >&6; }
6411 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6412 $as_echo_n "(cached) " >&6
6414 if test -n "$ac_ct_DSYMUTIL"; then
6415 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 test -z "$as_dir" && as_dir=.
6422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6424 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6434 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6435 if test -n "$ac_ct_DSYMUTIL"; then
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6437 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6440 $as_echo "no" >&6; }
6443 if test "x$ac_ct_DSYMUTIL" = x; then
6446 case $cross_compiling:$ac_tool_warned in
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6450 ac_tool_warned=yes ;;
6452 DSYMUTIL=$ac_ct_DSYMUTIL
6455 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6458 if test -n "$ac_tool_prefix"; then
6459 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6460 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462 $as_echo_n "checking for $ac_word... " >&6; }
6463 if ${ac_cv_prog_NMEDIT+:} false; then :
6464 $as_echo_n "(cached) " >&6
6466 if test -n "$NMEDIT"; then
6467 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 test -z "$as_dir" && as_dir=.
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6476 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 NMEDIT=$ac_cv_prog_NMEDIT
6487 if test -n "$NMEDIT"; then
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6489 $as_echo "$NMEDIT" >&6; }
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6497 if test -z "$ac_cv_prog_NMEDIT"; then
6498 ac_ct_NMEDIT=$NMEDIT
6499 # Extract the first word of "nmedit", so it can be a program name with args.
6500 set dummy nmedit; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6504 $as_echo_n "(cached) " >&6
6506 if test -n "$ac_ct_NMEDIT"; then
6507 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6516 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6527 if test -n "$ac_ct_NMEDIT"; then
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6529 $as_echo "$ac_ct_NMEDIT" >&6; }
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6535 if test "x$ac_ct_NMEDIT" = x; then
6538 case $cross_compiling:$ac_tool_warned in
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6542 ac_tool_warned=yes ;;
6544 NMEDIT=$ac_ct_NMEDIT
6547 NMEDIT="$ac_cv_prog_NMEDIT"
6550 if test -n "$ac_tool_prefix"; then
6551 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6552 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554 $as_echo_n "checking for $ac_word... " >&6; }
6555 if ${ac_cv_prog_LIPO+:} false; then :
6556 $as_echo_n "(cached) " >&6
6558 if test -n "$LIPO"; then
6559 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6568 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6578 LIPO=$ac_cv_prog_LIPO
6579 if test -n "$LIPO"; then
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6581 $as_echo "$LIPO" >&6; }
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584 $as_echo "no" >&6; }
6589 if test -z "$ac_cv_prog_LIPO"; then
6591 # Extract the first word of "lipo", so it can be a program name with args.
6592 set dummy lipo; ac_word=$2
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6594 $as_echo_n "checking for $ac_word... " >&6; }
6595 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6596 $as_echo_n "(cached) " >&6
6598 if test -n "$ac_ct_LIPO"; then
6599 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 test -z "$as_dir" && as_dir=.
6606 for ac_exec_ext in '' $ac_executable_extensions; do
6607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6608 ac_cv_prog_ac_ct_LIPO="lipo"
6609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6618 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6619 if test -n "$ac_ct_LIPO"; then
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6621 $as_echo "$ac_ct_LIPO" >&6; }
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6624 $as_echo "no" >&6; }
6627 if test "x$ac_ct_LIPO" = x; then
6630 case $cross_compiling:$ac_tool_warned in
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6634 ac_tool_warned=yes ;;
6639 LIPO="$ac_cv_prog_LIPO"
6642 if test -n "$ac_tool_prefix"; then
6643 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6644 set dummy ${ac_tool_prefix}otool; ac_word=$2
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646 $as_echo_n "checking for $ac_word... " >&6; }
6647 if ${ac_cv_prog_OTOOL+:} false; then :
6648 $as_echo_n "(cached) " >&6
6650 if test -n "$OTOOL"; then
6651 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 test -z "$as_dir" && as_dir=.
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6660 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6670 OTOOL=$ac_cv_prog_OTOOL
6671 if test -n "$OTOOL"; then
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6673 $as_echo "$OTOOL" >&6; }
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676 $as_echo "no" >&6; }
6681 if test -z "$ac_cv_prog_OTOOL"; then
6683 # Extract the first word of "otool", so it can be a program name with args.
6684 set dummy otool; ac_word=$2
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6686 $as_echo_n "checking for $ac_word... " >&6; }
6687 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6688 $as_echo_n "(cached) " >&6
6690 if test -n "$ac_ct_OTOOL"; then
6691 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 test -z "$as_dir" && as_dir=.
6698 for ac_exec_ext in '' $ac_executable_extensions; do
6699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6700 ac_cv_prog_ac_ct_OTOOL="otool"
6701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6710 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6711 if test -n "$ac_ct_OTOOL"; then
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6713 $as_echo "$ac_ct_OTOOL" >&6; }
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6716 $as_echo "no" >&6; }
6719 if test "x$ac_ct_OTOOL" = x; then
6722 case $cross_compiling:$ac_tool_warned in
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6726 ac_tool_warned=yes ;;
6731 OTOOL="$ac_cv_prog_OTOOL"
6734 if test -n "$ac_tool_prefix"; then
6735 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6736 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6738 $as_echo_n "checking for $ac_word... " >&6; }
6739 if ${ac_cv_prog_OTOOL64+:} false; then :
6740 $as_echo_n "(cached) " >&6
6742 if test -n "$OTOOL64"; then
6743 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6752 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6762 OTOOL64=$ac_cv_prog_OTOOL64
6763 if test -n "$OTOOL64"; then
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6765 $as_echo "$OTOOL64" >&6; }
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768 $as_echo "no" >&6; }
6773 if test -z "$ac_cv_prog_OTOOL64"; then
6774 ac_ct_OTOOL64=$OTOOL64
6775 # Extract the first word of "otool64", so it can be a program name with args.
6776 set dummy otool64; ac_word=$2
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6778 $as_echo_n "checking for $ac_word... " >&6; }
6779 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6780 $as_echo_n "(cached) " >&6
6782 if test -n "$ac_ct_OTOOL64"; then
6783 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789 test -z "$as_dir" && as_dir=.
6790 for ac_exec_ext in '' $ac_executable_extensions; do
6791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6792 ac_cv_prog_ac_ct_OTOOL64="otool64"
6793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6802 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6803 if test -n "$ac_ct_OTOOL64"; then
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6805 $as_echo "$ac_ct_OTOOL64" >&6; }
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6808 $as_echo "no" >&6; }
6811 if test "x$ac_ct_OTOOL64" = x; then
6814 case $cross_compiling:$ac_tool_warned in
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6818 ac_tool_warned=yes ;;
6820 OTOOL64=$ac_ct_OTOOL64
6823 OTOOL64="$ac_cv_prog_OTOOL64"
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6853 $as_echo_n "checking for -single_module linker flag... " >&6; }
6854 if ${lt_cv_apple_cc_single_mod+:} false; then :
6855 $as_echo_n "(cached) " >&6
6857 lt_cv_apple_cc_single_mod=no
6858 if test -z "${LT_MULTI_MODULE}"; then
6859 # By default we will add the -single_module flag. You can override
6860 # by either setting the environment variable LT_MULTI_MODULE
6861 # non-empty at configure time, or by adding -multi_module to the
6863 rm -rf libconftest.dylib*
6864 echo "int foo(void){return 1;}" > conftest.c
6865 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6866 -dynamiclib -Wl,-single_module conftest.c" >&5
6867 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6868 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6870 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6871 lt_cv_apple_cc_single_mod=yes
6873 cat conftest.err >&5
6875 rm -rf libconftest.dylib*
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6880 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6882 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6883 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6884 $as_echo_n "(cached) " >&6
6886 lt_cv_ld_exported_symbols_list=no
6887 save_LDFLAGS=$LDFLAGS
6888 echo "_main" > conftest.sym
6889 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h. */
6901 if ac_fn_c_try_link "$LINENO"; then :
6902 lt_cv_ld_exported_symbols_list=yes
6904 lt_cv_ld_exported_symbols_list=no
6906 rm -f core conftest.err conftest.$ac_objext \
6907 conftest$ac_exeext conftest.$ac_ext
6908 LDFLAGS="$save_LDFLAGS"
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6912 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6914 $as_echo_n "checking for -force_load linker flag... " >&6; }
6915 if ${lt_cv_ld_force_load+:} false; then :
6916 $as_echo_n "(cached) " >&6
6918 lt_cv_ld_force_load=no
6919 cat > conftest.c << _LT_EOF
6920 int forced_loaded() { return 2;}
6922 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6923 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6924 echo "$AR cru libconftest.a conftest.o" >&5
6925 $AR cru libconftest.a conftest.o 2>&5
6926 echo "$RANLIB libconftest.a" >&5
6927 $RANLIB libconftest.a 2>&5
6928 cat > conftest.c << _LT_EOF
6929 int main() { return 0;}
6931 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6932 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6934 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6935 lt_cv_ld_force_load=yes
6937 cat conftest.err >&5
6939 rm -f conftest.err libconftest.a conftest conftest.c
6940 rm -rf conftest.dSYM
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6944 $as_echo "$lt_cv_ld_force_load" >&6; }
6946 rhapsody* | darwin1.[012])
6947 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6949 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6950 darwin*) # darwin 5.x on
6951 # if running on 10.5 or later, the deployment target defaults
6952 # to the OS version, if on x86, and 10.4, the deployment
6953 # target defaults to 10.4. Don't you love it?
6954 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6955 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6956 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6958 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6960 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6964 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6965 _lt_dar_single_mod='$single_module'
6967 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6968 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6970 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6972 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6973 _lt_dsymutil='~$DSYMUTIL $lib || :'
6981 ac_cpp='$CPP $CPPFLAGS'
6982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6986 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6987 # On Suns, sometimes $CPP names a directory.
6988 if test -n "$CPP" && test -d "$CPP"; then
6991 if test -z "$CPP"; then
6992 if ${ac_cv_prog_CPP+:} false; then :
6993 $as_echo_n "(cached) " >&6
6995 # Double quotes because CPP needs to be expanded
6996 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6999 for ac_c_preproc_warn_flag in '' yes
7001 # Use a header file that comes with gcc, so configuring glibc
7002 # with a fresh cross-compiler works.
7003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7004 # <limits.h> exists even on freestanding compilers.
7005 # On the NeXT, cc -E runs the code through the compiler's parser,
7006 # not just through cpp. "Syntax error" is here to catch this case.
7007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7008 /* end confdefs.h. */
7010 # include <limits.h>
7012 # include <assert.h>
7016 if ac_fn_c_try_cpp "$LINENO"; then :
7019 # Broken: fails on valid input.
7022 rm -f conftest.err conftest.i conftest.$ac_ext
7024 # OK, works on sane cases. Now check whether nonexistent headers
7025 # can be detected and how.
7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h. */
7028 #include <ac_nonexistent.h>
7030 if ac_fn_c_try_cpp "$LINENO"; then :
7031 # Broken: success on invalid input.
7034 # Passes both tests.
7038 rm -f conftest.err conftest.i conftest.$ac_ext
7041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7042 rm -f conftest.i conftest.err conftest.$ac_ext
7043 if $ac_preproc_ok; then :
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7056 $as_echo "$CPP" >&6; }
7058 for ac_c_preproc_warn_flag in '' yes
7060 # Use a header file that comes with gcc, so configuring glibc
7061 # with a fresh cross-compiler works.
7062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7063 # <limits.h> exists even on freestanding compilers.
7064 # On the NeXT, cc -E runs the code through the compiler's parser,
7065 # not just through cpp. "Syntax error" is here to catch this case.
7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7069 # include <limits.h>
7071 # include <assert.h>
7075 if ac_fn_c_try_cpp "$LINENO"; then :
7078 # Broken: fails on valid input.
7081 rm -f conftest.err conftest.i conftest.$ac_ext
7083 # OK, works on sane cases. Now check whether nonexistent headers
7084 # can be detected and how.
7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7086 /* end confdefs.h. */
7087 #include <ac_nonexistent.h>
7089 if ac_fn_c_try_cpp "$LINENO"; then :
7090 # Broken: success on invalid input.
7093 # Passes both tests.
7097 rm -f conftest.err conftest.i conftest.$ac_ext
7100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7101 rm -f conftest.i conftest.err conftest.$ac_ext
7102 if $ac_preproc_ok; then :
7105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7107 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7108 See \`config.log' for more details" "$LINENO" 5; }
7112 ac_cpp='$CPP $CPPFLAGS'
7113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7119 $as_echo_n "checking for ANSI C header files... " >&6; }
7120 if ${ac_cv_header_stdc+:} false; then :
7121 $as_echo_n "(cached) " >&6
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h. */
7138 if ac_fn_c_try_compile "$LINENO"; then :
7139 ac_cv_header_stdc=yes
7141 ac_cv_header_stdc=no
7143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7145 if test $ac_cv_header_stdc = yes; then
7146 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h. */
7152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7153 $EGREP "memchr" >/dev/null 2>&1; then :
7156 ac_cv_header_stdc=no
7162 if test $ac_cv_header_stdc = yes; then
7163 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7165 /* end confdefs.h. */
7169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7170 $EGREP "free" >/dev/null 2>&1; then :
7173 ac_cv_header_stdc=no
7179 if test $ac_cv_header_stdc = yes; then
7180 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7181 if test "$cross_compiling" = yes; then :
7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185 /* end confdefs.h. */
7188 #if ((' ' & 0x0FF) == 0x020)
7189 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7190 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7192 # define ISLOWER(c) \
7193 (('a' <= (c) && (c) <= 'i') \
7194 || ('j' <= (c) && (c) <= 'r') \
7195 || ('s' <= (c) && (c) <= 'z'))
7196 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7199 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7204 for (i = 0; i < 256; i++)
7205 if (XOR (islower (i), ISLOWER (i))
7206 || toupper (i) != TOUPPER (i))
7211 if ac_fn_c_try_run "$LINENO"; then :
7214 ac_cv_header_stdc=no
7216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7217 conftest.$ac_objext conftest.beam conftest.$ac_ext
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7223 $as_echo "$ac_cv_header_stdc" >&6; }
7224 if test $ac_cv_header_stdc = yes; then
7226 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7230 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7231 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7232 inttypes.h stdint.h unistd.h
7234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7235 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7237 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7238 cat >>confdefs.h <<_ACEOF
7239 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7247 for ac_header in dlfcn.h
7249 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7251 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7252 cat >>confdefs.h <<_ACEOF
7253 #define HAVE_DLFCN_H 1
7274 # Check whether --enable-shared was given.
7275 if test "${enable_shared+set}" = set; then :
7276 enableval=$enable_shared; p=${PACKAGE-default}
7278 yes) enable_shared=yes ;;
7279 no) enable_shared=no ;;
7282 # Look at the argument we got. We use all the common list separators.
7283 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7284 for pkg in $enableval; do
7286 if test "X$pkg" = "X$p"; then
7305 # Check whether --enable-static was given.
7306 if test "${enable_static+set}" = set; then :
7307 enableval=$enable_static; p=${PACKAGE-default}
7309 yes) enable_static=yes ;;
7310 no) enable_static=no ;;
7313 # Look at the argument we got. We use all the common list separators.
7314 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7315 for pkg in $enableval; do
7317 if test "X$pkg" = "X$p"; then
7337 # Check whether --with-pic was given.
7338 if test "${with_pic+set}" = set; then :
7339 withval=$with_pic; pic_mode="$withval"
7345 test -z "$pic_mode" && pic_mode=default
7353 # Check whether --enable-fast-install was given.
7354 if test "${enable_fast_install+set}" = set; then :
7355 enableval=$enable_fast_install; p=${PACKAGE-default}
7357 yes) enable_fast_install=yes ;;
7358 no) enable_fast_install=no ;;
7360 enable_fast_install=no
7361 # Look at the argument we got. We use all the common list separators.
7362 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7363 for pkg in $enableval; do
7365 if test "X$pkg" = "X$p"; then
7366 enable_fast_install=yes
7373 enable_fast_install=yes
7386 # This can be used to rebuild libtool when needed
7387 LIBTOOL_DEPS="$ltmain"
7389 # Always use our own libtool.
7390 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7417 test -z "$LN_S" && LN_S="ln -s"
7432 if test -n "${ZSH_VERSION+set}" ; then
7433 setopt NO_GLOB_SUBST
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7437 $as_echo_n "checking for objdir... " >&6; }
7438 if ${lt_cv_objdir+:} false; then :
7439 $as_echo_n "(cached) " >&6
7441 rm -f .libs 2>/dev/null
7442 mkdir .libs 2>/dev/null
7443 if test -d .libs; then
7446 # MS-DOS does not allow filenames that begin with a dot.
7449 rmdir .libs 2>/dev/null
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7452 $as_echo "$lt_cv_objdir" >&6; }
7453 objdir=$lt_cv_objdir
7459 cat >>confdefs.h <<_ACEOF
7460 #define LT_OBJDIR "$lt_cv_objdir/"
7468 # AIX sometimes has problems with the GCC collect2 program. For some
7469 # reason, if we set the COLLECT_NAMES environment variable, the problems
7470 # vanish in a puff of smoke.
7471 if test "X${COLLECT_NAMES+set}" != Xset; then
7473 export COLLECT_NAMES
7480 can_build_shared=yes
7482 # All known linkers require a `.a' archive for static linking (except MSVC,
7483 # which needs '.lib').
7486 with_gnu_ld="$lt_cv_prog_gnu_ld"
7489 old_CFLAGS="$CFLAGS"
7491 # Set sane defaults for various variables
7492 test -z "$CC" && CC=cc
7493 test -z "$LTCC" && LTCC=$CC
7494 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7495 test -z "$LD" && LD=ld
7496 test -z "$ac_objext" && ac_objext=o
7498 for cc_temp in $compiler""; do
7500 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7501 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7506 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7509 # Only perform the check for file, if the check method requires it
7510 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7511 case $deplibs_check_method in
7513 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7515 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7516 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7517 $as_echo_n "(cached) " >&6
7521 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7524 lt_save_MAGIC_CMD="$MAGIC_CMD"
7525 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7526 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7527 for ac_dir in $ac_dummy; do
7529 test -z "$ac_dir" && ac_dir=.
7530 if test -f $ac_dir/${ac_tool_prefix}file; then
7531 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7532 if test -n "$file_magic_test_file"; then
7533 case $deplibs_check_method in
7535 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7536 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7537 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7538 $EGREP "$file_magic_regex" > /dev/null; then
7543 *** Warning: the command libtool uses to detect shared libraries,
7544 *** $file_magic_cmd, produces output that libtool cannot recognize.
7545 *** The result is that libtool may fail to recognize shared libraries
7546 *** as such. This will affect the creation of libtool libraries that
7547 *** depend on shared libraries, but programs linked with such libtool
7548 *** libraries will work regardless of this problem. Nevertheless, you
7549 *** may want to report the problem to your system manager and/or to
7550 *** bug-libtool@gnu.org
7560 MAGIC_CMD="$lt_save_MAGIC_CMD"
7565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7566 if test -n "$MAGIC_CMD"; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7568 $as_echo "$MAGIC_CMD" >&6; }
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7578 if test -z "$lt_cv_path_MAGIC_CMD"; then
7579 if test -n "$ac_tool_prefix"; then
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7581 $as_echo_n "checking for file... " >&6; }
7582 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7583 $as_echo_n "(cached) " >&6
7587 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7590 lt_save_MAGIC_CMD="$MAGIC_CMD"
7591 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7592 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7593 for ac_dir in $ac_dummy; do
7595 test -z "$ac_dir" && ac_dir=.
7596 if test -f $ac_dir/file; then
7597 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7598 if test -n "$file_magic_test_file"; then
7599 case $deplibs_check_method in
7601 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7602 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7603 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7604 $EGREP "$file_magic_regex" > /dev/null; then
7609 *** Warning: the command libtool uses to detect shared libraries,
7610 *** $file_magic_cmd, produces output that libtool cannot recognize.
7611 *** The result is that libtool may fail to recognize shared libraries
7612 *** as such. This will affect the creation of libtool libraries that
7613 *** depend on shared libraries, but programs linked with such libtool
7614 *** libraries will work regardless of this problem. Nevertheless, you
7615 *** may want to report the problem to your system manager and/or to
7616 *** bug-libtool@gnu.org
7626 MAGIC_CMD="$lt_save_MAGIC_CMD"
7631 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7632 if test -n "$MAGIC_CMD"; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7634 $as_echo "$MAGIC_CMD" >&6; }
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7650 # Use C for the default configuration in the libtool script
7654 ac_cpp='$CPP $CPPFLAGS'
7655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7660 # Source file extension for C test sources.
7663 # Object file extension for compiled C test sources.
7667 # Code to be used in simple compile tests
7668 lt_simple_compile_test_code="int some_variable = 0;"
7670 # Code to be used in simple link tests
7671 lt_simple_link_test_code='int main(){return(0);}'
7679 # If no C compiler was specified, use CC.
7682 # If no C compiler flags were specified, use CFLAGS.
7683 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7685 # Allow CC to be a program name with arguments.
7688 # Save the default compiler, since it gets overwritten when the other
7689 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7690 compiler_DEFAULT=$CC
7692 # save warnings/boilerplate of simple test code
7693 ac_outfile=conftest.$ac_objext
7694 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7695 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7696 _lt_compiler_boilerplate=`cat conftest.err`
7699 ac_outfile=conftest.$ac_objext
7700 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7701 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7702 _lt_linker_boilerplate=`cat conftest.err`
7706 if test -n "$compiler"; then
7708 lt_prog_compiler_no_builtin_flag=
7710 if test "$GCC" = yes; then
7711 case $cc_basename in
7713 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7715 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7719 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7720 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7721 $as_echo_n "(cached) " >&6
7723 lt_cv_prog_compiler_rtti_exceptions=no
7724 ac_outfile=conftest.$ac_objext
7725 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7726 lt_compiler_flag="-fno-rtti -fno-exceptions"
7727 # Insert the option either (1) after the last *FLAGS variable, or
7728 # (2) before a word containing "conftest.", or (3) at the end.
7729 # Note that $ac_compile itself does not contain backslashes and begins
7730 # with a dollar sign (not a hyphen), so the echo should work correctly.
7731 # The option is referenced via a variable to avoid confusing sed.
7732 lt_compile=`echo "$ac_compile" | $SED \
7733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7735 -e 's:$: $lt_compiler_flag:'`
7736 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7737 (eval "$lt_compile" 2>conftest.err)
7739 cat conftest.err >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 if (exit $ac_status) && test -s "$ac_outfile"; then
7742 # The compiler can only warn and ignore the option if not recognized
7743 # So say no if there are warnings other than the usual output.
7744 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7745 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7746 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7747 lt_cv_prog_compiler_rtti_exceptions=yes
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7754 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7756 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7757 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7769 lt_prog_compiler_wl=
7770 lt_prog_compiler_pic=
7771 lt_prog_compiler_static=
7774 if test "$GCC" = yes; then
7775 lt_prog_compiler_wl='-Wl,'
7776 lt_prog_compiler_static='-static'
7780 # All AIX code is PIC.
7781 if test "$host_cpu" = ia64; then
7782 # AIX 5 now supports IA64 processor
7783 lt_prog_compiler_static='-Bstatic'
7790 # see comment about AmigaOS4 .so support
7791 lt_prog_compiler_pic='-fPIC'
7794 # FIXME: we need at least 68020 code to build shared libraries, but
7795 # adding the `-m68020' flag to GCC prevents building anything better,
7797 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7802 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7803 # PIC is the default for these OSes.
7806 mingw* | cygwin* | pw32* | os2* | cegcc*)
7807 # This hack is so that the source file can tell whether it is being
7808 # built for inclusion in a dll (and should export symbols for example).
7809 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7810 # (--disable-auto-import) libraries
7811 lt_prog_compiler_pic='-DDLL_EXPORT'
7814 darwin* | rhapsody*)
7815 # PIC is the default on this platform
7816 # Common symbols not allowed in MH_DYLIB files
7817 lt_prog_compiler_pic='-fno-common'
7821 # PIC is the default for Haiku.
7822 # The "-static" flag exists, but is broken.
7823 lt_prog_compiler_static=
7827 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7828 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7829 # sets the default TLS model and affects inlining.
7835 lt_prog_compiler_pic='-fPIC'
7841 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7842 # Instead, we relocate shared libraries at runtime.
7846 # Just because we use GCC doesn't mean we suddenly get shared libraries
7847 # on systems that don't support them.
7848 lt_prog_compiler_can_build_shared=no
7853 # QNX uses GNU C++, but need to define -shared option too, otherwise
7855 lt_prog_compiler_pic='-fPIC -shared'
7859 if test -d /usr/nec; then
7860 lt_prog_compiler_pic=-Kconform_pic
7865 lt_prog_compiler_pic='-fPIC'
7869 case $cc_basename in
7870 nvcc*) # Cuda Compiler Driver 2.2
7871 lt_prog_compiler_wl='-Xlinker '
7872 lt_prog_compiler_pic='-Xcompiler -fPIC'
7876 # PORTME Check for flag to pass linker flags through the system compiler.
7879 lt_prog_compiler_wl='-Wl,'
7880 if test "$host_cpu" = ia64; then
7881 # AIX 5 now supports IA64 processor
7882 lt_prog_compiler_static='-Bstatic'
7884 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7888 mingw* | cygwin* | pw32* | os2* | cegcc*)
7889 # This hack is so that the source file can tell whether it is being
7890 # built for inclusion in a dll (and should export symbols for example).
7891 lt_prog_compiler_pic='-DDLL_EXPORT'
7894 hpux9* | hpux10* | hpux11*)
7895 lt_prog_compiler_wl='-Wl,'
7896 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7903 lt_prog_compiler_pic='+Z'
7906 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7907 lt_prog_compiler_static='${wl}-a ${wl}archive'
7910 irix5* | irix6* | nonstopux*)
7911 lt_prog_compiler_wl='-Wl,'
7912 # PIC (with -KPIC) is the default.
7913 lt_prog_compiler_static='-non_shared'
7916 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7917 case $cc_basename in
7918 # old Intel for x86_64 which still supported -KPIC.
7920 lt_prog_compiler_wl='-Wl,'
7921 lt_prog_compiler_pic='-KPIC'
7922 lt_prog_compiler_static='-static'
7924 # icc used to be incompatible with GCC.
7925 # ICC 10 doesn't accept -KPIC any more.
7927 lt_prog_compiler_wl='-Wl,'
7928 lt_prog_compiler_pic='-fPIC'
7929 lt_prog_compiler_static='-static'
7931 # Lahey Fortran 8.1.
7933 lt_prog_compiler_wl='-Wl,'
7934 lt_prog_compiler_pic='--shared'
7935 lt_prog_compiler_static='--static'
7938 # NAG Fortran compiler
7939 lt_prog_compiler_wl='-Wl,-Wl,,'
7940 lt_prog_compiler_pic='-PIC'
7941 lt_prog_compiler_static='-Bstatic'
7943 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7944 # Portland Group compilers (*not* the Pentium gcc compiler,
7945 # which looks to be a dead project)
7946 lt_prog_compiler_wl='-Wl,'
7947 lt_prog_compiler_pic='-fpic'
7948 lt_prog_compiler_static='-Bstatic'
7951 lt_prog_compiler_wl='-Wl,'
7952 # All Alpha code is PIC.
7953 lt_prog_compiler_static='-non_shared'
7955 xl* | bgxl* | bgf* | mpixl*)
7956 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7957 lt_prog_compiler_wl='-Wl,'
7958 lt_prog_compiler_pic='-qpic'
7959 lt_prog_compiler_static='-qstaticlink'
7962 case `$CC -V 2>&1 | sed 5q` in
7963 *Sun\ F* | *Sun*Fortran*)
7964 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7965 lt_prog_compiler_pic='-KPIC'
7966 lt_prog_compiler_static='-Bstatic'
7967 lt_prog_compiler_wl=''
7971 lt_prog_compiler_pic='-KPIC'
7972 lt_prog_compiler_static='-Bstatic'
7973 lt_prog_compiler_wl='-Wl,'
7981 lt_prog_compiler_pic='-KPIC'
7982 lt_prog_compiler_static='-Bstatic'
7986 # QNX uses GNU C++, but need to define -shared option too, otherwise
7988 lt_prog_compiler_pic='-fPIC -shared'
7991 osf3* | osf4* | osf5*)
7992 lt_prog_compiler_wl='-Wl,'
7993 # All OSF/1 code is PIC.
7994 lt_prog_compiler_static='-non_shared'
7998 lt_prog_compiler_static='-non_shared'
8002 lt_prog_compiler_pic='-KPIC'
8003 lt_prog_compiler_static='-Bstatic'
8004 case $cc_basename in
8005 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8006 lt_prog_compiler_wl='-Qoption ld ';;
8008 lt_prog_compiler_wl='-Wl,';;
8013 lt_prog_compiler_wl='-Qoption ld '
8014 lt_prog_compiler_pic='-PIC'
8015 lt_prog_compiler_static='-Bstatic'
8018 sysv4 | sysv4.2uw2* | sysv4.3*)
8019 lt_prog_compiler_wl='-Wl,'
8020 lt_prog_compiler_pic='-KPIC'
8021 lt_prog_compiler_static='-Bstatic'
8025 if test -d /usr/nec ;then
8026 lt_prog_compiler_pic='-Kconform_pic'
8027 lt_prog_compiler_static='-Bstatic'
8031 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8032 lt_prog_compiler_wl='-Wl,'
8033 lt_prog_compiler_pic='-KPIC'
8034 lt_prog_compiler_static='-Bstatic'
8038 lt_prog_compiler_wl='-Wl,'
8039 lt_prog_compiler_can_build_shared=no
8043 lt_prog_compiler_pic='-pic'
8044 lt_prog_compiler_static='-Bstatic'
8048 lt_prog_compiler_can_build_shared=no
8054 # For platforms which do not support PIC, -DPIC is meaningless:
8056 lt_prog_compiler_pic=
8059 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8064 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8065 if ${lt_cv_prog_compiler_pic+:} false; then :
8066 $as_echo_n "(cached) " >&6
8068 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8071 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8072 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8075 # Check to make sure the PIC flag actually works.
8077 if test -n "$lt_prog_compiler_pic"; then
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8079 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8080 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8081 $as_echo_n "(cached) " >&6
8083 lt_cv_prog_compiler_pic_works=no
8084 ac_outfile=conftest.$ac_objext
8085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8086 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8087 # Insert the option either (1) after the last *FLAGS variable, or
8088 # (2) before a word containing "conftest.", or (3) at the end.
8089 # Note that $ac_compile itself does not contain backslashes and begins
8090 # with a dollar sign (not a hyphen), so the echo should work correctly.
8091 # The option is referenced via a variable to avoid confusing sed.
8092 lt_compile=`echo "$ac_compile" | $SED \
8093 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8095 -e 's:$: $lt_compiler_flag:'`
8096 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8097 (eval "$lt_compile" 2>conftest.err)
8099 cat conftest.err >&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 if (exit $ac_status) && test -s "$ac_outfile"; then
8102 # The compiler can only warn and ignore the option if not recognized
8103 # So say no if there are warnings other than the usual output.
8104 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8105 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8106 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8107 lt_cv_prog_compiler_pic_works=yes
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8114 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8116 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8117 case $lt_prog_compiler_pic in
8119 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8122 lt_prog_compiler_pic=
8123 lt_prog_compiler_can_build_shared=no
8139 # Check to make sure the static flag actually works.
8141 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8143 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8144 if ${lt_cv_prog_compiler_static_works+:} false; then :
8145 $as_echo_n "(cached) " >&6
8147 lt_cv_prog_compiler_static_works=no
8148 save_LDFLAGS="$LDFLAGS"
8149 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8150 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8151 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8152 # The linker can only warn and ignore the option if not recognized
8153 # So say no if there are warnings
8154 if test -s conftest.err; then
8155 # Append any errors to the config.log.
8156 cat conftest.err 1>&5
8157 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8158 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8159 if diff conftest.exp conftest.er2 >/dev/null; then
8160 lt_cv_prog_compiler_static_works=yes
8163 lt_cv_prog_compiler_static_works=yes
8167 LDFLAGS="$save_LDFLAGS"
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8171 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8173 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8176 lt_prog_compiler_static=
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8186 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8187 if ${lt_cv_prog_compiler_c_o+:} false; then :
8188 $as_echo_n "(cached) " >&6
8190 lt_cv_prog_compiler_c_o=no
8191 $RM -r conftest 2>/dev/null
8195 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8197 lt_compiler_flag="-o out/conftest2.$ac_objext"
8198 # Insert the option either (1) after the last *FLAGS variable, or
8199 # (2) before a word containing "conftest.", or (3) at the end.
8200 # Note that $ac_compile itself does not contain backslashes and begins
8201 # with a dollar sign (not a hyphen), so the echo should work correctly.
8202 lt_compile=`echo "$ac_compile" | $SED \
8203 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8204 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8205 -e 's:$: $lt_compiler_flag:'`
8206 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8207 (eval "$lt_compile" 2>out/conftest.err)
8209 cat out/conftest.err >&5
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8213 # The compiler can only warn and ignore the option if not recognized
8214 # So say no if there are warnings
8215 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8216 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8217 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8218 lt_cv_prog_compiler_c_o=yes
8223 # SGI C++ compiler will create directory out/ii_files/ for
8224 # template instantiation
8225 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8226 $RM out/* && rmdir out
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8233 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8241 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8242 if ${lt_cv_prog_compiler_c_o+:} false; then :
8243 $as_echo_n "(cached) " >&6
8245 lt_cv_prog_compiler_c_o=no
8246 $RM -r conftest 2>/dev/null
8250 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8252 lt_compiler_flag="-o out/conftest2.$ac_objext"
8253 # Insert the option either (1) after the last *FLAGS variable, or
8254 # (2) before a word containing "conftest.", or (3) at the end.
8255 # Note that $ac_compile itself does not contain backslashes and begins
8256 # with a dollar sign (not a hyphen), so the echo should work correctly.
8257 lt_compile=`echo "$ac_compile" | $SED \
8258 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8260 -e 's:$: $lt_compiler_flag:'`
8261 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8262 (eval "$lt_compile" 2>out/conftest.err)
8264 cat out/conftest.err >&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8268 # The compiler can only warn and ignore the option if not recognized
8269 # So say no if there are warnings
8270 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8271 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8272 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8273 lt_cv_prog_compiler_c_o=yes
8278 # SGI C++ compiler will create directory out/ii_files/ for
8279 # template instantiation
8280 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8281 $RM out/* && rmdir out
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8288 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8293 hard_links="nottested"
8294 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8295 # do not overwrite the value of need_locks provided by the user
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8297 $as_echo_n "checking if we can lock with hard links... " >&6; }
8300 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8302 ln conftest.a conftest.b 2>&5 || hard_links=no
8303 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8305 $as_echo "$hard_links" >&6; }
8306 if test "$hard_links" = no; then
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8308 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8321 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8324 allow_undefined_flag=
8325 always_export_symbols=no
8327 archive_expsym_cmds=
8328 compiler_needs_object=no
8329 enable_shared_with_static_runtimes=no
8330 export_dynamic_flag_spec=
8331 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8332 hardcode_automatic=no
8334 hardcode_direct_absolute=no
8335 hardcode_libdir_flag_spec=
8336 hardcode_libdir_flag_spec_ld=
8337 hardcode_libdir_separator=
8339 hardcode_shlibpath_var=unsupported
8341 link_all_deplibs=unknown
8344 old_archive_from_new_cmds=
8345 old_archive_from_expsyms_cmds=
8346 thread_safe_flag_spec=
8347 whole_archive_flag_spec=
8348 # include_expsyms should be a list of space-separated symbols to be *always*
8349 # included in the symbol list
8351 # exclude_expsyms can be an extended regexp of symbols to exclude
8352 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8353 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8354 # as well as any symbol that contains `d'.
8355 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8356 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8357 # platforms (ab)use it in PIC code, but their linkers get confused if
8358 # the symbol is explicitly referenced. Since portable code cannot
8359 # rely on this symbol name, it's probably fine to never include it in
8360 # preloaded symbol tables.
8361 # Exclude shared library initialization/finalization symbols.
8362 extract_expsyms_cmds=
8365 cygwin* | mingw* | pw32* | cegcc*)
8366 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8367 # When not using gcc, we currently assume that we are using
8368 # Microsoft Visual C++.
8369 if test "$GCC" != yes; then
8374 # we just hope/assume this is gcc and not c89 (= MSVC++)
8384 # On some targets, GNU ld is compatible enough with the native linker
8385 # that we're better off using the native interface for both.
8386 lt_use_gnu_ld_interface=no
8387 if test "$with_gnu_ld" = yes; then
8390 # The AIX port of GNU ld has always aspired to compatibility
8391 # with the native linker. However, as the warning in the GNU ld
8392 # block says, versions before 2.19.5* couldn't really create working
8393 # shared libraries, regardless of the interface used.
8394 case `$LD -v 2>&1` in
8395 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8396 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8397 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8399 lt_use_gnu_ld_interface=yes
8404 lt_use_gnu_ld_interface=yes
8409 if test "$lt_use_gnu_ld_interface" = yes; then
8410 # If archive_cmds runs LD, not CC, wlarc should be empty
8413 # Set some defaults for GNU ld with shared library support. These
8414 # are reset later if shared libraries are not supported. Putting them
8415 # here allows them to be overridden if necessary.
8416 runpath_var=LD_RUN_PATH
8417 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8418 export_dynamic_flag_spec='${wl}--export-dynamic'
8419 # ancient GNU ld didn't support --whole-archive et. al.
8420 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8421 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8423 whole_archive_flag_spec=
8425 supports_anon_versioning=no
8426 case `$LD -v 2>&1` in
8427 *GNU\ gold*) supports_anon_versioning=yes ;;
8428 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8429 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8430 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8431 *\ 2.11.*) ;; # other 2.11 versions
8432 *) supports_anon_versioning=yes ;;
8435 # See if GNU ld supports shared libraries.
8438 # On AIX/PPC, the GNU linker is very broken
8439 if test "$host_cpu" != ia64; then
8443 *** Warning: the GNU linker, at least up to release 2.19, is reported
8444 *** to be unable to reliably create shared libraries on AIX.
8445 *** Therefore, libtool is disabling shared libraries support. If you
8446 *** really care for shared libraries, you may want to install binutils
8447 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8448 *** You will then need to restart the configuration process.
8457 # see comment about AmigaOS4 .so support
8458 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8459 archive_expsym_cmds=''
8462 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)'
8463 hardcode_libdir_flag_spec='-L$libdir'
8464 hardcode_minus_L=yes
8470 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8471 allow_undefined_flag=unsupported
8472 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8473 # support --undefined. This deserves some investigation. FIXME
8474 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8480 cygwin* | mingw* | pw32* | cegcc*)
8481 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8482 # as there is no search path for DLLs.
8483 hardcode_libdir_flag_spec='-L$libdir'
8484 export_dynamic_flag_spec='${wl}--export-all-symbols'
8485 allow_undefined_flag=unsupported
8486 always_export_symbols=no
8487 enable_shared_with_static_runtimes=yes
8488 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'
8489 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8491 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8492 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8493 # If the export-symbols file already is a .def file (1st line
8494 # is EXPORTS), use it as is; otherwise, prepend...
8495 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8496 cp $export_symbols $output_objdir/$soname.def;
8498 echo EXPORTS > $output_objdir/$soname.def;
8499 cat $export_symbols >> $output_objdir/$soname.def;
8501 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8509 link_all_deplibs=yes
8514 hardcode_shlibpath_var=no
8515 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8516 export_dynamic_flag_spec='${wl}-E'
8517 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8518 # Instead, shared libraries are loaded at an image base (0x10000000 by
8519 # default) and relocated if they conflict, which is a slow very memory
8520 # consuming and fragmenting process. To avoid this, we pick a random,
8521 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8522 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8523 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8524 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'
8527 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8529 if test "$host_os" = linux-dietlibc; then
8530 case $cc_basename in
8531 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8534 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8535 && test "$tmp_diet" = no
8537 tmp_addflag=' $pic_flag'
8538 tmp_sharedflag='-shared'
8539 case $cc_basename,$host_cpu in
8540 pgcc*) # Portland Group C compiler
8541 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'
8542 tmp_addflag=' $pic_flag'
8544 pgf77* | pgf90* | pgf95* | pgfortran*)
8545 # Portland Group f77 and f90 compilers
8546 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'
8547 tmp_addflag=' $pic_flag -Mnomain' ;;
8548 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8549 tmp_addflag=' -i_dynamic' ;;
8550 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8551 tmp_addflag=' -i_dynamic -nofor_main' ;;
8552 ifc* | ifort*) # Intel Fortran compiler
8553 tmp_addflag=' -nofor_main' ;;
8554 lf95*) # Lahey Fortran 8.1
8555 whole_archive_flag_spec=
8556 tmp_sharedflag='--shared' ;;
8557 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8558 tmp_sharedflag='-qmkshrobj'
8560 nvcc*) # Cuda Compiler Driver 2.2
8561 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'
8562 compiler_needs_object=yes
8565 case `$CC -V 2>&1 | sed 5q` in
8566 *Sun\ C*) # Sun C 5.9
8567 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'
8568 compiler_needs_object=yes
8569 tmp_sharedflag='-G' ;;
8570 *Sun\ F*) # Sun Fortran 8.3
8571 tmp_sharedflag='-G' ;;
8573 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8575 if test "x$supports_anon_versioning" = xyes; then
8576 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8577 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8578 echo "local: *; };" >> $output_objdir/$libname.ver~
8579 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8582 case $cc_basename in
8583 xlf* | bgf* | bgxlf* | mpixlf*)
8584 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8585 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8586 hardcode_libdir_flag_spec=
8587 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8588 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8589 if test "x$supports_anon_versioning" = xyes; then
8590 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8591 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8592 echo "local: *; };" >> $output_objdir/$libname.ver~
8593 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8603 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8604 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8607 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8608 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8613 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8617 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8618 *** create shared libraries on Solaris systems. Therefore, libtool
8619 *** is disabling shared libraries support. We urge you to upgrade GNU
8620 *** binutils to release 2.9.1 or newer. Another option is to modify
8621 *** your PATH or compiler configuration so that the native linker is
8622 *** used, and then restart.
8625 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8626 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8627 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8633 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8634 case `$LD -v 2>&1` in
8635 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8639 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8640 *** reliably create shared libraries on SCO systems. Therefore, libtool
8641 *** is disabling shared libraries support. We urge you to upgrade GNU
8642 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8643 *** your PATH or compiler configuration so that the native linker is
8644 *** used, and then restart.
8649 # For security reasons, it is highly recommended that you always
8650 # use absolute paths for naming shared libraries, and exclude the
8651 # DT_RUNPATH tag from executables and libraries. But doing so
8652 # requires that you compile everything twice, which is a pain.
8653 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8654 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8655 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8656 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8665 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8668 hardcode_shlibpath_var=no
8672 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8673 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8674 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8681 if test "$ld_shlibs" = no; then
8683 hardcode_libdir_flag_spec=
8684 export_dynamic_flag_spec=
8685 whole_archive_flag_spec=
8688 # PORTME fill in a description of your system's linker (not GNU ld)
8691 allow_undefined_flag=unsupported
8692 always_export_symbols=yes
8693 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'
8694 # Note: this linker hardcodes the directories in LIBPATH if there
8695 # are no directories specified by -L.
8696 hardcode_minus_L=yes
8697 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8698 # Neither direct hardcoding nor static linking is supported with a
8700 hardcode_direct=unsupported
8705 if test "$host_cpu" = ia64; then
8706 # On IA64, the linker does run time linking by default, so we don't
8707 # have to do anything special.
8708 aix_use_runtimelinking=no
8709 exp_sym_flag='-Bexport'
8712 # If we're using GNU nm, then we don't want the "-C" option.
8713 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8714 # Also, AIX nm treats weak defined symbols like other global
8715 # defined symbols, whereas GNU nm marks them as "W".
8716 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8717 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'
8719 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'
8721 aix_use_runtimelinking=no
8723 # Test if we are trying to use run time linking or normal
8724 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8725 # need to do runtime linking.
8726 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8727 for ld_flag in $LDFLAGS; do
8728 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8729 aix_use_runtimelinking=yes
8736 exp_sym_flag='-bexport'
8737 no_entry_flag='-bnoentry'
8740 # When large executables or shared objects are built, AIX ld can
8741 # have problems creating the table of contents. If linking a library
8742 # or program results in "error TOC overflow" add -mminimal-toc to
8743 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8744 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8748 hardcode_direct_absolute=yes
8749 hardcode_libdir_separator=':'
8750 link_all_deplibs=yes
8751 file_list_spec='${wl}-f,'
8753 if test "$GCC" = yes; then
8754 case $host_os in aix4.[012]|aix4.[012].*)
8755 # We only want to do this on AIX 4.2 and lower, the check
8756 # below for broken collect2 doesn't work under 4.3+
8757 collect2name=`${CC} -print-prog-name=collect2`
8758 if test -f "$collect2name" &&
8759 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8761 # We have reworked collect2
8764 # We have old collect2
8765 hardcode_direct=unsupported
8766 # It fails to find uninstalled libraries when the uninstalled
8767 # path is not listed in the libpath. Setting hardcode_minus_L
8768 # to unsupported forces relinking
8769 hardcode_minus_L=yes
8770 hardcode_libdir_flag_spec='-L$libdir'
8771 hardcode_libdir_separator=
8775 shared_flag='-shared'
8776 if test "$aix_use_runtimelinking" = yes; then
8777 shared_flag="$shared_flag "'${wl}-G'
8781 if test "$host_cpu" = ia64; then
8782 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8783 # chokes on -Wl,-G. The following line is correct:
8786 if test "$aix_use_runtimelinking" = yes; then
8787 shared_flag='${wl}-G'
8789 shared_flag='${wl}-bM:SRE'
8794 export_dynamic_flag_spec='${wl}-bexpall'
8795 # It seems that -bexpall does not export symbols beginning with
8796 # underscore (_), so it is better to generate a list of symbols to export.
8797 always_export_symbols=yes
8798 if test "$aix_use_runtimelinking" = yes; then
8799 # Warning - without using the other runtime loading flags (-brtl),
8800 # -berok will link without error, but may produce a broken library.
8801 allow_undefined_flag='-berok'
8802 # Determine the default libpath from the value encoded in an
8804 if test "${lt_cv_aix_libpath+set}" = set; then
8805 aix_libpath=$lt_cv_aix_libpath
8807 if ${lt_cv_aix_libpath_+:} false; then :
8808 $as_echo_n "(cached) " >&6
8810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8811 /* end confdefs.h. */
8821 if ac_fn_c_try_link "$LINENO"; then :
8823 lt_aix_libpath_sed='
8824 /Import File Strings/,/^$/ {
8826 s/^0 *\([^ ]*\) *$/\1/
8830 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8831 # Check for a 64-bit object if we didn't find anything.
8832 if test -z "$lt_cv_aix_libpath_"; then
8833 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8836 rm -f core conftest.err conftest.$ac_objext \
8837 conftest$ac_exeext conftest.$ac_ext
8838 if test -z "$lt_cv_aix_libpath_"; then
8839 lt_cv_aix_libpath_="/usr/lib:/lib"
8844 aix_libpath=$lt_cv_aix_libpath_
8847 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8848 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"
8850 if test "$host_cpu" = ia64; then
8851 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8852 allow_undefined_flag="-z nodefs"
8853 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"
8855 # Determine the default libpath from the value encoded in an
8857 if test "${lt_cv_aix_libpath+set}" = set; then
8858 aix_libpath=$lt_cv_aix_libpath
8860 if ${lt_cv_aix_libpath_+:} false; then :
8861 $as_echo_n "(cached) " >&6
8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8874 if ac_fn_c_try_link "$LINENO"; then :
8876 lt_aix_libpath_sed='
8877 /Import File Strings/,/^$/ {
8879 s/^0 *\([^ ]*\) *$/\1/
8883 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8884 # Check for a 64-bit object if we didn't find anything.
8885 if test -z "$lt_cv_aix_libpath_"; then
8886 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8889 rm -f core conftest.err conftest.$ac_objext \
8890 conftest$ac_exeext conftest.$ac_ext
8891 if test -z "$lt_cv_aix_libpath_"; then
8892 lt_cv_aix_libpath_="/usr/lib:/lib"
8897 aix_libpath=$lt_cv_aix_libpath_
8900 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8901 # Warning - without using the other run time loading flags,
8902 # -berok will link without error, but may produce a broken library.
8903 no_undefined_flag=' ${wl}-bernotok'
8904 allow_undefined_flag=' ${wl}-berok'
8905 if test "$with_gnu_ld" = yes; then
8906 # We only use this code for GNU lds that support --whole-archive.
8907 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8909 # Exported symbols can be pulled into shared objects from archives
8910 whole_archive_flag_spec='$convenience'
8912 archive_cmds_need_lc=yes
8913 # This is similar to how AIX traditionally builds its shared libraries.
8914 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'
8922 # see comment about AmigaOS4 .so support
8923 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8924 archive_expsym_cmds=''
8927 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)'
8928 hardcode_libdir_flag_spec='-L$libdir'
8929 hardcode_minus_L=yes
8935 export_dynamic_flag_spec=-rdynamic
8938 cygwin* | mingw* | pw32* | cegcc*)
8939 # When not using gcc, we currently assume that we are using
8940 # Microsoft Visual C++.
8941 # hardcode_libdir_flag_spec is actually meaningless, as there is
8942 # no search path for DLLs.
8943 case $cc_basename in
8946 hardcode_libdir_flag_spec=' '
8947 allow_undefined_flag=unsupported
8948 always_export_symbols=yes
8950 # Tell ltmain to make .lib files, not .a files.
8952 # Tell ltmain to make .dll files, not .so files.
8954 # FIXME: Setting linknames here is a bad hack.
8955 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8956 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8957 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8959 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8961 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8963 # The linker will not automatically build a static lib if we build a DLL.
8964 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8965 enable_shared_with_static_runtimes=yes
8966 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8968 old_postinstall_cmds='chmod 644 $oldlib'
8969 postlink_cmds='lt_outputfile="@OUTPUT@"~
8970 lt_tool_outputfile="@TOOL_OUTPUT@"~
8971 case $lt_outputfile in
8974 lt_outputfile="$lt_outputfile.exe"
8975 lt_tool_outputfile="$lt_tool_outputfile.exe"
8978 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8979 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8980 $RM "$lt_outputfile.manifest";
8984 # Assume MSVC wrapper
8985 hardcode_libdir_flag_spec=' '
8986 allow_undefined_flag=unsupported
8987 # Tell ltmain to make .lib files, not .a files.
8989 # Tell ltmain to make .dll files, not .so files.
8991 # FIXME: Setting linknames here is a bad hack.
8992 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8993 # The linker will automatically build a .lib file if we build a DLL.
8994 old_archive_from_new_cmds='true'
8995 # FIXME: Should let the user specify the lib program.
8996 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8997 enable_shared_with_static_runtimes=yes
9002 darwin* | rhapsody*)
9005 archive_cmds_need_lc=no
9007 hardcode_automatic=yes
9008 hardcode_shlibpath_var=unsupported
9009 if test "$lt_cv_ld_force_load" = "yes"; then
9010 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\"`'
9012 whole_archive_flag_spec=''
9014 link_all_deplibs=yes
9015 allow_undefined_flag="$_lt_dar_allow_undefined"
9016 case $cc_basename in
9017 ifort*) _lt_dar_can_shared=yes ;;
9018 *) _lt_dar_can_shared=$GCC ;;
9020 if test "$_lt_dar_can_shared" = "yes"; then
9021 output_verbose_link_cmd=func_echo_all
9022 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9023 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9024 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}"
9025 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}"
9034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9035 hardcode_libdir_flag_spec='-L$libdir'
9036 hardcode_shlibpath_var=no
9043 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9044 # support. Future versions do this automatically, but an explicit c++rt0.o
9045 # does not break anything, and helps significantly (at the cost of a little
9048 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9049 hardcode_libdir_flag_spec='-R$libdir'
9051 hardcode_shlibpath_var=no
9054 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9056 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9058 hardcode_minus_L=yes
9059 hardcode_shlibpath_var=no
9062 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9063 freebsd* | dragonfly*)
9064 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9065 hardcode_libdir_flag_spec='-R$libdir'
9067 hardcode_shlibpath_var=no
9071 if test "$GCC" = yes; then
9072 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'
9074 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'
9076 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9077 hardcode_libdir_separator=:
9080 # hardcode_minus_L: Not really in the search PATH,
9081 # but as the default location of the library.
9082 hardcode_minus_L=yes
9083 export_dynamic_flag_spec='${wl}-E'
9087 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9088 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9090 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9092 if test "$with_gnu_ld" = no; then
9093 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9094 hardcode_libdir_flag_spec_ld='+b $libdir'
9095 hardcode_libdir_separator=:
9097 hardcode_direct_absolute=yes
9098 export_dynamic_flag_spec='${wl}-E'
9099 # hardcode_minus_L: Not really in the search PATH,
9100 # but as the default location of the library.
9101 hardcode_minus_L=yes
9106 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9109 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9112 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9115 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9121 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9124 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9128 # Older versions of the 11.00 compiler do not understand -b yet
9129 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9131 $as_echo_n "checking if $CC understands -b... " >&6; }
9132 if ${lt_cv_prog_compiler__b+:} false; then :
9133 $as_echo_n "(cached) " >&6
9135 lt_cv_prog_compiler__b=no
9136 save_LDFLAGS="$LDFLAGS"
9137 LDFLAGS="$LDFLAGS -b"
9138 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9139 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9140 # The linker can only warn and ignore the option if not recognized
9141 # So say no if there are warnings
9142 if test -s conftest.err; then
9143 # Append any errors to the config.log.
9144 cat conftest.err 1>&5
9145 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9146 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9147 if diff conftest.exp conftest.er2 >/dev/null; then
9148 lt_cv_prog_compiler__b=yes
9151 lt_cv_prog_compiler__b=yes
9155 LDFLAGS="$save_LDFLAGS"
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9159 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9161 if test x"$lt_cv_prog_compiler__b" = xyes; then
9162 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9164 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9170 if test "$with_gnu_ld" = no; then
9171 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9172 hardcode_libdir_separator=:
9177 hardcode_shlibpath_var=no
9181 hardcode_direct_absolute=yes
9182 export_dynamic_flag_spec='${wl}-E'
9184 # hardcode_minus_L: Not really in the search PATH,
9185 # but as the default location of the library.
9186 hardcode_minus_L=yes
9192 irix5* | irix6* | nonstopux*)
9193 if test "$GCC" = yes; then
9194 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'
9195 # Try to use the -exported_symbol ld option, if it does not
9196 # work, assume that -exports_file does not work either and
9197 # implicitly export all symbols.
9198 # This should be the same for all languages, so no per-tag cache variable.
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9200 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9201 if ${lt_cv_irix_exported_symbol+:} false; then :
9202 $as_echo_n "(cached) " >&6
9204 save_LDFLAGS="$LDFLAGS"
9205 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9208 int foo (void) { return 0; }
9210 if ac_fn_c_try_link "$LINENO"; then :
9211 lt_cv_irix_exported_symbol=yes
9213 lt_cv_irix_exported_symbol=no
9215 rm -f core conftest.err conftest.$ac_objext \
9216 conftest$ac_exeext conftest.$ac_ext
9217 LDFLAGS="$save_LDFLAGS"
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9220 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9221 if test "$lt_cv_irix_exported_symbol" = yes; then
9222 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'
9225 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'
9226 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'
9228 archive_cmds_need_lc='no'
9229 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9230 hardcode_libdir_separator=:
9232 link_all_deplibs=yes
9236 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9237 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9239 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9241 hardcode_libdir_flag_spec='-R$libdir'
9243 hardcode_shlibpath_var=no
9247 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9249 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9250 hardcode_libdir_separator=:
9251 hardcode_shlibpath_var=no
9258 if test -f /usr/libexec/ld.so; then
9260 hardcode_shlibpath_var=no
9261 hardcode_direct_absolute=yes
9262 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9263 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9264 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9265 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9266 export_dynamic_flag_spec='${wl}-E'
9269 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9270 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9271 hardcode_libdir_flag_spec='-R$libdir'
9274 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9275 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9285 hardcode_libdir_flag_spec='-L$libdir'
9286 hardcode_minus_L=yes
9287 allow_undefined_flag=unsupported
9288 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'
9289 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9293 if test "$GCC" = yes; then
9294 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9295 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'
9297 allow_undefined_flag=' -expect_unresolved \*'
9298 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'
9300 archive_cmds_need_lc='no'
9301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9302 hardcode_libdir_separator=:
9305 osf4* | osf5*) # as osf3* with the addition of -msym flag
9306 if test "$GCC" = yes; then
9307 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9308 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'
9309 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9311 allow_undefined_flag=' -expect_unresolved \*'
9312 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'
9313 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~
9314 $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'
9316 # Both c and cxx compiler support -rpath directly
9317 hardcode_libdir_flag_spec='-rpath $libdir'
9319 archive_cmds_need_lc='no'
9320 hardcode_libdir_separator=:
9324 no_undefined_flag=' -z defs'
9325 if test "$GCC" = yes; then
9327 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9328 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9329 $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'
9331 case `$CC -V 2>&1` in
9334 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9335 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9336 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9340 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9341 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9342 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9346 hardcode_libdir_flag_spec='-R$libdir'
9347 hardcode_shlibpath_var=no
9349 solaris2.[0-5] | solaris2.[0-5].*) ;;
9351 # The compiler driver will combine and reorder linker options,
9352 # but understands `-z linker_flag'. GCC discards it without `$wl',
9353 # but is careful enough not to reorder.
9354 # Supported since Solaris 2.6 (maybe 2.5.1?)
9355 if test "$GCC" = yes; then
9356 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9358 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9362 link_all_deplibs=yes
9366 if test "x$host_vendor" = xsequent; then
9367 # Use $CC to link under sequent, because it throws in some extra .o
9368 # files that make .init and .fini sections work.
9369 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9371 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9373 hardcode_libdir_flag_spec='-L$libdir'
9375 hardcode_minus_L=yes
9376 hardcode_shlibpath_var=no
9380 case $host_vendor in
9382 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9383 hardcode_direct=yes # is this really true???
9386 ## LD is ld it makes a PLAMLIB
9387 ## CC just makes a GrossModule.
9388 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9389 reload_cmds='$CC -r -o $output$reload_objs'
9393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9394 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9397 runpath_var='LD_RUN_PATH'
9398 hardcode_shlibpath_var=no
9402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9403 hardcode_shlibpath_var=no
9404 export_dynamic_flag_spec='-Bexport'
9408 if test -d /usr/nec; then
9409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9410 hardcode_shlibpath_var=no
9411 runpath_var=LD_RUN_PATH
9412 hardcode_runpath_var=yes
9417 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9418 no_undefined_flag='${wl}-z,text'
9419 archive_cmds_need_lc=no
9420 hardcode_shlibpath_var=no
9421 runpath_var='LD_RUN_PATH'
9423 if test "$GCC" = yes; then
9424 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9425 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9427 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9428 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9432 sysv5* | sco3.2v5* | sco5v6*)
9433 # Note: We can NOT use -z defs as we might desire, because we do not
9434 # link with -lc, and that would cause any symbols used from libc to
9435 # always be unresolved, which means just about no library would
9436 # ever link correctly. If we're not using GNU ld we use -z text
9437 # though, which does catch some bad symbols but isn't as heavy-handed
9439 no_undefined_flag='${wl}-z,text'
9440 allow_undefined_flag='${wl}-z,nodefs'
9441 archive_cmds_need_lc=no
9442 hardcode_shlibpath_var=no
9443 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9444 hardcode_libdir_separator=':'
9445 link_all_deplibs=yes
9446 export_dynamic_flag_spec='${wl}-Bexport'
9447 runpath_var='LD_RUN_PATH'
9449 if test "$GCC" = yes; then
9450 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9451 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9453 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9454 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9460 hardcode_libdir_flag_spec='-L$libdir'
9461 hardcode_shlibpath_var=no
9469 if test x$host_vendor = xsni; then
9471 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9472 export_dynamic_flag_spec='${wl}-Blargedynsym'
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9479 $as_echo "$ld_shlibs" >&6; }
9480 test "$ld_shlibs" = no && can_build_shared=no
9482 with_gnu_ld=$with_gnu_ld
9499 # Do we need to explicitly link libc?
9501 case "x$archive_cmds_need_lc" in
9503 # Assume -lc should be added
9504 archive_cmds_need_lc=yes
9506 if test "$enable_shared" = yes && test "$GCC" = yes; then
9507 case $archive_cmds in
9509 # FIXME: we may have to deal with multi-command sequences.
9512 # Test whether the compiler implicitly links with -lc since on some
9513 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9514 # to ld, don't add -lc before -lgcc.
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9516 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9517 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9518 $as_echo_n "(cached) " >&6
9521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9524 (eval $ac_compile) 2>&5
9526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9527 test $ac_status = 0; } 2>conftest.err; then
9530 libobjs=conftest.$ac_objext
9532 wl=$lt_prog_compiler_wl
9533 pic_flag=$lt_prog_compiler_pic
9539 lt_save_allow_undefined_flag=$allow_undefined_flag
9540 allow_undefined_flag=
9541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9542 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9545 test $ac_status = 0; }
9547 lt_cv_archive_cmds_need_lc=no
9549 lt_cv_archive_cmds_need_lc=yes
9551 allow_undefined_flag=$lt_save_allow_undefined_flag
9553 cat conftest.err 1>&5
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9559 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9560 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9724 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9726 if test "$GCC" = yes; then
9728 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9729 *) lt_awk_arg="/^libraries:/" ;;
9732 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9733 *) lt_sed_strip_eq="s,=/,/,g" ;;
9735 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9736 case $lt_search_path_spec in
9738 # if the path contains ";" then we assume it to be the separator
9739 # otherwise default to the standard path separator (i.e. ":") - it is
9740 # assumed that no part of a normal pathname contains ";" but that should
9741 # okay in the real world where ";" in dirpaths is itself problematic.
9742 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9745 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9748 # Ok, now we have the path, separated by spaces, we can step through it
9749 # and add multilib dir if necessary.
9750 lt_tmp_lt_search_path_spec=
9751 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9752 for lt_sys_path in $lt_search_path_spec; do
9753 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9754 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9756 test -d "$lt_sys_path" && \
9757 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9760 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9761 BEGIN {RS=" "; FS="/|\n";} {
9764 for (lt_i = NF; lt_i > 0; lt_i--) {
9765 if ($lt_i != "" && $lt_i != ".") {
9766 if ($lt_i == "..") {
9769 if (lt_count == 0) {
9770 lt_foo="/" $lt_i lt_foo;
9777 if (lt_foo != "") { lt_freq[lt_foo]++; }
9778 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9780 # AWK program above erroneously prepends '/' to C:/dos/paths
9783 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9784 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9786 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9788 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9791 libname_spec='lib$name'
9799 shlibpath_overrides_runpath=unknown
9801 dynamic_linker="$host_os ld.so"
9802 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9803 need_lib_prefix=unknown
9804 hardcode_into_libs=no
9806 # when you set need_version to no, make sure it does not cause -set_version
9807 # flags to be left without arguments
9808 need_version=unknown
9813 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9814 shlibpath_var=LIBPATH
9816 # AIX 3 has no versioning support, so we append a major version to the name.
9817 soname_spec='${libname}${release}${shared_ext}$major'
9824 hardcode_into_libs=yes
9825 if test "$host_cpu" = ia64; then
9826 # AIX 5 supports IA64
9827 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9828 shlibpath_var=LD_LIBRARY_PATH
9830 # With GCC up to 2.95.x, collect2 would create an import file
9831 # for dependence libraries. The import file would start with
9832 # the line `#! .'. This would cause the generated library to
9833 # depend on `.', always an invalid library. This was fixed in
9834 # development snapshots of GCC prior to 3.0.
9836 aix4 | aix4.[01] | aix4.[01].*)
9837 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9839 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9846 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9847 # soname into executable. Probably we can add versioning support to
9848 # collect2, so additional links can be useful in future.
9849 if test "$aix_use_runtimelinking" = yes; then
9850 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9851 # instead of lib<name>.a to let people know that these are not
9852 # typical AIX shared libraries.
9853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9855 # We preserve .a as extension for shared libraries through AIX4.2
9856 # and later when we are not doing run time linking.
9857 library_names_spec='${libname}${release}.a $libname.a'
9858 soname_spec='${libname}${release}${shared_ext}$major'
9860 shlibpath_var=LIBPATH
9867 # Since July 2007 AmigaOS4 officially supports .so libraries.
9868 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9872 library_names_spec='$libname.ixlibrary $libname.a'
9873 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9874 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'
9880 library_names_spec='${libname}${shared_ext}'
9881 dynamic_linker="$host_os ld.so"
9882 shlibpath_var=LIBRARY_PATH
9888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9889 soname_spec='${libname}${release}${shared_ext}$major'
9890 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9891 shlibpath_var=LD_LIBRARY_PATH
9892 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9893 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9894 # the default ld.so.conf also contains /usr/contrib/lib and
9895 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9896 # libtool to hard-code these into programs
9899 cygwin* | mingw* | pw32* | cegcc*)
9900 version_type=windows
9905 case $GCC,$cc_basename in
9908 library_names_spec='$libname.dll.a'
9909 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9910 postinstall_cmds='base_file=`basename \${file}`~
9911 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9912 dldir=$destdir/`dirname \$dlpath`~
9913 test -d \$dldir || mkdir -p \$dldir~
9914 $install_prog $dir/$dlname \$dldir/$dlname~
9915 chmod a+x \$dldir/$dlname~
9916 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9917 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9919 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9920 dlpath=$dir/\$dldll~
9922 shlibpath_overrides_runpath=yes
9926 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9927 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9929 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9932 # MinGW DLLs use traditional 'lib' prefix
9933 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9936 # pw32 DLLs use 'pw' prefix rather than 'lib'
9937 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9940 dynamic_linker='Win32 ld.exe'
9945 libname_spec='$name'
9946 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9947 library_names_spec='${libname}.dll.lib'
9951 sys_lib_search_path_spec=
9957 # Let DOS variable expansion print the short 8.3 style file name.
9958 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9959 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9962 # Convert to MSYS style.
9963 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9966 # Convert to unix form, then to dos form, then back to unix form
9967 # but this time dos style (no spaces!) so that the unix form looks
9968 # like /cygdrive/c/PROGRA~1:/cygdr...
9969 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9970 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9971 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9974 sys_lib_search_path_spec="$LIB"
9975 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9976 # It is most probably a Windows format PATH.
9977 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9979 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9981 # FIXME: find the short name or the path components, as spaces are
9982 # common. (e.g. "Program Files" -> "PROGRA~1")
9986 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9987 postinstall_cmds='base_file=`basename \${file}`~
9988 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9989 dldir=$destdir/`dirname \$dlpath`~
9990 test -d \$dldir || mkdir -p \$dldir~
9991 $install_prog $dir/$dlname \$dldir/$dlname'
9992 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9993 dlpath=$dir/\$dldll~
9995 shlibpath_overrides_runpath=yes
9996 dynamic_linker='Win32 link.exe'
10000 # Assume MSVC wrapper
10001 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10002 dynamic_linker='Win32 ld.exe'
10005 # FIXME: first we should search . and the directory the executable is in
10009 darwin* | rhapsody*)
10010 dynamic_linker="$host_os dyld"
10011 version_type=darwin
10014 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10015 soname_spec='${libname}${release}${major}$shared_ext'
10016 shlibpath_overrides_runpath=yes
10017 shlibpath_var=DYLD_LIBRARY_PATH
10018 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10020 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10021 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10029 soname_spec='${libname}${release}${shared_ext}$major'
10030 shlibpath_var=LD_LIBRARY_PATH
10037 freebsd* | dragonfly*)
10038 # DragonFly does not have aout. When/if they implement a new
10039 # versioning mechanism, adjust this.
10040 if test -x /usr/bin/objformat; then
10041 objformat=`/usr/bin/objformat`
10044 freebsd[123]*) objformat=aout ;;
10045 *) objformat=elf ;;
10048 version_type=freebsd-$objformat
10049 case $version_type in
10051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10060 shlibpath_var=LD_LIBRARY_PATH
10063 shlibpath_overrides_runpath=yes
10065 freebsd3.[01]* | freebsdelf3.[01]*)
10066 shlibpath_overrides_runpath=yes
10067 hardcode_into_libs=yes
10069 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10070 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10071 shlibpath_overrides_runpath=no
10072 hardcode_into_libs=yes
10074 *) # from 4.6 on, and DragonFly
10075 shlibpath_overrides_runpath=yes
10076 hardcode_into_libs=yes
10085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10086 soname_spec='${libname}${release}${shared_ext}$major'
10087 shlibpath_var=LD_LIBRARY_PATH
10088 hardcode_into_libs=yes
10095 dynamic_linker="$host_os runtime_loader"
10096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10097 soname_spec='${libname}${release}${shared_ext}$major'
10098 shlibpath_var=LIBRARY_PATH
10099 shlibpath_overrides_runpath=yes
10100 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10101 hardcode_into_libs=yes
10104 hpux9* | hpux10* | hpux11*)
10105 # Give a soname corresponding to the major version so that dld.sl refuses to
10106 # link against other versions.
10113 hardcode_into_libs=yes
10114 dynamic_linker="$host_os dld.so"
10115 shlibpath_var=LD_LIBRARY_PATH
10116 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10118 soname_spec='${libname}${release}${shared_ext}$major'
10119 if test "X$HPUX_IA64_MODE" = X32; then
10120 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10122 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10124 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10128 hardcode_into_libs=yes
10129 dynamic_linker="$host_os dld.sl"
10130 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10131 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10133 soname_spec='${libname}${release}${shared_ext}$major'
10134 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10135 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10139 dynamic_linker="$host_os dld.sl"
10140 shlibpath_var=SHLIB_PATH
10141 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10143 soname_spec='${libname}${release}${shared_ext}$major'
10146 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10147 postinstall_cmds='chmod 555 $lib'
10148 # or fails outright, so override atomically:
10149 install_override_mode=555
10156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10157 soname_spec='${libname}${release}${shared_ext}$major'
10158 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10159 shlibpath_var=LD_LIBRARY_PATH
10160 shlibpath_overrides_runpath=no
10161 hardcode_into_libs=yes
10164 irix5* | irix6* | nonstopux*)
10166 nonstopux*) version_type=nonstopux ;;
10168 if test "$lt_cv_prog_gnu_ld" = yes; then
10176 soname_spec='${libname}${release}${shared_ext}$major'
10177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10179 irix5* | nonstopux*)
10180 libsuff= shlibsuff=
10183 case $LD in # libtool.m4 will add one of these switches to LD
10184 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10185 libsuff= shlibsuff= libmagic=32-bit;;
10186 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10187 libsuff=32 shlibsuff=N32 libmagic=N32;;
10188 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10189 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10190 *) libsuff= shlibsuff= libmagic=never-match;;
10194 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10195 shlibpath_overrides_runpath=no
10196 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10197 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10198 hardcode_into_libs=yes
10201 # No shared lib support for Linux oldld, aout, or coff.
10202 linux*oldld* | linux*aout* | linux*coff*)
10206 # This must be Linux ELF.
10207 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10212 soname_spec='${libname}${release}${shared_ext}$major'
10213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10214 shlibpath_var=LD_LIBRARY_PATH
10215 shlibpath_overrides_runpath=no
10217 # Some binutils ld are patched to set DT_RUNPATH
10218 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10219 $as_echo_n "(cached) " >&6
10221 lt_cv_shlibpath_overrides_runpath=no
10222 save_LDFLAGS=$LDFLAGS
10223 save_libdir=$libdir
10224 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10225 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10227 /* end confdefs.h. */
10237 if ac_fn_c_try_link "$LINENO"; then :
10238 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10239 lt_cv_shlibpath_overrides_runpath=yes
10242 rm -f core conftest.err conftest.$ac_objext \
10243 conftest$ac_exeext conftest.$ac_ext
10244 LDFLAGS=$save_LDFLAGS
10245 libdir=$save_libdir
10249 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10251 # This implies no fast_install, which is unacceptable.
10252 # Some rework will be needed to allow for fast_install
10253 # before this can be enabled.
10254 hardcode_into_libs=yes
10256 # Append ld.so.conf contents to the search path
10257 if test -f /etc/ld.so.conf; then
10258 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' ' '`
10259 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10262 # We used to test for /lib/ld.so.1 and disable shared libraries on
10263 # powerpc, because MkLinux only supported shared libraries with the
10264 # GNU dynamic linker. Since this was broken with cross compilers,
10265 # most powerpc-linux boxes support dynamic linking these days and
10266 # people can always --disable-shared, the test was removed, and we
10267 # assume the GNU/Linux dynamic linker is in use.
10268 dynamic_linker='GNU/Linux ld.so'
10275 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10278 dynamic_linker='NetBSD (a.out) ld.so'
10280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10281 soname_spec='${libname}${release}${shared_ext}$major'
10282 dynamic_linker='NetBSD ld.elf_so'
10284 shlibpath_var=LD_LIBRARY_PATH
10285 shlibpath_overrides_runpath=yes
10286 hardcode_into_libs=yes
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292 shlibpath_var=LD_LIBRARY_PATH
10293 shlibpath_overrides_runpath=yes
10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10301 soname_spec='${libname}${release}${shared_ext}$major'
10302 shlibpath_var=LD_LIBRARY_PATH
10303 shlibpath_overrides_runpath=no
10304 hardcode_into_libs=yes
10305 dynamic_linker='ldqnx.so'
10310 sys_lib_dlsearch_path_spec="/usr/lib"
10312 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10314 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10315 *) need_version=no ;;
10317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10319 shlibpath_var=LD_LIBRARY_PATH
10320 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10322 openbsd2.[89] | openbsd2.[89].*)
10323 shlibpath_overrides_runpath=no
10326 shlibpath_overrides_runpath=yes
10330 shlibpath_overrides_runpath=yes
10335 libname_spec='$name'
10338 library_names_spec='$libname${shared_ext} $libname.a'
10339 dynamic_linker='OS/2 ld.exe'
10340 shlibpath_var=LIBPATH
10343 osf3* | osf4* | osf5*)
10347 soname_spec='${libname}${release}${shared_ext}$major'
10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10349 shlibpath_var=LD_LIBRARY_PATH
10350 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10351 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10363 soname_spec='${libname}${release}${shared_ext}$major'
10364 shlibpath_var=LD_LIBRARY_PATH
10365 shlibpath_overrides_runpath=yes
10366 hardcode_into_libs=yes
10367 # ldd complains unless libraries are executable
10368 postinstall_cmds='chmod +x $lib'
10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10374 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10375 shlibpath_var=LD_LIBRARY_PATH
10376 shlibpath_overrides_runpath=yes
10377 if test "$with_gnu_ld" = yes; then
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 shlibpath_var=LD_LIBRARY_PATH
10388 case $host_vendor in
10390 shlibpath_overrides_runpath=no
10392 runpath_var=LD_RUN_PATH
10400 shlibpath_overrides_runpath=no
10401 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10407 if test -d /usr/nec ;then
10409 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10410 soname_spec='$libname${shared_ext}.$major'
10411 shlibpath_var=LD_LIBRARY_PATH
10415 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10416 version_type=freebsd-elf
10419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10420 soname_spec='${libname}${release}${shared_ext}$major'
10421 shlibpath_var=LD_LIBRARY_PATH
10422 shlibpath_overrides_runpath=yes
10423 hardcode_into_libs=yes
10424 if test "$with_gnu_ld" = yes; then
10425 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10427 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10430 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10434 sys_lib_dlsearch_path_spec='/usr/lib'
10438 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10443 shlibpath_var=LD_LIBRARY_PATH
10444 shlibpath_overrides_runpath=no
10445 hardcode_into_libs=yes
10450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10451 soname_spec='${libname}${release}${shared_ext}$major'
10452 shlibpath_var=LD_LIBRARY_PATH
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10460 $as_echo "$dynamic_linker" >&6; }
10461 test "$dynamic_linker" = no && can_build_shared=no
10463 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10464 if test "$GCC" = yes; then
10465 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10468 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10469 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10471 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10472 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10567 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10569 if test -n "$hardcode_libdir_flag_spec" ||
10570 test -n "$runpath_var" ||
10571 test "X$hardcode_automatic" = "Xyes" ; then
10573 # We can hardcode non-existent directories.
10574 if test "$hardcode_direct" != no &&
10575 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10576 # have to relink, otherwise we might link with an installed library
10577 # when we should be linking with a yet-to-be-installed one
10578 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10579 test "$hardcode_minus_L" != no; then
10580 # Linking always hardcodes the temporary library directory.
10581 hardcode_action=relink
10583 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10584 hardcode_action=immediate
10587 # We cannot hardcode anything, or else we can only hardcode existing
10589 hardcode_action=unsupported
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10592 $as_echo "$hardcode_action" >&6; }
10594 if test "$hardcode_action" = relink ||
10595 test "$inherit_rpath" = yes; then
10596 # Fast installation is not supported
10597 enable_fast_install=no
10598 elif test "$shlibpath_overrides_runpath" = yes ||
10599 test "$enable_shared" = no; then
10600 # Fast installation is not necessary
10601 enable_fast_install=needless
10609 if test "x$enable_dlopen" != xyes; then
10610 enable_dlopen=unknown
10611 enable_dlopen_self=unknown
10612 enable_dlopen_self_static=unknown
10619 lt_cv_dlopen="load_add_on"
10621 lt_cv_dlopen_self=yes
10624 mingw* | pw32* | cegcc*)
10625 lt_cv_dlopen="LoadLibrary"
10630 lt_cv_dlopen="dlopen"
10635 # if libdl is installed we need to link against it
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10637 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10638 if ${ac_cv_lib_dl_dlopen+:} false; then :
10639 $as_echo_n "(cached) " >&6
10641 ac_check_lib_save_LIBS=$LIBS
10643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644 /* end confdefs.h. */
10646 /* Override any GCC internal prototype to avoid an error.
10647 Use char because int might match the return type of a GCC
10648 builtin and then its argument prototype would still apply. */
10661 if ac_fn_c_try_link "$LINENO"; then :
10662 ac_cv_lib_dl_dlopen=yes
10664 ac_cv_lib_dl_dlopen=no
10666 rm -f core conftest.err conftest.$ac_objext \
10667 conftest$ac_exeext conftest.$ac_ext
10668 LIBS=$ac_check_lib_save_LIBS
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10671 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10672 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10673 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10676 lt_cv_dlopen="dyld"
10678 lt_cv_dlopen_self=yes
10685 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10686 if test "x$ac_cv_func_shl_load" = xyes; then :
10687 lt_cv_dlopen="shl_load"
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10690 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10691 if ${ac_cv_lib_dld_shl_load+:} false; then :
10692 $as_echo_n "(cached) " >&6
10694 ac_check_lib_save_LIBS=$LIBS
10696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10697 /* end confdefs.h. */
10699 /* Override any GCC internal prototype to avoid an error.
10700 Use char because int might match the return type of a GCC
10701 builtin and then its argument prototype would still apply. */
10709 return shl_load ();
10714 if ac_fn_c_try_link "$LINENO"; then :
10715 ac_cv_lib_dld_shl_load=yes
10717 ac_cv_lib_dld_shl_load=no
10719 rm -f core conftest.err conftest.$ac_objext \
10720 conftest$ac_exeext conftest.$ac_ext
10721 LIBS=$ac_check_lib_save_LIBS
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10724 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10725 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10726 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10728 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10729 if test "x$ac_cv_func_dlopen" = xyes; then :
10730 lt_cv_dlopen="dlopen"
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10733 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10734 if ${ac_cv_lib_dl_dlopen+:} false; then :
10735 $as_echo_n "(cached) " >&6
10737 ac_check_lib_save_LIBS=$LIBS
10739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10740 /* end confdefs.h. */
10742 /* Override any GCC internal prototype to avoid an error.
10743 Use char because int might match the return type of a GCC
10744 builtin and then its argument prototype would still apply. */
10757 if ac_fn_c_try_link "$LINENO"; then :
10758 ac_cv_lib_dl_dlopen=yes
10760 ac_cv_lib_dl_dlopen=no
10762 rm -f core conftest.err conftest.$ac_objext \
10763 conftest$ac_exeext conftest.$ac_ext
10764 LIBS=$ac_check_lib_save_LIBS
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10767 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10768 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10769 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10772 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10773 if ${ac_cv_lib_svld_dlopen+:} false; then :
10774 $as_echo_n "(cached) " >&6
10776 ac_check_lib_save_LIBS=$LIBS
10777 LIBS="-lsvld $LIBS"
10778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10779 /* end confdefs.h. */
10781 /* Override any GCC internal prototype to avoid an error.
10782 Use char because int might match the return type of a GCC
10783 builtin and then its argument prototype would still apply. */
10796 if ac_fn_c_try_link "$LINENO"; then :
10797 ac_cv_lib_svld_dlopen=yes
10799 ac_cv_lib_svld_dlopen=no
10801 rm -f core conftest.err conftest.$ac_objext \
10802 conftest$ac_exeext conftest.$ac_ext
10803 LIBS=$ac_check_lib_save_LIBS
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10806 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10807 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10808 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10811 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10812 if ${ac_cv_lib_dld_dld_link+:} false; then :
10813 $as_echo_n "(cached) " >&6
10815 ac_check_lib_save_LIBS=$LIBS
10817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10818 /* end confdefs.h. */
10820 /* Override any GCC internal prototype to avoid an error.
10821 Use char because int might match the return type of a GCC
10822 builtin and then its argument prototype would still apply. */
10830 return dld_link ();
10835 if ac_fn_c_try_link "$LINENO"; then :
10836 ac_cv_lib_dld_dld_link=yes
10838 ac_cv_lib_dld_dld_link=no
10840 rm -f core conftest.err conftest.$ac_objext \
10841 conftest$ac_exeext conftest.$ac_ext
10842 LIBS=$ac_check_lib_save_LIBS
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10845 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10846 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10847 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10868 if test "x$lt_cv_dlopen" != xno; then
10874 case $lt_cv_dlopen in
10876 save_CPPFLAGS="$CPPFLAGS"
10877 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10879 save_LDFLAGS="$LDFLAGS"
10880 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10883 LIBS="$lt_cv_dlopen_libs $LIBS"
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10886 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10887 if ${lt_cv_dlopen_self+:} false; then :
10888 $as_echo_n "(cached) " >&6
10890 if test "$cross_compiling" = yes; then :
10891 lt_cv_dlopen_self=cross
10893 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10894 lt_status=$lt_dlunknown
10895 cat > conftest.$ac_ext <<_LT_EOF
10896 #line $LINENO "configure"
10897 #include "confdefs.h"
10906 # define LT_DLGLOBAL RTLD_GLOBAL
10909 # define LT_DLGLOBAL DL_GLOBAL
10911 # define LT_DLGLOBAL 0
10915 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10916 find out it does not work in some platform. */
10917 #ifndef LT_DLLAZY_OR_NOW
10919 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10922 # define LT_DLLAZY_OR_NOW DL_LAZY
10925 # define LT_DLLAZY_OR_NOW RTLD_NOW
10928 # define LT_DLLAZY_OR_NOW DL_NOW
10930 # define LT_DLLAZY_OR_NOW 0
10937 /* When -fvisbility=hidden is used, assume the code has been annotated
10938 correspondingly for the symbols needed. */
10939 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10940 int fnord () __attribute__((visibility("default")));
10943 int fnord () { return 42; }
10946 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10947 int status = $lt_dlunknown;
10951 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10954 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10955 else puts (dlerror ());
10957 /* dlclose (self); */
10965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10966 (eval $ac_link) 2>&5
10968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10969 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10970 (./conftest; exit; ) >&5 2>/dev/null
10972 case x$lt_status in
10973 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10974 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10975 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10978 # compilation failed
10979 lt_cv_dlopen_self=no
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10987 $as_echo "$lt_cv_dlopen_self" >&6; }
10989 if test "x$lt_cv_dlopen_self" = xyes; then
10990 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10992 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10993 if ${lt_cv_dlopen_self_static+:} false; then :
10994 $as_echo_n "(cached) " >&6
10996 if test "$cross_compiling" = yes; then :
10997 lt_cv_dlopen_self_static=cross
10999 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11000 lt_status=$lt_dlunknown
11001 cat > conftest.$ac_ext <<_LT_EOF
11002 #line $LINENO "configure"
11003 #include "confdefs.h"
11012 # define LT_DLGLOBAL RTLD_GLOBAL
11015 # define LT_DLGLOBAL DL_GLOBAL
11017 # define LT_DLGLOBAL 0
11021 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11022 find out it does not work in some platform. */
11023 #ifndef LT_DLLAZY_OR_NOW
11025 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11028 # define LT_DLLAZY_OR_NOW DL_LAZY
11031 # define LT_DLLAZY_OR_NOW RTLD_NOW
11034 # define LT_DLLAZY_OR_NOW DL_NOW
11036 # define LT_DLLAZY_OR_NOW 0
11043 /* When -fvisbility=hidden is used, assume the code has been annotated
11044 correspondingly for the symbols needed. */
11045 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11046 int fnord () __attribute__((visibility("default")));
11049 int fnord () { return 42; }
11052 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11053 int status = $lt_dlunknown;
11057 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11060 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11061 else puts (dlerror ());
11063 /* dlclose (self); */
11071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11072 (eval $ac_link) 2>&5
11074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11075 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11076 (./conftest; exit; ) >&5 2>/dev/null
11078 case x$lt_status in
11079 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11080 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11081 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11084 # compilation failed
11085 lt_cv_dlopen_self_static=no
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11093 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11096 CPPFLAGS="$save_CPPFLAGS"
11097 LDFLAGS="$save_LDFLAGS"
11102 case $lt_cv_dlopen_self in
11103 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11104 *) enable_dlopen_self=unknown ;;
11107 case $lt_cv_dlopen_self_static in
11108 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11109 *) enable_dlopen_self_static=unknown ;;
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11132 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11133 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11134 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11135 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11137 $as_echo "yes" >&6; }
11139 # FIXME - insert some real tests, host_os isn't really good enough
11142 if test -n "$STRIP" ; then
11143 striplib="$STRIP -x"
11144 old_striplib="$STRIP -S"
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11146 $as_echo "yes" >&6; }
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11149 $as_echo "no" >&6; }
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11154 $as_echo "no" >&6; }
11170 # Report which library types will actually be built
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11172 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11174 $as_echo "$can_build_shared" >&6; }
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11177 $as_echo_n "checking whether to build shared libraries... " >&6; }
11178 test "$can_build_shared" = "no" && enable_shared=no
11180 # On AIX, shared libraries and static libraries use the same namespace, and
11181 # are all built from PIC.
11184 test "$enable_shared" = yes && enable_static=no
11185 if test -n "$RANLIB"; then
11186 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11187 postinstall_cmds='$RANLIB $lib'
11192 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11193 test "$enable_shared" = yes && enable_static=no
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11198 $as_echo "$enable_shared" >&6; }
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11201 $as_echo_n "checking whether to build static libraries... " >&6; }
11202 # Make sure either enable_shared or enable_static is yes.
11203 test "$enable_shared" = yes || enable_static=yes
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11205 $as_echo "$enable_static" >&6; }
11212 ac_cpp='$CPP $CPPFLAGS'
11213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11231 ac_config_commands="$ac_config_commands libtool"
11236 # Only expand once:
11240 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11253 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11254 if ${ac_cv_prog_cc_c99+:} false; then :
11255 $as_echo_n "(cached) " >&6
11257 ac_cv_prog_cc_c99=no
11259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11260 /* end confdefs.h. */
11261 #include <stdarg.h>
11262 #include <stdbool.h>
11263 #include <stdlib.h>
11267 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11268 #define debug(...) fprintf (stderr, __VA_ARGS__)
11269 #define showlist(...) puts (#__VA_ARGS__)
11270 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11272 test_varargs_macros (void)
11277 debug ("X = %d\n", x);
11278 showlist (The first, second, and third items.);
11279 report (x>y, "x is %d but y is %d", x, y);
11282 // Check long long types.
11283 #define BIG64 18446744073709551615ull
11284 #define BIG32 4294967295ul
11285 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11287 your preprocessor is broken;
11291 your preprocessor is broken;
11293 static long long int bignum = -9223372036854775807LL;
11294 static unsigned long long int ubignum = BIG64;
11296 struct incomplete_array
11302 struct named_init {
11304 const wchar_t *name;
11308 typedef const char *ccp;
11311 test_restrict (ccp restrict text)
11313 // See if C++-style comments work.
11314 // Iterate through items via the restricted pointer.
11315 // Also check for declarations in for loops.
11316 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11321 // Check varargs and va_copy.
11323 test_varargs (const char *format, ...)
11326 va_start (args, format);
11328 va_copy (args_copy, args);
11338 case 's': // string
11339 str = va_arg (args_copy, const char *);
11342 number = va_arg (args_copy, int);
11345 fnumber = va_arg (args_copy, double);
11351 va_end (args_copy);
11360 _Bool success = false;
11363 if (test_restrict ("String literal") == 0)
11365 char *restrict newvar = "Another string";
11368 test_varargs ("s, d' f .", "string", 65, 34.234);
11369 test_varargs_macros ();
11371 // Check flexible array members.
11372 struct incomplete_array *ia =
11373 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11375 for (int i = 0; i < ia->datasize; ++i)
11376 ia->data[i] = i * 1.234;
11378 // Check named initializers.
11379 struct named_init ni = {
11381 .name = L"Test wide string",
11382 .average = 543.34343,
11387 int dynamic_array[ni.number];
11388 dynamic_array[ni.number - 1] = 543;
11390 // work around unused variable warnings
11391 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11392 || dynamic_array[ni.number - 1] != 543);
11398 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11400 CC="$ac_save_CC $ac_arg"
11401 if ac_fn_c_try_compile "$LINENO"; then :
11402 ac_cv_prog_cc_c99=$ac_arg
11404 rm -f core conftest.err conftest.$ac_objext
11405 test "x$ac_cv_prog_cc_c99" != "xno" && break
11407 rm -f conftest.$ac_ext
11412 case "x$ac_cv_prog_cc_c99" in
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11415 $as_echo "none needed" >&6; } ;;
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11418 $as_echo "unsupported" >&6; } ;;
11420 CC="$CC $ac_cv_prog_cc_c99"
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11422 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11424 if test "x$ac_cv_prog_cc_c99" != xno; then :
11433 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11434 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11440 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11441 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11447 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11448 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11457 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11458 if test -n "$ac_tool_prefix"; then
11459 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11460 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11462 $as_echo_n "checking for $ac_word... " >&6; }
11463 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11464 $as_echo_n "(cached) " >&6
11466 case $PKG_CONFIG in
11468 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11472 for as_dir in $PATH
11475 test -z "$as_dir" && as_dir=.
11476 for ac_exec_ext in '' $ac_executable_extensions; do
11477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11478 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11489 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11490 if test -n "$PKG_CONFIG"; then
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11492 $as_echo "$PKG_CONFIG" >&6; }
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11495 $as_echo "no" >&6; }
11500 if test -z "$ac_cv_path_PKG_CONFIG"; then
11501 ac_pt_PKG_CONFIG=$PKG_CONFIG
11502 # Extract the first word of "pkg-config", so it can be a program name with args.
11503 set dummy pkg-config; ac_word=$2
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11505 $as_echo_n "checking for $ac_word... " >&6; }
11506 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11507 $as_echo_n "(cached) " >&6
11509 case $ac_pt_PKG_CONFIG in
11511 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11515 for as_dir in $PATH
11518 test -z "$as_dir" && as_dir=.
11519 for ac_exec_ext in '' $ac_executable_extensions; do
11520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11521 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11532 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11533 if test -n "$ac_pt_PKG_CONFIG"; then
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11535 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11538 $as_echo "no" >&6; }
11541 if test "x$ac_pt_PKG_CONFIG" = x; then
11544 case $cross_compiling:$ac_tool_warned in
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11548 ac_tool_warned=yes ;;
11550 PKG_CONFIG=$ac_pt_PKG_CONFIG
11553 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11557 if test -n "$PKG_CONFIG"; then
11558 _pkg_min_version=0.9.0
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11560 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11561 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11563 $as_echo "yes" >&6; }
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11566 $as_echo "no" >&6; }
11576 # Check whether --enable-selective-werror was given.
11577 if test "${enable_selective_werror+set}" = set; then :
11578 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11580 SELECTIVE_WERROR=yes
11587 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11588 if test "x$SUNCC" = "xyes"; then
11594 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11606 xorg_testset_save_CFLAGS="$CFLAGS"
11608 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11611 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11612 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11613 $as_echo_n "(cached) " >&6
11615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11616 /* end confdefs.h. */
11619 if ac_fn_c_try_compile "$LINENO"; then :
11620 xorg_cv_compiler_flag_unknown_warning_option=yes
11622 xorg_cv_compiler_flag_unknown_warning_option=no
11624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11627 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11628 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11629 CFLAGS="$xorg_testset_save_CFLAGS"
11632 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11633 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11638 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11639 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11640 $as_echo_n "(cached) " >&6
11642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11643 /* end confdefs.h. */
11646 if ac_fn_c_try_compile "$LINENO"; then :
11647 xorg_cv_compiler_flag_unused_command_line_argument=yes
11649 xorg_cv_compiler_flag_unused_command_line_argument=no
11651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11654 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11655 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11656 CFLAGS="$xorg_testset_save_CFLAGS"
11661 if test $found = "no" ; then
11662 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11666 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11670 CFLAGS="$CFLAGS -Wall"
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11673 $as_echo_n "checking if $CC supports -Wall... " >&6; }
11674 cacheid=`$as_echo xorg_cv_cc_flag_-Wall`
11675 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11676 $as_echo_n "(cached) " >&6
11678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11679 /* end confdefs.h. */
11689 if ac_fn_c_try_link "$LINENO"; then :
11690 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11692 eval `$as_echo "$cacheid" | $as_tr_sh`=no
11694 rm -f core conftest.err conftest.$ac_objext \
11695 conftest$ac_exeext conftest.$ac_ext
11699 CFLAGS="$xorg_testset_save_CFLAGS"
11701 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11703 $as_echo "$supported" >&6; }
11704 if test "$supported" = "yes" ; then
11705 BASE_CFLAGS="$BASE_CFLAGS -Wall"
11722 xorg_testset_save_CFLAGS="$CFLAGS"
11724 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11727 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11728 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11729 $as_echo_n "(cached) " >&6
11731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732 /* end confdefs.h. */
11735 if ac_fn_c_try_compile "$LINENO"; then :
11736 xorg_cv_compiler_flag_unknown_warning_option=yes
11738 xorg_cv_compiler_flag_unknown_warning_option=no
11740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11743 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11744 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11745 CFLAGS="$xorg_testset_save_CFLAGS"
11748 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11749 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11754 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11755 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11756 $as_echo_n "(cached) " >&6
11758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11759 /* end confdefs.h. */
11762 if ac_fn_c_try_compile "$LINENO"; then :
11763 xorg_cv_compiler_flag_unused_command_line_argument=yes
11765 xorg_cv_compiler_flag_unused_command_line_argument=no
11767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11770 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11771 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11772 CFLAGS="$xorg_testset_save_CFLAGS"
11777 if test $found = "no" ; then
11778 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11782 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11786 CFLAGS="$CFLAGS -Wpointer-arith"
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
11789 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
11790 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith`
11791 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11792 $as_echo_n "(cached) " >&6
11794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11795 /* end confdefs.h. */
11805 if ac_fn_c_try_link "$LINENO"; then :
11806 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11808 eval `$as_echo "$cacheid" | $as_tr_sh`=no
11810 rm -f core conftest.err conftest.$ac_objext \
11811 conftest$ac_exeext conftest.$ac_ext
11815 CFLAGS="$xorg_testset_save_CFLAGS"
11817 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11819 $as_echo "$supported" >&6; }
11820 if test "$supported" = "yes" ; then
11821 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
11838 xorg_testset_save_CFLAGS="$CFLAGS"
11840 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11843 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11844 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11845 $as_echo_n "(cached) " >&6
11847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11848 /* end confdefs.h. */
11851 if ac_fn_c_try_compile "$LINENO"; then :
11852 xorg_cv_compiler_flag_unknown_warning_option=yes
11854 xorg_cv_compiler_flag_unknown_warning_option=no
11856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11859 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11860 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11861 CFLAGS="$xorg_testset_save_CFLAGS"
11864 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11865 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11870 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11871 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11872 $as_echo_n "(cached) " >&6
11874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875 /* end confdefs.h. */
11878 if ac_fn_c_try_compile "$LINENO"; then :
11879 xorg_cv_compiler_flag_unused_command_line_argument=yes
11881 xorg_cv_compiler_flag_unused_command_line_argument=no
11883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11886 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11887 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11888 CFLAGS="$xorg_testset_save_CFLAGS"
11893 if test $found = "no" ; then
11894 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11898 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11902 CFLAGS="$CFLAGS -Wmissing-declarations"
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
11905 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
11906 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations`
11907 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11908 $as_echo_n "(cached) " >&6
11910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11911 /* end confdefs.h. */
11921 if ac_fn_c_try_link "$LINENO"; then :
11922 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11924 eval `$as_echo "$cacheid" | $as_tr_sh`=no
11926 rm -f core conftest.err conftest.$ac_objext \
11927 conftest$ac_exeext conftest.$ac_ext
11931 CFLAGS="$xorg_testset_save_CFLAGS"
11933 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11935 $as_echo "$supported" >&6; }
11936 if test "$supported" = "yes" ; then
11937 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
11954 xorg_testset_save_CFLAGS="$CFLAGS"
11956 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11959 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11960 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11961 $as_echo_n "(cached) " >&6
11963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11964 /* end confdefs.h. */
11967 if ac_fn_c_try_compile "$LINENO"; then :
11968 xorg_cv_compiler_flag_unknown_warning_option=yes
11970 xorg_cv_compiler_flag_unknown_warning_option=no
11972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11975 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11976 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11977 CFLAGS="$xorg_testset_save_CFLAGS"
11980 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11981 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11986 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11987 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11988 $as_echo_n "(cached) " >&6
11990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991 /* end confdefs.h. */
11994 if ac_fn_c_try_compile "$LINENO"; then :
11995 xorg_cv_compiler_flag_unused_command_line_argument=yes
11997 xorg_cv_compiler_flag_unused_command_line_argument=no
11999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12002 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12003 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12004 CFLAGS="$xorg_testset_save_CFLAGS"
12009 if test $found = "no" ; then
12010 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12014 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12018 CFLAGS="$CFLAGS -Wformat=2"
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12021 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12022 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat=2`
12023 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12024 $as_echo_n "(cached) " >&6
12026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12027 /* end confdefs.h. */
12037 if ac_fn_c_try_link "$LINENO"; then :
12038 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12040 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12042 rm -f core conftest.err conftest.$ac_objext \
12043 conftest$ac_exeext conftest.$ac_ext
12047 CFLAGS="$xorg_testset_save_CFLAGS"
12049 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12051 $as_echo "$supported" >&6; }
12052 if test "$supported" = "yes" ; then
12053 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12058 if test $found = "no" ; then
12059 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12063 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12067 CFLAGS="$CFLAGS -Wformat"
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12070 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12071 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat`
12072 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12073 $as_echo_n "(cached) " >&6
12075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12076 /* end confdefs.h. */
12086 if ac_fn_c_try_link "$LINENO"; then :
12087 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12089 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12091 rm -f core conftest.err conftest.$ac_objext \
12092 conftest$ac_exeext conftest.$ac_ext
12096 CFLAGS="$xorg_testset_save_CFLAGS"
12098 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12100 $as_echo "$supported" >&6; }
12101 if test "$supported" = "yes" ; then
12102 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12121 xorg_testset_save_CFLAGS="$CFLAGS"
12123 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12126 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12127 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12128 $as_echo_n "(cached) " >&6
12130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12131 /* end confdefs.h. */
12134 if ac_fn_c_try_compile "$LINENO"; then :
12135 xorg_cv_compiler_flag_unknown_warning_option=yes
12137 xorg_cv_compiler_flag_unknown_warning_option=no
12139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12142 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12143 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12144 CFLAGS="$xorg_testset_save_CFLAGS"
12147 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12148 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12153 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12154 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12155 $as_echo_n "(cached) " >&6
12157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h. */
12161 if ac_fn_c_try_compile "$LINENO"; then :
12162 xorg_cv_compiler_flag_unused_command_line_argument=yes
12164 xorg_cv_compiler_flag_unused_command_line_argument=no
12166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12169 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12170 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12171 CFLAGS="$xorg_testset_save_CFLAGS"
12176 if test $found = "no" ; then
12177 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12181 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12185 CFLAGS="$CFLAGS -Wstrict-prototypes"
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12188 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12189 cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes`
12190 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12191 $as_echo_n "(cached) " >&6
12193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12194 /* end confdefs.h. */
12204 if ac_fn_c_try_link "$LINENO"; then :
12205 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12207 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12209 rm -f core conftest.err conftest.$ac_objext \
12210 conftest$ac_exeext conftest.$ac_ext
12214 CFLAGS="$xorg_testset_save_CFLAGS"
12216 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12218 $as_echo "$supported" >&6; }
12219 if test "$supported" = "yes" ; then
12220 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12237 xorg_testset_save_CFLAGS="$CFLAGS"
12239 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12242 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12243 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12244 $as_echo_n "(cached) " >&6
12246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247 /* end confdefs.h. */
12250 if ac_fn_c_try_compile "$LINENO"; then :
12251 xorg_cv_compiler_flag_unknown_warning_option=yes
12253 xorg_cv_compiler_flag_unknown_warning_option=no
12255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12258 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12259 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12260 CFLAGS="$xorg_testset_save_CFLAGS"
12263 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12264 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12269 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12270 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12271 $as_echo_n "(cached) " >&6
12273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12274 /* end confdefs.h. */
12277 if ac_fn_c_try_compile "$LINENO"; then :
12278 xorg_cv_compiler_flag_unused_command_line_argument=yes
12280 xorg_cv_compiler_flag_unused_command_line_argument=no
12282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12285 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12286 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12287 CFLAGS="$xorg_testset_save_CFLAGS"
12292 if test $found = "no" ; then
12293 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12297 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12301 CFLAGS="$CFLAGS -Wmissing-prototypes"
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12304 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12305 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes`
12306 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12307 $as_echo_n "(cached) " >&6
12309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12310 /* end confdefs.h. */
12320 if ac_fn_c_try_link "$LINENO"; then :
12321 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12323 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12325 rm -f core conftest.err conftest.$ac_objext \
12326 conftest$ac_exeext conftest.$ac_ext
12330 CFLAGS="$xorg_testset_save_CFLAGS"
12332 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12334 $as_echo "$supported" >&6; }
12335 if test "$supported" = "yes" ; then
12336 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12353 xorg_testset_save_CFLAGS="$CFLAGS"
12355 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12358 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12359 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12360 $as_echo_n "(cached) " >&6
12362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363 /* end confdefs.h. */
12366 if ac_fn_c_try_compile "$LINENO"; then :
12367 xorg_cv_compiler_flag_unknown_warning_option=yes
12369 xorg_cv_compiler_flag_unknown_warning_option=no
12371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12374 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12375 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12376 CFLAGS="$xorg_testset_save_CFLAGS"
12379 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12380 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12385 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12386 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12387 $as_echo_n "(cached) " >&6
12389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12390 /* end confdefs.h. */
12393 if ac_fn_c_try_compile "$LINENO"; then :
12394 xorg_cv_compiler_flag_unused_command_line_argument=yes
12396 xorg_cv_compiler_flag_unused_command_line_argument=no
12398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12401 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12402 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12403 CFLAGS="$xorg_testset_save_CFLAGS"
12408 if test $found = "no" ; then
12409 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12413 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12417 CFLAGS="$CFLAGS -Wnested-externs"
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12420 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12421 cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs`
12422 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12423 $as_echo_n "(cached) " >&6
12425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12426 /* end confdefs.h. */
12436 if ac_fn_c_try_link "$LINENO"; then :
12437 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12439 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12441 rm -f core conftest.err conftest.$ac_objext \
12442 conftest$ac_exeext conftest.$ac_ext
12446 CFLAGS="$xorg_testset_save_CFLAGS"
12448 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12450 $as_echo "$supported" >&6; }
12451 if test "$supported" = "yes" ; then
12452 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12469 xorg_testset_save_CFLAGS="$CFLAGS"
12471 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12474 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12475 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12476 $as_echo_n "(cached) " >&6
12478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12479 /* end confdefs.h. */
12482 if ac_fn_c_try_compile "$LINENO"; then :
12483 xorg_cv_compiler_flag_unknown_warning_option=yes
12485 xorg_cv_compiler_flag_unknown_warning_option=no
12487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12490 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12491 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12492 CFLAGS="$xorg_testset_save_CFLAGS"
12495 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12496 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12501 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12502 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12503 $as_echo_n "(cached) " >&6
12505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12506 /* end confdefs.h. */
12509 if ac_fn_c_try_compile "$LINENO"; then :
12510 xorg_cv_compiler_flag_unused_command_line_argument=yes
12512 xorg_cv_compiler_flag_unused_command_line_argument=no
12514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12517 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12518 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12519 CFLAGS="$xorg_testset_save_CFLAGS"
12524 if test $found = "no" ; then
12525 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12529 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12533 CFLAGS="$CFLAGS -Wbad-function-cast"
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12536 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12537 cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast`
12538 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12539 $as_echo_n "(cached) " >&6
12541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542 /* end confdefs.h. */
12552 if ac_fn_c_try_link "$LINENO"; then :
12553 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12555 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12557 rm -f core conftest.err conftest.$ac_objext \
12558 conftest$ac_exeext conftest.$ac_ext
12562 CFLAGS="$xorg_testset_save_CFLAGS"
12564 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12566 $as_echo "$supported" >&6; }
12567 if test "$supported" = "yes" ; then
12568 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12585 xorg_testset_save_CFLAGS="$CFLAGS"
12587 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12590 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12591 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12592 $as_echo_n "(cached) " >&6
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12598 if ac_fn_c_try_compile "$LINENO"; then :
12599 xorg_cv_compiler_flag_unknown_warning_option=yes
12601 xorg_cv_compiler_flag_unknown_warning_option=no
12603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12606 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12607 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12608 CFLAGS="$xorg_testset_save_CFLAGS"
12611 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12612 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12617 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12618 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12619 $as_echo_n "(cached) " >&6
12621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12622 /* end confdefs.h. */
12625 if ac_fn_c_try_compile "$LINENO"; then :
12626 xorg_cv_compiler_flag_unused_command_line_argument=yes
12628 xorg_cv_compiler_flag_unused_command_line_argument=no
12630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12633 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12634 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12635 CFLAGS="$xorg_testset_save_CFLAGS"
12640 if test $found = "no" ; then
12641 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12645 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12649 CFLAGS="$CFLAGS -Wold-style-definition"
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12652 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12653 cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition`
12654 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12655 $as_echo_n "(cached) " >&6
12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658 /* end confdefs.h. */
12668 if ac_fn_c_try_link "$LINENO"; then :
12669 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12671 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12673 rm -f core conftest.err conftest.$ac_objext \
12674 conftest$ac_exeext conftest.$ac_ext
12678 CFLAGS="$xorg_testset_save_CFLAGS"
12680 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12682 $as_echo "$supported" >&6; }
12683 if test "$supported" = "yes" ; then
12684 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12701 xorg_testset_save_CFLAGS="$CFLAGS"
12703 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12706 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12707 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12708 $as_echo_n "(cached) " >&6
12710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12711 /* end confdefs.h. */
12714 if ac_fn_c_try_compile "$LINENO"; then :
12715 xorg_cv_compiler_flag_unknown_warning_option=yes
12717 xorg_cv_compiler_flag_unknown_warning_option=no
12719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12722 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12723 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12724 CFLAGS="$xorg_testset_save_CFLAGS"
12727 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12728 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12733 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12734 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12735 $as_echo_n "(cached) " >&6
12737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12738 /* end confdefs.h. */
12741 if ac_fn_c_try_compile "$LINENO"; then :
12742 xorg_cv_compiler_flag_unused_command_line_argument=yes
12744 xorg_cv_compiler_flag_unused_command_line_argument=no
12746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12749 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12750 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12751 CFLAGS="$xorg_testset_save_CFLAGS"
12756 if test $found = "no" ; then
12757 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12761 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12765 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
12768 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
12769 cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statement`
12770 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12771 $as_echo_n "(cached) " >&6
12773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12774 /* end confdefs.h. */
12784 if ac_fn_c_try_link "$LINENO"; then :
12785 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12787 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12789 rm -f core conftest.err conftest.$ac_objext \
12790 conftest$ac_exeext conftest.$ac_ext
12794 CFLAGS="$xorg_testset_save_CFLAGS"
12796 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12798 $as_echo "$supported" >&6; }
12799 if test "$supported" = "yes" ; then
12800 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
12809 # This chunk adds additional warnings that could catch undesired effects.
12821 xorg_testset_save_CFLAGS="$CFLAGS"
12823 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12826 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12827 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12828 $as_echo_n "(cached) " >&6
12830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12831 /* end confdefs.h. */
12834 if ac_fn_c_try_compile "$LINENO"; then :
12835 xorg_cv_compiler_flag_unknown_warning_option=yes
12837 xorg_cv_compiler_flag_unknown_warning_option=no
12839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12842 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12843 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12844 CFLAGS="$xorg_testset_save_CFLAGS"
12847 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12848 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12853 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12854 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12855 $as_echo_n "(cached) " >&6
12857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12858 /* end confdefs.h. */
12861 if ac_fn_c_try_compile "$LINENO"; then :
12862 xorg_cv_compiler_flag_unused_command_line_argument=yes
12864 xorg_cv_compiler_flag_unused_command_line_argument=no
12866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12869 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12870 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12871 CFLAGS="$xorg_testset_save_CFLAGS"
12876 if test $found = "no" ; then
12877 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12881 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12885 CFLAGS="$CFLAGS -Wunused"
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
12888 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
12889 cacheid=`$as_echo xorg_cv_cc_flag_-Wunused`
12890 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12891 $as_echo_n "(cached) " >&6
12893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12894 /* end confdefs.h. */
12904 if ac_fn_c_try_link "$LINENO"; then :
12905 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12907 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12909 rm -f core conftest.err conftest.$ac_objext \
12910 conftest$ac_exeext conftest.$ac_ext
12914 CFLAGS="$xorg_testset_save_CFLAGS"
12916 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12918 $as_echo "$supported" >&6; }
12919 if test "$supported" = "yes" ; then
12920 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
12937 xorg_testset_save_CFLAGS="$CFLAGS"
12939 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12942 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12943 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12944 $as_echo_n "(cached) " >&6
12946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12947 /* end confdefs.h. */
12950 if ac_fn_c_try_compile "$LINENO"; then :
12951 xorg_cv_compiler_flag_unknown_warning_option=yes
12953 xorg_cv_compiler_flag_unknown_warning_option=no
12955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12958 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12959 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12960 CFLAGS="$xorg_testset_save_CFLAGS"
12963 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12964 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12969 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12970 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12971 $as_echo_n "(cached) " >&6
12973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974 /* end confdefs.h. */
12977 if ac_fn_c_try_compile "$LINENO"; then :
12978 xorg_cv_compiler_flag_unused_command_line_argument=yes
12980 xorg_cv_compiler_flag_unused_command_line_argument=no
12982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12985 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12986 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12987 CFLAGS="$xorg_testset_save_CFLAGS"
12992 if test $found = "no" ; then
12993 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12997 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13001 CFLAGS="$CFLAGS -Wuninitialized"
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13004 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13005 cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized`
13006 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13007 $as_echo_n "(cached) " >&6
13009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13010 /* end confdefs.h. */
13020 if ac_fn_c_try_link "$LINENO"; then :
13021 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13023 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13025 rm -f core conftest.err conftest.$ac_objext \
13026 conftest$ac_exeext conftest.$ac_ext
13030 CFLAGS="$xorg_testset_save_CFLAGS"
13032 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13034 $as_echo "$supported" >&6; }
13035 if test "$supported" = "yes" ; then
13036 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13053 xorg_testset_save_CFLAGS="$CFLAGS"
13055 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13058 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13059 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13060 $as_echo_n "(cached) " >&6
13062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13063 /* end confdefs.h. */
13066 if ac_fn_c_try_compile "$LINENO"; then :
13067 xorg_cv_compiler_flag_unknown_warning_option=yes
13069 xorg_cv_compiler_flag_unknown_warning_option=no
13071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13074 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13075 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13076 CFLAGS="$xorg_testset_save_CFLAGS"
13079 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13080 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13085 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13086 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13087 $as_echo_n "(cached) " >&6
13089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13090 /* end confdefs.h. */
13093 if ac_fn_c_try_compile "$LINENO"; then :
13094 xorg_cv_compiler_flag_unused_command_line_argument=yes
13096 xorg_cv_compiler_flag_unused_command_line_argument=no
13098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13101 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13102 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13103 CFLAGS="$xorg_testset_save_CFLAGS"
13108 if test $found = "no" ; then
13109 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13113 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13117 CFLAGS="$CFLAGS -Wshadow"
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13120 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13121 cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow`
13122 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13123 $as_echo_n "(cached) " >&6
13125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126 /* end confdefs.h. */
13136 if ac_fn_c_try_link "$LINENO"; then :
13137 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13139 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13141 rm -f core conftest.err conftest.$ac_objext \
13142 conftest$ac_exeext conftest.$ac_ext
13146 CFLAGS="$xorg_testset_save_CFLAGS"
13148 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13150 $as_echo "$supported" >&6; }
13151 if test "$supported" = "yes" ; then
13152 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13169 xorg_testset_save_CFLAGS="$CFLAGS"
13171 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13174 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13175 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13176 $as_echo_n "(cached) " >&6
13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179 /* end confdefs.h. */
13182 if ac_fn_c_try_compile "$LINENO"; then :
13183 xorg_cv_compiler_flag_unknown_warning_option=yes
13185 xorg_cv_compiler_flag_unknown_warning_option=no
13187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13190 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13191 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13192 CFLAGS="$xorg_testset_save_CFLAGS"
13195 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13196 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13201 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13202 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13203 $as_echo_n "(cached) " >&6
13205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h. */
13209 if ac_fn_c_try_compile "$LINENO"; then :
13210 xorg_cv_compiler_flag_unused_command_line_argument=yes
13212 xorg_cv_compiler_flag_unused_command_line_argument=no
13214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13217 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13218 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13219 CFLAGS="$xorg_testset_save_CFLAGS"
13224 if test $found = "no" ; then
13225 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13229 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13233 CFLAGS="$CFLAGS -Wcast-qual"
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13236 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13237 cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual`
13238 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13239 $as_echo_n "(cached) " >&6
13241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h. */
13252 if ac_fn_c_try_link "$LINENO"; then :
13253 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13255 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13257 rm -f core conftest.err conftest.$ac_objext \
13258 conftest$ac_exeext conftest.$ac_ext
13262 CFLAGS="$xorg_testset_save_CFLAGS"
13264 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13266 $as_echo "$supported" >&6; }
13267 if test "$supported" = "yes" ; then
13268 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13285 xorg_testset_save_CFLAGS="$CFLAGS"
13287 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13290 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13291 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13292 $as_echo_n "(cached) " >&6
13294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13295 /* end confdefs.h. */
13298 if ac_fn_c_try_compile "$LINENO"; then :
13299 xorg_cv_compiler_flag_unknown_warning_option=yes
13301 xorg_cv_compiler_flag_unknown_warning_option=no
13303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13306 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13307 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13308 CFLAGS="$xorg_testset_save_CFLAGS"
13311 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13312 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13317 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13318 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13319 $as_echo_n "(cached) " >&6
13321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13322 /* end confdefs.h. */
13325 if ac_fn_c_try_compile "$LINENO"; then :
13326 xorg_cv_compiler_flag_unused_command_line_argument=yes
13328 xorg_cv_compiler_flag_unused_command_line_argument=no
13330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13333 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13334 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13335 CFLAGS="$xorg_testset_save_CFLAGS"
13340 if test $found = "no" ; then
13341 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13345 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13349 CFLAGS="$CFLAGS -Wmissing-noreturn"
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13352 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13353 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn`
13354 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13355 $as_echo_n "(cached) " >&6
13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13358 /* end confdefs.h. */
13368 if ac_fn_c_try_link "$LINENO"; then :
13369 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13371 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13373 rm -f core conftest.err conftest.$ac_objext \
13374 conftest$ac_exeext conftest.$ac_ext
13378 CFLAGS="$xorg_testset_save_CFLAGS"
13380 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13382 $as_echo "$supported" >&6; }
13383 if test "$supported" = "yes" ; then
13384 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13401 xorg_testset_save_CFLAGS="$CFLAGS"
13403 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13406 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13407 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13408 $as_echo_n "(cached) " >&6
13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h. */
13414 if ac_fn_c_try_compile "$LINENO"; then :
13415 xorg_cv_compiler_flag_unknown_warning_option=yes
13417 xorg_cv_compiler_flag_unknown_warning_option=no
13419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13422 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13423 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13424 CFLAGS="$xorg_testset_save_CFLAGS"
13427 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13428 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13433 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13434 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13435 $as_echo_n "(cached) " >&6
13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438 /* end confdefs.h. */
13441 if ac_fn_c_try_compile "$LINENO"; then :
13442 xorg_cv_compiler_flag_unused_command_line_argument=yes
13444 xorg_cv_compiler_flag_unused_command_line_argument=no
13446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13449 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13450 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13451 CFLAGS="$xorg_testset_save_CFLAGS"
13456 if test $found = "no" ; then
13457 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13461 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13465 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13468 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13469 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute`
13470 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13471 $as_echo_n "(cached) " >&6
13473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13474 /* end confdefs.h. */
13484 if ac_fn_c_try_link "$LINENO"; then :
13485 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13487 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13489 rm -f core conftest.err conftest.$ac_objext \
13490 conftest$ac_exeext conftest.$ac_ext
13494 CFLAGS="$xorg_testset_save_CFLAGS"
13496 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13498 $as_echo "$supported" >&6; }
13499 if test "$supported" = "yes" ; then
13500 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13517 xorg_testset_save_CFLAGS="$CFLAGS"
13519 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13522 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13523 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13524 $as_echo_n "(cached) " >&6
13526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13527 /* end confdefs.h. */
13530 if ac_fn_c_try_compile "$LINENO"; then :
13531 xorg_cv_compiler_flag_unknown_warning_option=yes
13533 xorg_cv_compiler_flag_unknown_warning_option=no
13535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13538 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13539 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13540 CFLAGS="$xorg_testset_save_CFLAGS"
13543 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13544 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13549 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13550 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13551 $as_echo_n "(cached) " >&6
13553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13554 /* end confdefs.h. */
13557 if ac_fn_c_try_compile "$LINENO"; then :
13558 xorg_cv_compiler_flag_unused_command_line_argument=yes
13560 xorg_cv_compiler_flag_unused_command_line_argument=no
13562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13565 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13566 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13567 CFLAGS="$xorg_testset_save_CFLAGS"
13572 if test $found = "no" ; then
13573 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13577 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13581 CFLAGS="$CFLAGS -Wredundant-decls"
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13584 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13585 cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls`
13586 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13587 $as_echo_n "(cached) " >&6
13589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590 /* end confdefs.h. */
13600 if ac_fn_c_try_link "$LINENO"; then :
13601 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13603 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13605 rm -f core conftest.err conftest.$ac_objext \
13606 conftest$ac_exeext conftest.$ac_ext
13610 CFLAGS="$xorg_testset_save_CFLAGS"
13612 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13614 $as_echo "$supported" >&6; }
13615 if test "$supported" = "yes" ; then
13616 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13623 # These are currently disabled because they are noisy. They will be enabled
13624 # in the future once the codebase is sufficiently modernized to silence
13625 # them. For now, I don't want them to drown out the other warnings.
13626 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13627 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13628 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13630 # Turn some warnings into errors, so we don't accidently get successful builds
13631 # when there are problems that should be fixed.
13633 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13645 xorg_testset_save_CFLAGS="$CFLAGS"
13647 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13650 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13651 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13652 $as_echo_n "(cached) " >&6
13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h. */
13658 if ac_fn_c_try_compile "$LINENO"; then :
13659 xorg_cv_compiler_flag_unknown_warning_option=yes
13661 xorg_cv_compiler_flag_unknown_warning_option=no
13663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13666 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13667 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13668 CFLAGS="$xorg_testset_save_CFLAGS"
13671 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13672 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13677 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13678 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13679 $as_echo_n "(cached) " >&6
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13685 if ac_fn_c_try_compile "$LINENO"; then :
13686 xorg_cv_compiler_flag_unused_command_line_argument=yes
13688 xorg_cv_compiler_flag_unused_command_line_argument=no
13690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13693 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13694 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13695 CFLAGS="$xorg_testset_save_CFLAGS"
13700 if test $found = "no" ; then
13701 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13705 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13709 CFLAGS="$CFLAGS -Werror=implicit"
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13712 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13713 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit`
13714 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13715 $as_echo_n "(cached) " >&6
13717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13718 /* end confdefs.h. */
13728 if ac_fn_c_try_link "$LINENO"; then :
13729 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13731 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13733 rm -f core conftest.err conftest.$ac_objext \
13734 conftest$ac_exeext conftest.$ac_ext
13738 CFLAGS="$xorg_testset_save_CFLAGS"
13740 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13742 $as_echo "$supported" >&6; }
13743 if test "$supported" = "yes" ; then
13744 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13749 if test $found = "no" ; then
13750 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13754 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13758 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13761 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13762 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
13763 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13764 $as_echo_n "(cached) " >&6
13766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13767 /* end confdefs.h. */
13777 if ac_fn_c_try_link "$LINENO"; then :
13778 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13780 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13782 rm -f core conftest.err conftest.$ac_objext \
13783 conftest$ac_exeext conftest.$ac_ext
13787 CFLAGS="$xorg_testset_save_CFLAGS"
13789 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13791 $as_echo "$supported" >&6; }
13792 if test "$supported" = "yes" ; then
13793 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13810 xorg_testset_save_CFLAGS="$CFLAGS"
13812 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13815 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13816 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13817 $as_echo_n "(cached) " >&6
13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820 /* end confdefs.h. */
13823 if ac_fn_c_try_compile "$LINENO"; then :
13824 xorg_cv_compiler_flag_unknown_warning_option=yes
13826 xorg_cv_compiler_flag_unknown_warning_option=no
13828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13831 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13832 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13833 CFLAGS="$xorg_testset_save_CFLAGS"
13836 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13837 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13842 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13843 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13844 $as_echo_n "(cached) " >&6
13846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13847 /* end confdefs.h. */
13850 if ac_fn_c_try_compile "$LINENO"; then :
13851 xorg_cv_compiler_flag_unused_command_line_argument=yes
13853 xorg_cv_compiler_flag_unused_command_line_argument=no
13855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13858 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13859 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13860 CFLAGS="$xorg_testset_save_CFLAGS"
13865 if test $found = "no" ; then
13866 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13870 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13874 CFLAGS="$CFLAGS -Werror=nonnull"
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
13877 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
13878 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull`
13879 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13880 $as_echo_n "(cached) " >&6
13882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13883 /* end confdefs.h. */
13893 if ac_fn_c_try_link "$LINENO"; then :
13894 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13896 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13898 rm -f core conftest.err conftest.$ac_objext \
13899 conftest$ac_exeext conftest.$ac_ext
13903 CFLAGS="$xorg_testset_save_CFLAGS"
13905 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13907 $as_echo "$supported" >&6; }
13908 if test "$supported" = "yes" ; then
13909 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
13926 xorg_testset_save_CFLAGS="$CFLAGS"
13928 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13931 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13932 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13933 $as_echo_n "(cached) " >&6
13935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13936 /* end confdefs.h. */
13939 if ac_fn_c_try_compile "$LINENO"; then :
13940 xorg_cv_compiler_flag_unknown_warning_option=yes
13942 xorg_cv_compiler_flag_unknown_warning_option=no
13944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13947 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13948 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13949 CFLAGS="$xorg_testset_save_CFLAGS"
13952 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13953 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13958 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13959 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13960 $as_echo_n "(cached) " >&6
13962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13963 /* end confdefs.h. */
13966 if ac_fn_c_try_compile "$LINENO"; then :
13967 xorg_cv_compiler_flag_unused_command_line_argument=yes
13969 xorg_cv_compiler_flag_unused_command_line_argument=no
13971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13974 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13975 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13976 CFLAGS="$xorg_testset_save_CFLAGS"
13981 if test $found = "no" ; then
13982 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13986 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13990 CFLAGS="$CFLAGS -Werror=init-self"
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
13993 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
13994 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self`
13995 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13996 $as_echo_n "(cached) " >&6
13998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13999 /* end confdefs.h. */
14009 if ac_fn_c_try_link "$LINENO"; then :
14010 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14012 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14014 rm -f core conftest.err conftest.$ac_objext \
14015 conftest$ac_exeext conftest.$ac_ext
14019 CFLAGS="$xorg_testset_save_CFLAGS"
14021 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14023 $as_echo "$supported" >&6; }
14024 if test "$supported" = "yes" ; then
14025 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14042 xorg_testset_save_CFLAGS="$CFLAGS"
14044 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14047 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14048 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14049 $as_echo_n "(cached) " >&6
14051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14052 /* end confdefs.h. */
14055 if ac_fn_c_try_compile "$LINENO"; then :
14056 xorg_cv_compiler_flag_unknown_warning_option=yes
14058 xorg_cv_compiler_flag_unknown_warning_option=no
14060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14063 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14064 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14065 CFLAGS="$xorg_testset_save_CFLAGS"
14068 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14069 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14070 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14074 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14075 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14076 $as_echo_n "(cached) " >&6
14078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14079 /* end confdefs.h. */
14082 if ac_fn_c_try_compile "$LINENO"; then :
14083 xorg_cv_compiler_flag_unused_command_line_argument=yes
14085 xorg_cv_compiler_flag_unused_command_line_argument=no
14087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14090 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14091 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14092 CFLAGS="$xorg_testset_save_CFLAGS"
14097 if test $found = "no" ; then
14098 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14102 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14106 CFLAGS="$CFLAGS -Werror=main"
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14109 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14110 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main`
14111 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14112 $as_echo_n "(cached) " >&6
14114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14115 /* end confdefs.h. */
14125 if ac_fn_c_try_link "$LINENO"; then :
14126 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14128 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14130 rm -f core conftest.err conftest.$ac_objext \
14131 conftest$ac_exeext conftest.$ac_ext
14135 CFLAGS="$xorg_testset_save_CFLAGS"
14137 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14139 $as_echo "$supported" >&6; }
14140 if test "$supported" = "yes" ; then
14141 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14158 xorg_testset_save_CFLAGS="$CFLAGS"
14160 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14163 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14164 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14165 $as_echo_n "(cached) " >&6
14167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14168 /* end confdefs.h. */
14171 if ac_fn_c_try_compile "$LINENO"; then :
14172 xorg_cv_compiler_flag_unknown_warning_option=yes
14174 xorg_cv_compiler_flag_unknown_warning_option=no
14176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14179 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14180 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14181 CFLAGS="$xorg_testset_save_CFLAGS"
14184 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14185 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14190 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14191 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14192 $as_echo_n "(cached) " >&6
14194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h. */
14198 if ac_fn_c_try_compile "$LINENO"; then :
14199 xorg_cv_compiler_flag_unused_command_line_argument=yes
14201 xorg_cv_compiler_flag_unused_command_line_argument=no
14203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14206 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14207 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14208 CFLAGS="$xorg_testset_save_CFLAGS"
14213 if test $found = "no" ; then
14214 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14218 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14222 CFLAGS="$CFLAGS -Werror=missing-braces"
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14225 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14226 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces`
14227 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14228 $as_echo_n "(cached) " >&6
14230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14231 /* end confdefs.h. */
14241 if ac_fn_c_try_link "$LINENO"; then :
14242 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14244 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14246 rm -f core conftest.err conftest.$ac_objext \
14247 conftest$ac_exeext conftest.$ac_ext
14251 CFLAGS="$xorg_testset_save_CFLAGS"
14253 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14255 $as_echo "$supported" >&6; }
14256 if test "$supported" = "yes" ; then
14257 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14274 xorg_testset_save_CFLAGS="$CFLAGS"
14276 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14279 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14280 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14281 $as_echo_n "(cached) " >&6
14283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14284 /* end confdefs.h. */
14287 if ac_fn_c_try_compile "$LINENO"; then :
14288 xorg_cv_compiler_flag_unknown_warning_option=yes
14290 xorg_cv_compiler_flag_unknown_warning_option=no
14292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14295 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14296 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14297 CFLAGS="$xorg_testset_save_CFLAGS"
14300 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14301 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14306 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14307 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14308 $as_echo_n "(cached) " >&6
14310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14311 /* end confdefs.h. */
14314 if ac_fn_c_try_compile "$LINENO"; then :
14315 xorg_cv_compiler_flag_unused_command_line_argument=yes
14317 xorg_cv_compiler_flag_unused_command_line_argument=no
14319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14322 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14323 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14324 CFLAGS="$xorg_testset_save_CFLAGS"
14329 if test $found = "no" ; then
14330 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14334 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14338 CFLAGS="$CFLAGS -Werror=sequence-point"
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14341 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14342 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point`
14343 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14344 $as_echo_n "(cached) " >&6
14346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14347 /* end confdefs.h. */
14357 if ac_fn_c_try_link "$LINENO"; then :
14358 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14360 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14362 rm -f core conftest.err conftest.$ac_objext \
14363 conftest$ac_exeext conftest.$ac_ext
14367 CFLAGS="$xorg_testset_save_CFLAGS"
14369 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14371 $as_echo "$supported" >&6; }
14372 if test "$supported" = "yes" ; then
14373 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14390 xorg_testset_save_CFLAGS="$CFLAGS"
14392 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14395 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14396 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14397 $as_echo_n "(cached) " >&6
14399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14400 /* end confdefs.h. */
14403 if ac_fn_c_try_compile "$LINENO"; then :
14404 xorg_cv_compiler_flag_unknown_warning_option=yes
14406 xorg_cv_compiler_flag_unknown_warning_option=no
14408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14411 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14412 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14413 CFLAGS="$xorg_testset_save_CFLAGS"
14416 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14417 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14422 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14423 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14424 $as_echo_n "(cached) " >&6
14426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14427 /* end confdefs.h. */
14430 if ac_fn_c_try_compile "$LINENO"; then :
14431 xorg_cv_compiler_flag_unused_command_line_argument=yes
14433 xorg_cv_compiler_flag_unused_command_line_argument=no
14435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14438 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14439 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14440 CFLAGS="$xorg_testset_save_CFLAGS"
14445 if test $found = "no" ; then
14446 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14450 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14454 CFLAGS="$CFLAGS -Werror=return-type"
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14457 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14458 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type`
14459 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14460 $as_echo_n "(cached) " >&6
14462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14463 /* end confdefs.h. */
14473 if ac_fn_c_try_link "$LINENO"; then :
14474 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14476 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14478 rm -f core conftest.err conftest.$ac_objext \
14479 conftest$ac_exeext conftest.$ac_ext
14483 CFLAGS="$xorg_testset_save_CFLAGS"
14485 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14487 $as_echo "$supported" >&6; }
14488 if test "$supported" = "yes" ; then
14489 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14494 if test $found = "no" ; then
14495 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14499 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14503 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14506 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14507 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
14508 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14509 $as_echo_n "(cached) " >&6
14511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14512 /* end confdefs.h. */
14522 if ac_fn_c_try_link "$LINENO"; then :
14523 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14525 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14527 rm -f core conftest.err conftest.$ac_objext \
14528 conftest$ac_exeext conftest.$ac_ext
14532 CFLAGS="$xorg_testset_save_CFLAGS"
14534 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14536 $as_echo "$supported" >&6; }
14537 if test "$supported" = "yes" ; then
14538 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14555 xorg_testset_save_CFLAGS="$CFLAGS"
14557 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14560 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14561 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14562 $as_echo_n "(cached) " >&6
14564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14565 /* end confdefs.h. */
14568 if ac_fn_c_try_compile "$LINENO"; then :
14569 xorg_cv_compiler_flag_unknown_warning_option=yes
14571 xorg_cv_compiler_flag_unknown_warning_option=no
14573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14576 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14577 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14578 CFLAGS="$xorg_testset_save_CFLAGS"
14581 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14582 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14587 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14588 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14589 $as_echo_n "(cached) " >&6
14591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14592 /* end confdefs.h. */
14595 if ac_fn_c_try_compile "$LINENO"; then :
14596 xorg_cv_compiler_flag_unused_command_line_argument=yes
14598 xorg_cv_compiler_flag_unused_command_line_argument=no
14600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14603 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14604 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14605 CFLAGS="$xorg_testset_save_CFLAGS"
14610 if test $found = "no" ; then
14611 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14615 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14619 CFLAGS="$CFLAGS -Werror=trigraphs"
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14622 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14623 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs`
14624 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14625 $as_echo_n "(cached) " >&6
14627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14628 /* end confdefs.h. */
14638 if ac_fn_c_try_link "$LINENO"; then :
14639 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14641 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14643 rm -f core conftest.err conftest.$ac_objext \
14644 conftest$ac_exeext conftest.$ac_ext
14648 CFLAGS="$xorg_testset_save_CFLAGS"
14650 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14652 $as_echo "$supported" >&6; }
14653 if test "$supported" = "yes" ; then
14654 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14671 xorg_testset_save_CFLAGS="$CFLAGS"
14673 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14676 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14677 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14678 $as_echo_n "(cached) " >&6
14680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14681 /* end confdefs.h. */
14684 if ac_fn_c_try_compile "$LINENO"; then :
14685 xorg_cv_compiler_flag_unknown_warning_option=yes
14687 xorg_cv_compiler_flag_unknown_warning_option=no
14689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14692 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14693 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14694 CFLAGS="$xorg_testset_save_CFLAGS"
14697 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14698 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14703 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14704 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14705 $as_echo_n "(cached) " >&6
14707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14708 /* end confdefs.h. */
14711 if ac_fn_c_try_compile "$LINENO"; then :
14712 xorg_cv_compiler_flag_unused_command_line_argument=yes
14714 xorg_cv_compiler_flag_unused_command_line_argument=no
14716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14719 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14720 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14721 CFLAGS="$xorg_testset_save_CFLAGS"
14726 if test $found = "no" ; then
14727 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14731 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14735 CFLAGS="$CFLAGS -Werror=array-bounds"
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14738 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14739 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds`
14740 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14741 $as_echo_n "(cached) " >&6
14743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14744 /* end confdefs.h. */
14754 if ac_fn_c_try_link "$LINENO"; then :
14755 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14757 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14759 rm -f core conftest.err conftest.$ac_objext \
14760 conftest$ac_exeext conftest.$ac_ext
14764 CFLAGS="$xorg_testset_save_CFLAGS"
14766 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14768 $as_echo "$supported" >&6; }
14769 if test "$supported" = "yes" ; then
14770 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14787 xorg_testset_save_CFLAGS="$CFLAGS"
14789 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14792 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14793 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14794 $as_echo_n "(cached) " >&6
14796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14797 /* end confdefs.h. */
14800 if ac_fn_c_try_compile "$LINENO"; then :
14801 xorg_cv_compiler_flag_unknown_warning_option=yes
14803 xorg_cv_compiler_flag_unknown_warning_option=no
14805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14808 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14809 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14810 CFLAGS="$xorg_testset_save_CFLAGS"
14813 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14814 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14819 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14820 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14821 $as_echo_n "(cached) " >&6
14823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824 /* end confdefs.h. */
14827 if ac_fn_c_try_compile "$LINENO"; then :
14828 xorg_cv_compiler_flag_unused_command_line_argument=yes
14830 xorg_cv_compiler_flag_unused_command_line_argument=no
14832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14835 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14836 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14837 CFLAGS="$xorg_testset_save_CFLAGS"
14842 if test $found = "no" ; then
14843 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14847 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14851 CFLAGS="$CFLAGS -Werror=write-strings"
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
14854 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
14855 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings`
14856 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14857 $as_echo_n "(cached) " >&6
14859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14860 /* end confdefs.h. */
14870 if ac_fn_c_try_link "$LINENO"; then :
14871 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14873 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14875 rm -f core conftest.err conftest.$ac_objext \
14876 conftest$ac_exeext conftest.$ac_ext
14880 CFLAGS="$xorg_testset_save_CFLAGS"
14882 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14884 $as_echo "$supported" >&6; }
14885 if test "$supported" = "yes" ; then
14886 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
14903 xorg_testset_save_CFLAGS="$CFLAGS"
14905 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14908 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14909 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14910 $as_echo_n "(cached) " >&6
14912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14913 /* end confdefs.h. */
14916 if ac_fn_c_try_compile "$LINENO"; then :
14917 xorg_cv_compiler_flag_unknown_warning_option=yes
14919 xorg_cv_compiler_flag_unknown_warning_option=no
14921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14924 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14925 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14926 CFLAGS="$xorg_testset_save_CFLAGS"
14929 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14930 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14931 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14935 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14936 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14937 $as_echo_n "(cached) " >&6
14939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14940 /* end confdefs.h. */
14943 if ac_fn_c_try_compile "$LINENO"; then :
14944 xorg_cv_compiler_flag_unused_command_line_argument=yes
14946 xorg_cv_compiler_flag_unused_command_line_argument=no
14948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14951 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14952 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14953 CFLAGS="$xorg_testset_save_CFLAGS"
14958 if test $found = "no" ; then
14959 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14963 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14967 CFLAGS="$CFLAGS -Werror=address"
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
14970 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
14971 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address`
14972 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14973 $as_echo_n "(cached) " >&6
14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976 /* end confdefs.h. */
14986 if ac_fn_c_try_link "$LINENO"; then :
14987 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14989 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14991 rm -f core conftest.err conftest.$ac_objext \
14992 conftest$ac_exeext conftest.$ac_ext
14996 CFLAGS="$xorg_testset_save_CFLAGS"
14998 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15000 $as_echo "$supported" >&6; }
15001 if test "$supported" = "yes" ; then
15002 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15019 xorg_testset_save_CFLAGS="$CFLAGS"
15021 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15024 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15025 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15026 $as_echo_n "(cached) " >&6
15028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15029 /* end confdefs.h. */
15032 if ac_fn_c_try_compile "$LINENO"; then :
15033 xorg_cv_compiler_flag_unknown_warning_option=yes
15035 xorg_cv_compiler_flag_unknown_warning_option=no
15037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15040 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15041 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15042 CFLAGS="$xorg_testset_save_CFLAGS"
15045 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15046 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15051 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15052 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15053 $as_echo_n "(cached) " >&6
15055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15056 /* end confdefs.h. */
15059 if ac_fn_c_try_compile "$LINENO"; then :
15060 xorg_cv_compiler_flag_unused_command_line_argument=yes
15062 xorg_cv_compiler_flag_unused_command_line_argument=no
15064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15067 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15068 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15069 CFLAGS="$xorg_testset_save_CFLAGS"
15074 if test $found = "no" ; then
15075 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15079 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15083 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15086 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15087 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
15088 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15089 $as_echo_n "(cached) " >&6
15091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15092 /* end confdefs.h. */
15102 if ac_fn_c_try_link "$LINENO"; then :
15103 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15105 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15107 rm -f core conftest.err conftest.$ac_objext \
15108 conftest$ac_exeext conftest.$ac_ext
15112 CFLAGS="$xorg_testset_save_CFLAGS"
15114 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15116 $as_echo "$supported" >&6; }
15117 if test "$supported" = "yes" ; then
15118 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15123 if test $found = "no" ; then
15124 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15128 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15132 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15135 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15136 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
15137 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15138 $as_echo_n "(cached) " >&6
15140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15141 /* end confdefs.h. */
15151 if ac_fn_c_try_link "$LINENO"; then :
15152 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15154 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15156 rm -f core conftest.err conftest.$ac_objext \
15157 conftest$ac_exeext conftest.$ac_ext
15161 CFLAGS="$xorg_testset_save_CFLAGS"
15163 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15165 $as_echo "$supported" >&6; }
15166 if test "$supported" = "yes" ; then
15167 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15184 xorg_testset_save_CFLAGS="$CFLAGS"
15186 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15189 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15190 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15191 $as_echo_n "(cached) " >&6
15193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15194 /* end confdefs.h. */
15197 if ac_fn_c_try_compile "$LINENO"; then :
15198 xorg_cv_compiler_flag_unknown_warning_option=yes
15200 xorg_cv_compiler_flag_unknown_warning_option=no
15202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15205 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15206 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15207 CFLAGS="$xorg_testset_save_CFLAGS"
15210 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15211 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15216 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15217 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15218 $as_echo_n "(cached) " >&6
15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221 /* end confdefs.h. */
15224 if ac_fn_c_try_compile "$LINENO"; then :
15225 xorg_cv_compiler_flag_unused_command_line_argument=yes
15227 xorg_cv_compiler_flag_unused_command_line_argument=no
15229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15232 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15233 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15234 CFLAGS="$xorg_testset_save_CFLAGS"
15239 if test $found = "no" ; then
15240 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15244 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15248 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15251 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15252 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
15253 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15254 $as_echo_n "(cached) " >&6
15256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15257 /* end confdefs.h. */
15267 if ac_fn_c_try_link "$LINENO"; then :
15268 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15270 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15272 rm -f core conftest.err conftest.$ac_objext \
15273 conftest$ac_exeext conftest.$ac_ext
15277 CFLAGS="$xorg_testset_save_CFLAGS"
15279 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15281 $as_echo "$supported" >&6; }
15282 if test "$supported" = "yes" ; then
15283 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15288 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15290 { $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
15291 $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;}
15303 xorg_testset_save_CFLAGS="$CFLAGS"
15305 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15308 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15309 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15310 $as_echo_n "(cached) " >&6
15312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15313 /* end confdefs.h. */
15316 if ac_fn_c_try_compile "$LINENO"; then :
15317 xorg_cv_compiler_flag_unknown_warning_option=yes
15319 xorg_cv_compiler_flag_unknown_warning_option=no
15321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15324 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15325 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15326 CFLAGS="$xorg_testset_save_CFLAGS"
15329 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15330 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15335 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15336 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15337 $as_echo_n "(cached) " >&6
15339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15340 /* end confdefs.h. */
15343 if ac_fn_c_try_compile "$LINENO"; then :
15344 xorg_cv_compiler_flag_unused_command_line_argument=yes
15346 xorg_cv_compiler_flag_unused_command_line_argument=no
15348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15351 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15352 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15353 CFLAGS="$xorg_testset_save_CFLAGS"
15358 if test $found = "no" ; then
15359 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15363 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15367 CFLAGS="$CFLAGS -Wimplicit"
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15370 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15371 cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit`
15372 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15373 $as_echo_n "(cached) " >&6
15375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15376 /* end confdefs.h. */
15386 if ac_fn_c_try_link "$LINENO"; then :
15387 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15389 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15391 rm -f core conftest.err conftest.$ac_objext \
15392 conftest$ac_exeext conftest.$ac_ext
15396 CFLAGS="$xorg_testset_save_CFLAGS"
15398 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15400 $as_echo "$supported" >&6; }
15401 if test "$supported" = "yes" ; then
15402 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15419 xorg_testset_save_CFLAGS="$CFLAGS"
15421 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15424 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15425 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15426 $as_echo_n "(cached) " >&6
15428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15429 /* end confdefs.h. */
15432 if ac_fn_c_try_compile "$LINENO"; then :
15433 xorg_cv_compiler_flag_unknown_warning_option=yes
15435 xorg_cv_compiler_flag_unknown_warning_option=no
15437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15440 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15441 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15442 CFLAGS="$xorg_testset_save_CFLAGS"
15445 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15446 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15451 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15452 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15453 $as_echo_n "(cached) " >&6
15455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15456 /* end confdefs.h. */
15459 if ac_fn_c_try_compile "$LINENO"; then :
15460 xorg_cv_compiler_flag_unused_command_line_argument=yes
15462 xorg_cv_compiler_flag_unused_command_line_argument=no
15464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15467 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15468 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15469 CFLAGS="$xorg_testset_save_CFLAGS"
15474 if test $found = "no" ; then
15475 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15479 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15483 CFLAGS="$CFLAGS -Wnonnull"
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15486 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15487 cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull`
15488 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15489 $as_echo_n "(cached) " >&6
15491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15492 /* end confdefs.h. */
15502 if ac_fn_c_try_link "$LINENO"; then :
15503 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15505 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15507 rm -f core conftest.err conftest.$ac_objext \
15508 conftest$ac_exeext conftest.$ac_ext
15512 CFLAGS="$xorg_testset_save_CFLAGS"
15514 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15516 $as_echo "$supported" >&6; }
15517 if test "$supported" = "yes" ; then
15518 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15535 xorg_testset_save_CFLAGS="$CFLAGS"
15537 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15540 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15541 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15542 $as_echo_n "(cached) " >&6
15544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15545 /* end confdefs.h. */
15548 if ac_fn_c_try_compile "$LINENO"; then :
15549 xorg_cv_compiler_flag_unknown_warning_option=yes
15551 xorg_cv_compiler_flag_unknown_warning_option=no
15553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15556 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15557 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15558 CFLAGS="$xorg_testset_save_CFLAGS"
15561 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15562 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15567 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15568 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15569 $as_echo_n "(cached) " >&6
15571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15572 /* end confdefs.h. */
15575 if ac_fn_c_try_compile "$LINENO"; then :
15576 xorg_cv_compiler_flag_unused_command_line_argument=yes
15578 xorg_cv_compiler_flag_unused_command_line_argument=no
15580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15583 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15584 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15585 CFLAGS="$xorg_testset_save_CFLAGS"
15590 if test $found = "no" ; then
15591 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15595 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15599 CFLAGS="$CFLAGS -Winit-self"
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15602 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15603 cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self`
15604 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15605 $as_echo_n "(cached) " >&6
15607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15608 /* end confdefs.h. */
15618 if ac_fn_c_try_link "$LINENO"; then :
15619 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15621 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15623 rm -f core conftest.err conftest.$ac_objext \
15624 conftest$ac_exeext conftest.$ac_ext
15628 CFLAGS="$xorg_testset_save_CFLAGS"
15630 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15632 $as_echo "$supported" >&6; }
15633 if test "$supported" = "yes" ; then
15634 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15651 xorg_testset_save_CFLAGS="$CFLAGS"
15653 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15656 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15657 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15658 $as_echo_n "(cached) " >&6
15660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15661 /* end confdefs.h. */
15664 if ac_fn_c_try_compile "$LINENO"; then :
15665 xorg_cv_compiler_flag_unknown_warning_option=yes
15667 xorg_cv_compiler_flag_unknown_warning_option=no
15669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15672 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15673 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15674 CFLAGS="$xorg_testset_save_CFLAGS"
15677 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15678 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15683 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15684 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15685 $as_echo_n "(cached) " >&6
15687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15688 /* end confdefs.h. */
15691 if ac_fn_c_try_compile "$LINENO"; then :
15692 xorg_cv_compiler_flag_unused_command_line_argument=yes
15694 xorg_cv_compiler_flag_unused_command_line_argument=no
15696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15699 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15700 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15701 CFLAGS="$xorg_testset_save_CFLAGS"
15706 if test $found = "no" ; then
15707 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15711 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15715 CFLAGS="$CFLAGS -Wmain"
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15718 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
15719 cacheid=`$as_echo xorg_cv_cc_flag_-Wmain`
15720 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15721 $as_echo_n "(cached) " >&6
15723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15724 /* end confdefs.h. */
15734 if ac_fn_c_try_link "$LINENO"; then :
15735 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15737 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15739 rm -f core conftest.err conftest.$ac_objext \
15740 conftest$ac_exeext conftest.$ac_ext
15744 CFLAGS="$xorg_testset_save_CFLAGS"
15746 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15748 $as_echo "$supported" >&6; }
15749 if test "$supported" = "yes" ; then
15750 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15767 xorg_testset_save_CFLAGS="$CFLAGS"
15769 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15772 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15773 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15774 $as_echo_n "(cached) " >&6
15776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15777 /* end confdefs.h. */
15780 if ac_fn_c_try_compile "$LINENO"; then :
15781 xorg_cv_compiler_flag_unknown_warning_option=yes
15783 xorg_cv_compiler_flag_unknown_warning_option=no
15785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15788 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15789 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15790 CFLAGS="$xorg_testset_save_CFLAGS"
15793 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15794 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15799 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15800 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15801 $as_echo_n "(cached) " >&6
15803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15804 /* end confdefs.h. */
15807 if ac_fn_c_try_compile "$LINENO"; then :
15808 xorg_cv_compiler_flag_unused_command_line_argument=yes
15810 xorg_cv_compiler_flag_unused_command_line_argument=no
15812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15815 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15816 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15817 CFLAGS="$xorg_testset_save_CFLAGS"
15822 if test $found = "no" ; then
15823 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15827 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15831 CFLAGS="$CFLAGS -Wmissing-braces"
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
15834 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
15835 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces`
15836 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15837 $as_echo_n "(cached) " >&6
15839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15840 /* end confdefs.h. */
15850 if ac_fn_c_try_link "$LINENO"; then :
15851 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15853 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15855 rm -f core conftest.err conftest.$ac_objext \
15856 conftest$ac_exeext conftest.$ac_ext
15860 CFLAGS="$xorg_testset_save_CFLAGS"
15862 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15864 $as_echo "$supported" >&6; }
15865 if test "$supported" = "yes" ; then
15866 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
15883 xorg_testset_save_CFLAGS="$CFLAGS"
15885 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15888 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15889 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15890 $as_echo_n "(cached) " >&6
15892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15893 /* end confdefs.h. */
15896 if ac_fn_c_try_compile "$LINENO"; then :
15897 xorg_cv_compiler_flag_unknown_warning_option=yes
15899 xorg_cv_compiler_flag_unknown_warning_option=no
15901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15904 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15905 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15906 CFLAGS="$xorg_testset_save_CFLAGS"
15909 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15910 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15915 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15916 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15917 $as_echo_n "(cached) " >&6
15919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15920 /* end confdefs.h. */
15923 if ac_fn_c_try_compile "$LINENO"; then :
15924 xorg_cv_compiler_flag_unused_command_line_argument=yes
15926 xorg_cv_compiler_flag_unused_command_line_argument=no
15928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15931 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15932 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15933 CFLAGS="$xorg_testset_save_CFLAGS"
15938 if test $found = "no" ; then
15939 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15943 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15947 CFLAGS="$CFLAGS -Wsequence-point"
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
15950 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
15951 cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point`
15952 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15953 $as_echo_n "(cached) " >&6
15955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15956 /* end confdefs.h. */
15966 if ac_fn_c_try_link "$LINENO"; then :
15967 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15969 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15971 rm -f core conftest.err conftest.$ac_objext \
15972 conftest$ac_exeext conftest.$ac_ext
15976 CFLAGS="$xorg_testset_save_CFLAGS"
15978 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15980 $as_echo "$supported" >&6; }
15981 if test "$supported" = "yes" ; then
15982 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
15999 xorg_testset_save_CFLAGS="$CFLAGS"
16001 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16004 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16005 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16006 $as_echo_n "(cached) " >&6
16008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16009 /* end confdefs.h. */
16012 if ac_fn_c_try_compile "$LINENO"; then :
16013 xorg_cv_compiler_flag_unknown_warning_option=yes
16015 xorg_cv_compiler_flag_unknown_warning_option=no
16017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16020 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16021 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16022 CFLAGS="$xorg_testset_save_CFLAGS"
16025 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16026 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16031 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16032 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16033 $as_echo_n "(cached) " >&6
16035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16036 /* end confdefs.h. */
16039 if ac_fn_c_try_compile "$LINENO"; then :
16040 xorg_cv_compiler_flag_unused_command_line_argument=yes
16042 xorg_cv_compiler_flag_unused_command_line_argument=no
16044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16047 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16048 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16049 CFLAGS="$xorg_testset_save_CFLAGS"
16054 if test $found = "no" ; then
16055 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16059 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16063 CFLAGS="$CFLAGS -Wreturn-type"
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16066 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16067 cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type`
16068 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16069 $as_echo_n "(cached) " >&6
16071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16072 /* end confdefs.h. */
16082 if ac_fn_c_try_link "$LINENO"; then :
16083 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16085 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16087 rm -f core conftest.err conftest.$ac_objext \
16088 conftest$ac_exeext conftest.$ac_ext
16092 CFLAGS="$xorg_testset_save_CFLAGS"
16094 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16096 $as_echo "$supported" >&6; }
16097 if test "$supported" = "yes" ; then
16098 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16115 xorg_testset_save_CFLAGS="$CFLAGS"
16117 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16120 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16121 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16122 $as_echo_n "(cached) " >&6
16124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16125 /* end confdefs.h. */
16128 if ac_fn_c_try_compile "$LINENO"; then :
16129 xorg_cv_compiler_flag_unknown_warning_option=yes
16131 xorg_cv_compiler_flag_unknown_warning_option=no
16133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16136 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16137 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16138 CFLAGS="$xorg_testset_save_CFLAGS"
16141 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16142 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16147 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16148 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16149 $as_echo_n "(cached) " >&6
16151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16152 /* end confdefs.h. */
16155 if ac_fn_c_try_compile "$LINENO"; then :
16156 xorg_cv_compiler_flag_unused_command_line_argument=yes
16158 xorg_cv_compiler_flag_unused_command_line_argument=no
16160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16163 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16164 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16165 CFLAGS="$xorg_testset_save_CFLAGS"
16170 if test $found = "no" ; then
16171 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16175 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16179 CFLAGS="$CFLAGS -Wtrigraphs"
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16182 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16183 cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs`
16184 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16185 $as_echo_n "(cached) " >&6
16187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16188 /* end confdefs.h. */
16198 if ac_fn_c_try_link "$LINENO"; then :
16199 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16201 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16203 rm -f core conftest.err conftest.$ac_objext \
16204 conftest$ac_exeext conftest.$ac_ext
16208 CFLAGS="$xorg_testset_save_CFLAGS"
16210 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16212 $as_echo "$supported" >&6; }
16213 if test "$supported" = "yes" ; then
16214 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16231 xorg_testset_save_CFLAGS="$CFLAGS"
16233 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16236 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16237 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16238 $as_echo_n "(cached) " >&6
16240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16241 /* end confdefs.h. */
16244 if ac_fn_c_try_compile "$LINENO"; then :
16245 xorg_cv_compiler_flag_unknown_warning_option=yes
16247 xorg_cv_compiler_flag_unknown_warning_option=no
16249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16252 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16253 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16254 CFLAGS="$xorg_testset_save_CFLAGS"
16257 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16258 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16263 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16264 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16265 $as_echo_n "(cached) " >&6
16267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16268 /* end confdefs.h. */
16271 if ac_fn_c_try_compile "$LINENO"; then :
16272 xorg_cv_compiler_flag_unused_command_line_argument=yes
16274 xorg_cv_compiler_flag_unused_command_line_argument=no
16276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16279 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16280 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16281 CFLAGS="$xorg_testset_save_CFLAGS"
16286 if test $found = "no" ; then
16287 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16291 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16295 CFLAGS="$CFLAGS -Warray-bounds"
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16298 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16299 cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds`
16300 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16301 $as_echo_n "(cached) " >&6
16303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16304 /* end confdefs.h. */
16314 if ac_fn_c_try_link "$LINENO"; then :
16315 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16317 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16319 rm -f core conftest.err conftest.$ac_objext \
16320 conftest$ac_exeext conftest.$ac_ext
16324 CFLAGS="$xorg_testset_save_CFLAGS"
16326 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16328 $as_echo "$supported" >&6; }
16329 if test "$supported" = "yes" ; then
16330 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16347 xorg_testset_save_CFLAGS="$CFLAGS"
16349 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16352 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16353 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16354 $as_echo_n "(cached) " >&6
16356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16357 /* end confdefs.h. */
16360 if ac_fn_c_try_compile "$LINENO"; then :
16361 xorg_cv_compiler_flag_unknown_warning_option=yes
16363 xorg_cv_compiler_flag_unknown_warning_option=no
16365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16368 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16369 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16370 CFLAGS="$xorg_testset_save_CFLAGS"
16373 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16374 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16379 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16380 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16381 $as_echo_n "(cached) " >&6
16383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16384 /* end confdefs.h. */
16387 if ac_fn_c_try_compile "$LINENO"; then :
16388 xorg_cv_compiler_flag_unused_command_line_argument=yes
16390 xorg_cv_compiler_flag_unused_command_line_argument=no
16392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16395 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16396 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16397 CFLAGS="$xorg_testset_save_CFLAGS"
16402 if test $found = "no" ; then
16403 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16407 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16411 CFLAGS="$CFLAGS -Wwrite-strings"
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16414 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16415 cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings`
16416 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16417 $as_echo_n "(cached) " >&6
16419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16420 /* end confdefs.h. */
16430 if ac_fn_c_try_link "$LINENO"; then :
16431 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16433 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16435 rm -f core conftest.err conftest.$ac_objext \
16436 conftest$ac_exeext conftest.$ac_ext
16440 CFLAGS="$xorg_testset_save_CFLAGS"
16442 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16444 $as_echo "$supported" >&6; }
16445 if test "$supported" = "yes" ; then
16446 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16463 xorg_testset_save_CFLAGS="$CFLAGS"
16465 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16468 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16469 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16470 $as_echo_n "(cached) " >&6
16472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16473 /* end confdefs.h. */
16476 if ac_fn_c_try_compile "$LINENO"; then :
16477 xorg_cv_compiler_flag_unknown_warning_option=yes
16479 xorg_cv_compiler_flag_unknown_warning_option=no
16481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16484 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16485 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16486 CFLAGS="$xorg_testset_save_CFLAGS"
16489 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16490 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16495 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16496 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16497 $as_echo_n "(cached) " >&6
16499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500 /* end confdefs.h. */
16503 if ac_fn_c_try_compile "$LINENO"; then :
16504 xorg_cv_compiler_flag_unused_command_line_argument=yes
16506 xorg_cv_compiler_flag_unused_command_line_argument=no
16508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16511 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16512 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16513 CFLAGS="$xorg_testset_save_CFLAGS"
16518 if test $found = "no" ; then
16519 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16523 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16527 CFLAGS="$CFLAGS -Waddress"
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16530 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
16531 cacheid=`$as_echo xorg_cv_cc_flag_-Waddress`
16532 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16533 $as_echo_n "(cached) " >&6
16535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16536 /* end confdefs.h. */
16546 if ac_fn_c_try_link "$LINENO"; then :
16547 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16549 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16551 rm -f core conftest.err conftest.$ac_objext \
16552 conftest$ac_exeext conftest.$ac_ext
16556 CFLAGS="$xorg_testset_save_CFLAGS"
16558 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16560 $as_echo "$supported" >&6; }
16561 if test "$supported" = "yes" ; then
16562 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16579 xorg_testset_save_CFLAGS="$CFLAGS"
16581 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16584 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16585 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16586 $as_echo_n "(cached) " >&6
16588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16589 /* end confdefs.h. */
16592 if ac_fn_c_try_compile "$LINENO"; then :
16593 xorg_cv_compiler_flag_unknown_warning_option=yes
16595 xorg_cv_compiler_flag_unknown_warning_option=no
16597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16600 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16601 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16602 CFLAGS="$xorg_testset_save_CFLAGS"
16605 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16606 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16611 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16612 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16613 $as_echo_n "(cached) " >&6
16615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16616 /* end confdefs.h. */
16619 if ac_fn_c_try_compile "$LINENO"; then :
16620 xorg_cv_compiler_flag_unused_command_line_argument=yes
16622 xorg_cv_compiler_flag_unused_command_line_argument=no
16624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16627 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16628 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16629 CFLAGS="$xorg_testset_save_CFLAGS"
16634 if test $found = "no" ; then
16635 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16639 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16643 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16646 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16647 cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast`
16648 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16649 $as_echo_n "(cached) " >&6
16651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16652 /* end confdefs.h. */
16662 if ac_fn_c_try_link "$LINENO"; then :
16663 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16665 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16667 rm -f core conftest.err conftest.$ac_objext \
16668 conftest$ac_exeext conftest.$ac_ext
16672 CFLAGS="$xorg_testset_save_CFLAGS"
16674 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16676 $as_echo "$supported" >&6; }
16677 if test "$supported" = "yes" ; then
16678 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16695 xorg_testset_save_CFLAGS="$CFLAGS"
16697 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16700 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16701 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16702 $as_echo_n "(cached) " >&6
16704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16705 /* end confdefs.h. */
16708 if ac_fn_c_try_compile "$LINENO"; then :
16709 xorg_cv_compiler_flag_unknown_warning_option=yes
16711 xorg_cv_compiler_flag_unknown_warning_option=no
16713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16716 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16717 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16718 CFLAGS="$xorg_testset_save_CFLAGS"
16721 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16722 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16727 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16728 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16729 $as_echo_n "(cached) " >&6
16731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732 /* end confdefs.h. */
16735 if ac_fn_c_try_compile "$LINENO"; then :
16736 xorg_cv_compiler_flag_unused_command_line_argument=yes
16738 xorg_cv_compiler_flag_unused_command_line_argument=no
16740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16743 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16744 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16745 CFLAGS="$xorg_testset_save_CFLAGS"
16750 if test $found = "no" ; then
16751 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16755 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16759 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
16762 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
16763 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast`
16764 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16765 $as_echo_n "(cached) " >&6
16767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16768 /* end confdefs.h. */
16778 if ac_fn_c_try_link "$LINENO"; then :
16779 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16781 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16783 rm -f core conftest.err conftest.$ac_objext \
16784 conftest$ac_exeext conftest.$ac_ext
16788 CFLAGS="$xorg_testset_save_CFLAGS"
16790 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16792 $as_echo "$supported" >&6; }
16793 if test "$supported" = "yes" ; then
16794 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
16808 CWARNFLAGS="$BASE_CFLAGS"
16809 if test "x$GCC" = xyes ; then
16810 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
16820 # Check whether --enable-strict-compilation was given.
16821 if test "${enable_strict_compilation+set}" = set; then :
16822 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
16844 xorg_testset_save_CFLAGS="$CFLAGS"
16846 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16849 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16850 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16851 $as_echo_n "(cached) " >&6
16853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16854 /* end confdefs.h. */
16857 if ac_fn_c_try_compile "$LINENO"; then :
16858 xorg_cv_compiler_flag_unknown_warning_option=yes
16860 xorg_cv_compiler_flag_unknown_warning_option=no
16862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16865 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16866 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16867 CFLAGS="$xorg_testset_save_CFLAGS"
16870 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16871 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16876 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16877 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16878 $as_echo_n "(cached) " >&6
16880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16881 /* end confdefs.h. */
16884 if ac_fn_c_try_compile "$LINENO"; then :
16885 xorg_cv_compiler_flag_unused_command_line_argument=yes
16887 xorg_cv_compiler_flag_unused_command_line_argument=no
16889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16892 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16893 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16894 CFLAGS="$xorg_testset_save_CFLAGS"
16899 if test $found = "no" ; then
16900 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16904 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16908 CFLAGS="$CFLAGS -pedantic"
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
16911 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
16912 cacheid=`$as_echo xorg_cv_cc_flag_-pedantic`
16913 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16914 $as_echo_n "(cached) " >&6
16916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16917 /* end confdefs.h. */
16927 if ac_fn_c_try_link "$LINENO"; then :
16928 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16930 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16932 rm -f core conftest.err conftest.$ac_objext \
16933 conftest$ac_exeext conftest.$ac_ext
16937 CFLAGS="$xorg_testset_save_CFLAGS"
16939 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16941 $as_echo "$supported" >&6; }
16942 if test "$supported" = "yes" ; then
16943 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
16960 xorg_testset_save_CFLAGS="$CFLAGS"
16962 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16965 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16966 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16967 $as_echo_n "(cached) " >&6
16969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16970 /* end confdefs.h. */
16973 if ac_fn_c_try_compile "$LINENO"; then :
16974 xorg_cv_compiler_flag_unknown_warning_option=yes
16976 xorg_cv_compiler_flag_unknown_warning_option=no
16978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16981 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16982 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16983 CFLAGS="$xorg_testset_save_CFLAGS"
16986 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16987 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16992 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16993 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16994 $as_echo_n "(cached) " >&6
16996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16997 /* end confdefs.h. */
17000 if ac_fn_c_try_compile "$LINENO"; then :
17001 xorg_cv_compiler_flag_unused_command_line_argument=yes
17003 xorg_cv_compiler_flag_unused_command_line_argument=no
17005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17008 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17009 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17010 CFLAGS="$xorg_testset_save_CFLAGS"
17015 if test $found = "no" ; then
17016 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17020 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17024 CFLAGS="$CFLAGS -Werror"
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17027 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17028 cacheid=`$as_echo xorg_cv_cc_flag_-Werror`
17029 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17030 $as_echo_n "(cached) " >&6
17032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033 /* end confdefs.h. */
17043 if ac_fn_c_try_link "$LINENO"; then :
17044 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17046 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17048 rm -f core conftest.err conftest.$ac_objext \
17049 conftest$ac_exeext conftest.$ac_ext
17053 CFLAGS="$xorg_testset_save_CFLAGS"
17055 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17057 $as_echo "$supported" >&6; }
17058 if test "$supported" = "yes" ; then
17059 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17064 if test $found = "no" ; then
17065 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17069 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17073 CFLAGS="$CFLAGS -errwarn"
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17076 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17077 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn`
17078 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17079 $as_echo_n "(cached) " >&6
17081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17082 /* end confdefs.h. */
17092 if ac_fn_c_try_link "$LINENO"; then :
17093 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17095 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17097 rm -f core conftest.err conftest.$ac_objext \
17098 conftest$ac_exeext conftest.$ac_ext
17102 CFLAGS="$xorg_testset_save_CFLAGS"
17104 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17106 $as_echo "$supported" >&6; }
17107 if test "$supported" = "yes" ; then
17108 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17115 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17116 # activate it with -Werror, so we add it here explicitly.
17128 xorg_testset_save_CFLAGS="$CFLAGS"
17130 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
17131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
17133 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
17134 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
17135 $as_echo_n "(cached) " >&6
17137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17138 /* end confdefs.h. */
17141 if ac_fn_c_try_compile "$LINENO"; then :
17142 xorg_cv_compiler_flag_unknown_warning_option=yes
17144 xorg_cv_compiler_flag_unknown_warning_option=no
17146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
17149 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
17150 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
17151 CFLAGS="$xorg_testset_save_CFLAGS"
17154 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
17155 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
17160 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
17161 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
17162 $as_echo_n "(cached) " >&6
17164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17165 /* end confdefs.h. */
17168 if ac_fn_c_try_compile "$LINENO"; then :
17169 xorg_cv_compiler_flag_unused_command_line_argument=yes
17171 xorg_cv_compiler_flag_unused_command_line_argument=no
17173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17176 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17177 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17178 CFLAGS="$xorg_testset_save_CFLAGS"
17183 if test $found = "no" ; then
17184 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17188 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17192 CFLAGS="$CFLAGS -Werror=attributes"
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17195 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17196 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes`
17197 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17198 $as_echo_n "(cached) " >&6
17200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17201 /* end confdefs.h. */
17211 if ac_fn_c_try_link "$LINENO"; then :
17212 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17214 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17216 rm -f core conftest.err conftest.$ac_objext \
17217 conftest$ac_exeext conftest.$ac_ext
17221 CFLAGS="$xorg_testset_save_CFLAGS"
17223 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17225 $as_echo "$supported" >&6; }
17226 if test "$supported" = "yes" ; then
17227 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17234 if test "x$STRICT_COMPILE" = "xyes"; then
17235 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17236 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17244 cat >>confdefs.h <<_ACEOF
17245 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17248 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17249 if test "x$PVM" = "x"; then
17253 cat >>confdefs.h <<_ACEOF
17254 #define PACKAGE_VERSION_MINOR $PVM
17257 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17258 if test "x$PVP" = "x"; then
17262 cat >>confdefs.h <<_ACEOF
17263 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17268 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17269 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17270 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17271 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17276 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17277 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17278 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17279 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17280 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17287 if test x$APP_MAN_SUFFIX = x ; then
17290 if test x$APP_MAN_DIR = x ; then
17291 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17294 if test x$LIB_MAN_SUFFIX = x ; then
17297 if test x$LIB_MAN_DIR = x ; then
17298 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17301 if test x$FILE_MAN_SUFFIX = x ; then
17303 solaris*) FILE_MAN_SUFFIX=4 ;;
17304 *) FILE_MAN_SUFFIX=5 ;;
17307 if test x$FILE_MAN_DIR = x ; then
17308 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17311 if test x$MISC_MAN_SUFFIX = x ; then
17313 solaris*) MISC_MAN_SUFFIX=5 ;;
17314 *) MISC_MAN_SUFFIX=7 ;;
17317 if test x$MISC_MAN_DIR = x ; then
17318 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17321 if test x$DRIVER_MAN_SUFFIX = x ; then
17323 solaris*) DRIVER_MAN_SUFFIX=7 ;;
17324 *) DRIVER_MAN_SUFFIX=4 ;;
17327 if test x$DRIVER_MAN_DIR = x ; then
17328 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17331 if test x$ADMIN_MAN_SUFFIX = x ; then
17333 solaris*) ADMIN_MAN_SUFFIX=1m ;;
17334 *) ADMIN_MAN_SUFFIX=8 ;;
17337 if test x$ADMIN_MAN_DIR = x ; then
17338 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17355 XORG_MAN_PAGE="X Version 11"
17358 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17359 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17360 -e 's|__xservername__|Xorg|g' \
17361 -e 's|__xconfigfile__|xorg.conf|g' \
17362 -e 's|__projectroot__|\$(prefix)|g' \
17363 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17364 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17365 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17366 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17367 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17368 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17369 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17373 # Check whether --enable-silent-rules was given.
17374 if test "${enable_silent_rules+set}" = set; then :
17375 enableval=$enable_silent_rules;
17378 case $enable_silent_rules in
17379 yes) AM_DEFAULT_VERBOSITY=0;;
17380 no) AM_DEFAULT_VERBOSITY=1;;
17381 *) AM_DEFAULT_VERBOSITY=0;;
17387 # Check whether --enable-malloc0returnsnull was given.
17388 if test "${enable_malloc0returnsnull+set}" = set; then :
17389 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
17391 MALLOC_ZERO_RETURNS_NULL=auto
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
17396 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
17397 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
17398 if test "$cross_compiling" = yes; then :
17399 MALLOC_ZERO_RETURNS_NULL=yes
17401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17402 /* end confdefs.h. */
17404 #include <stdlib.h>
17410 char *m0, *r0, *c0, *p;
17415 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
17421 if ac_fn_c_try_run "$LINENO"; then :
17422 MALLOC_ZERO_RETURNS_NULL=yes
17424 MALLOC_ZERO_RETURNS_NULL=no
17426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17427 conftest.$ac_objext conftest.beam conftest.$ac_ext
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
17432 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
17434 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
17435 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
17436 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
17437 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
17439 MALLOC_ZERO_CFLAGS=""
17440 XMALLOC_ZERO_CFLAGS=""
17441 XTMALLOC_ZERO_CFLAGS=""
17449 # Obtain compiler/linker options for depedencies
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINERAMA" >&5
17453 $as_echo_n "checking for XINERAMA... " >&6; }
17455 if test -n "$XINERAMA_CFLAGS"; then
17456 pkg_cv_XINERAMA_CFLAGS="$XINERAMA_CFLAGS"
17457 elif test -n "$PKG_CONFIG"; then
17458 if test -n "$PKG_CONFIG" && \
17459 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto xineramaproto >= 1.1.99.1\""; } >&5
17460 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto xineramaproto >= 1.1.99.1") 2>&5
17462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17463 test $ac_status = 0; }; then
17464 pkg_cv_XINERAMA_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto xineramaproto >= 1.1.99.1" 2>/dev/null`
17471 if test -n "$XINERAMA_LIBS"; then
17472 pkg_cv_XINERAMA_LIBS="$XINERAMA_LIBS"
17473 elif test -n "$PKG_CONFIG"; then
17474 if test -n "$PKG_CONFIG" && \
17475 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto xineramaproto >= 1.1.99.1\""; } >&5
17476 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto xineramaproto >= 1.1.99.1") 2>&5
17478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17479 test $ac_status = 0; }; then
17480 pkg_cv_XINERAMA_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto xineramaproto >= 1.1.99.1" 2>/dev/null`
17490 if test $pkg_failed = yes; then
17492 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17493 _pkg_short_errors_supported=yes
17495 _pkg_short_errors_supported=no
17497 if test $_pkg_short_errors_supported = yes; then
17498 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xextproto xineramaproto >= 1.1.99.1" 2>&1`
17500 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xextproto xineramaproto >= 1.1.99.1" 2>&1`
17502 # Put the nasty error message in config.log where it belongs
17503 echo "$XINERAMA_PKG_ERRORS" >&5
17505 as_fn_error $? "Package requirements (x11 xext xextproto xineramaproto >= 1.1.99.1) were not met:
17507 $XINERAMA_PKG_ERRORS
17509 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17510 installed software in a non-standard prefix.
17512 Alternatively, you may set the environment variables XINERAMA_CFLAGS
17513 and XINERAMA_LIBS to avoid the need to call pkg-config.
17514 See the pkg-config man page for more details.
17516 elif test $pkg_failed = untried; then
17517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17519 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17520 is in your PATH or set the PKG_CONFIG environment variable to the full
17521 path to pkg-config.
17523 Alternatively, you may set the environment variables XINERAMA_CFLAGS
17524 and XINERAMA_LIBS to avoid the need to call pkg-config.
17525 See the pkg-config man page for more details.
17527 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17528 See \`config.log' for more details" "$LINENO" 5; }
17530 XINERAMA_CFLAGS=$pkg_cv_XINERAMA_CFLAGS
17531 XINERAMA_LIBS=$pkg_cv_XINERAMA_LIBS
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17533 $as_echo "yes" >&6; }
17537 # Allow checking code with lint, sparse, etc.
17543 # Check whether --with-lint was given.
17544 if test "${with_lint+set}" = set; then :
17545 withval=$with_lint; use_lint=$withval
17551 # Obtain platform specific info like program name and options
17552 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
17554 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
17556 lint_options="-badflag"
17558 *freebsd* | *netbsd*)
17560 lint_options="-u -b"
17564 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
17568 # Test for the presence of the program (either guessed by the code or spelled out by the user)
17569 if test "x$use_lint" = x"yes" ; then
17570 # Extract the first word of "$lint_name", so it can be a program name with args.
17571 set dummy $lint_name; ac_word=$2
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17573 $as_echo_n "checking for $ac_word... " >&6; }
17574 if ${ac_cv_path_LINT+:} false; then :
17575 $as_echo_n "(cached) " >&6
17579 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
17582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17583 for as_dir in $PATH
17586 test -z "$as_dir" && as_dir=.
17587 for ac_exec_ext in '' $ac_executable_extensions; do
17588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17589 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
17590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17600 LINT=$ac_cv_path_LINT
17601 if test -n "$LINT"; then
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
17603 $as_echo "$LINT" >&6; }
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17606 $as_echo "no" >&6; }
17610 if test "x$LINT" = "x"; then
17611 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
17613 elif test "x$use_lint" = x"no" ; then
17614 if test "x$LINT" != "x"; then
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
17616 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
17619 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
17622 # User supplied flags override default flags
17623 if test "x$LINT_FLAGS" != "x"; then
17624 lint_options=$LINT_FLAGS
17627 LINT_FLAGS=$lint_options
17629 if test "x$LINT" != x; then
17639 LINT_FLAGS="${LINT_FLAGS} ${XINERAMA_CFLAGS}"
17641 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xinerama.pc"
17643 cat >confcache <<\_ACEOF
17644 # This file is a shell script that caches the results of configure
17645 # tests run on this system so they can be shared between configure
17646 # scripts and configure runs, see configure's option --config-cache.
17647 # It is not useful on other systems. If it contains results you don't
17648 # want to keep, you may remove or edit it.
17650 # config.status only pays attention to the cache file if you give it
17651 # the --recheck option to rerun configure.
17653 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17654 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17655 # following values.
17659 # The following way of writing the cache mishandles newlines in values,
17660 # but we know of no workaround that is simple, portable, and efficient.
17661 # So, we kill variables containing newlines.
17662 # Ultrix sh set writes to stderr and can't be redirected directly,
17663 # and sets the high bit in the cache file unless we assign to the vars.
17665 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17666 eval ac_val=\$$ac_var
17670 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17671 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17674 _ | IFS | as_nl) ;; #(
17675 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17676 *) { eval $ac_var=; unset $ac_var;} ;;
17682 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17683 *${as_nl}ac_space=\ *)
17684 # `set' does not quote correctly, so add quotes: double-quote
17685 # substitution turns \\\\ into \\, and sed turns \\ into \.
17688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17691 # `set' quotes correctly as required by POSIX, so do not add quotes.
17692 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17701 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17703 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17705 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17706 if test -w "$cache_file"; then
17707 if test "x$cache_file" != "x/dev/null"; then
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17709 $as_echo "$as_me: updating cache $cache_file" >&6;}
17710 if test ! -f "$cache_file" || test -h "$cache_file"; then
17711 cat confcache >"$cache_file"
17713 case $cache_file in #(
17715 mv -f confcache "$cache_file"$$ &&
17716 mv -f "$cache_file"$$ "$cache_file" ;; #(
17718 mv -f confcache "$cache_file" ;;
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17724 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17729 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17730 # Let make expand exec_prefix.
17731 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17733 DEFS=-DHAVE_CONFIG_H
17738 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17739 # 1. Remove the extension, and $U if already installed.
17740 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17741 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17742 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17743 # will be set to the directory where LIBOBJS objects are built.
17744 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17745 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17747 LIBOBJS=$ac_libobjs
17749 LTLIBOBJS=$ac_ltlibobjs
17752 if test -n "$EXEEXT"; then
17754 am__EXEEXT_FALSE='#'
17756 am__EXEEXT_TRUE='#'
17760 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17761 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17764 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17765 as_fn_error $? "conditional \"AMDEP\" was never defined.
17766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17768 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17769 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17772 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
17773 as_fn_error $? "conditional \"LINT\" was never defined.
17774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17777 : "${CONFIG_STATUS=./config.status}"
17779 ac_clean_files_save=$ac_clean_files
17780 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17782 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17784 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17786 # Generated by $as_me.
17787 # Run this file to recreate the current configuration.
17788 # Compiler output produced by configure, useful for debugging
17789 # configure, is in config.log if it exists.
17792 ac_cs_recheck=false
17795 SHELL=\${CONFIG_SHELL-$SHELL}
17798 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17799 ## -------------------- ##
17800 ## M4sh Initialization. ##
17801 ## -------------------- ##
17803 # Be more Bourne compatible
17804 DUALCASE=1; export DUALCASE # for MKS sh
17805 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17808 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17809 # is contrary to our usage. Disable this feature.
17810 alias -g '${1+"$@"}'='"$@"'
17811 setopt NO_GLOB_SUBST
17813 case `(set -o) 2>/dev/null` in #(
17825 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17826 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17827 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17828 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17829 # Prefer a ksh shell builtin over an external printf program on Solaris,
17830 # but without wasting forks for bash or zsh.
17831 if test -z "$BASH_VERSION$ZSH_VERSION" \
17832 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17833 as_echo='print -r --'
17834 as_echo_n='print -rn --'
17835 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17836 as_echo='printf %s\n'
17837 as_echo_n='printf %s'
17839 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17840 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17841 as_echo_n='/usr/ucb/echo -n'
17843 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17844 as_echo_n_body='eval
17848 expr "X$arg" : "X\\(.*\\)$as_nl";
17849 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17851 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17853 export as_echo_n_body
17854 as_echo_n='sh -c $as_echo_n_body as_echo'
17856 export as_echo_body
17857 as_echo='sh -c $as_echo_body as_echo'
17860 # The user is always right.
17861 if test "${PATH_SEPARATOR+set}" != set; then
17863 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17864 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17871 # We need space, tab and new line, in precisely that order. Quoting is
17872 # there to prevent editors from complaining about space-tab.
17873 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17874 # splitting by setting IFS to empty value.)
17877 # Find who we are. Look in the path if we contain no directory separator.
17880 *[\\/]* ) as_myself=$0 ;;
17881 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17882 for as_dir in $PATH
17885 test -z "$as_dir" && as_dir=.
17886 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17892 # We did not find ourselves, most probably we were run as `sh COMMAND'
17893 # in which case we are not to be found in the path.
17894 if test "x$as_myself" = x; then
17897 if test ! -f "$as_myself"; then
17898 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17902 # Unset variables that we do not need and which cause bugs (e.g. in
17903 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17904 # suppresses any "Segmentation fault" message there. '((' could
17905 # trigger a bug in pdksh 5.2.14.
17906 for as_var in BASH_ENV ENV MAIL MAILPATH
17907 do eval test x\${$as_var+set} = xset \
17908 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17921 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17924 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17925 # ----------------------------------------
17926 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17927 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17928 # script with STATUS, using 1 if that was 0.
17931 as_status=$1; test $as_status -eq 0 && as_status=1
17933 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17934 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17936 $as_echo "$as_me: error: $2" >&2
17937 as_fn_exit $as_status
17941 # as_fn_set_status STATUS
17942 # -----------------------
17943 # Set $? to STATUS, without forking.
17944 as_fn_set_status ()
17947 } # as_fn_set_status
17949 # as_fn_exit STATUS
17950 # -----------------
17951 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17955 as_fn_set_status $1
17961 # Portably unset VAR.
17964 { eval $1=; unset $1;}
17966 as_unset=as_fn_unset
17967 # as_fn_append VAR VALUE
17968 # ----------------------
17969 # Append the text in VALUE to the end of the definition contained in VAR. Take
17970 # advantage of any shell optimizations that allow amortized linear growth over
17971 # repeated appends, instead of the typical quadratic growth present in naive
17973 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17974 eval 'as_fn_append ()
17985 # as_fn_arith ARG...
17986 # ------------------
17987 # Perform arithmetic evaluation on the ARGs, and store the result in the
17988 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17989 # must be portable across $(()) and expr.
17990 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17991 eval 'as_fn_arith ()
17998 as_val=`expr "$@" || test $? -eq 1`
18003 if expr a : '\(a\)' >/dev/null 2>&1 &&
18004 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18010 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18011 as_basename=basename
18016 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18022 as_me=`$as_basename -- "$0" ||
18023 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18024 X"$0" : 'X\(//\)$' \| \
18025 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18027 sed '/^.*\/\([^/][^/]*\)\/*$/{
18041 # Avoid depending upon Character Ranges.
18042 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18043 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18044 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18045 as_cr_digits='0123456789'
18046 as_cr_alnum=$as_cr_Letters$as_cr_digits
18048 ECHO_C= ECHO_N= ECHO_T=
18049 case `echo -n x` in #(((((
18051 case `echo 'xy\c'` in
18052 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18054 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18061 rm -f conf$$ conf$$.exe conf$$.file
18062 if test -d conf$$.dir; then
18063 rm -f conf$$.dir/conf$$.file
18066 mkdir conf$$.dir 2>/dev/null
18068 if (echo >conf$$.file) 2>/dev/null; then
18069 if ln -s conf$$.file conf$$ 2>/dev/null; then
18071 # ... but there are two gotchas:
18072 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18073 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18074 # In both cases, we have to default to `cp -p'.
18075 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18077 elif ln conf$$.file conf$$ 2>/dev/null; then
18085 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18086 rmdir conf$$.dir 2>/dev/null
18091 # Create "$as_dir" as a directory, including parents if necessary.
18096 -*) as_dir=./$as_dir;;
18098 test -d "$as_dir" || eval $as_mkdir_p || {
18102 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18103 *) as_qdir=$as_dir;;
18105 as_dirs="'$as_qdir' $as_dirs"
18106 as_dir=`$as_dirname -- "$as_dir" ||
18107 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18108 X"$as_dir" : 'X\(//\)[^/]' \| \
18109 X"$as_dir" : 'X\(//\)$' \| \
18110 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18111 $as_echo X"$as_dir" |
18112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18116 /^X\(\/\/\)[^/].*/{
18129 test -d "$as_dir" && break
18131 test -z "$as_dirs" || eval "mkdir $as_dirs"
18132 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18136 if mkdir -p . 2>/dev/null; then
18137 as_mkdir_p='mkdir -p "$as_dir"'
18139 test -d ./-p && rmdir ./-p
18143 if test -x / >/dev/null 2>&1; then
18144 as_test_x='test -x'
18146 if ls -dL / >/dev/null 2>&1; then
18153 if test -d "$1"; then
18159 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18160 ???[sx]*):;;*)false;;esac;fi
18164 as_executable_p=$as_test_x
18166 # Sed expression to map a string onto a valid CPP name.
18167 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18169 # Sed expression to map a string onto a valid variable name.
18170 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18174 ## ----------------------------------- ##
18175 ## Main body of $CONFIG_STATUS script. ##
18176 ## ----------------------------------- ##
18178 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18181 # Save the log message, to keep $0 and so on meaningful, and to
18182 # report actual input values of CONFIG_FILES etc. instead of their
18183 # values after options handling.
18185 This file was extended by libXinerama $as_me 1.1.2, which was
18186 generated by GNU Autoconf 2.68. Invocation command line was
18188 CONFIG_FILES = $CONFIG_FILES
18189 CONFIG_HEADERS = $CONFIG_HEADERS
18190 CONFIG_LINKS = $CONFIG_LINKS
18191 CONFIG_COMMANDS = $CONFIG_COMMANDS
18194 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18199 case $ac_config_files in *"
18200 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18203 case $ac_config_headers in *"
18204 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18209 # Files that config.status was made for.
18210 config_files="$ac_config_files"
18211 config_headers="$ac_config_headers"
18212 config_commands="$ac_config_commands"
18216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18218 \`$as_me' instantiates files and other configuration actions
18219 from templates according to the current configuration. Unless the files
18220 and actions are specified as TAGs, all are instantiated by default.
18222 Usage: $0 [OPTION]... [TAG]...
18224 -h, --help print this help, then exit
18225 -V, --version print version number and configuration settings, then exit
18226 --config print configuration, then exit
18227 -q, --quiet, --silent
18228 do not print progress messages
18229 -d, --debug don't remove temporary files
18230 --recheck update $as_me by reconfiguring in the same conditions
18231 --file=FILE[:TEMPLATE]
18232 instantiate the configuration file FILE
18233 --header=FILE[:TEMPLATE]
18234 instantiate the configuration header FILE
18236 Configuration files:
18239 Configuration headers:
18242 Configuration commands:
18245 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18249 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18251 libXinerama config.status 1.1.2
18252 configured by $0, generated by GNU Autoconf 2.68,
18253 with options \\"\$ac_cs_config\\"
18255 Copyright (C) 2010 Free Software Foundation, Inc.
18256 This config.status script is free software; the Free Software Foundation
18257 gives unlimited permission to copy, distribute and modify it."
18264 test -n "\$AWK" || AWK=awk
18267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18268 # The default lists apply if the user does not specify any file.
18274 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18275 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18279 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18291 # Handling of the options.
18292 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18294 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18295 $as_echo "$ac_cs_version"; exit ;;
18296 --config | --confi | --conf | --con | --co | --c )
18297 $as_echo "$ac_cs_config"; exit ;;
18298 --debug | --debu | --deb | --de | --d | -d )
18300 --file | --fil | --fi | --f )
18303 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18304 '') as_fn_error $? "missing file argument" ;;
18306 as_fn_append CONFIG_FILES " '$ac_optarg'"
18307 ac_need_defaults=false;;
18308 --header | --heade | --head | --hea )
18311 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18313 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18314 ac_need_defaults=false;;
18316 # Conflict between --help and --header
18317 as_fn_error $? "ambiguous option: \`$1'
18318 Try \`$0 --help' for more information.";;
18319 --help | --hel | -h )
18320 $as_echo "$ac_cs_usage"; exit ;;
18321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18322 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18325 # This is an error.
18326 -*) as_fn_error $? "unrecognized option: \`$1'
18327 Try \`$0 --help' for more information." ;;
18329 *) as_fn_append ac_config_targets " $1"
18330 ac_need_defaults=false ;;
18336 ac_configure_extra_args=
18338 if $ac_cs_silent; then
18340 ac_configure_extra_args="$ac_configure_extra_args --silent"
18344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18345 if \$ac_cs_recheck; then
18346 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18348 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18349 CONFIG_SHELL='$SHELL'
18350 export CONFIG_SHELL
18355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18359 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18360 ## Running $as_me. ##
18366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18370 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18373 # The HP-UX ksh and POSIX shell print the target directory to stdout
18374 # if CDPATH is set.
18375 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18377 sed_quote_subst='$sed_quote_subst'
18378 double_quote_subst='$double_quote_subst'
18379 delay_variable_subst='$delay_variable_subst'
18380 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18381 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18382 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18383 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18384 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18385 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18386 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18387 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18388 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18389 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18390 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18391 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18392 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18393 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18394 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18395 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18396 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18397 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18398 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18399 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18400 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18401 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18402 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18403 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18404 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18405 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18406 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18407 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18408 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18409 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18410 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18411 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18412 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18413 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18414 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18415 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18416 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18417 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18418 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18419 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18420 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18421 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18422 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18423 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18424 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18425 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18426 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18427 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18428 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18429 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18430 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18431 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18432 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18433 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18434 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18435 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"`'
18436 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18437 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18438 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18439 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18440 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18441 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18442 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18443 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18444 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18445 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18446 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18447 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18448 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18449 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18450 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18451 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18452 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18453 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18454 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18455 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18456 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18457 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18458 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18459 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18460 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18461 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18462 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18463 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18464 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18465 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18466 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18467 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18468 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18469 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18470 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18471 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18472 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18473 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18474 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18475 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18476 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18477 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18478 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18479 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18480 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18481 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18482 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18483 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18484 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18485 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18486 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18487 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18488 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18489 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18490 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18491 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18492 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18493 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18494 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18495 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18496 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18497 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18498 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18499 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18500 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18501 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18502 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18503 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18504 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18505 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18506 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18507 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18508 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18509 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18512 LTCFLAGS='$LTCFLAGS'
18513 compiler='$compiler_DEFAULT'
18515 # A function that is used when there is no print builtin or printf.
18516 func_fallback_echo ()
18518 eval 'cat <<_LTECHO_EOF
18523 # Quote evaled strings.
18537 deplibs_check_method \
18542 sharedlib_from_linklib_cmd \
18545 archiver_list_spec \
18551 lt_cv_sys_global_symbol_pipe \
18552 lt_cv_sys_global_symbol_to_cdecl \
18553 lt_cv_sys_global_symbol_to_c_name_address \
18554 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18555 nm_file_list_spec \
18556 lt_prog_compiler_no_builtin_flag \
18557 lt_prog_compiler_pic \
18558 lt_prog_compiler_wl \
18559 lt_prog_compiler_static \
18560 lt_cv_prog_compiler_c_o \
18569 export_dynamic_flag_spec \
18570 whole_archive_flag_spec \
18571 compiler_needs_object \
18573 allow_undefined_flag \
18574 no_undefined_flag \
18575 hardcode_libdir_flag_spec \
18576 hardcode_libdir_flag_spec_ld \
18577 hardcode_libdir_separator \
18581 variables_saved_for_relink \
18583 library_names_spec \
18585 install_override_mode \
18589 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18590 *[\\\\\\\`\\"\\\$]*)
18591 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18594 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18599 # Double-quote double-evaled strings.
18600 for var in reload_cmds \
18601 old_postinstall_cmds \
18602 old_postuninstall_cmds \
18604 extract_expsyms_cmds \
18605 old_archive_from_new_cmds \
18606 old_archive_from_expsyms_cmds \
18608 archive_expsym_cmds \
18610 module_expsym_cmds \
18611 export_symbols_cmds \
18615 postuninstall_cmds \
18617 sys_lib_search_path_spec \
18618 sys_lib_dlsearch_path_spec; do
18619 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18620 *[\\\\\\\`\\"\\\$]*)
18621 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18624 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18629 ac_aux_dir='$ac_aux_dir'
18630 xsi_shell='$xsi_shell'
18631 lt_shell_append='$lt_shell_append'
18633 # See if we are running on zsh, and set the options which allow our
18634 # commands through without removal of \ escapes INIT.
18635 if test -n "\${ZSH_VERSION+set}" ; then
18636 setopt NO_GLOB_SUBST
18642 TIMESTAMP='$TIMESTAMP'
18651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18653 # Handling of arguments.
18654 for ac_config_target in $ac_config_targets
18656 case $ac_config_target in
18657 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18658 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18659 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18660 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18661 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18662 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18663 "xinerama.pc") CONFIG_FILES="$CONFIG_FILES xinerama.pc" ;;
18665 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18670 # If the user did not use the arguments to specify the items to instantiate,
18671 # then the envvar interface is used. Set only those that are not.
18672 # We use the long form for the default assignment because of an extremely
18673 # bizarre bug on SunOS 4.1.3.
18674 if $ac_need_defaults; then
18675 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18676 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18677 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18680 # Have a temporary directory for convenience. Make it in the build tree
18681 # simply because there is no reason against having it here, and in addition,
18682 # creating and moving files from /tmp can sometimes cause problems.
18683 # Hook for its removal unless debugging.
18684 # Note that there is a small window in which the directory will not be cleaned:
18685 # after its creation but before its name has been assigned to `$tmp'.
18689 trap 'exit_status=$?
18690 : "${ac_tmp:=$tmp}"
18691 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18693 trap 'as_fn_exit 1' 1 2 13 15
18695 # Create a (secure) tmp directory for tmp files.
18698 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18702 tmp=./conf$$-$RANDOM
18703 (umask 077 && mkdir "$tmp")
18704 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18707 # Set up the scripts for CONFIG_FILES section.
18708 # No need to generate them if there are no CONFIG_FILES.
18709 # This happens for instance with `./config.status config.h'.
18710 if test -n "$CONFIG_FILES"; then
18713 ac_cr=`echo X | tr X '\015'`
18714 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18715 # But we know of no other shell where ac_cr would be empty at this
18716 # point, so we can use a bashism as a fallback.
18717 if test "x$ac_cr" = x; then
18718 eval ac_cr=\$\'\\r\'
18720 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18721 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18724 ac_cs_awk_cr=$ac_cr
18727 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18732 echo "cat >conf$$subs.awk <<_ACEOF" &&
18733 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18735 } >conf$$subs.sh ||
18736 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18737 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18739 for ac_last_try in false false false false false :; do
18740 . ./conf$$subs.sh ||
18741 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18743 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18744 if test $ac_delim_n = $ac_delim_num; then
18746 elif $ac_last_try; then
18747 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18749 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18752 rm -f conf$$subs.sh
18754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18755 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18759 s/^/S["/; s/!.*/"]=/
18769 s/\(.\{148\}\)..*/\1/
18771 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18776 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18783 s/\(.\{148\}\)..*/\1/
18785 s/["\\]/\\&/g; s/^/"/; s/$/"/
18789 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18794 ' <conf$$subs.awk | sed '
18799 ' >>$CONFIG_STATUS || ac_write_fail=1
18800 rm -f conf$$subs.awk
18801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18803 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18804 for (key in S) S_is_set[key] = 1
18810 nfields = split(line, field, "@")
18812 len = length(field[1])
18813 for (i = 2; i < nfields; i++) {
18815 keylen = length(key)
18816 if (S_is_set[key]) {
18818 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18819 len += length(value) + length(field[++i])
18830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18831 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18832 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18835 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18836 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18839 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18840 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18841 # trailing colons and then remove the whole line if VPATH becomes empty
18842 # (actually we leave an empty line to preserve line numbers).
18843 if test "x$srcdir" = x.; then
18844 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18863 fi # test -n "$CONFIG_FILES"
18865 # Set up the scripts for CONFIG_HEADERS section.
18866 # No need to generate them if there are no CONFIG_HEADERS.
18867 # This happens for instance with `./config.status Makefile'.
18868 if test -n "$CONFIG_HEADERS"; then
18869 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18873 # Transform confdefs.h into an awk script `defines.awk', embedded as
18874 # here-document in config.status, that substitutes the proper values into
18875 # config.h.in to produce config.h.
18877 # Create a delimiter string that does not exist in confdefs.h, to ease
18878 # handling of long lines.
18880 for ac_last_try in false false :; do
18881 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18882 if test -z "$ac_tt"; then
18884 elif $ac_last_try; then
18885 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18887 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18891 # For the awk script, D is an array of macro values keyed by name,
18892 # likewise P contains macro parameters if any. Preserve backslash
18893 # newline sequences.
18895 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18897 s/.\{148\}/&'"$ac_delim"'/g
18900 s/^[ ]*#[ ]*define[ ][ ]*/ /
18907 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18909 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18913 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18914 D["\1"]=" \3\\\\\\n"\\/p
18916 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18921 s/.\{148\}/&'"$ac_delim"'/g
18926 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18929 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18931 ' <confdefs.h | sed '
18932 s/'"$ac_delim"'/"\\\
18933 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18936 for (key in D) D_is_set[key] = 1
18939 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18941 split(line, arg, " ")
18942 if (arg[1] == "#") {
18946 defundef = substr(arg[1], 2)
18949 split(mac1, mac2, "(") #)
18951 prefix = substr(line, 1, index(line, defundef) - 1)
18952 if (D_is_set[macro]) {
18953 # Preserve the white space surrounding the "#".
18954 print prefix "define", macro P[macro] D[macro]
18957 # Replace #undef with comments. This is necessary, for example,
18958 # in the case of _POSIX_SOURCE, which is predefined and required
18959 # on some systems where configure will not decide to define it.
18960 if (defundef == "undef") {
18961 print "/*", prefix defundef, macro, "*/"
18969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18970 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18971 fi # test -n "$CONFIG_HEADERS"
18974 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18979 :[FHLC]) ac_mode=$ac_tag; continue;;
18981 case $ac_mode$ac_tag in
18983 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18984 :[FH]-) ac_tag=-:-;;
18985 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19002 -) ac_f="$ac_tmp/stdin";;
19003 *) # Look for the file first in the build tree, then in the source tree
19004 # (if the path is not absolute). The absolute path cannot be DOS-style,
19005 # because $ac_f cannot contain `:'.
19009 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19011 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19013 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19014 as_fn_append ac_file_inputs " '$ac_f'"
19017 # Let's still pretend it is `configure' which instantiates (i.e., don't
19018 # use $as_me), people would be surprised to read:
19019 # /* config.h. Generated by config.status. */
19020 configure_input='Generated from '`
19021 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19023 if test x"$ac_file" != x-; then
19024 configure_input="$ac_file. $configure_input"
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19026 $as_echo "$as_me: creating $ac_file" >&6;}
19028 # Neutralize special characters interpreted by sed in replacement strings.
19029 case $configure_input in #(
19030 *\&* | *\|* | *\\* )
19031 ac_sed_conf_input=`$as_echo "$configure_input" |
19032 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19033 *) ac_sed_conf_input=$configure_input;;
19037 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19038 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19043 ac_dir=`$as_dirname -- "$ac_file" ||
19044 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19045 X"$ac_file" : 'X\(//\)[^/]' \| \
19046 X"$ac_file" : 'X\(//\)$' \| \
19047 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19048 $as_echo X"$ac_file" |
19049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19053 /^X\(\/\/\)[^/].*/{
19066 as_dir="$ac_dir"; as_fn_mkdir_p
19070 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19072 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19073 # A ".." for each directory in $ac_dir_suffix.
19074 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19075 case $ac_top_builddir_sub in
19076 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19077 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19080 ac_abs_top_builddir=$ac_pwd
19081 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19082 # for backward compatibility:
19083 ac_top_builddir=$ac_top_build_prefix
19086 .) # We are building in place.
19088 ac_top_srcdir=$ac_top_builddir_sub
19089 ac_abs_top_srcdir=$ac_pwd ;;
19090 [\\/]* | ?:[\\/]* ) # Absolute name.
19091 ac_srcdir=$srcdir$ac_dir_suffix;
19092 ac_top_srcdir=$srcdir
19093 ac_abs_top_srcdir=$srcdir ;;
19094 *) # Relative name.
19095 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19096 ac_top_srcdir=$ac_top_build_prefix$srcdir
19097 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19099 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19109 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19110 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19112 ac_MKDIR_P=$MKDIR_P
19114 [\\/$]* | ?:[\\/]* ) ;;
19115 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19120 # If the template does not know about datarootdir, expand it.
19121 # FIXME: This hack should be removed a few years after 2.60.
19122 ac_datarootdir_hack=; ac_datarootdir_seen=
19133 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19134 *datarootdir*) ac_datarootdir_seen=yes;;
19135 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19137 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19140 ac_datarootdir_hack='
19141 s&@datadir@&$datadir&g
19142 s&@docdir@&$docdir&g
19143 s&@infodir@&$infodir&g
19144 s&@localedir@&$localedir&g
19145 s&@mandir@&$mandir&g
19146 s&\\\${datarootdir}&$datarootdir&g' ;;
19150 # Neutralize VPATH when `$srcdir' = `.'.
19151 # Shell code in configure.ac might set extrasub.
19152 # FIXME: do we really want to maintain this feature?
19153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19154 ac_sed_extra="$ac_vpsub
19157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19159 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19160 s|@configure_input@|$ac_sed_conf_input|;t t
19161 s&@top_builddir@&$ac_top_builddir_sub&;t t
19162 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19163 s&@srcdir@&$ac_srcdir&;t t
19164 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19165 s&@top_srcdir@&$ac_top_srcdir&;t t
19166 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19167 s&@builddir@&$ac_builddir&;t t
19168 s&@abs_builddir@&$ac_abs_builddir&;t t
19169 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19170 s&@INSTALL@&$ac_INSTALL&;t t
19171 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19172 $ac_datarootdir_hack
19174 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19175 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19177 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19178 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19179 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19180 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19182 which seems to be undefined. Please make sure it is defined" >&5
19183 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19184 which seems to be undefined. Please make sure it is defined" >&2;}
19186 rm -f "$ac_tmp/stdin"
19188 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19189 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19191 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19197 if test x"$ac_file" != x-; then
19199 $as_echo "/* $configure_input */" \
19200 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19201 } >"$ac_tmp/config.h" \
19202 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19203 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19204 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19205 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19208 mv "$ac_tmp/config.h" "$ac_file" \
19209 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19212 $as_echo "/* $configure_input */" \
19213 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19214 || as_fn_error $? "could not create -" "$LINENO" 5
19216 # Compute "$ac_file"'s index in $config_headers.
19219 for _am_header in $config_headers :; do
19220 case $_am_header in
19221 $_am_arg | $_am_arg:* )
19224 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19227 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19228 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19229 X"$_am_arg" : 'X\(//\)[^/]' \| \
19230 X"$_am_arg" : 'X\(//\)$' \| \
19231 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19232 $as_echo X"$_am_arg" |
19233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19237 /^X\(\/\/\)[^/].*/{
19249 s/.*/./; q'`/stamp-h$_am_stamp_count
19252 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19253 $as_echo "$as_me: executing $ac_file commands" >&6;}
19258 case $ac_file$ac_mode in
19259 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19260 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19261 # are listed without --file. Let's play safe and only enable the eval
19262 # if we detect the quoting.
19263 case $CONFIG_FILES in
19264 *\'*) eval set x "$CONFIG_FILES" ;;
19265 *) set x $CONFIG_FILES ;;
19270 # Strip MF so we end up with the name of the file.
19271 mf=`echo "$mf" | sed -e 's/:.*$//'`
19272 # Check whether this is an Automake generated Makefile or not.
19273 # We used to match only the files named `Makefile.in', but
19274 # some people rename them; so instead we look at the file content.
19275 # Grep'ing the first line is not enough: some people post-process
19276 # each Makefile.in and add a new line on top of each file to say so.
19277 # Grep'ing the whole file is not good either: AIX grep has a line
19278 # limit of 2048, but all sed's we know have understand at least 4000.
19279 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19280 dirpart=`$as_dirname -- "$mf" ||
19281 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19282 X"$mf" : 'X\(//\)[^/]' \| \
19283 X"$mf" : 'X\(//\)$' \| \
19284 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19290 /^X\(\/\/\)[^/].*/{
19306 # Extract the definition of DEPDIR, am__include, and am__quote
19307 # from the Makefile without running `make'.
19308 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19309 test -z "$DEPDIR" && continue
19310 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19311 test -z "am__include" && continue
19312 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19313 # When using ansi2knr, U may be empty or an underscore; expand it
19314 U=`sed -n 's/^U = //p' < "$mf"`
19315 # Find all dependency output files, they are included files with
19316 # $(DEPDIR) in their names. We invoke sed twice because it is the
19317 # simplest approach to changing $(DEPDIR) to its actual value in the
19319 for file in `sed -n "
19320 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19321 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19322 # Make sure the directory exists.
19323 test -f "$dirpart/$file" && continue
19324 fdir=`$as_dirname -- "$file" ||
19325 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19326 X"$file" : 'X\(//\)[^/]' \| \
19327 X"$file" : 'X\(//\)$' \| \
19328 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19329 $as_echo X"$file" |
19330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19334 /^X\(\/\/\)[^/].*/{
19347 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19348 # echo "creating $dirpart/$file"
19349 echo '# dummy' > "$dirpart/$file"
19356 # See if we are running on zsh, and set the options which allow our
19357 # commands through without removal of \ escapes.
19358 if test -n "${ZSH_VERSION+set}" ; then
19359 setopt NO_GLOB_SUBST
19362 cfgfile="${ofile}T"
19363 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19366 cat <<_LT_EOF >> "$cfgfile"
19369 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19370 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19371 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19372 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19374 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19375 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19377 # Written by Gordon Matzigkeit, 1996
19379 # This file is part of GNU Libtool.
19381 # GNU Libtool is free software; you can redistribute it and/or
19382 # modify it under the terms of the GNU General Public License as
19383 # published by the Free Software Foundation; either version 2 of
19384 # the License, or (at your option) any later version.
19386 # As a special exception to the GNU General Public License,
19387 # if you distribute this file as part of a program or library that
19388 # is built using GNU Libtool, you may include this file under the
19389 # same distribution terms that you use for the rest of that program.
19391 # GNU Libtool is distributed in the hope that it will be useful,
19392 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19393 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19394 # GNU General Public License for more details.
19396 # You should have received a copy of the GNU General Public License
19397 # along with GNU Libtool; see the file COPYING. If not, a copy
19398 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19399 # obtained by writing to the Free Software Foundation, Inc.,
19400 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19403 # The names of the tagged configurations supported by this script.
19406 # ### BEGIN LIBTOOL CONFIG
19408 # Which release of libtool.m4 was used?
19409 macro_version=$macro_version
19410 macro_revision=$macro_revision
19412 # Whether or not to build shared libraries.
19413 build_libtool_libs=$enable_shared
19415 # Whether or not to build static libraries.
19416 build_old_libs=$enable_static
19418 # What type of objects to build.
19421 # Whether or not to optimize for fast installation.
19422 fast_install=$enable_fast_install
19424 # Shell to use when invoking shell scripts.
19427 # An echo program that protects backslashes.
19431 host_alias=$host_alias
19435 # The build system.
19436 build_alias=$build_alias
19440 # A sed program that does not truncate output.
19443 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19444 Xsed="\$SED -e 1s/^X//"
19446 # A grep program that handles long lines.
19452 # A literal string matcher.
19455 # A BSD- or MS-compatible name lister.
19458 # Whether we need soft or hard links.
19461 # What is the maximum length of a command?
19462 max_cmd_len=$max_cmd_len
19464 # Object file suffix (normally "o").
19467 # Executable file suffix (normally "").
19470 # whether the shell understands "unset".
19473 # turn spaces into newlines.
19476 # turn newlines into spaces.
19479 # convert \$build file names to \$host format.
19480 to_host_file_cmd=$lt_cv_to_host_file_cmd
19482 # convert \$build files to toolchain format.
19483 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19485 # An object symbol dumper.
19486 OBJDUMP=$lt_OBJDUMP
19488 # Method to check whether dependent libraries are shared objects.
19489 deplibs_check_method=$lt_deplibs_check_method
19491 # Command to use when deplibs_check_method = "file_magic".
19492 file_magic_cmd=$lt_file_magic_cmd
19494 # How to find potential files when deplibs_check_method = "file_magic".
19495 file_magic_glob=$lt_file_magic_glob
19497 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19498 want_nocaseglob=$lt_want_nocaseglob
19500 # DLL creation program.
19501 DLLTOOL=$lt_DLLTOOL
19503 # Command to associate shared and link libraries.
19504 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19509 # Flags to create an archive.
19510 AR_FLAGS=$lt_AR_FLAGS
19512 # How to feed a file listing to the archiver.
19513 archiver_list_spec=$lt_archiver_list_spec
19515 # A symbol stripping program.
19518 # Commands used to install an old-style archive.
19520 old_postinstall_cmds=$lt_old_postinstall_cmds
19521 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19523 # Whether to use a lock for old archive extraction.
19524 lock_old_archive_extraction=$lock_old_archive_extraction
19529 # LTCC compiler flags.
19530 LTCFLAGS=$lt_CFLAGS
19532 # Take the output of nm and produce a listing of raw symbols and C names.
19533 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19535 # Transform the output of nm in a proper C declaration.
19536 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19538 # Transform the output of nm in a C name address pair.
19539 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19541 # Transform the output of nm in a C name address pair when lib prefix is needed.
19542 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19544 # Specify filename containing input files for \$NM.
19545 nm_file_list_spec=$lt_nm_file_list_spec
19547 # The root where to search for dependent libraries,and in which our libraries should be installed.
19548 lt_sysroot=$lt_sysroot
19550 # The name of the directory that contains temporary libtool files.
19553 # Used to examine libraries when file_magic_cmd begins with "file".
19554 MAGIC_CMD=$MAGIC_CMD
19556 # Must we lock files when doing compilation?
19557 need_locks=$lt_need_locks
19560 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19562 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19563 DSYMUTIL=$lt_DSYMUTIL
19565 # Tool to change global to local symbols on Mac OS X.
19568 # Tool to manipulate fat objects and archives on Mac OS X.
19571 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19574 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19575 OTOOL64=$lt_OTOOL64
19577 # Old archive suffix (normally "a").
19580 # Shared library suffix (normally ".so").
19581 shrext_cmds=$lt_shrext_cmds
19583 # The commands to extract the exported symbol list from a shared archive.
19584 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19586 # Variables whose values should be saved in libtool wrapper scripts and
19587 # restored at link time.
19588 variables_saved_for_relink=$lt_variables_saved_for_relink
19590 # Do we need the "lib" prefix for modules?
19591 need_lib_prefix=$need_lib_prefix
19593 # Do we need a version for libraries?
19594 need_version=$need_version
19596 # Library versioning type.
19597 version_type=$version_type
19599 # Shared library runtime path variable.
19600 runpath_var=$runpath_var
19602 # Shared library path variable.
19603 shlibpath_var=$shlibpath_var
19605 # Is shlibpath searched before the hard-coded library search path?
19606 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19608 # Format of library name prefix.
19609 libname_spec=$lt_libname_spec
19611 # List of archive names. First name is the real one, the rest are links.
19612 # The last name is the one that the linker finds with -lNAME
19613 library_names_spec=$lt_library_names_spec
19615 # The coded name of the library, if different from the real name.
19616 soname_spec=$lt_soname_spec
19618 # Permission mode override for installation of shared libraries.
19619 install_override_mode=$lt_install_override_mode
19621 # Command to use after installation of a shared archive.
19622 postinstall_cmds=$lt_postinstall_cmds
19624 # Command to use after uninstallation of a shared archive.
19625 postuninstall_cmds=$lt_postuninstall_cmds
19627 # Commands used to finish a libtool library installation in a directory.
19628 finish_cmds=$lt_finish_cmds
19630 # As "finish_cmds", except a single script fragment to be evaled but
19632 finish_eval=$lt_finish_eval
19634 # Whether we should hardcode library paths into libraries.
19635 hardcode_into_libs=$hardcode_into_libs
19637 # Compile-time system search path for libraries.
19638 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19640 # Run-time system search path for libraries.
19641 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19643 # Whether dlopen is supported.
19644 dlopen_support=$enable_dlopen
19646 # Whether dlopen of programs is supported.
19647 dlopen_self=$enable_dlopen_self
19649 # Whether dlopen of statically linked programs is supported.
19650 dlopen_self_static=$enable_dlopen_self_static
19652 # Commands to strip libraries.
19653 old_striplib=$lt_old_striplib
19654 striplib=$lt_striplib
19657 # The linker used to build libraries.
19660 # How to create reloadable object files.
19661 reload_flag=$lt_reload_flag
19662 reload_cmds=$lt_reload_cmds
19664 # Commands used to build an old-style archive.
19665 old_archive_cmds=$lt_old_archive_cmds
19667 # A language specific compiler.
19670 # Is the compiler the GNU compiler?
19673 # Compiler flag to turn off builtin functions.
19674 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19676 # Additional compiler flags for building library objects.
19677 pic_flag=$lt_lt_prog_compiler_pic
19679 # How to pass a linker flag through the compiler.
19680 wl=$lt_lt_prog_compiler_wl
19682 # Compiler flag to prevent dynamic linking.
19683 link_static_flag=$lt_lt_prog_compiler_static
19685 # Does compiler simultaneously support -c and -o options?
19686 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19688 # Whether or not to add -lc for building shared libraries.
19689 build_libtool_need_lc=$archive_cmds_need_lc
19691 # Whether or not to disallow shared libs when runtime libs are static.
19692 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19694 # Compiler flag to allow reflexive dlopens.
19695 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19697 # Compiler flag to generate shared objects directly from archives.
19698 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19700 # Whether the compiler copes with passing no objects directly.
19701 compiler_needs_object=$lt_compiler_needs_object
19703 # Create an old-style archive from a shared archive.
19704 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19706 # Create a temporary old-style archive to link instead of a shared archive.
19707 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19709 # Commands used to build a shared archive.
19710 archive_cmds=$lt_archive_cmds
19711 archive_expsym_cmds=$lt_archive_expsym_cmds
19713 # Commands used to build a loadable module if different from building
19714 # a shared archive.
19715 module_cmds=$lt_module_cmds
19716 module_expsym_cmds=$lt_module_expsym_cmds
19718 # Whether we are building with GNU ld or not.
19719 with_gnu_ld=$lt_with_gnu_ld
19721 # Flag that allows shared libraries with undefined symbols to be built.
19722 allow_undefined_flag=$lt_allow_undefined_flag
19724 # Flag that enforces no undefined symbols.
19725 no_undefined_flag=$lt_no_undefined_flag
19727 # Flag to hardcode \$libdir into a binary during linking.
19728 # This must work even if \$libdir does not exist
19729 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19731 # If ld is used when linking, flag to hardcode \$libdir into a binary
19732 # during linking. This must work even if \$libdir does not exist.
19733 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19735 # Whether we need a single "-rpath" flag with a separated argument.
19736 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19738 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19739 # DIR into the resulting binary.
19740 hardcode_direct=$hardcode_direct
19742 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19743 # DIR into the resulting binary and the resulting library dependency is
19744 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19745 # library is relocated.
19746 hardcode_direct_absolute=$hardcode_direct_absolute
19748 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19749 # into the resulting binary.
19750 hardcode_minus_L=$hardcode_minus_L
19752 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19753 # into the resulting binary.
19754 hardcode_shlibpath_var=$hardcode_shlibpath_var
19756 # Set to "yes" if building a shared library automatically hardcodes DIR
19757 # into the library and all subsequent libraries and executables linked
19759 hardcode_automatic=$hardcode_automatic
19761 # Set to yes if linker adds runtime paths of dependent libraries
19762 # to runtime path list.
19763 inherit_rpath=$inherit_rpath
19765 # Whether libtool must link a program against all its dependency libraries.
19766 link_all_deplibs=$link_all_deplibs
19768 # Set to "yes" if exported symbols are required.
19769 always_export_symbols=$always_export_symbols
19771 # The commands to list exported symbols.
19772 export_symbols_cmds=$lt_export_symbols_cmds
19774 # Symbols that should not be listed in the preloaded symbols.
19775 exclude_expsyms=$lt_exclude_expsyms
19777 # Symbols that must always be exported.
19778 include_expsyms=$lt_include_expsyms
19780 # Commands necessary for linking programs (against libraries) with templates.
19781 prelink_cmds=$lt_prelink_cmds
19783 # Commands necessary for finishing linking programs.
19784 postlink_cmds=$lt_postlink_cmds
19786 # Specify filename containing input files.
19787 file_list_spec=$lt_file_list_spec
19789 # How to hardcode a shared library path into an executable.
19790 hardcode_action=$hardcode_action
19792 # ### END LIBTOOL CONFIG
19798 cat <<\_LT_EOF >> "$cfgfile"
19799 # AIX sometimes has problems with the GCC collect2 program. For some
19800 # reason, if we set the COLLECT_NAMES environment variable, the problems
19801 # vanish in a puff of smoke.
19802 if test "X${COLLECT_NAMES+set}" != Xset; then
19804 export COLLECT_NAMES
19811 ltmain="$ac_aux_dir/ltmain.sh"
19814 # We use sed instead of cat because bash on DJGPP gets confused if
19815 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19816 # text mode, it properly converts lines to CR/LF. This bash problem
19817 # is reportedly fixed, but why not run on old versions too?
19818 sed '$q' "$ltmain" >> "$cfgfile" \
19819 || (rm -f "$cfgfile"; exit 1)
19821 if test x"$xsi_shell" = xyes; then
19822 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19826 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19827 \ * ) func_dirname_result="${3}" ;;\
19829 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19830 && mv -f "$cfgfile.tmp" "$cfgfile" \
19831 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19832 test 0 -eq $? || _lt_function_replace_fail=:
19835 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19838 \ func_basename_result="${1##*/}"\
19839 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19840 && mv -f "$cfgfile.tmp" "$cfgfile" \
19841 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19842 test 0 -eq $? || _lt_function_replace_fail=:
19845 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19846 func_dirname_and_basename ()\
19849 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19850 \ * ) func_dirname_result="${3}" ;;\
19852 \ func_basename_result="${1##*/}"\
19853 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19854 && mv -f "$cfgfile.tmp" "$cfgfile" \
19855 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19856 test 0 -eq $? || _lt_function_replace_fail=:
19859 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19862 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19863 \ # positional parameters, so assign one to ordinary parameter first.\
19864 \ func_stripname_result=${3}\
19865 \ func_stripname_result=${func_stripname_result#"${1}"}\
19866 \ func_stripname_result=${func_stripname_result%"${2}"}\
19867 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19868 && mv -f "$cfgfile.tmp" "$cfgfile" \
19869 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19870 test 0 -eq $? || _lt_function_replace_fail=:
19873 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19874 func_split_long_opt ()\
19876 \ func_split_long_opt_name=${1%%=*}\
19877 \ func_split_long_opt_arg=${1#*=}\
19878 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19879 && mv -f "$cfgfile.tmp" "$cfgfile" \
19880 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19881 test 0 -eq $? || _lt_function_replace_fail=:
19884 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19885 func_split_short_opt ()\
19887 \ func_split_short_opt_arg=${1#??}\
19888 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19889 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19890 && mv -f "$cfgfile.tmp" "$cfgfile" \
19891 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19892 test 0 -eq $? || _lt_function_replace_fail=:
19895 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19899 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19900 \ *) func_lo2o_result=${1} ;;\
19902 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19903 && mv -f "$cfgfile.tmp" "$cfgfile" \
19904 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19905 test 0 -eq $? || _lt_function_replace_fail=:
19908 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19911 func_xform_result=${1%.*}.lo\
19912 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19913 && mv -f "$cfgfile.tmp" "$cfgfile" \
19914 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19915 test 0 -eq $? || _lt_function_replace_fail=:
19918 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19921 func_arith_result=$(( $* ))\
19922 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19923 && mv -f "$cfgfile.tmp" "$cfgfile" \
19924 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19925 test 0 -eq $? || _lt_function_replace_fail=:
19928 sed -e '/^func_len ()$/,/^} # func_len /c\
19931 func_len_result=${#1}\
19932 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19933 && mv -f "$cfgfile.tmp" "$cfgfile" \
19934 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19935 test 0 -eq $? || _lt_function_replace_fail=:
19939 if test x"$lt_shell_append" = xyes; then
19940 sed -e '/^func_append ()$/,/^} # func_append /c\
19943 eval "${1}+=\\${2}"\
19944 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19945 && mv -f "$cfgfile.tmp" "$cfgfile" \
19946 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19947 test 0 -eq $? || _lt_function_replace_fail=:
19950 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19951 func_append_quoted ()\
19953 \ func_quote_for_eval "${2}"\
19954 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19955 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19956 && mv -f "$cfgfile.tmp" "$cfgfile" \
19957 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19958 test 0 -eq $? || _lt_function_replace_fail=:
19961 # Save a `func_append' function call where possible by direct use of '+='
19962 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19963 && mv -f "$cfgfile.tmp" "$cfgfile" \
19964 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19965 test 0 -eq $? || _lt_function_replace_fail=:
19967 # Save a `func_append' function call even when '+=' is not available
19968 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19969 && mv -f "$cfgfile.tmp" "$cfgfile" \
19970 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19971 test 0 -eq $? || _lt_function_replace_fail=:
19974 if test x"$_lt_function_replace_fail" = x":"; then
19975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19976 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19980 mv -f "$cfgfile" "$ofile" ||
19981 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19992 ac_clean_files=$ac_clean_files_save
19994 test $ac_write_fail = 0 ||
19995 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19998 # configure is writing to config.log, and then calls config.status.
19999 # config.status does its own redirection, appending to config.log.
20000 # Unfortunately, on DOS this fails, as config.log is still kept open
20001 # by configure, so config.status won't be able to write to it; its
20002 # output is simply discarded. So we exec the FD to /dev/null,
20003 # effectively closing config.log, so it can be properly (re)opened and
20004 # appended to by config.status. When coming back to configure, we
20005 # need to make the FD available again.
20006 if test "$no_create" != yes; then
20008 ac_config_status_args=
20009 test "$silent" = yes &&
20010 ac_config_status_args="$ac_config_status_args --quiet"
20012 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20014 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20015 # would make configure fail if this is the last instruction.
20016 $ac_cs_success || as_fn_exit 1
20018 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20020 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}