2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xf86-video-fbdev 0.4.3.
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
271 # Portably unset VAR.
274 { eval $1=; unset $1;}
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
298 # Create "$as_dir" as a directory, including parents if necessary.
303 -*) as_dir=./$as_dir;;
305 test -d "$as_dir" || eval $as_mkdir_p || {
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 test -d "$as_dir" && break
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
374 as_val=`expr "$@" || test $? -eq 1`
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
386 as_status=$1; test $as_status -eq 0 && as_status=1
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
468 # Exit status is that of the last command.
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
490 mkdir conf$$.dir 2>/dev/null
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
515 test -d ./-p && rmdir ./-p
519 if test -x / >/dev/null 2>&1; then
522 if ls -dL / >/dev/null 2>&1; then
529 if test -d "$1"; then
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
540 as_executable_p=$as_test_x
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548 SHELL=${CONFIG_SHELL-/bin/sh}
551 test -n "$DJDIR" || exec 7<&0 </dev/null
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
571 # Identity of this package.
572 PACKAGE_NAME='xf86-video-fbdev'
573 PACKAGE_TARNAME='xf86-video-fbdev'
574 PACKAGE_VERSION='0.4.3'
575 PACKAGE_STRING='xf86-video-fbdev 0.4.3'
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
702 MAINTAINER_MODE_FALSE
712 INSTALL_STRIP_PROGRAM
754 program_transform_name
767 enable_option_checking
768 enable_maintainer_mode
769 enable_dependency_tracking
770 enable_selective_werror
771 enable_strict_compilation
783 ac_precious_vars='build_alias
801 # Initialize some variables set by options.
803 ac_init_version=false
804 ac_unrecognized_opts=
806 # The variables have the same names as the options, with
807 # dashes changed to underlines.
815 program_transform_name=s,x,x,
823 # Installation directory options.
824 # These are left unexpanded so users can "make install exec_prefix=/foo"
825 # and all the variables that are supposed to be based on exec_prefix
826 # by default will actually change.
827 # Use braces instead of parens because sh, perl, etc. also accept them.
828 # (The list follows the same order as the GNU Coding Standards.)
829 bindir='${exec_prefix}/bin'
830 sbindir='${exec_prefix}/sbin'
831 libexecdir='${exec_prefix}/libexec'
832 datarootdir='${prefix}/share'
833 datadir='${datarootdir}'
834 sysconfdir='${prefix}/etc'
835 sharedstatedir='${prefix}/com'
836 localstatedir='${prefix}/var'
837 includedir='${prefix}/include'
838 oldincludedir='/usr/include'
839 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840 infodir='${datarootdir}/info'
845 libdir='${exec_prefix}/lib'
846 localedir='${datarootdir}/locale'
847 mandir='${datarootdir}/man'
853 # If the previous option needs an argument, assign it.
854 if test -n "$ac_prev"; then
855 eval $ac_prev=\$ac_option
861 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866 # Accept the important Cygnus configure options, so we can diagnose typos.
868 case $ac_dashdash$ac_option in
872 -bindir | --bindir | --bindi | --bind | --bin | --bi)
874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877 -build | --build | --buil | --bui | --bu)
878 ac_prev=build_alias ;;
879 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880 build_alias=$ac_optarg ;;
882 -cache-file | --cache-file | --cache-fil | --cache-fi \
883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884 ac_prev=cache_file ;;
885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887 cache_file=$ac_optarg ;;
890 cache_file=config.cache ;;
892 -datadir | --datadir | --datadi | --datad)
894 -datadir=* | --datadir=* | --datadi=* | --datad=*)
895 datadir=$ac_optarg ;;
897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898 | --dataroo | --dataro | --datar)
899 ac_prev=datarootdir ;;
900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902 datarootdir=$ac_optarg ;;
904 -disable-* | --disable-*)
905 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908 as_fn_error $? "invalid feature name: $ac_useropt"
909 ac_useropt_orig=$ac_useropt
910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911 case $ac_user_opts in
915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
916 ac_unrecognized_sep=', ';;
918 eval enable_$ac_useropt=no ;;
920 -docdir | --docdir | --docdi | --doc | --do)
922 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
927 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930 -enable-* | --enable-*)
931 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934 as_fn_error $? "invalid feature name: $ac_useropt"
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
944 eval enable_$ac_useropt=\$ac_optarg ;;
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
959 -help | --help | --hel | --he | -h)
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 htmldir=$ac_optarg ;;
977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
989 -libdir | --libdir | --libdi | --libd)
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1006 -localstatedir | --localstatedir | --localstatedi | --localstated \
1007 | --localstate | --localstat | --localsta | --localst | --locals)
1008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011 localstatedir=$ac_optarg ;;
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1080 -psdir | --psdir | --psdi | --psd | --ps)
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 sbindir=$ac_optarg ;;
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 sharedstatedir=$ac_optarg ;;
1106 -site | --site | --sit)
1108 -site=* | --site=* | --sit=*)
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1135 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error $? "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1148 eval with_$ac_useropt=\$ac_optarg ;;
1150 -without-* | --without-*)
1151 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154 as_fn_error $? "invalid package name: $ac_useropt"
1155 ac_useropt_orig=$ac_useropt
1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157 case $ac_user_opts in
1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1162 ac_unrecognized_sep=', ';;
1164 eval with_$ac_useropt=no ;;
1167 # Obsolete; use --with-x.
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1184 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1185 Try \`$0 --help' for more information"
1189 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190 # Reject names that are not valid shell variable names.
1191 case $ac_envvar in #(
1192 '' | [0-9]* | *[!_$as_cr_alnum]* )
1193 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1195 eval $ac_envvar=\$ac_optarg
1196 export $ac_envvar ;;
1199 # FIXME: should be removed in autoconf 3.0.
1200 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1209 if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211 as_fn_error $? "missing argument to $ac_option"
1214 if test -n "$ac_unrecognized_opts"; then
1215 case $enable_option_checking in
1217 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1218 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1222 # Check all directory arguments for consistency.
1223 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1224 datadir sysconfdir sharedstatedir localstatedir includedir \
1225 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1226 libdir localedir mandir
1228 eval ac_val=\$$ac_var
1229 # Remove trailing slashes.
1232 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1233 eval $ac_var=\$ac_val;;
1235 # Be sure to have absolute directory names.
1237 [\\/$]* | ?:[\\/]* ) continue;;
1238 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1240 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1243 # There might be people who depend on the old broken behavior: `$host'
1244 # used to hold the argument of --host etc.
1245 # FIXME: To remove some day.
1248 target=$target_alias
1250 # FIXME: To remove some day.
1251 if test "x$host_alias" != x; then
1252 if test "x$build_alias" = x; then
1253 cross_compiling=maybe
1254 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1255 If a cross compiler is detected then cross compile mode will be used" >&2
1256 elif test "x$build_alias" != "x$host_alias"; then
1262 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1264 test "$silent" = yes && exec 6>/dev/null
1267 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1268 ac_ls_di=`ls -di .` &&
1269 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1270 as_fn_error $? "working directory cannot be determined"
1271 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1272 as_fn_error $? "pwd does not report name of working directory"
1275 # Find the source files, if location was not specified.
1276 if test -z "$srcdir"; then
1277 ac_srcdir_defaulted=yes
1278 # Try the directory containing this script, then the parent directory.
1279 ac_confdir=`$as_dirname -- "$as_myself" ||
1280 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1281 X"$as_myself" : 'X\(//\)[^/]' \| \
1282 X"$as_myself" : 'X\(//\)$' \| \
1283 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1284 $as_echo X"$as_myself" |
1285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1307 ac_srcdir_defaulted=no
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1310 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1311 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1313 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1315 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1317 # When building in place, set srcdir=.
1318 if test "$ac_abs_confdir" = "$ac_pwd"; then
1321 # Remove unnecessary trailing slashes from srcdir.
1322 # Double slashes in file names in object file debugging info
1323 # mess up M-x gdb in Emacs.
1325 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1327 for ac_var in $ac_precious_vars; do
1328 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_env_${ac_var}_value=\$${ac_var}
1330 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1335 # Report the --help message.
1337 if test "$ac_init_help" = "long"; then
1338 # Omit some internal or obsolete options to make the list less imposing.
1339 # This message is too long to be a string in the A/UX 3.1 sh.
1341 \`configure' configures xf86-video-fbdev 0.4.3 to adapt to many kinds of systems.
1343 Usage: $0 [OPTION]... [VAR=VALUE]...
1345 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1346 VAR=VALUE. See below for descriptions of some of the useful variables.
1348 Defaults for the options are specified in brackets.
1351 -h, --help display this help and exit
1352 --help=short display options specific to this package
1353 --help=recursive display the short help of all the included packages
1354 -V, --version display version information and exit
1355 -q, --quiet, --silent do not print \`checking ...' messages
1356 --cache-file=FILE cache test results in FILE [disabled]
1357 -C, --config-cache alias for \`--cache-file=config.cache'
1358 -n, --no-create do not create output files
1359 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1361 Installation directories:
1362 --prefix=PREFIX install architecture-independent files in PREFIX
1363 [$ac_default_prefix]
1364 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1367 By default, \`make install' will install all the files in
1368 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1369 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1370 for instance \`--prefix=\$HOME'.
1372 For better control, use the options below.
1374 Fine tuning of the installation directories:
1375 --bindir=DIR user executables [EPREFIX/bin]
1376 --sbindir=DIR system admin executables [EPREFIX/sbin]
1377 --libexecdir=DIR program executables [EPREFIX/libexec]
1378 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1379 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1380 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1381 --libdir=DIR object code libraries [EPREFIX/lib]
1382 --includedir=DIR C header files [PREFIX/include]
1383 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1386 --infodir=DIR info documentation [DATAROOTDIR/info]
1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1388 --mandir=DIR man documentation [DATAROOTDIR/man]
1389 --docdir=DIR documentation root
1390 [DATAROOTDIR/doc/xf86-video-fbdev]
1391 --htmldir=DIR html documentation [DOCDIR]
1392 --dvidir=DIR dvi documentation [DOCDIR]
1393 --pdfdir=DIR pdf documentation [DOCDIR]
1394 --psdir=DIR ps documentation [DOCDIR]
1400 --program-prefix=PREFIX prepend PREFIX to installed program names
1401 --program-suffix=SUFFIX append SUFFIX to installed program names
1402 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1405 --build=BUILD configure for building on BUILD [guessed]
1406 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1410 if test -n "$ac_init_help"; then
1411 case $ac_init_help in
1412 short | recursive ) echo "Configuration of xf86-video-fbdev 0.4.3:";;
1417 --disable-option-checking ignore unrecognized --enable/--with options
1418 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1419 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1420 --enable-maintainer-mode enable make rules and dependencies not useful
1421 (and sometimes confusing) to the casual installer
1422 --disable-dependency-tracking speeds up one-time build
1423 --enable-dependency-tracking do not reject slow dependency extractors
1424 --disable-selective-werror
1425 Turn off selective compiler errors. (default:
1427 --enable-strict-compilation
1428 Enable all warnings from compiler and make them
1429 errors (default: disabled)
1430 --enable-silent-rules less verbose build output (undo: `make V=1')
1431 --disable-silent-rules verbose build output (undo: `make V=0')
1432 --enable-static[=PKGS] build static libraries [default=no]
1433 --enable-shared[=PKGS] build shared libraries [default=yes]
1434 --enable-fast-install[=PKGS]
1435 optimize for fast installation [default=yes]
1436 --disable-libtool-lock avoid locking (might break parallel builds)
1437 --enable-pciaccess Enable use of libpciaccess (default: disabled)
1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1442 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1444 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1445 --with-sysroot=DIR Search for dependent libraries within DIR
1446 (or the compiler's sysroot if not specified).
1447 --with-xorg-module-dir=DIR
1448 Default xorg module directory
1449 [[default=$libdir/xorg/modules]]
1451 Some influential environment variables:
1452 CC C compiler command
1453 CFLAGS C compiler flags
1454 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1455 nonstandard directory <lib dir>
1456 LIBS libraries to pass to the linker, e.g. -l<library>
1457 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1458 you have headers in a nonstandard directory <include dir>
1460 PKG_CONFIG path to pkg-config utility
1462 directories to add to pkg-config's search path
1464 path overriding pkg-config's built-in search path
1465 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1466 XORG_LIBS linker flags for XORG, overriding pkg-config
1468 C compiler flags for PCIACCESS, overriding pkg-config
1470 linker flags for PCIACCESS, overriding pkg-config
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1475 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" ||
1484 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1492 # A ".." for each directory in $ac_dir_suffix.
1493 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494 case $ac_top_builddir_sub in
1495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499 ac_abs_top_builddir=$ac_pwd
1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501 # for backward compatibility:
1502 ac_top_builddir=$ac_top_build_prefix
1505 .) # We are building in place.
1507 ac_top_srcdir=$ac_top_builddir_sub
1508 ac_abs_top_srcdir=$ac_pwd ;;
1509 [\\/]* | ?:[\\/]* ) # Absolute name.
1510 ac_srcdir=$srcdir$ac_dir_suffix;
1511 ac_top_srcdir=$srcdir
1512 ac_abs_top_srcdir=$srcdir ;;
1514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515 ac_top_srcdir=$ac_top_build_prefix$srcdir
1516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1520 cd "$ac_dir" || { ac_status=$?; continue; }
1521 # Check for guested configure.
1522 if test -f "$ac_srcdir/configure.gnu"; then
1524 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525 elif test -f "$ac_srcdir/configure"; then
1527 $SHELL "$ac_srcdir/configure" --help=recursive
1529 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1531 cd "$ac_pwd" || { ac_status=$?; break; }
1535 test -n "$ac_init_help" && exit $ac_status
1536 if $ac_init_version; then
1538 xf86-video-fbdev configure 0.4.3
1539 generated by GNU Autoconf 2.68
1541 Copyright (C) 2010 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1548 ## ------------------------ ##
1549 ## Autoconf initialization. ##
1550 ## ------------------------ ##
1552 # ac_fn_c_try_compile LINENO
1553 # --------------------------
1554 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1555 ac_fn_c_try_compile ()
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 rm -f conftest.$ac_objext
1559 if { { ac_try="$ac_compile"
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 $as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_compile") 2>conftest.err
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } && {
1575 test -z "$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1577 } && test -s conftest.$ac_objext; then :
1580 $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586 as_fn_set_status $ac_retval
1588 } # ac_fn_c_try_compile
1590 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1591 # ---------------------------------------------
1592 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1594 ac_fn_c_check_decl ()
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 as_decl_name=`echo $2|sed 's/ *(.*//'`
1598 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1600 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1601 if eval \${$3+:} false; then :
1602 $as_echo_n "(cached) " >&6
1604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1605 /* end confdefs.h. */
1610 #ifndef $as_decl_name
1612 (void) $as_decl_use;
1614 (void) $as_decl_name;
1622 if ac_fn_c_try_compile "$LINENO"; then :
1627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631 $as_echo "$ac_res" >&6; }
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634 } # ac_fn_c_check_decl
1636 # ac_fn_c_try_cpp LINENO
1637 # ----------------------
1638 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 if { { ac_try="$ac_cpp conftest.$ac_ext"
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } > conftest.i && {
1658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669 as_fn_set_status $ac_retval
1673 # ac_fn_c_try_run LINENO
1674 # ----------------------
1675 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1676 # that executables *can* be run.
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_link"
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_link") 2>&5
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1691 { { case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_try") 2>&5
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; }; }; then :
1703 $as_echo "$as_me: program exited with status $ac_status" >&5
1704 $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1707 ac_retval=$ac_status
1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_status $ac_retval
1715 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1716 # -------------------------------------------------------
1717 # Tests whether HEADER exists and can be compiled using the include files in
1718 # INCLUDES, setting the cache variable VAR accordingly.
1719 ac_fn_c_check_header_compile ()
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723 $as_echo_n "checking for $2... " >&6; }
1724 if eval \${$3+:} false; then :
1725 $as_echo_n "(cached) " >&6
1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728 /* end confdefs.h. */
1732 if ac_fn_c_try_compile "$LINENO"; then :
1737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741 $as_echo "$ac_res" >&6; }
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 } # ac_fn_c_check_header_compile
1746 # ac_fn_c_try_link LINENO
1747 # -----------------------
1748 # Try to link conftest.$ac_ext, and return whether this succeeded.
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 rm -f conftest.$ac_objext conftest$ac_exeext
1753 if { { ac_try="$ac_link"
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_link") 2>conftest.err
1762 if test -s conftest.err; then
1763 grep -v '^ *+' conftest.err >conftest.er1
1764 cat conftest.er1 >&5
1765 mv -f conftest.er1 conftest.err
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } && {
1769 test -z "$ac_c_werror_flag" ||
1770 test ! -s conftest.err
1771 } && test -s conftest$ac_exeext && {
1772 test "$cross_compiling" = yes ||
1773 $as_test_x conftest$ac_exeext
1777 $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1782 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1783 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1784 # interfere with the next link command; also delete a directory that is
1785 # left behind by Apple's compiler. We do this before executing the actions.
1786 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status $ac_retval
1790 } # ac_fn_c_try_link
1792 # ac_fn_c_check_func LINENO FUNC VAR
1793 # ----------------------------------
1794 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1795 ac_fn_c_check_func ()
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799 $as_echo_n "checking for $2... " >&6; }
1800 if eval \${$3+:} false; then :
1801 $as_echo_n "(cached) " >&6
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1805 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1807 #define $2 innocuous_$2
1809 /* System header to define __stub macros and hopefully few prototypes,
1810 which can conflict with char $2 (); below.
1811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1812 <limits.h> exists even on freestanding compilers. */
1815 # include <limits.h>
1817 # include <assert.h>
1822 /* Override any GCC internal prototype to avoid an error.
1823 Use char because int might match the return type of a GCC
1824 builtin and then its argument prototype would still apply. */
1829 /* The GNU C library defines this for functions which it implements
1830 to always fail with ENOSYS. Some functions are actually named
1831 something starting with __ and the normal name is an alias. */
1832 #if defined __stub_$2 || defined __stub___$2
1844 if ac_fn_c_try_link "$LINENO"; then :
1849 rm -f core conftest.err conftest.$ac_objext \
1850 conftest$ac_exeext conftest.$ac_ext
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 } # ac_fn_c_check_func
1858 cat >config.log <<_ACEOF
1859 This file contains any messages produced by compilers while
1860 running configure, to aid debugging if configure makes a mistake.
1862 It was created by xf86-video-fbdev $as_me 0.4.3, which was
1863 generated by GNU Autoconf 2.68. Invocation command line was
1875 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1876 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1877 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1878 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1879 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1881 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1882 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1884 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1885 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1886 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1887 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1888 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1889 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1890 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898 test -z "$as_dir" && as_dir=.
1899 $as_echo "PATH: $as_dir"
1915 # Keep a trace of the command line.
1916 # Strip out --no-create and --no-recursion so they do not pile up.
1917 # Strip out --silent because we don't want to record it for future runs.
1918 # Also quote any args containing shell meta-characters.
1919 # Make two passes to allow for proper duplicate-argument suppression.
1923 ac_must_keep_next=false
1929 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1930 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1931 | -silent | --silent | --silen | --sile | --sil)
1934 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1937 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1939 as_fn_append ac_configure_args1 " '$ac_arg'"
1940 if test $ac_must_keep_next = true; then
1941 ac_must_keep_next=false # Got value, back to normal.
1944 *=* | --config-cache | -C | -disable-* | --disable-* \
1945 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1946 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1947 | -with-* | --with-* | -without-* | --without-* | --x)
1948 case "$ac_configure_args0 " in
1949 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1952 -* ) ac_must_keep_next=true ;;
1955 as_fn_append ac_configure_args " '$ac_arg'"
1960 { ac_configure_args0=; unset ac_configure_args0;}
1961 { ac_configure_args1=; unset ac_configure_args1;}
1963 # When interrupted or exit'd, cleanup temporary files, and complete
1964 # config.log. We remove comments because anyway the quotes in there
1965 # would cause problems or look ugly.
1966 # WARNING: Use '\'' to represent an apostrophe within the trap.
1967 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1968 trap 'exit_status=$?
1969 # Save into config.log some information that might help in debugging.
1973 $as_echo "## ---------------- ##
1974 ## Cache variables. ##
1975 ## ---------------- ##"
1977 # The following way of writing the cache mishandles newlines in values,
1979 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1980 eval ac_val=\$$ac_var
1984 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1985 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1988 _ | IFS | as_nl) ;; #(
1989 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1990 *) { eval $ac_var=; unset $ac_var;} ;;
1995 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1996 *${as_nl}ac_space=\ *)
1998 "s/'\''/'\''\\\\'\'''\''/g;
1999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2002 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2009 $as_echo "## ----------------- ##
2010 ## Output variables. ##
2011 ## ----------------- ##"
2013 for ac_var in $ac_subst_vars
2015 eval ac_val=\$$ac_var
2017 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2019 $as_echo "$ac_var='\''$ac_val'\''"
2023 if test -n "$ac_subst_files"; then
2024 $as_echo "## ------------------- ##
2025 ## File substitutions. ##
2026 ## ------------------- ##"
2028 for ac_var in $ac_subst_files
2030 eval ac_val=\$$ac_var
2032 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2034 $as_echo "$ac_var='\''$ac_val'\''"
2039 if test -s confdefs.h; then
2040 $as_echo "## ----------- ##
2047 test "$ac_signal" != 0 &&
2048 $as_echo "$as_me: caught signal $ac_signal"
2049 $as_echo "$as_me: exit $exit_status"
2051 rm -f core *.core core.conftest.* &&
2052 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2055 for ac_signal in 1 2 13 15; do
2056 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2060 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2061 rm -f -r conftest* confdefs.h
2063 $as_echo "/* confdefs.h */" > confdefs.h
2065 # Predefined preprocessor variables.
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_NAME "$PACKAGE_NAME"
2071 cat >>confdefs.h <<_ACEOF
2072 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_STRING "$PACKAGE_STRING"
2083 cat >>confdefs.h <<_ACEOF
2084 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2087 cat >>confdefs.h <<_ACEOF
2088 #define PACKAGE_URL "$PACKAGE_URL"
2092 # Let the site file select an alternate cache file if it wants to.
2093 # Prefer an explicitly selected file to automatically selected ones.
2096 if test -n "$CONFIG_SITE"; then
2097 # We do not want a PATH search for config.site.
2098 case $CONFIG_SITE in #((
2099 -*) ac_site_file1=./$CONFIG_SITE;;
2100 */*) ac_site_file1=$CONFIG_SITE;;
2101 *) ac_site_file1=./$CONFIG_SITE;;
2103 elif test "x$prefix" != xNONE; then
2104 ac_site_file1=$prefix/share/config.site
2105 ac_site_file2=$prefix/etc/config.site
2107 ac_site_file1=$ac_default_prefix/share/config.site
2108 ac_site_file2=$ac_default_prefix/etc/config.site
2110 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2112 test "x$ac_site_file" = xNONE && continue
2113 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2115 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2116 sed 's/^/| /' "$ac_site_file" >&5
2118 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2120 as_fn_error $? "failed to load site script $ac_site_file
2121 See \`config.log' for more details" "$LINENO" 5; }
2125 if test -r "$cache_file"; then
2126 # Some versions of bash will fail to source /dev/null (special files
2127 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2128 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2130 $as_echo "$as_me: loading cache $cache_file" >&6;}
2132 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2133 *) . "./$cache_file";;
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2138 $as_echo "$as_me: creating cache $cache_file" >&6;}
2142 # Check that the precious variables saved in the cache have kept the same
2144 ac_cache_corrupted=false
2145 for ac_var in $ac_precious_vars; do
2146 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2147 eval ac_new_set=\$ac_env_${ac_var}_set
2148 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2149 eval ac_new_val=\$ac_env_${ac_var}_value
2150 case $ac_old_set,$ac_new_set in
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2153 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2154 ac_cache_corrupted=: ;;
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2157 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2158 ac_cache_corrupted=: ;;
2161 if test "x$ac_old_val" != "x$ac_new_val"; then
2162 # differences in whitespace do not lead to failure.
2163 ac_old_val_w=`echo x $ac_old_val`
2164 ac_new_val_w=`echo x $ac_new_val`
2165 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2167 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2168 ac_cache_corrupted=:
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2171 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2172 eval $ac_var=\$ac_old_val
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2175 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2177 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2180 # Pass precious variables to config.status.
2181 if test "$ac_new_set" = set; then
2183 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2184 *) ac_arg=$ac_var=$ac_new_val ;;
2186 case " $ac_configure_args " in
2187 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2188 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2192 if $ac_cache_corrupted; then
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2196 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2197 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2199 ## -------------------- ##
2200 ## Main body of script. ##
2201 ## -------------------- ##
2204 ac_cpp='$CPP $CPPFLAGS'
2205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2211 ac_config_headers="$ac_config_headers config.h"
2214 for ac_dir in . "$srcdir"/.; do
2215 if test -f "$ac_dir/install-sh"; then
2217 ac_install_sh="$ac_aux_dir/install-sh -c"
2219 elif test -f "$ac_dir/install.sh"; then
2221 ac_install_sh="$ac_aux_dir/install.sh -c"
2223 elif test -f "$ac_dir/shtool"; then
2225 ac_install_sh="$ac_aux_dir/shtool install -c"
2229 if test -z "$ac_aux_dir"; then
2230 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2233 # These three variables are undocumented and unsupported,
2234 # and are intended to be withdrawn in a future Autoconf release.
2235 # They can cause serious problems if a builder's source tree is in a directory
2236 # whose full name contains unusual characters.
2237 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2238 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2239 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2243 # Initialize Automake
2244 am__api_version='1.11'
2246 # Find a good install program. We prefer a C program (faster),
2247 # so one script is as good as another. But avoid the broken or
2248 # incompatible versions:
2249 # SysV /etc/install, /usr/sbin/install
2250 # SunOS /usr/etc/install
2251 # IRIX /sbin/install
2253 # AmigaOS /C/install, which installs bootblocks on floppy discs
2254 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2255 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2256 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2257 # OS/2's system install, which has a completely different semantic
2258 # ./install, which can be erroneously created by make from ./install.sh.
2259 # Reject install programs that cannot install multiple files.
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2261 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2262 if test -z "$INSTALL"; then
2263 if ${ac_cv_path_install+:} false; then :
2264 $as_echo_n "(cached) " >&6
2266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270 test -z "$as_dir" && as_dir=.
2271 # Account for people who put trailing slashes in PATH elements.
2272 case $as_dir/ in #((
2273 ./ | .// | /[cC]/* | \
2274 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2275 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2278 # OSF1 and SCO ODT 3.0 have their own names for install.
2279 # Don't use installbsd from OSF since it installs stuff as root
2281 for ac_prog in ginstall scoinst install; do
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2284 if test $ac_prog = install &&
2285 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2286 # AIX install. It has an incompatible calling convention.
2288 elif test $ac_prog = install &&
2289 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2290 # program-specific install script used by HP pwplus--don't use.
2293 rm -rf conftest.one conftest.two conftest.dir
2294 echo one > conftest.one
2295 echo two > conftest.two
2297 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2298 test -s conftest.one && test -s conftest.two &&
2299 test -s conftest.dir/conftest.one &&
2300 test -s conftest.dir/conftest.two
2302 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2315 rm -rf conftest.one conftest.two conftest.dir
2318 if test "${ac_cv_path_install+set}" = set; then
2319 INSTALL=$ac_cv_path_install
2321 # As a last resort, use the slow shell script. Don't cache a
2322 # value for INSTALL within a source directory, because that will
2323 # break other packages using the cache if that directory is
2324 # removed, or if the value is a relative name.
2325 INSTALL=$ac_install_sh
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2329 $as_echo "$INSTALL" >&6; }
2331 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2332 # It thinks the first close brace ends the variable substitution.
2333 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2335 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2337 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2340 $as_echo_n "checking whether build environment is sane... " >&6; }
2343 echo timestamp > conftest.file
2344 # Reject unsafe characters in $srcdir or the absolute working directory
2345 # name. Accept space and tab only in the latter.
2349 *[\\\"\#\$\&\'\`$am_lf]*)
2350 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2353 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2354 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2357 # Do `set' in a subshell so we don't clobber the current shell's
2358 # arguments. Must try -L first in case configure is actually a
2359 # symlink; some systems play weird games with the mod time of symlinks
2360 # (eg FreeBSD returns the mod time of the symlink's containing
2363 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2364 if test "$*" = "X"; then
2366 set X `ls -t "$srcdir/configure" conftest.file`
2369 if test "$*" != "X $srcdir/configure conftest.file" \
2370 && test "$*" != "X conftest.file $srcdir/configure"; then
2372 # If neither matched, then we have a broken ls. This can happen
2373 # if, for instance, CONFIG_SHELL is bash and it inherits a
2374 # broken ls alias from the environment. This has actually
2375 # happened. Such a system could not be considered "sane".
2376 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2377 alias in your environment" "$LINENO" 5
2380 test "$2" = conftest.file
2386 as_fn_error $? "newly created file is older than distributed files!
2387 Check your system clock" "$LINENO" 5
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2390 $as_echo "yes" >&6; }
2391 test "$program_prefix" != NONE &&
2392 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2393 # Use a double $ so make ignores it.
2394 test "$program_suffix" != NONE &&
2395 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2396 # Double any \ or $.
2397 # By default was `s,x,x', remove it if useless.
2398 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2399 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2401 # expand $ac_aux_dir to an absolute path
2402 am_aux_dir=`cd $ac_aux_dir && pwd`
2404 if test x"${MISSING+set}" != xset; then
2407 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2409 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2412 # Use eval to expand $SHELL
2413 if eval "$MISSING --run true"; then
2414 am_missing_run="$MISSING --run "
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2418 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2421 if test x"${install_sh}" != xset; then
2424 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2426 install_sh="\${SHELL} $am_aux_dir/install-sh"
2430 # Installed binaries are usually stripped using `strip' when the user
2431 # run `make install-strip'. However `strip' might not be the right
2432 # tool to use in cross-compilation environments, therefore Automake
2433 # will honor the `STRIP' environment variable to overrule this program.
2434 if test "$cross_compiling" != no; then
2435 if test -n "$ac_tool_prefix"; then
2436 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2437 set dummy ${ac_tool_prefix}strip; ac_word=$2
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2439 $as_echo_n "checking for $ac_word... " >&6; }
2440 if ${ac_cv_prog_STRIP+:} false; then :
2441 $as_echo_n "(cached) " >&6
2443 if test -n "$STRIP"; then
2444 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2453 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2463 STRIP=$ac_cv_prog_STRIP
2464 if test -n "$STRIP"; then
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2466 $as_echo "$STRIP" >&6; }
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2469 $as_echo "no" >&6; }
2474 if test -z "$ac_cv_prog_STRIP"; then
2476 # Extract the first word of "strip", so it can be a program name with args.
2477 set dummy strip; ac_word=$2
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2479 $as_echo_n "checking for $ac_word... " >&6; }
2480 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2481 $as_echo_n "(cached) " >&6
2483 if test -n "$ac_ct_STRIP"; then
2484 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2493 ac_cv_prog_ac_ct_STRIP="strip"
2494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2504 if test -n "$ac_ct_STRIP"; then
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2506 $as_echo "$ac_ct_STRIP" >&6; }
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2509 $as_echo "no" >&6; }
2512 if test "x$ac_ct_STRIP" = x; then
2515 case $cross_compiling:$ac_tool_warned in
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2519 ac_tool_warned=yes ;;
2524 STRIP="$ac_cv_prog_STRIP"
2528 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2531 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2532 if test -z "$MKDIR_P"; then
2533 if ${ac_cv_path_mkdir+:} false; then :
2534 $as_echo_n "(cached) " >&6
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2540 test -z "$as_dir" && as_dir=.
2541 for ac_prog in mkdir gmkdir; do
2542 for ac_exec_ext in '' $ac_executable_extensions; do
2543 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2544 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2545 'mkdir (GNU coreutils) '* | \
2546 'mkdir (coreutils) '* | \
2547 'mkdir (fileutils) '4.1*)
2548 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2558 test -d ./--version && rmdir ./--version
2559 if test "${ac_cv_path_mkdir+set}" = set; then
2560 MKDIR_P="$ac_cv_path_mkdir -p"
2562 # As a last resort, use the slow shell script. Don't cache a
2563 # value for MKDIR_P within a source directory, because that will
2564 # break other packages using the cache if that directory is
2565 # removed, or if the value is a relative name.
2566 MKDIR_P="$ac_install_sh -d"
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2570 $as_echo "$MKDIR_P" >&6; }
2574 [\\/$]* | ?:[\\/]*) ;;
2575 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2578 for ac_prog in gawk mawk nawk awk
2580 # Extract the first word of "$ac_prog", so it can be a program name with args.
2581 set dummy $ac_prog; ac_word=$2
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2583 $as_echo_n "checking for $ac_word... " >&6; }
2584 if ${ac_cv_prog_AWK+:} false; then :
2585 $as_echo_n "(cached) " >&6
2587 if test -n "$AWK"; then
2588 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 test -z "$as_dir" && as_dir=.
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2597 ac_cv_prog_AWK="$ac_prog"
2598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 if test -n "$AWK"; then
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2610 $as_echo "$AWK" >&6; }
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2613 $as_echo "no" >&6; }
2617 test -n "$AWK" && break
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2621 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2623 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2624 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2625 $as_echo_n "(cached) " >&6
2627 cat >conftest.make <<\_ACEOF
2630 @echo '@@@%%%=$(MAKE)=@@@%%%'
2632 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2633 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2635 eval ac_cv_prog_make_${ac_make}_set=yes;;
2637 eval ac_cv_prog_make_${ac_make}_set=no;;
2641 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2643 $as_echo "yes" >&6; }
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647 $as_echo "no" >&6; }
2648 SET_MAKE="MAKE=${MAKE-make}"
2651 rm -rf .tst 2>/dev/null
2652 mkdir .tst 2>/dev/null
2653 if test -d .tst; then
2658 rmdir .tst 2>/dev/null
2660 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2661 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2662 # is not polluted with repeated "-I."
2663 am__isrc=' -I$(srcdir)'
2664 # test to see if srcdir already configured
2665 if test -f $srcdir/config.status; then
2666 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2670 # test whether we have cygpath
2671 if test -z "$CYGPATH_W"; then
2672 if (cygpath --version) >/dev/null 2>/dev/null; then
2673 CYGPATH_W='cygpath -w'
2680 # Define the identity of the package.
2681 PACKAGE='xf86-video-fbdev'
2685 cat >>confdefs.h <<_ACEOF
2686 #define PACKAGE "$PACKAGE"
2690 cat >>confdefs.h <<_ACEOF
2691 #define VERSION "$VERSION"
2694 # Some tools Automake needs.
2696 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2699 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2702 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2705 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2708 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2710 # We need awk for the "check" target. The system "awk" is bad on
2712 # Always define AMTAR for backward compatibility. Yes, it's still used
2713 # in the wild :-( We should find a proper way to deprecate it ...
2716 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2724 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2725 # Check whether --enable-maintainer-mode was given.
2726 if test "${enable_maintainer_mode+set}" = set; then :
2727 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2729 USE_MAINTAINER_MODE=no
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2733 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2734 if test $USE_MAINTAINER_MODE = yes; then
2735 MAINTAINER_MODE_TRUE=
2736 MAINTAINER_MODE_FALSE='#'
2738 MAINTAINER_MODE_TRUE='#'
2739 MAINTAINER_MODE_FALSE=
2742 MAINT=$MAINTAINER_MODE_TRUE
2746 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2758 DEPDIR="${am__leading_dot}deps"
2760 ac_config_commands="$ac_config_commands depfiles"
2763 am_make=${MAKE-make}
2764 cat > confinc << 'END'
2766 @echo this is the am__doit target
2769 # If we don't find an include directive, just comment out the code.
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2771 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2775 # First try GNU make style include.
2776 echo "include confinc" > confmf
2777 # Ignore all kinds of additional output from `make'.
2778 case `$am_make -s -f confmf 2> /dev/null` in #(
2779 *the\ am__doit\ target*)
2785 # Now try BSD make style include.
2786 if test "$am__include" = "#"; then
2787 echo '.include "confinc"' > confmf
2788 case `$am_make -s -f confmf 2> /dev/null` in #(
2789 *the\ am__doit\ target*)
2790 am__include=.include
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2799 $as_echo "$_am_result" >&6; }
2800 rm -f confinc confmf
2802 # Check whether --enable-dependency-tracking was given.
2803 if test "${enable_dependency_tracking+set}" = set; then :
2804 enableval=$enable_dependency_tracking;
2807 if test "x$enable_dependency_tracking" != xno; then
2808 am_depcomp="$ac_aux_dir/depcomp"
2812 if test "x$enable_dependency_tracking" != xno; then
2822 ac_cpp='$CPP $CPPFLAGS'
2823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2826 if test -n "$ac_tool_prefix"; then
2827 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2828 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2830 $as_echo_n "checking for $ac_word... " >&6; }
2831 if ${ac_cv_prog_CC+:} false; then :
2832 $as_echo_n "(cached) " >&6
2834 if test -n "$CC"; then
2835 ac_cv_prog_CC="$CC" # Let the user override the test.
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2844 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 if test -n "$CC"; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2857 $as_echo "$CC" >&6; }
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 $as_echo "no" >&6; }
2865 if test -z "$ac_cv_prog_CC"; then
2867 # Extract the first word of "gcc", so it can be a program name with args.
2868 set dummy gcc; ac_word=$2
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870 $as_echo_n "checking for $ac_word... " >&6; }
2871 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2872 $as_echo_n "(cached) " >&6
2874 if test -n "$ac_ct_CC"; then
2875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2884 ac_cv_prog_ac_ct_CC="gcc"
2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2895 if test -n "$ac_ct_CC"; then
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2897 $as_echo "$ac_ct_CC" >&6; }
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900 $as_echo "no" >&6; }
2903 if test "x$ac_ct_CC" = x; then
2906 case $cross_compiling:$ac_tool_warned in
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2910 ac_tool_warned=yes ;;
2918 if test -z "$CC"; then
2919 if test -n "$ac_tool_prefix"; then
2920 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2921 set dummy ${ac_tool_prefix}cc; ac_word=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if ${ac_cv_prog_CC+:} false; then :
2925 $as_echo_n "(cached) " >&6
2927 if test -n "$CC"; then
2928 ac_cv_prog_CC="$CC" # Let the user override the test.
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937 ac_cv_prog_CC="${ac_tool_prefix}cc"
2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 if test -n "$CC"; then
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2950 $as_echo "$CC" >&6; }
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2959 if test -z "$CC"; then
2960 # Extract the first word of "cc", so it can be a program name with args.
2961 set dummy cc; ac_word=$2
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963 $as_echo_n "checking for $ac_word... " >&6; }
2964 if ${ac_cv_prog_CC+:} false; then :
2965 $as_echo_n "(cached) " >&6
2967 if test -n "$CC"; then
2968 ac_cv_prog_CC="$CC" # Let the user override the test.
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 test -z "$as_dir" && as_dir=.
2976 for ac_exec_ext in '' $ac_executable_extensions; do
2977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2978 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2979 ac_prog_rejected=yes
2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 if test $ac_prog_rejected = yes; then
2991 # We found a bogon in the path, so make sure we never use it.
2992 set dummy $ac_cv_prog_CC
2994 if test $# != 0; then
2995 # We chose a different compiler from the bogus one.
2996 # However, it has the same basename, so the bogon will be chosen
2997 # first if we set CC to just the basename; use the full file name.
2999 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3005 if test -n "$CC"; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3007 $as_echo "$CC" >&6; }
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 $as_echo "no" >&6; }
3015 if test -z "$CC"; then
3016 if test -n "$ac_tool_prefix"; then
3017 for ac_prog in cl.exe
3019 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3020 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if ${ac_cv_prog_CC+:} false; then :
3024 $as_echo_n "(cached) " >&6
3026 if test -n "$CC"; then
3027 ac_cv_prog_CC="$CC" # Let the user override the test.
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 if test -n "$CC"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049 $as_echo "$CC" >&6; }
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3056 test -n "$CC" && break
3059 if test -z "$CC"; then
3061 for ac_prog in cl.exe
3063 # Extract the first word of "$ac_prog", so it can be a program name with args.
3064 set dummy $ac_prog; ac_word=$2
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066 $as_echo_n "checking for $ac_word... " >&6; }
3067 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3068 $as_echo_n "(cached) " >&6
3070 if test -n "$ac_ct_CC"; then
3071 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3080 ac_cv_prog_ac_ct_CC="$ac_prog"
3081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3091 if test -n "$ac_ct_CC"; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3093 $as_echo "$ac_ct_CC" >&6; }
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096 $as_echo "no" >&6; }
3100 test -n "$ac_ct_CC" && break
3103 if test "x$ac_ct_CC" = x; then
3106 case $cross_compiling:$ac_tool_warned in
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3110 ac_tool_warned=yes ;;
3119 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3121 as_fn_error $? "no acceptable C compiler found in \$PATH
3122 See \`config.log' for more details" "$LINENO" 5; }
3124 # Provide some information about the compiler.
3125 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3128 for ac_option in --version -v -V -qversion; do
3129 { { ac_try="$ac_compiler $ac_option >&5"
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3135 $as_echo "$ac_try_echo"; } >&5
3136 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3138 if test -s conftest.err; then
3140 ... rest of stderr output deleted ...
3141 10q' conftest.err >conftest.er1
3142 cat conftest.er1 >&5
3144 rm -f conftest.er1 conftest.err
3145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3146 test $ac_status = 0; }
3149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3150 /* end confdefs.h. */
3160 ac_clean_files_save=$ac_clean_files
3161 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3162 # Try to create an executable without -o first, disregard a.out.
3163 # It will help us diagnose broken compilers, and finding out an intuition
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3166 $as_echo_n "checking whether the C compiler works... " >&6; }
3167 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3169 # The possible output files:
3170 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3173 for ac_file in $ac_files
3176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3177 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3182 if { { ac_try="$ac_link_default"
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3188 $as_echo "$ac_try_echo"; } >&5
3189 (eval "$ac_link_default") 2>&5
3191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3192 test $ac_status = 0; }; then :
3193 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3194 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3195 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3196 # so that the user can short-circuit this test for compilers unknown to
3198 for ac_file in $ac_files ''
3200 test -f "$ac_file" || continue
3202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3205 # We found the default executable, but exeext='' is most
3209 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3211 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3213 # We set ac_cv_exeext here because the later test for it is not
3214 # safe: cross compilers may not add the suffix if given an `-o'
3215 # argument, so we may need to know it at that point already.
3216 # Even if this section looks crufty: it has the advantage of
3223 test "$ac_cv_exeext" = no && ac_cv_exeext=
3228 if test -z "$ac_file"; then :
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 $as_echo "no" >&6; }
3231 $as_echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236 as_fn_error 77 "C compiler cannot create executables
3237 See \`config.log' for more details" "$LINENO" 5; }
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3240 $as_echo "yes" >&6; }
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3243 $as_echo_n "checking for C compiler default output file name... " >&6; }
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3245 $as_echo "$ac_file" >&6; }
3246 ac_exeext=$ac_cv_exeext
3248 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3249 ac_clean_files=$ac_clean_files_save
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3251 $as_echo_n "checking for suffix of executables... " >&6; }
3252 if { { ac_try="$ac_link"
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3258 $as_echo "$ac_try_echo"; } >&5
3259 (eval "$ac_link") 2>&5
3261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3262 test $ac_status = 0; }; then :
3263 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3264 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3265 # work properly (i.e., refer to `conftest.exe'), while it won't with
3267 for ac_file in conftest.exe conftest conftest.*; do
3268 test -f "$ac_file" || continue
3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3271 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3280 See \`config.log' for more details" "$LINENO" 5; }
3282 rm -f conftest conftest$ac_cv_exeext
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3284 $as_echo "$ac_cv_exeext" >&6; }
3286 rm -f conftest.$ac_ext
3287 EXEEXT=$ac_cv_exeext
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290 /* end confdefs.h. */
3295 FILE *f = fopen ("conftest.out", "w");
3296 return ferror (f) || fclose (f) != 0;
3302 ac_clean_files="$ac_clean_files conftest.out"
3303 # Check that the compiler produces executables we can run. If not, either
3304 # the compiler is broken, or we cross compile.
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3306 $as_echo_n "checking whether we are cross compiling... " >&6; }
3307 if test "$cross_compiling" != yes; then
3308 { { ac_try="$ac_link"
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3314 $as_echo "$ac_try_echo"; } >&5
3315 (eval "$ac_link") 2>&5
3317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3318 test $ac_status = 0; }
3319 if { ac_try='./conftest$ac_cv_exeext'
3320 { { case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325 $as_echo "$ac_try_echo"; } >&5
3326 (eval "$ac_try") 2>&5
3328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3329 test $ac_status = 0; }; }; then
3332 if test "$cross_compiling" = maybe; then
3335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3337 as_fn_error $? "cannot run C compiled programs.
3338 If you meant to cross compile, use \`--host'.
3339 See \`config.log' for more details" "$LINENO" 5; }
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3344 $as_echo "$cross_compiling" >&6; }
3346 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3347 ac_clean_files=$ac_clean_files_save
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3349 $as_echo_n "checking for suffix of object files... " >&6; }
3350 if ${ac_cv_objext+:} false; then :
3351 $as_echo_n "(cached) " >&6
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3364 rm -f conftest.o conftest.obj
3365 if { { ac_try="$ac_compile"
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3371 $as_echo "$ac_try_echo"; } >&5
3372 (eval "$ac_compile") 2>&5
3374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3375 test $ac_status = 0; }; then :
3376 for ac_file in conftest.o conftest.obj conftest.*; do
3377 test -f "$ac_file" || continue;
3379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3380 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3385 $as_echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3390 as_fn_error $? "cannot compute suffix of object files: cannot compile
3391 See \`config.log' for more details" "$LINENO" 5; }
3393 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3396 $as_echo "$ac_cv_objext" >&6; }
3397 OBJEXT=$ac_cv_objext
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3400 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3401 if ${ac_cv_c_compiler_gnu+:} false; then :
3402 $as_echo_n "(cached) " >&6
3404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3405 /* end confdefs.h. */
3418 if ac_fn_c_try_compile "$LINENO"; then :
3423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3424 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3428 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3429 if test $ac_compiler_gnu = yes; then
3434 ac_test_CFLAGS=${CFLAGS+set}
3435 ac_save_CFLAGS=$CFLAGS
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3437 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3438 if ${ac_cv_prog_cc_g+:} false; then :
3439 $as_echo_n "(cached) " >&6
3441 ac_save_c_werror_flag=$ac_c_werror_flag
3442 ac_c_werror_flag=yes
3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h. */
3456 if ac_fn_c_try_compile "$LINENO"; then :
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h. */
3471 if ac_fn_c_try_compile "$LINENO"; then :
3474 ac_c_werror_flag=$ac_save_c_werror_flag
3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h. */
3487 if ac_fn_c_try_compile "$LINENO"; then :
3490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495 ac_c_werror_flag=$ac_save_c_werror_flag
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3498 $as_echo "$ac_cv_prog_cc_g" >&6; }
3499 if test "$ac_test_CFLAGS" = set; then
3500 CFLAGS=$ac_save_CFLAGS
3501 elif test $ac_cv_prog_cc_g = yes; then
3502 if test "$GCC" = yes; then
3508 if test "$GCC" = yes; then
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3515 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3516 if ${ac_cv_prog_cc_c89+:} false; then :
3517 $as_echo_n "(cached) " >&6
3519 ac_cv_prog_cc_c89=no
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h. */
3525 #include <sys/types.h>
3526 #include <sys/stat.h>
3527 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3528 struct buf { int x; };
3529 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3530 static char *e (p, i)
3536 static char *f (char * (*g) (char **, int), char **p, ...)
3541 s = g (p, va_arg (v,int));
3546 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3547 function prototypes and stuff, but not '\xHH' hex character constants.
3548 These don't provoke an error unfortunately, instead are silently treated
3549 as 'x'. The following induces an error, until -std is added to get
3550 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3551 array size at least. It's necessary to write '\x00'==0 to get something
3552 that's true only with -std. */
3553 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3555 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3556 inside strings and character constants. */
3558 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3560 int test (int i, double x);
3561 struct s1 {int (*f) (int a);};
3562 struct s2 {int (*f) (double a);};
3563 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3569 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3574 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3575 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3577 CC="$ac_save_CC $ac_arg"
3578 if ac_fn_c_try_compile "$LINENO"; then :
3579 ac_cv_prog_cc_c89=$ac_arg
3581 rm -f core conftest.err conftest.$ac_objext
3582 test "x$ac_cv_prog_cc_c89" != "xno" && break
3584 rm -f conftest.$ac_ext
3589 case "x$ac_cv_prog_cc_c89" in
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3592 $as_echo "none needed" >&6; } ;;
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3595 $as_echo "unsupported" >&6; } ;;
3597 CC="$CC $ac_cv_prog_cc_c89"
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3599 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3601 if test "x$ac_cv_prog_cc_c89" != xno; then :
3606 ac_cpp='$CPP $CPPFLAGS'
3607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3611 depcc="$CC" am_compiler_list=
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3614 $as_echo_n "checking dependency style of $depcc... " >&6; }
3615 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3616 $as_echo_n "(cached) " >&6
3618 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3619 # We make a subdir and do the tests there. Otherwise we can end up
3620 # making bogus files that we don't know about and never remove. For
3621 # instance it was reported that on HP-UX the gcc test will end up
3622 # making a dummy file named `D' -- because `-MD' means `put the output
3626 # Copy depcomp to subdir because otherwise we won't find it if we're
3627 # using a relative directory.
3628 cp "$am_depcomp" conftest.dir
3630 # We will build objects and dependencies in a subdirectory because
3631 # it helps to detect inapplicable dependency modes. For instance
3632 # both Tru64's cc and ICC support -MD to output dependencies as a
3633 # side effect of compilation, but ICC will put the dependencies in
3634 # the current directory while Tru64 will put them in the object
3638 am_cv_CC_dependencies_compiler_type=none
3639 if test "$am_compiler_list" = ""; then
3640 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3643 case " $depcc " in #(
3644 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3647 for depmode in $am_compiler_list; do
3648 # Setup a source with many dependencies, because some compilers
3649 # like to wrap large dependency lists on column 80 (with \), and
3650 # we should not choose a depcomp mode which is confused by this.
3652 # We need to recreate these files for each test, as the compiler may
3653 # overwrite some of them when testing with obscure command lines.
3654 # This happens at least with the AIX C compiler.
3656 for i in 1 2 3 4 5 6; do
3657 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3658 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3659 # Solaris 8's {/usr,}/bin/sh.
3660 touch sub/conftst$i.h
3662 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3664 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3665 # mode. It turns out that the SunPro C++ compiler does not properly
3666 # handle `-M -o', and we need to detect this. Also, some Intel
3667 # versions had trouble with output in subdirs
3668 am__obj=sub/conftest.${OBJEXT-o}
3669 am__minus_obj="-o $am__obj"
3672 # This depmode causes a compiler race in universal mode.
3673 test "$am__universal" = false || continue
3676 # after this tag, mechanisms are not by side-effect, so they'll
3677 # only be used when explicitly requested
3678 if test "x$enable_dependency_tracking" = xyes; then
3684 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3685 # This compiler won't grok `-c -o', but also, the minuso test has
3686 # not run yet. These depmodes are late enough in the game, and
3687 # so weak that their functioning should not be impacted.
3688 am__obj=conftest.${OBJEXT-o}
3693 if depmode=$depmode \
3694 source=sub/conftest.c object=$am__obj \
3695 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3696 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3697 >/dev/null 2>conftest.err &&
3698 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3699 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3700 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3701 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3702 # icc doesn't choke on unknown options, it will just issue warnings
3703 # or remarks (even with -Werror). So we grep stderr for any message
3704 # that says an option was ignored or not supported.
3705 # When given -MP, icc 7.0 and 7.1 complain thusly:
3706 # icc: Command line warning: ignoring option '-M'; no argument required
3707 # The diagnosis changed in icc 8.0:
3708 # icc: Command line remark: option '-MP' not supported
3709 if (grep 'ignoring option' conftest.err ||
3710 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3711 am_cv_CC_dependencies_compiler_type=$depmode
3720 am_cv_CC_dependencies_compiler_type=none
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3725 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3726 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3729 test "x$enable_dependency_tracking" != xno \
3730 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3732 am__fastdepCC_FALSE='#'
3734 am__fastdepCC_TRUE='#'
3735 am__fastdepCC_FALSE=
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3740 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3741 if ${ac_cv_prog_cc_c99+:} false; then :
3742 $as_echo_n "(cached) " >&6
3744 ac_cv_prog_cc_c99=no
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3749 #include <stdbool.h>
3754 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3755 #define debug(...) fprintf (stderr, __VA_ARGS__)
3756 #define showlist(...) puts (#__VA_ARGS__)
3757 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3759 test_varargs_macros (void)
3764 debug ("X = %d\n", x);
3765 showlist (The first, second, and third items.);
3766 report (x>y, "x is %d but y is %d", x, y);
3769 // Check long long types.
3770 #define BIG64 18446744073709551615ull
3771 #define BIG32 4294967295ul
3772 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3774 your preprocessor is broken;
3778 your preprocessor is broken;
3780 static long long int bignum = -9223372036854775807LL;
3781 static unsigned long long int ubignum = BIG64;
3783 struct incomplete_array
3791 const wchar_t *name;
3795 typedef const char *ccp;
3798 test_restrict (ccp restrict text)
3800 // See if C++-style comments work.
3801 // Iterate through items via the restricted pointer.
3802 // Also check for declarations in for loops.
3803 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3808 // Check varargs and va_copy.
3810 test_varargs (const char *format, ...)
3813 va_start (args, format);
3815 va_copy (args_copy, args);
3826 str = va_arg (args_copy, const char *);
3829 number = va_arg (args_copy, int);
3832 fnumber = va_arg (args_copy, double);
3847 _Bool success = false;
3850 if (test_restrict ("String literal") == 0)
3852 char *restrict newvar = "Another string";
3855 test_varargs ("s, d' f .", "string", 65, 34.234);
3856 test_varargs_macros ();
3858 // Check flexible array members.
3859 struct incomplete_array *ia =
3860 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3862 for (int i = 0; i < ia->datasize; ++i)
3863 ia->data[i] = i * 1.234;
3865 // Check named initializers.
3866 struct named_init ni = {
3868 .name = L"Test wide string",
3869 .average = 543.34343,
3874 int dynamic_array[ni.number];
3875 dynamic_array[ni.number - 1] = 543;
3877 // work around unused variable warnings
3878 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3879 || dynamic_array[ni.number - 1] != 543);
3885 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3887 CC="$ac_save_CC $ac_arg"
3888 if ac_fn_c_try_compile "$LINENO"; then :
3889 ac_cv_prog_cc_c99=$ac_arg
3891 rm -f core conftest.err conftest.$ac_objext
3892 test "x$ac_cv_prog_cc_c99" != "xno" && break
3894 rm -f conftest.$ac_ext
3899 case "x$ac_cv_prog_cc_c99" in
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3902 $as_echo "none needed" >&6; } ;;
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3905 $as_echo "unsupported" >&6; } ;;
3907 CC="$CC $ac_cv_prog_cc_c99"
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3909 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3911 if test "x$ac_cv_prog_cc_c99" != xno; then :
3918 ac_cpp='$CPP $CPPFLAGS'
3919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3923 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3924 # On Suns, sometimes $CPP names a directory.
3925 if test -n "$CPP" && test -d "$CPP"; then
3928 if test -z "$CPP"; then
3929 if ${ac_cv_prog_CPP+:} false; then :
3930 $as_echo_n "(cached) " >&6
3932 # Double quotes because CPP needs to be expanded
3933 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3936 for ac_c_preproc_warn_flag in '' yes
3938 # Use a header file that comes with gcc, so configuring glibc
3939 # with a fresh cross-compiler works.
3940 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3941 # <limits.h> exists even on freestanding compilers.
3942 # On the NeXT, cc -E runs the code through the compiler's parser,
3943 # not just through cpp. "Syntax error" is here to catch this case.
3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h. */
3947 # include <limits.h>
3949 # include <assert.h>
3953 if ac_fn_c_try_cpp "$LINENO"; then :
3956 # Broken: fails on valid input.
3959 rm -f conftest.err conftest.i conftest.$ac_ext
3961 # OK, works on sane cases. Now check whether nonexistent headers
3962 # can be detected and how.
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h. */
3965 #include <ac_nonexistent.h>
3967 if ac_fn_c_try_cpp "$LINENO"; then :
3968 # Broken: success on invalid input.
3971 # Passes both tests.
3975 rm -f conftest.err conftest.i conftest.$ac_ext
3978 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3979 rm -f conftest.i conftest.err conftest.$ac_ext
3980 if $ac_preproc_ok; then :
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3993 $as_echo "$CPP" >&6; }
3995 for ac_c_preproc_warn_flag in '' yes
3997 # Use a header file that comes with gcc, so configuring glibc
3998 # with a fresh cross-compiler works.
3999 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4000 # <limits.h> exists even on freestanding compilers.
4001 # On the NeXT, cc -E runs the code through the compiler's parser,
4002 # not just through cpp. "Syntax error" is here to catch this case.
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4006 # include <limits.h>
4008 # include <assert.h>
4012 if ac_fn_c_try_cpp "$LINENO"; then :
4015 # Broken: fails on valid input.
4018 rm -f conftest.err conftest.i conftest.$ac_ext
4020 # OK, works on sane cases. Now check whether nonexistent headers
4021 # can be detected and how.
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4024 #include <ac_nonexistent.h>
4026 if ac_fn_c_try_cpp "$LINENO"; then :
4027 # Broken: success on invalid input.
4030 # Passes both tests.
4034 rm -f conftest.err conftest.i conftest.$ac_ext
4037 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4038 rm -f conftest.i conftest.err conftest.$ac_ext
4039 if $ac_preproc_ok; then :
4042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4044 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4045 See \`config.log' for more details" "$LINENO" 5; }
4049 ac_cpp='$CPP $CPPFLAGS'
4050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4056 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4057 if ${ac_cv_path_GREP+:} false; then :
4058 $as_echo_n "(cached) " >&6
4060 if test -z "$GREP"; then
4061 ac_path_GREP_found=false
4062 # Loop through the user's path and test for each of PROGNAME-LIST
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4067 test -z "$as_dir" && as_dir=.
4068 for ac_prog in grep ggrep; do
4069 for ac_exec_ext in '' $ac_executable_extensions; do
4070 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4071 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4072 # Check for GNU ac_path_GREP and select it if it is found.
4073 # Check for GNU $ac_path_GREP
4074 case `"$ac_path_GREP" --version 2>&1` in
4076 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4079 $as_echo_n 0123456789 >"conftest.in"
4082 cat "conftest.in" "conftest.in" >"conftest.tmp"
4083 mv "conftest.tmp" "conftest.in"
4084 cp "conftest.in" "conftest.nl"
4085 $as_echo 'GREP' >> "conftest.nl"
4086 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4087 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4088 as_fn_arith $ac_count + 1 && ac_count=$as_val
4089 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4090 # Best one so far, save it but keep looking for a better one
4091 ac_cv_path_GREP="$ac_path_GREP"
4092 ac_path_GREP_max=$ac_count
4094 # 10*(2^10) chars as input seems more than enough
4095 test $ac_count -gt 10 && break
4097 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4100 $ac_path_GREP_found && break 3
4105 if test -z "$ac_cv_path_GREP"; then
4106 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4109 ac_cv_path_GREP=$GREP
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4114 $as_echo "$ac_cv_path_GREP" >&6; }
4115 GREP="$ac_cv_path_GREP"
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4119 $as_echo_n "checking for egrep... " >&6; }
4120 if ${ac_cv_path_EGREP+:} false; then :
4121 $as_echo_n "(cached) " >&6
4123 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4124 then ac_cv_path_EGREP="$GREP -E"
4126 if test -z "$EGREP"; then
4127 ac_path_EGREP_found=false
4128 # Loop through the user's path and test for each of PROGNAME-LIST
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4133 test -z "$as_dir" && as_dir=.
4134 for ac_prog in egrep; do
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4137 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4138 # Check for GNU ac_path_EGREP and select it if it is found.
4139 # Check for GNU $ac_path_EGREP
4140 case `"$ac_path_EGREP" --version 2>&1` in
4142 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4145 $as_echo_n 0123456789 >"conftest.in"
4148 cat "conftest.in" "conftest.in" >"conftest.tmp"
4149 mv "conftest.tmp" "conftest.in"
4150 cp "conftest.in" "conftest.nl"
4151 $as_echo 'EGREP' >> "conftest.nl"
4152 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4153 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4154 as_fn_arith $ac_count + 1 && ac_count=$as_val
4155 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4156 # Best one so far, save it but keep looking for a better one
4157 ac_cv_path_EGREP="$ac_path_EGREP"
4158 ac_path_EGREP_max=$ac_count
4160 # 10*(2^10) chars as input seems more than enough
4161 test $ac_count -gt 10 && break
4163 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4166 $ac_path_EGREP_found && break 3
4171 if test -z "$ac_cv_path_EGREP"; then
4172 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4175 ac_cv_path_EGREP=$EGREP
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4181 $as_echo "$ac_cv_path_EGREP" >&6; }
4182 EGREP="$ac_cv_path_EGREP"
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4186 $as_echo_n "checking for ANSI C header files... " >&6; }
4187 if ${ac_cv_header_stdc+:} false; then :
4188 $as_echo_n "(cached) " >&6
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4205 if ac_fn_c_try_compile "$LINENO"; then :
4206 ac_cv_header_stdc=yes
4208 ac_cv_header_stdc=no
4210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212 if test $ac_cv_header_stdc = yes; then
4213 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4220 $EGREP "memchr" >/dev/null 2>&1; then :
4223 ac_cv_header_stdc=no
4229 if test $ac_cv_header_stdc = yes; then
4230 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4237 $EGREP "free" >/dev/null 2>&1; then :
4240 ac_cv_header_stdc=no
4246 if test $ac_cv_header_stdc = yes; then
4247 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4248 if test "$cross_compiling" = yes; then :
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4255 #if ((' ' & 0x0FF) == 0x020)
4256 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4257 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4259 # define ISLOWER(c) \
4260 (('a' <= (c) && (c) <= 'i') \
4261 || ('j' <= (c) && (c) <= 'r') \
4262 || ('s' <= (c) && (c) <= 'z'))
4263 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4266 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4271 for (i = 0; i < 256; i++)
4272 if (XOR (islower (i), ISLOWER (i))
4273 || toupper (i) != TOUPPER (i))
4278 if ac_fn_c_try_run "$LINENO"; then :
4281 ac_cv_header_stdc=no
4283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4284 conftest.$ac_objext conftest.beam conftest.$ac_ext
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4290 $as_echo "$ac_cv_header_stdc" >&6; }
4291 if test $ac_cv_header_stdc = yes; then
4293 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4297 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4298 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4299 inttypes.h stdint.h unistd.h
4301 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4302 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4304 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4305 cat >>confdefs.h <<_ACEOF
4306 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4316 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4317 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4323 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4324 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4330 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4331 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4344 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4345 if test -n "$ac_tool_prefix"; then
4346 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4347 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4349 $as_echo_n "checking for $ac_word... " >&6; }
4350 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4351 $as_echo_n "(cached) " >&6
4355 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4365 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4376 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4377 if test -n "$PKG_CONFIG"; then
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4379 $as_echo "$PKG_CONFIG" >&6; }
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 $as_echo "no" >&6; }
4387 if test -z "$ac_cv_path_PKG_CONFIG"; then
4388 ac_pt_PKG_CONFIG=$PKG_CONFIG
4389 # Extract the first word of "pkg-config", so it can be a program name with args.
4390 set dummy pkg-config; ac_word=$2
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4392 $as_echo_n "checking for $ac_word... " >&6; }
4393 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4394 $as_echo_n "(cached) " >&6
4396 case $ac_pt_PKG_CONFIG in
4398 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 test -z "$as_dir" && as_dir=.
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4408 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4419 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4420 if test -n "$ac_pt_PKG_CONFIG"; then
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4422 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4425 $as_echo "no" >&6; }
4428 if test "x$ac_pt_PKG_CONFIG" = x; then
4431 case $cross_compiling:$ac_tool_warned in
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4435 ac_tool_warned=yes ;;
4437 PKG_CONFIG=$ac_pt_PKG_CONFIG
4440 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4444 if test -n "$PKG_CONFIG"; then
4445 _pkg_min_version=0.9.0
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4447 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4448 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4450 $as_echo "yes" >&6; }
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4453 $as_echo "no" >&6; }
4457 # Make sure we can run config.sub.
4458 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4459 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4462 $as_echo_n "checking build system type... " >&6; }
4463 if ${ac_cv_build+:} false; then :
4464 $as_echo_n "(cached) " >&6
4466 ac_build_alias=$build_alias
4467 test "x$ac_build_alias" = x &&
4468 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4469 test "x$ac_build_alias" = x &&
4470 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4471 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4472 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4476 $as_echo "$ac_cv_build" >&6; }
4477 case $ac_cv_build in
4479 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4482 ac_save_IFS=$IFS; IFS='-'
4488 # Remember, the first character of IFS is used to create $*,
4489 # except with old shells:
4492 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4496 $as_echo_n "checking host system type... " >&6; }
4497 if ${ac_cv_host+:} false; then :
4498 $as_echo_n "(cached) " >&6
4500 if test "x$host_alias" = x; then
4501 ac_cv_host=$ac_cv_build
4503 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4504 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4509 $as_echo "$ac_cv_host" >&6; }
4512 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4515 ac_save_IFS=$IFS; IFS='-'
4521 # Remember, the first character of IFS is used to create $*,
4522 # except with old shells:
4525 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4529 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4530 if ${ac_cv_path_SED+:} false; then :
4531 $as_echo_n "(cached) " >&6
4533 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4534 for ac_i in 1 2 3 4 5 6 7; do
4535 ac_script="$ac_script$as_nl$ac_script"
4537 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4538 { ac_script=; unset ac_script;}
4539 if test -z "$SED"; then
4540 ac_path_SED_found=false
4541 # Loop through the user's path and test for each of PROGNAME-LIST
4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 test -z "$as_dir" && as_dir=.
4547 for ac_prog in sed gsed; do
4548 for ac_exec_ext in '' $ac_executable_extensions; do
4549 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4550 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4551 # Check for GNU ac_path_SED and select it if it is found.
4552 # Check for GNU $ac_path_SED
4553 case `"$ac_path_SED" --version 2>&1` in
4555 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4558 $as_echo_n 0123456789 >"conftest.in"
4561 cat "conftest.in" "conftest.in" >"conftest.tmp"
4562 mv "conftest.tmp" "conftest.in"
4563 cp "conftest.in" "conftest.nl"
4564 $as_echo '' >> "conftest.nl"
4565 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4566 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4567 as_fn_arith $ac_count + 1 && ac_count=$as_val
4568 if test $ac_count -gt ${ac_path_SED_max-0}; then
4569 # Best one so far, save it but keep looking for a better one
4570 ac_cv_path_SED="$ac_path_SED"
4571 ac_path_SED_max=$ac_count
4573 # 10*(2^10) chars as input seems more than enough
4574 test $ac_count -gt 10 && break
4576 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4579 $ac_path_SED_found && break 3
4584 if test -z "$ac_cv_path_SED"; then
4585 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4593 $as_echo "$ac_cv_path_SED" >&6; }
4594 SED="$ac_cv_path_SED"
4602 # Check whether --enable-selective-werror was given.
4603 if test "${enable_selective_werror+set}" = set; then :
4604 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4606 SELECTIVE_WERROR=yes
4610 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4611 if test "x$SUNCC" = "xyes"; then
4617 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4623 xorg_testset_save_CFLAGS="$CFLAGS"
4625 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4628 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4633 if ac_fn_c_try_compile "$LINENO"; then :
4634 xorg_testset_unknown_warning_option=yes
4636 xorg_testset_unknown_warning_option=no
4638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4640 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
4641 CFLAGS="$xorg_testset_save_CFLAGS"
4644 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4645 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4650 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h. */
4655 if ac_fn_c_try_compile "$LINENO"; then :
4656 xorg_testset_unused_command_line_argument=yes
4658 xorg_testset_unused_command_line_argument=no
4660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4662 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4663 CFLAGS="$xorg_testset_save_CFLAGS"
4668 if test $found = "no" ; then
4669 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4673 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4677 CFLAGS="$CFLAGS -Wall"
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4680 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4692 if ac_fn_c_try_link "$LINENO"; then :
4697 rm -f core conftest.err conftest.$ac_objext \
4698 conftest$ac_exeext conftest.$ac_ext
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4700 $as_echo "$supported" >&6; }
4701 CFLAGS="$xorg_testset_save_CFLAGS"
4703 if test "$supported" = "yes" ; then
4704 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4715 xorg_testset_save_CFLAGS="$CFLAGS"
4717 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4720 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h. */
4725 if ac_fn_c_try_compile "$LINENO"; then :
4726 xorg_testset_unknown_warning_option=yes
4728 xorg_testset_unknown_warning_option=no
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4732 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
4733 CFLAGS="$xorg_testset_save_CFLAGS"
4736 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4737 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4742 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4747 if ac_fn_c_try_compile "$LINENO"; then :
4748 xorg_testset_unused_command_line_argument=yes
4750 xorg_testset_unused_command_line_argument=no
4752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4754 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4755 CFLAGS="$xorg_testset_save_CFLAGS"
4760 if test $found = "no" ; then
4761 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4765 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4769 CFLAGS="$CFLAGS -Wpointer-arith"
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4772 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4784 if ac_fn_c_try_link "$LINENO"; then :
4789 rm -f core conftest.err conftest.$ac_objext \
4790 conftest$ac_exeext conftest.$ac_ext
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4792 $as_echo "$supported" >&6; }
4793 CFLAGS="$xorg_testset_save_CFLAGS"
4795 if test "$supported" = "yes" ; then
4796 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4807 xorg_testset_save_CFLAGS="$CFLAGS"
4809 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4812 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4817 if ac_fn_c_try_compile "$LINENO"; then :
4818 xorg_testset_unknown_warning_option=yes
4820 xorg_testset_unknown_warning_option=no
4822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4824 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
4825 CFLAGS="$xorg_testset_save_CFLAGS"
4828 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4829 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4834 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h. */
4839 if ac_fn_c_try_compile "$LINENO"; then :
4840 xorg_testset_unused_command_line_argument=yes
4842 xorg_testset_unused_command_line_argument=no
4844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4846 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4847 CFLAGS="$xorg_testset_save_CFLAGS"
4852 if test $found = "no" ; then
4853 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4857 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4861 CFLAGS="$CFLAGS -Wstrict-prototypes"
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
4864 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866 /* end confdefs.h. */
4876 if ac_fn_c_try_link "$LINENO"; then :
4881 rm -f core conftest.err conftest.$ac_objext \
4882 conftest$ac_exeext conftest.$ac_ext
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4884 $as_echo "$supported" >&6; }
4885 CFLAGS="$xorg_testset_save_CFLAGS"
4887 if test "$supported" = "yes" ; then
4888 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
4899 xorg_testset_save_CFLAGS="$CFLAGS"
4901 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4904 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h. */
4909 if ac_fn_c_try_compile "$LINENO"; then :
4910 xorg_testset_unknown_warning_option=yes
4912 xorg_testset_unknown_warning_option=no
4914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4916 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
4917 CFLAGS="$xorg_testset_save_CFLAGS"
4920 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4921 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4926 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4931 if ac_fn_c_try_compile "$LINENO"; then :
4932 xorg_testset_unused_command_line_argument=yes
4934 xorg_testset_unused_command_line_argument=no
4936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4938 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4939 CFLAGS="$xorg_testset_save_CFLAGS"
4944 if test $found = "no" ; then
4945 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4949 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4953 CFLAGS="$CFLAGS -Wmissing-prototypes"
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
4956 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h. */
4968 if ac_fn_c_try_link "$LINENO"; then :
4973 rm -f core conftest.err conftest.$ac_objext \
4974 conftest$ac_exeext conftest.$ac_ext
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4976 $as_echo "$supported" >&6; }
4977 CFLAGS="$xorg_testset_save_CFLAGS"
4979 if test "$supported" = "yes" ; then
4980 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
4991 xorg_testset_save_CFLAGS="$CFLAGS"
4993 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4996 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
5001 if ac_fn_c_try_compile "$LINENO"; then :
5002 xorg_testset_unknown_warning_option=yes
5004 xorg_testset_unknown_warning_option=no
5006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5008 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5009 CFLAGS="$xorg_testset_save_CFLAGS"
5012 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5013 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5018 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h. */
5023 if ac_fn_c_try_compile "$LINENO"; then :
5024 xorg_testset_unused_command_line_argument=yes
5026 xorg_testset_unused_command_line_argument=no
5028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5030 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5031 CFLAGS="$xorg_testset_save_CFLAGS"
5036 if test $found = "no" ; then
5037 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5041 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5045 CFLAGS="$CFLAGS -Wmissing-declarations"
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5048 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5060 if ac_fn_c_try_link "$LINENO"; then :
5065 rm -f core conftest.err conftest.$ac_objext \
5066 conftest$ac_exeext conftest.$ac_ext
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5068 $as_echo "$supported" >&6; }
5069 CFLAGS="$xorg_testset_save_CFLAGS"
5071 if test "$supported" = "yes" ; then
5072 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5083 xorg_testset_save_CFLAGS="$CFLAGS"
5085 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5088 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h. */
5093 if ac_fn_c_try_compile "$LINENO"; then :
5094 xorg_testset_unknown_warning_option=yes
5096 xorg_testset_unknown_warning_option=no
5098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5100 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5101 CFLAGS="$xorg_testset_save_CFLAGS"
5104 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5105 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5110 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h. */
5115 if ac_fn_c_try_compile "$LINENO"; then :
5116 xorg_testset_unused_command_line_argument=yes
5118 xorg_testset_unused_command_line_argument=no
5120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5122 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5123 CFLAGS="$xorg_testset_save_CFLAGS"
5128 if test $found = "no" ; then
5129 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5133 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5137 CFLAGS="$CFLAGS -Wnested-externs"
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5140 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h. */
5152 if ac_fn_c_try_link "$LINENO"; then :
5157 rm -f core conftest.err conftest.$ac_objext \
5158 conftest$ac_exeext conftest.$ac_ext
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5160 $as_echo "$supported" >&6; }
5161 CFLAGS="$xorg_testset_save_CFLAGS"
5163 if test "$supported" = "yes" ; then
5164 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5175 xorg_testset_save_CFLAGS="$CFLAGS"
5177 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5180 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182 /* end confdefs.h. */
5185 if ac_fn_c_try_compile "$LINENO"; then :
5186 xorg_testset_unknown_warning_option=yes
5188 xorg_testset_unknown_warning_option=no
5190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5192 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5193 CFLAGS="$xorg_testset_save_CFLAGS"
5196 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5197 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5202 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5207 if ac_fn_c_try_compile "$LINENO"; then :
5208 xorg_testset_unused_command_line_argument=yes
5210 xorg_testset_unused_command_line_argument=no
5212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5214 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5215 CFLAGS="$xorg_testset_save_CFLAGS"
5220 if test $found = "no" ; then
5221 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5225 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5229 CFLAGS="$CFLAGS -Wbad-function-cast"
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5232 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h. */
5244 if ac_fn_c_try_link "$LINENO"; then :
5249 rm -f core conftest.err conftest.$ac_objext \
5250 conftest$ac_exeext conftest.$ac_ext
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5252 $as_echo "$supported" >&6; }
5253 CFLAGS="$xorg_testset_save_CFLAGS"
5255 if test "$supported" = "yes" ; then
5256 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5267 xorg_testset_save_CFLAGS="$CFLAGS"
5269 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5272 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5277 if ac_fn_c_try_compile "$LINENO"; then :
5278 xorg_testset_unknown_warning_option=yes
5280 xorg_testset_unknown_warning_option=no
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5284 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5285 CFLAGS="$xorg_testset_save_CFLAGS"
5288 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5289 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5294 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h. */
5299 if ac_fn_c_try_compile "$LINENO"; then :
5300 xorg_testset_unused_command_line_argument=yes
5302 xorg_testset_unused_command_line_argument=no
5304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5306 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5307 CFLAGS="$xorg_testset_save_CFLAGS"
5312 if test $found = "no" ; then
5313 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5317 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5321 CFLAGS="$CFLAGS -Wformat=2"
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5324 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h. */
5336 if ac_fn_c_try_link "$LINENO"; then :
5341 rm -f core conftest.err conftest.$ac_objext \
5342 conftest$ac_exeext conftest.$ac_ext
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5344 $as_echo "$supported" >&6; }
5345 CFLAGS="$xorg_testset_save_CFLAGS"
5347 if test "$supported" = "yes" ; then
5348 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5353 if test $found = "no" ; then
5354 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5358 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5362 CFLAGS="$CFLAGS -Wformat"
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5365 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5377 if ac_fn_c_try_link "$LINENO"; then :
5382 rm -f core conftest.err conftest.$ac_objext \
5383 conftest$ac_exeext conftest.$ac_ext
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5385 $as_echo "$supported" >&6; }
5386 CFLAGS="$xorg_testset_save_CFLAGS"
5388 if test "$supported" = "yes" ; then
5389 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5400 xorg_testset_save_CFLAGS="$CFLAGS"
5402 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5405 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5410 if ac_fn_c_try_compile "$LINENO"; then :
5411 xorg_testset_unknown_warning_option=yes
5413 xorg_testset_unknown_warning_option=no
5415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5417 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5418 CFLAGS="$xorg_testset_save_CFLAGS"
5421 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5422 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5427 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5432 if ac_fn_c_try_compile "$LINENO"; then :
5433 xorg_testset_unused_command_line_argument=yes
5435 xorg_testset_unused_command_line_argument=no
5437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5439 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5440 CFLAGS="$xorg_testset_save_CFLAGS"
5445 if test $found = "no" ; then
5446 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5450 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5454 CFLAGS="$CFLAGS -Wold-style-definition"
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5457 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h. */
5469 if ac_fn_c_try_link "$LINENO"; then :
5474 rm -f core conftest.err conftest.$ac_objext \
5475 conftest$ac_exeext conftest.$ac_ext
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5477 $as_echo "$supported" >&6; }
5478 CFLAGS="$xorg_testset_save_CFLAGS"
5480 if test "$supported" = "yes" ; then
5481 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5492 xorg_testset_save_CFLAGS="$CFLAGS"
5494 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5497 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499 /* end confdefs.h. */
5502 if ac_fn_c_try_compile "$LINENO"; then :
5503 xorg_testset_unknown_warning_option=yes
5505 xorg_testset_unknown_warning_option=no
5507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5509 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5510 CFLAGS="$xorg_testset_save_CFLAGS"
5513 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5514 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5519 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5524 if ac_fn_c_try_compile "$LINENO"; then :
5525 xorg_testset_unused_command_line_argument=yes
5527 xorg_testset_unused_command_line_argument=no
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5531 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5532 CFLAGS="$xorg_testset_save_CFLAGS"
5537 if test $found = "no" ; then
5538 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5542 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5546 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5549 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5561 if ac_fn_c_try_link "$LINENO"; then :
5566 rm -f core conftest.err conftest.$ac_objext \
5567 conftest$ac_exeext conftest.$ac_ext
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5569 $as_echo "$supported" >&6; }
5570 CFLAGS="$xorg_testset_save_CFLAGS"
5572 if test "$supported" = "yes" ; then
5573 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5580 # This chunk adds additional warnings that could catch undesired effects.
5586 xorg_testset_save_CFLAGS="$CFLAGS"
5588 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5591 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5596 if ac_fn_c_try_compile "$LINENO"; then :
5597 xorg_testset_unknown_warning_option=yes
5599 xorg_testset_unknown_warning_option=no
5601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5603 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5604 CFLAGS="$xorg_testset_save_CFLAGS"
5607 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5608 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5613 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5618 if ac_fn_c_try_compile "$LINENO"; then :
5619 xorg_testset_unused_command_line_argument=yes
5621 xorg_testset_unused_command_line_argument=no
5623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5625 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5626 CFLAGS="$xorg_testset_save_CFLAGS"
5631 if test $found = "no" ; then
5632 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5636 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5640 CFLAGS="$CFLAGS -Wunused"
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5643 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645 /* end confdefs.h. */
5655 if ac_fn_c_try_link "$LINENO"; then :
5660 rm -f core conftest.err conftest.$ac_objext \
5661 conftest$ac_exeext conftest.$ac_ext
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5663 $as_echo "$supported" >&6; }
5664 CFLAGS="$xorg_testset_save_CFLAGS"
5666 if test "$supported" = "yes" ; then
5667 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5678 xorg_testset_save_CFLAGS="$CFLAGS"
5680 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5683 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h. */
5688 if ac_fn_c_try_compile "$LINENO"; then :
5689 xorg_testset_unknown_warning_option=yes
5691 xorg_testset_unknown_warning_option=no
5693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5695 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5696 CFLAGS="$xorg_testset_save_CFLAGS"
5699 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5700 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5705 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h. */
5710 if ac_fn_c_try_compile "$LINENO"; then :
5711 xorg_testset_unused_command_line_argument=yes
5713 xorg_testset_unused_command_line_argument=no
5715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5717 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5718 CFLAGS="$xorg_testset_save_CFLAGS"
5723 if test $found = "no" ; then
5724 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5728 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5732 CFLAGS="$CFLAGS -Wuninitialized"
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5735 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5747 if ac_fn_c_try_link "$LINENO"; then :
5752 rm -f core conftest.err conftest.$ac_objext \
5753 conftest$ac_exeext conftest.$ac_ext
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5755 $as_echo "$supported" >&6; }
5756 CFLAGS="$xorg_testset_save_CFLAGS"
5758 if test "$supported" = "yes" ; then
5759 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5770 xorg_testset_save_CFLAGS="$CFLAGS"
5772 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5775 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777 /* end confdefs.h. */
5780 if ac_fn_c_try_compile "$LINENO"; then :
5781 xorg_testset_unknown_warning_option=yes
5783 xorg_testset_unknown_warning_option=no
5785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5787 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5788 CFLAGS="$xorg_testset_save_CFLAGS"
5791 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5792 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5797 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h. */
5802 if ac_fn_c_try_compile "$LINENO"; then :
5803 xorg_testset_unused_command_line_argument=yes
5805 xorg_testset_unused_command_line_argument=no
5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5809 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5810 CFLAGS="$xorg_testset_save_CFLAGS"
5815 if test $found = "no" ; then
5816 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5820 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5824 CFLAGS="$CFLAGS -Wshadow"
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
5827 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h. */
5839 if ac_fn_c_try_link "$LINENO"; then :
5844 rm -f core conftest.err conftest.$ac_objext \
5845 conftest$ac_exeext conftest.$ac_ext
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5847 $as_echo "$supported" >&6; }
5848 CFLAGS="$xorg_testset_save_CFLAGS"
5850 if test "$supported" = "yes" ; then
5851 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
5862 xorg_testset_save_CFLAGS="$CFLAGS"
5864 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5867 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5872 if ac_fn_c_try_compile "$LINENO"; then :
5873 xorg_testset_unknown_warning_option=yes
5875 xorg_testset_unknown_warning_option=no
5877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5879 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5880 CFLAGS="$xorg_testset_save_CFLAGS"
5883 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5884 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5889 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5891 /* end confdefs.h. */
5894 if ac_fn_c_try_compile "$LINENO"; then :
5895 xorg_testset_unused_command_line_argument=yes
5897 xorg_testset_unused_command_line_argument=no
5899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5901 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5902 CFLAGS="$xorg_testset_save_CFLAGS"
5907 if test $found = "no" ; then
5908 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5912 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5916 CFLAGS="$CFLAGS -Wcast-qual"
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
5919 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
5920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921 /* end confdefs.h. */
5931 if ac_fn_c_try_link "$LINENO"; then :
5936 rm -f core conftest.err conftest.$ac_objext \
5937 conftest$ac_exeext conftest.$ac_ext
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5939 $as_echo "$supported" >&6; }
5940 CFLAGS="$xorg_testset_save_CFLAGS"
5942 if test "$supported" = "yes" ; then
5943 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
5954 xorg_testset_save_CFLAGS="$CFLAGS"
5956 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5959 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h. */
5964 if ac_fn_c_try_compile "$LINENO"; then :
5965 xorg_testset_unknown_warning_option=yes
5967 xorg_testset_unknown_warning_option=no
5969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5971 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5972 CFLAGS="$xorg_testset_save_CFLAGS"
5975 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5976 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5981 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h. */
5986 if ac_fn_c_try_compile "$LINENO"; then :
5987 xorg_testset_unused_command_line_argument=yes
5989 xorg_testset_unused_command_line_argument=no
5991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5993 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5994 CFLAGS="$xorg_testset_save_CFLAGS"
5999 if test $found = "no" ; then
6000 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6004 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6008 CFLAGS="$CFLAGS -Wmissing-noreturn"
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6011 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6023 if ac_fn_c_try_link "$LINENO"; then :
6028 rm -f core conftest.err conftest.$ac_objext \
6029 conftest$ac_exeext conftest.$ac_ext
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6031 $as_echo "$supported" >&6; }
6032 CFLAGS="$xorg_testset_save_CFLAGS"
6034 if test "$supported" = "yes" ; then
6035 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6046 xorg_testset_save_CFLAGS="$CFLAGS"
6048 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6051 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053 /* end confdefs.h. */
6056 if ac_fn_c_try_compile "$LINENO"; then :
6057 xorg_testset_unknown_warning_option=yes
6059 xorg_testset_unknown_warning_option=no
6061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6063 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6064 CFLAGS="$xorg_testset_save_CFLAGS"
6067 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6068 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6073 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6078 if ac_fn_c_try_compile "$LINENO"; then :
6079 xorg_testset_unused_command_line_argument=yes
6081 xorg_testset_unused_command_line_argument=no
6083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6085 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6086 CFLAGS="$xorg_testset_save_CFLAGS"
6091 if test $found = "no" ; then
6092 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6096 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6100 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6103 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h. */
6115 if ac_fn_c_try_link "$LINENO"; then :
6120 rm -f core conftest.err conftest.$ac_objext \
6121 conftest$ac_exeext conftest.$ac_ext
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6123 $as_echo "$supported" >&6; }
6124 CFLAGS="$xorg_testset_save_CFLAGS"
6126 if test "$supported" = "yes" ; then
6127 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6138 xorg_testset_save_CFLAGS="$CFLAGS"
6140 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6143 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145 /* end confdefs.h. */
6148 if ac_fn_c_try_compile "$LINENO"; then :
6149 xorg_testset_unknown_warning_option=yes
6151 xorg_testset_unknown_warning_option=no
6153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6155 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6156 CFLAGS="$xorg_testset_save_CFLAGS"
6159 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6160 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6165 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167 /* end confdefs.h. */
6170 if ac_fn_c_try_compile "$LINENO"; then :
6171 xorg_testset_unused_command_line_argument=yes
6173 xorg_testset_unused_command_line_argument=no
6175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6177 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6178 CFLAGS="$xorg_testset_save_CFLAGS"
6183 if test $found = "no" ; then
6184 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6188 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6192 CFLAGS="$CFLAGS -Wredundant-decls"
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6195 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6207 if ac_fn_c_try_link "$LINENO"; then :
6212 rm -f core conftest.err conftest.$ac_objext \
6213 conftest$ac_exeext conftest.$ac_ext
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6215 $as_echo "$supported" >&6; }
6216 CFLAGS="$xorg_testset_save_CFLAGS"
6218 if test "$supported" = "yes" ; then
6219 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6226 # These are currently disabled because they are noisy. They will be enabled
6227 # in the future once the codebase is sufficiently modernized to silence
6228 # them. For now, I don't want them to drown out the other warnings.
6229 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op])
6230 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses])
6231 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align])
6233 # Turn some warnings into errors, so we don't accidently get successful builds
6234 # when there are problems that should be fixed.
6236 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6242 xorg_testset_save_CFLAGS="$CFLAGS"
6244 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6247 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6252 if ac_fn_c_try_compile "$LINENO"; then :
6253 xorg_testset_unknown_warning_option=yes
6255 xorg_testset_unknown_warning_option=no
6257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6259 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6260 CFLAGS="$xorg_testset_save_CFLAGS"
6263 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6264 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6269 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6271 /* end confdefs.h. */
6274 if ac_fn_c_try_compile "$LINENO"; then :
6275 xorg_testset_unused_command_line_argument=yes
6277 xorg_testset_unused_command_line_argument=no
6279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6281 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6282 CFLAGS="$xorg_testset_save_CFLAGS"
6287 if test $found = "no" ; then
6288 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6292 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6296 CFLAGS="$CFLAGS -Werror=implicit"
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6299 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301 /* end confdefs.h. */
6311 if ac_fn_c_try_link "$LINENO"; then :
6316 rm -f core conftest.err conftest.$ac_objext \
6317 conftest$ac_exeext conftest.$ac_ext
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6319 $as_echo "$supported" >&6; }
6320 CFLAGS="$xorg_testset_save_CFLAGS"
6322 if test "$supported" = "yes" ; then
6323 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6328 if test $found = "no" ; then
6329 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6333 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6337 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6340 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342 /* end confdefs.h. */
6352 if ac_fn_c_try_link "$LINENO"; then :
6357 rm -f core conftest.err conftest.$ac_objext \
6358 conftest$ac_exeext conftest.$ac_ext
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6360 $as_echo "$supported" >&6; }
6361 CFLAGS="$xorg_testset_save_CFLAGS"
6363 if test "$supported" = "yes" ; then
6364 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6375 xorg_testset_save_CFLAGS="$CFLAGS"
6377 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6380 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h. */
6385 if ac_fn_c_try_compile "$LINENO"; then :
6386 xorg_testset_unknown_warning_option=yes
6388 xorg_testset_unknown_warning_option=no
6390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6392 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6393 CFLAGS="$xorg_testset_save_CFLAGS"
6396 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6397 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6402 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404 /* end confdefs.h. */
6407 if ac_fn_c_try_compile "$LINENO"; then :
6408 xorg_testset_unused_command_line_argument=yes
6410 xorg_testset_unused_command_line_argument=no
6412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6414 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6415 CFLAGS="$xorg_testset_save_CFLAGS"
6420 if test $found = "no" ; then
6421 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6425 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6429 CFLAGS="$CFLAGS -Werror=nonnull"
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6432 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434 /* end confdefs.h. */
6444 if ac_fn_c_try_link "$LINENO"; then :
6449 rm -f core conftest.err conftest.$ac_objext \
6450 conftest$ac_exeext conftest.$ac_ext
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6452 $as_echo "$supported" >&6; }
6453 CFLAGS="$xorg_testset_save_CFLAGS"
6455 if test "$supported" = "yes" ; then
6456 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6467 xorg_testset_save_CFLAGS="$CFLAGS"
6469 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6472 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h. */
6477 if ac_fn_c_try_compile "$LINENO"; then :
6478 xorg_testset_unknown_warning_option=yes
6480 xorg_testset_unknown_warning_option=no
6482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6484 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6485 CFLAGS="$xorg_testset_save_CFLAGS"
6488 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6489 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6494 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496 /* end confdefs.h. */
6499 if ac_fn_c_try_compile "$LINENO"; then :
6500 xorg_testset_unused_command_line_argument=yes
6502 xorg_testset_unused_command_line_argument=no
6504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6506 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6507 CFLAGS="$xorg_testset_save_CFLAGS"
6512 if test $found = "no" ; then
6513 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6517 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6521 CFLAGS="$CFLAGS -Werror=init-self"
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6524 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526 /* end confdefs.h. */
6536 if ac_fn_c_try_link "$LINENO"; then :
6541 rm -f core conftest.err conftest.$ac_objext \
6542 conftest$ac_exeext conftest.$ac_ext
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6544 $as_echo "$supported" >&6; }
6545 CFLAGS="$xorg_testset_save_CFLAGS"
6547 if test "$supported" = "yes" ; then
6548 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6559 xorg_testset_save_CFLAGS="$CFLAGS"
6561 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6564 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6569 if ac_fn_c_try_compile "$LINENO"; then :
6570 xorg_testset_unknown_warning_option=yes
6572 xorg_testset_unknown_warning_option=no
6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6576 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6577 CFLAGS="$xorg_testset_save_CFLAGS"
6580 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6581 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6586 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588 /* end confdefs.h. */
6591 if ac_fn_c_try_compile "$LINENO"; then :
6592 xorg_testset_unused_command_line_argument=yes
6594 xorg_testset_unused_command_line_argument=no
6596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6598 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6599 CFLAGS="$xorg_testset_save_CFLAGS"
6604 if test $found = "no" ; then
6605 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6609 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6613 CFLAGS="$CFLAGS -Werror=main"
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
6616 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6628 if ac_fn_c_try_link "$LINENO"; then :
6633 rm -f core conftest.err conftest.$ac_objext \
6634 conftest$ac_exeext conftest.$ac_ext
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6636 $as_echo "$supported" >&6; }
6637 CFLAGS="$xorg_testset_save_CFLAGS"
6639 if test "$supported" = "yes" ; then
6640 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
6651 xorg_testset_save_CFLAGS="$CFLAGS"
6653 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6656 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658 /* end confdefs.h. */
6661 if ac_fn_c_try_compile "$LINENO"; then :
6662 xorg_testset_unknown_warning_option=yes
6664 xorg_testset_unknown_warning_option=no
6666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6668 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6669 CFLAGS="$xorg_testset_save_CFLAGS"
6672 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6673 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6678 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680 /* end confdefs.h. */
6683 if ac_fn_c_try_compile "$LINENO"; then :
6684 xorg_testset_unused_command_line_argument=yes
6686 xorg_testset_unused_command_line_argument=no
6688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6690 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6691 CFLAGS="$xorg_testset_save_CFLAGS"
6696 if test $found = "no" ; then
6697 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6701 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6705 CFLAGS="$CFLAGS -Werror=missing-braces"
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
6708 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
6709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710 /* end confdefs.h. */
6720 if ac_fn_c_try_link "$LINENO"; then :
6725 rm -f core conftest.err conftest.$ac_objext \
6726 conftest$ac_exeext conftest.$ac_ext
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6728 $as_echo "$supported" >&6; }
6729 CFLAGS="$xorg_testset_save_CFLAGS"
6731 if test "$supported" = "yes" ; then
6732 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
6743 xorg_testset_save_CFLAGS="$CFLAGS"
6745 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6748 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6753 if ac_fn_c_try_compile "$LINENO"; then :
6754 xorg_testset_unknown_warning_option=yes
6756 xorg_testset_unknown_warning_option=no
6758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6760 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6761 CFLAGS="$xorg_testset_save_CFLAGS"
6764 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6765 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6770 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6772 /* end confdefs.h. */
6775 if ac_fn_c_try_compile "$LINENO"; then :
6776 xorg_testset_unused_command_line_argument=yes
6778 xorg_testset_unused_command_line_argument=no
6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6782 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6783 CFLAGS="$xorg_testset_save_CFLAGS"
6788 if test $found = "no" ; then
6789 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6793 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6797 CFLAGS="$CFLAGS -Werror=sequence-point"
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
6800 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6812 if ac_fn_c_try_link "$LINENO"; then :
6817 rm -f core conftest.err conftest.$ac_objext \
6818 conftest$ac_exeext conftest.$ac_ext
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6820 $as_echo "$supported" >&6; }
6821 CFLAGS="$xorg_testset_save_CFLAGS"
6823 if test "$supported" = "yes" ; then
6824 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
6835 xorg_testset_save_CFLAGS="$CFLAGS"
6837 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6840 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842 /* end confdefs.h. */
6845 if ac_fn_c_try_compile "$LINENO"; then :
6846 xorg_testset_unknown_warning_option=yes
6848 xorg_testset_unknown_warning_option=no
6850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6852 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6853 CFLAGS="$xorg_testset_save_CFLAGS"
6856 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6857 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6862 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6867 if ac_fn_c_try_compile "$LINENO"; then :
6868 xorg_testset_unused_command_line_argument=yes
6870 xorg_testset_unused_command_line_argument=no
6872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6874 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6875 CFLAGS="$xorg_testset_save_CFLAGS"
6880 if test $found = "no" ; then
6881 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6885 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6889 CFLAGS="$CFLAGS -Werror=return-type"
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
6892 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h. */
6904 if ac_fn_c_try_link "$LINENO"; then :
6909 rm -f core conftest.err conftest.$ac_objext \
6910 conftest$ac_exeext conftest.$ac_ext
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6912 $as_echo "$supported" >&6; }
6913 CFLAGS="$xorg_testset_save_CFLAGS"
6915 if test "$supported" = "yes" ; then
6916 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
6921 if test $found = "no" ; then
6922 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6926 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6930 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
6933 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
6934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935 /* end confdefs.h. */
6945 if ac_fn_c_try_link "$LINENO"; then :
6950 rm -f core conftest.err conftest.$ac_objext \
6951 conftest$ac_exeext conftest.$ac_ext
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6953 $as_echo "$supported" >&6; }
6954 CFLAGS="$xorg_testset_save_CFLAGS"
6956 if test "$supported" = "yes" ; then
6957 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
6968 xorg_testset_save_CFLAGS="$CFLAGS"
6970 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6973 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6978 if ac_fn_c_try_compile "$LINENO"; then :
6979 xorg_testset_unknown_warning_option=yes
6981 xorg_testset_unknown_warning_option=no
6983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6985 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6986 CFLAGS="$xorg_testset_save_CFLAGS"
6989 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6990 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6995 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997 /* end confdefs.h. */
7000 if ac_fn_c_try_compile "$LINENO"; then :
7001 xorg_testset_unused_command_line_argument=yes
7003 xorg_testset_unused_command_line_argument=no
7005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7007 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7008 CFLAGS="$xorg_testset_save_CFLAGS"
7013 if test $found = "no" ; then
7014 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7018 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7022 CFLAGS="$CFLAGS -Werror=trigraphs"
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7025 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h. */
7037 if ac_fn_c_try_link "$LINENO"; then :
7042 rm -f core conftest.err conftest.$ac_objext \
7043 conftest$ac_exeext conftest.$ac_ext
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7045 $as_echo "$supported" >&6; }
7046 CFLAGS="$xorg_testset_save_CFLAGS"
7048 if test "$supported" = "yes" ; then
7049 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7060 xorg_testset_save_CFLAGS="$CFLAGS"
7062 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7065 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7070 if ac_fn_c_try_compile "$LINENO"; then :
7071 xorg_testset_unknown_warning_option=yes
7073 xorg_testset_unknown_warning_option=no
7075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7077 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7078 CFLAGS="$xorg_testset_save_CFLAGS"
7081 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7082 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7087 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h. */
7092 if ac_fn_c_try_compile "$LINENO"; then :
7093 xorg_testset_unused_command_line_argument=yes
7095 xorg_testset_unused_command_line_argument=no
7097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7099 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7100 CFLAGS="$xorg_testset_save_CFLAGS"
7105 if test $found = "no" ; then
7106 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7110 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7114 CFLAGS="$CFLAGS -Werror=array-bounds"
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7117 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h. */
7129 if ac_fn_c_try_link "$LINENO"; then :
7134 rm -f core conftest.err conftest.$ac_objext \
7135 conftest$ac_exeext conftest.$ac_ext
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7137 $as_echo "$supported" >&6; }
7138 CFLAGS="$xorg_testset_save_CFLAGS"
7140 if test "$supported" = "yes" ; then
7141 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7152 xorg_testset_save_CFLAGS="$CFLAGS"
7154 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7157 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h. */
7162 if ac_fn_c_try_compile "$LINENO"; then :
7163 xorg_testset_unknown_warning_option=yes
7165 xorg_testset_unknown_warning_option=no
7167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7169 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7170 CFLAGS="$xorg_testset_save_CFLAGS"
7173 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7174 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7179 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181 /* end confdefs.h. */
7184 if ac_fn_c_try_compile "$LINENO"; then :
7185 xorg_testset_unused_command_line_argument=yes
7187 xorg_testset_unused_command_line_argument=no
7189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7191 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7192 CFLAGS="$xorg_testset_save_CFLAGS"
7197 if test $found = "no" ; then
7198 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7202 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7206 CFLAGS="$CFLAGS -Werror=write-strings"
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7209 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7221 if ac_fn_c_try_link "$LINENO"; then :
7226 rm -f core conftest.err conftest.$ac_objext \
7227 conftest$ac_exeext conftest.$ac_ext
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7229 $as_echo "$supported" >&6; }
7230 CFLAGS="$xorg_testset_save_CFLAGS"
7232 if test "$supported" = "yes" ; then
7233 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7244 xorg_testset_save_CFLAGS="$CFLAGS"
7246 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7249 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251 /* end confdefs.h. */
7254 if ac_fn_c_try_compile "$LINENO"; then :
7255 xorg_testset_unknown_warning_option=yes
7257 xorg_testset_unknown_warning_option=no
7259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7261 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7262 CFLAGS="$xorg_testset_save_CFLAGS"
7265 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7266 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7271 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273 /* end confdefs.h. */
7276 if ac_fn_c_try_compile "$LINENO"; then :
7277 xorg_testset_unused_command_line_argument=yes
7279 xorg_testset_unused_command_line_argument=no
7281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7283 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7284 CFLAGS="$xorg_testset_save_CFLAGS"
7289 if test $found = "no" ; then
7290 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7294 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7298 CFLAGS="$CFLAGS -Werror=address"
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7301 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h. */
7313 if ac_fn_c_try_link "$LINENO"; then :
7318 rm -f core conftest.err conftest.$ac_objext \
7319 conftest$ac_exeext conftest.$ac_ext
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7321 $as_echo "$supported" >&6; }
7322 CFLAGS="$xorg_testset_save_CFLAGS"
7324 if test "$supported" = "yes" ; then
7325 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7336 xorg_testset_save_CFLAGS="$CFLAGS"
7338 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7341 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h. */
7346 if ac_fn_c_try_compile "$LINENO"; then :
7347 xorg_testset_unknown_warning_option=yes
7349 xorg_testset_unknown_warning_option=no
7351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7353 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7354 CFLAGS="$xorg_testset_save_CFLAGS"
7357 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7358 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7363 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365 /* end confdefs.h. */
7368 if ac_fn_c_try_compile "$LINENO"; then :
7369 xorg_testset_unused_command_line_argument=yes
7371 xorg_testset_unused_command_line_argument=no
7373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7375 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7376 CFLAGS="$xorg_testset_save_CFLAGS"
7381 if test $found = "no" ; then
7382 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7386 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7390 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
7393 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
7394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7395 /* end confdefs.h. */
7405 if ac_fn_c_try_link "$LINENO"; then :
7410 rm -f core conftest.err conftest.$ac_objext \
7411 conftest$ac_exeext conftest.$ac_ext
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7413 $as_echo "$supported" >&6; }
7414 CFLAGS="$xorg_testset_save_CFLAGS"
7416 if test "$supported" = "yes" ; then
7417 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
7422 if test $found = "no" ; then
7423 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7427 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7431 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
7434 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
7435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h. */
7446 if ac_fn_c_try_link "$LINENO"; then :
7451 rm -f core conftest.err conftest.$ac_objext \
7452 conftest$ac_exeext conftest.$ac_ext
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7454 $as_echo "$supported" >&6; }
7455 CFLAGS="$xorg_testset_save_CFLAGS"
7457 if test "$supported" = "yes" ; then
7458 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7469 xorg_testset_save_CFLAGS="$CFLAGS"
7471 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7474 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h. */
7479 if ac_fn_c_try_compile "$LINENO"; then :
7480 xorg_testset_unknown_warning_option=yes
7482 xorg_testset_unknown_warning_option=no
7484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7486 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7487 CFLAGS="$xorg_testset_save_CFLAGS"
7490 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7491 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7496 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h. */
7501 if ac_fn_c_try_compile "$LINENO"; then :
7502 xorg_testset_unused_command_line_argument=yes
7504 xorg_testset_unused_command_line_argument=no
7506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7508 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7509 CFLAGS="$xorg_testset_save_CFLAGS"
7514 if test $found = "no" ; then
7515 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7519 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7523 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
7526 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
7527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528 /* end confdefs.h. */
7538 if ac_fn_c_try_link "$LINENO"; then :
7543 rm -f core conftest.err conftest.$ac_objext \
7544 conftest$ac_exeext conftest.$ac_ext
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7546 $as_echo "$supported" >&6; }
7547 CFLAGS="$xorg_testset_save_CFLAGS"
7549 if test "$supported" = "yes" ; then
7550 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
7555 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
7557 { $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
7558 $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;}
7564 xorg_testset_save_CFLAGS="$CFLAGS"
7566 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7569 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h. */
7574 if ac_fn_c_try_compile "$LINENO"; then :
7575 xorg_testset_unknown_warning_option=yes
7577 xorg_testset_unknown_warning_option=no
7579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7581 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7582 CFLAGS="$xorg_testset_save_CFLAGS"
7585 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7586 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7591 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593 /* end confdefs.h. */
7596 if ac_fn_c_try_compile "$LINENO"; then :
7597 xorg_testset_unused_command_line_argument=yes
7599 xorg_testset_unused_command_line_argument=no
7601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7603 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7604 CFLAGS="$xorg_testset_save_CFLAGS"
7609 if test $found = "no" ; then
7610 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7614 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7618 CFLAGS="$CFLAGS -Wimplicit"
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
7621 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
7622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7623 /* end confdefs.h. */
7633 if ac_fn_c_try_link "$LINENO"; then :
7638 rm -f core conftest.err conftest.$ac_objext \
7639 conftest$ac_exeext conftest.$ac_ext
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7641 $as_echo "$supported" >&6; }
7642 CFLAGS="$xorg_testset_save_CFLAGS"
7644 if test "$supported" = "yes" ; then
7645 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
7656 xorg_testset_save_CFLAGS="$CFLAGS"
7658 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7661 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663 /* end confdefs.h. */
7666 if ac_fn_c_try_compile "$LINENO"; then :
7667 xorg_testset_unknown_warning_option=yes
7669 xorg_testset_unknown_warning_option=no
7671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7673 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7674 CFLAGS="$xorg_testset_save_CFLAGS"
7677 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7678 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7683 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685 /* end confdefs.h. */
7688 if ac_fn_c_try_compile "$LINENO"; then :
7689 xorg_testset_unused_command_line_argument=yes
7691 xorg_testset_unused_command_line_argument=no
7693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7695 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7696 CFLAGS="$xorg_testset_save_CFLAGS"
7701 if test $found = "no" ; then
7702 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7706 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7710 CFLAGS="$CFLAGS -Wnonnull"
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
7713 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
7714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715 /* end confdefs.h. */
7725 if ac_fn_c_try_link "$LINENO"; then :
7730 rm -f core conftest.err conftest.$ac_objext \
7731 conftest$ac_exeext conftest.$ac_ext
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7733 $as_echo "$supported" >&6; }
7734 CFLAGS="$xorg_testset_save_CFLAGS"
7736 if test "$supported" = "yes" ; then
7737 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
7748 xorg_testset_save_CFLAGS="$CFLAGS"
7750 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7753 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755 /* end confdefs.h. */
7758 if ac_fn_c_try_compile "$LINENO"; then :
7759 xorg_testset_unknown_warning_option=yes
7761 xorg_testset_unknown_warning_option=no
7763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7765 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7766 CFLAGS="$xorg_testset_save_CFLAGS"
7769 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7770 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7775 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7780 if ac_fn_c_try_compile "$LINENO"; then :
7781 xorg_testset_unused_command_line_argument=yes
7783 xorg_testset_unused_command_line_argument=no
7785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7787 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7788 CFLAGS="$xorg_testset_save_CFLAGS"
7793 if test $found = "no" ; then
7794 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7798 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7802 CFLAGS="$CFLAGS -Winit-self"
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
7805 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7817 if ac_fn_c_try_link "$LINENO"; then :
7822 rm -f core conftest.err conftest.$ac_objext \
7823 conftest$ac_exeext conftest.$ac_ext
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7825 $as_echo "$supported" >&6; }
7826 CFLAGS="$xorg_testset_save_CFLAGS"
7828 if test "$supported" = "yes" ; then
7829 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
7840 xorg_testset_save_CFLAGS="$CFLAGS"
7842 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7845 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7850 if ac_fn_c_try_compile "$LINENO"; then :
7851 xorg_testset_unknown_warning_option=yes
7853 xorg_testset_unknown_warning_option=no
7855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7857 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7858 CFLAGS="$xorg_testset_save_CFLAGS"
7861 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7862 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7867 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869 /* end confdefs.h. */
7872 if ac_fn_c_try_compile "$LINENO"; then :
7873 xorg_testset_unused_command_line_argument=yes
7875 xorg_testset_unused_command_line_argument=no
7877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7879 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7880 CFLAGS="$xorg_testset_save_CFLAGS"
7885 if test $found = "no" ; then
7886 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7890 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7894 CFLAGS="$CFLAGS -Wmain"
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
7897 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h. */
7909 if ac_fn_c_try_link "$LINENO"; then :
7914 rm -f core conftest.err conftest.$ac_objext \
7915 conftest$ac_exeext conftest.$ac_ext
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7917 $as_echo "$supported" >&6; }
7918 CFLAGS="$xorg_testset_save_CFLAGS"
7920 if test "$supported" = "yes" ; then
7921 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
7932 xorg_testset_save_CFLAGS="$CFLAGS"
7934 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7937 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7942 if ac_fn_c_try_compile "$LINENO"; then :
7943 xorg_testset_unknown_warning_option=yes
7945 xorg_testset_unknown_warning_option=no
7947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7949 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7950 CFLAGS="$xorg_testset_save_CFLAGS"
7953 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7954 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7959 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h. */
7964 if ac_fn_c_try_compile "$LINENO"; then :
7965 xorg_testset_unused_command_line_argument=yes
7967 xorg_testset_unused_command_line_argument=no
7969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7971 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7972 CFLAGS="$xorg_testset_save_CFLAGS"
7977 if test $found = "no" ; then
7978 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7982 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7986 CFLAGS="$CFLAGS -Wmissing-braces"
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
7989 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
7990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991 /* end confdefs.h. */
8001 if ac_fn_c_try_link "$LINENO"; then :
8006 rm -f core conftest.err conftest.$ac_objext \
8007 conftest$ac_exeext conftest.$ac_ext
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8009 $as_echo "$supported" >&6; }
8010 CFLAGS="$xorg_testset_save_CFLAGS"
8012 if test "$supported" = "yes" ; then
8013 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8024 xorg_testset_save_CFLAGS="$CFLAGS"
8026 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8029 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031 /* end confdefs.h. */
8034 if ac_fn_c_try_compile "$LINENO"; then :
8035 xorg_testset_unknown_warning_option=yes
8037 xorg_testset_unknown_warning_option=no
8039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8041 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8042 CFLAGS="$xorg_testset_save_CFLAGS"
8045 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8046 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8051 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053 /* end confdefs.h. */
8056 if ac_fn_c_try_compile "$LINENO"; then :
8057 xorg_testset_unused_command_line_argument=yes
8059 xorg_testset_unused_command_line_argument=no
8061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8063 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8064 CFLAGS="$xorg_testset_save_CFLAGS"
8069 if test $found = "no" ; then
8070 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8074 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8078 CFLAGS="$CFLAGS -Wsequence-point"
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8081 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083 /* end confdefs.h. */
8093 if ac_fn_c_try_link "$LINENO"; then :
8098 rm -f core conftest.err conftest.$ac_objext \
8099 conftest$ac_exeext conftest.$ac_ext
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8101 $as_echo "$supported" >&6; }
8102 CFLAGS="$xorg_testset_save_CFLAGS"
8104 if test "$supported" = "yes" ; then
8105 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8116 xorg_testset_save_CFLAGS="$CFLAGS"
8118 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8121 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h. */
8126 if ac_fn_c_try_compile "$LINENO"; then :
8127 xorg_testset_unknown_warning_option=yes
8129 xorg_testset_unknown_warning_option=no
8131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8133 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8134 CFLAGS="$xorg_testset_save_CFLAGS"
8137 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8138 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8143 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h. */
8148 if ac_fn_c_try_compile "$LINENO"; then :
8149 xorg_testset_unused_command_line_argument=yes
8151 xorg_testset_unused_command_line_argument=no
8153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8155 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8156 CFLAGS="$xorg_testset_save_CFLAGS"
8161 if test $found = "no" ; then
8162 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8166 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8170 CFLAGS="$CFLAGS -Wreturn-type"
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
8173 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8185 if ac_fn_c_try_link "$LINENO"; then :
8190 rm -f core conftest.err conftest.$ac_objext \
8191 conftest$ac_exeext conftest.$ac_ext
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8193 $as_echo "$supported" >&6; }
8194 CFLAGS="$xorg_testset_save_CFLAGS"
8196 if test "$supported" = "yes" ; then
8197 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
8208 xorg_testset_save_CFLAGS="$CFLAGS"
8210 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8213 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h. */
8218 if ac_fn_c_try_compile "$LINENO"; then :
8219 xorg_testset_unknown_warning_option=yes
8221 xorg_testset_unknown_warning_option=no
8223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8225 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8226 CFLAGS="$xorg_testset_save_CFLAGS"
8229 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8230 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8235 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237 /* end confdefs.h. */
8240 if ac_fn_c_try_compile "$LINENO"; then :
8241 xorg_testset_unused_command_line_argument=yes
8243 xorg_testset_unused_command_line_argument=no
8245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8247 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8248 CFLAGS="$xorg_testset_save_CFLAGS"
8253 if test $found = "no" ; then
8254 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8258 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8262 CFLAGS="$CFLAGS -Wtrigraphs"
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
8265 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h. */
8277 if ac_fn_c_try_link "$LINENO"; then :
8282 rm -f core conftest.err conftest.$ac_objext \
8283 conftest$ac_exeext conftest.$ac_ext
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8285 $as_echo "$supported" >&6; }
8286 CFLAGS="$xorg_testset_save_CFLAGS"
8288 if test "$supported" = "yes" ; then
8289 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
8300 xorg_testset_save_CFLAGS="$CFLAGS"
8302 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8305 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8310 if ac_fn_c_try_compile "$LINENO"; then :
8311 xorg_testset_unknown_warning_option=yes
8313 xorg_testset_unknown_warning_option=no
8315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8317 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8318 CFLAGS="$xorg_testset_save_CFLAGS"
8321 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8322 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8327 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8329 /* end confdefs.h. */
8332 if ac_fn_c_try_compile "$LINENO"; then :
8333 xorg_testset_unused_command_line_argument=yes
8335 xorg_testset_unused_command_line_argument=no
8337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8339 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8340 CFLAGS="$xorg_testset_save_CFLAGS"
8345 if test $found = "no" ; then
8346 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8350 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8354 CFLAGS="$CFLAGS -Warray-bounds"
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
8357 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
8358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359 /* end confdefs.h. */
8369 if ac_fn_c_try_link "$LINENO"; then :
8374 rm -f core conftest.err conftest.$ac_objext \
8375 conftest$ac_exeext conftest.$ac_ext
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8377 $as_echo "$supported" >&6; }
8378 CFLAGS="$xorg_testset_save_CFLAGS"
8380 if test "$supported" = "yes" ; then
8381 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
8392 xorg_testset_save_CFLAGS="$CFLAGS"
8394 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8397 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h. */
8402 if ac_fn_c_try_compile "$LINENO"; then :
8403 xorg_testset_unknown_warning_option=yes
8405 xorg_testset_unknown_warning_option=no
8407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8409 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8410 CFLAGS="$xorg_testset_save_CFLAGS"
8413 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8414 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8419 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421 /* end confdefs.h. */
8424 if ac_fn_c_try_compile "$LINENO"; then :
8425 xorg_testset_unused_command_line_argument=yes
8427 xorg_testset_unused_command_line_argument=no
8429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8431 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8432 CFLAGS="$xorg_testset_save_CFLAGS"
8437 if test $found = "no" ; then
8438 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8442 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8446 CFLAGS="$CFLAGS -Wwrite-strings"
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
8449 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
8450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451 /* end confdefs.h. */
8461 if ac_fn_c_try_link "$LINENO"; then :
8466 rm -f core conftest.err conftest.$ac_objext \
8467 conftest$ac_exeext conftest.$ac_ext
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8469 $as_echo "$supported" >&6; }
8470 CFLAGS="$xorg_testset_save_CFLAGS"
8472 if test "$supported" = "yes" ; then
8473 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
8484 xorg_testset_save_CFLAGS="$CFLAGS"
8486 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8489 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491 /* end confdefs.h. */
8494 if ac_fn_c_try_compile "$LINENO"; then :
8495 xorg_testset_unknown_warning_option=yes
8497 xorg_testset_unknown_warning_option=no
8499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8501 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8502 CFLAGS="$xorg_testset_save_CFLAGS"
8505 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8506 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8511 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513 /* end confdefs.h. */
8516 if ac_fn_c_try_compile "$LINENO"; then :
8517 xorg_testset_unused_command_line_argument=yes
8519 xorg_testset_unused_command_line_argument=no
8521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8523 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8524 CFLAGS="$xorg_testset_save_CFLAGS"
8529 if test $found = "no" ; then
8530 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8534 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8538 CFLAGS="$CFLAGS -Waddress"
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
8541 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
8542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8543 /* end confdefs.h. */
8553 if ac_fn_c_try_link "$LINENO"; then :
8558 rm -f core conftest.err conftest.$ac_objext \
8559 conftest$ac_exeext conftest.$ac_ext
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8561 $as_echo "$supported" >&6; }
8562 CFLAGS="$xorg_testset_save_CFLAGS"
8564 if test "$supported" = "yes" ; then
8565 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
8576 xorg_testset_save_CFLAGS="$CFLAGS"
8578 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8581 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8583 /* end confdefs.h. */
8586 if ac_fn_c_try_compile "$LINENO"; then :
8587 xorg_testset_unknown_warning_option=yes
8589 xorg_testset_unknown_warning_option=no
8591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8593 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8594 CFLAGS="$xorg_testset_save_CFLAGS"
8597 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8598 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8603 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8608 if ac_fn_c_try_compile "$LINENO"; then :
8609 xorg_testset_unused_command_line_argument=yes
8611 xorg_testset_unused_command_line_argument=no
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8615 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8616 CFLAGS="$xorg_testset_save_CFLAGS"
8621 if test $found = "no" ; then
8622 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8626 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8630 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
8633 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
8634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h. */
8645 if ac_fn_c_try_link "$LINENO"; then :
8650 rm -f core conftest.err conftest.$ac_objext \
8651 conftest$ac_exeext conftest.$ac_ext
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8653 $as_echo "$supported" >&6; }
8654 CFLAGS="$xorg_testset_save_CFLAGS"
8656 if test "$supported" = "yes" ; then
8657 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
8668 xorg_testset_save_CFLAGS="$CFLAGS"
8670 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8673 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h. */
8678 if ac_fn_c_try_compile "$LINENO"; then :
8679 xorg_testset_unknown_warning_option=yes
8681 xorg_testset_unknown_warning_option=no
8683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8685 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8686 CFLAGS="$xorg_testset_save_CFLAGS"
8689 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8690 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8695 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8697 /* end confdefs.h. */
8700 if ac_fn_c_try_compile "$LINENO"; then :
8701 xorg_testset_unused_command_line_argument=yes
8703 xorg_testset_unused_command_line_argument=no
8705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8707 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8708 CFLAGS="$xorg_testset_save_CFLAGS"
8713 if test $found = "no" ; then
8714 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8718 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8722 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
8725 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727 /* end confdefs.h. */
8737 if ac_fn_c_try_link "$LINENO"; then :
8742 rm -f core conftest.err conftest.$ac_objext \
8743 conftest$ac_exeext conftest.$ac_ext
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8745 $as_echo "$supported" >&6; }
8746 CFLAGS="$xorg_testset_save_CFLAGS"
8748 if test "$supported" = "yes" ; then
8749 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
8762 CWARNFLAGS="$BASE_CFLAGS"
8763 if test "x$GCC" = xyes ; then
8764 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
8772 # Check whether --enable-strict-compilation was given.
8773 if test "${enable_strict_compilation+set}" = set; then :
8774 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
8786 xorg_testset_save_CFLAGS="$CFLAGS"
8788 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8791 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793 /* end confdefs.h. */
8796 if ac_fn_c_try_compile "$LINENO"; then :
8797 xorg_testset_unknown_warning_option=yes
8799 xorg_testset_unknown_warning_option=no
8801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8803 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8804 CFLAGS="$xorg_testset_save_CFLAGS"
8807 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8808 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8813 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h. */
8818 if ac_fn_c_try_compile "$LINENO"; then :
8819 xorg_testset_unused_command_line_argument=yes
8821 xorg_testset_unused_command_line_argument=no
8823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8825 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8826 CFLAGS="$xorg_testset_save_CFLAGS"
8831 if test $found = "no" ; then
8832 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8836 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8840 CFLAGS="$CFLAGS -pedantic"
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
8843 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
8844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8845 /* end confdefs.h. */
8855 if ac_fn_c_try_link "$LINENO"; then :
8860 rm -f core conftest.err conftest.$ac_objext \
8861 conftest$ac_exeext conftest.$ac_ext
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8863 $as_echo "$supported" >&6; }
8864 CFLAGS="$xorg_testset_save_CFLAGS"
8866 if test "$supported" = "yes" ; then
8867 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
8878 xorg_testset_save_CFLAGS="$CFLAGS"
8880 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8883 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8885 /* end confdefs.h. */
8888 if ac_fn_c_try_compile "$LINENO"; then :
8889 xorg_testset_unknown_warning_option=yes
8891 xorg_testset_unknown_warning_option=no
8893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8895 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8896 CFLAGS="$xorg_testset_save_CFLAGS"
8899 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8900 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8905 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h. */
8910 if ac_fn_c_try_compile "$LINENO"; then :
8911 xorg_testset_unused_command_line_argument=yes
8913 xorg_testset_unused_command_line_argument=no
8915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8917 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8918 CFLAGS="$xorg_testset_save_CFLAGS"
8923 if test $found = "no" ; then
8924 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8928 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8932 CFLAGS="$CFLAGS -Werror"
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
8935 $as_echo_n "checking if $CC supports -Werror... " >&6; }
8936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937 /* end confdefs.h. */
8947 if ac_fn_c_try_link "$LINENO"; then :
8952 rm -f core conftest.err conftest.$ac_objext \
8953 conftest$ac_exeext conftest.$ac_ext
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8955 $as_echo "$supported" >&6; }
8956 CFLAGS="$xorg_testset_save_CFLAGS"
8958 if test "$supported" = "yes" ; then
8959 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
8964 if test $found = "no" ; then
8965 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8969 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8973 CFLAGS="$CFLAGS -errwarn"
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
8976 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
8977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8978 /* end confdefs.h. */
8988 if ac_fn_c_try_link "$LINENO"; then :
8993 rm -f core conftest.err conftest.$ac_objext \
8994 conftest$ac_exeext conftest.$ac_ext
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8996 $as_echo "$supported" >&6; }
8997 CFLAGS="$xorg_testset_save_CFLAGS"
8999 if test "$supported" = "yes" ; then
9000 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
9007 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
9008 # activate it with -Werror, so we add it here explicitly.
9014 xorg_testset_save_CFLAGS="$CFLAGS"
9016 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9019 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9021 /* end confdefs.h. */
9024 if ac_fn_c_try_compile "$LINENO"; then :
9025 xorg_testset_unknown_warning_option=yes
9027 xorg_testset_unknown_warning_option=no
9029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
9031 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
9032 CFLAGS="$xorg_testset_save_CFLAGS"
9035 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9036 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9041 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h. */
9046 if ac_fn_c_try_compile "$LINENO"; then :
9047 xorg_testset_unused_command_line_argument=yes
9049 xorg_testset_unused_command_line_argument=no
9051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
9053 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
9054 CFLAGS="$xorg_testset_save_CFLAGS"
9059 if test $found = "no" ; then
9060 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9064 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9068 CFLAGS="$CFLAGS -Werror=attributes"
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
9071 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073 /* end confdefs.h. */
9083 if ac_fn_c_try_link "$LINENO"; then :
9088 rm -f core conftest.err conftest.$ac_objext \
9089 conftest$ac_exeext conftest.$ac_ext
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9091 $as_echo "$supported" >&6; }
9092 CFLAGS="$xorg_testset_save_CFLAGS"
9094 if test "$supported" = "yes" ; then
9095 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
9102 if test "x$STRICT_COMPILE" = "xyes"; then
9103 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
9104 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
9112 cat >>confdefs.h <<_ACEOF
9113 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
9116 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
9117 if test "x$PVM" = "x"; then
9121 cat >>confdefs.h <<_ACEOF
9122 #define PACKAGE_VERSION_MINOR $PVM
9125 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
9126 if test "x$PVP" = "x"; then
9130 cat >>confdefs.h <<_ACEOF
9131 #define PACKAGE_VERSION_PATCHLEVEL $PVP
9136 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
9137 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
9138 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
9139 echo 'git directory not found: installing possibly empty changelog.' >&2)"
9144 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
9145 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
9146 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
9147 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
9148 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
9155 if test x$APP_MAN_SUFFIX = x ; then
9158 if test x$APP_MAN_DIR = x ; then
9159 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
9162 if test x$LIB_MAN_SUFFIX = x ; then
9165 if test x$LIB_MAN_DIR = x ; then
9166 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
9169 if test x$FILE_MAN_SUFFIX = x ; then
9171 solaris*) FILE_MAN_SUFFIX=4 ;;
9172 *) FILE_MAN_SUFFIX=5 ;;
9175 if test x$FILE_MAN_DIR = x ; then
9176 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
9179 if test x$MISC_MAN_SUFFIX = x ; then
9181 solaris*) MISC_MAN_SUFFIX=5 ;;
9182 *) MISC_MAN_SUFFIX=7 ;;
9185 if test x$MISC_MAN_DIR = x ; then
9186 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
9189 if test x$DRIVER_MAN_SUFFIX = x ; then
9191 solaris*) DRIVER_MAN_SUFFIX=7 ;;
9192 *) DRIVER_MAN_SUFFIX=4 ;;
9195 if test x$DRIVER_MAN_DIR = x ; then
9196 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
9199 if test x$ADMIN_MAN_SUFFIX = x ; then
9201 solaris*) ADMIN_MAN_SUFFIX=1m ;;
9202 *) ADMIN_MAN_SUFFIX=8 ;;
9205 if test x$ADMIN_MAN_DIR = x ; then
9206 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
9223 XORG_MAN_PAGE="X Version 11"
9226 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9227 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9228 -e 's|__xservername__|Xorg|g' \
9229 -e 's|__xconfigfile__|xorg.conf|g' \
9230 -e 's|__projectroot__|\$(prefix)|g' \
9231 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
9232 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
9233 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
9234 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
9235 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
9236 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
9237 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
9241 # Check whether --enable-silent-rules was given.
9242 if test "${enable_silent_rules+set}" = set; then :
9243 enableval=$enable_silent_rules;
9246 case $enable_silent_rules in
9247 yes) AM_DEFAULT_VERBOSITY=0;;
9248 no) AM_DEFAULT_VERBOSITY=1;;
9249 *) AM_DEFAULT_VERBOSITY=0;;
9251 am_make=${MAKE-make}
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
9253 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
9254 if ${am_cv_make_support_nested_variables+:} false; then :
9255 $as_echo_n "(cached) " >&6
9257 if $as_echo 'TRUE=$(BAR$(V))
9263 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
9264 am_cv_make_support_nested_variables=yes
9266 am_cv_make_support_nested_variables=no
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
9270 $as_echo "$am_cv_make_support_nested_variables" >&6; }
9271 if test $am_cv_make_support_nested_variables = yes; then
9273 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
9275 AM_V=$AM_DEFAULT_VERBOSITY
9276 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
9282 # Initialize libtool
9283 # Check whether --enable-static was given.
9284 if test "${enable_static+set}" = set; then :
9285 enableval=$enable_static; p=${PACKAGE-default}
9287 yes) enable_static=yes ;;
9288 no) enable_static=no ;;
9291 # Look at the argument we got. We use all the common list separators.
9292 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9293 for pkg in $enableval; do
9295 if test "X$pkg" = "X$p"; then
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9317 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9322 macro_version='2.4.2'
9323 macro_revision='1.3337'
9337 ltmain="$ac_aux_dir/ltmain.sh"
9339 # Backslashify metacharacters that are still active within
9340 # double-quoted strings.
9341 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9343 # Same as above, but do not quote variable references.
9344 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9346 # Sed substitution to delay expansion of an escaped shell variable in a
9347 # double_quote_subst'ed string.
9348 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9350 # Sed substitution to delay expansion of an escaped single quote.
9351 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9353 # Sed substitution to avoid accidental globbing in evaled expressions
9354 no_glob_subst='s/\*/\\\*/g'
9356 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9357 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
9358 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
9361 $as_echo_n "checking how to print strings... " >&6; }
9362 # Test print first, because it will be a builtin if present.
9363 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
9364 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
9366 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
9369 # Use this function as a fallback that always works.
9370 func_fallback_echo ()
9372 eval 'cat <<_LTECHO_EOF
9376 ECHO='func_fallback_echo'
9379 # func_echo_all arg...
9380 # Invoke $ECHO with all args, space-separated.
9387 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
9388 $as_echo "printf" >&6; } ;;
9389 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
9390 $as_echo "print -r" >&6; } ;;
9391 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
9392 $as_echo "cat" >&6; } ;;
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9409 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
9410 if ${ac_cv_path_SED+:} false; then :
9411 $as_echo_n "(cached) " >&6
9413 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9414 for ac_i in 1 2 3 4 5 6 7; do
9415 ac_script="$ac_script$as_nl$ac_script"
9417 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9418 { ac_script=; unset ac_script;}
9419 if test -z "$SED"; then
9420 ac_path_SED_found=false
9421 # Loop through the user's path and test for each of PROGNAME-LIST
9422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9426 test -z "$as_dir" && as_dir=.
9427 for ac_prog in sed gsed; do
9428 for ac_exec_ext in '' $ac_executable_extensions; do
9429 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
9430 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
9431 # Check for GNU ac_path_SED and select it if it is found.
9432 # Check for GNU $ac_path_SED
9433 case `"$ac_path_SED" --version 2>&1` in
9435 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9438 $as_echo_n 0123456789 >"conftest.in"
9441 cat "conftest.in" "conftest.in" >"conftest.tmp"
9442 mv "conftest.tmp" "conftest.in"
9443 cp "conftest.in" "conftest.nl"
9444 $as_echo '' >> "conftest.nl"
9445 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9446 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9447 as_fn_arith $ac_count + 1 && ac_count=$as_val
9448 if test $ac_count -gt ${ac_path_SED_max-0}; then
9449 # Best one so far, save it but keep looking for a better one
9450 ac_cv_path_SED="$ac_path_SED"
9451 ac_path_SED_max=$ac_count
9453 # 10*(2^10) chars as input seems more than enough
9454 test $ac_count -gt 10 && break
9456 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9459 $ac_path_SED_found && break 3
9464 if test -z "$ac_cv_path_SED"; then
9465 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
9473 $as_echo "$ac_cv_path_SED" >&6; }
9474 SED="$ac_cv_path_SED"
9477 test -z "$SED" && SED=sed
9478 Xsed="$SED -e 1s/^X//"
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
9491 $as_echo_n "checking for fgrep... " >&6; }
9492 if ${ac_cv_path_FGREP+:} false; then :
9493 $as_echo_n "(cached) " >&6
9495 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
9496 then ac_cv_path_FGREP="$GREP -F"
9498 if test -z "$FGREP"; then
9499 ac_path_FGREP_found=false
9500 # Loop through the user's path and test for each of PROGNAME-LIST
9501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9502 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9505 test -z "$as_dir" && as_dir=.
9506 for ac_prog in fgrep; do
9507 for ac_exec_ext in '' $ac_executable_extensions; do
9508 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
9509 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
9510 # Check for GNU ac_path_FGREP and select it if it is found.
9511 # Check for GNU $ac_path_FGREP
9512 case `"$ac_path_FGREP" --version 2>&1` in
9514 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
9517 $as_echo_n 0123456789 >"conftest.in"
9520 cat "conftest.in" "conftest.in" >"conftest.tmp"
9521 mv "conftest.tmp" "conftest.in"
9522 cp "conftest.in" "conftest.nl"
9523 $as_echo 'FGREP' >> "conftest.nl"
9524 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
9525 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9526 as_fn_arith $ac_count + 1 && ac_count=$as_val
9527 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
9528 # Best one so far, save it but keep looking for a better one
9529 ac_cv_path_FGREP="$ac_path_FGREP"
9530 ac_path_FGREP_max=$ac_count
9532 # 10*(2^10) chars as input seems more than enough
9533 test $ac_count -gt 10 && break
9535 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9538 $ac_path_FGREP_found && break 3
9543 if test -z "$ac_cv_path_FGREP"; then
9544 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9547 ac_cv_path_FGREP=$FGREP
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9553 $as_echo "$ac_cv_path_FGREP" >&6; }
9554 FGREP="$ac_cv_path_FGREP"
9557 test -z "$GREP" && GREP=grep
9577 # Check whether --with-gnu-ld was given.
9578 if test "${with_gnu_ld+set}" = set; then :
9579 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9585 if test "$GCC" = yes; then
9586 # Check if gcc -print-prog-name=ld gives a path.
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9588 $as_echo_n "checking for ld used by $CC... " >&6; }
9591 # gcc leaves a trailing carriage return which upsets mingw
9592 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9594 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9597 # Accept absolute paths.
9599 re_direlt='/[^/][^/]*/\.\./'
9600 # Canonicalize the pathname of ld
9601 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9602 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9603 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9605 test -z "$LD" && LD="$ac_prog"
9608 # If it fails, then pretend we aren't using GCC.
9612 # If it is relative, then search for the first ld in PATH.
9616 elif test "$with_gnu_ld" = yes; then
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9618 $as_echo_n "checking for GNU ld... " >&6; }
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9621 $as_echo_n "checking for non-GNU ld... " >&6; }
9623 if ${lt_cv_path_LD+:} false; then :
9624 $as_echo_n "(cached) " >&6
9626 if test -z "$LD"; then
9627 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9628 for ac_dir in $PATH; do
9630 test -z "$ac_dir" && ac_dir=.
9631 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9632 lt_cv_path_LD="$ac_dir/$ac_prog"
9633 # Check to see if the program is GNU ld. I'd rather use --version,
9634 # but apparently some variants of GNU ld only accept -v.
9635 # Break only if it was the GNU/non-GNU ld that we prefer.
9636 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9637 *GNU* | *'with BFD'*)
9638 test "$with_gnu_ld" != no && break
9641 test "$with_gnu_ld" != yes && break
9648 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9653 if test -n "$LD"; then
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9655 $as_echo "$LD" >&6; }
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9658 $as_echo "no" >&6; }
9660 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9662 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9663 if ${lt_cv_prog_gnu_ld+:} false; then :
9664 $as_echo_n "(cached) " >&6
9666 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9667 case `$LD -v 2>&1 </dev/null` in
9668 *GNU* | *'with BFD'*)
9669 lt_cv_prog_gnu_ld=yes
9672 lt_cv_prog_gnu_ld=no
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9677 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
9678 with_gnu_ld=$lt_cv_prog_gnu_ld
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9689 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9690 if ${lt_cv_path_NM+:} false; then :
9691 $as_echo_n "(cached) " >&6
9693 if test -n "$NM"; then
9694 # Let the user override the test.
9697 lt_nm_to_check="${ac_tool_prefix}nm"
9698 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9699 lt_nm_to_check="$lt_nm_to_check nm"
9701 for lt_tmp_nm in $lt_nm_to_check; do
9702 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9703 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9705 test -z "$ac_dir" && ac_dir=.
9706 tmp_nm="$ac_dir/$lt_tmp_nm"
9707 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9708 # Check to see if the nm accepts a BSD-compat flag.
9709 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9710 # nm: unknown option "B" ignored
9711 # Tru64's nm complains that /dev/null is an invalid object file
9712 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9713 */dev/null* | *'Invalid file or object type'*)
9714 lt_cv_path_NM="$tmp_nm -B"
9718 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9720 lt_cv_path_NM="$tmp_nm -p"
9724 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9725 continue # so that we can try to find one that supports BSD flags
9734 : ${lt_cv_path_NM=no}
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9738 $as_echo "$lt_cv_path_NM" >&6; }
9739 if test "$lt_cv_path_NM" != "no"; then
9742 # Didn't find any BSD compatible name lister, look for dumpbin.
9743 if test -n "$DUMPBIN"; then :
9744 # Let the user override the test.
9746 if test -n "$ac_tool_prefix"; then
9747 for ac_prog in dumpbin "link -dump"
9749 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9750 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9752 $as_echo_n "checking for $ac_word... " >&6; }
9753 if ${ac_cv_prog_DUMPBIN+:} false; then :
9754 $as_echo_n "(cached) " >&6
9756 if test -n "$DUMPBIN"; then
9757 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9763 test -z "$as_dir" && as_dir=.
9764 for ac_exec_ext in '' $ac_executable_extensions; do
9765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9766 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9776 DUMPBIN=$ac_cv_prog_DUMPBIN
9777 if test -n "$DUMPBIN"; then
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9779 $as_echo "$DUMPBIN" >&6; }
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9782 $as_echo "no" >&6; }
9786 test -n "$DUMPBIN" && break
9789 if test -z "$DUMPBIN"; then
9790 ac_ct_DUMPBIN=$DUMPBIN
9791 for ac_prog in dumpbin "link -dump"
9793 # Extract the first word of "$ac_prog", so it can be a program name with args.
9794 set dummy $ac_prog; ac_word=$2
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9796 $as_echo_n "checking for $ac_word... " >&6; }
9797 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
9798 $as_echo_n "(cached) " >&6
9800 if test -n "$ac_ct_DUMPBIN"; then
9801 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9807 test -z "$as_dir" && as_dir=.
9808 for ac_exec_ext in '' $ac_executable_extensions; do
9809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9810 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9820 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9821 if test -n "$ac_ct_DUMPBIN"; then
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9823 $as_echo "$ac_ct_DUMPBIN" >&6; }
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9826 $as_echo "no" >&6; }
9830 test -n "$ac_ct_DUMPBIN" && break
9833 if test "x$ac_ct_DUMPBIN" = x; then
9836 case $cross_compiling:$ac_tool_warned in
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9840 ac_tool_warned=yes ;;
9842 DUMPBIN=$ac_ct_DUMPBIN
9846 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9848 DUMPBIN="$DUMPBIN -symbols"
9856 if test "$DUMPBIN" != ":"; then
9860 test -z "$NM" && NM=nm
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9868 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9869 if ${lt_cv_nm_interface+:} false; then :
9870 $as_echo_n "(cached) " >&6
9872 lt_cv_nm_interface="BSD nm"
9873 echo "int some_variable = 0;" > conftest.$ac_ext
9874 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9875 (eval "$ac_compile" 2>conftest.err)
9876 cat conftest.err >&5
9877 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9878 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9879 cat conftest.err >&5
9880 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9881 cat conftest.out >&5
9882 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9883 lt_cv_nm_interface="MS dumpbin"
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9888 $as_echo "$lt_cv_nm_interface" >&6; }
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9891 $as_echo_n "checking whether ln -s works... " >&6; }
9893 if test "$LN_S" = "ln -s"; then
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9895 $as_echo "yes" >&6; }
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9898 $as_echo "no, using $LN_S" >&6; }
9901 # find the maximum length of command line arguments
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9903 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9904 if ${lt_cv_sys_max_cmd_len+:} false; then :
9905 $as_echo_n "(cached) " >&6
9912 # On DJGPP, this test can blow up pretty badly due to problems in libc
9913 # (any single argument exceeding 2000 bytes causes a buffer overrun
9914 # during glob expansion). Even if it were fixed, the result of this
9915 # check would be larger than it should be.
9916 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9920 # Under GNU Hurd, this test is not required because there is
9921 # no limit to the length of command line arguments.
9922 # Libtool will interpret -1 as no limit whatsoever
9923 lt_cv_sys_max_cmd_len=-1;
9926 cygwin* | mingw* | cegcc*)
9927 # On Win9x/ME, this test blows up -- it succeeds, but takes
9928 # about 5 minutes as the teststring grows exponentially.
9929 # Worse, since 9x/ME are not pre-emptively multitasking,
9930 # you end up with a "frozen" computer, even though with patience
9931 # the test eventually succeeds (with a max line length of 256k).
9932 # Instead, let's just punt: use the minimum linelength reported by
9933 # all of the supported platforms: 8192 (on NT/2K/XP).
9934 lt_cv_sys_max_cmd_len=8192;
9938 # On MiNT this can take a long time and run out of memory.
9939 lt_cv_sys_max_cmd_len=8192;
9943 # On AmigaOS with pdksh, this test takes hours, literally.
9944 # So we just punt and use a minimum line length of 8192.
9945 lt_cv_sys_max_cmd_len=8192;
9948 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9949 # This has been around since 386BSD, at least. Likely further.
9950 if test -x /sbin/sysctl; then
9951 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9952 elif test -x /usr/sbin/sysctl; then
9953 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9955 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9957 # And add a safety zone
9958 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9959 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9963 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9964 lt_cv_sys_max_cmd_len=196608
9968 # The test takes a long time on OS/2.
9969 lt_cv_sys_max_cmd_len=8192
9973 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9974 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9975 # nice to cause kernel panics so lets avoid the loop below.
9976 # First set a reasonable default.
9977 lt_cv_sys_max_cmd_len=16384
9979 if test -x /sbin/sysconfig; then
9980 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9981 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9986 lt_cv_sys_max_cmd_len=102400
9988 sysv5* | sco5v6* | sysv4.2uw2*)
9989 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9990 if test -n "$kargmax"; then
9991 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9993 lt_cv_sys_max_cmd_len=32768
9997 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9998 if test -n "$lt_cv_sys_max_cmd_len"; then
9999 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10000 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10002 # Make teststring a little bigger before we do anything with it.
10003 # a 1K string should be a reasonable start.
10004 for i in 1 2 3 4 5 6 7 8 ; do
10005 teststring=$teststring$teststring
10007 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10008 # If test is not a shell built-in, we'll probably end up computing a
10009 # maximum length that is only half of the actual maximum length, but
10011 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
10012 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
10013 test $i != 17 # 1/2 MB should be enough
10016 teststring=$teststring$teststring
10018 # Only check the string length outside the loop.
10019 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10021 # Add a significant safety factor because C++ compilers can tack on
10022 # massive amounts of additional arguments before passing them to the
10023 # linker. It appears as though 1/2 is a usable value.
10024 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10031 if test -n $lt_cv_sys_max_cmd_len ; then
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10033 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10036 $as_echo "none" >&6; }
10038 max_cmd_len=$lt_cv_sys_max_cmd_len
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10050 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10051 # Try some XSI features
10053 ( _lt_dummy="a/b/c"
10054 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10056 && eval 'test $(( 1 + 1 )) -eq 2 \
10057 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10060 $as_echo "$xsi_shell" >&6; }
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10064 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10066 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10068 && lt_shell_append=yes
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10070 $as_echo "$lt_shell_append" >&6; }
10073 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10083 # test EBCDIC or ASCII
10084 case `echo X|tr X '\101'` in
10085 A) # ASCII based system
10086 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10087 lt_SP2NL='tr \040 \012'
10088 lt_NL2SP='tr \015\012 \040\040'
10090 *) # EBCDIC based system
10091 lt_SP2NL='tr \100 \n'
10092 lt_NL2SP='tr \r\n \100\100'
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10105 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10106 if ${lt_cv_to_host_file_cmd+:} false; then :
10107 $as_echo_n "(cached) " >&6
10112 *-*-mingw* ) # actually msys
10113 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10116 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10118 * ) # otherwise, assume *nix
10119 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10125 *-*-mingw* ) # actually msys
10126 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10129 lt_cv_to_host_file_cmd=func_convert_file_noop
10131 * ) # otherwise, assume *nix
10132 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10136 * ) # unhandled hosts (and "normal" native builds)
10137 lt_cv_to_host_file_cmd=func_convert_file_noop
10143 to_host_file_cmd=$lt_cv_to_host_file_cmd
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10145 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10152 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10153 if ${lt_cv_to_tool_file_cmd+:} false; then :
10154 $as_echo_n "(cached) " >&6
10156 #assume ordinary cross tools, or native build.
10157 lt_cv_to_tool_file_cmd=func_convert_file_noop
10161 *-*-mingw* ) # actually msys
10162 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10170 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10172 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10179 $as_echo_n "checking for $LD option to reload object files... " >&6; }
10180 if ${lt_cv_ld_reload_flag+:} false; then :
10181 $as_echo_n "(cached) " >&6
10183 lt_cv_ld_reload_flag='-r'
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10186 $as_echo "$lt_cv_ld_reload_flag" >&6; }
10187 reload_flag=$lt_cv_ld_reload_flag
10188 case $reload_flag in
10190 *) reload_flag=" $reload_flag" ;;
10192 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10194 cygwin* | mingw* | pw32* | cegcc*)
10195 if test "$GCC" != yes; then
10200 if test "$GCC" = yes; then
10201 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10203 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10216 if test -n "$ac_tool_prefix"; then
10217 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10218 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10220 $as_echo_n "checking for $ac_word... " >&6; }
10221 if ${ac_cv_prog_OBJDUMP+:} false; then :
10222 $as_echo_n "(cached) " >&6
10224 if test -n "$OBJDUMP"; then
10225 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10228 for as_dir in $PATH
10231 test -z "$as_dir" && as_dir=.
10232 for ac_exec_ext in '' $ac_executable_extensions; do
10233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10234 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10244 OBJDUMP=$ac_cv_prog_OBJDUMP
10245 if test -n "$OBJDUMP"; then
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10247 $as_echo "$OBJDUMP" >&6; }
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10250 $as_echo "no" >&6; }
10255 if test -z "$ac_cv_prog_OBJDUMP"; then
10256 ac_ct_OBJDUMP=$OBJDUMP
10257 # Extract the first word of "objdump", so it can be a program name with args.
10258 set dummy objdump; ac_word=$2
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10260 $as_echo_n "checking for $ac_word... " >&6; }
10261 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10262 $as_echo_n "(cached) " >&6
10264 if test -n "$ac_ct_OBJDUMP"; then
10265 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10268 for as_dir in $PATH
10271 test -z "$as_dir" && as_dir=.
10272 for ac_exec_ext in '' $ac_executable_extensions; do
10273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10274 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10284 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10285 if test -n "$ac_ct_OBJDUMP"; then
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10287 $as_echo "$ac_ct_OBJDUMP" >&6; }
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10290 $as_echo "no" >&6; }
10293 if test "x$ac_ct_OBJDUMP" = x; then
10296 case $cross_compiling:$ac_tool_warned in
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10300 ac_tool_warned=yes ;;
10302 OBJDUMP=$ac_ct_OBJDUMP
10305 OBJDUMP="$ac_cv_prog_OBJDUMP"
10308 test -z "$OBJDUMP" && OBJDUMP=objdump
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10319 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
10320 if ${lt_cv_deplibs_check_method+:} false; then :
10321 $as_echo_n "(cached) " >&6
10323 lt_cv_file_magic_cmd='$MAGIC_CMD'
10324 lt_cv_file_magic_test_file=
10325 lt_cv_deplibs_check_method='unknown'
10326 # Need to set the preceding variable on all platforms that support
10327 # interlibrary dependencies.
10328 # 'none' -- dependencies not supported.
10329 # `unknown' -- same as none, but documents that we really don't know.
10330 # 'pass_all' -- all dependencies passed with no checks.
10331 # 'test_compile' -- check by making test program.
10332 # 'file_magic [[regex]]' -- check by looking for files in library path
10333 # which responds to the $file_magic_cmd with a given extended regex.
10334 # If you have `file' or equivalent on your system and you're not sure
10335 # whether `pass_all' will *always* work, you probably want this one.
10339 lt_cv_deplibs_check_method=pass_all
10343 lt_cv_deplibs_check_method=pass_all
10347 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10348 lt_cv_file_magic_cmd='/usr/bin/file -L'
10349 lt_cv_file_magic_test_file=/shlib/libc.so
10353 # func_win32_libid is a shell function defined in ltmain.sh
10354 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10355 lt_cv_file_magic_cmd='func_win32_libid'
10359 # Base MSYS/MinGW do not provide the 'file' command needed by
10360 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10361 # unless we find 'file', for example because we are cross-compiling.
10362 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10363 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
10364 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10365 lt_cv_file_magic_cmd='func_win32_libid'
10367 # Keep this pattern in sync with the one in func_win32_libid.
10368 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10369 lt_cv_file_magic_cmd='$OBJDUMP -f'
10374 # use the weaker test based on 'objdump'. See mingw*.
10375 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10376 lt_cv_file_magic_cmd='$OBJDUMP -f'
10379 darwin* | rhapsody*)
10380 lt_cv_deplibs_check_method=pass_all
10383 freebsd* | dragonfly*)
10384 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10387 # Not sure whether the presence of OpenBSD here was a mistake.
10388 # Let's accept both of them until this is cleared up.
10389 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10390 lt_cv_file_magic_cmd=/usr/bin/file
10391 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10395 lt_cv_deplibs_check_method=pass_all
10400 lt_cv_deplibs_check_method=pass_all
10404 lt_cv_deplibs_check_method=pass_all
10407 hpux10.20* | hpux11*)
10408 lt_cv_file_magic_cmd=/usr/bin/file
10411 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10412 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10415 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]'
10416 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10419 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10420 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10426 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10427 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10430 irix5* | irix6* | nonstopux*)
10432 *-32|*"-32 ") libmagic=32-bit;;
10433 *-n32|*"-n32 ") libmagic=N32;;
10434 *-64|*"-64 ") libmagic=64-bit;;
10435 *) libmagic=never-match;;
10437 lt_cv_deplibs_check_method=pass_all
10440 # This must be glibc/ELF.
10441 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10442 lt_cv_deplibs_check_method=pass_all
10446 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10447 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10449 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10454 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10455 lt_cv_file_magic_cmd=/usr/bin/file
10456 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10460 lt_cv_deplibs_check_method=pass_all
10464 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10465 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10467 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10471 osf3* | osf4* | osf5*)
10472 lt_cv_deplibs_check_method=pass_all
10476 lt_cv_deplibs_check_method=pass_all
10480 lt_cv_deplibs_check_method=pass_all
10483 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10484 lt_cv_deplibs_check_method=pass_all
10488 case $host_vendor in
10490 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]'
10491 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10494 lt_cv_deplibs_check_method=pass_all
10497 lt_cv_file_magic_cmd='/bin/file'
10498 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10501 lt_cv_file_magic_cmd='/bin/file'
10502 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10503 lt_cv_file_magic_test_file=/lib/libc.so
10506 lt_cv_deplibs_check_method=pass_all
10509 lt_cv_deplibs_check_method=pass_all
10515 lt_cv_deplibs_check_method=pass_all
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10521 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10525 if test "$build" = "$host"; then
10528 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10529 want_nocaseglob=yes
10531 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10537 file_magic_cmd=$lt_cv_file_magic_cmd
10538 deplibs_check_method=$lt_cv_deplibs_check_method
10539 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10562 if test -n "$ac_tool_prefix"; then
10563 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10564 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10566 $as_echo_n "checking for $ac_word... " >&6; }
10567 if ${ac_cv_prog_DLLTOOL+:} false; then :
10568 $as_echo_n "(cached) " >&6
10570 if test -n "$DLLTOOL"; then
10571 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10574 for as_dir in $PATH
10577 test -z "$as_dir" && as_dir=.
10578 for ac_exec_ext in '' $ac_executable_extensions; do
10579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10580 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10590 DLLTOOL=$ac_cv_prog_DLLTOOL
10591 if test -n "$DLLTOOL"; then
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10593 $as_echo "$DLLTOOL" >&6; }
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10596 $as_echo "no" >&6; }
10601 if test -z "$ac_cv_prog_DLLTOOL"; then
10602 ac_ct_DLLTOOL=$DLLTOOL
10603 # Extract the first word of "dlltool", so it can be a program name with args.
10604 set dummy dlltool; ac_word=$2
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10606 $as_echo_n "checking for $ac_word... " >&6; }
10607 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10608 $as_echo_n "(cached) " >&6
10610 if test -n "$ac_ct_DLLTOOL"; then
10611 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10614 for as_dir in $PATH
10617 test -z "$as_dir" && as_dir=.
10618 for ac_exec_ext in '' $ac_executable_extensions; do
10619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10620 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10630 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10631 if test -n "$ac_ct_DLLTOOL"; then
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10633 $as_echo "$ac_ct_DLLTOOL" >&6; }
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10636 $as_echo "no" >&6; }
10639 if test "x$ac_ct_DLLTOOL" = x; then
10642 case $cross_compiling:$ac_tool_warned in
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10646 ac_tool_warned=yes ;;
10648 DLLTOOL=$ac_ct_DLLTOOL
10651 DLLTOOL="$ac_cv_prog_DLLTOOL"
10654 test -z "$DLLTOOL" && DLLTOOL=dlltool
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10666 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10667 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10668 $as_echo_n "(cached) " >&6
10670 lt_cv_sharedlib_from_linklib_cmd='unknown'
10673 cygwin* | mingw* | pw32* | cegcc*)
10674 # two different shell functions defined in ltmain.sh
10675 # decide which to use based on capabilities of $DLLTOOL
10676 case `$DLLTOOL --help 2>&1` in
10677 *--identify-strict*)
10678 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10681 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10686 # fallback: assume linklib IS sharedlib
10687 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10693 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10694 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10695 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10703 if test -n "$ac_tool_prefix"; then
10706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10707 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10709 $as_echo_n "checking for $ac_word... " >&6; }
10710 if ${ac_cv_prog_AR+:} false; then :
10711 $as_echo_n "(cached) " >&6
10713 if test -n "$AR"; then
10714 ac_cv_prog_AR="$AR" # Let the user override the test.
10716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10717 for as_dir in $PATH
10720 test -z "$as_dir" && as_dir=.
10721 for ac_exec_ext in '' $ac_executable_extensions; do
10722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10723 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10734 if test -n "$AR"; then
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10736 $as_echo "$AR" >&6; }
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10739 $as_echo "no" >&6; }
10743 test -n "$AR" && break
10746 if test -z "$AR"; then
10750 # Extract the first word of "$ac_prog", so it can be a program name with args.
10751 set dummy $ac_prog; ac_word=$2
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10753 $as_echo_n "checking for $ac_word... " >&6; }
10754 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10755 $as_echo_n "(cached) " >&6
10757 if test -n "$ac_ct_AR"; then
10758 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761 for as_dir in $PATH
10764 test -z "$as_dir" && as_dir=.
10765 for ac_exec_ext in '' $ac_executable_extensions; do
10766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10767 ac_cv_prog_ac_ct_AR="$ac_prog"
10768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10777 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10778 if test -n "$ac_ct_AR"; then
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10780 $as_echo "$ac_ct_AR" >&6; }
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10783 $as_echo "no" >&6; }
10787 test -n "$ac_ct_AR" && break
10790 if test "x$ac_ct_AR" = x; then
10793 case $cross_compiling:$ac_tool_warned in
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10797 ac_tool_warned=yes ;;
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10817 $as_echo_n "checking for archiver @FILE support... " >&6; }
10818 if ${lt_cv_ar_at_file+:} false; then :
10819 $as_echo_n "(cached) " >&6
10821 lt_cv_ar_at_file=no
10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h. */
10833 if ac_fn_c_try_compile "$LINENO"; then :
10834 echo conftest.$ac_objext > conftest.lst
10835 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10837 (eval $lt_ar_try) 2>&5
10839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10840 test $ac_status = 0; }
10841 if test "$ac_status" -eq 0; then
10842 # Ensure the archiver fails upon bogus file names.
10843 rm -f conftest.$ac_objext libconftest.a
10844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10845 (eval $lt_ar_try) 2>&5
10847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10848 test $ac_status = 0; }
10849 if test "$ac_status" -ne 0; then
10853 rm -f conftest.* libconftest.a
10856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10860 $as_echo "$lt_cv_ar_at_file" >&6; }
10862 if test "x$lt_cv_ar_at_file" = xno; then
10863 archiver_list_spec=
10865 archiver_list_spec=$lt_cv_ar_at_file
10874 if test -n "$ac_tool_prefix"; then
10875 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10876 set dummy ${ac_tool_prefix}strip; ac_word=$2
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10878 $as_echo_n "checking for $ac_word... " >&6; }
10879 if ${ac_cv_prog_STRIP+:} false; then :
10880 $as_echo_n "(cached) " >&6
10882 if test -n "$STRIP"; then
10883 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10886 for as_dir in $PATH
10889 test -z "$as_dir" && as_dir=.
10890 for ac_exec_ext in '' $ac_executable_extensions; do
10891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10892 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10902 STRIP=$ac_cv_prog_STRIP
10903 if test -n "$STRIP"; then
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10905 $as_echo "$STRIP" >&6; }
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10908 $as_echo "no" >&6; }
10913 if test -z "$ac_cv_prog_STRIP"; then
10915 # Extract the first word of "strip", so it can be a program name with args.
10916 set dummy strip; ac_word=$2
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10918 $as_echo_n "checking for $ac_word... " >&6; }
10919 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10920 $as_echo_n "(cached) " >&6
10922 if test -n "$ac_ct_STRIP"; then
10923 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10926 for as_dir in $PATH
10929 test -z "$as_dir" && as_dir=.
10930 for ac_exec_ext in '' $ac_executable_extensions; do
10931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10932 ac_cv_prog_ac_ct_STRIP="strip"
10933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10942 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10943 if test -n "$ac_ct_STRIP"; then
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10945 $as_echo "$ac_ct_STRIP" >&6; }
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10948 $as_echo "no" >&6; }
10951 if test "x$ac_ct_STRIP" = x; then
10954 case $cross_compiling:$ac_tool_warned in
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10958 ac_tool_warned=yes ;;
10963 STRIP="$ac_cv_prog_STRIP"
10966 test -z "$STRIP" && STRIP=:
10973 if test -n "$ac_tool_prefix"; then
10974 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10975 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10977 $as_echo_n "checking for $ac_word... " >&6; }
10978 if ${ac_cv_prog_RANLIB+:} false; then :
10979 $as_echo_n "(cached) " >&6
10981 if test -n "$RANLIB"; then
10982 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10985 for as_dir in $PATH
10988 test -z "$as_dir" && as_dir=.
10989 for ac_exec_ext in '' $ac_executable_extensions; do
10990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10991 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11001 RANLIB=$ac_cv_prog_RANLIB
11002 if test -n "$RANLIB"; then
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11004 $as_echo "$RANLIB" >&6; }
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007 $as_echo "no" >&6; }
11012 if test -z "$ac_cv_prog_RANLIB"; then
11013 ac_ct_RANLIB=$RANLIB
11014 # Extract the first word of "ranlib", so it can be a program name with args.
11015 set dummy ranlib; ac_word=$2
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11017 $as_echo_n "checking for $ac_word... " >&6; }
11018 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
11019 $as_echo_n "(cached) " >&6
11021 if test -n "$ac_ct_RANLIB"; then
11022 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11025 for as_dir in $PATH
11028 test -z "$as_dir" && as_dir=.
11029 for ac_exec_ext in '' $ac_executable_extensions; do
11030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11031 ac_cv_prog_ac_ct_RANLIB="ranlib"
11032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11041 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11042 if test -n "$ac_ct_RANLIB"; then
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11044 $as_echo "$ac_ct_RANLIB" >&6; }
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11047 $as_echo "no" >&6; }
11050 if test "x$ac_ct_RANLIB" = x; then
11053 case $cross_compiling:$ac_tool_warned in
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11057 ac_tool_warned=yes ;;
11059 RANLIB=$ac_ct_RANLIB
11062 RANLIB="$ac_cv_prog_RANLIB"
11065 test -z "$RANLIB" && RANLIB=:
11072 # Determine commands to create old-style static archives.
11073 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11074 old_postinstall_cmds='chmod 644 $oldlib'
11075 old_postuninstall_cmds=
11077 if test -n "$RANLIB"; then
11080 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
11083 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
11086 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
11091 lock_old_archive_extraction=yes ;;
11093 lock_old_archive_extraction=no ;;
11134 # If no C compiler was specified, use CC.
11137 # If no C compiler flags were specified, use CFLAGS.
11138 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11140 # Allow CC to be a program name with arguments.
11144 # Check for command to grab the raw symbol name followed by C symbol from nm.
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11146 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
11147 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
11148 $as_echo_n "(cached) " >&6
11151 # These are sane defaults that work on at least a few old systems.
11152 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11154 # Character class describing NM global symbol codes.
11155 symcode='[BCDEGRST]'
11157 # Regexp to match symbols that can be accessed directly from C.
11158 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11160 # Define system-specific variables.
11165 cygwin* | mingw* | pw32* | cegcc*)
11166 symcode='[ABCDGISTW]'
11169 if test "$host_cpu" = ia64; then
11170 symcode='[ABCDEGRST]'
11173 irix* | nonstopux*)
11174 symcode='[BCDEGRST]'
11177 symcode='[BCDEGQRST]'
11188 sysv5* | sco5v6* | unixware* | OpenUNIX*)
11196 # If we're using GNU nm, then use its standard symbol codes.
11197 case `$NM -V 2>&1` in
11198 *GNU* | *'with BFD'*)
11199 symcode='[ABCDGIRSTW]' ;;
11202 # Transform an extracted symbol line into a proper C declaration.
11203 # Some systems (esp. on ia64) link data and code symbols differently,
11204 # so use this general approach.
11205 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11207 # Transform an extracted symbol line into symbol name and symbol address
11208 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11209 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'"
11211 # Handle CRLF in mingw tool chain
11215 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11219 # Try without a prefix underscore, then with it.
11220 for ac_symprfx in "" "_"; do
11222 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11223 symxfrm="\\1 $ac_symprfx\\2 \\2"
11225 # Write the raw and C identifiers.
11226 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11227 # Fake it for dumpbin and say T for any non-static function
11228 # and D for any global variable.
11229 # Also find C++ and __fastcall symbols from MSVC++,
11230 # which start with @ or ?.
11231 lt_cv_sys_global_symbol_pipe="$AWK '"\
11232 " {last_section=section; section=\$ 3};"\
11233 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
11234 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11235 " \$ 0!~/External *\|/{next};"\
11236 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11237 " {if(hide[section]) next};"\
11238 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11239 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11240 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
11241 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11242 " ' prfx=^$ac_symprfx"
11244 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11246 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
11248 # Check to see that the pipe works correctly.
11252 cat > conftest.$ac_ext <<_LT_EOF
11257 void nm_test_func(void);
11258 void nm_test_func(void){}
11262 int main(){nm_test_var='a';nm_test_func();return(0);}
11265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11266 (eval $ac_compile) 2>&5
11268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11269 test $ac_status = 0; }; then
11270 # Now try to grab the symbols.
11272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11273 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
11275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11276 test $ac_status = 0; } && test -s "$nlist"; then
11277 # Try sorting and uniquifying the output.
11278 if sort "$nlist" | uniq > "$nlist"T; then
11279 mv -f "$nlist"T "$nlist"
11284 # Make sure that we snagged all the symbols we need.
11285 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11286 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11287 cat <<_LT_EOF > conftest.$ac_ext
11288 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11289 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11290 /* DATA imports from DLLs on WIN32 con't be const, because runtime
11291 relocations are performed -- see ld's documentation on pseudo-relocs. */
11292 # define LT_DLSYM_CONST
11293 #elif defined(__osf__)
11294 /* This system does not cope well with relocations in const data. */
11295 # define LT_DLSYM_CONST
11297 # define LT_DLSYM_CONST const
11305 # Now generate the symbol file.
11306 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11308 cat <<_LT_EOF >> conftest.$ac_ext
11310 /* The mapping between symbol names and symbols. */
11311 LT_DLSYM_CONST struct {
11315 lt__PROGRAM__LTX_preloaded_symbols[] =
11317 { "@PROGRAM@", (void *) 0 },
11319 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11320 cat <<\_LT_EOF >> conftest.$ac_ext
11324 /* This works around a problem in FreeBSD linker */
11325 #ifdef FREEBSD_WORKAROUND
11326 static const void *lt_preloaded_setup() {
11327 return lt__PROGRAM__LTX_preloaded_symbols;
11335 # Now try linking the two files.
11336 mv conftest.$ac_objext conftstm.$ac_objext
11337 lt_globsym_save_LIBS=$LIBS
11338 lt_globsym_save_CFLAGS=$CFLAGS
11339 LIBS="conftstm.$ac_objext"
11340 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11342 (eval $ac_link) 2>&5
11344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11345 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11348 LIBS=$lt_globsym_save_LIBS
11349 CFLAGS=$lt_globsym_save_CFLAGS
11351 echo "cannot find nm_test_func in $nlist" >&5
11354 echo "cannot find nm_test_var in $nlist" >&5
11357 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11360 echo "$progname: failed program was:" >&5
11361 cat conftest.$ac_ext >&5
11363 rm -rf conftest* conftst*
11365 # Do not use the global_symbol_pipe unless it works.
11366 if test "$pipe_works" = yes; then
11369 lt_cv_sys_global_symbol_pipe=
11375 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11376 lt_cv_sys_global_symbol_to_cdecl=
11378 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11380 $as_echo "failed" >&6; }
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11383 $as_echo "ok" >&6; }
11386 # Response file support.
11387 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11388 nm_file_list_spec='@'
11389 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11390 nm_file_list_spec='@'
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11420 $as_echo_n "checking for sysroot... " >&6; }
11422 # Check whether --with-sysroot was given.
11423 if test "${with_sysroot+set}" = set; then :
11424 withval=$with_sysroot;
11431 case ${with_sysroot} in #(
11433 if test "$GCC" = yes; then
11434 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11438 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11444 $as_echo "${with_sysroot}" >&6; }
11445 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11450 $as_echo "${lt_sysroot:-no}" >&6; }
11456 # Check whether --enable-libtool-lock was given.
11457 if test "${enable_libtool_lock+set}" = set; then :
11458 enableval=$enable_libtool_lock;
11461 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11463 # Some flags need to be propagated to the compiler or linker for good
11467 # Find out which ABI we are using.
11468 echo 'int i;' > conftest.$ac_ext
11469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11470 (eval $ac_compile) 2>&5
11472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11473 test $ac_status = 0; }; then
11474 case `/usr/bin/file conftest.$ac_objext` in
11476 HPUX_IA64_MODE="32"
11479 HPUX_IA64_MODE="64"
11486 # Find out which ABI we are using.
11487 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11489 (eval $ac_compile) 2>&5
11491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11492 test $ac_status = 0; }; then
11493 if test "$lt_cv_prog_gnu_ld" = yes; then
11494 case `/usr/bin/file conftest.$ac_objext` in
11496 LD="${LD-ld} -melf32bsmip"
11499 LD="${LD-ld} -melf32bmipn32"
11502 LD="${LD-ld} -melf64bmip"
11506 case `/usr/bin/file conftest.$ac_objext` in
11522 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11523 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11524 # Find out which ABI we are using.
11525 echo 'int i;' > conftest.$ac_ext
11526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11527 (eval $ac_compile) 2>&5
11529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11530 test $ac_status = 0; }; then
11531 case `/usr/bin/file conftest.o` in
11534 x86_64-*kfreebsd*-gnu)
11535 LD="${LD-ld} -m elf_i386_fbsd"
11538 LD="${LD-ld} -m elf_i386"
11540 ppc64-*linux*|powerpc64-*linux*)
11541 LD="${LD-ld} -m elf32ppclinux"
11544 LD="${LD-ld} -m elf_s390"
11547 LD="${LD-ld} -m elf32_sparc"
11553 x86_64-*kfreebsd*-gnu)
11554 LD="${LD-ld} -m elf_x86_64_fbsd"
11557 LD="${LD-ld} -m elf_x86_64"
11559 ppc*-*linux*|powerpc*-*linux*)
11560 LD="${LD-ld} -m elf64ppc"
11562 s390*-*linux*|s390*-*tpf*)
11563 LD="${LD-ld} -m elf64_s390"
11566 LD="${LD-ld} -m elf64_sparc"
11576 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11577 SAVE_CFLAGS="$CFLAGS"
11578 CFLAGS="$CFLAGS -belf"
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11580 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11581 if ${lt_cv_cc_needs_belf+:} false; then :
11582 $as_echo_n "(cached) " >&6
11585 ac_cpp='$CPP $CPPFLAGS'
11586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11591 /* end confdefs.h. */
11601 if ac_fn_c_try_link "$LINENO"; then :
11602 lt_cv_cc_needs_belf=yes
11604 lt_cv_cc_needs_belf=no
11606 rm -f core conftest.err conftest.$ac_objext \
11607 conftest$ac_exeext conftest.$ac_ext
11609 ac_cpp='$CPP $CPPFLAGS'
11610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11616 $as_echo "$lt_cv_cc_needs_belf" >&6; }
11617 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11618 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11619 CFLAGS="$SAVE_CFLAGS"
11623 # Find out which ABI we are using.
11624 echo 'int i;' > conftest.$ac_ext
11625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11626 (eval $ac_compile) 2>&5
11628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11629 test $ac_status = 0; }; then
11630 case `/usr/bin/file conftest.o` in
11632 case $lt_cv_prog_gnu_ld in
11636 LD="${LD-ld} -m elf_x86_64"
11639 LD="${LD-ld} -m elf64_sparc"
11642 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
11643 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11648 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11660 need_locks="$enable_libtool_lock"
11662 if test -n "$ac_tool_prefix"; then
11663 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11664 set dummy ${ac_tool_prefix}mt; ac_word=$2
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11666 $as_echo_n "checking for $ac_word... " >&6; }
11667 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11668 $as_echo_n "(cached) " >&6
11670 if test -n "$MANIFEST_TOOL"; then
11671 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11674 for as_dir in $PATH
11677 test -z "$as_dir" && as_dir=.
11678 for ac_exec_ext in '' $ac_executable_extensions; do
11679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11680 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11690 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11691 if test -n "$MANIFEST_TOOL"; then
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11693 $as_echo "$MANIFEST_TOOL" >&6; }
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11696 $as_echo "no" >&6; }
11701 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11702 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11703 # Extract the first word of "mt", so it can be a program name with args.
11704 set dummy mt; ac_word=$2
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11706 $as_echo_n "checking for $ac_word... " >&6; }
11707 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11708 $as_echo_n "(cached) " >&6
11710 if test -n "$ac_ct_MANIFEST_TOOL"; then
11711 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11714 for as_dir in $PATH
11717 test -z "$as_dir" && as_dir=.
11718 for ac_exec_ext in '' $ac_executable_extensions; do
11719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11720 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11730 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11731 if test -n "$ac_ct_MANIFEST_TOOL"; then
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11733 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736 $as_echo "no" >&6; }
11739 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11742 case $cross_compiling:$ac_tool_warned in
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11746 ac_tool_warned=yes ;;
11748 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11751 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11754 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11756 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11757 if ${lt_cv_path_mainfest_tool+:} false; then :
11758 $as_echo_n "(cached) " >&6
11760 lt_cv_path_mainfest_tool=no
11761 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11762 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11763 cat conftest.err >&5
11764 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11765 lt_cv_path_mainfest_tool=yes
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11770 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
11771 if test "x$lt_cv_path_mainfest_tool" != xyes; then
11781 rhapsody* | darwin*)
11782 if test -n "$ac_tool_prefix"; then
11783 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11784 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11786 $as_echo_n "checking for $ac_word... " >&6; }
11787 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11788 $as_echo_n "(cached) " >&6
11790 if test -n "$DSYMUTIL"; then
11791 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11794 for as_dir in $PATH
11797 test -z "$as_dir" && as_dir=.
11798 for ac_exec_ext in '' $ac_executable_extensions; do
11799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11800 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11810 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11811 if test -n "$DSYMUTIL"; then
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11813 $as_echo "$DSYMUTIL" >&6; }
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11816 $as_echo "no" >&6; }
11821 if test -z "$ac_cv_prog_DSYMUTIL"; then
11822 ac_ct_DSYMUTIL=$DSYMUTIL
11823 # Extract the first word of "dsymutil", so it can be a program name with args.
11824 set dummy dsymutil; ac_word=$2
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11826 $as_echo_n "checking for $ac_word... " >&6; }
11827 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
11828 $as_echo_n "(cached) " >&6
11830 if test -n "$ac_ct_DSYMUTIL"; then
11831 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11834 for as_dir in $PATH
11837 test -z "$as_dir" && as_dir=.
11838 for ac_exec_ext in '' $ac_executable_extensions; do
11839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11840 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11850 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11851 if test -n "$ac_ct_DSYMUTIL"; then
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11853 $as_echo "$ac_ct_DSYMUTIL" >&6; }
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11856 $as_echo "no" >&6; }
11859 if test "x$ac_ct_DSYMUTIL" = x; then
11862 case $cross_compiling:$ac_tool_warned in
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11866 ac_tool_warned=yes ;;
11868 DSYMUTIL=$ac_ct_DSYMUTIL
11871 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11874 if test -n "$ac_tool_prefix"; then
11875 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11876 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11878 $as_echo_n "checking for $ac_word... " >&6; }
11879 if ${ac_cv_prog_NMEDIT+:} false; then :
11880 $as_echo_n "(cached) " >&6
11882 if test -n "$NMEDIT"; then
11883 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11886 for as_dir in $PATH
11889 test -z "$as_dir" && as_dir=.
11890 for ac_exec_ext in '' $ac_executable_extensions; do
11891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11892 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11902 NMEDIT=$ac_cv_prog_NMEDIT
11903 if test -n "$NMEDIT"; then
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11905 $as_echo "$NMEDIT" >&6; }
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11908 $as_echo "no" >&6; }
11913 if test -z "$ac_cv_prog_NMEDIT"; then
11914 ac_ct_NMEDIT=$NMEDIT
11915 # Extract the first word of "nmedit", so it can be a program name with args.
11916 set dummy nmedit; ac_word=$2
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11918 $as_echo_n "checking for $ac_word... " >&6; }
11919 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
11920 $as_echo_n "(cached) " >&6
11922 if test -n "$ac_ct_NMEDIT"; then
11923 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926 for as_dir in $PATH
11929 test -z "$as_dir" && as_dir=.
11930 for ac_exec_ext in '' $ac_executable_extensions; do
11931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11932 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11942 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11943 if test -n "$ac_ct_NMEDIT"; then
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11945 $as_echo "$ac_ct_NMEDIT" >&6; }
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11948 $as_echo "no" >&6; }
11951 if test "x$ac_ct_NMEDIT" = x; then
11954 case $cross_compiling:$ac_tool_warned in
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11958 ac_tool_warned=yes ;;
11960 NMEDIT=$ac_ct_NMEDIT
11963 NMEDIT="$ac_cv_prog_NMEDIT"
11966 if test -n "$ac_tool_prefix"; then
11967 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11968 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11970 $as_echo_n "checking for $ac_word... " >&6; }
11971 if ${ac_cv_prog_LIPO+:} false; then :
11972 $as_echo_n "(cached) " >&6
11974 if test -n "$LIPO"; then
11975 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11978 for as_dir in $PATH
11981 test -z "$as_dir" && as_dir=.
11982 for ac_exec_ext in '' $ac_executable_extensions; do
11983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11984 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11994 LIPO=$ac_cv_prog_LIPO
11995 if test -n "$LIPO"; then
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11997 $as_echo "$LIPO" >&6; }
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000 $as_echo "no" >&6; }
12005 if test -z "$ac_cv_prog_LIPO"; then
12007 # Extract the first word of "lipo", so it can be a program name with args.
12008 set dummy lipo; ac_word=$2
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12010 $as_echo_n "checking for $ac_word... " >&6; }
12011 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
12012 $as_echo_n "(cached) " >&6
12014 if test -n "$ac_ct_LIPO"; then
12015 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12018 for as_dir in $PATH
12021 test -z "$as_dir" && as_dir=.
12022 for ac_exec_ext in '' $ac_executable_extensions; do
12023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12024 ac_cv_prog_ac_ct_LIPO="lipo"
12025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12034 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12035 if test -n "$ac_ct_LIPO"; then
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12037 $as_echo "$ac_ct_LIPO" >&6; }
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040 $as_echo "no" >&6; }
12043 if test "x$ac_ct_LIPO" = x; then
12046 case $cross_compiling:$ac_tool_warned in
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12050 ac_tool_warned=yes ;;
12055 LIPO="$ac_cv_prog_LIPO"
12058 if test -n "$ac_tool_prefix"; then
12059 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12060 set dummy ${ac_tool_prefix}otool; ac_word=$2
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12062 $as_echo_n "checking for $ac_word... " >&6; }
12063 if ${ac_cv_prog_OTOOL+:} false; then :
12064 $as_echo_n "(cached) " >&6
12066 if test -n "$OTOOL"; then
12067 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12070 for as_dir in $PATH
12073 test -z "$as_dir" && as_dir=.
12074 for ac_exec_ext in '' $ac_executable_extensions; do
12075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12076 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12086 OTOOL=$ac_cv_prog_OTOOL
12087 if test -n "$OTOOL"; then
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12089 $as_echo "$OTOOL" >&6; }
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12092 $as_echo "no" >&6; }
12097 if test -z "$ac_cv_prog_OTOOL"; then
12099 # Extract the first word of "otool", so it can be a program name with args.
12100 set dummy otool; ac_word=$2
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12102 $as_echo_n "checking for $ac_word... " >&6; }
12103 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
12104 $as_echo_n "(cached) " >&6
12106 if test -n "$ac_ct_OTOOL"; then
12107 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12110 for as_dir in $PATH
12113 test -z "$as_dir" && as_dir=.
12114 for ac_exec_ext in '' $ac_executable_extensions; do
12115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12116 ac_cv_prog_ac_ct_OTOOL="otool"
12117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12126 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12127 if test -n "$ac_ct_OTOOL"; then
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12129 $as_echo "$ac_ct_OTOOL" >&6; }
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12132 $as_echo "no" >&6; }
12135 if test "x$ac_ct_OTOOL" = x; then
12138 case $cross_compiling:$ac_tool_warned in
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12142 ac_tool_warned=yes ;;
12147 OTOOL="$ac_cv_prog_OTOOL"
12150 if test -n "$ac_tool_prefix"; then
12151 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12152 set dummy ${ac_tool_prefix}otool64; ac_word=$2
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12154 $as_echo_n "checking for $ac_word... " >&6; }
12155 if ${ac_cv_prog_OTOOL64+:} false; then :
12156 $as_echo_n "(cached) " >&6
12158 if test -n "$OTOOL64"; then
12159 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12162 for as_dir in $PATH
12165 test -z "$as_dir" && as_dir=.
12166 for ac_exec_ext in '' $ac_executable_extensions; do
12167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12168 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12178 OTOOL64=$ac_cv_prog_OTOOL64
12179 if test -n "$OTOOL64"; then
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12181 $as_echo "$OTOOL64" >&6; }
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184 $as_echo "no" >&6; }
12189 if test -z "$ac_cv_prog_OTOOL64"; then
12190 ac_ct_OTOOL64=$OTOOL64
12191 # Extract the first word of "otool64", so it can be a program name with args.
12192 set dummy otool64; ac_word=$2
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12194 $as_echo_n "checking for $ac_word... " >&6; }
12195 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
12196 $as_echo_n "(cached) " >&6
12198 if test -n "$ac_ct_OTOOL64"; then
12199 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12202 for as_dir in $PATH
12205 test -z "$as_dir" && as_dir=.
12206 for ac_exec_ext in '' $ac_executable_extensions; do
12207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12208 ac_cv_prog_ac_ct_OTOOL64="otool64"
12209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12218 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12219 if test -n "$ac_ct_OTOOL64"; then
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12221 $as_echo "$ac_ct_OTOOL64" >&6; }
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12224 $as_echo "no" >&6; }
12227 if test "x$ac_ct_OTOOL64" = x; then
12230 case $cross_compiling:$ac_tool_warned in
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12234 ac_tool_warned=yes ;;
12236 OTOOL64=$ac_ct_OTOOL64
12239 OTOOL64="$ac_cv_prog_OTOOL64"
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12269 $as_echo_n "checking for -single_module linker flag... " >&6; }
12270 if ${lt_cv_apple_cc_single_mod+:} false; then :
12271 $as_echo_n "(cached) " >&6
12273 lt_cv_apple_cc_single_mod=no
12274 if test -z "${LT_MULTI_MODULE}"; then
12275 # By default we will add the -single_module flag. You can override
12276 # by either setting the environment variable LT_MULTI_MODULE
12277 # non-empty at configure time, or by adding -multi_module to the
12279 rm -rf libconftest.dylib*
12280 echo "int foo(void){return 1;}" > conftest.c
12281 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12282 -dynamiclib -Wl,-single_module conftest.c" >&5
12283 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12284 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12286 # If there is a non-empty error log, and "single_module"
12287 # appears in it, assume the flag caused a linker warning
12288 if test -s conftest.err && $GREP single_module conftest.err; then
12289 cat conftest.err >&5
12290 # Otherwise, if the output was created with a 0 exit code from
12291 # the compiler, it worked.
12292 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
12293 lt_cv_apple_cc_single_mod=yes
12295 cat conftest.err >&5
12297 rm -rf libconftest.dylib*
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12302 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12305 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
12306 if ${lt_cv_ld_exported_symbols_list+:} false; then :
12307 $as_echo_n "(cached) " >&6
12309 lt_cv_ld_exported_symbols_list=no
12310 save_LDFLAGS=$LDFLAGS
12311 echo "_main" > conftest.sym
12312 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314 /* end confdefs.h. */
12324 if ac_fn_c_try_link "$LINENO"; then :
12325 lt_cv_ld_exported_symbols_list=yes
12327 lt_cv_ld_exported_symbols_list=no
12329 rm -f core conftest.err conftest.$ac_objext \
12330 conftest$ac_exeext conftest.$ac_ext
12331 LDFLAGS="$save_LDFLAGS"
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12335 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12338 $as_echo_n "checking for -force_load linker flag... " >&6; }
12339 if ${lt_cv_ld_force_load+:} false; then :
12340 $as_echo_n "(cached) " >&6
12342 lt_cv_ld_force_load=no
12343 cat > conftest.c << _LT_EOF
12344 int forced_loaded() { return 2;}
12346 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12347 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12348 echo "$AR cru libconftest.a conftest.o" >&5
12349 $AR cru libconftest.a conftest.o 2>&5
12350 echo "$RANLIB libconftest.a" >&5
12351 $RANLIB libconftest.a 2>&5
12352 cat > conftest.c << _LT_EOF
12353 int main() { return 0;}
12355 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12356 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12358 if test -s conftest.err && $GREP force_load conftest.err; then
12359 cat conftest.err >&5
12360 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
12361 lt_cv_ld_force_load=yes
12363 cat conftest.err >&5
12365 rm -f conftest.err libconftest.a conftest conftest.c
12366 rm -rf conftest.dSYM
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12370 $as_echo "$lt_cv_ld_force_load" >&6; }
12372 rhapsody* | darwin1.[012])
12373 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12375 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12376 darwin*) # darwin 5.x on
12377 # if running on 10.5 or later, the deployment target defaults
12378 # to the OS version, if on x86, and 10.4, the deployment
12379 # target defaults to 10.4. Don't you love it?
12380 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12381 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12382 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12384 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12386 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12390 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12391 _lt_dar_single_mod='$single_module'
12393 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12394 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12396 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12398 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
12399 _lt_dsymutil='~$DSYMUTIL $lib || :'
12406 for ac_header in dlfcn.h
12408 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12410 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12411 cat >>confdefs.h <<_ACEOF
12412 #define HAVE_DLFCN_H 1
12430 enable_win32_dll=no
12433 # Check whether --enable-shared was given.
12434 if test "${enable_shared+set}" = set; then :
12435 enableval=$enable_shared; p=${PACKAGE-default}
12437 yes) enable_shared=yes ;;
12438 no) enable_shared=no ;;
12441 # Look at the argument we got. We use all the common list separators.
12442 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12443 for pkg in $enableval; do
12445 if test "X$pkg" = "X$p"; then
12466 # Check whether --with-pic was given.
12467 if test "${with_pic+set}" = set; then :
12468 withval=$with_pic; lt_p=${PACKAGE-default}
12470 yes|no) pic_mode=$withval ;;
12473 # Look at the argument we got. We use all the common list separators.
12474 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12475 for lt_pkg in $withval; do
12477 if test "X$lt_pkg" = "X$lt_p"; then
12489 test -z "$pic_mode" && pic_mode=default
12497 # Check whether --enable-fast-install was given.
12498 if test "${enable_fast_install+set}" = set; then :
12499 enableval=$enable_fast_install; p=${PACKAGE-default}
12501 yes) enable_fast_install=yes ;;
12502 no) enable_fast_install=no ;;
12504 enable_fast_install=no
12505 # Look at the argument we got. We use all the common list separators.
12506 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12507 for pkg in $enableval; do
12509 if test "X$pkg" = "X$p"; then
12510 enable_fast_install=yes
12517 enable_fast_install=yes
12530 # This can be used to rebuild libtool when needed
12531 LIBTOOL_DEPS="$ltmain"
12533 # Always use our own libtool.
12534 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12565 test -z "$LN_S" && LN_S="ln -s"
12580 if test -n "${ZSH_VERSION+set}" ; then
12581 setopt NO_GLOB_SUBST
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12585 $as_echo_n "checking for objdir... " >&6; }
12586 if ${lt_cv_objdir+:} false; then :
12587 $as_echo_n "(cached) " >&6
12589 rm -f .libs 2>/dev/null
12590 mkdir .libs 2>/dev/null
12591 if test -d .libs; then
12594 # MS-DOS does not allow filenames that begin with a dot.
12597 rmdir .libs 2>/dev/null
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12600 $as_echo "$lt_cv_objdir" >&6; }
12601 objdir=$lt_cv_objdir
12607 cat >>confdefs.h <<_ACEOF
12608 #define LT_OBJDIR "$lt_cv_objdir/"
12616 # AIX sometimes has problems with the GCC collect2 program. For some
12617 # reason, if we set the COLLECT_NAMES environment variable, the problems
12618 # vanish in a puff of smoke.
12619 if test "X${COLLECT_NAMES+set}" != Xset; then
12621 export COLLECT_NAMES
12626 # Global variables:
12628 can_build_shared=yes
12630 # All known linkers require a `.a' archive for static linking (except MSVC,
12631 # which needs '.lib').
12634 with_gnu_ld="$lt_cv_prog_gnu_ld"
12637 old_CFLAGS="$CFLAGS"
12639 # Set sane defaults for various variables
12640 test -z "$CC" && CC=cc
12641 test -z "$LTCC" && LTCC=$CC
12642 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12643 test -z "$LD" && LD=ld
12644 test -z "$ac_objext" && ac_objext=o
12646 for cc_temp in $compiler""; do
12648 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12649 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12654 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12657 # Only perform the check for file, if the check method requires it
12658 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12659 case $deplibs_check_method in
12661 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12663 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12664 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12665 $as_echo_n "(cached) " >&6
12669 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12672 lt_save_MAGIC_CMD="$MAGIC_CMD"
12673 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12674 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12675 for ac_dir in $ac_dummy; do
12677 test -z "$ac_dir" && ac_dir=.
12678 if test -f $ac_dir/${ac_tool_prefix}file; then
12679 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12680 if test -n "$file_magic_test_file"; then
12681 case $deplibs_check_method in
12683 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12684 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12685 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12686 $EGREP "$file_magic_regex" > /dev/null; then
12691 *** Warning: the command libtool uses to detect shared libraries,
12692 *** $file_magic_cmd, produces output that libtool cannot recognize.
12693 *** The result is that libtool may fail to recognize shared libraries
12694 *** as such. This will affect the creation of libtool libraries that
12695 *** depend on shared libraries, but programs linked with such libtool
12696 *** libraries will work regardless of this problem. Nevertheless, you
12697 *** may want to report the problem to your system manager and/or to
12698 *** bug-libtool@gnu.org
12708 MAGIC_CMD="$lt_save_MAGIC_CMD"
12713 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12714 if test -n "$MAGIC_CMD"; then
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12716 $as_echo "$MAGIC_CMD" >&6; }
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12719 $as_echo "no" >&6; }
12726 if test -z "$lt_cv_path_MAGIC_CMD"; then
12727 if test -n "$ac_tool_prefix"; then
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12729 $as_echo_n "checking for file... " >&6; }
12730 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12731 $as_echo_n "(cached) " >&6
12735 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12738 lt_save_MAGIC_CMD="$MAGIC_CMD"
12739 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12740 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12741 for ac_dir in $ac_dummy; do
12743 test -z "$ac_dir" && ac_dir=.
12744 if test -f $ac_dir/file; then
12745 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12746 if test -n "$file_magic_test_file"; then
12747 case $deplibs_check_method in
12749 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12750 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12751 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12752 $EGREP "$file_magic_regex" > /dev/null; then
12757 *** Warning: the command libtool uses to detect shared libraries,
12758 *** $file_magic_cmd, produces output that libtool cannot recognize.
12759 *** The result is that libtool may fail to recognize shared libraries
12760 *** as such. This will affect the creation of libtool libraries that
12761 *** depend on shared libraries, but programs linked with such libtool
12762 *** libraries will work regardless of this problem. Nevertheless, you
12763 *** may want to report the problem to your system manager and/or to
12764 *** bug-libtool@gnu.org
12774 MAGIC_CMD="$lt_save_MAGIC_CMD"
12779 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12780 if test -n "$MAGIC_CMD"; then
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12782 $as_echo "$MAGIC_CMD" >&6; }
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12785 $as_echo "no" >&6; }
12798 # Use C for the default configuration in the libtool script
12802 ac_cpp='$CPP $CPPFLAGS'
12803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12808 # Source file extension for C test sources.
12811 # Object file extension for compiled C test sources.
12815 # Code to be used in simple compile tests
12816 lt_simple_compile_test_code="int some_variable = 0;"
12818 # Code to be used in simple link tests
12819 lt_simple_link_test_code='int main(){return(0);}'
12827 # If no C compiler was specified, use CC.
12830 # If no C compiler flags were specified, use CFLAGS.
12831 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12833 # Allow CC to be a program name with arguments.
12836 # Save the default compiler, since it gets overwritten when the other
12837 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12838 compiler_DEFAULT=$CC
12840 # save warnings/boilerplate of simple test code
12841 ac_outfile=conftest.$ac_objext
12842 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12843 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12844 _lt_compiler_boilerplate=`cat conftest.err`
12847 ac_outfile=conftest.$ac_objext
12848 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12849 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12850 _lt_linker_boilerplate=`cat conftest.err`
12854 if test -n "$compiler"; then
12856 lt_prog_compiler_no_builtin_flag=
12858 if test "$GCC" = yes; then
12859 case $cc_basename in
12861 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12863 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12867 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12868 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12869 $as_echo_n "(cached) " >&6
12871 lt_cv_prog_compiler_rtti_exceptions=no
12872 ac_outfile=conftest.$ac_objext
12873 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12874 lt_compiler_flag="-fno-rtti -fno-exceptions"
12875 # Insert the option either (1) after the last *FLAGS variable, or
12876 # (2) before a word containing "conftest.", or (3) at the end.
12877 # Note that $ac_compile itself does not contain backslashes and begins
12878 # with a dollar sign (not a hyphen), so the echo should work correctly.
12879 # The option is referenced via a variable to avoid confusing sed.
12880 lt_compile=`echo "$ac_compile" | $SED \
12881 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12882 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12883 -e 's:$: $lt_compiler_flag:'`
12884 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12885 (eval "$lt_compile" 2>conftest.err)
12887 cat conftest.err >&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 if (exit $ac_status) && test -s "$ac_outfile"; then
12890 # The compiler can only warn and ignore the option if not recognized
12891 # So say no if there are warnings other than the usual output.
12892 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12893 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12894 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12895 lt_cv_prog_compiler_rtti_exceptions=yes
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12902 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12904 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12905 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12917 lt_prog_compiler_wl=
12918 lt_prog_compiler_pic=
12919 lt_prog_compiler_static=
12922 if test "$GCC" = yes; then
12923 lt_prog_compiler_wl='-Wl,'
12924 lt_prog_compiler_static='-static'
12928 # All AIX code is PIC.
12929 if test "$host_cpu" = ia64; then
12930 # AIX 5 now supports IA64 processor
12931 lt_prog_compiler_static='-Bstatic'
12938 # see comment about AmigaOS4 .so support
12939 lt_prog_compiler_pic='-fPIC'
12942 # FIXME: we need at least 68020 code to build shared libraries, but
12943 # adding the `-m68020' flag to GCC prevents building anything better,
12945 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12950 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12951 # PIC is the default for these OSes.
12954 mingw* | cygwin* | pw32* | os2* | cegcc*)
12955 # This hack is so that the source file can tell whether it is being
12956 # built for inclusion in a dll (and should export symbols for example).
12957 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12958 # (--disable-auto-import) libraries
12959 lt_prog_compiler_pic='-DDLL_EXPORT'
12962 darwin* | rhapsody*)
12963 # PIC is the default on this platform
12964 # Common symbols not allowed in MH_DYLIB files
12965 lt_prog_compiler_pic='-fno-common'
12969 # PIC is the default for Haiku.
12970 # The "-static" flag exists, but is broken.
12971 lt_prog_compiler_static=
12975 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12976 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12977 # sets the default TLS model and affects inlining.
12983 lt_prog_compiler_pic='-fPIC'
12989 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12990 # Instead, we relocate shared libraries at runtime.
12994 # Just because we use GCC doesn't mean we suddenly get shared libraries
12995 # on systems that don't support them.
12996 lt_prog_compiler_can_build_shared=no
13001 # QNX uses GNU C++, but need to define -shared option too, otherwise
13002 # it will coredump.
13003 lt_prog_compiler_pic='-fPIC -shared'
13007 if test -d /usr/nec; then
13008 lt_prog_compiler_pic=-Kconform_pic
13013 lt_prog_compiler_pic='-fPIC'
13017 case $cc_basename in
13018 nvcc*) # Cuda Compiler Driver 2.2
13019 lt_prog_compiler_wl='-Xlinker '
13020 if test -n "$lt_prog_compiler_pic"; then
13021 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13026 # PORTME Check for flag to pass linker flags through the system compiler.
13029 lt_prog_compiler_wl='-Wl,'
13030 if test "$host_cpu" = ia64; then
13031 # AIX 5 now supports IA64 processor
13032 lt_prog_compiler_static='-Bstatic'
13034 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13038 mingw* | cygwin* | pw32* | os2* | cegcc*)
13039 # This hack is so that the source file can tell whether it is being
13040 # built for inclusion in a dll (and should export symbols for example).
13041 lt_prog_compiler_pic='-DDLL_EXPORT'
13044 hpux9* | hpux10* | hpux11*)
13045 lt_prog_compiler_wl='-Wl,'
13046 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13047 # not for PA HP-UX.
13053 lt_prog_compiler_pic='+Z'
13056 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13057 lt_prog_compiler_static='${wl}-a ${wl}archive'
13060 irix5* | irix6* | nonstopux*)
13061 lt_prog_compiler_wl='-Wl,'
13062 # PIC (with -KPIC) is the default.
13063 lt_prog_compiler_static='-non_shared'
13066 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13067 case $cc_basename in
13068 # old Intel for x86_64 which still supported -KPIC.
13070 lt_prog_compiler_wl='-Wl,'
13071 lt_prog_compiler_pic='-KPIC'
13072 lt_prog_compiler_static='-static'
13074 # icc used to be incompatible with GCC.
13075 # ICC 10 doesn't accept -KPIC any more.
13077 lt_prog_compiler_wl='-Wl,'
13078 lt_prog_compiler_pic='-fPIC'
13079 lt_prog_compiler_static='-static'
13081 # Lahey Fortran 8.1.
13083 lt_prog_compiler_wl='-Wl,'
13084 lt_prog_compiler_pic='--shared'
13085 lt_prog_compiler_static='--static'
13088 # NAG Fortran compiler
13089 lt_prog_compiler_wl='-Wl,-Wl,,'
13090 lt_prog_compiler_pic='-PIC'
13091 lt_prog_compiler_static='-Bstatic'
13093 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13094 # Portland Group compilers (*not* the Pentium gcc compiler,
13095 # which looks to be a dead project)
13096 lt_prog_compiler_wl='-Wl,'
13097 lt_prog_compiler_pic='-fpic'
13098 lt_prog_compiler_static='-Bstatic'
13101 lt_prog_compiler_wl='-Wl,'
13102 # All Alpha code is PIC.
13103 lt_prog_compiler_static='-non_shared'
13105 xl* | bgxl* | bgf* | mpixl*)
13106 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13107 lt_prog_compiler_wl='-Wl,'
13108 lt_prog_compiler_pic='-qpic'
13109 lt_prog_compiler_static='-qstaticlink'
13112 case `$CC -V 2>&1 | sed 5q` in
13113 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13114 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13115 lt_prog_compiler_pic='-KPIC'
13116 lt_prog_compiler_static='-Bstatic'
13117 lt_prog_compiler_wl=''
13119 *Sun\ F* | *Sun*Fortran*)
13120 lt_prog_compiler_pic='-KPIC'
13121 lt_prog_compiler_static='-Bstatic'
13122 lt_prog_compiler_wl='-Qoption ld '
13126 lt_prog_compiler_pic='-KPIC'
13127 lt_prog_compiler_static='-Bstatic'
13128 lt_prog_compiler_wl='-Wl,'
13130 *Intel*\ [CF]*Compiler*)
13131 lt_prog_compiler_wl='-Wl,'
13132 lt_prog_compiler_pic='-fPIC'
13133 lt_prog_compiler_static='-static'
13136 lt_prog_compiler_wl='-Wl,'
13137 lt_prog_compiler_pic='-fpic'
13138 lt_prog_compiler_static='-Bstatic'
13146 lt_prog_compiler_pic='-KPIC'
13147 lt_prog_compiler_static='-Bstatic'
13151 # QNX uses GNU C++, but need to define -shared option too, otherwise
13152 # it will coredump.
13153 lt_prog_compiler_pic='-fPIC -shared'
13156 osf3* | osf4* | osf5*)
13157 lt_prog_compiler_wl='-Wl,'
13158 # All OSF/1 code is PIC.
13159 lt_prog_compiler_static='-non_shared'
13163 lt_prog_compiler_static='-non_shared'
13167 lt_prog_compiler_pic='-KPIC'
13168 lt_prog_compiler_static='-Bstatic'
13169 case $cc_basename in
13170 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13171 lt_prog_compiler_wl='-Qoption ld ';;
13173 lt_prog_compiler_wl='-Wl,';;
13178 lt_prog_compiler_wl='-Qoption ld '
13179 lt_prog_compiler_pic='-PIC'
13180 lt_prog_compiler_static='-Bstatic'
13183 sysv4 | sysv4.2uw2* | sysv4.3*)
13184 lt_prog_compiler_wl='-Wl,'
13185 lt_prog_compiler_pic='-KPIC'
13186 lt_prog_compiler_static='-Bstatic'
13190 if test -d /usr/nec ;then
13191 lt_prog_compiler_pic='-Kconform_pic'
13192 lt_prog_compiler_static='-Bstatic'
13196 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13197 lt_prog_compiler_wl='-Wl,'
13198 lt_prog_compiler_pic='-KPIC'
13199 lt_prog_compiler_static='-Bstatic'
13203 lt_prog_compiler_wl='-Wl,'
13204 lt_prog_compiler_can_build_shared=no
13208 lt_prog_compiler_pic='-pic'
13209 lt_prog_compiler_static='-Bstatic'
13213 lt_prog_compiler_can_build_shared=no
13219 # For platforms which do not support PIC, -DPIC is meaningless:
13221 lt_prog_compiler_pic=
13224 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13229 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13230 if ${lt_cv_prog_compiler_pic+:} false; then :
13231 $as_echo_n "(cached) " >&6
13233 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13236 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
13237 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13240 # Check to make sure the PIC flag actually works.
13242 if test -n "$lt_prog_compiler_pic"; then
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13244 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13245 if ${lt_cv_prog_compiler_pic_works+:} false; then :
13246 $as_echo_n "(cached) " >&6
13248 lt_cv_prog_compiler_pic_works=no
13249 ac_outfile=conftest.$ac_objext
13250 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13251 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13252 # Insert the option either (1) after the last *FLAGS variable, or
13253 # (2) before a word containing "conftest.", or (3) at the end.
13254 # Note that $ac_compile itself does not contain backslashes and begins
13255 # with a dollar sign (not a hyphen), so the echo should work correctly.
13256 # The option is referenced via a variable to avoid confusing sed.
13257 lt_compile=`echo "$ac_compile" | $SED \
13258 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13260 -e 's:$: $lt_compiler_flag:'`
13261 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13262 (eval "$lt_compile" 2>conftest.err)
13264 cat conftest.err >&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 if (exit $ac_status) && test -s "$ac_outfile"; then
13267 # The compiler can only warn and ignore the option if not recognized
13268 # So say no if there are warnings other than the usual output.
13269 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13270 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13271 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13272 lt_cv_prog_compiler_pic_works=yes
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13279 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13281 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13282 case $lt_prog_compiler_pic in
13284 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13287 lt_prog_compiler_pic=
13288 lt_prog_compiler_can_build_shared=no
13304 # Check to make sure the static flag actually works.
13306 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13308 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13309 if ${lt_cv_prog_compiler_static_works+:} false; then :
13310 $as_echo_n "(cached) " >&6
13312 lt_cv_prog_compiler_static_works=no
13313 save_LDFLAGS="$LDFLAGS"
13314 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13315 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13316 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13317 # The linker can only warn and ignore the option if not recognized
13318 # So say no if there are warnings
13319 if test -s conftest.err; then
13320 # Append any errors to the config.log.
13321 cat conftest.err 1>&5
13322 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13323 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13324 if diff conftest.exp conftest.er2 >/dev/null; then
13325 lt_cv_prog_compiler_static_works=yes
13328 lt_cv_prog_compiler_static_works=yes
13332 LDFLAGS="$save_LDFLAGS"
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13336 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13338 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13341 lt_prog_compiler_static=
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13351 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13352 if ${lt_cv_prog_compiler_c_o+:} false; then :
13353 $as_echo_n "(cached) " >&6
13355 lt_cv_prog_compiler_c_o=no
13356 $RM -r conftest 2>/dev/null
13360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13362 lt_compiler_flag="-o out/conftest2.$ac_objext"
13363 # Insert the option either (1) after the last *FLAGS variable, or
13364 # (2) before a word containing "conftest.", or (3) at the end.
13365 # Note that $ac_compile itself does not contain backslashes and begins
13366 # with a dollar sign (not a hyphen), so the echo should work correctly.
13367 lt_compile=`echo "$ac_compile" | $SED \
13368 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13369 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13370 -e 's:$: $lt_compiler_flag:'`
13371 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13372 (eval "$lt_compile" 2>out/conftest.err)
13374 cat out/conftest.err >&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13378 # The compiler can only warn and ignore the option if not recognized
13379 # So say no if there are warnings
13380 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13381 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13382 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13383 lt_cv_prog_compiler_c_o=yes
13388 # SGI C++ compiler will create directory out/ii_files/ for
13389 # template instantiation
13390 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13391 $RM out/* && rmdir out
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13398 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13406 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13407 if ${lt_cv_prog_compiler_c_o+:} false; then :
13408 $as_echo_n "(cached) " >&6
13410 lt_cv_prog_compiler_c_o=no
13411 $RM -r conftest 2>/dev/null
13415 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13417 lt_compiler_flag="-o out/conftest2.$ac_objext"
13418 # Insert the option either (1) after the last *FLAGS variable, or
13419 # (2) before a word containing "conftest.", or (3) at the end.
13420 # Note that $ac_compile itself does not contain backslashes and begins
13421 # with a dollar sign (not a hyphen), so the echo should work correctly.
13422 lt_compile=`echo "$ac_compile" | $SED \
13423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13425 -e 's:$: $lt_compiler_flag:'`
13426 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13427 (eval "$lt_compile" 2>out/conftest.err)
13429 cat out/conftest.err >&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13433 # The compiler can only warn and ignore the option if not recognized
13434 # So say no if there are warnings
13435 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13436 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13437 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13438 lt_cv_prog_compiler_c_o=yes
13443 # SGI C++ compiler will create directory out/ii_files/ for
13444 # template instantiation
13445 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13446 $RM out/* && rmdir out
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13453 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13458 hard_links="nottested"
13459 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13460 # do not overwrite the value of need_locks provided by the user
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13462 $as_echo_n "checking if we can lock with hard links... " >&6; }
13465 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13467 ln conftest.a conftest.b 2>&5 || hard_links=no
13468 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13470 $as_echo "$hard_links" >&6; }
13471 if test "$hard_links" = no; then
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13473 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13486 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13489 allow_undefined_flag=
13490 always_export_symbols=no
13492 archive_expsym_cmds=
13493 compiler_needs_object=no
13494 enable_shared_with_static_runtimes=no
13495 export_dynamic_flag_spec=
13496 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13497 hardcode_automatic=no
13499 hardcode_direct_absolute=no
13500 hardcode_libdir_flag_spec=
13501 hardcode_libdir_separator=
13502 hardcode_minus_L=no
13503 hardcode_shlibpath_var=unsupported
13505 link_all_deplibs=unknown
13507 module_expsym_cmds=
13508 old_archive_from_new_cmds=
13509 old_archive_from_expsyms_cmds=
13510 thread_safe_flag_spec=
13511 whole_archive_flag_spec=
13512 # include_expsyms should be a list of space-separated symbols to be *always*
13513 # included in the symbol list
13515 # exclude_expsyms can be an extended regexp of symbols to exclude
13516 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13517 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13518 # as well as any symbol that contains `d'.
13519 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13520 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13521 # platforms (ab)use it in PIC code, but their linkers get confused if
13522 # the symbol is explicitly referenced. Since portable code cannot
13523 # rely on this symbol name, it's probably fine to never include it in
13524 # preloaded symbol tables.
13525 # Exclude shared library initialization/finalization symbols.
13526 extract_expsyms_cmds=
13529 cygwin* | mingw* | pw32* | cegcc*)
13530 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13531 # When not using gcc, we currently assume that we are using
13532 # Microsoft Visual C++.
13533 if test "$GCC" != yes; then
13538 # we just hope/assume this is gcc and not c89 (= MSVC++)
13548 # On some targets, GNU ld is compatible enough with the native linker
13549 # that we're better off using the native interface for both.
13550 lt_use_gnu_ld_interface=no
13551 if test "$with_gnu_ld" = yes; then
13554 # The AIX port of GNU ld has always aspired to compatibility
13555 # with the native linker. However, as the warning in the GNU ld
13556 # block says, versions before 2.19.5* couldn't really create working
13557 # shared libraries, regardless of the interface used.
13558 case `$LD -v 2>&1` in
13559 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13560 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13561 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13563 lt_use_gnu_ld_interface=yes
13568 lt_use_gnu_ld_interface=yes
13573 if test "$lt_use_gnu_ld_interface" = yes; then
13574 # If archive_cmds runs LD, not CC, wlarc should be empty
13577 # Set some defaults for GNU ld with shared library support. These
13578 # are reset later if shared libraries are not supported. Putting them
13579 # here allows them to be overridden if necessary.
13580 runpath_var=LD_RUN_PATH
13581 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13582 export_dynamic_flag_spec='${wl}--export-dynamic'
13583 # ancient GNU ld didn't support --whole-archive et. al.
13584 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13585 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13587 whole_archive_flag_spec=
13589 supports_anon_versioning=no
13590 case `$LD -v 2>&1` in
13591 *GNU\ gold*) supports_anon_versioning=yes ;;
13592 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13593 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13594 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13595 *\ 2.11.*) ;; # other 2.11 versions
13596 *) supports_anon_versioning=yes ;;
13599 # See if GNU ld supports shared libraries.
13602 # On AIX/PPC, the GNU linker is very broken
13603 if test "$host_cpu" != ia64; then
13607 *** Warning: the GNU linker, at least up to release 2.19, is reported
13608 *** to be unable to reliably create shared libraries on AIX.
13609 *** Therefore, libtool is disabling shared libraries support. If you
13610 *** really care for shared libraries, you may want to install binutils
13611 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13612 *** You will then need to restart the configuration process.
13621 # see comment about AmigaOS4 .so support
13622 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13623 archive_expsym_cmds=''
13626 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)'
13627 hardcode_libdir_flag_spec='-L$libdir'
13628 hardcode_minus_L=yes
13634 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13635 allow_undefined_flag=unsupported
13636 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13637 # support --undefined. This deserves some investigation. FIXME
13638 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13644 cygwin* | mingw* | pw32* | cegcc*)
13645 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13646 # as there is no search path for DLLs.
13647 hardcode_libdir_flag_spec='-L$libdir'
13648 export_dynamic_flag_spec='${wl}--export-all-symbols'
13649 allow_undefined_flag=unsupported
13650 always_export_symbols=no
13651 enable_shared_with_static_runtimes=yes
13652 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'
13653 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13655 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13656 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13657 # If the export-symbols file already is a .def file (1st line
13658 # is EXPORTS), use it as is; otherwise, prepend...
13659 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13660 cp $export_symbols $output_objdir/$soname.def;
13662 echo EXPORTS > $output_objdir/$soname.def;
13663 cat $export_symbols >> $output_objdir/$soname.def;
13665 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13672 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13673 link_all_deplibs=yes
13678 hardcode_shlibpath_var=no
13679 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13680 export_dynamic_flag_spec='${wl}-E'
13681 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13682 # Instead, shared libraries are loaded at an image base (0x10000000 by
13683 # default) and relocated if they conflict, which is a slow very memory
13684 # consuming and fragmenting process. To avoid this, we pick a random,
13685 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13686 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13687 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13688 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'
13691 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13693 if test "$host_os" = linux-dietlibc; then
13694 case $cc_basename in
13695 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13698 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13699 && test "$tmp_diet" = no
13701 tmp_addflag=' $pic_flag'
13702 tmp_sharedflag='-shared'
13703 case $cc_basename,$host_cpu in
13704 pgcc*) # Portland Group C compiler
13705 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'
13706 tmp_addflag=' $pic_flag'
13708 pgf77* | pgf90* | pgf95* | pgfortran*)
13709 # Portland Group f77 and f90 compilers
13710 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'
13711 tmp_addflag=' $pic_flag -Mnomain' ;;
13712 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13713 tmp_addflag=' -i_dynamic' ;;
13714 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13715 tmp_addflag=' -i_dynamic -nofor_main' ;;
13716 ifc* | ifort*) # Intel Fortran compiler
13717 tmp_addflag=' -nofor_main' ;;
13718 lf95*) # Lahey Fortran 8.1
13719 whole_archive_flag_spec=
13720 tmp_sharedflag='--shared' ;;
13721 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13722 tmp_sharedflag='-qmkshrobj'
13724 nvcc*) # Cuda Compiler Driver 2.2
13725 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'
13726 compiler_needs_object=yes
13729 case `$CC -V 2>&1 | sed 5q` in
13730 *Sun\ C*) # Sun C 5.9
13731 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'
13732 compiler_needs_object=yes
13733 tmp_sharedflag='-G' ;;
13734 *Sun\ F*) # Sun Fortran 8.3
13735 tmp_sharedflag='-G' ;;
13737 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13739 if test "x$supports_anon_versioning" = xyes; then
13740 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13741 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13742 echo "local: *; };" >> $output_objdir/$libname.ver~
13743 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13746 case $cc_basename in
13747 xlf* | bgf* | bgxlf* | mpixlf*)
13748 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13749 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13750 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13751 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13752 if test "x$supports_anon_versioning" = xyes; then
13753 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13754 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13755 echo "local: *; };" >> $output_objdir/$libname.ver~
13756 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13766 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13767 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13770 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13771 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13776 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13780 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13781 *** create shared libraries on Solaris systems. Therefore, libtool
13782 *** is disabling shared libraries support. We urge you to upgrade GNU
13783 *** binutils to release 2.9.1 or newer. Another option is to modify
13784 *** your PATH or compiler configuration so that the native linker is
13785 *** used, and then restart.
13788 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13789 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13790 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13796 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13797 case `$LD -v 2>&1` in
13798 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13802 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13803 *** reliably create shared libraries on SCO systems. Therefore, libtool
13804 *** is disabling shared libraries support. We urge you to upgrade GNU
13805 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13806 *** your PATH or compiler configuration so that the native linker is
13807 *** used, and then restart.
13812 # For security reasons, it is highly recommended that you always
13813 # use absolute paths for naming shared libraries, and exclude the
13814 # DT_RUNPATH tag from executables and libraries. But doing so
13815 # requires that you compile everything twice, which is a pain.
13816 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13817 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13818 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13819 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13828 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13830 hardcode_direct=yes
13831 hardcode_shlibpath_var=no
13835 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13836 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13837 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13844 if test "$ld_shlibs" = no; then
13846 hardcode_libdir_flag_spec=
13847 export_dynamic_flag_spec=
13848 whole_archive_flag_spec=
13851 # PORTME fill in a description of your system's linker (not GNU ld)
13854 allow_undefined_flag=unsupported
13855 always_export_symbols=yes
13856 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'
13857 # Note: this linker hardcodes the directories in LIBPATH if there
13858 # are no directories specified by -L.
13859 hardcode_minus_L=yes
13860 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13861 # Neither direct hardcoding nor static linking is supported with a
13863 hardcode_direct=unsupported
13868 if test "$host_cpu" = ia64; then
13869 # On IA64, the linker does run time linking by default, so we don't
13870 # have to do anything special.
13871 aix_use_runtimelinking=no
13872 exp_sym_flag='-Bexport'
13875 # If we're using GNU nm, then we don't want the "-C" option.
13876 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13877 # Also, AIX nm treats weak defined symbols like other global
13878 # defined symbols, whereas GNU nm marks them as "W".
13879 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13880 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'
13882 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'
13884 aix_use_runtimelinking=no
13886 # Test if we are trying to use run time linking or normal
13887 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13888 # need to do runtime linking.
13889 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13890 for ld_flag in $LDFLAGS; do
13891 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13892 aix_use_runtimelinking=yes
13899 exp_sym_flag='-bexport'
13900 no_entry_flag='-bnoentry'
13903 # When large executables or shared objects are built, AIX ld can
13904 # have problems creating the table of contents. If linking a library
13905 # or program results in "error TOC overflow" add -mminimal-toc to
13906 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13907 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13910 hardcode_direct=yes
13911 hardcode_direct_absolute=yes
13912 hardcode_libdir_separator=':'
13913 link_all_deplibs=yes
13914 file_list_spec='${wl}-f,'
13916 if test "$GCC" = yes; then
13917 case $host_os in aix4.[012]|aix4.[012].*)
13918 # We only want to do this on AIX 4.2 and lower, the check
13919 # below for broken collect2 doesn't work under 4.3+
13920 collect2name=`${CC} -print-prog-name=collect2`
13921 if test -f "$collect2name" &&
13922 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13924 # We have reworked collect2
13927 # We have old collect2
13928 hardcode_direct=unsupported
13929 # It fails to find uninstalled libraries when the uninstalled
13930 # path is not listed in the libpath. Setting hardcode_minus_L
13931 # to unsupported forces relinking
13932 hardcode_minus_L=yes
13933 hardcode_libdir_flag_spec='-L$libdir'
13934 hardcode_libdir_separator=
13938 shared_flag='-shared'
13939 if test "$aix_use_runtimelinking" = yes; then
13940 shared_flag="$shared_flag "'${wl}-G'
13944 if test "$host_cpu" = ia64; then
13945 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13946 # chokes on -Wl,-G. The following line is correct:
13949 if test "$aix_use_runtimelinking" = yes; then
13950 shared_flag='${wl}-G'
13952 shared_flag='${wl}-bM:SRE'
13957 export_dynamic_flag_spec='${wl}-bexpall'
13958 # It seems that -bexpall does not export symbols beginning with
13959 # underscore (_), so it is better to generate a list of symbols to export.
13960 always_export_symbols=yes
13961 if test "$aix_use_runtimelinking" = yes; then
13962 # Warning - without using the other runtime loading flags (-brtl),
13963 # -berok will link without error, but may produce a broken library.
13964 allow_undefined_flag='-berok'
13965 # Determine the default libpath from the value encoded in an
13966 # empty executable.
13967 if test "${lt_cv_aix_libpath+set}" = set; then
13968 aix_libpath=$lt_cv_aix_libpath
13970 if ${lt_cv_aix_libpath_+:} false; then :
13971 $as_echo_n "(cached) " >&6
13973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13974 /* end confdefs.h. */
13984 if ac_fn_c_try_link "$LINENO"; then :
13986 lt_aix_libpath_sed='
13987 /Import File Strings/,/^$/ {
13989 s/^0 *\([^ ]*\) *$/\1/
13993 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13994 # Check for a 64-bit object if we didn't find anything.
13995 if test -z "$lt_cv_aix_libpath_"; then
13996 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13999 rm -f core conftest.err conftest.$ac_objext \
14000 conftest$ac_exeext conftest.$ac_ext
14001 if test -z "$lt_cv_aix_libpath_"; then
14002 lt_cv_aix_libpath_="/usr/lib:/lib"
14007 aix_libpath=$lt_cv_aix_libpath_
14010 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14011 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"
14013 if test "$host_cpu" = ia64; then
14014 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14015 allow_undefined_flag="-z nodefs"
14016 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"
14018 # Determine the default libpath from the value encoded in an
14019 # empty executable.
14020 if test "${lt_cv_aix_libpath+set}" = set; then
14021 aix_libpath=$lt_cv_aix_libpath
14023 if ${lt_cv_aix_libpath_+:} false; then :
14024 $as_echo_n "(cached) " >&6
14026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14027 /* end confdefs.h. */
14037 if ac_fn_c_try_link "$LINENO"; then :
14039 lt_aix_libpath_sed='
14040 /Import File Strings/,/^$/ {
14042 s/^0 *\([^ ]*\) *$/\1/
14046 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14047 # Check for a 64-bit object if we didn't find anything.
14048 if test -z "$lt_cv_aix_libpath_"; then
14049 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14052 rm -f core conftest.err conftest.$ac_objext \
14053 conftest$ac_exeext conftest.$ac_ext
14054 if test -z "$lt_cv_aix_libpath_"; then
14055 lt_cv_aix_libpath_="/usr/lib:/lib"
14060 aix_libpath=$lt_cv_aix_libpath_
14063 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14064 # Warning - without using the other run time loading flags,
14065 # -berok will link without error, but may produce a broken library.
14066 no_undefined_flag=' ${wl}-bernotok'
14067 allow_undefined_flag=' ${wl}-berok'
14068 if test "$with_gnu_ld" = yes; then
14069 # We only use this code for GNU lds that support --whole-archive.
14070 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14072 # Exported symbols can be pulled into shared objects from archives
14073 whole_archive_flag_spec='$convenience'
14075 archive_cmds_need_lc=yes
14076 # This is similar to how AIX traditionally builds its shared libraries.
14077 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'
14085 # see comment about AmigaOS4 .so support
14086 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14087 archive_expsym_cmds=''
14090 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)'
14091 hardcode_libdir_flag_spec='-L$libdir'
14092 hardcode_minus_L=yes
14098 export_dynamic_flag_spec=-rdynamic
14101 cygwin* | mingw* | pw32* | cegcc*)
14102 # When not using gcc, we currently assume that we are using
14103 # Microsoft Visual C++.
14104 # hardcode_libdir_flag_spec is actually meaningless, as there is
14105 # no search path for DLLs.
14106 case $cc_basename in
14109 hardcode_libdir_flag_spec=' '
14110 allow_undefined_flag=unsupported
14111 always_export_symbols=yes
14113 # Tell ltmain to make .lib files, not .a files.
14115 # Tell ltmain to make .dll files, not .so files.
14117 # FIXME: Setting linknames here is a bad hack.
14118 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14119 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14120 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14122 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14124 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14126 # The linker will not automatically build a static lib if we build a DLL.
14127 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14128 enable_shared_with_static_runtimes=yes
14129 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14130 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14132 old_postinstall_cmds='chmod 644 $oldlib'
14133 postlink_cmds='lt_outputfile="@OUTPUT@"~
14134 lt_tool_outputfile="@TOOL_OUTPUT@"~
14135 case $lt_outputfile in
14138 lt_outputfile="$lt_outputfile.exe"
14139 lt_tool_outputfile="$lt_tool_outputfile.exe"
14142 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14143 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14144 $RM "$lt_outputfile.manifest";
14148 # Assume MSVC wrapper
14149 hardcode_libdir_flag_spec=' '
14150 allow_undefined_flag=unsupported
14151 # Tell ltmain to make .lib files, not .a files.
14153 # Tell ltmain to make .dll files, not .so files.
14155 # FIXME: Setting linknames here is a bad hack.
14156 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14157 # The linker will automatically build a .lib file if we build a DLL.
14158 old_archive_from_new_cmds='true'
14159 # FIXME: Should let the user specify the lib program.
14160 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14161 enable_shared_with_static_runtimes=yes
14166 darwin* | rhapsody*)
14169 archive_cmds_need_lc=no
14171 hardcode_automatic=yes
14172 hardcode_shlibpath_var=unsupported
14173 if test "$lt_cv_ld_force_load" = "yes"; then
14174 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\"`'
14177 whole_archive_flag_spec=''
14179 link_all_deplibs=yes
14180 allow_undefined_flag="$_lt_dar_allow_undefined"
14181 case $cc_basename in
14182 ifort*) _lt_dar_can_shared=yes ;;
14183 *) _lt_dar_can_shared=$GCC ;;
14185 if test "$_lt_dar_can_shared" = "yes"; then
14186 output_verbose_link_cmd=func_echo_all
14187 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14188 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14189 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}"
14190 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}"
14199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14200 hardcode_libdir_flag_spec='-L$libdir'
14201 hardcode_shlibpath_var=no
14204 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14205 # support. Future versions do this automatically, but an explicit c++rt0.o
14206 # does not break anything, and helps significantly (at the cost of a little
14209 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14210 hardcode_libdir_flag_spec='-R$libdir'
14211 hardcode_direct=yes
14212 hardcode_shlibpath_var=no
14215 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14217 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14218 hardcode_direct=yes
14219 hardcode_minus_L=yes
14220 hardcode_shlibpath_var=no
14223 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14224 freebsd* | dragonfly*)
14225 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14226 hardcode_libdir_flag_spec='-R$libdir'
14227 hardcode_direct=yes
14228 hardcode_shlibpath_var=no
14232 if test "$GCC" = yes; then
14233 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'
14235 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'
14237 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14238 hardcode_libdir_separator=:
14239 hardcode_direct=yes
14241 # hardcode_minus_L: Not really in the search PATH,
14242 # but as the default location of the library.
14243 hardcode_minus_L=yes
14244 export_dynamic_flag_spec='${wl}-E'
14248 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14249 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14251 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14253 if test "$with_gnu_ld" = no; then
14254 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14255 hardcode_libdir_separator=:
14256 hardcode_direct=yes
14257 hardcode_direct_absolute=yes
14258 export_dynamic_flag_spec='${wl}-E'
14259 # hardcode_minus_L: Not really in the search PATH,
14260 # but as the default location of the library.
14261 hardcode_minus_L=yes
14266 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14269 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14272 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14275 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14281 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14284 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14288 # Older versions of the 11.00 compiler do not understand -b yet
14289 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14291 $as_echo_n "checking if $CC understands -b... " >&6; }
14292 if ${lt_cv_prog_compiler__b+:} false; then :
14293 $as_echo_n "(cached) " >&6
14295 lt_cv_prog_compiler__b=no
14296 save_LDFLAGS="$LDFLAGS"
14297 LDFLAGS="$LDFLAGS -b"
14298 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14299 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14300 # The linker can only warn and ignore the option if not recognized
14301 # So say no if there are warnings
14302 if test -s conftest.err; then
14303 # Append any errors to the config.log.
14304 cat conftest.err 1>&5
14305 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14306 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14307 if diff conftest.exp conftest.er2 >/dev/null; then
14308 lt_cv_prog_compiler__b=yes
14311 lt_cv_prog_compiler__b=yes
14315 LDFLAGS="$save_LDFLAGS"
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14319 $as_echo "$lt_cv_prog_compiler__b" >&6; }
14321 if test x"$lt_cv_prog_compiler__b" = xyes; then
14322 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14324 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14330 if test "$with_gnu_ld" = no; then
14331 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14332 hardcode_libdir_separator=:
14337 hardcode_shlibpath_var=no
14340 hardcode_direct=yes
14341 hardcode_direct_absolute=yes
14342 export_dynamic_flag_spec='${wl}-E'
14344 # hardcode_minus_L: Not really in the search PATH,
14345 # but as the default location of the library.
14346 hardcode_minus_L=yes
14352 irix5* | irix6* | nonstopux*)
14353 if test "$GCC" = yes; then
14354 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'
14355 # Try to use the -exported_symbol ld option, if it does not
14356 # work, assume that -exports_file does not work either and
14357 # implicitly export all symbols.
14358 # This should be the same for all languages, so no per-tag cache variable.
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14360 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14361 if ${lt_cv_irix_exported_symbol+:} false; then :
14362 $as_echo_n "(cached) " >&6
14364 save_LDFLAGS="$LDFLAGS"
14365 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14367 /* end confdefs.h. */
14368 int foo (void) { return 0; }
14370 if ac_fn_c_try_link "$LINENO"; then :
14371 lt_cv_irix_exported_symbol=yes
14373 lt_cv_irix_exported_symbol=no
14375 rm -f core conftest.err conftest.$ac_objext \
14376 conftest$ac_exeext conftest.$ac_ext
14377 LDFLAGS="$save_LDFLAGS"
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14380 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
14381 if test "$lt_cv_irix_exported_symbol" = yes; then
14382 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'
14385 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'
14386 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'
14388 archive_cmds_need_lc='no'
14389 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14390 hardcode_libdir_separator=:
14392 link_all_deplibs=yes
14396 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14397 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14399 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14401 hardcode_libdir_flag_spec='-R$libdir'
14402 hardcode_direct=yes
14403 hardcode_shlibpath_var=no
14407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14408 hardcode_direct=yes
14409 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14410 hardcode_libdir_separator=:
14411 hardcode_shlibpath_var=no
14418 if test -f /usr/libexec/ld.so; then
14419 hardcode_direct=yes
14420 hardcode_shlibpath_var=no
14421 hardcode_direct_absolute=yes
14422 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14423 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14424 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14425 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14426 export_dynamic_flag_spec='${wl}-E'
14429 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14430 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14431 hardcode_libdir_flag_spec='-R$libdir'
14434 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14435 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14445 hardcode_libdir_flag_spec='-L$libdir'
14446 hardcode_minus_L=yes
14447 allow_undefined_flag=unsupported
14448 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'
14449 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14453 if test "$GCC" = yes; then
14454 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14455 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'
14457 allow_undefined_flag=' -expect_unresolved \*'
14458 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'
14460 archive_cmds_need_lc='no'
14461 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14462 hardcode_libdir_separator=:
14465 osf4* | osf5*) # as osf3* with the addition of -msym flag
14466 if test "$GCC" = yes; then
14467 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14468 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'
14469 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14471 allow_undefined_flag=' -expect_unresolved \*'
14472 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'
14473 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~
14474 $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'
14476 # Both c and cxx compiler support -rpath directly
14477 hardcode_libdir_flag_spec='-rpath $libdir'
14479 archive_cmds_need_lc='no'
14480 hardcode_libdir_separator=:
14484 no_undefined_flag=' -z defs'
14485 if test "$GCC" = yes; then
14487 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14488 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14489 $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'
14491 case `$CC -V 2>&1` in
14494 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14495 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14496 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14500 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14501 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14502 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14506 hardcode_libdir_flag_spec='-R$libdir'
14507 hardcode_shlibpath_var=no
14509 solaris2.[0-5] | solaris2.[0-5].*) ;;
14511 # The compiler driver will combine and reorder linker options,
14512 # but understands `-z linker_flag'. GCC discards it without `$wl',
14513 # but is careful enough not to reorder.
14514 # Supported since Solaris 2.6 (maybe 2.5.1?)
14515 if test "$GCC" = yes; then
14516 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14518 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14522 link_all_deplibs=yes
14526 if test "x$host_vendor" = xsequent; then
14527 # Use $CC to link under sequent, because it throws in some extra .o
14528 # files that make .init and .fini sections work.
14529 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14531 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14533 hardcode_libdir_flag_spec='-L$libdir'
14534 hardcode_direct=yes
14535 hardcode_minus_L=yes
14536 hardcode_shlibpath_var=no
14540 case $host_vendor in
14542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14543 hardcode_direct=yes # is this really true???
14546 ## LD is ld it makes a PLAMLIB
14547 ## CC just makes a GrossModule.
14548 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14549 reload_cmds='$CC -r -o $output$reload_objs'
14553 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14554 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14557 runpath_var='LD_RUN_PATH'
14558 hardcode_shlibpath_var=no
14562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14563 hardcode_shlibpath_var=no
14564 export_dynamic_flag_spec='-Bexport'
14568 if test -d /usr/nec; then
14569 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14570 hardcode_shlibpath_var=no
14571 runpath_var=LD_RUN_PATH
14572 hardcode_runpath_var=yes
14577 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14578 no_undefined_flag='${wl}-z,text'
14579 archive_cmds_need_lc=no
14580 hardcode_shlibpath_var=no
14581 runpath_var='LD_RUN_PATH'
14583 if test "$GCC" = yes; then
14584 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14585 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14587 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14588 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14592 sysv5* | sco3.2v5* | sco5v6*)
14593 # Note: We can NOT use -z defs as we might desire, because we do not
14594 # link with -lc, and that would cause any symbols used from libc to
14595 # always be unresolved, which means just about no library would
14596 # ever link correctly. If we're not using GNU ld we use -z text
14597 # though, which does catch some bad symbols but isn't as heavy-handed
14599 no_undefined_flag='${wl}-z,text'
14600 allow_undefined_flag='${wl}-z,nodefs'
14601 archive_cmds_need_lc=no
14602 hardcode_shlibpath_var=no
14603 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14604 hardcode_libdir_separator=':'
14605 link_all_deplibs=yes
14606 export_dynamic_flag_spec='${wl}-Bexport'
14607 runpath_var='LD_RUN_PATH'
14609 if test "$GCC" = yes; then
14610 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14611 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14613 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14614 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14619 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14620 hardcode_libdir_flag_spec='-L$libdir'
14621 hardcode_shlibpath_var=no
14629 if test x$host_vendor = xsni; then
14631 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14632 export_dynamic_flag_spec='${wl}-Blargedynsym'
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14639 $as_echo "$ld_shlibs" >&6; }
14640 test "$ld_shlibs" = no && can_build_shared=no
14642 with_gnu_ld=$with_gnu_ld
14659 # Do we need to explicitly link libc?
14661 case "x$archive_cmds_need_lc" in
14663 # Assume -lc should be added
14664 archive_cmds_need_lc=yes
14666 if test "$enable_shared" = yes && test "$GCC" = yes; then
14667 case $archive_cmds in
14669 # FIXME: we may have to deal with multi-command sequences.
14672 # Test whether the compiler implicitly links with -lc since on some
14673 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14674 # to ld, don't add -lc before -lgcc.
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14676 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14677 if ${lt_cv_archive_cmds_need_lc+:} false; then :
14678 $as_echo_n "(cached) " >&6
14681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14684 (eval $ac_compile) 2>&5
14686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14687 test $ac_status = 0; } 2>conftest.err; then
14690 libobjs=conftest.$ac_objext
14692 wl=$lt_prog_compiler_wl
14693 pic_flag=$lt_prog_compiler_pic
14699 lt_save_allow_undefined_flag=$allow_undefined_flag
14700 allow_undefined_flag=
14701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14702 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14705 test $ac_status = 0; }
14707 lt_cv_archive_cmds_need_lc=no
14709 lt_cv_archive_cmds_need_lc=yes
14711 allow_undefined_flag=$lt_save_allow_undefined_flag
14713 cat conftest.err 1>&5
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14719 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14720 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14879 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14881 if test "$GCC" = yes; then
14883 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14884 *) lt_awk_arg="/^libraries:/" ;;
14887 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14888 *) lt_sed_strip_eq="s,=/,/,g" ;;
14890 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14891 case $lt_search_path_spec in
14893 # if the path contains ";" then we assume it to be the separator
14894 # otherwise default to the standard path separator (i.e. ":") - it is
14895 # assumed that no part of a normal pathname contains ";" but that should
14896 # okay in the real world where ";" in dirpaths is itself problematic.
14897 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14900 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14903 # Ok, now we have the path, separated by spaces, we can step through it
14904 # and add multilib dir if necessary.
14905 lt_tmp_lt_search_path_spec=
14906 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14907 for lt_sys_path in $lt_search_path_spec; do
14908 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14909 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14911 test -d "$lt_sys_path" && \
14912 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14915 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14916 BEGIN {RS=" "; FS="/|\n";} {
14919 for (lt_i = NF; lt_i > 0; lt_i--) {
14920 if ($lt_i != "" && $lt_i != ".") {
14921 if ($lt_i == "..") {
14924 if (lt_count == 0) {
14925 lt_foo="/" $lt_i lt_foo;
14932 if (lt_foo != "") { lt_freq[lt_foo]++; }
14933 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14935 # AWK program above erroneously prepends '/' to C:/dos/paths
14938 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14939 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14941 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14943 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14945 library_names_spec=
14946 libname_spec='lib$name'
14950 postuninstall_cmds=
14954 shlibpath_overrides_runpath=unknown
14956 dynamic_linker="$host_os ld.so"
14957 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14958 need_lib_prefix=unknown
14959 hardcode_into_libs=no
14961 # when you set need_version to no, make sure it does not cause -set_version
14962 # flags to be left without arguments
14963 need_version=unknown
14967 version_type=linux # correct to gnu/linux during the next big refactor
14968 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14969 shlibpath_var=LIBPATH
14971 # AIX 3 has no versioning support, so we append a major version to the name.
14972 soname_spec='${libname}${release}${shared_ext}$major'
14976 version_type=linux # correct to gnu/linux during the next big refactor
14979 hardcode_into_libs=yes
14980 if test "$host_cpu" = ia64; then
14981 # AIX 5 supports IA64
14982 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14983 shlibpath_var=LD_LIBRARY_PATH
14985 # With GCC up to 2.95.x, collect2 would create an import file
14986 # for dependence libraries. The import file would start with
14987 # the line `#! .'. This would cause the generated library to
14988 # depend on `.', always an invalid library. This was fixed in
14989 # development snapshots of GCC prior to 3.0.
14991 aix4 | aix4.[01] | aix4.[01].*)
14992 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14994 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14997 can_build_shared=no
15001 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15002 # soname into executable. Probably we can add versioning support to
15003 # collect2, so additional links can be useful in future.
15004 if test "$aix_use_runtimelinking" = yes; then
15005 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15006 # instead of lib<name>.a to let people know that these are not
15007 # typical AIX shared libraries.
15008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15010 # We preserve .a as extension for shared libraries through AIX4.2
15011 # and later when we are not doing run time linking.
15012 library_names_spec='${libname}${release}.a $libname.a'
15013 soname_spec='${libname}${release}${shared_ext}$major'
15015 shlibpath_var=LIBPATH
15022 # Since July 2007 AmigaOS4 officially supports .so libraries.
15023 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15027 library_names_spec='$libname.ixlibrary $libname.a'
15028 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15029 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'
15035 library_names_spec='${libname}${shared_ext}'
15036 dynamic_linker="$host_os ld.so"
15037 shlibpath_var=LIBRARY_PATH
15041 version_type=linux # correct to gnu/linux during the next big refactor
15043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15044 soname_spec='${libname}${release}${shared_ext}$major'
15045 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15046 shlibpath_var=LD_LIBRARY_PATH
15047 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15048 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15049 # the default ld.so.conf also contains /usr/contrib/lib and
15050 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15051 # libtool to hard-code these into programs
15054 cygwin* | mingw* | pw32* | cegcc*)
15055 version_type=windows
15060 case $GCC,$cc_basename in
15063 library_names_spec='$libname.dll.a'
15064 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15065 postinstall_cmds='base_file=`basename \${file}`~
15066 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15067 dldir=$destdir/`dirname \$dlpath`~
15068 test -d \$dldir || mkdir -p \$dldir~
15069 $install_prog $dir/$dlname \$dldir/$dlname~
15070 chmod a+x \$dldir/$dlname~
15071 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15072 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15074 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15075 dlpath=$dir/\$dldll~
15077 shlibpath_overrides_runpath=yes
15081 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15082 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15084 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15087 # MinGW DLLs use traditional 'lib' prefix
15088 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15091 # pw32 DLLs use 'pw' prefix rather than 'lib'
15092 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15095 dynamic_linker='Win32 ld.exe'
15100 libname_spec='$name'
15101 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15102 library_names_spec='${libname}.dll.lib'
15106 sys_lib_search_path_spec=
15109 for lt_path in $LIB
15112 # Let DOS variable expansion print the short 8.3 style file name.
15113 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15114 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15117 # Convert to MSYS style.
15118 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15121 # Convert to unix form, then to dos form, then back to unix form
15122 # but this time dos style (no spaces!) so that the unix form looks
15123 # like /cygdrive/c/PROGRA~1:/cygdr...
15124 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15125 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15126 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15129 sys_lib_search_path_spec="$LIB"
15130 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15131 # It is most probably a Windows format PATH.
15132 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15134 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15136 # FIXME: find the short name or the path components, as spaces are
15137 # common. (e.g. "Program Files" -> "PROGRA~1")
15141 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15142 postinstall_cmds='base_file=`basename \${file}`~
15143 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15144 dldir=$destdir/`dirname \$dlpath`~
15145 test -d \$dldir || mkdir -p \$dldir~
15146 $install_prog $dir/$dlname \$dldir/$dlname'
15147 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15148 dlpath=$dir/\$dldll~
15150 shlibpath_overrides_runpath=yes
15151 dynamic_linker='Win32 link.exe'
15155 # Assume MSVC wrapper
15156 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15157 dynamic_linker='Win32 ld.exe'
15160 # FIXME: first we should search . and the directory the executable is in
15164 darwin* | rhapsody*)
15165 dynamic_linker="$host_os dyld"
15166 version_type=darwin
15169 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15170 soname_spec='${libname}${release}${major}$shared_ext'
15171 shlibpath_overrides_runpath=yes
15172 shlibpath_var=DYLD_LIBRARY_PATH
15173 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15175 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15176 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15180 version_type=linux # correct to gnu/linux during the next big refactor
15183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15184 soname_spec='${libname}${release}${shared_ext}$major'
15185 shlibpath_var=LD_LIBRARY_PATH
15188 freebsd* | dragonfly*)
15189 # DragonFly does not have aout. When/if they implement a new
15190 # versioning mechanism, adjust this.
15191 if test -x /usr/bin/objformat; then
15192 objformat=`/usr/bin/objformat`
15195 freebsd[23].*) objformat=aout ;;
15196 *) objformat=elf ;;
15199 version_type=freebsd-$objformat
15200 case $version_type in
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15207 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15211 shlibpath_var=LD_LIBRARY_PATH
15214 shlibpath_overrides_runpath=yes
15216 freebsd3.[01]* | freebsdelf3.[01]*)
15217 shlibpath_overrides_runpath=yes
15218 hardcode_into_libs=yes
15220 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15221 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15222 shlibpath_overrides_runpath=no
15223 hardcode_into_libs=yes
15225 *) # from 4.6 on, and DragonFly
15226 shlibpath_overrides_runpath=yes
15227 hardcode_into_libs=yes
15233 version_type=linux # correct to gnu/linux during the next big refactor
15236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15237 soname_spec='${libname}${release}${shared_ext}$major'
15238 shlibpath_var=LD_LIBRARY_PATH
15239 shlibpath_overrides_runpath=no
15240 hardcode_into_libs=yes
15244 version_type=linux # correct to gnu/linux during the next big refactor
15247 dynamic_linker="$host_os runtime_loader"
15248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15249 soname_spec='${libname}${release}${shared_ext}$major'
15250 shlibpath_var=LIBRARY_PATH
15251 shlibpath_overrides_runpath=yes
15252 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15253 hardcode_into_libs=yes
15256 hpux9* | hpux10* | hpux11*)
15257 # Give a soname corresponding to the major version so that dld.sl refuses to
15258 # link against other versions.
15265 hardcode_into_libs=yes
15266 dynamic_linker="$host_os dld.so"
15267 shlibpath_var=LD_LIBRARY_PATH
15268 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15270 soname_spec='${libname}${release}${shared_ext}$major'
15271 if test "X$HPUX_IA64_MODE" = X32; then
15272 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15274 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15280 hardcode_into_libs=yes
15281 dynamic_linker="$host_os dld.sl"
15282 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15283 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15285 soname_spec='${libname}${release}${shared_ext}$major'
15286 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15287 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15291 dynamic_linker="$host_os dld.sl"
15292 shlibpath_var=SHLIB_PATH
15293 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15295 soname_spec='${libname}${release}${shared_ext}$major'
15298 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15299 postinstall_cmds='chmod 555 $lib'
15300 # or fails outright, so override atomically:
15301 install_override_mode=555
15305 version_type=linux # correct to gnu/linux during the next big refactor
15308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15309 soname_spec='${libname}${release}${shared_ext}$major'
15310 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15311 shlibpath_var=LD_LIBRARY_PATH
15312 shlibpath_overrides_runpath=no
15313 hardcode_into_libs=yes
15316 irix5* | irix6* | nonstopux*)
15318 nonstopux*) version_type=nonstopux ;;
15320 if test "$lt_cv_prog_gnu_ld" = yes; then
15321 version_type=linux # correct to gnu/linux during the next big refactor
15328 soname_spec='${libname}${release}${shared_ext}$major'
15329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15331 irix5* | nonstopux*)
15332 libsuff= shlibsuff=
15335 case $LD in # libtool.m4 will add one of these switches to LD
15336 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15337 libsuff= shlibsuff= libmagic=32-bit;;
15338 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15339 libsuff=32 shlibsuff=N32 libmagic=N32;;
15340 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15341 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15342 *) libsuff= shlibsuff= libmagic=never-match;;
15346 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15347 shlibpath_overrides_runpath=no
15348 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15349 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15350 hardcode_into_libs=yes
15353 # No shared lib support for Linux oldld, aout, or coff.
15354 linux*oldld* | linux*aout* | linux*coff*)
15358 # This must be glibc/ELF.
15359 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15360 version_type=linux # correct to gnu/linux during the next big refactor
15363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15364 soname_spec='${libname}${release}${shared_ext}$major'
15365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15366 shlibpath_var=LD_LIBRARY_PATH
15367 shlibpath_overrides_runpath=no
15369 # Some binutils ld are patched to set DT_RUNPATH
15370 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15371 $as_echo_n "(cached) " >&6
15373 lt_cv_shlibpath_overrides_runpath=no
15374 save_LDFLAGS=$LDFLAGS
15375 save_libdir=$libdir
15376 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15377 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15379 /* end confdefs.h. */
15389 if ac_fn_c_try_link "$LINENO"; then :
15390 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15391 lt_cv_shlibpath_overrides_runpath=yes
15394 rm -f core conftest.err conftest.$ac_objext \
15395 conftest$ac_exeext conftest.$ac_ext
15396 LDFLAGS=$save_LDFLAGS
15397 libdir=$save_libdir
15401 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15403 # This implies no fast_install, which is unacceptable.
15404 # Some rework will be needed to allow for fast_install
15405 # before this can be enabled.
15406 hardcode_into_libs=yes
15408 # Add ABI-specific directories to the system library path.
15409 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15411 # Append ld.so.conf contents to the search path
15412 if test -f /etc/ld.so.conf; then
15413 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' ' '`
15414 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15418 # We used to test for /lib/ld.so.1 and disable shared libraries on
15419 # powerpc, because MkLinux only supported shared libraries with the
15420 # GNU dynamic linker. Since this was broken with cross compilers,
15421 # most powerpc-linux boxes support dynamic linking these days and
15422 # people can always --disable-shared, the test was removed, and we
15423 # assume the GNU/Linux dynamic linker is in use.
15424 dynamic_linker='GNU/Linux ld.so'
15431 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15434 dynamic_linker='NetBSD (a.out) ld.so'
15436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15437 soname_spec='${libname}${release}${shared_ext}$major'
15438 dynamic_linker='NetBSD ld.elf_so'
15440 shlibpath_var=LD_LIBRARY_PATH
15441 shlibpath_overrides_runpath=yes
15442 hardcode_into_libs=yes
15446 version_type=linux # correct to gnu/linux during the next big refactor
15447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15448 shlibpath_var=LD_LIBRARY_PATH
15449 shlibpath_overrides_runpath=yes
15456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15457 soname_spec='${libname}${release}${shared_ext}$major'
15458 shlibpath_var=LD_LIBRARY_PATH
15459 shlibpath_overrides_runpath=no
15460 hardcode_into_libs=yes
15461 dynamic_linker='ldqnx.so'
15466 sys_lib_dlsearch_path_spec="/usr/lib"
15468 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15470 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15471 *) need_version=no ;;
15473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15475 shlibpath_var=LD_LIBRARY_PATH
15476 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15478 openbsd2.[89] | openbsd2.[89].*)
15479 shlibpath_overrides_runpath=no
15482 shlibpath_overrides_runpath=yes
15486 shlibpath_overrides_runpath=yes
15491 libname_spec='$name'
15494 library_names_spec='$libname${shared_ext} $libname.a'
15495 dynamic_linker='OS/2 ld.exe'
15496 shlibpath_var=LIBPATH
15499 osf3* | osf4* | osf5*)
15503 soname_spec='${libname}${release}${shared_ext}$major'
15504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15505 shlibpath_var=LD_LIBRARY_PATH
15506 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15507 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15515 version_type=linux # correct to gnu/linux during the next big refactor
15518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15519 soname_spec='${libname}${release}${shared_ext}$major'
15520 shlibpath_var=LD_LIBRARY_PATH
15521 shlibpath_overrides_runpath=yes
15522 hardcode_into_libs=yes
15523 # ldd complains unless libraries are executable
15524 postinstall_cmds='chmod +x $lib'
15529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15530 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15531 shlibpath_var=LD_LIBRARY_PATH
15532 shlibpath_overrides_runpath=yes
15533 if test "$with_gnu_ld" = yes; then
15540 version_type=linux # correct to gnu/linux during the next big refactor
15541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15542 soname_spec='${libname}${release}${shared_ext}$major'
15543 shlibpath_var=LD_LIBRARY_PATH
15544 case $host_vendor in
15546 shlibpath_overrides_runpath=no
15548 runpath_var=LD_RUN_PATH
15556 shlibpath_overrides_runpath=no
15557 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15563 if test -d /usr/nec ;then
15564 version_type=linux # correct to gnu/linux during the next big refactor
15565 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15566 soname_spec='$libname${shared_ext}.$major'
15567 shlibpath_var=LD_LIBRARY_PATH
15571 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15572 version_type=freebsd-elf
15575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15576 soname_spec='${libname}${release}${shared_ext}$major'
15577 shlibpath_var=LD_LIBRARY_PATH
15578 shlibpath_overrides_runpath=yes
15579 hardcode_into_libs=yes
15580 if test "$with_gnu_ld" = yes; then
15581 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15583 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15586 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15590 sys_lib_dlsearch_path_spec='/usr/lib'
15594 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15595 version_type=linux # correct to gnu/linux during the next big refactor
15598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15599 shlibpath_var=LD_LIBRARY_PATH
15600 shlibpath_overrides_runpath=no
15601 hardcode_into_libs=yes
15605 version_type=linux # correct to gnu/linux during the next big refactor
15606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15607 soname_spec='${libname}${release}${shared_ext}$major'
15608 shlibpath_var=LD_LIBRARY_PATH
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15616 $as_echo "$dynamic_linker" >&6; }
15617 test "$dynamic_linker" = no && can_build_shared=no
15619 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15620 if test "$GCC" = yes; then
15621 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15624 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15625 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15627 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15628 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15723 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15725 if test -n "$hardcode_libdir_flag_spec" ||
15726 test -n "$runpath_var" ||
15727 test "X$hardcode_automatic" = "Xyes" ; then
15729 # We can hardcode non-existent directories.
15730 if test "$hardcode_direct" != no &&
15731 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15732 # have to relink, otherwise we might link with an installed library
15733 # when we should be linking with a yet-to-be-installed one
15734 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15735 test "$hardcode_minus_L" != no; then
15736 # Linking always hardcodes the temporary library directory.
15737 hardcode_action=relink
15739 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15740 hardcode_action=immediate
15743 # We cannot hardcode anything, or else we can only hardcode existing
15745 hardcode_action=unsupported
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15748 $as_echo "$hardcode_action" >&6; }
15750 if test "$hardcode_action" = relink ||
15751 test "$inherit_rpath" = yes; then
15752 # Fast installation is not supported
15753 enable_fast_install=no
15754 elif test "$shlibpath_overrides_runpath" = yes ||
15755 test "$enable_shared" = no; then
15756 # Fast installation is not necessary
15757 enable_fast_install=needless
15765 if test "x$enable_dlopen" != xyes; then
15766 enable_dlopen=unknown
15767 enable_dlopen_self=unknown
15768 enable_dlopen_self_static=unknown
15775 lt_cv_dlopen="load_add_on"
15777 lt_cv_dlopen_self=yes
15780 mingw* | pw32* | cegcc*)
15781 lt_cv_dlopen="LoadLibrary"
15786 lt_cv_dlopen="dlopen"
15791 # if libdl is installed we need to link against it
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15793 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15794 if ${ac_cv_lib_dl_dlopen+:} false; then :
15795 $as_echo_n "(cached) " >&6
15797 ac_check_lib_save_LIBS=$LIBS
15799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15800 /* end confdefs.h. */
15802 /* Override any GCC internal prototype to avoid an error.
15803 Use char because int might match the return type of a GCC
15804 builtin and then its argument prototype would still apply. */
15817 if ac_fn_c_try_link "$LINENO"; then :
15818 ac_cv_lib_dl_dlopen=yes
15820 ac_cv_lib_dl_dlopen=no
15822 rm -f core conftest.err conftest.$ac_objext \
15823 conftest$ac_exeext conftest.$ac_ext
15824 LIBS=$ac_check_lib_save_LIBS
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15827 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15828 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15829 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15832 lt_cv_dlopen="dyld"
15834 lt_cv_dlopen_self=yes
15841 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15842 if test "x$ac_cv_func_shl_load" = xyes; then :
15843 lt_cv_dlopen="shl_load"
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15846 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15847 if ${ac_cv_lib_dld_shl_load+:} false; then :
15848 $as_echo_n "(cached) " >&6
15850 ac_check_lib_save_LIBS=$LIBS
15852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15853 /* end confdefs.h. */
15855 /* Override any GCC internal prototype to avoid an error.
15856 Use char because int might match the return type of a GCC
15857 builtin and then its argument prototype would still apply. */
15865 return shl_load ();
15870 if ac_fn_c_try_link "$LINENO"; then :
15871 ac_cv_lib_dld_shl_load=yes
15873 ac_cv_lib_dld_shl_load=no
15875 rm -f core conftest.err conftest.$ac_objext \
15876 conftest$ac_exeext conftest.$ac_ext
15877 LIBS=$ac_check_lib_save_LIBS
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15880 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15881 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15882 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15884 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15885 if test "x$ac_cv_func_dlopen" = xyes; then :
15886 lt_cv_dlopen="dlopen"
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15889 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15890 if ${ac_cv_lib_dl_dlopen+:} false; then :
15891 $as_echo_n "(cached) " >&6
15893 ac_check_lib_save_LIBS=$LIBS
15895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15896 /* end confdefs.h. */
15898 /* Override any GCC internal prototype to avoid an error.
15899 Use char because int might match the return type of a GCC
15900 builtin and then its argument prototype would still apply. */
15913 if ac_fn_c_try_link "$LINENO"; then :
15914 ac_cv_lib_dl_dlopen=yes
15916 ac_cv_lib_dl_dlopen=no
15918 rm -f core conftest.err conftest.$ac_objext \
15919 conftest$ac_exeext conftest.$ac_ext
15920 LIBS=$ac_check_lib_save_LIBS
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15923 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15924 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15925 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15928 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15929 if ${ac_cv_lib_svld_dlopen+:} false; then :
15930 $as_echo_n "(cached) " >&6
15932 ac_check_lib_save_LIBS=$LIBS
15933 LIBS="-lsvld $LIBS"
15934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15935 /* end confdefs.h. */
15937 /* Override any GCC internal prototype to avoid an error.
15938 Use char because int might match the return type of a GCC
15939 builtin and then its argument prototype would still apply. */
15952 if ac_fn_c_try_link "$LINENO"; then :
15953 ac_cv_lib_svld_dlopen=yes
15955 ac_cv_lib_svld_dlopen=no
15957 rm -f core conftest.err conftest.$ac_objext \
15958 conftest$ac_exeext conftest.$ac_ext
15959 LIBS=$ac_check_lib_save_LIBS
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15962 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15963 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15964 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15967 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15968 if ${ac_cv_lib_dld_dld_link+:} false; then :
15969 $as_echo_n "(cached) " >&6
15971 ac_check_lib_save_LIBS=$LIBS
15973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15974 /* end confdefs.h. */
15976 /* Override any GCC internal prototype to avoid an error.
15977 Use char because int might match the return type of a GCC
15978 builtin and then its argument prototype would still apply. */
15986 return dld_link ();
15991 if ac_fn_c_try_link "$LINENO"; then :
15992 ac_cv_lib_dld_dld_link=yes
15994 ac_cv_lib_dld_dld_link=no
15996 rm -f core conftest.err conftest.$ac_objext \
15997 conftest$ac_exeext conftest.$ac_ext
15998 LIBS=$ac_check_lib_save_LIBS
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16001 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16002 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16003 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16024 if test "x$lt_cv_dlopen" != xno; then
16030 case $lt_cv_dlopen in
16032 save_CPPFLAGS="$CPPFLAGS"
16033 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16035 save_LDFLAGS="$LDFLAGS"
16036 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16039 LIBS="$lt_cv_dlopen_libs $LIBS"
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16042 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
16043 if ${lt_cv_dlopen_self+:} false; then :
16044 $as_echo_n "(cached) " >&6
16046 if test "$cross_compiling" = yes; then :
16047 lt_cv_dlopen_self=cross
16049 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16050 lt_status=$lt_dlunknown
16051 cat > conftest.$ac_ext <<_LT_EOF
16052 #line $LINENO "configure"
16053 #include "confdefs.h"
16062 # define LT_DLGLOBAL RTLD_GLOBAL
16065 # define LT_DLGLOBAL DL_GLOBAL
16067 # define LT_DLGLOBAL 0
16071 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16072 find out it does not work in some platform. */
16073 #ifndef LT_DLLAZY_OR_NOW
16075 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16078 # define LT_DLLAZY_OR_NOW DL_LAZY
16081 # define LT_DLLAZY_OR_NOW RTLD_NOW
16084 # define LT_DLLAZY_OR_NOW DL_NOW
16086 # define LT_DLLAZY_OR_NOW 0
16093 /* When -fvisbility=hidden is used, assume the code has been annotated
16094 correspondingly for the symbols needed. */
16095 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16096 int fnord () __attribute__((visibility("default")));
16099 int fnord () { return 42; }
16102 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16103 int status = $lt_dlunknown;
16107 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16110 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16111 else puts (dlerror ());
16113 /* dlclose (self); */
16121 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16122 (eval $ac_link) 2>&5
16124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16125 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16126 (./conftest; exit; ) >&5 2>/dev/null
16128 case x$lt_status in
16129 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16130 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16131 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16134 # compilation failed
16135 lt_cv_dlopen_self=no
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16143 $as_echo "$lt_cv_dlopen_self" >&6; }
16145 if test "x$lt_cv_dlopen_self" = xyes; then
16146 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16148 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16149 if ${lt_cv_dlopen_self_static+:} false; then :
16150 $as_echo_n "(cached) " >&6
16152 if test "$cross_compiling" = yes; then :
16153 lt_cv_dlopen_self_static=cross
16155 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16156 lt_status=$lt_dlunknown
16157 cat > conftest.$ac_ext <<_LT_EOF
16158 #line $LINENO "configure"
16159 #include "confdefs.h"
16168 # define LT_DLGLOBAL RTLD_GLOBAL
16171 # define LT_DLGLOBAL DL_GLOBAL
16173 # define LT_DLGLOBAL 0
16177 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16178 find out it does not work in some platform. */
16179 #ifndef LT_DLLAZY_OR_NOW
16181 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16184 # define LT_DLLAZY_OR_NOW DL_LAZY
16187 # define LT_DLLAZY_OR_NOW RTLD_NOW
16190 # define LT_DLLAZY_OR_NOW DL_NOW
16192 # define LT_DLLAZY_OR_NOW 0
16199 /* When -fvisbility=hidden is used, assume the code has been annotated
16200 correspondingly for the symbols needed. */
16201 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16202 int fnord () __attribute__((visibility("default")));
16205 int fnord () { return 42; }
16208 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16209 int status = $lt_dlunknown;
16213 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16216 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16217 else puts (dlerror ());
16219 /* dlclose (self); */
16227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16228 (eval $ac_link) 2>&5
16230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16231 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16232 (./conftest; exit; ) >&5 2>/dev/null
16234 case x$lt_status in
16235 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16236 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16237 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16240 # compilation failed
16241 lt_cv_dlopen_self_static=no
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16249 $as_echo "$lt_cv_dlopen_self_static" >&6; }
16252 CPPFLAGS="$save_CPPFLAGS"
16253 LDFLAGS="$save_LDFLAGS"
16258 case $lt_cv_dlopen_self in
16259 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16260 *) enable_dlopen_self=unknown ;;
16263 case $lt_cv_dlopen_self_static in
16264 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16265 *) enable_dlopen_self_static=unknown ;;
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16288 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16289 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16290 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16291 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16293 $as_echo "yes" >&6; }
16295 # FIXME - insert some real tests, host_os isn't really good enough
16298 if test -n "$STRIP" ; then
16299 striplib="$STRIP -x"
16300 old_striplib="$STRIP -S"
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16302 $as_echo "yes" >&6; }
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16305 $as_echo "no" >&6; }
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16310 $as_echo "no" >&6; }
16326 # Report which library types will actually be built
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16328 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16330 $as_echo "$can_build_shared" >&6; }
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16333 $as_echo_n "checking whether to build shared libraries... " >&6; }
16334 test "$can_build_shared" = "no" && enable_shared=no
16336 # On AIX, shared libraries and static libraries use the same namespace, and
16337 # are all built from PIC.
16340 test "$enable_shared" = yes && enable_static=no
16341 if test -n "$RANLIB"; then
16342 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16343 postinstall_cmds='$RANLIB $lib'
16348 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16349 test "$enable_shared" = yes && enable_static=no
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16354 $as_echo "$enable_shared" >&6; }
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16357 $as_echo_n "checking whether to build static libraries... " >&6; }
16358 # Make sure either enable_shared or enable_static is yes.
16359 test "$enable_shared" = yes || enable_static=yes
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16361 $as_echo "$enable_static" >&6; }
16368 ac_cpp='$CPP $CPPFLAGS'
16369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16389 ac_config_commands="$ac_config_commands libtool"
16394 # Only expand once:
16400 # Define a configure option for an alternate module directory
16402 # Check whether --with-xorg-module-dir was given.
16403 if test "${with_xorg_module_dir+set}" = set; then :
16404 withval=$with_xorg_module_dir; moduledir="$withval"
16406 moduledir="$libdir/xorg/modules"
16409 # Check whether --enable-pciaccess was given.
16410 if test "${enable_pciaccess+set}" = set; then :
16411 enableval=$enable_pciaccess; PCIACCESS=$enableval
16417 # Store the list of server defined optional extensions in REQUIRED_MODULES
16420 SAVE_CFLAGS="$CFLAGS"
16421 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
16422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16423 /* end confdefs.h. */
16425 #include "xorg-server.h"
16427 #error RANDR not defined
16438 if ac_fn_c_try_compile "$LINENO"; then :
16443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16444 CFLAGS="$SAVE_CFLAGS"
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
16446 $as_echo_n "checking if RANDR is defined... " >&6; }
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
16448 $as_echo "$_EXT_CHECK" >&6; }
16449 if test "$_EXT_CHECK" != no; then
16450 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
16455 SAVE_CFLAGS="$CFLAGS"
16456 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
16457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16458 /* end confdefs.h. */
16460 #include "xorg-server.h"
16461 #if !defined RENDER
16462 #error RENDER not defined
16473 if ac_fn_c_try_compile "$LINENO"; then :
16478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16479 CFLAGS="$SAVE_CFLAGS"
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
16481 $as_echo_n "checking if RENDER is defined... " >&6; }
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
16483 $as_echo "$_EXT_CHECK" >&6; }
16484 if test "$_EXT_CHECK" != no; then
16485 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
16490 SAVE_CFLAGS="$CFLAGS"
16491 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
16492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16493 /* end confdefs.h. */
16495 #include "xorg-server.h"
16497 #error XV not defined
16508 if ac_fn_c_try_compile "$LINENO"; then :
16513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16514 CFLAGS="$SAVE_CFLAGS"
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
16516 $as_echo_n "checking if XV is defined... " >&6; }
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
16518 $as_echo "$_EXT_CHECK" >&6; }
16519 if test "$_EXT_CHECK" != no; then
16520 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
16524 # Obtain compiler/linker options for the driver dependencies
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
16528 $as_echo_n "checking for XORG... " >&6; }
16530 if test -n "$XORG_CFLAGS"; then
16531 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
16532 elif test -n "$PKG_CONFIG"; then
16533 if test -n "$PKG_CONFIG" && \
16534 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
16535 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
16537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16538 test $ac_status = 0; }; then
16539 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
16546 if test -n "$XORG_LIBS"; then
16547 pkg_cv_XORG_LIBS="$XORG_LIBS"
16548 elif test -n "$PKG_CONFIG"; then
16549 if test -n "$PKG_CONFIG" && \
16550 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
16551 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
16553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16554 test $ac_status = 0; }; then
16555 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
16565 if test $pkg_failed = yes; then
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16567 $as_echo "no" >&6; }
16569 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16570 _pkg_short_errors_supported=yes
16572 _pkg_short_errors_supported=no
16574 if test $_pkg_short_errors_supported = yes; then
16575 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
16577 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
16579 # Put the nasty error message in config.log where it belongs
16580 echo "$XORG_PKG_ERRORS" >&5
16582 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
16586 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16587 installed software in a non-standard prefix.
16589 Alternatively, you may set the environment variables XORG_CFLAGS
16590 and XORG_LIBS to avoid the need to call pkg-config.
16591 See the pkg-config man page for more details." "$LINENO" 5
16593 elif test $pkg_failed = untried; then
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16595 $as_echo "no" >&6; }
16596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16598 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16599 is in your PATH or set the PKG_CONFIG environment variable to the full
16600 path to pkg-config.
16602 Alternatively, you may set the environment variables XORG_CFLAGS
16603 and XORG_LIBS to avoid the need to call pkg-config.
16604 See the pkg-config man page for more details.
16606 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16607 See \`config.log' for more details" "$LINENO" 5; }
16610 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
16611 XORG_LIBS=$pkg_cv_XORG_LIBS
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16613 $as_echo "yes" >&6; }
16617 save_CFLAGS="$CFLAGS"
16618 CFLAGS="$XORG_CFLAGS"
16619 ac_fn_c_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\"
16621 if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = xyes; then :
16623 $as_echo "#define HAVE_ISA 1" >>confdefs.h
16627 CFLAGS="$save_CFLAGS"
16629 if test "x$PCIACCESS" = xyes; then
16631 PCIACCESS_FALSE='#'
16637 if test "x$PCIACCESS" = xyes; then
16639 $as_echo "#define PCIACCESS 1" >>confdefs.h
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
16644 $as_echo_n "checking for PCIACCESS... " >&6; }
16646 if test -n "$PCIACCESS_CFLAGS"; then
16647 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
16648 elif test -n "$PKG_CONFIG"; then
16649 if test -n "$PKG_CONFIG" && \
16650 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
16651 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
16653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16654 test $ac_status = 0; }; then
16655 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
16662 if test -n "$PCIACCESS_LIBS"; then
16663 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
16664 elif test -n "$PKG_CONFIG"; then
16665 if test -n "$PKG_CONFIG" && \
16666 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
16667 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
16669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16670 test $ac_status = 0; }; then
16671 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
16681 if test $pkg_failed = yes; then
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16683 $as_echo "no" >&6; }
16685 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16686 _pkg_short_errors_supported=yes
16688 _pkg_short_errors_supported=no
16690 if test $_pkg_short_errors_supported = yes; then
16691 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
16693 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
16695 # Put the nasty error message in config.log where it belongs
16696 echo "$PCIACCESS_PKG_ERRORS" >&5
16698 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
16700 $PCIACCESS_PKG_ERRORS
16702 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16703 installed software in a non-standard prefix.
16705 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
16706 and PCIACCESS_LIBS to avoid the need to call pkg-config.
16707 See the pkg-config man page for more details." "$LINENO" 5
16709 elif test $pkg_failed = untried; then
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16711 $as_echo "no" >&6; }
16712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16714 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16715 is in your PATH or set the PKG_CONFIG environment variable to the full
16716 path to pkg-config.
16718 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
16719 and PCIACCESS_LIBS to avoid the need to call pkg-config.
16720 See the pkg-config man page for more details.
16722 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16723 See \`config.log' for more details" "$LINENO" 5; }
16726 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
16727 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16729 $as_echo "yes" >&6; }
16732 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
16735 # Checks for libraries.
16743 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
16745 cat >confcache <<\_ACEOF
16746 # This file is a shell script that caches the results of configure
16747 # tests run on this system so they can be shared between configure
16748 # scripts and configure runs, see configure's option --config-cache.
16749 # It is not useful on other systems. If it contains results you don't
16750 # want to keep, you may remove or edit it.
16752 # config.status only pays attention to the cache file if you give it
16753 # the --recheck option to rerun configure.
16755 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16756 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16757 # following values.
16761 # The following way of writing the cache mishandles newlines in values,
16762 # but we know of no workaround that is simple, portable, and efficient.
16763 # So, we kill variables containing newlines.
16764 # Ultrix sh set writes to stderr and can't be redirected directly,
16765 # and sets the high bit in the cache file unless we assign to the vars.
16767 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16768 eval ac_val=\$$ac_var
16772 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16773 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16776 _ | IFS | as_nl) ;; #(
16777 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16778 *) { eval $ac_var=; unset $ac_var;} ;;
16784 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16785 *${as_nl}ac_space=\ *)
16786 # `set' does not quote correctly, so add quotes: double-quote
16787 # substitution turns \\\\ into \\, and sed turns \\ into \.
16790 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16793 # `set' quotes correctly as required by POSIX, so do not add quotes.
16794 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16803 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16805 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16807 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16808 if test -w "$cache_file"; then
16809 if test "x$cache_file" != "x/dev/null"; then
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16811 $as_echo "$as_me: updating cache $cache_file" >&6;}
16812 if test ! -f "$cache_file" || test -h "$cache_file"; then
16813 cat confcache >"$cache_file"
16815 case $cache_file in #(
16817 mv -f confcache "$cache_file"$$ &&
16818 mv -f "$cache_file"$$ "$cache_file" ;; #(
16820 mv -f confcache "$cache_file" ;;
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16826 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16831 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16832 # Let make expand exec_prefix.
16833 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16835 DEFS=-DHAVE_CONFIG_H
16840 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16841 # 1. Remove the extension, and $U if already installed.
16842 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16843 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16844 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16845 # will be set to the directory where LIBOBJS objects are built.
16846 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16847 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16849 LIBOBJS=$ac_libobjs
16851 LTLIBOBJS=$ac_ltlibobjs
16854 if test -n "$EXEEXT"; then
16856 am__EXEEXT_FALSE='#'
16858 am__EXEEXT_TRUE='#'
16862 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16863 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16866 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16867 as_fn_error $? "conditional \"AMDEP\" was never defined.
16868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16870 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16871 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16874 if test -z "${PCIACCESS_TRUE}" && test -z "${PCIACCESS_FALSE}"; then
16875 as_fn_error $? "conditional \"PCIACCESS\" was never defined.
16876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16879 : "${CONFIG_STATUS=./config.status}"
16881 ac_clean_files_save=$ac_clean_files
16882 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16884 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16886 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16888 # Generated by $as_me.
16889 # Run this file to recreate the current configuration.
16890 # Compiler output produced by configure, useful for debugging
16891 # configure, is in config.log if it exists.
16894 ac_cs_recheck=false
16897 SHELL=\${CONFIG_SHELL-$SHELL}
16900 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16901 ## -------------------- ##
16902 ## M4sh Initialization. ##
16903 ## -------------------- ##
16905 # Be more Bourne compatible
16906 DUALCASE=1; export DUALCASE # for MKS sh
16907 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16910 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16911 # is contrary to our usage. Disable this feature.
16912 alias -g '${1+"$@"}'='"$@"'
16913 setopt NO_GLOB_SUBST
16915 case `(set -o) 2>/dev/null` in #(
16927 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16928 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16929 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16930 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16931 # Prefer a ksh shell builtin over an external printf program on Solaris,
16932 # but without wasting forks for bash or zsh.
16933 if test -z "$BASH_VERSION$ZSH_VERSION" \
16934 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16935 as_echo='print -r --'
16936 as_echo_n='print -rn --'
16937 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16938 as_echo='printf %s\n'
16939 as_echo_n='printf %s'
16941 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16942 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16943 as_echo_n='/usr/ucb/echo -n'
16945 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16946 as_echo_n_body='eval
16950 expr "X$arg" : "X\\(.*\\)$as_nl";
16951 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16953 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16955 export as_echo_n_body
16956 as_echo_n='sh -c $as_echo_n_body as_echo'
16958 export as_echo_body
16959 as_echo='sh -c $as_echo_body as_echo'
16962 # The user is always right.
16963 if test "${PATH_SEPARATOR+set}" != set; then
16965 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16966 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16973 # We need space, tab and new line, in precisely that order. Quoting is
16974 # there to prevent editors from complaining about space-tab.
16975 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16976 # splitting by setting IFS to empty value.)
16979 # Find who we are. Look in the path if we contain no directory separator.
16982 *[\\/]* ) as_myself=$0 ;;
16983 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16984 for as_dir in $PATH
16987 test -z "$as_dir" && as_dir=.
16988 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16994 # We did not find ourselves, most probably we were run as `sh COMMAND'
16995 # in which case we are not to be found in the path.
16996 if test "x$as_myself" = x; then
16999 if test ! -f "$as_myself"; then
17000 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17004 # Unset variables that we do not need and which cause bugs (e.g. in
17005 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17006 # suppresses any "Segmentation fault" message there. '((' could
17007 # trigger a bug in pdksh 5.2.14.
17008 for as_var in BASH_ENV ENV MAIL MAILPATH
17009 do eval test x\${$as_var+set} = xset \
17010 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17023 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17026 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17027 # ----------------------------------------
17028 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17029 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17030 # script with STATUS, using 1 if that was 0.
17033 as_status=$1; test $as_status -eq 0 && as_status=1
17035 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17036 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17038 $as_echo "$as_me: error: $2" >&2
17039 as_fn_exit $as_status
17043 # as_fn_set_status STATUS
17044 # -----------------------
17045 # Set $? to STATUS, without forking.
17046 as_fn_set_status ()
17049 } # as_fn_set_status
17051 # as_fn_exit STATUS
17052 # -----------------
17053 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17057 as_fn_set_status $1
17063 # Portably unset VAR.
17066 { eval $1=; unset $1;}
17068 as_unset=as_fn_unset
17069 # as_fn_append VAR VALUE
17070 # ----------------------
17071 # Append the text in VALUE to the end of the definition contained in VAR. Take
17072 # advantage of any shell optimizations that allow amortized linear growth over
17073 # repeated appends, instead of the typical quadratic growth present in naive
17075 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17076 eval 'as_fn_append ()
17087 # as_fn_arith ARG...
17088 # ------------------
17089 # Perform arithmetic evaluation on the ARGs, and store the result in the
17090 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17091 # must be portable across $(()) and expr.
17092 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17093 eval 'as_fn_arith ()
17100 as_val=`expr "$@" || test $? -eq 1`
17105 if expr a : '\(a\)' >/dev/null 2>&1 &&
17106 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17112 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17113 as_basename=basename
17118 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17124 as_me=`$as_basename -- "$0" ||
17125 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17126 X"$0" : 'X\(//\)$' \| \
17127 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17129 sed '/^.*\/\([^/][^/]*\)\/*$/{
17143 # Avoid depending upon Character Ranges.
17144 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17145 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17146 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17147 as_cr_digits='0123456789'
17148 as_cr_alnum=$as_cr_Letters$as_cr_digits
17150 ECHO_C= ECHO_N= ECHO_T=
17151 case `echo -n x` in #(((((
17153 case `echo 'xy\c'` in
17154 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17156 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17163 rm -f conf$$ conf$$.exe conf$$.file
17164 if test -d conf$$.dir; then
17165 rm -f conf$$.dir/conf$$.file
17168 mkdir conf$$.dir 2>/dev/null
17170 if (echo >conf$$.file) 2>/dev/null; then
17171 if ln -s conf$$.file conf$$ 2>/dev/null; then
17173 # ... but there are two gotchas:
17174 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17175 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17176 # In both cases, we have to default to `cp -p'.
17177 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17179 elif ln conf$$.file conf$$ 2>/dev/null; then
17187 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17188 rmdir conf$$.dir 2>/dev/null
17193 # Create "$as_dir" as a directory, including parents if necessary.
17198 -*) as_dir=./$as_dir;;
17200 test -d "$as_dir" || eval $as_mkdir_p || {
17204 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17205 *) as_qdir=$as_dir;;
17207 as_dirs="'$as_qdir' $as_dirs"
17208 as_dir=`$as_dirname -- "$as_dir" ||
17209 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17210 X"$as_dir" : 'X\(//\)[^/]' \| \
17211 X"$as_dir" : 'X\(//\)$' \| \
17212 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17213 $as_echo X"$as_dir" |
17214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17218 /^X\(\/\/\)[^/].*/{
17231 test -d "$as_dir" && break
17233 test -z "$as_dirs" || eval "mkdir $as_dirs"
17234 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17238 if mkdir -p . 2>/dev/null; then
17239 as_mkdir_p='mkdir -p "$as_dir"'
17241 test -d ./-p && rmdir ./-p
17245 if test -x / >/dev/null 2>&1; then
17246 as_test_x='test -x'
17248 if ls -dL / >/dev/null 2>&1; then
17255 if test -d "$1"; then
17261 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17262 ???[sx]*):;;*)false;;esac;fi
17266 as_executable_p=$as_test_x
17268 # Sed expression to map a string onto a valid CPP name.
17269 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17271 # Sed expression to map a string onto a valid variable name.
17272 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17276 ## ----------------------------------- ##
17277 ## Main body of $CONFIG_STATUS script. ##
17278 ## ----------------------------------- ##
17280 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17283 # Save the log message, to keep $0 and so on meaningful, and to
17284 # report actual input values of CONFIG_FILES etc. instead of their
17285 # values after options handling.
17287 This file was extended by xf86-video-fbdev $as_me 0.4.3, which was
17288 generated by GNU Autoconf 2.68. Invocation command line was
17290 CONFIG_FILES = $CONFIG_FILES
17291 CONFIG_HEADERS = $CONFIG_HEADERS
17292 CONFIG_LINKS = $CONFIG_LINKS
17293 CONFIG_COMMANDS = $CONFIG_COMMANDS
17296 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17301 case $ac_config_files in *"
17302 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17305 case $ac_config_headers in *"
17306 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17311 # Files that config.status was made for.
17312 config_files="$ac_config_files"
17313 config_headers="$ac_config_headers"
17314 config_commands="$ac_config_commands"
17318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17320 \`$as_me' instantiates files and other configuration actions
17321 from templates according to the current configuration. Unless the files
17322 and actions are specified as TAGs, all are instantiated by default.
17324 Usage: $0 [OPTION]... [TAG]...
17326 -h, --help print this help, then exit
17327 -V, --version print version number and configuration settings, then exit
17328 --config print configuration, then exit
17329 -q, --quiet, --silent
17330 do not print progress messages
17331 -d, --debug don't remove temporary files
17332 --recheck update $as_me by reconfiguring in the same conditions
17333 --file=FILE[:TEMPLATE]
17334 instantiate the configuration file FILE
17335 --header=FILE[:TEMPLATE]
17336 instantiate the configuration header FILE
17338 Configuration files:
17341 Configuration headers:
17344 Configuration commands:
17347 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
17350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17351 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17353 xf86-video-fbdev config.status 0.4.3
17354 configured by $0, generated by GNU Autoconf 2.68,
17355 with options \\"\$ac_cs_config\\"
17357 Copyright (C) 2010 Free Software Foundation, Inc.
17358 This config.status script is free software; the Free Software Foundation
17359 gives unlimited permission to copy, distribute and modify it."
17366 test -n "\$AWK" || AWK=awk
17369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17370 # The default lists apply if the user does not specify any file.
17376 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17377 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17381 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17393 # Handling of the options.
17394 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17396 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17397 $as_echo "$ac_cs_version"; exit ;;
17398 --config | --confi | --conf | --con | --co | --c )
17399 $as_echo "$ac_cs_config"; exit ;;
17400 --debug | --debu | --deb | --de | --d | -d )
17402 --file | --fil | --fi | --f )
17405 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17406 '') as_fn_error $? "missing file argument" ;;
17408 as_fn_append CONFIG_FILES " '$ac_optarg'"
17409 ac_need_defaults=false;;
17410 --header | --heade | --head | --hea )
17413 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17415 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17416 ac_need_defaults=false;;
17418 # Conflict between --help and --header
17419 as_fn_error $? "ambiguous option: \`$1'
17420 Try \`$0 --help' for more information.";;
17421 --help | --hel | -h )
17422 $as_echo "$ac_cs_usage"; exit ;;
17423 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17424 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17427 # This is an error.
17428 -*) as_fn_error $? "unrecognized option: \`$1'
17429 Try \`$0 --help' for more information." ;;
17431 *) as_fn_append ac_config_targets " $1"
17432 ac_need_defaults=false ;;
17438 ac_configure_extra_args=
17440 if $ac_cs_silent; then
17442 ac_configure_extra_args="$ac_configure_extra_args --silent"
17446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17447 if \$ac_cs_recheck; then
17448 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17450 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17451 CONFIG_SHELL='$SHELL'
17452 export CONFIG_SHELL
17457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17461 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17462 ## Running $as_me. ##
17468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17472 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17475 # The HP-UX ksh and POSIX shell print the target directory to stdout
17476 # if CDPATH is set.
17477 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17479 sed_quote_subst='$sed_quote_subst'
17480 double_quote_subst='$double_quote_subst'
17481 delay_variable_subst='$delay_variable_subst'
17482 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17483 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17484 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17485 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17486 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17487 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17488 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17489 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17490 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17491 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17492 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17493 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17494 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17495 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17496 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17497 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17498 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17499 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17500 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17501 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17502 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17503 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17504 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17505 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17506 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17507 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17508 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17509 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17510 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17511 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17512 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17513 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17514 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17515 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17516 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17517 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17518 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17519 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17520 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17521 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17522 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17523 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17524 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17525 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17526 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17527 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17528 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17529 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17530 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17531 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17532 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17533 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17534 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17535 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17536 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17537 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17538 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"`'
17539 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17540 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17541 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17542 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17543 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17544 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17545 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17546 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17547 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17548 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17549 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17550 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17551 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17552 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17553 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17554 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17555 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17556 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17557 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17558 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17559 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17560 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17561 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17562 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17563 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17564 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17565 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17566 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17567 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17568 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17569 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17570 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17571 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17572 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17573 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17574 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17575 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17576 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17577 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17578 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17579 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17580 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17581 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17582 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17583 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17584 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17585 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17586 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17587 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17588 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17589 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17590 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17591 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17592 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17593 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17594 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17595 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17596 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17597 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17598 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17599 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17600 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17601 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17602 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17603 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17604 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17605 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17606 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17607 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17608 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17609 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17610 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17611 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17614 LTCFLAGS='$LTCFLAGS'
17615 compiler='$compiler_DEFAULT'
17617 # A function that is used when there is no print builtin or printf.
17618 func_fallback_echo ()
17620 eval 'cat <<_LTECHO_EOF
17625 # Quote evaled strings.
17640 deplibs_check_method \
17645 sharedlib_from_linklib_cmd \
17648 archiver_list_spec \
17654 lt_cv_sys_global_symbol_pipe \
17655 lt_cv_sys_global_symbol_to_cdecl \
17656 lt_cv_sys_global_symbol_to_c_name_address \
17657 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17658 nm_file_list_spec \
17659 lt_prog_compiler_no_builtin_flag \
17660 lt_prog_compiler_pic \
17661 lt_prog_compiler_wl \
17662 lt_prog_compiler_static \
17663 lt_cv_prog_compiler_c_o \
17672 export_dynamic_flag_spec \
17673 whole_archive_flag_spec \
17674 compiler_needs_object \
17676 allow_undefined_flag \
17677 no_undefined_flag \
17678 hardcode_libdir_flag_spec \
17679 hardcode_libdir_separator \
17683 variables_saved_for_relink \
17685 library_names_spec \
17687 install_override_mode \
17691 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17692 *[\\\\\\\`\\"\\\$]*)
17693 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17696 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17701 # Double-quote double-evaled strings.
17702 for var in reload_cmds \
17703 old_postinstall_cmds \
17704 old_postuninstall_cmds \
17706 extract_expsyms_cmds \
17707 old_archive_from_new_cmds \
17708 old_archive_from_expsyms_cmds \
17710 archive_expsym_cmds \
17712 module_expsym_cmds \
17713 export_symbols_cmds \
17717 postuninstall_cmds \
17719 sys_lib_search_path_spec \
17720 sys_lib_dlsearch_path_spec; do
17721 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17722 *[\\\\\\\`\\"\\\$]*)
17723 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17726 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17731 ac_aux_dir='$ac_aux_dir'
17732 xsi_shell='$xsi_shell'
17733 lt_shell_append='$lt_shell_append'
17735 # See if we are running on zsh, and set the options which allow our
17736 # commands through without removal of \ escapes INIT.
17737 if test -n "\${ZSH_VERSION+set}" ; then
17738 setopt NO_GLOB_SUBST
17744 TIMESTAMP='$TIMESTAMP'
17753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17755 # Handling of arguments.
17756 for ac_config_target in $ac_config_targets
17758 case $ac_config_target in
17759 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17760 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17761 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17762 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17763 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17764 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17766 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17771 # If the user did not use the arguments to specify the items to instantiate,
17772 # then the envvar interface is used. Set only those that are not.
17773 # We use the long form for the default assignment because of an extremely
17774 # bizarre bug on SunOS 4.1.3.
17775 if $ac_need_defaults; then
17776 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17777 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17778 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17781 # Have a temporary directory for convenience. Make it in the build tree
17782 # simply because there is no reason against having it here, and in addition,
17783 # creating and moving files from /tmp can sometimes cause problems.
17784 # Hook for its removal unless debugging.
17785 # Note that there is a small window in which the directory will not be cleaned:
17786 # after its creation but before its name has been assigned to `$tmp'.
17790 trap 'exit_status=$?
17791 : "${ac_tmp:=$tmp}"
17792 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17794 trap 'as_fn_exit 1' 1 2 13 15
17796 # Create a (secure) tmp directory for tmp files.
17799 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17803 tmp=./conf$$-$RANDOM
17804 (umask 077 && mkdir "$tmp")
17805 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17808 # Set up the scripts for CONFIG_FILES section.
17809 # No need to generate them if there are no CONFIG_FILES.
17810 # This happens for instance with `./config.status config.h'.
17811 if test -n "$CONFIG_FILES"; then
17814 ac_cr=`echo X | tr X '\015'`
17815 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17816 # But we know of no other shell where ac_cr would be empty at this
17817 # point, so we can use a bashism as a fallback.
17818 if test "x$ac_cr" = x; then
17819 eval ac_cr=\$\'\\r\'
17821 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17822 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17825 ac_cs_awk_cr=$ac_cr
17828 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17833 echo "cat >conf$$subs.awk <<_ACEOF" &&
17834 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17836 } >conf$$subs.sh ||
17837 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17838 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17840 for ac_last_try in false false false false false :; do
17841 . ./conf$$subs.sh ||
17842 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17844 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17845 if test $ac_delim_n = $ac_delim_num; then
17847 elif $ac_last_try; then
17848 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17850 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17853 rm -f conf$$subs.sh
17855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17856 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17860 s/^/S["/; s/!.*/"]=/
17870 s/\(.\{148\}\)..*/\1/
17872 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17877 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17884 s/\(.\{148\}\)..*/\1/
17886 s/["\\]/\\&/g; s/^/"/; s/$/"/
17890 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17895 ' <conf$$subs.awk | sed '
17900 ' >>$CONFIG_STATUS || ac_write_fail=1
17901 rm -f conf$$subs.awk
17902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17904 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17905 for (key in S) S_is_set[key] = 1
17911 nfields = split(line, field, "@")
17913 len = length(field[1])
17914 for (i = 2; i < nfields; i++) {
17916 keylen = length(key)
17917 if (S_is_set[key]) {
17919 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17920 len += length(value) + length(field[++i])
17931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17932 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17933 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17936 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17937 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17940 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17941 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17942 # trailing colons and then remove the whole line if VPATH becomes empty
17943 # (actually we leave an empty line to preserve line numbers).
17944 if test "x$srcdir" = x.; then
17945 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17964 fi # test -n "$CONFIG_FILES"
17966 # Set up the scripts for CONFIG_HEADERS section.
17967 # No need to generate them if there are no CONFIG_HEADERS.
17968 # This happens for instance with `./config.status Makefile'.
17969 if test -n "$CONFIG_HEADERS"; then
17970 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17974 # Transform confdefs.h into an awk script `defines.awk', embedded as
17975 # here-document in config.status, that substitutes the proper values into
17976 # config.h.in to produce config.h.
17978 # Create a delimiter string that does not exist in confdefs.h, to ease
17979 # handling of long lines.
17981 for ac_last_try in false false :; do
17982 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17983 if test -z "$ac_tt"; then
17985 elif $ac_last_try; then
17986 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17988 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17992 # For the awk script, D is an array of macro values keyed by name,
17993 # likewise P contains macro parameters if any. Preserve backslash
17994 # newline sequences.
17996 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17998 s/.\{148\}/&'"$ac_delim"'/g
18001 s/^[ ]*#[ ]*define[ ][ ]*/ /
18008 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18010 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18014 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18015 D["\1"]=" \3\\\\\\n"\\/p
18017 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18022 s/.\{148\}/&'"$ac_delim"'/g
18027 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18030 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18032 ' <confdefs.h | sed '
18033 s/'"$ac_delim"'/"\\\
18034 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18037 for (key in D) D_is_set[key] = 1
18040 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18042 split(line, arg, " ")
18043 if (arg[1] == "#") {
18047 defundef = substr(arg[1], 2)
18050 split(mac1, mac2, "(") #)
18052 prefix = substr(line, 1, index(line, defundef) - 1)
18053 if (D_is_set[macro]) {
18054 # Preserve the white space surrounding the "#".
18055 print prefix "define", macro P[macro] D[macro]
18058 # Replace #undef with comments. This is necessary, for example,
18059 # in the case of _POSIX_SOURCE, which is predefined and required
18060 # on some systems where configure will not decide to define it.
18061 if (defundef == "undef") {
18062 print "/*", prefix defundef, macro, "*/"
18070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18071 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18072 fi # test -n "$CONFIG_HEADERS"
18075 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18080 :[FHLC]) ac_mode=$ac_tag; continue;;
18082 case $ac_mode$ac_tag in
18084 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18085 :[FH]-) ac_tag=-:-;;
18086 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18103 -) ac_f="$ac_tmp/stdin";;
18104 *) # Look for the file first in the build tree, then in the source tree
18105 # (if the path is not absolute). The absolute path cannot be DOS-style,
18106 # because $ac_f cannot contain `:'.
18110 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18112 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18114 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18115 as_fn_append ac_file_inputs " '$ac_f'"
18118 # Let's still pretend it is `configure' which instantiates (i.e., don't
18119 # use $as_me), people would be surprised to read:
18120 # /* config.h. Generated by config.status. */
18121 configure_input='Generated from '`
18122 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18124 if test x"$ac_file" != x-; then
18125 configure_input="$ac_file. $configure_input"
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18127 $as_echo "$as_me: creating $ac_file" >&6;}
18129 # Neutralize special characters interpreted by sed in replacement strings.
18130 case $configure_input in #(
18131 *\&* | *\|* | *\\* )
18132 ac_sed_conf_input=`$as_echo "$configure_input" |
18133 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18134 *) ac_sed_conf_input=$configure_input;;
18138 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18139 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18144 ac_dir=`$as_dirname -- "$ac_file" ||
18145 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18146 X"$ac_file" : 'X\(//\)[^/]' \| \
18147 X"$ac_file" : 'X\(//\)$' \| \
18148 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18149 $as_echo X"$ac_file" |
18150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18154 /^X\(\/\/\)[^/].*/{
18167 as_dir="$ac_dir"; as_fn_mkdir_p
18171 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18173 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18174 # A ".." for each directory in $ac_dir_suffix.
18175 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18176 case $ac_top_builddir_sub in
18177 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18178 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18181 ac_abs_top_builddir=$ac_pwd
18182 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18183 # for backward compatibility:
18184 ac_top_builddir=$ac_top_build_prefix
18187 .) # We are building in place.
18189 ac_top_srcdir=$ac_top_builddir_sub
18190 ac_abs_top_srcdir=$ac_pwd ;;
18191 [\\/]* | ?:[\\/]* ) # Absolute name.
18192 ac_srcdir=$srcdir$ac_dir_suffix;
18193 ac_top_srcdir=$srcdir
18194 ac_abs_top_srcdir=$srcdir ;;
18195 *) # Relative name.
18196 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18197 ac_top_srcdir=$ac_top_build_prefix$srcdir
18198 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18200 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18210 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18211 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18213 ac_MKDIR_P=$MKDIR_P
18215 [\\/$]* | ?:[\\/]* ) ;;
18216 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18221 # If the template does not know about datarootdir, expand it.
18222 # FIXME: This hack should be removed a few years after 2.60.
18223 ac_datarootdir_hack=; ac_datarootdir_seen=
18234 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18235 *datarootdir*) ac_datarootdir_seen=yes;;
18236 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18238 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18241 ac_datarootdir_hack='
18242 s&@datadir@&$datadir&g
18243 s&@docdir@&$docdir&g
18244 s&@infodir@&$infodir&g
18245 s&@localedir@&$localedir&g
18246 s&@mandir@&$mandir&g
18247 s&\\\${datarootdir}&$datarootdir&g' ;;
18251 # Neutralize VPATH when `$srcdir' = `.'.
18252 # Shell code in configure.ac might set extrasub.
18253 # FIXME: do we really want to maintain this feature?
18254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18255 ac_sed_extra="$ac_vpsub
18258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18260 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18261 s|@configure_input@|$ac_sed_conf_input|;t t
18262 s&@top_builddir@&$ac_top_builddir_sub&;t t
18263 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18264 s&@srcdir@&$ac_srcdir&;t t
18265 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18266 s&@top_srcdir@&$ac_top_srcdir&;t t
18267 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18268 s&@builddir@&$ac_builddir&;t t
18269 s&@abs_builddir@&$ac_abs_builddir&;t t
18270 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18271 s&@INSTALL@&$ac_INSTALL&;t t
18272 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18273 $ac_datarootdir_hack
18275 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18276 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18278 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18279 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18280 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18281 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18283 which seems to be undefined. Please make sure it is defined" >&5
18284 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18285 which seems to be undefined. Please make sure it is defined" >&2;}
18287 rm -f "$ac_tmp/stdin"
18289 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18290 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18292 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18298 if test x"$ac_file" != x-; then
18300 $as_echo "/* $configure_input */" \
18301 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18302 } >"$ac_tmp/config.h" \
18303 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18304 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18306 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18309 mv "$ac_tmp/config.h" "$ac_file" \
18310 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18313 $as_echo "/* $configure_input */" \
18314 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18315 || as_fn_error $? "could not create -" "$LINENO" 5
18317 # Compute "$ac_file"'s index in $config_headers.
18320 for _am_header in $config_headers :; do
18321 case $_am_header in
18322 $_am_arg | $_am_arg:* )
18325 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18328 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18329 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18330 X"$_am_arg" : 'X\(//\)[^/]' \| \
18331 X"$_am_arg" : 'X\(//\)$' \| \
18332 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18333 $as_echo X"$_am_arg" |
18334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18338 /^X\(\/\/\)[^/].*/{
18350 s/.*/./; q'`/stamp-h$_am_stamp_count
18353 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18354 $as_echo "$as_me: executing $ac_file commands" >&6;}
18359 case $ac_file$ac_mode in
18360 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18361 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18362 # are listed without --file. Let's play safe and only enable the eval
18363 # if we detect the quoting.
18364 case $CONFIG_FILES in
18365 *\'*) eval set x "$CONFIG_FILES" ;;
18366 *) set x $CONFIG_FILES ;;
18371 # Strip MF so we end up with the name of the file.
18372 mf=`echo "$mf" | sed -e 's/:.*$//'`
18373 # Check whether this is an Automake generated Makefile or not.
18374 # We used to match only the files named `Makefile.in', but
18375 # some people rename them; so instead we look at the file content.
18376 # Grep'ing the first line is not enough: some people post-process
18377 # each Makefile.in and add a new line on top of each file to say so.
18378 # Grep'ing the whole file is not good either: AIX grep has a line
18379 # limit of 2048, but all sed's we know have understand at least 4000.
18380 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18381 dirpart=`$as_dirname -- "$mf" ||
18382 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18383 X"$mf" : 'X\(//\)[^/]' \| \
18384 X"$mf" : 'X\(//\)$' \| \
18385 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18391 /^X\(\/\/\)[^/].*/{
18407 # Extract the definition of DEPDIR, am__include, and am__quote
18408 # from the Makefile without running `make'.
18409 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18410 test -z "$DEPDIR" && continue
18411 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18412 test -z "am__include" && continue
18413 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18414 # When using ansi2knr, U may be empty or an underscore; expand it
18415 U=`sed -n 's/^U = //p' < "$mf"`
18416 # Find all dependency output files, they are included files with
18417 # $(DEPDIR) in their names. We invoke sed twice because it is the
18418 # simplest approach to changing $(DEPDIR) to its actual value in the
18420 for file in `sed -n "
18421 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18422 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18423 # Make sure the directory exists.
18424 test -f "$dirpart/$file" && continue
18425 fdir=`$as_dirname -- "$file" ||
18426 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18427 X"$file" : 'X\(//\)[^/]' \| \
18428 X"$file" : 'X\(//\)$' \| \
18429 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18430 $as_echo X"$file" |
18431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18435 /^X\(\/\/\)[^/].*/{
18448 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18449 # echo "creating $dirpart/$file"
18450 echo '# dummy' > "$dirpart/$file"
18457 # See if we are running on zsh, and set the options which allow our
18458 # commands through without removal of \ escapes.
18459 if test -n "${ZSH_VERSION+set}" ; then
18460 setopt NO_GLOB_SUBST
18463 cfgfile="${ofile}T"
18464 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18467 cat <<_LT_EOF >> "$cfgfile"
18470 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18471 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18472 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18473 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18475 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18476 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18478 # Written by Gordon Matzigkeit, 1996
18480 # This file is part of GNU Libtool.
18482 # GNU Libtool is free software; you can redistribute it and/or
18483 # modify it under the terms of the GNU General Public License as
18484 # published by the Free Software Foundation; either version 2 of
18485 # the License, or (at your option) any later version.
18487 # As a special exception to the GNU General Public License,
18488 # if you distribute this file as part of a program or library that
18489 # is built using GNU Libtool, you may include this file under the
18490 # same distribution terms that you use for the rest of that program.
18492 # GNU Libtool is distributed in the hope that it will be useful,
18493 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18494 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18495 # GNU General Public License for more details.
18497 # You should have received a copy of the GNU General Public License
18498 # along with GNU Libtool; see the file COPYING. If not, a copy
18499 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18500 # obtained by writing to the Free Software Foundation, Inc.,
18501 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18504 # The names of the tagged configurations supported by this script.
18507 # ### BEGIN LIBTOOL CONFIG
18509 # Whether or not to build static libraries.
18510 build_old_libs=$enable_static
18512 # Which release of libtool.m4 was used?
18513 macro_version=$macro_version
18514 macro_revision=$macro_revision
18516 # Whether or not to build shared libraries.
18517 build_libtool_libs=$enable_shared
18519 # What type of objects to build.
18522 # Whether or not to optimize for fast installation.
18523 fast_install=$enable_fast_install
18525 # Shell to use when invoking shell scripts.
18528 # An echo program that protects backslashes.
18531 # The PATH separator for the build system.
18532 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18535 host_alias=$host_alias
18539 # The build system.
18540 build_alias=$build_alias
18544 # A sed program that does not truncate output.
18547 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18548 Xsed="\$SED -e 1s/^X//"
18550 # A grep program that handles long lines.
18556 # A literal string matcher.
18559 # A BSD- or MS-compatible name lister.
18562 # Whether we need soft or hard links.
18565 # What is the maximum length of a command?
18566 max_cmd_len=$max_cmd_len
18568 # Object file suffix (normally "o").
18571 # Executable file suffix (normally "").
18574 # whether the shell understands "unset".
18577 # turn spaces into newlines.
18580 # turn newlines into spaces.
18583 # convert \$build file names to \$host format.
18584 to_host_file_cmd=$lt_cv_to_host_file_cmd
18586 # convert \$build files to toolchain format.
18587 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18589 # An object symbol dumper.
18590 OBJDUMP=$lt_OBJDUMP
18592 # Method to check whether dependent libraries are shared objects.
18593 deplibs_check_method=$lt_deplibs_check_method
18595 # Command to use when deplibs_check_method = "file_magic".
18596 file_magic_cmd=$lt_file_magic_cmd
18598 # How to find potential files when deplibs_check_method = "file_magic".
18599 file_magic_glob=$lt_file_magic_glob
18601 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18602 want_nocaseglob=$lt_want_nocaseglob
18604 # DLL creation program.
18605 DLLTOOL=$lt_DLLTOOL
18607 # Command to associate shared and link libraries.
18608 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18613 # Flags to create an archive.
18614 AR_FLAGS=$lt_AR_FLAGS
18616 # How to feed a file listing to the archiver.
18617 archiver_list_spec=$lt_archiver_list_spec
18619 # A symbol stripping program.
18622 # Commands used to install an old-style archive.
18624 old_postinstall_cmds=$lt_old_postinstall_cmds
18625 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18627 # Whether to use a lock for old archive extraction.
18628 lock_old_archive_extraction=$lock_old_archive_extraction
18633 # LTCC compiler flags.
18634 LTCFLAGS=$lt_CFLAGS
18636 # Take the output of nm and produce a listing of raw symbols and C names.
18637 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18639 # Transform the output of nm in a proper C declaration.
18640 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18642 # Transform the output of nm in a C name address pair.
18643 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18645 # Transform the output of nm in a C name address pair when lib prefix is needed.
18646 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18648 # Specify filename containing input files for \$NM.
18649 nm_file_list_spec=$lt_nm_file_list_spec
18651 # The root where to search for dependent libraries,and in which our libraries should be installed.
18652 lt_sysroot=$lt_sysroot
18654 # The name of the directory that contains temporary libtool files.
18657 # Used to examine libraries when file_magic_cmd begins with "file".
18658 MAGIC_CMD=$MAGIC_CMD
18660 # Must we lock files when doing compilation?
18661 need_locks=$lt_need_locks
18664 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18666 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18667 DSYMUTIL=$lt_DSYMUTIL
18669 # Tool to change global to local symbols on Mac OS X.
18672 # Tool to manipulate fat objects and archives on Mac OS X.
18675 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18678 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18679 OTOOL64=$lt_OTOOL64
18681 # Old archive suffix (normally "a").
18684 # Shared library suffix (normally ".so").
18685 shrext_cmds=$lt_shrext_cmds
18687 # The commands to extract the exported symbol list from a shared archive.
18688 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18690 # Variables whose values should be saved in libtool wrapper scripts and
18691 # restored at link time.
18692 variables_saved_for_relink=$lt_variables_saved_for_relink
18694 # Do we need the "lib" prefix for modules?
18695 need_lib_prefix=$need_lib_prefix
18697 # Do we need a version for libraries?
18698 need_version=$need_version
18700 # Library versioning type.
18701 version_type=$version_type
18703 # Shared library runtime path variable.
18704 runpath_var=$runpath_var
18706 # Shared library path variable.
18707 shlibpath_var=$shlibpath_var
18709 # Is shlibpath searched before the hard-coded library search path?
18710 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18712 # Format of library name prefix.
18713 libname_spec=$lt_libname_spec
18715 # List of archive names. First name is the real one, the rest are links.
18716 # The last name is the one that the linker finds with -lNAME
18717 library_names_spec=$lt_library_names_spec
18719 # The coded name of the library, if different from the real name.
18720 soname_spec=$lt_soname_spec
18722 # Permission mode override for installation of shared libraries.
18723 install_override_mode=$lt_install_override_mode
18725 # Command to use after installation of a shared archive.
18726 postinstall_cmds=$lt_postinstall_cmds
18728 # Command to use after uninstallation of a shared archive.
18729 postuninstall_cmds=$lt_postuninstall_cmds
18731 # Commands used to finish a libtool library installation in a directory.
18732 finish_cmds=$lt_finish_cmds
18734 # As "finish_cmds", except a single script fragment to be evaled but
18736 finish_eval=$lt_finish_eval
18738 # Whether we should hardcode library paths into libraries.
18739 hardcode_into_libs=$hardcode_into_libs
18741 # Compile-time system search path for libraries.
18742 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18744 # Run-time system search path for libraries.
18745 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18747 # Whether dlopen is supported.
18748 dlopen_support=$enable_dlopen
18750 # Whether dlopen of programs is supported.
18751 dlopen_self=$enable_dlopen_self
18753 # Whether dlopen of statically linked programs is supported.
18754 dlopen_self_static=$enable_dlopen_self_static
18756 # Commands to strip libraries.
18757 old_striplib=$lt_old_striplib
18758 striplib=$lt_striplib
18761 # The linker used to build libraries.
18764 # How to create reloadable object files.
18765 reload_flag=$lt_reload_flag
18766 reload_cmds=$lt_reload_cmds
18768 # Commands used to build an old-style archive.
18769 old_archive_cmds=$lt_old_archive_cmds
18771 # A language specific compiler.
18774 # Is the compiler the GNU compiler?
18777 # Compiler flag to turn off builtin functions.
18778 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18780 # Additional compiler flags for building library objects.
18781 pic_flag=$lt_lt_prog_compiler_pic
18783 # How to pass a linker flag through the compiler.
18784 wl=$lt_lt_prog_compiler_wl
18786 # Compiler flag to prevent dynamic linking.
18787 link_static_flag=$lt_lt_prog_compiler_static
18789 # Does compiler simultaneously support -c and -o options?
18790 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18792 # Whether or not to add -lc for building shared libraries.
18793 build_libtool_need_lc=$archive_cmds_need_lc
18795 # Whether or not to disallow shared libs when runtime libs are static.
18796 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18798 # Compiler flag to allow reflexive dlopens.
18799 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18801 # Compiler flag to generate shared objects directly from archives.
18802 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18804 # Whether the compiler copes with passing no objects directly.
18805 compiler_needs_object=$lt_compiler_needs_object
18807 # Create an old-style archive from a shared archive.
18808 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18810 # Create a temporary old-style archive to link instead of a shared archive.
18811 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18813 # Commands used to build a shared archive.
18814 archive_cmds=$lt_archive_cmds
18815 archive_expsym_cmds=$lt_archive_expsym_cmds
18817 # Commands used to build a loadable module if different from building
18818 # a shared archive.
18819 module_cmds=$lt_module_cmds
18820 module_expsym_cmds=$lt_module_expsym_cmds
18822 # Whether we are building with GNU ld or not.
18823 with_gnu_ld=$lt_with_gnu_ld
18825 # Flag that allows shared libraries with undefined symbols to be built.
18826 allow_undefined_flag=$lt_allow_undefined_flag
18828 # Flag that enforces no undefined symbols.
18829 no_undefined_flag=$lt_no_undefined_flag
18831 # Flag to hardcode \$libdir into a binary during linking.
18832 # This must work even if \$libdir does not exist
18833 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18835 # Whether we need a single "-rpath" flag with a separated argument.
18836 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18838 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18839 # DIR into the resulting binary.
18840 hardcode_direct=$hardcode_direct
18842 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18843 # DIR into the resulting binary and the resulting library dependency is
18844 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18845 # library is relocated.
18846 hardcode_direct_absolute=$hardcode_direct_absolute
18848 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18849 # into the resulting binary.
18850 hardcode_minus_L=$hardcode_minus_L
18852 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18853 # into the resulting binary.
18854 hardcode_shlibpath_var=$hardcode_shlibpath_var
18856 # Set to "yes" if building a shared library automatically hardcodes DIR
18857 # into the library and all subsequent libraries and executables linked
18859 hardcode_automatic=$hardcode_automatic
18861 # Set to yes if linker adds runtime paths of dependent libraries
18862 # to runtime path list.
18863 inherit_rpath=$inherit_rpath
18865 # Whether libtool must link a program against all its dependency libraries.
18866 link_all_deplibs=$link_all_deplibs
18868 # Set to "yes" if exported symbols are required.
18869 always_export_symbols=$always_export_symbols
18871 # The commands to list exported symbols.
18872 export_symbols_cmds=$lt_export_symbols_cmds
18874 # Symbols that should not be listed in the preloaded symbols.
18875 exclude_expsyms=$lt_exclude_expsyms
18877 # Symbols that must always be exported.
18878 include_expsyms=$lt_include_expsyms
18880 # Commands necessary for linking programs (against libraries) with templates.
18881 prelink_cmds=$lt_prelink_cmds
18883 # Commands necessary for finishing linking programs.
18884 postlink_cmds=$lt_postlink_cmds
18886 # Specify filename containing input files.
18887 file_list_spec=$lt_file_list_spec
18889 # How to hardcode a shared library path into an executable.
18890 hardcode_action=$hardcode_action
18892 # ### END LIBTOOL CONFIG
18898 cat <<\_LT_EOF >> "$cfgfile"
18899 # AIX sometimes has problems with the GCC collect2 program. For some
18900 # reason, if we set the COLLECT_NAMES environment variable, the problems
18901 # vanish in a puff of smoke.
18902 if test "X${COLLECT_NAMES+set}" != Xset; then
18904 export COLLECT_NAMES
18911 ltmain="$ac_aux_dir/ltmain.sh"
18914 # We use sed instead of cat because bash on DJGPP gets confused if
18915 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18916 # text mode, it properly converts lines to CR/LF. This bash problem
18917 # is reportedly fixed, but why not run on old versions too?
18918 sed '$q' "$ltmain" >> "$cfgfile" \
18919 || (rm -f "$cfgfile"; exit 1)
18921 if test x"$xsi_shell" = xyes; then
18922 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18926 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18927 \ * ) func_dirname_result="${3}" ;;\
18929 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18930 && mv -f "$cfgfile.tmp" "$cfgfile" \
18931 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18932 test 0 -eq $? || _lt_function_replace_fail=:
18935 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18938 \ func_basename_result="${1##*/}"\
18939 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18940 && mv -f "$cfgfile.tmp" "$cfgfile" \
18941 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18942 test 0 -eq $? || _lt_function_replace_fail=:
18945 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18946 func_dirname_and_basename ()\
18949 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18950 \ * ) func_dirname_result="${3}" ;;\
18952 \ func_basename_result="${1##*/}"\
18953 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18954 && mv -f "$cfgfile.tmp" "$cfgfile" \
18955 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18956 test 0 -eq $? || _lt_function_replace_fail=:
18959 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18962 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18963 \ # positional parameters, so assign one to ordinary parameter first.\
18964 \ func_stripname_result=${3}\
18965 \ func_stripname_result=${func_stripname_result#"${1}"}\
18966 \ func_stripname_result=${func_stripname_result%"${2}"}\
18967 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18968 && mv -f "$cfgfile.tmp" "$cfgfile" \
18969 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18970 test 0 -eq $? || _lt_function_replace_fail=:
18973 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18974 func_split_long_opt ()\
18976 \ func_split_long_opt_name=${1%%=*}\
18977 \ func_split_long_opt_arg=${1#*=}\
18978 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18979 && mv -f "$cfgfile.tmp" "$cfgfile" \
18980 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18981 test 0 -eq $? || _lt_function_replace_fail=:
18984 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18985 func_split_short_opt ()\
18987 \ func_split_short_opt_arg=${1#??}\
18988 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18989 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18990 && mv -f "$cfgfile.tmp" "$cfgfile" \
18991 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18992 test 0 -eq $? || _lt_function_replace_fail=:
18995 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18999 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19000 \ *) func_lo2o_result=${1} ;;\
19002 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19003 && mv -f "$cfgfile.tmp" "$cfgfile" \
19004 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19005 test 0 -eq $? || _lt_function_replace_fail=:
19008 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19011 func_xform_result=${1%.*}.lo\
19012 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19013 && mv -f "$cfgfile.tmp" "$cfgfile" \
19014 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19015 test 0 -eq $? || _lt_function_replace_fail=:
19018 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19021 func_arith_result=$(( $* ))\
19022 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19023 && mv -f "$cfgfile.tmp" "$cfgfile" \
19024 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19025 test 0 -eq $? || _lt_function_replace_fail=:
19028 sed -e '/^func_len ()$/,/^} # func_len /c\
19031 func_len_result=${#1}\
19032 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19033 && mv -f "$cfgfile.tmp" "$cfgfile" \
19034 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19035 test 0 -eq $? || _lt_function_replace_fail=:
19039 if test x"$lt_shell_append" = xyes; then
19040 sed -e '/^func_append ()$/,/^} # func_append /c\
19043 eval "${1}+=\\${2}"\
19044 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19045 && mv -f "$cfgfile.tmp" "$cfgfile" \
19046 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19047 test 0 -eq $? || _lt_function_replace_fail=:
19050 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19051 func_append_quoted ()\
19053 \ func_quote_for_eval "${2}"\
19054 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19055 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19056 && mv -f "$cfgfile.tmp" "$cfgfile" \
19057 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19058 test 0 -eq $? || _lt_function_replace_fail=:
19061 # Save a `func_append' function call where possible by direct use of '+='
19062 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19063 && mv -f "$cfgfile.tmp" "$cfgfile" \
19064 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19065 test 0 -eq $? || _lt_function_replace_fail=:
19067 # Save a `func_append' function call even when '+=' is not available
19068 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19069 && mv -f "$cfgfile.tmp" "$cfgfile" \
19070 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19071 test 0 -eq $? || _lt_function_replace_fail=:
19074 if test x"$_lt_function_replace_fail" = x":"; then
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19076 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19080 mv -f "$cfgfile" "$ofile" ||
19081 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19092 ac_clean_files=$ac_clean_files_save
19094 test $ac_write_fail = 0 ||
19095 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19098 # configure is writing to config.log, and then calls config.status.
19099 # config.status does its own redirection, appending to config.log.
19100 # Unfortunately, on DOS this fails, as config.log is still kept open
19101 # by configure, so config.status won't be able to write to it; its
19102 # output is simply discarded. So we exec the FD to /dev/null,
19103 # effectively closing config.log, so it can be properly (re)opened and
19104 # appended to by config.status. When coming back to configure, we
19105 # need to make the FD available again.
19106 if test "$no_create" != yes; then
19108 ac_config_status_args=
19109 test "$silent" = yes &&
19110 ac_config_status_args="$ac_config_status_args --quiet"
19112 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19114 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19115 # would make configure fail if this is the last instruction.
19116 $ac_cs_success || as_fn_exit 1
19118 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19120 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}