2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXres 1.0.6.
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
271 # Portably unset VAR.
274 { eval $1=; unset $1;}
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
298 # Create "$as_dir" as a directory, including parents if necessary.
303 -*) as_dir=./$as_dir;;
305 test -d "$as_dir" || eval $as_mkdir_p || {
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 test -d "$as_dir" && break
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
374 as_val=`expr "$@" || test $? -eq 1`
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
386 as_status=$1; test $as_status -eq 0 && as_status=1
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
468 # Exit status is that of the last command.
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
490 mkdir conf$$.dir 2>/dev/null
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
515 test -d ./-p && rmdir ./-p
519 if test -x / >/dev/null 2>&1; then
522 if ls -dL / >/dev/null 2>&1; then
529 if test -d "$1"; then
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
540 as_executable_p=$as_test_x
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548 SHELL=${CONFIG_SHELL-/bin/sh}
551 test -n "$DJDIR" || exec 7<&0 </dev/null
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
571 # Identity of this package.
572 PACKAGE_NAME='libXres'
573 PACKAGE_TARNAME='libXres'
574 PACKAGE_VERSION='1.0.6'
575 PACKAGE_STRING='libXres 1.0.6'
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
694 MAINTAINER_MODE_FALSE
704 INSTALL_STRIP_PROGRAM
746 program_transform_name
759 enable_option_checking
760 enable_maintainer_mode
765 enable_dependency_tracking
769 enable_selective_werror
770 enable_strict_compilation
772 enable_malloc0returnsnull
774 ac_precious_vars='build_alias
788 # Initialize some variables set by options.
790 ac_init_version=false
791 ac_unrecognized_opts=
793 # The variables have the same names as the options, with
794 # dashes changed to underlines.
802 program_transform_name=s,x,x,
810 # Installation directory options.
811 # These are left unexpanded so users can "make install exec_prefix=/foo"
812 # and all the variables that are supposed to be based on exec_prefix
813 # by default will actually change.
814 # Use braces instead of parens because sh, perl, etc. also accept them.
815 # (The list follows the same order as the GNU Coding Standards.)
816 bindir='${exec_prefix}/bin'
817 sbindir='${exec_prefix}/sbin'
818 libexecdir='${exec_prefix}/libexec'
819 datarootdir='${prefix}/share'
820 datadir='${datarootdir}'
821 sysconfdir='${prefix}/etc'
822 sharedstatedir='${prefix}/com'
823 localstatedir='${prefix}/var'
824 includedir='${prefix}/include'
825 oldincludedir='/usr/include'
826 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827 infodir='${datarootdir}/info'
832 libdir='${exec_prefix}/lib'
833 localedir='${datarootdir}/locale'
834 mandir='${datarootdir}/man'
840 # If the previous option needs an argument, assign it.
841 if test -n "$ac_prev"; then
842 eval $ac_prev=\$ac_option
848 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 # Accept the important Cygnus configure options, so we can diagnose typos.
855 case $ac_dashdash$ac_option in
859 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864 -build | --build | --buil | --bui | --bu)
865 ac_prev=build_alias ;;
866 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867 build_alias=$ac_optarg ;;
869 -cache-file | --cache-file | --cache-fil | --cache-fi \
870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871 ac_prev=cache_file ;;
872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874 cache_file=$ac_optarg ;;
877 cache_file=config.cache ;;
879 -datadir | --datadir | --datadi | --datad)
881 -datadir=* | --datadir=* | --datadi=* | --datad=*)
882 datadir=$ac_optarg ;;
884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885 | --dataroo | --dataro | --datar)
886 ac_prev=datarootdir ;;
887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889 datarootdir=$ac_optarg ;;
891 -disable-* | --disable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error $? "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
905 eval enable_$ac_useropt=no ;;
907 -docdir | --docdir | --docdi | --doc | --do)
909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917 -enable-* | --enable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error $? "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
931 eval enable_$ac_useropt=\$ac_optarg ;;
933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935 | --exec | --exe | --ex)
936 ac_prev=exec_prefix ;;
937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939 | --exec=* | --exe=* | --ex=*)
940 exec_prefix=$ac_optarg ;;
942 -gas | --gas | --ga | --g)
943 # Obsolete; use --with-gas.
946 -help | --help | --hel | --he | -h)
948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949 ac_init_help=recursive ;;
950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951 ac_init_help=short ;;
953 -host | --host | --hos | --ho)
954 ac_prev=host_alias ;;
955 -host=* | --host=* | --hos=* | --ho=*)
956 host_alias=$ac_optarg ;;
958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 htmldir=$ac_optarg ;;
964 -includedir | --includedir | --includedi | --included | --include \
965 | --includ | --inclu | --incl | --inc)
966 ac_prev=includedir ;;
967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968 | --includ=* | --inclu=* | --incl=* | --inc=*)
969 includedir=$ac_optarg ;;
971 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974 infodir=$ac_optarg ;;
976 -libdir | --libdir | --libdi | --libd)
978 -libdir=* | --libdir=* | --libdi=* | --libd=*)
981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982 | --libexe | --libex | --libe)
983 ac_prev=libexecdir ;;
984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985 | --libexe=* | --libex=* | --libe=*)
986 libexecdir=$ac_optarg ;;
988 -localedir | --localedir | --localedi | --localed | --locale)
990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991 localedir=$ac_optarg ;;
993 -localstatedir | --localstatedir | --localstatedi | --localstated \
994 | --localstate | --localstat | --localsta | --localst | --locals)
995 ac_prev=localstatedir ;;
996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998 localstatedir=$ac_optarg ;;
1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003 mandir=$ac_optarg ;;
1005 -nfp | --nfp | --nf)
1006 # Obsolete; use --without-fp.
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n)
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019 | --oldin | --oldi | --old | --ol | --o)
1020 ac_prev=oldincludedir ;;
1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024 oldincludedir=$ac_optarg ;;
1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029 prefix=$ac_optarg ;;
1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032 | --program-pre | --program-pr | --program-p)
1033 ac_prev=program_prefix ;;
1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036 program_prefix=$ac_optarg ;;
1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039 | --program-suf | --program-su | --program-s)
1040 ac_prev=program_suffix ;;
1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043 program_suffix=$ac_optarg ;;
1045 -program-transform-name | --program-transform-name \
1046 | --program-transform-nam | --program-transform-na \
1047 | --program-transform-n | --program-transform- \
1048 | --program-transform | --program-transfor \
1049 | --program-transfo | --program-transf \
1050 | --program-trans | --program-tran \
1051 | --progr-tra | --program-tr | --program-t)
1052 ac_prev=program_transform_name ;;
1053 -program-transform-name=* | --program-transform-name=* \
1054 | --program-transform-nam=* | --program-transform-na=* \
1055 | --program-transform-n=* | --program-transform-=* \
1056 | --program-transform=* | --program-transfor=* \
1057 | --program-transfo=* | --program-transf=* \
1058 | --program-trans=* | --program-tran=* \
1059 | --progr-tra=* | --program-tr=* | --program-t=*)
1060 program_transform_name=$ac_optarg ;;
1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065 pdfdir=$ac_optarg ;;
1067 -psdir | --psdir | --psdi | --psd | --ps)
1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 sbindir=$ac_optarg ;;
1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084 | --sharedst | --shareds | --shared | --share | --shar \
1086 ac_prev=sharedstatedir ;;
1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 sharedstatedir=$ac_optarg ;;
1093 -site | --site | --sit)
1095 -site=* | --site=* | --sit=*)
1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101 srcdir=$ac_optarg ;;
1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104 | --syscon | --sysco | --sysc | --sys | --sy)
1105 ac_prev=sysconfdir ;;
1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108 sysconfdir=$ac_optarg ;;
1110 -target | --target | --targe | --targ | --tar | --ta | --t)
1111 ac_prev=target_alias ;;
1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113 target_alias=$ac_optarg ;;
1115 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118 -version | --version | --versio | --versi | --vers | -V)
1119 ac_init_version=: ;;
1122 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error $? "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1135 eval with_$ac_useropt=\$ac_optarg ;;
1137 -without-* | --without-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error $? "invalid package name: $ac_useropt"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1151 eval with_$ac_useropt=no ;;
1154 # Obsolete; use --with-x.
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1171 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1172 Try \`$0 --help' for more information"
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
1178 case $ac_envvar in #(
1179 '' | [0-9]* | *[!_$as_cr_alnum]* )
1180 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1186 # FIXME: should be removed in autoconf 3.0.
1187 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1196 if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 as_fn_error $? "missing argument to $ac_option"
1201 if test -n "$ac_unrecognized_opts"; then
1202 case $enable_option_checking in
1204 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1205 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1209 # Check all directory arguments for consistency.
1210 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211 datadir sysconfdir sharedstatedir localstatedir includedir \
1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213 libdir localedir mandir
1215 eval ac_val=\$$ac_var
1216 # Remove trailing slashes.
1219 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1220 eval $ac_var=\$ac_val;;
1222 # Be sure to have absolute directory names.
1224 [\\/$]* | ?:[\\/]* ) continue;;
1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1235 target=$target_alias
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1242 If a cross compiler is detected then cross compile mode will be used" >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251 test "$silent" = yes && exec 6>/dev/null
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 as_fn_error $? "working directory cannot be determined"
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 as_fn_error $? "pwd does not report name of working directory"
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
1265 # Try the directory containing this script, then the parent directory.
1266 ac_confdir=`$as_dirname -- "$as_myself" ||
1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$as_myself" : 'X\(//\)[^/]' \| \
1269 X"$as_myself" : 'X\(//\)$' \| \
1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271 $as_echo X"$as_myself" |
1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1294 ac_srcdir_defaulted=no
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314 for ac_var in $ac_precious_vars; do
1315 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_env_${ac_var}_value=\$${ac_var}
1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322 # Report the --help message.
1324 if test "$ac_init_help" = "long"; then
1325 # Omit some internal or obsolete options to make the list less imposing.
1326 # This message is too long to be a string in the A/UX 3.1 sh.
1328 \`configure' configures libXres 1.0.6 to adapt to many kinds of systems.
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE. See below for descriptions of some of the useful variables.
1335 Defaults for the options are specified in brackets.
1338 -h, --help display this help and exit
1339 --help=short display options specific to this package
1340 --help=recursive display the short help of all the included packages
1341 -V, --version display version information and exit
1342 -q, --quiet, --silent do not print \`checking ...' messages
1343 --cache-file=FILE cache test results in FILE [disabled]
1344 -C, --config-cache alias for \`--cache-file=config.cache'
1345 -n, --no-create do not create output files
1346 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1348 Installation directories:
1349 --prefix=PREFIX install architecture-independent files in PREFIX
1350 [$ac_default_prefix]
1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1354 By default, \`make install' will install all the files in
1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357 for instance \`--prefix=\$HOME'.
1359 For better control, use the options below.
1361 Fine tuning of the installation directories:
1362 --bindir=DIR user executables [EPREFIX/bin]
1363 --sbindir=DIR system admin executables [EPREFIX/sbin]
1364 --libexecdir=DIR program executables [EPREFIX/libexec]
1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1368 --libdir=DIR object code libraries [EPREFIX/lib]
1369 --includedir=DIR C header files [PREFIX/include]
1370 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1373 --infodir=DIR info documentation [DATAROOTDIR/info]
1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1375 --mandir=DIR man documentation [DATAROOTDIR/man]
1376 --docdir=DIR documentation root [DATAROOTDIR/doc/libXres]
1377 --htmldir=DIR html documentation [DOCDIR]
1378 --dvidir=DIR dvi documentation [DOCDIR]
1379 --pdfdir=DIR pdf documentation [DOCDIR]
1380 --psdir=DIR ps documentation [DOCDIR]
1386 --program-prefix=PREFIX prepend PREFIX to installed program names
1387 --program-suffix=SUFFIX append SUFFIX to installed program names
1388 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1391 --build=BUILD configure for building on BUILD [guessed]
1392 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive ) echo "Configuration of libXres 1.0.6:";;
1403 --disable-option-checking ignore unrecognized --enable/--with options
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --enable-maintainer-mode enable make rules and dependencies not useful
1407 (and sometimes confusing) to the casual installer
1408 --enable-shared[=PKGS] build shared libraries [default=yes]
1409 --enable-static[=PKGS] build static libraries [default=yes]
1410 --enable-fast-install[=PKGS]
1411 optimize for fast installation [default=yes]
1412 --disable-dependency-tracking speeds up one-time build
1413 --enable-dependency-tracking do not reject slow dependency extractors
1414 --disable-libtool-lock avoid locking (might break parallel builds)
1415 --disable-selective-werror
1416 Turn off selective compiler errors. (default:
1418 --enable-strict-compilation
1419 Enable all warnings from compiler and make them
1420 errors (default: disabled)
1421 --enable-silent-rules less verbose build output (undo: `make V=1')
1422 --disable-silent-rules verbose build output (undo: `make V=0')
1423 --enable-malloc0returnsnull
1424 malloc(0) returns NULL (default: auto)
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1429 --with-pic try to use only PIC/non-PIC objects [default=use
1431 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1432 --with-sysroot=DIR Search for dependent libraries within DIR
1433 (or the compiler's sysroot if not specified).
1435 Some influential environment variables:
1436 CC C compiler command
1437 CFLAGS C compiler flags
1438 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1439 nonstandard directory <lib dir>
1440 LIBS libraries to pass to the linker, e.g. -l<library>
1441 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1442 you have headers in a nonstandard directory <include dir>
1444 PKG_CONFIG path to pkg-config utility
1445 XRES_CFLAGS C compiler flags for XRES, overriding pkg-config
1446 XRES_LIBS linker flags for XRES, overriding pkg-config
1448 Use these variables to override the choices made by `configure' or to help
1449 it to find libraries and programs with nonstandard names/locations.
1451 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1456 if test "$ac_init_help" = "recursive"; then
1457 # If there are subdirs, report their specific --help.
1458 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1459 test -d "$ac_dir" ||
1460 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1465 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1468 # A ".." for each directory in $ac_dir_suffix.
1469 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1470 case $ac_top_builddir_sub in
1471 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475 ac_abs_top_builddir=$ac_pwd
1476 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477 # for backward compatibility:
1478 ac_top_builddir=$ac_top_build_prefix
1481 .) # We are building in place.
1483 ac_top_srcdir=$ac_top_builddir_sub
1484 ac_abs_top_srcdir=$ac_pwd ;;
1485 [\\/]* | ?:[\\/]* ) # Absolute name.
1486 ac_srcdir=$srcdir$ac_dir_suffix;
1487 ac_top_srcdir=$srcdir
1488 ac_abs_top_srcdir=$srcdir ;;
1490 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491 ac_top_srcdir=$ac_top_build_prefix$srcdir
1492 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496 cd "$ac_dir" || { ac_status=$?; continue; }
1497 # Check for guested configure.
1498 if test -f "$ac_srcdir/configure.gnu"; then
1500 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1501 elif test -f "$ac_srcdir/configure"; then
1503 $SHELL "$ac_srcdir/configure" --help=recursive
1505 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507 cd "$ac_pwd" || { ac_status=$?; break; }
1511 test -n "$ac_init_help" && exit $ac_status
1512 if $ac_init_version; then
1514 libXres configure 1.0.6
1515 generated by GNU Autoconf 2.68
1517 Copyright (C) 2010 Free Software Foundation, Inc.
1518 This configure script is free software; the Free Software Foundation
1519 gives unlimited permission to copy, distribute and modify it.
1524 ## ------------------------ ##
1525 ## Autoconf initialization. ##
1526 ## ------------------------ ##
1528 # ac_fn_c_try_compile LINENO
1529 # --------------------------
1530 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1531 ac_fn_c_try_compile ()
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 rm -f conftest.$ac_objext
1535 if { { ac_try="$ac_compile"
1537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538 *) ac_try_echo=$ac_try;;
1540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541 $as_echo "$ac_try_echo"; } >&5
1542 (eval "$ac_compile") 2>conftest.err
1544 if test -s conftest.err; then
1545 grep -v '^ *+' conftest.err >conftest.er1
1546 cat conftest.er1 >&5
1547 mv -f conftest.er1 conftest.err
1549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550 test $ac_status = 0; } && {
1551 test -z "$ac_c_werror_flag" ||
1552 test ! -s conftest.err
1553 } && test -s conftest.$ac_objext; then :
1556 $as_echo "$as_me: failed program was:" >&5
1557 sed 's/^/| /' conftest.$ac_ext >&5
1561 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1562 as_fn_set_status $ac_retval
1564 } # ac_fn_c_try_compile
1566 # ac_fn_c_try_link LINENO
1567 # -----------------------
1568 # Try to link conftest.$ac_ext, and return whether this succeeded.
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 rm -f conftest.$ac_objext conftest$ac_exeext
1573 if { { ac_try="$ac_link"
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_link") 2>conftest.err
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } && {
1589 test -z "$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 } && test -s conftest$ac_exeext && {
1592 test "$cross_compiling" = yes ||
1593 $as_test_x conftest$ac_exeext
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1602 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1603 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1604 # interfere with the next link command; also delete a directory that is
1605 # left behind by Apple's compiler. We do this before executing the actions.
1606 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 as_fn_set_status $ac_retval
1610 } # ac_fn_c_try_link
1612 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1613 # -------------------------------------------------------
1614 # Tests whether HEADER exists and can be compiled using the include files in
1615 # INCLUDES, setting the cache variable VAR accordingly.
1616 ac_fn_c_check_header_compile ()
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1620 $as_echo_n "checking for $2... " >&6; }
1621 if eval \${$3+:} false; then :
1622 $as_echo_n "(cached) " >&6
1624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625 /* end confdefs.h. */
1629 if ac_fn_c_try_compile "$LINENO"; then :
1634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638 $as_echo "$ac_res" >&6; }
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641 } # ac_fn_c_check_header_compile
1643 # ac_fn_c_try_cpp LINENO
1644 # ----------------------
1645 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 if { { ac_try="$ac_cpp conftest.$ac_ext"
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } > conftest.i && {
1665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1666 test ! -s conftest.err
1670 $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1680 # ac_fn_c_try_run LINENO
1681 # ----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1683 # that executables *can* be run.
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 if { { ac_try="$ac_link"
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>&5
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1698 { { case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_try") 2>&5
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; }; }; then :
1710 $as_echo "$as_me: program exited with status $ac_status" >&5
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1714 ac_retval=$ac_status
1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718 as_fn_set_status $ac_retval
1722 # ac_fn_c_check_func LINENO FUNC VAR
1723 # ----------------------------------
1724 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1725 ac_fn_c_check_func ()
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if eval \${$3+:} false; then :
1731 $as_echo_n "(cached) " >&6
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1735 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1737 #define $2 innocuous_$2
1739 /* System header to define __stub macros and hopefully few prototypes,
1740 which can conflict with char $2 (); below.
1741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1742 <limits.h> exists even on freestanding compilers. */
1745 # include <limits.h>
1747 # include <assert.h>
1752 /* Override any GCC internal prototype to avoid an error.
1753 Use char because int might match the return type of a GCC
1754 builtin and then its argument prototype would still apply. */
1759 /* The GNU C library defines this for functions which it implements
1760 to always fail with ENOSYS. Some functions are actually named
1761 something starting with __ and the normal name is an alias. */
1762 #if defined __stub_$2 || defined __stub___$2
1774 if ac_fn_c_try_link "$LINENO"; then :
1779 rm -f core conftest.err conftest.$ac_objext \
1780 conftest$ac_exeext conftest.$ac_ext
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 } # ac_fn_c_check_func
1789 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1790 # ---------------------------------------------
1791 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1793 ac_fn_c_check_decl ()
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 as_decl_name=`echo $2|sed 's/ *(.*//'`
1797 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1799 $as_echo_n "checking whether $as_decl_name is declared... " >&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. */
1809 #ifndef $as_decl_name
1811 (void) $as_decl_use;
1813 (void) $as_decl_name;
1821 if ac_fn_c_try_compile "$LINENO"; then :
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 } # ac_fn_c_check_decl
1834 cat >config.log <<_ACEOF
1835 This file contains any messages produced by compilers while
1836 running configure, to aid debugging if configure makes a mistake.
1838 It was created by libXres $as_me 1.0.6, which was
1839 generated by GNU Autoconf 2.68. Invocation command line was
1851 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1852 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1853 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1854 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1855 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1857 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1858 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1860 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1861 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1862 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1863 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1864 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1865 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1866 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874 test -z "$as_dir" && as_dir=.
1875 $as_echo "PATH: $as_dir"
1891 # Keep a trace of the command line.
1892 # Strip out --no-create and --no-recursion so they do not pile up.
1893 # Strip out --silent because we don't want to record it for future runs.
1894 # Also quote any args containing shell meta-characters.
1895 # Make two passes to allow for proper duplicate-argument suppression.
1899 ac_must_keep_next=false
1905 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1906 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1907 | -silent | --silent | --silen | --sile | --sil)
1910 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1913 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1915 as_fn_append ac_configure_args1 " '$ac_arg'"
1916 if test $ac_must_keep_next = true; then
1917 ac_must_keep_next=false # Got value, back to normal.
1920 *=* | --config-cache | -C | -disable-* | --disable-* \
1921 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1922 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1923 | -with-* | --with-* | -without-* | --without-* | --x)
1924 case "$ac_configure_args0 " in
1925 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1928 -* ) ac_must_keep_next=true ;;
1931 as_fn_append ac_configure_args " '$ac_arg'"
1936 { ac_configure_args0=; unset ac_configure_args0;}
1937 { ac_configure_args1=; unset ac_configure_args1;}
1939 # When interrupted or exit'd, cleanup temporary files, and complete
1940 # config.log. We remove comments because anyway the quotes in there
1941 # would cause problems or look ugly.
1942 # WARNING: Use '\'' to represent an apostrophe within the trap.
1943 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1944 trap 'exit_status=$?
1945 # Save into config.log some information that might help in debugging.
1949 $as_echo "## ---------------- ##
1950 ## Cache variables. ##
1951 ## ---------------- ##"
1953 # The following way of writing the cache mishandles newlines in values,
1955 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1956 eval ac_val=\$$ac_var
1960 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1961 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1964 _ | IFS | as_nl) ;; #(
1965 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1966 *) { eval $ac_var=; unset $ac_var;} ;;
1971 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1972 *${as_nl}ac_space=\ *)
1974 "s/'\''/'\''\\\\'\'''\''/g;
1975 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1978 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1985 $as_echo "## ----------------- ##
1986 ## Output variables. ##
1987 ## ----------------- ##"
1989 for ac_var in $ac_subst_vars
1991 eval ac_val=\$$ac_var
1993 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1995 $as_echo "$ac_var='\''$ac_val'\''"
1999 if test -n "$ac_subst_files"; then
2000 $as_echo "## ------------------- ##
2001 ## File substitutions. ##
2002 ## ------------------- ##"
2004 for ac_var in $ac_subst_files
2006 eval ac_val=\$$ac_var
2008 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2010 $as_echo "$ac_var='\''$ac_val'\''"
2015 if test -s confdefs.h; then
2016 $as_echo "## ----------- ##
2023 test "$ac_signal" != 0 &&
2024 $as_echo "$as_me: caught signal $ac_signal"
2025 $as_echo "$as_me: exit $exit_status"
2027 rm -f core *.core core.conftest.* &&
2028 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2031 for ac_signal in 1 2 13 15; do
2032 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2036 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2037 rm -f -r conftest* confdefs.h
2039 $as_echo "/* confdefs.h */" > confdefs.h
2041 # Predefined preprocessor variables.
2043 cat >>confdefs.h <<_ACEOF
2044 #define PACKAGE_NAME "$PACKAGE_NAME"
2047 cat >>confdefs.h <<_ACEOF
2048 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2051 cat >>confdefs.h <<_ACEOF
2052 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2055 cat >>confdefs.h <<_ACEOF
2056 #define PACKAGE_STRING "$PACKAGE_STRING"
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_URL "$PACKAGE_URL"
2068 # Let the site file select an alternate cache file if it wants to.
2069 # Prefer an explicitly selected file to automatically selected ones.
2072 if test -n "$CONFIG_SITE"; then
2073 # We do not want a PATH search for config.site.
2074 case $CONFIG_SITE in #((
2075 -*) ac_site_file1=./$CONFIG_SITE;;
2076 */*) ac_site_file1=$CONFIG_SITE;;
2077 *) ac_site_file1=./$CONFIG_SITE;;
2079 elif test "x$prefix" != xNONE; then
2080 ac_site_file1=$prefix/share/config.site
2081 ac_site_file2=$prefix/etc/config.site
2083 ac_site_file1=$ac_default_prefix/share/config.site
2084 ac_site_file2=$ac_default_prefix/etc/config.site
2086 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2088 test "x$ac_site_file" = xNONE && continue
2089 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2091 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2092 sed 's/^/| /' "$ac_site_file" >&5
2094 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2096 as_fn_error $? "failed to load site script $ac_site_file
2097 See \`config.log' for more details" "$LINENO" 5; }
2101 if test -r "$cache_file"; then
2102 # Some versions of bash will fail to source /dev/null (special files
2103 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2104 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2106 $as_echo "$as_me: loading cache $cache_file" >&6;}
2108 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2109 *) . "./$cache_file";;
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2114 $as_echo "$as_me: creating cache $cache_file" >&6;}
2118 # Check that the precious variables saved in the cache have kept the same
2120 ac_cache_corrupted=false
2121 for ac_var in $ac_precious_vars; do
2122 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2123 eval ac_new_set=\$ac_env_${ac_var}_set
2124 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2125 eval ac_new_val=\$ac_env_${ac_var}_value
2126 case $ac_old_set,$ac_new_set in
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2129 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2130 ac_cache_corrupted=: ;;
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2133 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2134 ac_cache_corrupted=: ;;
2137 if test "x$ac_old_val" != "x$ac_new_val"; then
2138 # differences in whitespace do not lead to failure.
2139 ac_old_val_w=`echo x $ac_old_val`
2140 ac_new_val_w=`echo x $ac_new_val`
2141 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2143 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2144 ac_cache_corrupted=:
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2147 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2148 eval $ac_var=\$ac_old_val
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2151 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2153 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2156 # Pass precious variables to config.status.
2157 if test "$ac_new_set" = set; then
2159 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2160 *) ac_arg=$ac_var=$ac_new_val ;;
2162 case " $ac_configure_args " in
2163 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2164 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2168 if $ac_cache_corrupted; then
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2172 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2173 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2175 ## -------------------- ##
2176 ## Main body of script. ##
2177 ## -------------------- ##
2180 ac_cpp='$CPP $CPPFLAGS'
2181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2187 ac_config_headers="$ac_config_headers config.h"
2190 # Initialize Automake
2191 am__api_version='1.11'
2194 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2195 if test -f "$ac_dir/install-sh"; then
2197 ac_install_sh="$ac_aux_dir/install-sh -c"
2199 elif test -f "$ac_dir/install.sh"; then
2201 ac_install_sh="$ac_aux_dir/install.sh -c"
2203 elif test -f "$ac_dir/shtool"; then
2205 ac_install_sh="$ac_aux_dir/shtool install -c"
2209 if test -z "$ac_aux_dir"; then
2210 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2213 # These three variables are undocumented and unsupported,
2214 # and are intended to be withdrawn in a future Autoconf release.
2215 # They can cause serious problems if a builder's source tree is in a directory
2216 # whose full name contains unusual characters.
2217 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2218 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2219 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2222 # Find a good install program. We prefer a C program (faster),
2223 # so one script is as good as another. But avoid the broken or
2224 # incompatible versions:
2225 # SysV /etc/install, /usr/sbin/install
2226 # SunOS /usr/etc/install
2227 # IRIX /sbin/install
2229 # AmigaOS /C/install, which installs bootblocks on floppy discs
2230 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2231 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2232 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2233 # OS/2's system install, which has a completely different semantic
2234 # ./install, which can be erroneously created by make from ./install.sh.
2235 # Reject install programs that cannot install multiple files.
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2237 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2238 if test -z "$INSTALL"; then
2239 if ${ac_cv_path_install+:} false; then :
2240 $as_echo_n "(cached) " >&6
2242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 test -z "$as_dir" && as_dir=.
2247 # Account for people who put trailing slashes in PATH elements.
2248 case $as_dir/ in #((
2249 ./ | .// | /[cC]/* | \
2250 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2251 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2254 # OSF1 and SCO ODT 3.0 have their own names for install.
2255 # Don't use installbsd from OSF since it installs stuff as root
2257 for ac_prog in ginstall scoinst install; do
2258 for ac_exec_ext in '' $ac_executable_extensions; do
2259 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2260 if test $ac_prog = install &&
2261 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2262 # AIX install. It has an incompatible calling convention.
2264 elif test $ac_prog = install &&
2265 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2266 # program-specific install script used by HP pwplus--don't use.
2269 rm -rf conftest.one conftest.two conftest.dir
2270 echo one > conftest.one
2271 echo two > conftest.two
2273 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2274 test -s conftest.one && test -s conftest.two &&
2275 test -s conftest.dir/conftest.one &&
2276 test -s conftest.dir/conftest.two
2278 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2291 rm -rf conftest.one conftest.two conftest.dir
2294 if test "${ac_cv_path_install+set}" = set; then
2295 INSTALL=$ac_cv_path_install
2297 # As a last resort, use the slow shell script. Don't cache a
2298 # value for INSTALL within a source directory, because that will
2299 # break other packages using the cache if that directory is
2300 # removed, or if the value is a relative name.
2301 INSTALL=$ac_install_sh
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2305 $as_echo "$INSTALL" >&6; }
2307 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2308 # It thinks the first close brace ends the variable substitution.
2309 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2311 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2313 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2316 $as_echo_n "checking whether build environment is sane... " >&6; }
2319 echo timestamp > conftest.file
2320 # Reject unsafe characters in $srcdir or the absolute working directory
2321 # name. Accept space and tab only in the latter.
2325 *[\\\"\#\$\&\'\`$am_lf]*)
2326 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2329 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2330 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2333 # Do `set' in a subshell so we don't clobber the current shell's
2334 # arguments. Must try -L first in case configure is actually a
2335 # symlink; some systems play weird games with the mod time of symlinks
2336 # (eg FreeBSD returns the mod time of the symlink's containing
2339 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2340 if test "$*" = "X"; then
2342 set X `ls -t "$srcdir/configure" conftest.file`
2345 if test "$*" != "X $srcdir/configure conftest.file" \
2346 && test "$*" != "X conftest.file $srcdir/configure"; then
2348 # If neither matched, then we have a broken ls. This can happen
2349 # if, for instance, CONFIG_SHELL is bash and it inherits a
2350 # broken ls alias from the environment. This has actually
2351 # happened. Such a system could not be considered "sane".
2352 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2353 alias in your environment" "$LINENO" 5
2356 test "$2" = conftest.file
2362 as_fn_error $? "newly created file is older than distributed files!
2363 Check your system clock" "$LINENO" 5
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2366 $as_echo "yes" >&6; }
2367 test "$program_prefix" != NONE &&
2368 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2369 # Use a double $ so make ignores it.
2370 test "$program_suffix" != NONE &&
2371 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2372 # Double any \ or $.
2373 # By default was `s,x,x', remove it if useless.
2374 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2375 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2377 # expand $ac_aux_dir to an absolute path
2378 am_aux_dir=`cd $ac_aux_dir && pwd`
2380 if test x"${MISSING+set}" != xset; then
2383 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2385 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2388 # Use eval to expand $SHELL
2389 if eval "$MISSING --run true"; then
2390 am_missing_run="$MISSING --run "
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2394 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2397 if test x"${install_sh}" != xset; then
2400 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2402 install_sh="\${SHELL} $am_aux_dir/install-sh"
2406 # Installed binaries are usually stripped using `strip' when the user
2407 # run `make install-strip'. However `strip' might not be the right
2408 # tool to use in cross-compilation environments, therefore Automake
2409 # will honor the `STRIP' environment variable to overrule this program.
2410 if test "$cross_compiling" != no; then
2411 if test -n "$ac_tool_prefix"; then
2412 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2413 set dummy ${ac_tool_prefix}strip; ac_word=$2
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2415 $as_echo_n "checking for $ac_word... " >&6; }
2416 if ${ac_cv_prog_STRIP+:} false; then :
2417 $as_echo_n "(cached) " >&6
2419 if test -n "$STRIP"; then
2420 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426 test -z "$as_dir" && as_dir=.
2427 for ac_exec_ext in '' $ac_executable_extensions; do
2428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2429 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2439 STRIP=$ac_cv_prog_STRIP
2440 if test -n "$STRIP"; then
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2442 $as_echo "$STRIP" >&6; }
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2445 $as_echo "no" >&6; }
2450 if test -z "$ac_cv_prog_STRIP"; then
2452 # Extract the first word of "strip", so it can be a program name with args.
2453 set dummy strip; ac_word=$2
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2455 $as_echo_n "checking for $ac_word... " >&6; }
2456 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2457 $as_echo_n "(cached) " >&6
2459 if test -n "$ac_ct_STRIP"; then
2460 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 test -z "$as_dir" && as_dir=.
2467 for ac_exec_ext in '' $ac_executable_extensions; do
2468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2469 ac_cv_prog_ac_ct_STRIP="strip"
2470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2480 if test -n "$ac_ct_STRIP"; then
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2482 $as_echo "$ac_ct_STRIP" >&6; }
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2485 $as_echo "no" >&6; }
2488 if test "x$ac_ct_STRIP" = x; then
2491 case $cross_compiling:$ac_tool_warned in
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2495 ac_tool_warned=yes ;;
2500 STRIP="$ac_cv_prog_STRIP"
2504 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2507 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2508 if test -z "$MKDIR_P"; then
2509 if ${ac_cv_path_mkdir+:} false; then :
2510 $as_echo_n "(cached) " >&6
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2516 test -z "$as_dir" && as_dir=.
2517 for ac_prog in mkdir gmkdir; do
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2520 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2521 'mkdir (GNU coreutils) '* | \
2522 'mkdir (coreutils) '* | \
2523 'mkdir (fileutils) '4.1*)
2524 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2534 test -d ./--version && rmdir ./--version
2535 if test "${ac_cv_path_mkdir+set}" = set; then
2536 MKDIR_P="$ac_cv_path_mkdir -p"
2538 # As a last resort, use the slow shell script. Don't cache a
2539 # value for MKDIR_P within a source directory, because that will
2540 # break other packages using the cache if that directory is
2541 # removed, or if the value is a relative name.
2542 MKDIR_P="$ac_install_sh -d"
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2546 $as_echo "$MKDIR_P" >&6; }
2550 [\\/$]* | ?:[\\/]*) ;;
2551 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2554 for ac_prog in gawk mawk nawk awk
2556 # Extract the first word of "$ac_prog", so it can be a program name with args.
2557 set dummy $ac_prog; ac_word=$2
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2559 $as_echo_n "checking for $ac_word... " >&6; }
2560 if ${ac_cv_prog_AWK+:} false; then :
2561 $as_echo_n "(cached) " >&6
2563 if test -n "$AWK"; then
2564 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573 ac_cv_prog_AWK="$ac_prog"
2574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 if test -n "$AWK"; then
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2586 $as_echo "$AWK" >&6; }
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2589 $as_echo "no" >&6; }
2593 test -n "$AWK" && break
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2597 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2599 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2600 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2601 $as_echo_n "(cached) " >&6
2603 cat >conftest.make <<\_ACEOF
2606 @echo '@@@%%%=$(MAKE)=@@@%%%'
2608 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2609 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2611 eval ac_cv_prog_make_${ac_make}_set=yes;;
2613 eval ac_cv_prog_make_${ac_make}_set=no;;
2617 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2619 $as_echo "yes" >&6; }
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2623 $as_echo "no" >&6; }
2624 SET_MAKE="MAKE=${MAKE-make}"
2627 rm -rf .tst 2>/dev/null
2628 mkdir .tst 2>/dev/null
2629 if test -d .tst; then
2634 rmdir .tst 2>/dev/null
2636 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2637 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2638 # is not polluted with repeated "-I."
2639 am__isrc=' -I$(srcdir)'
2640 # test to see if srcdir already configured
2641 if test -f $srcdir/config.status; then
2642 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2646 # test whether we have cygpath
2647 if test -z "$CYGPATH_W"; then
2648 if (cygpath --version) >/dev/null 2>/dev/null; then
2649 CYGPATH_W='cygpath -w'
2656 # Define the identity of the package.
2661 cat >>confdefs.h <<_ACEOF
2662 #define PACKAGE "$PACKAGE"
2666 cat >>confdefs.h <<_ACEOF
2667 #define VERSION "$VERSION"
2670 # Some tools Automake needs.
2672 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2675 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2678 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2681 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2684 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2686 # We need awk for the "check" target. The system "awk" is bad on
2688 # Always define AMTAR for backward compatibility.
2690 AMTAR=${AMTAR-"${am_missing_run}tar"}
2692 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2700 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2701 # Check whether --enable-maintainer-mode was given.
2702 if test "${enable_maintainer_mode+set}" = set; then :
2703 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2705 USE_MAINTAINER_MODE=no
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2709 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2710 if test $USE_MAINTAINER_MODE = yes; then
2711 MAINTAINER_MODE_TRUE=
2712 MAINTAINER_MODE_FALSE='#'
2714 MAINTAINER_MODE_TRUE='#'
2715 MAINTAINER_MODE_FALSE=
2718 MAINT=$MAINTAINER_MODE_TRUE
2722 # Initialize libtool
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2726 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2732 macro_revision='1.3293'
2746 ltmain="$ac_aux_dir/ltmain.sh"
2748 # Make sure we can run config.sub.
2749 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2750 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2753 $as_echo_n "checking build system type... " >&6; }
2754 if ${ac_cv_build+:} false; then :
2755 $as_echo_n "(cached) " >&6
2757 ac_build_alias=$build_alias
2758 test "x$ac_build_alias" = x &&
2759 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2760 test "x$ac_build_alias" = x &&
2761 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2762 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2763 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2767 $as_echo "$ac_cv_build" >&6; }
2768 case $ac_cv_build in
2770 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2773 ac_save_IFS=$IFS; IFS='-'
2779 # Remember, the first character of IFS is used to create $*,
2780 # except with old shells:
2783 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2787 $as_echo_n "checking host system type... " >&6; }
2788 if ${ac_cv_host+:} false; then :
2789 $as_echo_n "(cached) " >&6
2791 if test "x$host_alias" = x; then
2792 ac_cv_host=$ac_cv_build
2794 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2795 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2800 $as_echo "$ac_cv_host" >&6; }
2803 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2806 ac_save_IFS=$IFS; IFS='-'
2812 # Remember, the first character of IFS is used to create $*,
2813 # except with old shells:
2816 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2819 # Backslashify metacharacters that are still active within
2820 # double-quoted strings.
2821 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2823 # Same as above, but do not quote variable references.
2824 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2826 # Sed substitution to delay expansion of an escaped shell variable in a
2827 # double_quote_subst'ed string.
2828 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2830 # Sed substitution to delay expansion of an escaped single quote.
2831 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2833 # Sed substitution to avoid accidental globbing in evaled expressions
2834 no_glob_subst='s/\*/\\\*/g'
2836 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2837 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2838 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2841 $as_echo_n "checking how to print strings... " >&6; }
2842 # Test print first, because it will be a builtin if present.
2843 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2844 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2846 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2849 # Use this function as a fallback that always works.
2850 func_fallback_echo ()
2852 eval 'cat <<_LTECHO_EOF
2856 ECHO='func_fallback_echo'
2859 # func_echo_all arg...
2860 # Invoke $ECHO with all args, space-separated.
2867 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2868 $as_echo "printf" >&6; } ;;
2869 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2870 $as_echo "print -r" >&6; } ;;
2871 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2872 $as_echo "cat" >&6; } ;;
2888 DEPDIR="${am__leading_dot}deps"
2890 ac_config_commands="$ac_config_commands depfiles"
2893 am_make=${MAKE-make}
2894 cat > confinc << 'END'
2896 @echo this is the am__doit target
2899 # If we don't find an include directive, just comment out the code.
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2901 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2905 # First try GNU make style include.
2906 echo "include confinc" > confmf
2907 # Ignore all kinds of additional output from `make'.
2908 case `$am_make -s -f confmf 2> /dev/null` in #(
2909 *the\ am__doit\ target*)
2915 # Now try BSD make style include.
2916 if test "$am__include" = "#"; then
2917 echo '.include "confinc"' > confmf
2918 case `$am_make -s -f confmf 2> /dev/null` in #(
2919 *the\ am__doit\ target*)
2920 am__include=.include
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2929 $as_echo "$_am_result" >&6; }
2930 rm -f confinc confmf
2932 # Check whether --enable-dependency-tracking was given.
2933 if test "${enable_dependency_tracking+set}" = set; then :
2934 enableval=$enable_dependency_tracking;
2937 if test "x$enable_dependency_tracking" != xno; then
2938 am_depcomp="$ac_aux_dir/depcomp"
2941 if test "x$enable_dependency_tracking" != xno; then
2951 ac_cpp='$CPP $CPPFLAGS'
2952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2955 if test -n "$ac_tool_prefix"; then
2956 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2957 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if ${ac_cv_prog_CC+:} false; then :
2961 $as_echo_n "(cached) " >&6
2963 if test -n "$CC"; then
2964 ac_cv_prog_CC="$CC" # Let the user override the test.
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2973 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 if test -n "$CC"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2986 $as_echo "$CC" >&6; }
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2994 if test -z "$ac_cv_prog_CC"; then
2996 # Extract the first word of "gcc", so it can be a program name with args.
2997 set dummy gcc; ac_word=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3001 $as_echo_n "(cached) " >&6
3003 if test -n "$ac_ct_CC"; then
3004 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 test -z "$as_dir" && as_dir=.
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3013 ac_cv_prog_ac_ct_CC="gcc"
3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3024 if test -n "$ac_ct_CC"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3026 $as_echo "$ac_ct_CC" >&6; }
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3032 if test "x$ac_ct_CC" = x; then
3035 case $cross_compiling:$ac_tool_warned in
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3039 ac_tool_warned=yes ;;
3047 if test -z "$CC"; then
3048 if test -n "$ac_tool_prefix"; then
3049 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3050 set dummy ${ac_tool_prefix}cc; ac_word=$2
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 $as_echo_n "checking for $ac_word... " >&6; }
3053 if ${ac_cv_prog_CC+:} false; then :
3054 $as_echo_n "(cached) " >&6
3056 if test -n "$CC"; then
3057 ac_cv_prog_CC="$CC" # Let the user override the test.
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 test -z "$as_dir" && as_dir=.
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066 ac_cv_prog_CC="${ac_tool_prefix}cc"
3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 if test -n "$CC"; then
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3079 $as_echo "$CC" >&6; }
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 $as_echo "no" >&6; }
3088 if test -z "$CC"; then
3089 # Extract the first word of "cc", so it can be a program name with args.
3090 set dummy cc; ac_word=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if ${ac_cv_prog_CC+:} false; then :
3094 $as_echo_n "(cached) " >&6
3096 if test -n "$CC"; then
3097 ac_cv_prog_CC="$CC" # Let the user override the test.
3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 test -z "$as_dir" && as_dir=.
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3107 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3108 ac_prog_rejected=yes
3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 if test $ac_prog_rejected = yes; then
3120 # We found a bogon in the path, so make sure we never use it.
3121 set dummy $ac_cv_prog_CC
3123 if test $# != 0; then
3124 # We chose a different compiler from the bogus one.
3125 # However, it has the same basename, so the bogon will be chosen
3126 # first if we set CC to just the basename; use the full file name.
3128 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3134 if test -n "$CC"; then
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3136 $as_echo "$CC" >&6; }
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139 $as_echo "no" >&6; }
3144 if test -z "$CC"; then
3145 if test -n "$ac_tool_prefix"; then
3146 for ac_prog in cl.exe
3148 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3149 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151 $as_echo_n "checking for $ac_word... " >&6; }
3152 if ${ac_cv_prog_CC+:} false; then :
3153 $as_echo_n "(cached) " >&6
3155 if test -n "$CC"; then
3156 ac_cv_prog_CC="$CC" # Let the user override the test.
3158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 test -z "$as_dir" && as_dir=.
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3165 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 if test -n "$CC"; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3178 $as_echo "$CC" >&6; }
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181 $as_echo "no" >&6; }
3185 test -n "$CC" && break
3188 if test -z "$CC"; then
3190 for ac_prog in cl.exe
3192 # Extract the first word of "$ac_prog", so it can be a program name with args.
3193 set dummy $ac_prog; ac_word=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3197 $as_echo_n "(cached) " >&6
3199 if test -n "$ac_ct_CC"; then
3200 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 test -z "$as_dir" && as_dir=.
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3209 ac_cv_prog_ac_ct_CC="$ac_prog"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3220 if test -n "$ac_ct_CC"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3222 $as_echo "$ac_ct_CC" >&6; }
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3229 test -n "$ac_ct_CC" && break
3232 if test "x$ac_ct_CC" = x; then
3235 case $cross_compiling:$ac_tool_warned in
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3239 ac_tool_warned=yes ;;
3248 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3250 as_fn_error $? "no acceptable C compiler found in \$PATH
3251 See \`config.log' for more details" "$LINENO" 5; }
3253 # Provide some information about the compiler.
3254 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3257 for ac_option in --version -v -V -qversion; do
3258 { { ac_try="$ac_compiler $ac_option >&5"
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3267 if test -s conftest.err; then
3269 ... rest of stderr output deleted ...
3270 10q' conftest.err >conftest.er1
3271 cat conftest.er1 >&5
3273 rm -f conftest.er1 conftest.err
3274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275 test $ac_status = 0; }
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h. */
3289 ac_clean_files_save=$ac_clean_files
3290 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3291 # Try to create an executable without -o first, disregard a.out.
3292 # It will help us diagnose broken compilers, and finding out an intuition
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3295 $as_echo_n "checking whether the C compiler works... " >&6; }
3296 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3298 # The possible output files:
3299 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3302 for ac_file in $ac_files
3305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3306 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3311 if { { ac_try="$ac_link_default"
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317 $as_echo "$ac_try_echo"; } >&5
3318 (eval "$ac_link_default") 2>&5
3320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321 test $ac_status = 0; }; then :
3322 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3323 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3324 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3325 # so that the user can short-circuit this test for compilers unknown to
3327 for ac_file in $ac_files ''
3329 test -f "$ac_file" || continue
3331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3334 # We found the default executable, but exeext='' is most
3338 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3340 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3342 # We set ac_cv_exeext here because the later test for it is not
3343 # safe: cross compilers may not add the suffix if given an `-o'
3344 # argument, so we may need to know it at that point already.
3345 # Even if this section looks crufty: it has the advantage of
3352 test "$ac_cv_exeext" = no && ac_cv_exeext=
3357 if test -z "$ac_file"; then :
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3360 $as_echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error 77 "C compiler cannot create executables
3366 See \`config.log' for more details" "$LINENO" 5; }
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3369 $as_echo "yes" >&6; }
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3372 $as_echo_n "checking for C compiler default output file name... " >&6; }
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3374 $as_echo "$ac_file" >&6; }
3375 ac_exeext=$ac_cv_exeext
3377 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3378 ac_clean_files=$ac_clean_files_save
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3380 $as_echo_n "checking for suffix of executables... " >&6; }
3381 if { { ac_try="$ac_link"
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387 $as_echo "$ac_try_echo"; } >&5
3388 (eval "$ac_link") 2>&5
3390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391 test $ac_status = 0; }; then :
3392 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3393 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3394 # work properly (i.e., refer to `conftest.exe'), while it won't with
3396 for ac_file in conftest.exe conftest conftest.*; do
3397 test -f "$ac_file" || continue
3399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3400 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3409 See \`config.log' for more details" "$LINENO" 5; }
3411 rm -f conftest conftest$ac_cv_exeext
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3413 $as_echo "$ac_cv_exeext" >&6; }
3415 rm -f conftest.$ac_ext
3416 EXEEXT=$ac_cv_exeext
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h. */
3424 FILE *f = fopen ("conftest.out", "w");
3425 return ferror (f) || fclose (f) != 0;
3431 ac_clean_files="$ac_clean_files conftest.out"
3432 # Check that the compiler produces executables we can run. If not, either
3433 # the compiler is broken, or we cross compile.
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3435 $as_echo_n "checking whether we are cross compiling... " >&6; }
3436 if test "$cross_compiling" != yes; then
3437 { { ac_try="$ac_link"
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443 $as_echo "$ac_try_echo"; } >&5
3444 (eval "$ac_link") 2>&5
3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447 test $ac_status = 0; }
3448 if { ac_try='./conftest$ac_cv_exeext'
3449 { { case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454 $as_echo "$ac_try_echo"; } >&5
3455 (eval "$ac_try") 2>&5
3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458 test $ac_status = 0; }; }; then
3461 if test "$cross_compiling" = maybe; then
3464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466 as_fn_error $? "cannot run C compiled programs.
3467 If you meant to cross compile, use \`--host'.
3468 See \`config.log' for more details" "$LINENO" 5; }
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3473 $as_echo "$cross_compiling" >&6; }
3475 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3476 ac_clean_files=$ac_clean_files_save
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3478 $as_echo_n "checking for suffix of object files... " >&6; }
3479 if ${ac_cv_objext+:} false; then :
3480 $as_echo_n "(cached) " >&6
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3493 rm -f conftest.o conftest.obj
3494 if { { ac_try="$ac_compile"
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3500 $as_echo "$ac_try_echo"; } >&5
3501 (eval "$ac_compile") 2>&5
3503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504 test $ac_status = 0; }; then :
3505 for ac_file in conftest.o conftest.obj conftest.*; do
3506 test -f "$ac_file" || continue;
3508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3509 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3514 $as_echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519 as_fn_error $? "cannot compute suffix of object files: cannot compile
3520 See \`config.log' for more details" "$LINENO" 5; }
3522 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3525 $as_echo "$ac_cv_objext" >&6; }
3526 OBJEXT=$ac_cv_objext
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3529 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3530 if ${ac_cv_c_compiler_gnu+:} false; then :
3531 $as_echo_n "(cached) " >&6
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3547 if ac_fn_c_try_compile "$LINENO"; then :
3552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3557 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3558 if test $ac_compiler_gnu = yes; then
3563 ac_test_CFLAGS=${CFLAGS+set}
3564 ac_save_CFLAGS=$CFLAGS
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3566 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3567 if ${ac_cv_prog_cc_g+:} false; then :
3568 $as_echo_n "(cached) " >&6
3570 ac_save_c_werror_flag=$ac_c_werror_flag
3571 ac_c_werror_flag=yes
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3585 if ac_fn_c_try_compile "$LINENO"; then :
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h. */
3600 if ac_fn_c_try_compile "$LINENO"; then :
3603 ac_c_werror_flag=$ac_save_c_werror_flag
3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h. */
3616 if ac_fn_c_try_compile "$LINENO"; then :
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 ac_c_werror_flag=$ac_save_c_werror_flag
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3627 $as_echo "$ac_cv_prog_cc_g" >&6; }
3628 if test "$ac_test_CFLAGS" = set; then
3629 CFLAGS=$ac_save_CFLAGS
3630 elif test $ac_cv_prog_cc_g = yes; then
3631 if test "$GCC" = yes; then
3637 if test "$GCC" = yes; then
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3644 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3645 if ${ac_cv_prog_cc_c89+:} false; then :
3646 $as_echo_n "(cached) " >&6
3648 ac_cv_prog_cc_c89=no
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h. */
3654 #include <sys/types.h>
3655 #include <sys/stat.h>
3656 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3657 struct buf { int x; };
3658 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3659 static char *e (p, i)
3665 static char *f (char * (*g) (char **, int), char **p, ...)
3670 s = g (p, va_arg (v,int));
3675 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3676 function prototypes and stuff, but not '\xHH' hex character constants.
3677 These don't provoke an error unfortunately, instead are silently treated
3678 as 'x'. The following induces an error, until -std is added to get
3679 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3680 array size at least. It's necessary to write '\x00'==0 to get something
3681 that's true only with -std. */
3682 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3684 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3685 inside strings and character constants. */
3687 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3689 int test (int i, double x);
3690 struct s1 {int (*f) (int a);};
3691 struct s2 {int (*f) (double a);};
3692 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3698 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3703 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3704 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3706 CC="$ac_save_CC $ac_arg"
3707 if ac_fn_c_try_compile "$LINENO"; then :
3708 ac_cv_prog_cc_c89=$ac_arg
3710 rm -f core conftest.err conftest.$ac_objext
3711 test "x$ac_cv_prog_cc_c89" != "xno" && break
3713 rm -f conftest.$ac_ext
3718 case "x$ac_cv_prog_cc_c89" in
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3721 $as_echo "none needed" >&6; } ;;
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3724 $as_echo "unsupported" >&6; } ;;
3726 CC="$CC $ac_cv_prog_cc_c89"
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3728 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3730 if test "x$ac_cv_prog_cc_c89" != xno; then :
3735 ac_cpp='$CPP $CPPFLAGS'
3736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3740 depcc="$CC" am_compiler_list=
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3743 $as_echo_n "checking dependency style of $depcc... " >&6; }
3744 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3745 $as_echo_n "(cached) " >&6
3747 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3748 # We make a subdir and do the tests there. Otherwise we can end up
3749 # making bogus files that we don't know about and never remove. For
3750 # instance it was reported that on HP-UX the gcc test will end up
3751 # making a dummy file named `D' -- because `-MD' means `put the output
3754 # Copy depcomp to subdir because otherwise we won't find it if we're
3755 # using a relative directory.
3756 cp "$am_depcomp" conftest.dir
3758 # We will build objects and dependencies in a subdirectory because
3759 # it helps to detect inapplicable dependency modes. For instance
3760 # both Tru64's cc and ICC support -MD to output dependencies as a
3761 # side effect of compilation, but ICC will put the dependencies in
3762 # the current directory while Tru64 will put them in the object
3766 am_cv_CC_dependencies_compiler_type=none
3767 if test "$am_compiler_list" = ""; then
3768 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3771 case " $depcc " in #(
3772 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3775 for depmode in $am_compiler_list; do
3776 # Setup a source with many dependencies, because some compilers
3777 # like to wrap large dependency lists on column 80 (with \), and
3778 # we should not choose a depcomp mode which is confused by this.
3780 # We need to recreate these files for each test, as the compiler may
3781 # overwrite some of them when testing with obscure command lines.
3782 # This happens at least with the AIX C compiler.
3784 for i in 1 2 3 4 5 6; do
3785 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3786 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3787 # Solaris 8's {/usr,}/bin/sh.
3788 touch sub/conftst$i.h
3790 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3792 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3793 # mode. It turns out that the SunPro C++ compiler does not properly
3794 # handle `-M -o', and we need to detect this. Also, some Intel
3795 # versions had trouble with output in subdirs
3796 am__obj=sub/conftest.${OBJEXT-o}
3797 am__minus_obj="-o $am__obj"
3800 # This depmode causes a compiler race in universal mode.
3801 test "$am__universal" = false || continue
3804 # after this tag, mechanisms are not by side-effect, so they'll
3805 # only be used when explicitly requested
3806 if test "x$enable_dependency_tracking" = xyes; then
3812 msvisualcpp | msvcmsys)
3813 # This compiler won't grok `-c -o', but also, the minuso test has
3814 # not run yet. These depmodes are late enough in the game, and
3815 # so weak that their functioning should not be impacted.
3816 am__obj=conftest.${OBJEXT-o}
3821 if depmode=$depmode \
3822 source=sub/conftest.c object=$am__obj \
3823 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3824 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3825 >/dev/null 2>conftest.err &&
3826 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3827 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3828 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3829 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3830 # icc doesn't choke on unknown options, it will just issue warnings
3831 # or remarks (even with -Werror). So we grep stderr for any message
3832 # that says an option was ignored or not supported.
3833 # When given -MP, icc 7.0 and 7.1 complain thusly:
3834 # icc: Command line warning: ignoring option '-M'; no argument required
3835 # The diagnosis changed in icc 8.0:
3836 # icc: Command line remark: option '-MP' not supported
3837 if (grep 'ignoring option' conftest.err ||
3838 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3839 am_cv_CC_dependencies_compiler_type=$depmode
3848 am_cv_CC_dependencies_compiler_type=none
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3853 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3854 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3857 test "x$enable_dependency_tracking" != xno \
3858 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3860 am__fastdepCC_FALSE='#'
3862 am__fastdepCC_TRUE='#'
3863 am__fastdepCC_FALSE=
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3868 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3869 if ${ac_cv_path_SED+:} false; then :
3870 $as_echo_n "(cached) " >&6
3872 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3873 for ac_i in 1 2 3 4 5 6 7; do
3874 ac_script="$ac_script$as_nl$ac_script"
3876 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3877 { ac_script=; unset ac_script;}
3878 if test -z "$SED"; then
3879 ac_path_SED_found=false
3880 # Loop through the user's path and test for each of PROGNAME-LIST
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 test -z "$as_dir" && as_dir=.
3886 for ac_prog in sed gsed; do
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3889 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3890 # Check for GNU ac_path_SED and select it if it is found.
3891 # Check for GNU $ac_path_SED
3892 case `"$ac_path_SED" --version 2>&1` in
3894 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3897 $as_echo_n 0123456789 >"conftest.in"
3900 cat "conftest.in" "conftest.in" >"conftest.tmp"
3901 mv "conftest.tmp" "conftest.in"
3902 cp "conftest.in" "conftest.nl"
3903 $as_echo '' >> "conftest.nl"
3904 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3905 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3906 as_fn_arith $ac_count + 1 && ac_count=$as_val
3907 if test $ac_count -gt ${ac_path_SED_max-0}; then
3908 # Best one so far, save it but keep looking for a better one
3909 ac_cv_path_SED="$ac_path_SED"
3910 ac_path_SED_max=$ac_count
3912 # 10*(2^10) chars as input seems more than enough
3913 test $ac_count -gt 10 && break
3915 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3918 $ac_path_SED_found && break 3
3923 if test -z "$ac_cv_path_SED"; then
3924 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3932 $as_echo "$ac_cv_path_SED" >&6; }
3933 SED="$ac_cv_path_SED"
3936 test -z "$SED" && SED=sed
3937 Xsed="$SED -e 1s/^X//"
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3950 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3951 if ${ac_cv_path_GREP+:} false; then :
3952 $as_echo_n "(cached) " >&6
3954 if test -z "$GREP"; then
3955 ac_path_GREP_found=false
3956 # Loop through the user's path and test for each of PROGNAME-LIST
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3961 test -z "$as_dir" && as_dir=.
3962 for ac_prog in grep ggrep; do
3963 for ac_exec_ext in '' $ac_executable_extensions; do
3964 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3965 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3966 # Check for GNU ac_path_GREP and select it if it is found.
3967 # Check for GNU $ac_path_GREP
3968 case `"$ac_path_GREP" --version 2>&1` in
3970 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3973 $as_echo_n 0123456789 >"conftest.in"
3976 cat "conftest.in" "conftest.in" >"conftest.tmp"
3977 mv "conftest.tmp" "conftest.in"
3978 cp "conftest.in" "conftest.nl"
3979 $as_echo 'GREP' >> "conftest.nl"
3980 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3981 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3982 as_fn_arith $ac_count + 1 && ac_count=$as_val
3983 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3984 # Best one so far, save it but keep looking for a better one
3985 ac_cv_path_GREP="$ac_path_GREP"
3986 ac_path_GREP_max=$ac_count
3988 # 10*(2^10) chars as input seems more than enough
3989 test $ac_count -gt 10 && break
3991 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3994 $ac_path_GREP_found && break 3
3999 if test -z "$ac_cv_path_GREP"; then
4000 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4003 ac_cv_path_GREP=$GREP
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4008 $as_echo "$ac_cv_path_GREP" >&6; }
4009 GREP="$ac_cv_path_GREP"
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4013 $as_echo_n "checking for egrep... " >&6; }
4014 if ${ac_cv_path_EGREP+:} false; then :
4015 $as_echo_n "(cached) " >&6
4017 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4018 then ac_cv_path_EGREP="$GREP -E"
4020 if test -z "$EGREP"; then
4021 ac_path_EGREP_found=false
4022 # Loop through the user's path and test for each of PROGNAME-LIST
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4027 test -z "$as_dir" && as_dir=.
4028 for ac_prog in egrep; do
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4031 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4032 # Check for GNU ac_path_EGREP and select it if it is found.
4033 # Check for GNU $ac_path_EGREP
4034 case `"$ac_path_EGREP" --version 2>&1` in
4036 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4039 $as_echo_n 0123456789 >"conftest.in"
4042 cat "conftest.in" "conftest.in" >"conftest.tmp"
4043 mv "conftest.tmp" "conftest.in"
4044 cp "conftest.in" "conftest.nl"
4045 $as_echo 'EGREP' >> "conftest.nl"
4046 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4047 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4048 as_fn_arith $ac_count + 1 && ac_count=$as_val
4049 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4050 # Best one so far, save it but keep looking for a better one
4051 ac_cv_path_EGREP="$ac_path_EGREP"
4052 ac_path_EGREP_max=$ac_count
4054 # 10*(2^10) chars as input seems more than enough
4055 test $ac_count -gt 10 && break
4057 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4060 $ac_path_EGREP_found && break 3
4065 if test -z "$ac_cv_path_EGREP"; then
4066 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4069 ac_cv_path_EGREP=$EGREP
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4075 $as_echo "$ac_cv_path_EGREP" >&6; }
4076 EGREP="$ac_cv_path_EGREP"
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4080 $as_echo_n "checking for fgrep... " >&6; }
4081 if ${ac_cv_path_FGREP+:} false; then :
4082 $as_echo_n "(cached) " >&6
4084 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4085 then ac_cv_path_FGREP="$GREP -F"
4087 if test -z "$FGREP"; then
4088 ac_path_FGREP_found=false
4089 # Loop through the user's path and test for each of PROGNAME-LIST
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4094 test -z "$as_dir" && as_dir=.
4095 for ac_prog in fgrep; do
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4098 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4099 # Check for GNU ac_path_FGREP and select it if it is found.
4100 # Check for GNU $ac_path_FGREP
4101 case `"$ac_path_FGREP" --version 2>&1` in
4103 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4106 $as_echo_n 0123456789 >"conftest.in"
4109 cat "conftest.in" "conftest.in" >"conftest.tmp"
4110 mv "conftest.tmp" "conftest.in"
4111 cp "conftest.in" "conftest.nl"
4112 $as_echo 'FGREP' >> "conftest.nl"
4113 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4114 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4115 as_fn_arith $ac_count + 1 && ac_count=$as_val
4116 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4117 # Best one so far, save it but keep looking for a better one
4118 ac_cv_path_FGREP="$ac_path_FGREP"
4119 ac_path_FGREP_max=$ac_count
4121 # 10*(2^10) chars as input seems more than enough
4122 test $ac_count -gt 10 && break
4124 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4127 $ac_path_FGREP_found && break 3
4132 if test -z "$ac_cv_path_FGREP"; then
4133 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4136 ac_cv_path_FGREP=$FGREP
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4142 $as_echo "$ac_cv_path_FGREP" >&6; }
4143 FGREP="$ac_cv_path_FGREP"
4146 test -z "$GREP" && GREP=grep
4166 # Check whether --with-gnu-ld was given.
4167 if test "${with_gnu_ld+set}" = set; then :
4168 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4174 if test "$GCC" = yes; then
4175 # Check if gcc -print-prog-name=ld gives a path.
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4177 $as_echo_n "checking for ld used by $CC... " >&6; }
4180 # gcc leaves a trailing carriage return which upsets mingw
4181 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4183 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4186 # Accept absolute paths.
4188 re_direlt='/[^/][^/]*/\.\./'
4189 # Canonicalize the pathname of ld
4190 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4191 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4192 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4194 test -z "$LD" && LD="$ac_prog"
4197 # If it fails, then pretend we aren't using GCC.
4201 # If it is relative, then search for the first ld in PATH.
4205 elif test "$with_gnu_ld" = yes; then
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4207 $as_echo_n "checking for GNU ld... " >&6; }
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4210 $as_echo_n "checking for non-GNU ld... " >&6; }
4212 if ${lt_cv_path_LD+:} false; then :
4213 $as_echo_n "(cached) " >&6
4215 if test -z "$LD"; then
4216 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4217 for ac_dir in $PATH; do
4219 test -z "$ac_dir" && ac_dir=.
4220 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4221 lt_cv_path_LD="$ac_dir/$ac_prog"
4222 # Check to see if the program is GNU ld. I'd rather use --version,
4223 # but apparently some variants of GNU ld only accept -v.
4224 # Break only if it was the GNU/non-GNU ld that we prefer.
4225 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4226 *GNU* | *'with BFD'*)
4227 test "$with_gnu_ld" != no && break
4230 test "$with_gnu_ld" != yes && break
4237 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4242 if test -n "$LD"; then
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4244 $as_echo "$LD" >&6; }
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247 $as_echo "no" >&6; }
4249 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4251 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4252 if ${lt_cv_prog_gnu_ld+:} false; then :
4253 $as_echo_n "(cached) " >&6
4255 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4256 case `$LD -v 2>&1 </dev/null` in
4257 *GNU* | *'with BFD'*)
4258 lt_cv_prog_gnu_ld=yes
4261 lt_cv_prog_gnu_ld=no
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4266 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4267 with_gnu_ld=$lt_cv_prog_gnu_ld
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4278 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4279 if ${lt_cv_path_NM+:} false; then :
4280 $as_echo_n "(cached) " >&6
4282 if test -n "$NM"; then
4283 # Let the user override the test.
4286 lt_nm_to_check="${ac_tool_prefix}nm"
4287 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4288 lt_nm_to_check="$lt_nm_to_check nm"
4290 for lt_tmp_nm in $lt_nm_to_check; do
4291 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4292 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4294 test -z "$ac_dir" && ac_dir=.
4295 tmp_nm="$ac_dir/$lt_tmp_nm"
4296 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4297 # Check to see if the nm accepts a BSD-compat flag.
4298 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4299 # nm: unknown option "B" ignored
4300 # Tru64's nm complains that /dev/null is an invalid object file
4301 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4302 */dev/null* | *'Invalid file or object type'*)
4303 lt_cv_path_NM="$tmp_nm -B"
4307 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4309 lt_cv_path_NM="$tmp_nm -p"
4313 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4314 continue # so that we can try to find one that supports BSD flags
4323 : ${lt_cv_path_NM=no}
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4327 $as_echo "$lt_cv_path_NM" >&6; }
4328 if test "$lt_cv_path_NM" != "no"; then
4331 # Didn't find any BSD compatible name lister, look for dumpbin.
4332 if test -n "$DUMPBIN"; then :
4333 # Let the user override the test.
4335 if test -n "$ac_tool_prefix"; then
4336 for ac_prog in dumpbin "link -dump"
4338 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4339 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4341 $as_echo_n "checking for $ac_word... " >&6; }
4342 if ${ac_cv_prog_DUMPBIN+:} false; then :
4343 $as_echo_n "(cached) " >&6
4345 if test -n "$DUMPBIN"; then
4346 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 test -z "$as_dir" && as_dir=.
4353 for ac_exec_ext in '' $ac_executable_extensions; do
4354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4355 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 DUMPBIN=$ac_cv_prog_DUMPBIN
4366 if test -n "$DUMPBIN"; then
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4368 $as_echo "$DUMPBIN" >&6; }
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4371 $as_echo "no" >&6; }
4375 test -n "$DUMPBIN" && break
4378 if test -z "$DUMPBIN"; then
4379 ac_ct_DUMPBIN=$DUMPBIN
4380 for ac_prog in dumpbin "link -dump"
4382 # Extract the first word of "$ac_prog", so it can be a program name with args.
4383 set dummy $ac_prog; ac_word=$2
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4385 $as_echo_n "checking for $ac_word... " >&6; }
4386 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4387 $as_echo_n "(cached) " >&6
4389 if test -n "$ac_ct_DUMPBIN"; then
4390 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4399 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4410 if test -n "$ac_ct_DUMPBIN"; then
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4412 $as_echo "$ac_ct_DUMPBIN" >&6; }
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415 $as_echo "no" >&6; }
4419 test -n "$ac_ct_DUMPBIN" && break
4422 if test "x$ac_ct_DUMPBIN" = x; then
4425 case $cross_compiling:$ac_tool_warned in
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4429 ac_tool_warned=yes ;;
4431 DUMPBIN=$ac_ct_DUMPBIN
4435 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4437 DUMPBIN="$DUMPBIN -symbols"
4445 if test "$DUMPBIN" != ":"; then
4449 test -z "$NM" && NM=nm
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4457 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4458 if ${lt_cv_nm_interface+:} false; then :
4459 $as_echo_n "(cached) " >&6
4461 lt_cv_nm_interface="BSD nm"
4462 echo "int some_variable = 0;" > conftest.$ac_ext
4463 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4464 (eval "$ac_compile" 2>conftest.err)
4465 cat conftest.err >&5
4466 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4467 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4468 cat conftest.err >&5
4469 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4470 cat conftest.out >&5
4471 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4472 lt_cv_nm_interface="MS dumpbin"
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4477 $as_echo "$lt_cv_nm_interface" >&6; }
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4480 $as_echo_n "checking whether ln -s works... " >&6; }
4482 if test "$LN_S" = "ln -s"; then
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4484 $as_echo "yes" >&6; }
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4487 $as_echo "no, using $LN_S" >&6; }
4490 # find the maximum length of command line arguments
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4492 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4493 if ${lt_cv_sys_max_cmd_len+:} false; then :
4494 $as_echo_n "(cached) " >&6
4501 # On DJGPP, this test can blow up pretty badly due to problems in libc
4502 # (any single argument exceeding 2000 bytes causes a buffer overrun
4503 # during glob expansion). Even if it were fixed, the result of this
4504 # check would be larger than it should be.
4505 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4509 # Under GNU Hurd, this test is not required because there is
4510 # no limit to the length of command line arguments.
4511 # Libtool will interpret -1 as no limit whatsoever
4512 lt_cv_sys_max_cmd_len=-1;
4515 cygwin* | mingw* | cegcc*)
4516 # On Win9x/ME, this test blows up -- it succeeds, but takes
4517 # about 5 minutes as the teststring grows exponentially.
4518 # Worse, since 9x/ME are not pre-emptively multitasking,
4519 # you end up with a "frozen" computer, even though with patience
4520 # the test eventually succeeds (with a max line length of 256k).
4521 # Instead, let's just punt: use the minimum linelength reported by
4522 # all of the supported platforms: 8192 (on NT/2K/XP).
4523 lt_cv_sys_max_cmd_len=8192;
4527 # On MiNT this can take a long time and run out of memory.
4528 lt_cv_sys_max_cmd_len=8192;
4532 # On AmigaOS with pdksh, this test takes hours, literally.
4533 # So we just punt and use a minimum line length of 8192.
4534 lt_cv_sys_max_cmd_len=8192;
4537 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4538 # This has been around since 386BSD, at least. Likely further.
4539 if test -x /sbin/sysctl; then
4540 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4541 elif test -x /usr/sbin/sysctl; then
4542 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4544 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4546 # And add a safety zone
4547 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4548 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4552 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4553 lt_cv_sys_max_cmd_len=196608
4557 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4558 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4559 # nice to cause kernel panics so lets avoid the loop below.
4560 # First set a reasonable default.
4561 lt_cv_sys_max_cmd_len=16384
4563 if test -x /sbin/sysconfig; then
4564 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4565 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4570 lt_cv_sys_max_cmd_len=102400
4572 sysv5* | sco5v6* | sysv4.2uw2*)
4573 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4574 if test -n "$kargmax"; then
4575 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4577 lt_cv_sys_max_cmd_len=32768
4581 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4582 if test -n "$lt_cv_sys_max_cmd_len"; then
4583 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4584 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4586 # Make teststring a little bigger before we do anything with it.
4587 # a 1K string should be a reasonable start.
4588 for i in 1 2 3 4 5 6 7 8 ; do
4589 teststring=$teststring$teststring
4591 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4592 # If test is not a shell built-in, we'll probably end up computing a
4593 # maximum length that is only half of the actual maximum length, but
4595 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4596 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4597 test $i != 17 # 1/2 MB should be enough
4600 teststring=$teststring$teststring
4602 # Only check the string length outside the loop.
4603 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4605 # Add a significant safety factor because C++ compilers can tack on
4606 # massive amounts of additional arguments before passing them to the
4607 # linker. It appears as though 1/2 is a usable value.
4608 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4615 if test -n $lt_cv_sys_max_cmd_len ; then
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4617 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4620 $as_echo "none" >&6; }
4622 max_cmd_len=$lt_cv_sys_max_cmd_len
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4634 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4635 # Try some XSI features
4638 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4640 && eval 'test $(( 1 + 1 )) -eq 2 \
4641 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4644 $as_echo "$xsi_shell" >&6; }
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4648 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4650 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4652 && lt_shell_append=yes
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4654 $as_echo "$lt_shell_append" >&6; }
4657 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4667 # test EBCDIC or ASCII
4668 case `echo X|tr X '\101'` in
4669 A) # ASCII based system
4670 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4671 lt_SP2NL='tr \040 \012'
4672 lt_NL2SP='tr \015\012 \040\040'
4674 *) # EBCDIC based system
4675 lt_SP2NL='tr \100 \n'
4676 lt_NL2SP='tr \r\n \100\100'
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4689 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4690 if ${lt_cv_to_host_file_cmd+:} false; then :
4691 $as_echo_n "(cached) " >&6
4696 *-*-mingw* ) # actually msys
4697 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4700 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4702 * ) # otherwise, assume *nix
4703 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4709 *-*-mingw* ) # actually msys
4710 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4713 lt_cv_to_host_file_cmd=func_convert_file_noop
4715 * ) # otherwise, assume *nix
4716 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4720 * ) # unhandled hosts (and "normal" native builds)
4721 lt_cv_to_host_file_cmd=func_convert_file_noop
4727 to_host_file_cmd=$lt_cv_to_host_file_cmd
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4729 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4736 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4737 if ${lt_cv_to_tool_file_cmd+:} false; then :
4738 $as_echo_n "(cached) " >&6
4740 #assume ordinary cross tools, or native build.
4741 lt_cv_to_tool_file_cmd=func_convert_file_noop
4745 *-*-mingw* ) # actually msys
4746 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4754 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4756 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4763 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4764 if ${lt_cv_ld_reload_flag+:} false; then :
4765 $as_echo_n "(cached) " >&6
4767 lt_cv_ld_reload_flag='-r'
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4770 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4771 reload_flag=$lt_cv_ld_reload_flag
4772 case $reload_flag in
4774 *) reload_flag=" $reload_flag" ;;
4776 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4778 cygwin* | mingw* | pw32* | cegcc*)
4779 if test "$GCC" != yes; then
4784 if test "$GCC" = yes; then
4785 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4787 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4800 if test -n "$ac_tool_prefix"; then
4801 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4802 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4804 $as_echo_n "checking for $ac_word... " >&6; }
4805 if ${ac_cv_prog_OBJDUMP+:} false; then :
4806 $as_echo_n "(cached) " >&6
4808 if test -n "$OBJDUMP"; then
4809 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 test -z "$as_dir" && as_dir=.
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4818 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 OBJDUMP=$ac_cv_prog_OBJDUMP
4829 if test -n "$OBJDUMP"; then
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4831 $as_echo "$OBJDUMP" >&6; }
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834 $as_echo "no" >&6; }
4839 if test -z "$ac_cv_prog_OBJDUMP"; then
4840 ac_ct_OBJDUMP=$OBJDUMP
4841 # Extract the first word of "objdump", so it can be a program name with args.
4842 set dummy objdump; ac_word=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4846 $as_echo_n "(cached) " >&6
4848 if test -n "$ac_ct_OBJDUMP"; then
4849 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4858 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4869 if test -n "$ac_ct_OBJDUMP"; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4871 $as_echo "$ac_ct_OBJDUMP" >&6; }
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4877 if test "x$ac_ct_OBJDUMP" = x; then
4880 case $cross_compiling:$ac_tool_warned in
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4884 ac_tool_warned=yes ;;
4886 OBJDUMP=$ac_ct_OBJDUMP
4889 OBJDUMP="$ac_cv_prog_OBJDUMP"
4892 test -z "$OBJDUMP" && OBJDUMP=objdump
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4903 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4904 if ${lt_cv_deplibs_check_method+:} false; then :
4905 $as_echo_n "(cached) " >&6
4907 lt_cv_file_magic_cmd='$MAGIC_CMD'
4908 lt_cv_file_magic_test_file=
4909 lt_cv_deplibs_check_method='unknown'
4910 # Need to set the preceding variable on all platforms that support
4911 # interlibrary dependencies.
4912 # 'none' -- dependencies not supported.
4913 # `unknown' -- same as none, but documents that we really don't know.
4914 # 'pass_all' -- all dependencies passed with no checks.
4915 # 'test_compile' -- check by making test program.
4916 # 'file_magic [[regex]]' -- check by looking for files in library path
4917 # which responds to the $file_magic_cmd with a given extended regex.
4918 # If you have `file' or equivalent on your system and you're not sure
4919 # whether `pass_all' will *always* work, you probably want this one.
4923 lt_cv_deplibs_check_method=pass_all
4927 lt_cv_deplibs_check_method=pass_all
4931 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4932 lt_cv_file_magic_cmd='/usr/bin/file -L'
4933 lt_cv_file_magic_test_file=/shlib/libc.so
4937 # func_win32_libid is a shell function defined in ltmain.sh
4938 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4939 lt_cv_file_magic_cmd='func_win32_libid'
4943 # Base MSYS/MinGW do not provide the 'file' command needed by
4944 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4945 # unless we find 'file', for example because we are cross-compiling.
4946 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4947 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4948 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4949 lt_cv_file_magic_cmd='func_win32_libid'
4951 # Keep this pattern in sync with the one in func_win32_libid.
4952 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4953 lt_cv_file_magic_cmd='$OBJDUMP -f'
4958 # use the weaker test based on 'objdump'. See mingw*.
4959 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4960 lt_cv_file_magic_cmd='$OBJDUMP -f'
4963 darwin* | rhapsody*)
4964 lt_cv_deplibs_check_method=pass_all
4967 freebsd* | dragonfly*)
4968 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4971 # Not sure whether the presence of OpenBSD here was a mistake.
4972 # Let's accept both of them until this is cleared up.
4973 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4974 lt_cv_file_magic_cmd=/usr/bin/file
4975 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4979 lt_cv_deplibs_check_method=pass_all
4984 lt_cv_deplibs_check_method=pass_all
4988 lt_cv_deplibs_check_method=pass_all
4991 hpux10.20* | hpux11*)
4992 lt_cv_file_magic_cmd=/usr/bin/file
4995 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4996 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4999 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]'
5000 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5003 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5004 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5010 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5011 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5014 irix5* | irix6* | nonstopux*)
5016 *-32|*"-32 ") libmagic=32-bit;;
5017 *-n32|*"-n32 ") libmagic=N32;;
5018 *-64|*"-64 ") libmagic=64-bit;;
5019 *) libmagic=never-match;;
5021 lt_cv_deplibs_check_method=pass_all
5024 # This must be Linux ELF.
5025 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5026 lt_cv_deplibs_check_method=pass_all
5030 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5031 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5033 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5038 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5039 lt_cv_file_magic_cmd=/usr/bin/file
5040 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5044 lt_cv_deplibs_check_method=pass_all
5048 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5049 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5051 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5055 osf3* | osf4* | osf5*)
5056 lt_cv_deplibs_check_method=pass_all
5060 lt_cv_deplibs_check_method=pass_all
5064 lt_cv_deplibs_check_method=pass_all
5067 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5068 lt_cv_deplibs_check_method=pass_all
5072 case $host_vendor in
5074 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]'
5075 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5078 lt_cv_deplibs_check_method=pass_all
5081 lt_cv_file_magic_cmd='/bin/file'
5082 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5085 lt_cv_file_magic_cmd='/bin/file'
5086 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5087 lt_cv_file_magic_test_file=/lib/libc.so
5090 lt_cv_deplibs_check_method=pass_all
5093 lt_cv_deplibs_check_method=pass_all
5099 lt_cv_deplibs_check_method=pass_all
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5105 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5109 if test "$build" = "$host"; then
5112 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5115 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5121 file_magic_cmd=$lt_cv_file_magic_cmd
5122 deplibs_check_method=$lt_cv_deplibs_check_method
5123 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5146 if test -n "$ac_tool_prefix"; then
5147 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5148 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150 $as_echo_n "checking for $ac_word... " >&6; }
5151 if ${ac_cv_prog_DLLTOOL+:} false; then :
5152 $as_echo_n "(cached) " >&6
5154 if test -n "$DLLTOOL"; then
5155 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5164 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 DLLTOOL=$ac_cv_prog_DLLTOOL
5175 if test -n "$DLLTOOL"; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5177 $as_echo "$DLLTOOL" >&6; }
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 $as_echo "no" >&6; }
5185 if test -z "$ac_cv_prog_DLLTOOL"; then
5186 ac_ct_DLLTOOL=$DLLTOOL
5187 # Extract the first word of "dlltool", so it can be a program name with args.
5188 set dummy dlltool; ac_word=$2
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190 $as_echo_n "checking for $ac_word... " >&6; }
5191 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5192 $as_echo_n "(cached) " >&6
5194 if test -n "$ac_ct_DLLTOOL"; then
5195 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5204 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5215 if test -n "$ac_ct_DLLTOOL"; then
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5217 $as_echo "$ac_ct_DLLTOOL" >&6; }
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 $as_echo "no" >&6; }
5223 if test "x$ac_ct_DLLTOOL" = x; then
5226 case $cross_compiling:$ac_tool_warned in
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5230 ac_tool_warned=yes ;;
5232 DLLTOOL=$ac_ct_DLLTOOL
5235 DLLTOOL="$ac_cv_prog_DLLTOOL"
5238 test -z "$DLLTOOL" && DLLTOOL=dlltool
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5250 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5251 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5252 $as_echo_n "(cached) " >&6
5254 lt_cv_sharedlib_from_linklib_cmd='unknown'
5257 cygwin* | mingw* | pw32* | cegcc*)
5258 # two different shell functions defined in ltmain.sh
5259 # decide which to use based on capabilities of $DLLTOOL
5260 case `$DLLTOOL --help 2>&1` in
5261 *--identify-strict*)
5262 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5265 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5270 # fallback: assume linklib IS sharedlib
5271 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5277 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5278 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5279 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5288 if test -n "$ac_tool_prefix"; then
5291 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294 $as_echo_n "checking for $ac_word... " >&6; }
5295 if ${ac_cv_prog_AR+:} false; then :
5296 $as_echo_n "(cached) " >&6
5298 if test -n "$AR"; then
5299 ac_cv_prog_AR="$AR" # Let the user override the test.
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5308 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 if test -n "$AR"; then
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5321 $as_echo "$AR" >&6; }
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5328 test -n "$AR" && break
5331 if test -z "$AR"; then
5335 # Extract the first word of "$ac_prog", so it can be a program name with args.
5336 set dummy $ac_prog; ac_word=$2
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 $as_echo_n "checking for $ac_word... " >&6; }
5339 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5340 $as_echo_n "(cached) " >&6
5342 if test -n "$ac_ct_AR"; then
5343 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 test -z "$as_dir" && as_dir=.
5350 for ac_exec_ext in '' $ac_executable_extensions; do
5351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5352 ac_cv_prog_ac_ct_AR="$ac_prog"
5353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5363 if test -n "$ac_ct_AR"; then
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5365 $as_echo "$ac_ct_AR" >&6; }
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5372 test -n "$ac_ct_AR" && break
5375 if test "x$ac_ct_AR" = x; then
5378 case $cross_compiling:$ac_tool_warned in
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5382 ac_tool_warned=yes ;;
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5402 $as_echo_n "checking for archiver @FILE support... " >&6; }
5403 if ${lt_cv_ar_at_file+:} false; then :
5404 $as_echo_n "(cached) " >&6
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5418 if ac_fn_c_try_compile "$LINENO"; then :
5419 echo conftest.$ac_objext > conftest.lst
5420 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5422 (eval $lt_ar_try) 2>&5
5424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5425 test $ac_status = 0; }
5426 if test "$ac_status" -eq 0; then
5427 # Ensure the archiver fails upon bogus file names.
5428 rm -f conftest.$ac_objext libconftest.a
5429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5430 (eval $lt_ar_try) 2>&5
5432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5433 test $ac_status = 0; }
5434 if test "$ac_status" -ne 0; then
5438 rm -f conftest.* libconftest.a
5441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5445 $as_echo "$lt_cv_ar_at_file" >&6; }
5447 if test "x$lt_cv_ar_at_file" = xno; then
5450 archiver_list_spec=$lt_cv_ar_at_file
5459 if test -n "$ac_tool_prefix"; then
5460 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5461 set dummy ${ac_tool_prefix}strip; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if ${ac_cv_prog_STRIP+:} false; then :
5465 $as_echo_n "(cached) " >&6
5467 if test -n "$STRIP"; then
5468 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 STRIP=$ac_cv_prog_STRIP
5488 if test -n "$STRIP"; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5490 $as_echo "$STRIP" >&6; }
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5498 if test -z "$ac_cv_prog_STRIP"; then
5500 # Extract the first word of "strip", so it can be a program name with args.
5501 set dummy strip; ac_word=$2
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503 $as_echo_n "checking for $ac_word... " >&6; }
5504 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5505 $as_echo_n "(cached) " >&6
5507 if test -n "$ac_ct_STRIP"; then
5508 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5517 ac_cv_prog_ac_ct_STRIP="strip"
5518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5527 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5528 if test -n "$ac_ct_STRIP"; then
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5530 $as_echo "$ac_ct_STRIP" >&6; }
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 $as_echo "no" >&6; }
5536 if test "x$ac_ct_STRIP" = x; then
5539 case $cross_compiling:$ac_tool_warned in
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5543 ac_tool_warned=yes ;;
5548 STRIP="$ac_cv_prog_STRIP"
5551 test -z "$STRIP" && STRIP=:
5558 if test -n "$ac_tool_prefix"; then
5559 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5560 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if ${ac_cv_prog_RANLIB+:} false; then :
5564 $as_echo_n "(cached) " >&6
5566 if test -n "$RANLIB"; then
5567 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 test -z "$as_dir" && as_dir=.
5574 for ac_exec_ext in '' $ac_executable_extensions; do
5575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5576 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 RANLIB=$ac_cv_prog_RANLIB
5587 if test -n "$RANLIB"; then
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5589 $as_echo "$RANLIB" >&6; }
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5592 $as_echo "no" >&6; }
5597 if test -z "$ac_cv_prog_RANLIB"; then
5598 ac_ct_RANLIB=$RANLIB
5599 # Extract the first word of "ranlib", so it can be a program name with args.
5600 set dummy ranlib; ac_word=$2
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5604 $as_echo_n "(cached) " >&6
5606 if test -n "$ac_ct_RANLIB"; then
5607 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5616 ac_cv_prog_ac_ct_RANLIB="ranlib"
5617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5627 if test -n "$ac_ct_RANLIB"; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5629 $as_echo "$ac_ct_RANLIB" >&6; }
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5635 if test "x$ac_ct_RANLIB" = x; then
5638 case $cross_compiling:$ac_tool_warned in
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5642 ac_tool_warned=yes ;;
5644 RANLIB=$ac_ct_RANLIB
5647 RANLIB="$ac_cv_prog_RANLIB"
5650 test -z "$RANLIB" && RANLIB=:
5657 # Determine commands to create old-style static archives.
5658 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5659 old_postinstall_cmds='chmod 644 $oldlib'
5660 old_postuninstall_cmds=
5662 if test -n "$RANLIB"; then
5665 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5668 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5671 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5676 lock_old_archive_extraction=yes ;;
5678 lock_old_archive_extraction=no ;;
5719 # If no C compiler was specified, use CC.
5722 # If no C compiler flags were specified, use CFLAGS.
5723 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5725 # Allow CC to be a program name with arguments.
5729 # Check for command to grab the raw symbol name followed by C symbol from nm.
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5731 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5732 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5733 $as_echo_n "(cached) " >&6
5736 # These are sane defaults that work on at least a few old systems.
5737 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5739 # Character class describing NM global symbol codes.
5740 symcode='[BCDEGRST]'
5742 # Regexp to match symbols that can be accessed directly from C.
5743 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5745 # Define system-specific variables.
5750 cygwin* | mingw* | pw32* | cegcc*)
5751 symcode='[ABCDGISTW]'
5754 if test "$host_cpu" = ia64; then
5755 symcode='[ABCDEGRST]'
5759 symcode='[BCDEGRST]'
5762 symcode='[BCDEGQRST]'
5773 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5781 # If we're using GNU nm, then use its standard symbol codes.
5782 case `$NM -V 2>&1` in
5783 *GNU* | *'with BFD'*)
5784 symcode='[ABCDGIRSTW]' ;;
5787 # Transform an extracted symbol line into a proper C declaration.
5788 # Some systems (esp. on ia64) link data and code symbols differently,
5789 # so use this general approach.
5790 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5792 # Transform an extracted symbol line into symbol name and symbol address
5793 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5794 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'"
5796 # Handle CRLF in mingw tool chain
5800 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5804 # Try without a prefix underscore, then with it.
5805 for ac_symprfx in "" "_"; do
5807 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5808 symxfrm="\\1 $ac_symprfx\\2 \\2"
5810 # Write the raw and C identifiers.
5811 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5812 # Fake it for dumpbin and say T for any non-static function
5813 # and D for any global variable.
5814 # Also find C++ and __fastcall symbols from MSVC++,
5815 # which start with @ or ?.
5816 lt_cv_sys_global_symbol_pipe="$AWK '"\
5817 " {last_section=section; section=\$ 3};"\
5818 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5819 " \$ 0!~/External *\|/{next};"\
5820 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5821 " {if(hide[section]) next};"\
5822 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5823 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5824 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5825 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5826 " ' prfx=^$ac_symprfx"
5828 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5830 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5832 # Check to see that the pipe works correctly.
5836 cat > conftest.$ac_ext <<_LT_EOF
5841 void nm_test_func(void);
5842 void nm_test_func(void){}
5846 int main(){nm_test_var='a';nm_test_func();return(0);}
5849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5850 (eval $ac_compile) 2>&5
5852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5853 test $ac_status = 0; }; then
5854 # Now try to grab the symbols.
5856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5857 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5860 test $ac_status = 0; } && test -s "$nlist"; then
5861 # Try sorting and uniquifying the output.
5862 if sort "$nlist" | uniq > "$nlist"T; then
5863 mv -f "$nlist"T "$nlist"
5868 # Make sure that we snagged all the symbols we need.
5869 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5870 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5871 cat <<_LT_EOF > conftest.$ac_ext
5872 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5873 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5874 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5875 relocations are performed -- see ld's documentation on pseudo-relocs. */
5876 # define LT_DLSYM_CONST
5877 #elif defined(__osf__)
5878 /* This system does not cope well with relocations in const data. */
5879 # define LT_DLSYM_CONST
5881 # define LT_DLSYM_CONST const
5889 # Now generate the symbol file.
5890 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5892 cat <<_LT_EOF >> conftest.$ac_ext
5894 /* The mapping between symbol names and symbols. */
5895 LT_DLSYM_CONST struct {
5899 lt__PROGRAM__LTX_preloaded_symbols[] =
5901 { "@PROGRAM@", (void *) 0 },
5903 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5904 cat <<\_LT_EOF >> conftest.$ac_ext
5908 /* This works around a problem in FreeBSD linker */
5909 #ifdef FREEBSD_WORKAROUND
5910 static const void *lt_preloaded_setup() {
5911 return lt__PROGRAM__LTX_preloaded_symbols;
5919 # Now try linking the two files.
5920 mv conftest.$ac_objext conftstm.$ac_objext
5921 lt_globsym_save_LIBS=$LIBS
5922 lt_globsym_save_CFLAGS=$CFLAGS
5923 LIBS="conftstm.$ac_objext"
5924 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5926 (eval $ac_link) 2>&5
5928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5929 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5932 LIBS=$lt_globsym_save_LIBS
5933 CFLAGS=$lt_globsym_save_CFLAGS
5935 echo "cannot find nm_test_func in $nlist" >&5
5938 echo "cannot find nm_test_var in $nlist" >&5
5941 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5944 echo "$progname: failed program was:" >&5
5945 cat conftest.$ac_ext >&5
5947 rm -rf conftest* conftst*
5949 # Do not use the global_symbol_pipe unless it works.
5950 if test "$pipe_works" = yes; then
5953 lt_cv_sys_global_symbol_pipe=
5959 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5960 lt_cv_sys_global_symbol_to_cdecl=
5962 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5964 $as_echo "failed" >&6; }
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5967 $as_echo "ok" >&6; }
5970 # Response file support.
5971 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5972 nm_file_list_spec='@'
5973 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5974 nm_file_list_spec='@'
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6004 $as_echo_n "checking for sysroot... " >&6; }
6006 # Check whether --with-sysroot was given.
6007 if test "${with_sysroot+set}" = set; then :
6008 withval=$with_sysroot;
6015 case ${with_sysroot} in #(
6017 if test "$GCC" = yes; then
6018 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6022 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6028 $as_echo "${with_sysroot}" >&6; }
6029 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6034 $as_echo "${lt_sysroot:-no}" >&6; }
6040 # Check whether --enable-libtool-lock was given.
6041 if test "${enable_libtool_lock+set}" = set; then :
6042 enableval=$enable_libtool_lock;
6045 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6047 # Some flags need to be propagated to the compiler or linker for good
6051 # Find out which ABI we are using.
6052 echo 'int i;' > conftest.$ac_ext
6053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6054 (eval $ac_compile) 2>&5
6056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6057 test $ac_status = 0; }; then
6058 case `/usr/bin/file conftest.$ac_objext` in
6070 # Find out which ABI we are using.
6071 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6073 (eval $ac_compile) 2>&5
6075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6076 test $ac_status = 0; }; then
6077 if test "$lt_cv_prog_gnu_ld" = yes; then
6078 case `/usr/bin/file conftest.$ac_objext` in
6080 LD="${LD-ld} -melf32bsmip"
6083 LD="${LD-ld} -melf32bmipn32"
6086 LD="${LD-ld} -melf64bmip"
6090 case `/usr/bin/file conftest.$ac_objext` in
6106 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6107 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6108 # Find out which ABI we are using.
6109 echo 'int i;' > conftest.$ac_ext
6110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6111 (eval $ac_compile) 2>&5
6113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6114 test $ac_status = 0; }; then
6115 case `/usr/bin/file conftest.o` in
6118 x86_64-*kfreebsd*-gnu)
6119 LD="${LD-ld} -m elf_i386_fbsd"
6122 LD="${LD-ld} -m elf_i386"
6124 ppc64-*linux*|powerpc64-*linux*)
6125 LD="${LD-ld} -m elf32ppclinux"
6128 LD="${LD-ld} -m elf_s390"
6131 LD="${LD-ld} -m elf32_sparc"
6137 x86_64-*kfreebsd*-gnu)
6138 LD="${LD-ld} -m elf_x86_64_fbsd"
6141 LD="${LD-ld} -m elf_x86_64"
6143 ppc*-*linux*|powerpc*-*linux*)
6144 LD="${LD-ld} -m elf64ppc"
6146 s390*-*linux*|s390*-*tpf*)
6147 LD="${LD-ld} -m elf64_s390"
6150 LD="${LD-ld} -m elf64_sparc"
6160 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6161 SAVE_CFLAGS="$CFLAGS"
6162 CFLAGS="$CFLAGS -belf"
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6164 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6165 if ${lt_cv_cc_needs_belf+:} false; then :
6166 $as_echo_n "(cached) " >&6
6169 ac_cpp='$CPP $CPPFLAGS'
6170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175 /* end confdefs.h. */
6185 if ac_fn_c_try_link "$LINENO"; then :
6186 lt_cv_cc_needs_belf=yes
6188 lt_cv_cc_needs_belf=no
6190 rm -f core conftest.err conftest.$ac_objext \
6191 conftest$ac_exeext conftest.$ac_ext
6193 ac_cpp='$CPP $CPPFLAGS'
6194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6200 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6201 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6202 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6203 CFLAGS="$SAVE_CFLAGS"
6207 # Find out which ABI we are using.
6208 echo 'int i;' > conftest.$ac_ext
6209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6210 (eval $ac_compile) 2>&5
6212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6213 test $ac_status = 0; }; then
6214 case `/usr/bin/file conftest.o` in
6216 case $lt_cv_prog_gnu_ld in
6217 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6219 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6231 need_locks="$enable_libtool_lock"
6233 if test -n "$ac_tool_prefix"; then
6234 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6235 set dummy ${ac_tool_prefix}mt; ac_word=$2
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237 $as_echo_n "checking for $ac_word... " >&6; }
6238 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6239 $as_echo_n "(cached) " >&6
6241 if test -n "$MANIFEST_TOOL"; then
6242 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 test -z "$as_dir" && as_dir=.
6249 for ac_exec_ext in '' $ac_executable_extensions; do
6250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6251 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6261 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6262 if test -n "$MANIFEST_TOOL"; then
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6264 $as_echo "$MANIFEST_TOOL" >&6; }
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267 $as_echo "no" >&6; }
6272 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6273 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6274 # Extract the first word of "mt", so it can be a program name with args.
6275 set dummy mt; ac_word=$2
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277 $as_echo_n "checking for $ac_word... " >&6; }
6278 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6279 $as_echo_n "(cached) " >&6
6281 if test -n "$ac_ct_MANIFEST_TOOL"; then
6282 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 test -z "$as_dir" && as_dir=.
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6291 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6302 if test -n "$ac_ct_MANIFEST_TOOL"; then
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6304 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 $as_echo "no" >&6; }
6310 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6313 case $cross_compiling:$ac_tool_warned in
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6317 ac_tool_warned=yes ;;
6319 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6322 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6325 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6327 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6328 if ${lt_cv_path_mainfest_tool+:} false; then :
6329 $as_echo_n "(cached) " >&6
6331 lt_cv_path_mainfest_tool=no
6332 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6333 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6334 cat conftest.err >&5
6335 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6336 lt_cv_path_mainfest_tool=yes
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6341 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6342 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6352 rhapsody* | darwin*)
6353 if test -n "$ac_tool_prefix"; then
6354 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6355 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357 $as_echo_n "checking for $ac_word... " >&6; }
6358 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6359 $as_echo_n "(cached) " >&6
6361 if test -n "$DSYMUTIL"; then
6362 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 test -z "$as_dir" && as_dir=.
6369 for ac_exec_ext in '' $ac_executable_extensions; do
6370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6371 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6381 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6382 if test -n "$DSYMUTIL"; then
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6384 $as_echo "$DSYMUTIL" >&6; }
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387 $as_echo "no" >&6; }
6392 if test -z "$ac_cv_prog_DSYMUTIL"; then
6393 ac_ct_DSYMUTIL=$DSYMUTIL
6394 # Extract the first word of "dsymutil", so it can be a program name with args.
6395 set dummy dsymutil; ac_word=$2
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6397 $as_echo_n "checking for $ac_word... " >&6; }
6398 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6399 $as_echo_n "(cached) " >&6
6401 if test -n "$ac_ct_DSYMUTIL"; then
6402 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 test -z "$as_dir" && as_dir=.
6409 for ac_exec_ext in '' $ac_executable_extensions; do
6410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6411 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6421 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6422 if test -n "$ac_ct_DSYMUTIL"; then
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6424 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6427 $as_echo "no" >&6; }
6430 if test "x$ac_ct_DSYMUTIL" = x; then
6433 case $cross_compiling:$ac_tool_warned in
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6437 ac_tool_warned=yes ;;
6439 DSYMUTIL=$ac_ct_DSYMUTIL
6442 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6445 if test -n "$ac_tool_prefix"; then
6446 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6447 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449 $as_echo_n "checking for $ac_word... " >&6; }
6450 if ${ac_cv_prog_NMEDIT+:} false; then :
6451 $as_echo_n "(cached) " >&6
6453 if test -n "$NMEDIT"; then
6454 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 test -z "$as_dir" && as_dir=.
6461 for ac_exec_ext in '' $ac_executable_extensions; do
6462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6463 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 NMEDIT=$ac_cv_prog_NMEDIT
6474 if test -n "$NMEDIT"; then
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6476 $as_echo "$NMEDIT" >&6; }
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479 $as_echo "no" >&6; }
6484 if test -z "$ac_cv_prog_NMEDIT"; then
6485 ac_ct_NMEDIT=$NMEDIT
6486 # Extract the first word of "nmedit", so it can be a program name with args.
6487 set dummy nmedit; ac_word=$2
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489 $as_echo_n "checking for $ac_word... " >&6; }
6490 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6491 $as_echo_n "(cached) " >&6
6493 if test -n "$ac_ct_NMEDIT"; then
6494 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500 test -z "$as_dir" && as_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6503 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6513 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6514 if test -n "$ac_ct_NMEDIT"; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6516 $as_echo "$ac_ct_NMEDIT" >&6; }
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 $as_echo "no" >&6; }
6522 if test "x$ac_ct_NMEDIT" = x; then
6525 case $cross_compiling:$ac_tool_warned in
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6529 ac_tool_warned=yes ;;
6531 NMEDIT=$ac_ct_NMEDIT
6534 NMEDIT="$ac_cv_prog_NMEDIT"
6537 if test -n "$ac_tool_prefix"; then
6538 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6539 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541 $as_echo_n "checking for $ac_word... " >&6; }
6542 if ${ac_cv_prog_LIPO+:} false; then :
6543 $as_echo_n "(cached) " >&6
6545 if test -n "$LIPO"; then
6546 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6555 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 LIPO=$ac_cv_prog_LIPO
6566 if test -n "$LIPO"; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6568 $as_echo "$LIPO" >&6; }
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571 $as_echo "no" >&6; }
6576 if test -z "$ac_cv_prog_LIPO"; then
6578 # Extract the first word of "lipo", so it can be a program name with args.
6579 set dummy lipo; ac_word=$2
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581 $as_echo_n "checking for $ac_word... " >&6; }
6582 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6583 $as_echo_n "(cached) " >&6
6585 if test -n "$ac_ct_LIPO"; then
6586 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 test -z "$as_dir" && as_dir=.
6593 for ac_exec_ext in '' $ac_executable_extensions; do
6594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6595 ac_cv_prog_ac_ct_LIPO="lipo"
6596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6606 if test -n "$ac_ct_LIPO"; then
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6608 $as_echo "$ac_ct_LIPO" >&6; }
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611 $as_echo "no" >&6; }
6614 if test "x$ac_ct_LIPO" = x; then
6617 case $cross_compiling:$ac_tool_warned in
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6621 ac_tool_warned=yes ;;
6626 LIPO="$ac_cv_prog_LIPO"
6629 if test -n "$ac_tool_prefix"; then
6630 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6631 set dummy ${ac_tool_prefix}otool; ac_word=$2
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633 $as_echo_n "checking for $ac_word... " >&6; }
6634 if ${ac_cv_prog_OTOOL+:} false; then :
6635 $as_echo_n "(cached) " >&6
6637 if test -n "$OTOOL"; then
6638 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 test -z "$as_dir" && as_dir=.
6645 for ac_exec_ext in '' $ac_executable_extensions; do
6646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6647 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6657 OTOOL=$ac_cv_prog_OTOOL
6658 if test -n "$OTOOL"; then
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6660 $as_echo "$OTOOL" >&6; }
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663 $as_echo "no" >&6; }
6668 if test -z "$ac_cv_prog_OTOOL"; then
6670 # Extract the first word of "otool", so it can be a program name with args.
6671 set dummy otool; ac_word=$2
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 $as_echo_n "checking for $ac_word... " >&6; }
6674 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6675 $as_echo_n "(cached) " >&6
6677 if test -n "$ac_ct_OTOOL"; then
6678 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6687 ac_cv_prog_ac_ct_OTOOL="otool"
6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6697 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6698 if test -n "$ac_ct_OTOOL"; then
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6700 $as_echo "$ac_ct_OTOOL" >&6; }
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6706 if test "x$ac_ct_OTOOL" = x; then
6709 case $cross_compiling:$ac_tool_warned in
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6713 ac_tool_warned=yes ;;
6718 OTOOL="$ac_cv_prog_OTOOL"
6721 if test -n "$ac_tool_prefix"; then
6722 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6723 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725 $as_echo_n "checking for $ac_word... " >&6; }
6726 if ${ac_cv_prog_OTOOL64+:} false; then :
6727 $as_echo_n "(cached) " >&6
6729 if test -n "$OTOOL64"; then
6730 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 test -z "$as_dir" && as_dir=.
6737 for ac_exec_ext in '' $ac_executable_extensions; do
6738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6739 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 OTOOL64=$ac_cv_prog_OTOOL64
6750 if test -n "$OTOOL64"; then
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6752 $as_echo "$OTOOL64" >&6; }
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755 $as_echo "no" >&6; }
6760 if test -z "$ac_cv_prog_OTOOL64"; then
6761 ac_ct_OTOOL64=$OTOOL64
6762 # Extract the first word of "otool64", so it can be a program name with args.
6763 set dummy otool64; ac_word=$2
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6767 $as_echo_n "(cached) " >&6
6769 if test -n "$ac_ct_OTOOL64"; then
6770 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6779 ac_cv_prog_ac_ct_OTOOL64="otool64"
6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6790 if test -n "$ac_ct_OTOOL64"; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6792 $as_echo "$ac_ct_OTOOL64" >&6; }
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6798 if test "x$ac_ct_OTOOL64" = x; then
6801 case $cross_compiling:$ac_tool_warned in
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6805 ac_tool_warned=yes ;;
6807 OTOOL64=$ac_ct_OTOOL64
6810 OTOOL64="$ac_cv_prog_OTOOL64"
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6840 $as_echo_n "checking for -single_module linker flag... " >&6; }
6841 if ${lt_cv_apple_cc_single_mod+:} false; then :
6842 $as_echo_n "(cached) " >&6
6844 lt_cv_apple_cc_single_mod=no
6845 if test -z "${LT_MULTI_MODULE}"; then
6846 # By default we will add the -single_module flag. You can override
6847 # by either setting the environment variable LT_MULTI_MODULE
6848 # non-empty at configure time, or by adding -multi_module to the
6850 rm -rf libconftest.dylib*
6851 echo "int foo(void){return 1;}" > conftest.c
6852 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6853 -dynamiclib -Wl,-single_module conftest.c" >&5
6854 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6855 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6857 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6858 lt_cv_apple_cc_single_mod=yes
6860 cat conftest.err >&5
6862 rm -rf libconftest.dylib*
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6867 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6869 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6870 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6871 $as_echo_n "(cached) " >&6
6873 lt_cv_ld_exported_symbols_list=no
6874 save_LDFLAGS=$LDFLAGS
6875 echo "_main" > conftest.sym
6876 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6888 if ac_fn_c_try_link "$LINENO"; then :
6889 lt_cv_ld_exported_symbols_list=yes
6891 lt_cv_ld_exported_symbols_list=no
6893 rm -f core conftest.err conftest.$ac_objext \
6894 conftest$ac_exeext conftest.$ac_ext
6895 LDFLAGS="$save_LDFLAGS"
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6899 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6901 $as_echo_n "checking for -force_load linker flag... " >&6; }
6902 if ${lt_cv_ld_force_load+:} false; then :
6903 $as_echo_n "(cached) " >&6
6905 lt_cv_ld_force_load=no
6906 cat > conftest.c << _LT_EOF
6907 int forced_loaded() { return 2;}
6909 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6910 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6911 echo "$AR cru libconftest.a conftest.o" >&5
6912 $AR cru libconftest.a conftest.o 2>&5
6913 echo "$RANLIB libconftest.a" >&5
6914 $RANLIB libconftest.a 2>&5
6915 cat > conftest.c << _LT_EOF
6916 int main() { return 0;}
6918 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6919 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6921 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6922 lt_cv_ld_force_load=yes
6924 cat conftest.err >&5
6926 rm -f conftest.err libconftest.a conftest conftest.c
6927 rm -rf conftest.dSYM
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6931 $as_echo "$lt_cv_ld_force_load" >&6; }
6933 rhapsody* | darwin1.[012])
6934 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6936 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6937 darwin*) # darwin 5.x on
6938 # if running on 10.5 or later, the deployment target defaults
6939 # to the OS version, if on x86, and 10.4, the deployment
6940 # target defaults to 10.4. Don't you love it?
6941 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6942 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6943 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6945 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6947 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6951 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6952 _lt_dar_single_mod='$single_module'
6954 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6955 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6957 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6959 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6960 _lt_dsymutil='~$DSYMUTIL $lib || :'
6968 ac_cpp='$CPP $CPPFLAGS'
6969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6973 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6974 # On Suns, sometimes $CPP names a directory.
6975 if test -n "$CPP" && test -d "$CPP"; then
6978 if test -z "$CPP"; then
6979 if ${ac_cv_prog_CPP+:} false; then :
6980 $as_echo_n "(cached) " >&6
6982 # Double quotes because CPP needs to be expanded
6983 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6986 for ac_c_preproc_warn_flag in '' yes
6988 # Use a header file that comes with gcc, so configuring glibc
6989 # with a fresh cross-compiler works.
6990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6991 # <limits.h> exists even on freestanding compilers.
6992 # On the NeXT, cc -E runs the code through the compiler's parser,
6993 # not just through cpp. "Syntax error" is here to catch this case.
6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995 /* end confdefs.h. */
6997 # include <limits.h>
6999 # include <assert.h>
7003 if ac_fn_c_try_cpp "$LINENO"; then :
7006 # Broken: fails on valid input.
7009 rm -f conftest.err conftest.i conftest.$ac_ext
7011 # OK, works on sane cases. Now check whether nonexistent headers
7012 # can be detected and how.
7013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014 /* end confdefs.h. */
7015 #include <ac_nonexistent.h>
7017 if ac_fn_c_try_cpp "$LINENO"; then :
7018 # Broken: success on invalid input.
7021 # Passes both tests.
7025 rm -f conftest.err conftest.i conftest.$ac_ext
7028 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7029 rm -f conftest.i conftest.err conftest.$ac_ext
7030 if $ac_preproc_ok; then :
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7043 $as_echo "$CPP" >&6; }
7045 for ac_c_preproc_warn_flag in '' yes
7047 # Use a header file that comes with gcc, so configuring glibc
7048 # with a fresh cross-compiler works.
7049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7050 # <limits.h> exists even on freestanding compilers.
7051 # On the NeXT, cc -E runs the code through the compiler's parser,
7052 # not just through cpp. "Syntax error" is here to catch this case.
7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h. */
7056 # include <limits.h>
7058 # include <assert.h>
7062 if ac_fn_c_try_cpp "$LINENO"; then :
7065 # Broken: fails on valid input.
7068 rm -f conftest.err conftest.i conftest.$ac_ext
7070 # OK, works on sane cases. Now check whether nonexistent headers
7071 # can be detected and how.
7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073 /* end confdefs.h. */
7074 #include <ac_nonexistent.h>
7076 if ac_fn_c_try_cpp "$LINENO"; then :
7077 # Broken: success on invalid input.
7080 # Passes both tests.
7084 rm -f conftest.err conftest.i conftest.$ac_ext
7087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7088 rm -f conftest.i conftest.err conftest.$ac_ext
7089 if $ac_preproc_ok; then :
7092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7094 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7095 See \`config.log' for more details" "$LINENO" 5; }
7099 ac_cpp='$CPP $CPPFLAGS'
7100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7106 $as_echo_n "checking for ANSI C header files... " >&6; }
7107 if ${ac_cv_header_stdc+:} false; then :
7108 $as_echo_n "(cached) " >&6
7110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111 /* end confdefs.h. */
7125 if ac_fn_c_try_compile "$LINENO"; then :
7126 ac_cv_header_stdc=yes
7128 ac_cv_header_stdc=no
7130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7132 if test $ac_cv_header_stdc = yes; then
7133 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h. */
7139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7140 $EGREP "memchr" >/dev/null 2>&1; then :
7143 ac_cv_header_stdc=no
7149 if test $ac_cv_header_stdc = yes; then
7150 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152 /* end confdefs.h. */
7156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7157 $EGREP "free" >/dev/null 2>&1; then :
7160 ac_cv_header_stdc=no
7166 if test $ac_cv_header_stdc = yes; then
7167 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7168 if test "$cross_compiling" = yes; then :
7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172 /* end confdefs.h. */
7175 #if ((' ' & 0x0FF) == 0x020)
7176 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7177 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7179 # define ISLOWER(c) \
7180 (('a' <= (c) && (c) <= 'i') \
7181 || ('j' <= (c) && (c) <= 'r') \
7182 || ('s' <= (c) && (c) <= 'z'))
7183 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7186 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7191 for (i = 0; i < 256; i++)
7192 if (XOR (islower (i), ISLOWER (i))
7193 || toupper (i) != TOUPPER (i))
7198 if ac_fn_c_try_run "$LINENO"; then :
7201 ac_cv_header_stdc=no
7203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7204 conftest.$ac_objext conftest.beam conftest.$ac_ext
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7210 $as_echo "$ac_cv_header_stdc" >&6; }
7211 if test $ac_cv_header_stdc = yes; then
7213 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7217 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7218 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7219 inttypes.h stdint.h unistd.h
7221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7222 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7224 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7225 cat >>confdefs.h <<_ACEOF
7226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7234 for ac_header in dlfcn.h
7236 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7238 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7239 cat >>confdefs.h <<_ACEOF
7240 #define HAVE_DLFCN_H 1
7261 # Check whether --enable-shared was given.
7262 if test "${enable_shared+set}" = set; then :
7263 enableval=$enable_shared; p=${PACKAGE-default}
7265 yes) enable_shared=yes ;;
7266 no) enable_shared=no ;;
7269 # Look at the argument we got. We use all the common list separators.
7270 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7271 for pkg in $enableval; do
7273 if test "X$pkg" = "X$p"; then
7292 # Check whether --enable-static was given.
7293 if test "${enable_static+set}" = set; then :
7294 enableval=$enable_static; p=${PACKAGE-default}
7296 yes) enable_static=yes ;;
7297 no) enable_static=no ;;
7300 # Look at the argument we got. We use all the common list separators.
7301 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7302 for pkg in $enableval; do
7304 if test "X$pkg" = "X$p"; then
7324 # Check whether --with-pic was given.
7325 if test "${with_pic+set}" = set; then :
7326 withval=$with_pic; pic_mode="$withval"
7332 test -z "$pic_mode" && pic_mode=default
7340 # Check whether --enable-fast-install was given.
7341 if test "${enable_fast_install+set}" = set; then :
7342 enableval=$enable_fast_install; p=${PACKAGE-default}
7344 yes) enable_fast_install=yes ;;
7345 no) enable_fast_install=no ;;
7347 enable_fast_install=no
7348 # Look at the argument we got. We use all the common list separators.
7349 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7350 for pkg in $enableval; do
7352 if test "X$pkg" = "X$p"; then
7353 enable_fast_install=yes
7360 enable_fast_install=yes
7373 # This can be used to rebuild libtool when needed
7374 LIBTOOL_DEPS="$ltmain"
7376 # Always use our own libtool.
7377 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7404 test -z "$LN_S" && LN_S="ln -s"
7419 if test -n "${ZSH_VERSION+set}" ; then
7420 setopt NO_GLOB_SUBST
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7424 $as_echo_n "checking for objdir... " >&6; }
7425 if ${lt_cv_objdir+:} false; then :
7426 $as_echo_n "(cached) " >&6
7428 rm -f .libs 2>/dev/null
7429 mkdir .libs 2>/dev/null
7430 if test -d .libs; then
7433 # MS-DOS does not allow filenames that begin with a dot.
7436 rmdir .libs 2>/dev/null
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7439 $as_echo "$lt_cv_objdir" >&6; }
7440 objdir=$lt_cv_objdir
7446 cat >>confdefs.h <<_ACEOF
7447 #define LT_OBJDIR "$lt_cv_objdir/"
7455 # AIX sometimes has problems with the GCC collect2 program. For some
7456 # reason, if we set the COLLECT_NAMES environment variable, the problems
7457 # vanish in a puff of smoke.
7458 if test "X${COLLECT_NAMES+set}" != Xset; then
7460 export COLLECT_NAMES
7467 can_build_shared=yes
7469 # All known linkers require a `.a' archive for static linking (except MSVC,
7470 # which needs '.lib').
7473 with_gnu_ld="$lt_cv_prog_gnu_ld"
7476 old_CFLAGS="$CFLAGS"
7478 # Set sane defaults for various variables
7479 test -z "$CC" && CC=cc
7480 test -z "$LTCC" && LTCC=$CC
7481 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7482 test -z "$LD" && LD=ld
7483 test -z "$ac_objext" && ac_objext=o
7485 for cc_temp in $compiler""; do
7487 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7488 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7493 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7496 # Only perform the check for file, if the check method requires it
7497 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7498 case $deplibs_check_method in
7500 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7502 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7503 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7504 $as_echo_n "(cached) " >&6
7508 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7511 lt_save_MAGIC_CMD="$MAGIC_CMD"
7512 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7513 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7514 for ac_dir in $ac_dummy; do
7516 test -z "$ac_dir" && ac_dir=.
7517 if test -f $ac_dir/${ac_tool_prefix}file; then
7518 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7519 if test -n "$file_magic_test_file"; then
7520 case $deplibs_check_method in
7522 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7523 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7524 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7525 $EGREP "$file_magic_regex" > /dev/null; then
7530 *** Warning: the command libtool uses to detect shared libraries,
7531 *** $file_magic_cmd, produces output that libtool cannot recognize.
7532 *** The result is that libtool may fail to recognize shared libraries
7533 *** as such. This will affect the creation of libtool libraries that
7534 *** depend on shared libraries, but programs linked with such libtool
7535 *** libraries will work regardless of this problem. Nevertheless, you
7536 *** may want to report the problem to your system manager and/or to
7537 *** bug-libtool@gnu.org
7547 MAGIC_CMD="$lt_save_MAGIC_CMD"
7552 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7553 if test -n "$MAGIC_CMD"; then
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7555 $as_echo "$MAGIC_CMD" >&6; }
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 $as_echo "no" >&6; }
7565 if test -z "$lt_cv_path_MAGIC_CMD"; then
7566 if test -n "$ac_tool_prefix"; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7568 $as_echo_n "checking for file... " >&6; }
7569 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7570 $as_echo_n "(cached) " >&6
7574 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7577 lt_save_MAGIC_CMD="$MAGIC_CMD"
7578 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7579 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7580 for ac_dir in $ac_dummy; do
7582 test -z "$ac_dir" && ac_dir=.
7583 if test -f $ac_dir/file; then
7584 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7585 if test -n "$file_magic_test_file"; then
7586 case $deplibs_check_method in
7588 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7589 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7590 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7591 $EGREP "$file_magic_regex" > /dev/null; then
7596 *** Warning: the command libtool uses to detect shared libraries,
7597 *** $file_magic_cmd, produces output that libtool cannot recognize.
7598 *** The result is that libtool may fail to recognize shared libraries
7599 *** as such. This will affect the creation of libtool libraries that
7600 *** depend on shared libraries, but programs linked with such libtool
7601 *** libraries will work regardless of this problem. Nevertheless, you
7602 *** may want to report the problem to your system manager and/or to
7603 *** bug-libtool@gnu.org
7613 MAGIC_CMD="$lt_save_MAGIC_CMD"
7618 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7619 if test -n "$MAGIC_CMD"; then
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7621 $as_echo "$MAGIC_CMD" >&6; }
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 $as_echo "no" >&6; }
7637 # Use C for the default configuration in the libtool script
7641 ac_cpp='$CPP $CPPFLAGS'
7642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7647 # Source file extension for C test sources.
7650 # Object file extension for compiled C test sources.
7654 # Code to be used in simple compile tests
7655 lt_simple_compile_test_code="int some_variable = 0;"
7657 # Code to be used in simple link tests
7658 lt_simple_link_test_code='int main(){return(0);}'
7666 # If no C compiler was specified, use CC.
7669 # If no C compiler flags were specified, use CFLAGS.
7670 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7672 # Allow CC to be a program name with arguments.
7675 # Save the default compiler, since it gets overwritten when the other
7676 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7677 compiler_DEFAULT=$CC
7679 # save warnings/boilerplate of simple test code
7680 ac_outfile=conftest.$ac_objext
7681 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7682 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7683 _lt_compiler_boilerplate=`cat conftest.err`
7686 ac_outfile=conftest.$ac_objext
7687 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7688 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7689 _lt_linker_boilerplate=`cat conftest.err`
7693 if test -n "$compiler"; then
7695 lt_prog_compiler_no_builtin_flag=
7697 if test "$GCC" = yes; then
7698 case $cc_basename in
7700 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7702 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7706 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7707 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7708 $as_echo_n "(cached) " >&6
7710 lt_cv_prog_compiler_rtti_exceptions=no
7711 ac_outfile=conftest.$ac_objext
7712 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7713 lt_compiler_flag="-fno-rtti -fno-exceptions"
7714 # Insert the option either (1) after the last *FLAGS variable, or
7715 # (2) before a word containing "conftest.", or (3) at the end.
7716 # Note that $ac_compile itself does not contain backslashes and begins
7717 # with a dollar sign (not a hyphen), so the echo should work correctly.
7718 # The option is referenced via a variable to avoid confusing sed.
7719 lt_compile=`echo "$ac_compile" | $SED \
7720 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7722 -e 's:$: $lt_compiler_flag:'`
7723 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7724 (eval "$lt_compile" 2>conftest.err)
7726 cat conftest.err >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 if (exit $ac_status) && test -s "$ac_outfile"; then
7729 # The compiler can only warn and ignore the option if not recognized
7730 # So say no if there are warnings other than the usual output.
7731 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7732 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7733 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7734 lt_cv_prog_compiler_rtti_exceptions=yes
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7741 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7743 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7744 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7756 lt_prog_compiler_wl=
7757 lt_prog_compiler_pic=
7758 lt_prog_compiler_static=
7761 if test "$GCC" = yes; then
7762 lt_prog_compiler_wl='-Wl,'
7763 lt_prog_compiler_static='-static'
7767 # All AIX code is PIC.
7768 if test "$host_cpu" = ia64; then
7769 # AIX 5 now supports IA64 processor
7770 lt_prog_compiler_static='-Bstatic'
7777 # see comment about AmigaOS4 .so support
7778 lt_prog_compiler_pic='-fPIC'
7781 # FIXME: we need at least 68020 code to build shared libraries, but
7782 # adding the `-m68020' flag to GCC prevents building anything better,
7784 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7789 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7790 # PIC is the default for these OSes.
7793 mingw* | cygwin* | pw32* | os2* | cegcc*)
7794 # This hack is so that the source file can tell whether it is being
7795 # built for inclusion in a dll (and should export symbols for example).
7796 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7797 # (--disable-auto-import) libraries
7798 lt_prog_compiler_pic='-DDLL_EXPORT'
7801 darwin* | rhapsody*)
7802 # PIC is the default on this platform
7803 # Common symbols not allowed in MH_DYLIB files
7804 lt_prog_compiler_pic='-fno-common'
7808 # PIC is the default for Haiku.
7809 # The "-static" flag exists, but is broken.
7810 lt_prog_compiler_static=
7814 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7815 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7816 # sets the default TLS model and affects inlining.
7822 lt_prog_compiler_pic='-fPIC'
7828 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7829 # Instead, we relocate shared libraries at runtime.
7833 # Just because we use GCC doesn't mean we suddenly get shared libraries
7834 # on systems that don't support them.
7835 lt_prog_compiler_can_build_shared=no
7840 # QNX uses GNU C++, but need to define -shared option too, otherwise
7842 lt_prog_compiler_pic='-fPIC -shared'
7846 if test -d /usr/nec; then
7847 lt_prog_compiler_pic=-Kconform_pic
7852 lt_prog_compiler_pic='-fPIC'
7856 case $cc_basename in
7857 nvcc*) # Cuda Compiler Driver 2.2
7858 lt_prog_compiler_wl='-Xlinker '
7859 lt_prog_compiler_pic='-Xcompiler -fPIC'
7863 # PORTME Check for flag to pass linker flags through the system compiler.
7866 lt_prog_compiler_wl='-Wl,'
7867 if test "$host_cpu" = ia64; then
7868 # AIX 5 now supports IA64 processor
7869 lt_prog_compiler_static='-Bstatic'
7871 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7875 mingw* | cygwin* | pw32* | os2* | cegcc*)
7876 # This hack is so that the source file can tell whether it is being
7877 # built for inclusion in a dll (and should export symbols for example).
7878 lt_prog_compiler_pic='-DDLL_EXPORT'
7881 hpux9* | hpux10* | hpux11*)
7882 lt_prog_compiler_wl='-Wl,'
7883 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7890 lt_prog_compiler_pic='+Z'
7893 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7894 lt_prog_compiler_static='${wl}-a ${wl}archive'
7897 irix5* | irix6* | nonstopux*)
7898 lt_prog_compiler_wl='-Wl,'
7899 # PIC (with -KPIC) is the default.
7900 lt_prog_compiler_static='-non_shared'
7903 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7904 case $cc_basename in
7905 # old Intel for x86_64 which still supported -KPIC.
7907 lt_prog_compiler_wl='-Wl,'
7908 lt_prog_compiler_pic='-KPIC'
7909 lt_prog_compiler_static='-static'
7911 # icc used to be incompatible with GCC.
7912 # ICC 10 doesn't accept -KPIC any more.
7914 lt_prog_compiler_wl='-Wl,'
7915 lt_prog_compiler_pic='-fPIC'
7916 lt_prog_compiler_static='-static'
7918 # Lahey Fortran 8.1.
7920 lt_prog_compiler_wl='-Wl,'
7921 lt_prog_compiler_pic='--shared'
7922 lt_prog_compiler_static='--static'
7925 # NAG Fortran compiler
7926 lt_prog_compiler_wl='-Wl,-Wl,,'
7927 lt_prog_compiler_pic='-PIC'
7928 lt_prog_compiler_static='-Bstatic'
7930 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7931 # Portland Group compilers (*not* the Pentium gcc compiler,
7932 # which looks to be a dead project)
7933 lt_prog_compiler_wl='-Wl,'
7934 lt_prog_compiler_pic='-fpic'
7935 lt_prog_compiler_static='-Bstatic'
7938 lt_prog_compiler_wl='-Wl,'
7939 # All Alpha code is PIC.
7940 lt_prog_compiler_static='-non_shared'
7942 xl* | bgxl* | bgf* | mpixl*)
7943 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7944 lt_prog_compiler_wl='-Wl,'
7945 lt_prog_compiler_pic='-qpic'
7946 lt_prog_compiler_static='-qstaticlink'
7949 case `$CC -V 2>&1 | sed 5q` in
7950 *Sun\ F* | *Sun*Fortran*)
7951 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7952 lt_prog_compiler_pic='-KPIC'
7953 lt_prog_compiler_static='-Bstatic'
7954 lt_prog_compiler_wl=''
7958 lt_prog_compiler_pic='-KPIC'
7959 lt_prog_compiler_static='-Bstatic'
7960 lt_prog_compiler_wl='-Wl,'
7968 lt_prog_compiler_pic='-KPIC'
7969 lt_prog_compiler_static='-Bstatic'
7973 # QNX uses GNU C++, but need to define -shared option too, otherwise
7975 lt_prog_compiler_pic='-fPIC -shared'
7978 osf3* | osf4* | osf5*)
7979 lt_prog_compiler_wl='-Wl,'
7980 # All OSF/1 code is PIC.
7981 lt_prog_compiler_static='-non_shared'
7985 lt_prog_compiler_static='-non_shared'
7989 lt_prog_compiler_pic='-KPIC'
7990 lt_prog_compiler_static='-Bstatic'
7991 case $cc_basename in
7992 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7993 lt_prog_compiler_wl='-Qoption ld ';;
7995 lt_prog_compiler_wl='-Wl,';;
8000 lt_prog_compiler_wl='-Qoption ld '
8001 lt_prog_compiler_pic='-PIC'
8002 lt_prog_compiler_static='-Bstatic'
8005 sysv4 | sysv4.2uw2* | sysv4.3*)
8006 lt_prog_compiler_wl='-Wl,'
8007 lt_prog_compiler_pic='-KPIC'
8008 lt_prog_compiler_static='-Bstatic'
8012 if test -d /usr/nec ;then
8013 lt_prog_compiler_pic='-Kconform_pic'
8014 lt_prog_compiler_static='-Bstatic'
8018 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8019 lt_prog_compiler_wl='-Wl,'
8020 lt_prog_compiler_pic='-KPIC'
8021 lt_prog_compiler_static='-Bstatic'
8025 lt_prog_compiler_wl='-Wl,'
8026 lt_prog_compiler_can_build_shared=no
8030 lt_prog_compiler_pic='-pic'
8031 lt_prog_compiler_static='-Bstatic'
8035 lt_prog_compiler_can_build_shared=no
8041 # For platforms which do not support PIC, -DPIC is meaningless:
8043 lt_prog_compiler_pic=
8046 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8051 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8052 if ${lt_cv_prog_compiler_pic+:} false; then :
8053 $as_echo_n "(cached) " >&6
8055 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8058 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8059 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8062 # Check to make sure the PIC flag actually works.
8064 if test -n "$lt_prog_compiler_pic"; then
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8066 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8067 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8068 $as_echo_n "(cached) " >&6
8070 lt_cv_prog_compiler_pic_works=no
8071 ac_outfile=conftest.$ac_objext
8072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8073 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8074 # Insert the option either (1) after the last *FLAGS variable, or
8075 # (2) before a word containing "conftest.", or (3) at the end.
8076 # Note that $ac_compile itself does not contain backslashes and begins
8077 # with a dollar sign (not a hyphen), so the echo should work correctly.
8078 # The option is referenced via a variable to avoid confusing sed.
8079 lt_compile=`echo "$ac_compile" | $SED \
8080 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8082 -e 's:$: $lt_compiler_flag:'`
8083 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8084 (eval "$lt_compile" 2>conftest.err)
8086 cat conftest.err >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 if (exit $ac_status) && test -s "$ac_outfile"; then
8089 # The compiler can only warn and ignore the option if not recognized
8090 # So say no if there are warnings other than the usual output.
8091 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8092 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8093 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8094 lt_cv_prog_compiler_pic_works=yes
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8101 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8103 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8104 case $lt_prog_compiler_pic in
8106 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8109 lt_prog_compiler_pic=
8110 lt_prog_compiler_can_build_shared=no
8126 # Check to make sure the static flag actually works.
8128 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8130 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8131 if ${lt_cv_prog_compiler_static_works+:} false; then :
8132 $as_echo_n "(cached) " >&6
8134 lt_cv_prog_compiler_static_works=no
8135 save_LDFLAGS="$LDFLAGS"
8136 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8137 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8138 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8139 # The linker can only warn and ignore the option if not recognized
8140 # So say no if there are warnings
8141 if test -s conftest.err; then
8142 # Append any errors to the config.log.
8143 cat conftest.err 1>&5
8144 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8145 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8146 if diff conftest.exp conftest.er2 >/dev/null; then
8147 lt_cv_prog_compiler_static_works=yes
8150 lt_cv_prog_compiler_static_works=yes
8154 LDFLAGS="$save_LDFLAGS"
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8158 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8160 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8163 lt_prog_compiler_static=
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8173 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8174 if ${lt_cv_prog_compiler_c_o+:} false; then :
8175 $as_echo_n "(cached) " >&6
8177 lt_cv_prog_compiler_c_o=no
8178 $RM -r conftest 2>/dev/null
8182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8184 lt_compiler_flag="-o out/conftest2.$ac_objext"
8185 # Insert the option either (1) after the last *FLAGS variable, or
8186 # (2) before a word containing "conftest.", or (3) at the end.
8187 # Note that $ac_compile itself does not contain backslashes and begins
8188 # with a dollar sign (not a hyphen), so the echo should work correctly.
8189 lt_compile=`echo "$ac_compile" | $SED \
8190 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8191 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8192 -e 's:$: $lt_compiler_flag:'`
8193 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8194 (eval "$lt_compile" 2>out/conftest.err)
8196 cat out/conftest.err >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8200 # The compiler can only warn and ignore the option if not recognized
8201 # So say no if there are warnings
8202 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8203 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8204 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8205 lt_cv_prog_compiler_c_o=yes
8210 # SGI C++ compiler will create directory out/ii_files/ for
8211 # template instantiation
8212 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8213 $RM out/* && rmdir out
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8220 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8228 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8229 if ${lt_cv_prog_compiler_c_o+:} false; then :
8230 $as_echo_n "(cached) " >&6
8232 lt_cv_prog_compiler_c_o=no
8233 $RM -r conftest 2>/dev/null
8237 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8239 lt_compiler_flag="-o out/conftest2.$ac_objext"
8240 # Insert the option either (1) after the last *FLAGS variable, or
8241 # (2) before a word containing "conftest.", or (3) at the end.
8242 # Note that $ac_compile itself does not contain backslashes and begins
8243 # with a dollar sign (not a hyphen), so the echo should work correctly.
8244 lt_compile=`echo "$ac_compile" | $SED \
8245 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8246 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8247 -e 's:$: $lt_compiler_flag:'`
8248 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8249 (eval "$lt_compile" 2>out/conftest.err)
8251 cat out/conftest.err >&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8255 # The compiler can only warn and ignore the option if not recognized
8256 # So say no if there are warnings
8257 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8258 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8259 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8260 lt_cv_prog_compiler_c_o=yes
8265 # SGI C++ compiler will create directory out/ii_files/ for
8266 # template instantiation
8267 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8268 $RM out/* && rmdir out
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8275 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8280 hard_links="nottested"
8281 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8282 # do not overwrite the value of need_locks provided by the user
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8284 $as_echo_n "checking if we can lock with hard links... " >&6; }
8287 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8289 ln conftest.a conftest.b 2>&5 || hard_links=no
8290 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8292 $as_echo "$hard_links" >&6; }
8293 if test "$hard_links" = no; then
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8295 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8308 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8311 allow_undefined_flag=
8312 always_export_symbols=no
8314 archive_expsym_cmds=
8315 compiler_needs_object=no
8316 enable_shared_with_static_runtimes=no
8317 export_dynamic_flag_spec=
8318 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8319 hardcode_automatic=no
8321 hardcode_direct_absolute=no
8322 hardcode_libdir_flag_spec=
8323 hardcode_libdir_flag_spec_ld=
8324 hardcode_libdir_separator=
8326 hardcode_shlibpath_var=unsupported
8328 link_all_deplibs=unknown
8331 old_archive_from_new_cmds=
8332 old_archive_from_expsyms_cmds=
8333 thread_safe_flag_spec=
8334 whole_archive_flag_spec=
8335 # include_expsyms should be a list of space-separated symbols to be *always*
8336 # included in the symbol list
8338 # exclude_expsyms can be an extended regexp of symbols to exclude
8339 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8340 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8341 # as well as any symbol that contains `d'.
8342 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8343 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8344 # platforms (ab)use it in PIC code, but their linkers get confused if
8345 # the symbol is explicitly referenced. Since portable code cannot
8346 # rely on this symbol name, it's probably fine to never include it in
8347 # preloaded symbol tables.
8348 # Exclude shared library initialization/finalization symbols.
8349 extract_expsyms_cmds=
8352 cygwin* | mingw* | pw32* | cegcc*)
8353 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8354 # When not using gcc, we currently assume that we are using
8355 # Microsoft Visual C++.
8356 if test "$GCC" != yes; then
8361 # we just hope/assume this is gcc and not c89 (= MSVC++)
8371 # On some targets, GNU ld is compatible enough with the native linker
8372 # that we're better off using the native interface for both.
8373 lt_use_gnu_ld_interface=no
8374 if test "$with_gnu_ld" = yes; then
8377 # The AIX port of GNU ld has always aspired to compatibility
8378 # with the native linker. However, as the warning in the GNU ld
8379 # block says, versions before 2.19.5* couldn't really create working
8380 # shared libraries, regardless of the interface used.
8381 case `$LD -v 2>&1` in
8382 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8383 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8384 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8386 lt_use_gnu_ld_interface=yes
8391 lt_use_gnu_ld_interface=yes
8396 if test "$lt_use_gnu_ld_interface" = yes; then
8397 # If archive_cmds runs LD, not CC, wlarc should be empty
8400 # Set some defaults for GNU ld with shared library support. These
8401 # are reset later if shared libraries are not supported. Putting them
8402 # here allows them to be overridden if necessary.
8403 runpath_var=LD_RUN_PATH
8404 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8405 export_dynamic_flag_spec='${wl}--export-dynamic'
8406 # ancient GNU ld didn't support --whole-archive et. al.
8407 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8408 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8410 whole_archive_flag_spec=
8412 supports_anon_versioning=no
8413 case `$LD -v 2>&1` in
8414 *GNU\ gold*) supports_anon_versioning=yes ;;
8415 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8416 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8417 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8418 *\ 2.11.*) ;; # other 2.11 versions
8419 *) supports_anon_versioning=yes ;;
8422 # See if GNU ld supports shared libraries.
8425 # On AIX/PPC, the GNU linker is very broken
8426 if test "$host_cpu" != ia64; then
8430 *** Warning: the GNU linker, at least up to release 2.19, is reported
8431 *** to be unable to reliably create shared libraries on AIX.
8432 *** Therefore, libtool is disabling shared libraries support. If you
8433 *** really care for shared libraries, you may want to install binutils
8434 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8435 *** You will then need to restart the configuration process.
8444 # see comment about AmigaOS4 .so support
8445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8446 archive_expsym_cmds=''
8449 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)'
8450 hardcode_libdir_flag_spec='-L$libdir'
8451 hardcode_minus_L=yes
8457 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8458 allow_undefined_flag=unsupported
8459 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8460 # support --undefined. This deserves some investigation. FIXME
8461 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8467 cygwin* | mingw* | pw32* | cegcc*)
8468 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8469 # as there is no search path for DLLs.
8470 hardcode_libdir_flag_spec='-L$libdir'
8471 export_dynamic_flag_spec='${wl}--export-all-symbols'
8472 allow_undefined_flag=unsupported
8473 always_export_symbols=no
8474 enable_shared_with_static_runtimes=yes
8475 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'
8476 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8478 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8479 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8480 # If the export-symbols file already is a .def file (1st line
8481 # is EXPORTS), use it as is; otherwise, prepend...
8482 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8483 cp $export_symbols $output_objdir/$soname.def;
8485 echo EXPORTS > $output_objdir/$soname.def;
8486 cat $export_symbols >> $output_objdir/$soname.def;
8488 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8495 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8496 link_all_deplibs=yes
8501 hardcode_shlibpath_var=no
8502 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8503 export_dynamic_flag_spec='${wl}-E'
8504 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8505 # Instead, shared libraries are loaded at an image base (0x10000000 by
8506 # default) and relocated if they conflict, which is a slow very memory
8507 # consuming and fragmenting process. To avoid this, we pick a random,
8508 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8509 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8510 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8511 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'
8514 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8516 if test "$host_os" = linux-dietlibc; then
8517 case $cc_basename in
8518 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8521 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8522 && test "$tmp_diet" = no
8524 tmp_addflag=' $pic_flag'
8525 tmp_sharedflag='-shared'
8526 case $cc_basename,$host_cpu in
8527 pgcc*) # Portland Group C compiler
8528 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'
8529 tmp_addflag=' $pic_flag'
8531 pgf77* | pgf90* | pgf95* | pgfortran*)
8532 # Portland Group f77 and f90 compilers
8533 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'
8534 tmp_addflag=' $pic_flag -Mnomain' ;;
8535 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8536 tmp_addflag=' -i_dynamic' ;;
8537 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8538 tmp_addflag=' -i_dynamic -nofor_main' ;;
8539 ifc* | ifort*) # Intel Fortran compiler
8540 tmp_addflag=' -nofor_main' ;;
8541 lf95*) # Lahey Fortran 8.1
8542 whole_archive_flag_spec=
8543 tmp_sharedflag='--shared' ;;
8544 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8545 tmp_sharedflag='-qmkshrobj'
8547 nvcc*) # Cuda Compiler Driver 2.2
8548 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'
8549 compiler_needs_object=yes
8552 case `$CC -V 2>&1 | sed 5q` in
8553 *Sun\ C*) # Sun C 5.9
8554 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'
8555 compiler_needs_object=yes
8556 tmp_sharedflag='-G' ;;
8557 *Sun\ F*) # Sun Fortran 8.3
8558 tmp_sharedflag='-G' ;;
8560 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8562 if test "x$supports_anon_versioning" = xyes; then
8563 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8564 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8565 echo "local: *; };" >> $output_objdir/$libname.ver~
8566 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8569 case $cc_basename in
8570 xlf* | bgf* | bgxlf* | mpixlf*)
8571 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8572 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8573 hardcode_libdir_flag_spec=
8574 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8575 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8576 if test "x$supports_anon_versioning" = xyes; then
8577 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8578 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8579 echo "local: *; };" >> $output_objdir/$libname.ver~
8580 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8590 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8591 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8594 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8595 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8600 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8604 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8605 *** create shared libraries on Solaris systems. Therefore, libtool
8606 *** is disabling shared libraries support. We urge you to upgrade GNU
8607 *** binutils to release 2.9.1 or newer. Another option is to modify
8608 *** your PATH or compiler configuration so that the native linker is
8609 *** used, and then restart.
8612 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8613 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8614 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8620 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8621 case `$LD -v 2>&1` in
8622 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8626 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8627 *** reliably create shared libraries on SCO systems. Therefore, libtool
8628 *** is disabling shared libraries support. We urge you to upgrade GNU
8629 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8630 *** your PATH or compiler configuration so that the native linker is
8631 *** used, and then restart.
8636 # For security reasons, it is highly recommended that you always
8637 # use absolute paths for naming shared libraries, and exclude the
8638 # DT_RUNPATH tag from executables and libraries. But doing so
8639 # requires that you compile everything twice, which is a pain.
8640 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8641 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8642 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8643 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8652 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8655 hardcode_shlibpath_var=no
8659 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8660 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8661 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8668 if test "$ld_shlibs" = no; then
8670 hardcode_libdir_flag_spec=
8671 export_dynamic_flag_spec=
8672 whole_archive_flag_spec=
8675 # PORTME fill in a description of your system's linker (not GNU ld)
8678 allow_undefined_flag=unsupported
8679 always_export_symbols=yes
8680 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'
8681 # Note: this linker hardcodes the directories in LIBPATH if there
8682 # are no directories specified by -L.
8683 hardcode_minus_L=yes
8684 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8685 # Neither direct hardcoding nor static linking is supported with a
8687 hardcode_direct=unsupported
8692 if test "$host_cpu" = ia64; then
8693 # On IA64, the linker does run time linking by default, so we don't
8694 # have to do anything special.
8695 aix_use_runtimelinking=no
8696 exp_sym_flag='-Bexport'
8699 # If we're using GNU nm, then we don't want the "-C" option.
8700 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8701 # Also, AIX nm treats weak defined symbols like other global
8702 # defined symbols, whereas GNU nm marks them as "W".
8703 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8704 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'
8706 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'
8708 aix_use_runtimelinking=no
8710 # Test if we are trying to use run time linking or normal
8711 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8712 # need to do runtime linking.
8713 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8714 for ld_flag in $LDFLAGS; do
8715 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8716 aix_use_runtimelinking=yes
8723 exp_sym_flag='-bexport'
8724 no_entry_flag='-bnoentry'
8727 # When large executables or shared objects are built, AIX ld can
8728 # have problems creating the table of contents. If linking a library
8729 # or program results in "error TOC overflow" add -mminimal-toc to
8730 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8731 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8735 hardcode_direct_absolute=yes
8736 hardcode_libdir_separator=':'
8737 link_all_deplibs=yes
8738 file_list_spec='${wl}-f,'
8740 if test "$GCC" = yes; then
8741 case $host_os in aix4.[012]|aix4.[012].*)
8742 # We only want to do this on AIX 4.2 and lower, the check
8743 # below for broken collect2 doesn't work under 4.3+
8744 collect2name=`${CC} -print-prog-name=collect2`
8745 if test -f "$collect2name" &&
8746 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8748 # We have reworked collect2
8751 # We have old collect2
8752 hardcode_direct=unsupported
8753 # It fails to find uninstalled libraries when the uninstalled
8754 # path is not listed in the libpath. Setting hardcode_minus_L
8755 # to unsupported forces relinking
8756 hardcode_minus_L=yes
8757 hardcode_libdir_flag_spec='-L$libdir'
8758 hardcode_libdir_separator=
8762 shared_flag='-shared'
8763 if test "$aix_use_runtimelinking" = yes; then
8764 shared_flag="$shared_flag "'${wl}-G'
8768 if test "$host_cpu" = ia64; then
8769 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8770 # chokes on -Wl,-G. The following line is correct:
8773 if test "$aix_use_runtimelinking" = yes; then
8774 shared_flag='${wl}-G'
8776 shared_flag='${wl}-bM:SRE'
8781 export_dynamic_flag_spec='${wl}-bexpall'
8782 # It seems that -bexpall does not export symbols beginning with
8783 # underscore (_), so it is better to generate a list of symbols to export.
8784 always_export_symbols=yes
8785 if test "$aix_use_runtimelinking" = yes; then
8786 # Warning - without using the other runtime loading flags (-brtl),
8787 # -berok will link without error, but may produce a broken library.
8788 allow_undefined_flag='-berok'
8789 # Determine the default libpath from the value encoded in an
8791 if test "${lt_cv_aix_libpath+set}" = set; then
8792 aix_libpath=$lt_cv_aix_libpath
8794 if ${lt_cv_aix_libpath_+:} false; then :
8795 $as_echo_n "(cached) " >&6
8797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798 /* end confdefs.h. */
8808 if ac_fn_c_try_link "$LINENO"; then :
8810 lt_aix_libpath_sed='
8811 /Import File Strings/,/^$/ {
8813 s/^0 *\([^ ]*\) *$/\1/
8817 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8818 # Check for a 64-bit object if we didn't find anything.
8819 if test -z "$lt_cv_aix_libpath_"; then
8820 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8823 rm -f core conftest.err conftest.$ac_objext \
8824 conftest$ac_exeext conftest.$ac_ext
8825 if test -z "$lt_cv_aix_libpath_"; then
8826 lt_cv_aix_libpath_="/usr/lib:/lib"
8831 aix_libpath=$lt_cv_aix_libpath_
8834 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8835 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"
8837 if test "$host_cpu" = ia64; then
8838 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8839 allow_undefined_flag="-z nodefs"
8840 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"
8842 # Determine the default libpath from the value encoded in an
8844 if test "${lt_cv_aix_libpath+set}" = set; then
8845 aix_libpath=$lt_cv_aix_libpath
8847 if ${lt_cv_aix_libpath_+:} false; then :
8848 $as_echo_n "(cached) " >&6
8850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851 /* end confdefs.h. */
8861 if ac_fn_c_try_link "$LINENO"; then :
8863 lt_aix_libpath_sed='
8864 /Import File Strings/,/^$/ {
8866 s/^0 *\([^ ]*\) *$/\1/
8870 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8871 # Check for a 64-bit object if we didn't find anything.
8872 if test -z "$lt_cv_aix_libpath_"; then
8873 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8876 rm -f core conftest.err conftest.$ac_objext \
8877 conftest$ac_exeext conftest.$ac_ext
8878 if test -z "$lt_cv_aix_libpath_"; then
8879 lt_cv_aix_libpath_="/usr/lib:/lib"
8884 aix_libpath=$lt_cv_aix_libpath_
8887 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8888 # Warning - without using the other run time loading flags,
8889 # -berok will link without error, but may produce a broken library.
8890 no_undefined_flag=' ${wl}-bernotok'
8891 allow_undefined_flag=' ${wl}-berok'
8892 if test "$with_gnu_ld" = yes; then
8893 # We only use this code for GNU lds that support --whole-archive.
8894 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8896 # Exported symbols can be pulled into shared objects from archives
8897 whole_archive_flag_spec='$convenience'
8899 archive_cmds_need_lc=yes
8900 # This is similar to how AIX traditionally builds its shared libraries.
8901 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'
8909 # see comment about AmigaOS4 .so support
8910 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8911 archive_expsym_cmds=''
8914 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)'
8915 hardcode_libdir_flag_spec='-L$libdir'
8916 hardcode_minus_L=yes
8922 export_dynamic_flag_spec=-rdynamic
8925 cygwin* | mingw* | pw32* | cegcc*)
8926 # When not using gcc, we currently assume that we are using
8927 # Microsoft Visual C++.
8928 # hardcode_libdir_flag_spec is actually meaningless, as there is
8929 # no search path for DLLs.
8930 case $cc_basename in
8933 hardcode_libdir_flag_spec=' '
8934 allow_undefined_flag=unsupported
8935 always_export_symbols=yes
8937 # Tell ltmain to make .lib files, not .a files.
8939 # Tell ltmain to make .dll files, not .so files.
8941 # FIXME: Setting linknames here is a bad hack.
8942 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8943 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8944 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8946 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8948 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8950 # The linker will not automatically build a static lib if we build a DLL.
8951 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8952 enable_shared_with_static_runtimes=yes
8953 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8955 old_postinstall_cmds='chmod 644 $oldlib'
8956 postlink_cmds='lt_outputfile="@OUTPUT@"~
8957 lt_tool_outputfile="@TOOL_OUTPUT@"~
8958 case $lt_outputfile in
8961 lt_outputfile="$lt_outputfile.exe"
8962 lt_tool_outputfile="$lt_tool_outputfile.exe"
8965 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8966 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8967 $RM "$lt_outputfile.manifest";
8971 # Assume MSVC wrapper
8972 hardcode_libdir_flag_spec=' '
8973 allow_undefined_flag=unsupported
8974 # Tell ltmain to make .lib files, not .a files.
8976 # Tell ltmain to make .dll files, not .so files.
8978 # FIXME: Setting linknames here is a bad hack.
8979 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8980 # The linker will automatically build a .lib file if we build a DLL.
8981 old_archive_from_new_cmds='true'
8982 # FIXME: Should let the user specify the lib program.
8983 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8984 enable_shared_with_static_runtimes=yes
8989 darwin* | rhapsody*)
8992 archive_cmds_need_lc=no
8994 hardcode_automatic=yes
8995 hardcode_shlibpath_var=unsupported
8996 if test "$lt_cv_ld_force_load" = "yes"; then
8997 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\"`'
8999 whole_archive_flag_spec=''
9001 link_all_deplibs=yes
9002 allow_undefined_flag="$_lt_dar_allow_undefined"
9003 case $cc_basename in
9004 ifort*) _lt_dar_can_shared=yes ;;
9005 *) _lt_dar_can_shared=$GCC ;;
9007 if test "$_lt_dar_can_shared" = "yes"; then
9008 output_verbose_link_cmd=func_echo_all
9009 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9010 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9011 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}"
9012 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}"
9021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9022 hardcode_libdir_flag_spec='-L$libdir'
9023 hardcode_shlibpath_var=no
9030 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9031 # support. Future versions do this automatically, but an explicit c++rt0.o
9032 # does not break anything, and helps significantly (at the cost of a little
9035 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9036 hardcode_libdir_flag_spec='-R$libdir'
9038 hardcode_shlibpath_var=no
9041 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9043 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9045 hardcode_minus_L=yes
9046 hardcode_shlibpath_var=no
9049 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9050 freebsd* | dragonfly*)
9051 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9052 hardcode_libdir_flag_spec='-R$libdir'
9054 hardcode_shlibpath_var=no
9058 if test "$GCC" = yes; then
9059 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'
9061 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'
9063 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9064 hardcode_libdir_separator=:
9067 # hardcode_minus_L: Not really in the search PATH,
9068 # but as the default location of the library.
9069 hardcode_minus_L=yes
9070 export_dynamic_flag_spec='${wl}-E'
9074 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9075 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9077 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9079 if test "$with_gnu_ld" = no; then
9080 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9081 hardcode_libdir_flag_spec_ld='+b $libdir'
9082 hardcode_libdir_separator=:
9084 hardcode_direct_absolute=yes
9085 export_dynamic_flag_spec='${wl}-E'
9086 # hardcode_minus_L: Not really in the search PATH,
9087 # but as the default location of the library.
9088 hardcode_minus_L=yes
9093 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9096 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9099 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9102 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9108 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9111 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9115 # Older versions of the 11.00 compiler do not understand -b yet
9116 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9118 $as_echo_n "checking if $CC understands -b... " >&6; }
9119 if ${lt_cv_prog_compiler__b+:} false; then :
9120 $as_echo_n "(cached) " >&6
9122 lt_cv_prog_compiler__b=no
9123 save_LDFLAGS="$LDFLAGS"
9124 LDFLAGS="$LDFLAGS -b"
9125 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9126 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9127 # The linker can only warn and ignore the option if not recognized
9128 # So say no if there are warnings
9129 if test -s conftest.err; then
9130 # Append any errors to the config.log.
9131 cat conftest.err 1>&5
9132 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9134 if diff conftest.exp conftest.er2 >/dev/null; then
9135 lt_cv_prog_compiler__b=yes
9138 lt_cv_prog_compiler__b=yes
9142 LDFLAGS="$save_LDFLAGS"
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9146 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9148 if test x"$lt_cv_prog_compiler__b" = xyes; then
9149 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9151 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9157 if test "$with_gnu_ld" = no; then
9158 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9159 hardcode_libdir_separator=:
9164 hardcode_shlibpath_var=no
9168 hardcode_direct_absolute=yes
9169 export_dynamic_flag_spec='${wl}-E'
9171 # hardcode_minus_L: Not really in the search PATH,
9172 # but as the default location of the library.
9173 hardcode_minus_L=yes
9179 irix5* | irix6* | nonstopux*)
9180 if test "$GCC" = yes; then
9181 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'
9182 # Try to use the -exported_symbol ld option, if it does not
9183 # work, assume that -exports_file does not work either and
9184 # implicitly export all symbols.
9185 # This should be the same for all languages, so no per-tag cache variable.
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9187 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9188 if ${lt_cv_irix_exported_symbol+:} false; then :
9189 $as_echo_n "(cached) " >&6
9191 save_LDFLAGS="$LDFLAGS"
9192 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9194 /* end confdefs.h. */
9195 int foo (void) { return 0; }
9197 if ac_fn_c_try_link "$LINENO"; then :
9198 lt_cv_irix_exported_symbol=yes
9200 lt_cv_irix_exported_symbol=no
9202 rm -f core conftest.err conftest.$ac_objext \
9203 conftest$ac_exeext conftest.$ac_ext
9204 LDFLAGS="$save_LDFLAGS"
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9207 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9208 if test "$lt_cv_irix_exported_symbol" = yes; then
9209 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'
9212 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'
9213 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'
9215 archive_cmds_need_lc='no'
9216 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9217 hardcode_libdir_separator=:
9219 link_all_deplibs=yes
9223 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9224 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9226 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9228 hardcode_libdir_flag_spec='-R$libdir'
9230 hardcode_shlibpath_var=no
9234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9236 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9237 hardcode_libdir_separator=:
9238 hardcode_shlibpath_var=no
9245 if test -f /usr/libexec/ld.so; then
9247 hardcode_shlibpath_var=no
9248 hardcode_direct_absolute=yes
9249 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9250 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9251 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9252 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9253 export_dynamic_flag_spec='${wl}-E'
9256 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9257 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9258 hardcode_libdir_flag_spec='-R$libdir'
9261 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9262 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9272 hardcode_libdir_flag_spec='-L$libdir'
9273 hardcode_minus_L=yes
9274 allow_undefined_flag=unsupported
9275 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'
9276 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9280 if test "$GCC" = yes; then
9281 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9282 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'
9284 allow_undefined_flag=' -expect_unresolved \*'
9285 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'
9287 archive_cmds_need_lc='no'
9288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9289 hardcode_libdir_separator=:
9292 osf4* | osf5*) # as osf3* with the addition of -msym flag
9293 if test "$GCC" = yes; then
9294 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9295 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'
9296 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9298 allow_undefined_flag=' -expect_unresolved \*'
9299 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'
9300 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~
9301 $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'
9303 # Both c and cxx compiler support -rpath directly
9304 hardcode_libdir_flag_spec='-rpath $libdir'
9306 archive_cmds_need_lc='no'
9307 hardcode_libdir_separator=:
9311 no_undefined_flag=' -z defs'
9312 if test "$GCC" = yes; then
9314 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9315 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9316 $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'
9318 case `$CC -V 2>&1` in
9321 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9322 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9323 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9327 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9328 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9329 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9333 hardcode_libdir_flag_spec='-R$libdir'
9334 hardcode_shlibpath_var=no
9336 solaris2.[0-5] | solaris2.[0-5].*) ;;
9338 # The compiler driver will combine and reorder linker options,
9339 # but understands `-z linker_flag'. GCC discards it without `$wl',
9340 # but is careful enough not to reorder.
9341 # Supported since Solaris 2.6 (maybe 2.5.1?)
9342 if test "$GCC" = yes; then
9343 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9345 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9349 link_all_deplibs=yes
9353 if test "x$host_vendor" = xsequent; then
9354 # Use $CC to link under sequent, because it throws in some extra .o
9355 # files that make .init and .fini sections work.
9356 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9358 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9360 hardcode_libdir_flag_spec='-L$libdir'
9362 hardcode_minus_L=yes
9363 hardcode_shlibpath_var=no
9367 case $host_vendor in
9369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9370 hardcode_direct=yes # is this really true???
9373 ## LD is ld it makes a PLAMLIB
9374 ## CC just makes a GrossModule.
9375 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9376 reload_cmds='$CC -r -o $output$reload_objs'
9380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9381 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9384 runpath_var='LD_RUN_PATH'
9385 hardcode_shlibpath_var=no
9389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9390 hardcode_shlibpath_var=no
9391 export_dynamic_flag_spec='-Bexport'
9395 if test -d /usr/nec; then
9396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9397 hardcode_shlibpath_var=no
9398 runpath_var=LD_RUN_PATH
9399 hardcode_runpath_var=yes
9404 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9405 no_undefined_flag='${wl}-z,text'
9406 archive_cmds_need_lc=no
9407 hardcode_shlibpath_var=no
9408 runpath_var='LD_RUN_PATH'
9410 if test "$GCC" = yes; then
9411 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9412 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9414 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9415 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9419 sysv5* | sco3.2v5* | sco5v6*)
9420 # Note: We can NOT use -z defs as we might desire, because we do not
9421 # link with -lc, and that would cause any symbols used from libc to
9422 # always be unresolved, which means just about no library would
9423 # ever link correctly. If we're not using GNU ld we use -z text
9424 # though, which does catch some bad symbols but isn't as heavy-handed
9426 no_undefined_flag='${wl}-z,text'
9427 allow_undefined_flag='${wl}-z,nodefs'
9428 archive_cmds_need_lc=no
9429 hardcode_shlibpath_var=no
9430 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9431 hardcode_libdir_separator=':'
9432 link_all_deplibs=yes
9433 export_dynamic_flag_spec='${wl}-Bexport'
9434 runpath_var='LD_RUN_PATH'
9436 if test "$GCC" = yes; then
9437 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9438 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9440 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9441 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9447 hardcode_libdir_flag_spec='-L$libdir'
9448 hardcode_shlibpath_var=no
9456 if test x$host_vendor = xsni; then
9458 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9459 export_dynamic_flag_spec='${wl}-Blargedynsym'
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9466 $as_echo "$ld_shlibs" >&6; }
9467 test "$ld_shlibs" = no && can_build_shared=no
9469 with_gnu_ld=$with_gnu_ld
9486 # Do we need to explicitly link libc?
9488 case "x$archive_cmds_need_lc" in
9490 # Assume -lc should be added
9491 archive_cmds_need_lc=yes
9493 if test "$enable_shared" = yes && test "$GCC" = yes; then
9494 case $archive_cmds in
9496 # FIXME: we may have to deal with multi-command sequences.
9499 # Test whether the compiler implicitly links with -lc since on some
9500 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9501 # to ld, don't add -lc before -lgcc.
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9503 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9504 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9505 $as_echo_n "(cached) " >&6
9508 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9511 (eval $ac_compile) 2>&5
9513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9514 test $ac_status = 0; } 2>conftest.err; then
9517 libobjs=conftest.$ac_objext
9519 wl=$lt_prog_compiler_wl
9520 pic_flag=$lt_prog_compiler_pic
9526 lt_save_allow_undefined_flag=$allow_undefined_flag
9527 allow_undefined_flag=
9528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9529 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9532 test $ac_status = 0; }
9534 lt_cv_archive_cmds_need_lc=no
9536 lt_cv_archive_cmds_need_lc=yes
9538 allow_undefined_flag=$lt_save_allow_undefined_flag
9540 cat conftest.err 1>&5
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9546 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9547 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9711 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9713 if test "$GCC" = yes; then
9715 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9716 *) lt_awk_arg="/^libraries:/" ;;
9719 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9720 *) lt_sed_strip_eq="s,=/,/,g" ;;
9722 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9723 case $lt_search_path_spec in
9725 # if the path contains ";" then we assume it to be the separator
9726 # otherwise default to the standard path separator (i.e. ":") - it is
9727 # assumed that no part of a normal pathname contains ";" but that should
9728 # okay in the real world where ";" in dirpaths is itself problematic.
9729 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9732 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9735 # Ok, now we have the path, separated by spaces, we can step through it
9736 # and add multilib dir if necessary.
9737 lt_tmp_lt_search_path_spec=
9738 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9739 for lt_sys_path in $lt_search_path_spec; do
9740 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9741 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9743 test -d "$lt_sys_path" && \
9744 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9747 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9748 BEGIN {RS=" "; FS="/|\n";} {
9751 for (lt_i = NF; lt_i > 0; lt_i--) {
9752 if ($lt_i != "" && $lt_i != ".") {
9753 if ($lt_i == "..") {
9756 if (lt_count == 0) {
9757 lt_foo="/" $lt_i lt_foo;
9764 if (lt_foo != "") { lt_freq[lt_foo]++; }
9765 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9767 # AWK program above erroneously prepends '/' to C:/dos/paths
9770 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9771 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9773 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9775 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9778 libname_spec='lib$name'
9786 shlibpath_overrides_runpath=unknown
9788 dynamic_linker="$host_os ld.so"
9789 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9790 need_lib_prefix=unknown
9791 hardcode_into_libs=no
9793 # when you set need_version to no, make sure it does not cause -set_version
9794 # flags to be left without arguments
9795 need_version=unknown
9800 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9801 shlibpath_var=LIBPATH
9803 # AIX 3 has no versioning support, so we append a major version to the name.
9804 soname_spec='${libname}${release}${shared_ext}$major'
9811 hardcode_into_libs=yes
9812 if test "$host_cpu" = ia64; then
9813 # AIX 5 supports IA64
9814 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9815 shlibpath_var=LD_LIBRARY_PATH
9817 # With GCC up to 2.95.x, collect2 would create an import file
9818 # for dependence libraries. The import file would start with
9819 # the line `#! .'. This would cause the generated library to
9820 # depend on `.', always an invalid library. This was fixed in
9821 # development snapshots of GCC prior to 3.0.
9823 aix4 | aix4.[01] | aix4.[01].*)
9824 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9826 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9833 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9834 # soname into executable. Probably we can add versioning support to
9835 # collect2, so additional links can be useful in future.
9836 if test "$aix_use_runtimelinking" = yes; then
9837 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9838 # instead of lib<name>.a to let people know that these are not
9839 # typical AIX shared libraries.
9840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9842 # We preserve .a as extension for shared libraries through AIX4.2
9843 # and later when we are not doing run time linking.
9844 library_names_spec='${libname}${release}.a $libname.a'
9845 soname_spec='${libname}${release}${shared_ext}$major'
9847 shlibpath_var=LIBPATH
9854 # Since July 2007 AmigaOS4 officially supports .so libraries.
9855 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9859 library_names_spec='$libname.ixlibrary $libname.a'
9860 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9861 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'
9867 library_names_spec='${libname}${shared_ext}'
9868 dynamic_linker="$host_os ld.so"
9869 shlibpath_var=LIBRARY_PATH
9875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9876 soname_spec='${libname}${release}${shared_ext}$major'
9877 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9878 shlibpath_var=LD_LIBRARY_PATH
9879 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9880 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9881 # the default ld.so.conf also contains /usr/contrib/lib and
9882 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9883 # libtool to hard-code these into programs
9886 cygwin* | mingw* | pw32* | cegcc*)
9887 version_type=windows
9892 case $GCC,$cc_basename in
9895 library_names_spec='$libname.dll.a'
9896 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9897 postinstall_cmds='base_file=`basename \${file}`~
9898 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9899 dldir=$destdir/`dirname \$dlpath`~
9900 test -d \$dldir || mkdir -p \$dldir~
9901 $install_prog $dir/$dlname \$dldir/$dlname~
9902 chmod a+x \$dldir/$dlname~
9903 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9904 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9906 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9907 dlpath=$dir/\$dldll~
9909 shlibpath_overrides_runpath=yes
9913 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9914 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9916 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9919 # MinGW DLLs use traditional 'lib' prefix
9920 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9923 # pw32 DLLs use 'pw' prefix rather than 'lib'
9924 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9927 dynamic_linker='Win32 ld.exe'
9932 libname_spec='$name'
9933 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9934 library_names_spec='${libname}.dll.lib'
9938 sys_lib_search_path_spec=
9944 # Let DOS variable expansion print the short 8.3 style file name.
9945 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9946 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9949 # Convert to MSYS style.
9950 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9953 # Convert to unix form, then to dos form, then back to unix form
9954 # but this time dos style (no spaces!) so that the unix form looks
9955 # like /cygdrive/c/PROGRA~1:/cygdr...
9956 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9957 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9958 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9961 sys_lib_search_path_spec="$LIB"
9962 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9963 # It is most probably a Windows format PATH.
9964 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9966 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9968 # FIXME: find the short name or the path components, as spaces are
9969 # common. (e.g. "Program Files" -> "PROGRA~1")
9973 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9974 postinstall_cmds='base_file=`basename \${file}`~
9975 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9976 dldir=$destdir/`dirname \$dlpath`~
9977 test -d \$dldir || mkdir -p \$dldir~
9978 $install_prog $dir/$dlname \$dldir/$dlname'
9979 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9980 dlpath=$dir/\$dldll~
9982 shlibpath_overrides_runpath=yes
9983 dynamic_linker='Win32 link.exe'
9987 # Assume MSVC wrapper
9988 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9989 dynamic_linker='Win32 ld.exe'
9992 # FIXME: first we should search . and the directory the executable is in
9996 darwin* | rhapsody*)
9997 dynamic_linker="$host_os dyld"
10001 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10002 soname_spec='${libname}${release}${major}$shared_ext'
10003 shlibpath_overrides_runpath=yes
10004 shlibpath_var=DYLD_LIBRARY_PATH
10005 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10007 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10008 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10016 soname_spec='${libname}${release}${shared_ext}$major'
10017 shlibpath_var=LD_LIBRARY_PATH
10024 freebsd* | dragonfly*)
10025 # DragonFly does not have aout. When/if they implement a new
10026 # versioning mechanism, adjust this.
10027 if test -x /usr/bin/objformat; then
10028 objformat=`/usr/bin/objformat`
10031 freebsd[123]*) objformat=aout ;;
10032 *) objformat=elf ;;
10035 version_type=freebsd-$objformat
10036 case $version_type in
10038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10047 shlibpath_var=LD_LIBRARY_PATH
10050 shlibpath_overrides_runpath=yes
10052 freebsd3.[01]* | freebsdelf3.[01]*)
10053 shlibpath_overrides_runpath=yes
10054 hardcode_into_libs=yes
10056 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10057 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10058 shlibpath_overrides_runpath=no
10059 hardcode_into_libs=yes
10061 *) # from 4.6 on, and DragonFly
10062 shlibpath_overrides_runpath=yes
10063 hardcode_into_libs=yes
10072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10073 soname_spec='${libname}${release}${shared_ext}$major'
10074 shlibpath_var=LD_LIBRARY_PATH
10075 hardcode_into_libs=yes
10082 dynamic_linker="$host_os runtime_loader"
10083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10084 soname_spec='${libname}${release}${shared_ext}$major'
10085 shlibpath_var=LIBRARY_PATH
10086 shlibpath_overrides_runpath=yes
10087 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10088 hardcode_into_libs=yes
10091 hpux9* | hpux10* | hpux11*)
10092 # Give a soname corresponding to the major version so that dld.sl refuses to
10093 # link against other versions.
10100 hardcode_into_libs=yes
10101 dynamic_linker="$host_os dld.so"
10102 shlibpath_var=LD_LIBRARY_PATH
10103 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10105 soname_spec='${libname}${release}${shared_ext}$major'
10106 if test "X$HPUX_IA64_MODE" = X32; then
10107 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10109 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10111 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10115 hardcode_into_libs=yes
10116 dynamic_linker="$host_os dld.sl"
10117 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10118 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10120 soname_spec='${libname}${release}${shared_ext}$major'
10121 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10122 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10126 dynamic_linker="$host_os dld.sl"
10127 shlibpath_var=SHLIB_PATH
10128 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10130 soname_spec='${libname}${release}${shared_ext}$major'
10133 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10134 postinstall_cmds='chmod 555 $lib'
10135 # or fails outright, so override atomically:
10136 install_override_mode=555
10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10144 soname_spec='${libname}${release}${shared_ext}$major'
10145 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10146 shlibpath_var=LD_LIBRARY_PATH
10147 shlibpath_overrides_runpath=no
10148 hardcode_into_libs=yes
10151 irix5* | irix6* | nonstopux*)
10153 nonstopux*) version_type=nonstopux ;;
10155 if test "$lt_cv_prog_gnu_ld" = yes; then
10163 soname_spec='${libname}${release}${shared_ext}$major'
10164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10166 irix5* | nonstopux*)
10167 libsuff= shlibsuff=
10170 case $LD in # libtool.m4 will add one of these switches to LD
10171 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10172 libsuff= shlibsuff= libmagic=32-bit;;
10173 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10174 libsuff=32 shlibsuff=N32 libmagic=N32;;
10175 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10176 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10177 *) libsuff= shlibsuff= libmagic=never-match;;
10181 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10182 shlibpath_overrides_runpath=no
10183 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10184 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10185 hardcode_into_libs=yes
10188 # No shared lib support for Linux oldld, aout, or coff.
10189 linux*oldld* | linux*aout* | linux*coff*)
10193 # This must be Linux ELF.
10194 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10199 soname_spec='${libname}${release}${shared_ext}$major'
10200 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10201 shlibpath_var=LD_LIBRARY_PATH
10202 shlibpath_overrides_runpath=no
10204 # Some binutils ld are patched to set DT_RUNPATH
10205 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10206 $as_echo_n "(cached) " >&6
10208 lt_cv_shlibpath_overrides_runpath=no
10209 save_LDFLAGS=$LDFLAGS
10210 save_libdir=$libdir
10211 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10212 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214 /* end confdefs.h. */
10224 if ac_fn_c_try_link "$LINENO"; then :
10225 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10226 lt_cv_shlibpath_overrides_runpath=yes
10229 rm -f core conftest.err conftest.$ac_objext \
10230 conftest$ac_exeext conftest.$ac_ext
10231 LDFLAGS=$save_LDFLAGS
10232 libdir=$save_libdir
10236 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10238 # This implies no fast_install, which is unacceptable.
10239 # Some rework will be needed to allow for fast_install
10240 # before this can be enabled.
10241 hardcode_into_libs=yes
10243 # Append ld.so.conf contents to the search path
10244 if test -f /etc/ld.so.conf; then
10245 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' ' '`
10246 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10249 # We used to test for /lib/ld.so.1 and disable shared libraries on
10250 # powerpc, because MkLinux only supported shared libraries with the
10251 # GNU dynamic linker. Since this was broken with cross compilers,
10252 # most powerpc-linux boxes support dynamic linking these days and
10253 # people can always --disable-shared, the test was removed, and we
10254 # assume the GNU/Linux dynamic linker is in use.
10255 dynamic_linker='GNU/Linux ld.so'
10262 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10265 dynamic_linker='NetBSD (a.out) ld.so'
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10268 soname_spec='${libname}${release}${shared_ext}$major'
10269 dynamic_linker='NetBSD ld.elf_so'
10271 shlibpath_var=LD_LIBRARY_PATH
10272 shlibpath_overrides_runpath=yes
10273 hardcode_into_libs=yes
10278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10279 shlibpath_var=LD_LIBRARY_PATH
10280 shlibpath_overrides_runpath=yes
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10288 soname_spec='${libname}${release}${shared_ext}$major'
10289 shlibpath_var=LD_LIBRARY_PATH
10290 shlibpath_overrides_runpath=no
10291 hardcode_into_libs=yes
10292 dynamic_linker='ldqnx.so'
10297 sys_lib_dlsearch_path_spec="/usr/lib"
10299 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10301 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10302 *) need_version=no ;;
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10306 shlibpath_var=LD_LIBRARY_PATH
10307 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10309 openbsd2.[89] | openbsd2.[89].*)
10310 shlibpath_overrides_runpath=no
10313 shlibpath_overrides_runpath=yes
10317 shlibpath_overrides_runpath=yes
10322 libname_spec='$name'
10325 library_names_spec='$libname${shared_ext} $libname.a'
10326 dynamic_linker='OS/2 ld.exe'
10327 shlibpath_var=LIBPATH
10330 osf3* | osf4* | osf5*)
10334 soname_spec='${libname}${release}${shared_ext}$major'
10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10336 shlibpath_var=LD_LIBRARY_PATH
10337 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10338 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350 soname_spec='${libname}${release}${shared_ext}$major'
10351 shlibpath_var=LD_LIBRARY_PATH
10352 shlibpath_overrides_runpath=yes
10353 hardcode_into_libs=yes
10354 # ldd complains unless libraries are executable
10355 postinstall_cmds='chmod +x $lib'
10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10361 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10362 shlibpath_var=LD_LIBRARY_PATH
10363 shlibpath_overrides_runpath=yes
10364 if test "$with_gnu_ld" = yes; then
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373 soname_spec='${libname}${release}${shared_ext}$major'
10374 shlibpath_var=LD_LIBRARY_PATH
10375 case $host_vendor in
10377 shlibpath_overrides_runpath=no
10379 runpath_var=LD_RUN_PATH
10387 shlibpath_overrides_runpath=no
10388 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10394 if test -d /usr/nec ;then
10396 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10397 soname_spec='$libname${shared_ext}.$major'
10398 shlibpath_var=LD_LIBRARY_PATH
10402 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10403 version_type=freebsd-elf
10406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10407 soname_spec='${libname}${release}${shared_ext}$major'
10408 shlibpath_var=LD_LIBRARY_PATH
10409 shlibpath_overrides_runpath=yes
10410 hardcode_into_libs=yes
10411 if test "$with_gnu_ld" = yes; then
10412 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10414 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10417 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10421 sys_lib_dlsearch_path_spec='/usr/lib'
10425 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10430 shlibpath_var=LD_LIBRARY_PATH
10431 shlibpath_overrides_runpath=no
10432 hardcode_into_libs=yes
10437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10438 soname_spec='${libname}${release}${shared_ext}$major'
10439 shlibpath_var=LD_LIBRARY_PATH
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10447 $as_echo "$dynamic_linker" >&6; }
10448 test "$dynamic_linker" = no && can_build_shared=no
10450 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10451 if test "$GCC" = yes; then
10452 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10455 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10456 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10458 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10459 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10554 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10556 if test -n "$hardcode_libdir_flag_spec" ||
10557 test -n "$runpath_var" ||
10558 test "X$hardcode_automatic" = "Xyes" ; then
10560 # We can hardcode non-existent directories.
10561 if test "$hardcode_direct" != no &&
10562 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10563 # have to relink, otherwise we might link with an installed library
10564 # when we should be linking with a yet-to-be-installed one
10565 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10566 test "$hardcode_minus_L" != no; then
10567 # Linking always hardcodes the temporary library directory.
10568 hardcode_action=relink
10570 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10571 hardcode_action=immediate
10574 # We cannot hardcode anything, or else we can only hardcode existing
10576 hardcode_action=unsupported
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10579 $as_echo "$hardcode_action" >&6; }
10581 if test "$hardcode_action" = relink ||
10582 test "$inherit_rpath" = yes; then
10583 # Fast installation is not supported
10584 enable_fast_install=no
10585 elif test "$shlibpath_overrides_runpath" = yes ||
10586 test "$enable_shared" = no; then
10587 # Fast installation is not necessary
10588 enable_fast_install=needless
10596 if test "x$enable_dlopen" != xyes; then
10597 enable_dlopen=unknown
10598 enable_dlopen_self=unknown
10599 enable_dlopen_self_static=unknown
10606 lt_cv_dlopen="load_add_on"
10608 lt_cv_dlopen_self=yes
10611 mingw* | pw32* | cegcc*)
10612 lt_cv_dlopen="LoadLibrary"
10617 lt_cv_dlopen="dlopen"
10622 # if libdl is installed we need to link against it
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10624 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10625 if ${ac_cv_lib_dl_dlopen+:} false; then :
10626 $as_echo_n "(cached) " >&6
10628 ac_check_lib_save_LIBS=$LIBS
10630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10631 /* end confdefs.h. */
10633 /* Override any GCC internal prototype to avoid an error.
10634 Use char because int might match the return type of a GCC
10635 builtin and then its argument prototype would still apply. */
10648 if ac_fn_c_try_link "$LINENO"; then :
10649 ac_cv_lib_dl_dlopen=yes
10651 ac_cv_lib_dl_dlopen=no
10653 rm -f core conftest.err conftest.$ac_objext \
10654 conftest$ac_exeext conftest.$ac_ext
10655 LIBS=$ac_check_lib_save_LIBS
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10658 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10659 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10660 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10663 lt_cv_dlopen="dyld"
10665 lt_cv_dlopen_self=yes
10672 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10673 if test "x$ac_cv_func_shl_load" = xyes; then :
10674 lt_cv_dlopen="shl_load"
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10677 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10678 if ${ac_cv_lib_dld_shl_load+:} false; then :
10679 $as_echo_n "(cached) " >&6
10681 ac_check_lib_save_LIBS=$LIBS
10683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10684 /* end confdefs.h. */
10686 /* Override any GCC internal prototype to avoid an error.
10687 Use char because int might match the return type of a GCC
10688 builtin and then its argument prototype would still apply. */
10696 return shl_load ();
10701 if ac_fn_c_try_link "$LINENO"; then :
10702 ac_cv_lib_dld_shl_load=yes
10704 ac_cv_lib_dld_shl_load=no
10706 rm -f core conftest.err conftest.$ac_objext \
10707 conftest$ac_exeext conftest.$ac_ext
10708 LIBS=$ac_check_lib_save_LIBS
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10711 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10712 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10713 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10715 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10716 if test "x$ac_cv_func_dlopen" = xyes; then :
10717 lt_cv_dlopen="dlopen"
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10720 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10721 if ${ac_cv_lib_dl_dlopen+:} false; then :
10722 $as_echo_n "(cached) " >&6
10724 ac_check_lib_save_LIBS=$LIBS
10726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10727 /* end confdefs.h. */
10729 /* Override any GCC internal prototype to avoid an error.
10730 Use char because int might match the return type of a GCC
10731 builtin and then its argument prototype would still apply. */
10744 if ac_fn_c_try_link "$LINENO"; then :
10745 ac_cv_lib_dl_dlopen=yes
10747 ac_cv_lib_dl_dlopen=no
10749 rm -f core conftest.err conftest.$ac_objext \
10750 conftest$ac_exeext conftest.$ac_ext
10751 LIBS=$ac_check_lib_save_LIBS
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10754 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10755 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10756 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10759 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10760 if ${ac_cv_lib_svld_dlopen+:} false; then :
10761 $as_echo_n "(cached) " >&6
10763 ac_check_lib_save_LIBS=$LIBS
10764 LIBS="-lsvld $LIBS"
10765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10766 /* end confdefs.h. */
10768 /* Override any GCC internal prototype to avoid an error.
10769 Use char because int might match the return type of a GCC
10770 builtin and then its argument prototype would still apply. */
10783 if ac_fn_c_try_link "$LINENO"; then :
10784 ac_cv_lib_svld_dlopen=yes
10786 ac_cv_lib_svld_dlopen=no
10788 rm -f core conftest.err conftest.$ac_objext \
10789 conftest$ac_exeext conftest.$ac_ext
10790 LIBS=$ac_check_lib_save_LIBS
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10793 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10794 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10795 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10798 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10799 if ${ac_cv_lib_dld_dld_link+:} false; then :
10800 $as_echo_n "(cached) " >&6
10802 ac_check_lib_save_LIBS=$LIBS
10804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805 /* end confdefs.h. */
10807 /* Override any GCC internal prototype to avoid an error.
10808 Use char because int might match the return type of a GCC
10809 builtin and then its argument prototype would still apply. */
10817 return dld_link ();
10822 if ac_fn_c_try_link "$LINENO"; then :
10823 ac_cv_lib_dld_dld_link=yes
10825 ac_cv_lib_dld_dld_link=no
10827 rm -f core conftest.err conftest.$ac_objext \
10828 conftest$ac_exeext conftest.$ac_ext
10829 LIBS=$ac_check_lib_save_LIBS
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10832 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10833 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10834 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10855 if test "x$lt_cv_dlopen" != xno; then
10861 case $lt_cv_dlopen in
10863 save_CPPFLAGS="$CPPFLAGS"
10864 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10866 save_LDFLAGS="$LDFLAGS"
10867 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10870 LIBS="$lt_cv_dlopen_libs $LIBS"
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10873 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10874 if ${lt_cv_dlopen_self+:} false; then :
10875 $as_echo_n "(cached) " >&6
10877 if test "$cross_compiling" = yes; then :
10878 lt_cv_dlopen_self=cross
10880 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10881 lt_status=$lt_dlunknown
10882 cat > conftest.$ac_ext <<_LT_EOF
10883 #line $LINENO "configure"
10884 #include "confdefs.h"
10893 # define LT_DLGLOBAL RTLD_GLOBAL
10896 # define LT_DLGLOBAL DL_GLOBAL
10898 # define LT_DLGLOBAL 0
10902 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10903 find out it does not work in some platform. */
10904 #ifndef LT_DLLAZY_OR_NOW
10906 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10909 # define LT_DLLAZY_OR_NOW DL_LAZY
10912 # define LT_DLLAZY_OR_NOW RTLD_NOW
10915 # define LT_DLLAZY_OR_NOW DL_NOW
10917 # define LT_DLLAZY_OR_NOW 0
10924 /* When -fvisbility=hidden is used, assume the code has been annotated
10925 correspondingly for the symbols needed. */
10926 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10927 int fnord () __attribute__((visibility("default")));
10930 int fnord () { return 42; }
10933 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10934 int status = $lt_dlunknown;
10938 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10941 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10942 else puts (dlerror ());
10944 /* dlclose (self); */
10952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10953 (eval $ac_link) 2>&5
10955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10956 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10957 (./conftest; exit; ) >&5 2>/dev/null
10959 case x$lt_status in
10960 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10961 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10962 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10965 # compilation failed
10966 lt_cv_dlopen_self=no
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10974 $as_echo "$lt_cv_dlopen_self" >&6; }
10976 if test "x$lt_cv_dlopen_self" = xyes; then
10977 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10979 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10980 if ${lt_cv_dlopen_self_static+:} false; then :
10981 $as_echo_n "(cached) " >&6
10983 if test "$cross_compiling" = yes; then :
10984 lt_cv_dlopen_self_static=cross
10986 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10987 lt_status=$lt_dlunknown
10988 cat > conftest.$ac_ext <<_LT_EOF
10989 #line $LINENO "configure"
10990 #include "confdefs.h"
10999 # define LT_DLGLOBAL RTLD_GLOBAL
11002 # define LT_DLGLOBAL DL_GLOBAL
11004 # define LT_DLGLOBAL 0
11008 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11009 find out it does not work in some platform. */
11010 #ifndef LT_DLLAZY_OR_NOW
11012 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11015 # define LT_DLLAZY_OR_NOW DL_LAZY
11018 # define LT_DLLAZY_OR_NOW RTLD_NOW
11021 # define LT_DLLAZY_OR_NOW DL_NOW
11023 # define LT_DLLAZY_OR_NOW 0
11030 /* When -fvisbility=hidden is used, assume the code has been annotated
11031 correspondingly for the symbols needed. */
11032 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11033 int fnord () __attribute__((visibility("default")));
11036 int fnord () { return 42; }
11039 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11040 int status = $lt_dlunknown;
11044 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11047 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11048 else puts (dlerror ());
11050 /* dlclose (self); */
11058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11059 (eval $ac_link) 2>&5
11061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11062 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11063 (./conftest; exit; ) >&5 2>/dev/null
11065 case x$lt_status in
11066 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11067 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11068 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11071 # compilation failed
11072 lt_cv_dlopen_self_static=no
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11080 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11083 CPPFLAGS="$save_CPPFLAGS"
11084 LDFLAGS="$save_LDFLAGS"
11089 case $lt_cv_dlopen_self in
11090 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11091 *) enable_dlopen_self=unknown ;;
11094 case $lt_cv_dlopen_self_static in
11095 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11096 *) enable_dlopen_self_static=unknown ;;
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11119 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11120 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11121 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11122 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11124 $as_echo "yes" >&6; }
11126 # FIXME - insert some real tests, host_os isn't really good enough
11129 if test -n "$STRIP" ; then
11130 striplib="$STRIP -x"
11131 old_striplib="$STRIP -S"
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11133 $as_echo "yes" >&6; }
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11136 $as_echo "no" >&6; }
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11141 $as_echo "no" >&6; }
11157 # Report which library types will actually be built
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11159 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11161 $as_echo "$can_build_shared" >&6; }
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11164 $as_echo_n "checking whether to build shared libraries... " >&6; }
11165 test "$can_build_shared" = "no" && enable_shared=no
11167 # On AIX, shared libraries and static libraries use the same namespace, and
11168 # are all built from PIC.
11171 test "$enable_shared" = yes && enable_static=no
11172 if test -n "$RANLIB"; then
11173 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11174 postinstall_cmds='$RANLIB $lib'
11179 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11180 test "$enable_shared" = yes && enable_static=no
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11185 $as_echo "$enable_shared" >&6; }
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11188 $as_echo_n "checking whether to build static libraries... " >&6; }
11189 # Make sure either enable_shared or enable_static is yes.
11190 test "$enable_shared" = yes || enable_static=yes
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11192 $as_echo "$enable_static" >&6; }
11199 ac_cpp='$CPP $CPPFLAGS'
11200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11218 ac_config_commands="$ac_config_commands libtool"
11223 # Only expand once:
11227 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11240 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11241 if ${ac_cv_prog_cc_c99+:} false; then :
11242 $as_echo_n "(cached) " >&6
11244 ac_cv_prog_cc_c99=no
11246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11247 /* end confdefs.h. */
11248 #include <stdarg.h>
11249 #include <stdbool.h>
11250 #include <stdlib.h>
11254 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11255 #define debug(...) fprintf (stderr, __VA_ARGS__)
11256 #define showlist(...) puts (#__VA_ARGS__)
11257 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11259 test_varargs_macros (void)
11264 debug ("X = %d\n", x);
11265 showlist (The first, second, and third items.);
11266 report (x>y, "x is %d but y is %d", x, y);
11269 // Check long long types.
11270 #define BIG64 18446744073709551615ull
11271 #define BIG32 4294967295ul
11272 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11274 your preprocessor is broken;
11278 your preprocessor is broken;
11280 static long long int bignum = -9223372036854775807LL;
11281 static unsigned long long int ubignum = BIG64;
11283 struct incomplete_array
11289 struct named_init {
11291 const wchar_t *name;
11295 typedef const char *ccp;
11298 test_restrict (ccp restrict text)
11300 // See if C++-style comments work.
11301 // Iterate through items via the restricted pointer.
11302 // Also check for declarations in for loops.
11303 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11308 // Check varargs and va_copy.
11310 test_varargs (const char *format, ...)
11313 va_start (args, format);
11315 va_copy (args_copy, args);
11325 case 's': // string
11326 str = va_arg (args_copy, const char *);
11329 number = va_arg (args_copy, int);
11332 fnumber = va_arg (args_copy, double);
11338 va_end (args_copy);
11347 _Bool success = false;
11350 if (test_restrict ("String literal") == 0)
11352 char *restrict newvar = "Another string";
11355 test_varargs ("s, d' f .", "string", 65, 34.234);
11356 test_varargs_macros ();
11358 // Check flexible array members.
11359 struct incomplete_array *ia =
11360 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11362 for (int i = 0; i < ia->datasize; ++i)
11363 ia->data[i] = i * 1.234;
11365 // Check named initializers.
11366 struct named_init ni = {
11368 .name = L"Test wide string",
11369 .average = 543.34343,
11374 int dynamic_array[ni.number];
11375 dynamic_array[ni.number - 1] = 543;
11377 // work around unused variable warnings
11378 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11379 || dynamic_array[ni.number - 1] != 543);
11385 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11387 CC="$ac_save_CC $ac_arg"
11388 if ac_fn_c_try_compile "$LINENO"; then :
11389 ac_cv_prog_cc_c99=$ac_arg
11391 rm -f core conftest.err conftest.$ac_objext
11392 test "x$ac_cv_prog_cc_c99" != "xno" && break
11394 rm -f conftest.$ac_ext
11399 case "x$ac_cv_prog_cc_c99" in
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11402 $as_echo "none needed" >&6; } ;;
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11405 $as_echo "unsupported" >&6; } ;;
11407 CC="$CC $ac_cv_prog_cc_c99"
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11409 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11411 if test "x$ac_cv_prog_cc_c99" != xno; then :
11420 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11421 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11427 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11428 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11434 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11435 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11444 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11445 if test -n "$ac_tool_prefix"; then
11446 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11447 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11449 $as_echo_n "checking for $ac_word... " >&6; }
11450 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11451 $as_echo_n "(cached) " >&6
11453 case $PKG_CONFIG in
11455 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11459 for as_dir in $PATH
11462 test -z "$as_dir" && as_dir=.
11463 for ac_exec_ext in '' $ac_executable_extensions; do
11464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11465 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11476 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11477 if test -n "$PKG_CONFIG"; then
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11479 $as_echo "$PKG_CONFIG" >&6; }
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11482 $as_echo "no" >&6; }
11487 if test -z "$ac_cv_path_PKG_CONFIG"; then
11488 ac_pt_PKG_CONFIG=$PKG_CONFIG
11489 # Extract the first word of "pkg-config", so it can be a program name with args.
11490 set dummy pkg-config; ac_word=$2
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11492 $as_echo_n "checking for $ac_word... " >&6; }
11493 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11494 $as_echo_n "(cached) " >&6
11496 case $ac_pt_PKG_CONFIG in
11498 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11502 for as_dir in $PATH
11505 test -z "$as_dir" && as_dir=.
11506 for ac_exec_ext in '' $ac_executable_extensions; do
11507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11508 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11519 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11520 if test -n "$ac_pt_PKG_CONFIG"; then
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11522 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11525 $as_echo "no" >&6; }
11528 if test "x$ac_pt_PKG_CONFIG" = x; then
11531 case $cross_compiling:$ac_tool_warned in
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11535 ac_tool_warned=yes ;;
11537 PKG_CONFIG=$ac_pt_PKG_CONFIG
11540 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11544 if test -n "$PKG_CONFIG"; then
11545 _pkg_min_version=0.9.0
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11547 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11548 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11550 $as_echo "yes" >&6; }
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11553 $as_echo "no" >&6; }
11563 # Check whether --enable-selective-werror was given.
11564 if test "${enable_selective_werror+set}" = set; then :
11565 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11567 SELECTIVE_WERROR=yes
11574 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11575 if test "x$SUNCC" = "xyes"; then
11581 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11593 xorg_testset_save_CFLAGS="$CFLAGS"
11595 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11598 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11599 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11600 $as_echo_n "(cached) " >&6
11602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11603 /* end confdefs.h. */
11606 if ac_fn_c_try_compile "$LINENO"; then :
11607 xorg_cv_compiler_flag_unknown_warning_option=yes
11609 xorg_cv_compiler_flag_unknown_warning_option=no
11611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11614 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11615 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11616 CFLAGS="$xorg_testset_save_CFLAGS"
11619 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11620 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11625 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11626 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11627 $as_echo_n "(cached) " >&6
11629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630 /* end confdefs.h. */
11633 if ac_fn_c_try_compile "$LINENO"; then :
11634 xorg_cv_compiler_flag_unused_command_line_argument=yes
11636 xorg_cv_compiler_flag_unused_command_line_argument=no
11638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11641 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11642 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11643 CFLAGS="$xorg_testset_save_CFLAGS"
11648 if test $found = "no" ; then
11649 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11653 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11657 CFLAGS="$CFLAGS -Wall"
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11660 $as_echo_n "checking if $CC supports -Wall... " >&6; }
11661 cacheid=`$as_echo xorg_cv_cc_flag_-Wall`
11662 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11663 $as_echo_n "(cached) " >&6
11665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11666 /* end confdefs.h. */
11676 if ac_fn_c_try_link "$LINENO"; then :
11677 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11679 eval `$as_echo "$cacheid" | $as_tr_sh`=no
11681 rm -f core conftest.err conftest.$ac_objext \
11682 conftest$ac_exeext conftest.$ac_ext
11686 CFLAGS="$xorg_testset_save_CFLAGS"
11688 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11690 $as_echo "$supported" >&6; }
11691 if test "$supported" = "yes" ; then
11692 BASE_CFLAGS="$BASE_CFLAGS -Wall"
11709 xorg_testset_save_CFLAGS="$CFLAGS"
11711 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11714 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11715 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11716 $as_echo_n "(cached) " >&6
11718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11719 /* end confdefs.h. */
11722 if ac_fn_c_try_compile "$LINENO"; then :
11723 xorg_cv_compiler_flag_unknown_warning_option=yes
11725 xorg_cv_compiler_flag_unknown_warning_option=no
11727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11730 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11731 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11732 CFLAGS="$xorg_testset_save_CFLAGS"
11735 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11736 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11741 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11742 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11743 $as_echo_n "(cached) " >&6
11745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11746 /* end confdefs.h. */
11749 if ac_fn_c_try_compile "$LINENO"; then :
11750 xorg_cv_compiler_flag_unused_command_line_argument=yes
11752 xorg_cv_compiler_flag_unused_command_line_argument=no
11754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11757 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11758 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11759 CFLAGS="$xorg_testset_save_CFLAGS"
11764 if test $found = "no" ; then
11765 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11769 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11773 CFLAGS="$CFLAGS -Wpointer-arith"
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
11776 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
11777 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith`
11778 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11779 $as_echo_n "(cached) " >&6
11781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11782 /* end confdefs.h. */
11792 if ac_fn_c_try_link "$LINENO"; then :
11793 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11795 eval `$as_echo "$cacheid" | $as_tr_sh`=no
11797 rm -f core conftest.err conftest.$ac_objext \
11798 conftest$ac_exeext conftest.$ac_ext
11802 CFLAGS="$xorg_testset_save_CFLAGS"
11804 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11806 $as_echo "$supported" >&6; }
11807 if test "$supported" = "yes" ; then
11808 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
11825 xorg_testset_save_CFLAGS="$CFLAGS"
11827 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11830 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11831 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11832 $as_echo_n "(cached) " >&6
11834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11835 /* end confdefs.h. */
11838 if ac_fn_c_try_compile "$LINENO"; then :
11839 xorg_cv_compiler_flag_unknown_warning_option=yes
11841 xorg_cv_compiler_flag_unknown_warning_option=no
11843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11846 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11847 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11848 CFLAGS="$xorg_testset_save_CFLAGS"
11851 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11852 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11857 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11858 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11859 $as_echo_n "(cached) " >&6
11861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11862 /* end confdefs.h. */
11865 if ac_fn_c_try_compile "$LINENO"; then :
11866 xorg_cv_compiler_flag_unused_command_line_argument=yes
11868 xorg_cv_compiler_flag_unused_command_line_argument=no
11870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11873 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11874 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11875 CFLAGS="$xorg_testset_save_CFLAGS"
11880 if test $found = "no" ; then
11881 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11885 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11889 CFLAGS="$CFLAGS -Wmissing-declarations"
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
11892 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
11893 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations`
11894 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11895 $as_echo_n "(cached) " >&6
11897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11898 /* end confdefs.h. */
11908 if ac_fn_c_try_link "$LINENO"; then :
11909 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11911 eval `$as_echo "$cacheid" | $as_tr_sh`=no
11913 rm -f core conftest.err conftest.$ac_objext \
11914 conftest$ac_exeext conftest.$ac_ext
11918 CFLAGS="$xorg_testset_save_CFLAGS"
11920 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11922 $as_echo "$supported" >&6; }
11923 if test "$supported" = "yes" ; then
11924 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
11941 xorg_testset_save_CFLAGS="$CFLAGS"
11943 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11946 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11947 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11948 $as_echo_n "(cached) " >&6
11950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11951 /* end confdefs.h. */
11954 if ac_fn_c_try_compile "$LINENO"; then :
11955 xorg_cv_compiler_flag_unknown_warning_option=yes
11957 xorg_cv_compiler_flag_unknown_warning_option=no
11959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11962 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11963 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11964 CFLAGS="$xorg_testset_save_CFLAGS"
11967 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11968 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11973 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11974 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11975 $as_echo_n "(cached) " >&6
11977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11978 /* end confdefs.h. */
11981 if ac_fn_c_try_compile "$LINENO"; then :
11982 xorg_cv_compiler_flag_unused_command_line_argument=yes
11984 xorg_cv_compiler_flag_unused_command_line_argument=no
11986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11989 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11990 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11991 CFLAGS="$xorg_testset_save_CFLAGS"
11996 if test $found = "no" ; then
11997 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12001 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12005 CFLAGS="$CFLAGS -Wformat=2"
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12008 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12009 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat=2`
12010 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12011 $as_echo_n "(cached) " >&6
12013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12014 /* end confdefs.h. */
12024 if ac_fn_c_try_link "$LINENO"; then :
12025 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12027 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12029 rm -f core conftest.err conftest.$ac_objext \
12030 conftest$ac_exeext conftest.$ac_ext
12034 CFLAGS="$xorg_testset_save_CFLAGS"
12036 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12038 $as_echo "$supported" >&6; }
12039 if test "$supported" = "yes" ; then
12040 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12045 if test $found = "no" ; then
12046 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12050 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12054 CFLAGS="$CFLAGS -Wformat"
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12057 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12058 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat`
12059 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12060 $as_echo_n "(cached) " >&6
12062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12063 /* end confdefs.h. */
12073 if ac_fn_c_try_link "$LINENO"; then :
12074 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12076 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12078 rm -f core conftest.err conftest.$ac_objext \
12079 conftest$ac_exeext conftest.$ac_ext
12083 CFLAGS="$xorg_testset_save_CFLAGS"
12085 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12087 $as_echo "$supported" >&6; }
12088 if test "$supported" = "yes" ; then
12089 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12108 xorg_testset_save_CFLAGS="$CFLAGS"
12110 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12113 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12114 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12115 $as_echo_n "(cached) " >&6
12117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h. */
12121 if ac_fn_c_try_compile "$LINENO"; then :
12122 xorg_cv_compiler_flag_unknown_warning_option=yes
12124 xorg_cv_compiler_flag_unknown_warning_option=no
12126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12129 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12130 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12131 CFLAGS="$xorg_testset_save_CFLAGS"
12134 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12135 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12140 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12141 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12142 $as_echo_n "(cached) " >&6
12144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h. */
12148 if ac_fn_c_try_compile "$LINENO"; then :
12149 xorg_cv_compiler_flag_unused_command_line_argument=yes
12151 xorg_cv_compiler_flag_unused_command_line_argument=no
12153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12156 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12157 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12158 CFLAGS="$xorg_testset_save_CFLAGS"
12163 if test $found = "no" ; then
12164 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12165 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12168 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12172 CFLAGS="$CFLAGS -Wstrict-prototypes"
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12175 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12176 cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes`
12177 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12178 $as_echo_n "(cached) " >&6
12180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12181 /* end confdefs.h. */
12191 if ac_fn_c_try_link "$LINENO"; then :
12192 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12194 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12196 rm -f core conftest.err conftest.$ac_objext \
12197 conftest$ac_exeext conftest.$ac_ext
12201 CFLAGS="$xorg_testset_save_CFLAGS"
12203 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12205 $as_echo "$supported" >&6; }
12206 if test "$supported" = "yes" ; then
12207 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12224 xorg_testset_save_CFLAGS="$CFLAGS"
12226 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12229 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12230 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12231 $as_echo_n "(cached) " >&6
12233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12234 /* end confdefs.h. */
12237 if ac_fn_c_try_compile "$LINENO"; then :
12238 xorg_cv_compiler_flag_unknown_warning_option=yes
12240 xorg_cv_compiler_flag_unknown_warning_option=no
12242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12245 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12246 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12247 CFLAGS="$xorg_testset_save_CFLAGS"
12250 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12251 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12256 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12257 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12258 $as_echo_n "(cached) " >&6
12260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12261 /* end confdefs.h. */
12264 if ac_fn_c_try_compile "$LINENO"; then :
12265 xorg_cv_compiler_flag_unused_command_line_argument=yes
12267 xorg_cv_compiler_flag_unused_command_line_argument=no
12269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12272 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12273 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12274 CFLAGS="$xorg_testset_save_CFLAGS"
12279 if test $found = "no" ; then
12280 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12284 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12288 CFLAGS="$CFLAGS -Wmissing-prototypes"
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12291 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12292 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes`
12293 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12294 $as_echo_n "(cached) " >&6
12296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12297 /* end confdefs.h. */
12307 if ac_fn_c_try_link "$LINENO"; then :
12308 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12310 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12312 rm -f core conftest.err conftest.$ac_objext \
12313 conftest$ac_exeext conftest.$ac_ext
12317 CFLAGS="$xorg_testset_save_CFLAGS"
12319 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12321 $as_echo "$supported" >&6; }
12322 if test "$supported" = "yes" ; then
12323 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12340 xorg_testset_save_CFLAGS="$CFLAGS"
12342 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12345 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12346 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12347 $as_echo_n "(cached) " >&6
12349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12350 /* end confdefs.h. */
12353 if ac_fn_c_try_compile "$LINENO"; then :
12354 xorg_cv_compiler_flag_unknown_warning_option=yes
12356 xorg_cv_compiler_flag_unknown_warning_option=no
12358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12361 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12362 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12363 CFLAGS="$xorg_testset_save_CFLAGS"
12366 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12367 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12372 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12373 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12374 $as_echo_n "(cached) " >&6
12376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12377 /* end confdefs.h. */
12380 if ac_fn_c_try_compile "$LINENO"; then :
12381 xorg_cv_compiler_flag_unused_command_line_argument=yes
12383 xorg_cv_compiler_flag_unused_command_line_argument=no
12385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12388 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12389 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12390 CFLAGS="$xorg_testset_save_CFLAGS"
12395 if test $found = "no" ; then
12396 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12400 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12404 CFLAGS="$CFLAGS -Wnested-externs"
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12407 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12408 cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs`
12409 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12410 $as_echo_n "(cached) " >&6
12412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12413 /* end confdefs.h. */
12423 if ac_fn_c_try_link "$LINENO"; then :
12424 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12426 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12428 rm -f core conftest.err conftest.$ac_objext \
12429 conftest$ac_exeext conftest.$ac_ext
12433 CFLAGS="$xorg_testset_save_CFLAGS"
12435 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12437 $as_echo "$supported" >&6; }
12438 if test "$supported" = "yes" ; then
12439 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12456 xorg_testset_save_CFLAGS="$CFLAGS"
12458 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12461 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12462 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12463 $as_echo_n "(cached) " >&6
12465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466 /* end confdefs.h. */
12469 if ac_fn_c_try_compile "$LINENO"; then :
12470 xorg_cv_compiler_flag_unknown_warning_option=yes
12472 xorg_cv_compiler_flag_unknown_warning_option=no
12474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12477 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12478 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12479 CFLAGS="$xorg_testset_save_CFLAGS"
12482 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12483 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12488 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12489 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12490 $as_echo_n "(cached) " >&6
12492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12493 /* end confdefs.h. */
12496 if ac_fn_c_try_compile "$LINENO"; then :
12497 xorg_cv_compiler_flag_unused_command_line_argument=yes
12499 xorg_cv_compiler_flag_unused_command_line_argument=no
12501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12504 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12505 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12506 CFLAGS="$xorg_testset_save_CFLAGS"
12511 if test $found = "no" ; then
12512 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12516 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12520 CFLAGS="$CFLAGS -Wbad-function-cast"
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12523 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12524 cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast`
12525 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12526 $as_echo_n "(cached) " >&6
12528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12529 /* end confdefs.h. */
12539 if ac_fn_c_try_link "$LINENO"; then :
12540 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12542 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12544 rm -f core conftest.err conftest.$ac_objext \
12545 conftest$ac_exeext conftest.$ac_ext
12549 CFLAGS="$xorg_testset_save_CFLAGS"
12551 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12553 $as_echo "$supported" >&6; }
12554 if test "$supported" = "yes" ; then
12555 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12572 xorg_testset_save_CFLAGS="$CFLAGS"
12574 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12577 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12578 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12579 $as_echo_n "(cached) " >&6
12581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h. */
12585 if ac_fn_c_try_compile "$LINENO"; then :
12586 xorg_cv_compiler_flag_unknown_warning_option=yes
12588 xorg_cv_compiler_flag_unknown_warning_option=no
12590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12593 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12594 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12595 CFLAGS="$xorg_testset_save_CFLAGS"
12598 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12599 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12604 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12605 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12606 $as_echo_n "(cached) " >&6
12608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609 /* end confdefs.h. */
12612 if ac_fn_c_try_compile "$LINENO"; then :
12613 xorg_cv_compiler_flag_unused_command_line_argument=yes
12615 xorg_cv_compiler_flag_unused_command_line_argument=no
12617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12620 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12621 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12622 CFLAGS="$xorg_testset_save_CFLAGS"
12627 if test $found = "no" ; then
12628 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12632 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12636 CFLAGS="$CFLAGS -Wold-style-definition"
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12639 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12640 cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition`
12641 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12642 $as_echo_n "(cached) " >&6
12644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12645 /* end confdefs.h. */
12655 if ac_fn_c_try_link "$LINENO"; then :
12656 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12658 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12660 rm -f core conftest.err conftest.$ac_objext \
12661 conftest$ac_exeext conftest.$ac_ext
12665 CFLAGS="$xorg_testset_save_CFLAGS"
12667 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12669 $as_echo "$supported" >&6; }
12670 if test "$supported" = "yes" ; then
12671 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12688 xorg_testset_save_CFLAGS="$CFLAGS"
12690 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12693 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12694 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12695 $as_echo_n "(cached) " >&6
12697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12698 /* end confdefs.h. */
12701 if ac_fn_c_try_compile "$LINENO"; then :
12702 xorg_cv_compiler_flag_unknown_warning_option=yes
12704 xorg_cv_compiler_flag_unknown_warning_option=no
12706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12709 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12710 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12711 CFLAGS="$xorg_testset_save_CFLAGS"
12714 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12715 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12720 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12721 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12722 $as_echo_n "(cached) " >&6
12724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12725 /* end confdefs.h. */
12728 if ac_fn_c_try_compile "$LINENO"; then :
12729 xorg_cv_compiler_flag_unused_command_line_argument=yes
12731 xorg_cv_compiler_flag_unused_command_line_argument=no
12733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12736 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12737 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12738 CFLAGS="$xorg_testset_save_CFLAGS"
12743 if test $found = "no" ; then
12744 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12748 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12752 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
12755 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
12756 cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statement`
12757 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12758 $as_echo_n "(cached) " >&6
12760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12761 /* end confdefs.h. */
12771 if ac_fn_c_try_link "$LINENO"; then :
12772 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12774 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12776 rm -f core conftest.err conftest.$ac_objext \
12777 conftest$ac_exeext conftest.$ac_ext
12781 CFLAGS="$xorg_testset_save_CFLAGS"
12783 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12785 $as_echo "$supported" >&6; }
12786 if test "$supported" = "yes" ; then
12787 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
12796 # This chunk adds additional warnings that could catch undesired effects.
12808 xorg_testset_save_CFLAGS="$CFLAGS"
12810 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12813 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12814 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12815 $as_echo_n "(cached) " >&6
12817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818 /* end confdefs.h. */
12821 if ac_fn_c_try_compile "$LINENO"; then :
12822 xorg_cv_compiler_flag_unknown_warning_option=yes
12824 xorg_cv_compiler_flag_unknown_warning_option=no
12826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12829 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12830 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12831 CFLAGS="$xorg_testset_save_CFLAGS"
12834 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12835 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12840 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12841 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12842 $as_echo_n "(cached) " >&6
12844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h. */
12848 if ac_fn_c_try_compile "$LINENO"; then :
12849 xorg_cv_compiler_flag_unused_command_line_argument=yes
12851 xorg_cv_compiler_flag_unused_command_line_argument=no
12853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12856 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12857 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12858 CFLAGS="$xorg_testset_save_CFLAGS"
12863 if test $found = "no" ; then
12864 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12868 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12872 CFLAGS="$CFLAGS -Wunused"
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
12875 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
12876 cacheid=`$as_echo xorg_cv_cc_flag_-Wunused`
12877 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12878 $as_echo_n "(cached) " >&6
12880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12891 if ac_fn_c_try_link "$LINENO"; then :
12892 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12894 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12896 rm -f core conftest.err conftest.$ac_objext \
12897 conftest$ac_exeext conftest.$ac_ext
12901 CFLAGS="$xorg_testset_save_CFLAGS"
12903 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12905 $as_echo "$supported" >&6; }
12906 if test "$supported" = "yes" ; then
12907 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
12924 xorg_testset_save_CFLAGS="$CFLAGS"
12926 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12929 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12930 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12931 $as_echo_n "(cached) " >&6
12933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12934 /* end confdefs.h. */
12937 if ac_fn_c_try_compile "$LINENO"; then :
12938 xorg_cv_compiler_flag_unknown_warning_option=yes
12940 xorg_cv_compiler_flag_unknown_warning_option=no
12942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12945 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12946 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12947 CFLAGS="$xorg_testset_save_CFLAGS"
12950 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12951 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12956 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12957 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12958 $as_echo_n "(cached) " >&6
12960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12961 /* end confdefs.h. */
12964 if ac_fn_c_try_compile "$LINENO"; then :
12965 xorg_cv_compiler_flag_unused_command_line_argument=yes
12967 xorg_cv_compiler_flag_unused_command_line_argument=no
12969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12972 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12973 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12974 CFLAGS="$xorg_testset_save_CFLAGS"
12979 if test $found = "no" ; then
12980 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12984 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12988 CFLAGS="$CFLAGS -Wuninitialized"
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
12991 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
12992 cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized`
12993 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12994 $as_echo_n "(cached) " >&6
12996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h. */
13007 if ac_fn_c_try_link "$LINENO"; then :
13008 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13010 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13012 rm -f core conftest.err conftest.$ac_objext \
13013 conftest$ac_exeext conftest.$ac_ext
13017 CFLAGS="$xorg_testset_save_CFLAGS"
13019 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13021 $as_echo "$supported" >&6; }
13022 if test "$supported" = "yes" ; then
13023 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13040 xorg_testset_save_CFLAGS="$CFLAGS"
13042 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13045 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13046 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13047 $as_echo_n "(cached) " >&6
13049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050 /* end confdefs.h. */
13053 if ac_fn_c_try_compile "$LINENO"; then :
13054 xorg_cv_compiler_flag_unknown_warning_option=yes
13056 xorg_cv_compiler_flag_unknown_warning_option=no
13058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13061 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13062 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13063 CFLAGS="$xorg_testset_save_CFLAGS"
13066 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13067 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13072 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13073 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13074 $as_echo_n "(cached) " >&6
13076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13077 /* end confdefs.h. */
13080 if ac_fn_c_try_compile "$LINENO"; then :
13081 xorg_cv_compiler_flag_unused_command_line_argument=yes
13083 xorg_cv_compiler_flag_unused_command_line_argument=no
13085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13088 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13089 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13090 CFLAGS="$xorg_testset_save_CFLAGS"
13095 if test $found = "no" ; then
13096 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13100 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13104 CFLAGS="$CFLAGS -Wshadow"
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13107 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13108 cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow`
13109 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13110 $as_echo_n "(cached) " >&6
13112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h. */
13123 if ac_fn_c_try_link "$LINENO"; then :
13124 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13126 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13128 rm -f core conftest.err conftest.$ac_objext \
13129 conftest$ac_exeext conftest.$ac_ext
13133 CFLAGS="$xorg_testset_save_CFLAGS"
13135 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13137 $as_echo "$supported" >&6; }
13138 if test "$supported" = "yes" ; then
13139 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13156 xorg_testset_save_CFLAGS="$CFLAGS"
13158 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13161 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13162 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13163 $as_echo_n "(cached) " >&6
13165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166 /* end confdefs.h. */
13169 if ac_fn_c_try_compile "$LINENO"; then :
13170 xorg_cv_compiler_flag_unknown_warning_option=yes
13172 xorg_cv_compiler_flag_unknown_warning_option=no
13174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13177 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13178 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13179 CFLAGS="$xorg_testset_save_CFLAGS"
13182 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13183 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13188 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13189 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13190 $as_echo_n "(cached) " >&6
13192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13193 /* end confdefs.h. */
13196 if ac_fn_c_try_compile "$LINENO"; then :
13197 xorg_cv_compiler_flag_unused_command_line_argument=yes
13199 xorg_cv_compiler_flag_unused_command_line_argument=no
13201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13204 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13205 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13206 CFLAGS="$xorg_testset_save_CFLAGS"
13211 if test $found = "no" ; then
13212 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13216 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13220 CFLAGS="$CFLAGS -Wcast-qual"
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13223 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13224 cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual`
13225 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13226 $as_echo_n "(cached) " >&6
13228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13229 /* end confdefs.h. */
13239 if ac_fn_c_try_link "$LINENO"; then :
13240 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13242 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13244 rm -f core conftest.err conftest.$ac_objext \
13245 conftest$ac_exeext conftest.$ac_ext
13249 CFLAGS="$xorg_testset_save_CFLAGS"
13251 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13253 $as_echo "$supported" >&6; }
13254 if test "$supported" = "yes" ; then
13255 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13272 xorg_testset_save_CFLAGS="$CFLAGS"
13274 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13277 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13278 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13279 $as_echo_n "(cached) " >&6
13281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13282 /* end confdefs.h. */
13285 if ac_fn_c_try_compile "$LINENO"; then :
13286 xorg_cv_compiler_flag_unknown_warning_option=yes
13288 xorg_cv_compiler_flag_unknown_warning_option=no
13290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13293 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13294 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13295 CFLAGS="$xorg_testset_save_CFLAGS"
13298 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13299 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13304 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13305 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13306 $as_echo_n "(cached) " >&6
13308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13309 /* end confdefs.h. */
13312 if ac_fn_c_try_compile "$LINENO"; then :
13313 xorg_cv_compiler_flag_unused_command_line_argument=yes
13315 xorg_cv_compiler_flag_unused_command_line_argument=no
13317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13320 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13321 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13322 CFLAGS="$xorg_testset_save_CFLAGS"
13327 if test $found = "no" ; then
13328 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13332 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13336 CFLAGS="$CFLAGS -Wmissing-noreturn"
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13339 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13340 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn`
13341 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13342 $as_echo_n "(cached) " >&6
13344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13345 /* end confdefs.h. */
13355 if ac_fn_c_try_link "$LINENO"; then :
13356 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13358 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13360 rm -f core conftest.err conftest.$ac_objext \
13361 conftest$ac_exeext conftest.$ac_ext
13365 CFLAGS="$xorg_testset_save_CFLAGS"
13367 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13369 $as_echo "$supported" >&6; }
13370 if test "$supported" = "yes" ; then
13371 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13388 xorg_testset_save_CFLAGS="$CFLAGS"
13390 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13393 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13394 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13395 $as_echo_n "(cached) " >&6
13397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13398 /* end confdefs.h. */
13401 if ac_fn_c_try_compile "$LINENO"; then :
13402 xorg_cv_compiler_flag_unknown_warning_option=yes
13404 xorg_cv_compiler_flag_unknown_warning_option=no
13406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13409 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13410 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13411 CFLAGS="$xorg_testset_save_CFLAGS"
13414 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13415 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13420 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13421 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13422 $as_echo_n "(cached) " >&6
13424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13425 /* end confdefs.h. */
13428 if ac_fn_c_try_compile "$LINENO"; then :
13429 xorg_cv_compiler_flag_unused_command_line_argument=yes
13431 xorg_cv_compiler_flag_unused_command_line_argument=no
13433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13436 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13437 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13438 CFLAGS="$xorg_testset_save_CFLAGS"
13443 if test $found = "no" ; then
13444 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13448 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13452 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13455 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13456 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute`
13457 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13458 $as_echo_n "(cached) " >&6
13460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13461 /* end confdefs.h. */
13471 if ac_fn_c_try_link "$LINENO"; then :
13472 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13474 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13476 rm -f core conftest.err conftest.$ac_objext \
13477 conftest$ac_exeext conftest.$ac_ext
13481 CFLAGS="$xorg_testset_save_CFLAGS"
13483 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13485 $as_echo "$supported" >&6; }
13486 if test "$supported" = "yes" ; then
13487 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13504 xorg_testset_save_CFLAGS="$CFLAGS"
13506 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13509 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13510 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13511 $as_echo_n "(cached) " >&6
13513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514 /* end confdefs.h. */
13517 if ac_fn_c_try_compile "$LINENO"; then :
13518 xorg_cv_compiler_flag_unknown_warning_option=yes
13520 xorg_cv_compiler_flag_unknown_warning_option=no
13522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13525 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13526 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13527 CFLAGS="$xorg_testset_save_CFLAGS"
13530 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13531 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13536 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13537 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13538 $as_echo_n "(cached) " >&6
13540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13541 /* end confdefs.h. */
13544 if ac_fn_c_try_compile "$LINENO"; then :
13545 xorg_cv_compiler_flag_unused_command_line_argument=yes
13547 xorg_cv_compiler_flag_unused_command_line_argument=no
13549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13552 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13553 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13554 CFLAGS="$xorg_testset_save_CFLAGS"
13559 if test $found = "no" ; then
13560 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13564 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13568 CFLAGS="$CFLAGS -Wredundant-decls"
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13571 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13572 cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls`
13573 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13574 $as_echo_n "(cached) " >&6
13576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13577 /* end confdefs.h. */
13587 if ac_fn_c_try_link "$LINENO"; then :
13588 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13590 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13592 rm -f core conftest.err conftest.$ac_objext \
13593 conftest$ac_exeext conftest.$ac_ext
13597 CFLAGS="$xorg_testset_save_CFLAGS"
13599 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13601 $as_echo "$supported" >&6; }
13602 if test "$supported" = "yes" ; then
13603 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13610 # These are currently disabled because they are noisy. They will be enabled
13611 # in the future once the codebase is sufficiently modernized to silence
13612 # them. For now, I don't want them to drown out the other warnings.
13613 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13614 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13615 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13617 # Turn some warnings into errors, so we don't accidently get successful builds
13618 # when there are problems that should be fixed.
13620 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13632 xorg_testset_save_CFLAGS="$CFLAGS"
13634 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13637 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13638 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13639 $as_echo_n "(cached) " >&6
13641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13642 /* end confdefs.h. */
13645 if ac_fn_c_try_compile "$LINENO"; then :
13646 xorg_cv_compiler_flag_unknown_warning_option=yes
13648 xorg_cv_compiler_flag_unknown_warning_option=no
13650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13653 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13654 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13655 CFLAGS="$xorg_testset_save_CFLAGS"
13658 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13659 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13664 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13665 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13666 $as_echo_n "(cached) " >&6
13668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13669 /* end confdefs.h. */
13672 if ac_fn_c_try_compile "$LINENO"; then :
13673 xorg_cv_compiler_flag_unused_command_line_argument=yes
13675 xorg_cv_compiler_flag_unused_command_line_argument=no
13677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13680 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13681 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13682 CFLAGS="$xorg_testset_save_CFLAGS"
13687 if test $found = "no" ; then
13688 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13692 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13696 CFLAGS="$CFLAGS -Werror=implicit"
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13699 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13700 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit`
13701 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13702 $as_echo_n "(cached) " >&6
13704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13705 /* end confdefs.h. */
13715 if ac_fn_c_try_link "$LINENO"; then :
13716 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13718 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13720 rm -f core conftest.err conftest.$ac_objext \
13721 conftest$ac_exeext conftest.$ac_ext
13725 CFLAGS="$xorg_testset_save_CFLAGS"
13727 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13729 $as_echo "$supported" >&6; }
13730 if test "$supported" = "yes" ; then
13731 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13736 if test $found = "no" ; then
13737 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13741 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13745 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13748 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13749 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
13750 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13751 $as_echo_n "(cached) " >&6
13753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13754 /* end confdefs.h. */
13764 if ac_fn_c_try_link "$LINENO"; then :
13765 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13767 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13769 rm -f core conftest.err conftest.$ac_objext \
13770 conftest$ac_exeext conftest.$ac_ext
13774 CFLAGS="$xorg_testset_save_CFLAGS"
13776 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13778 $as_echo "$supported" >&6; }
13779 if test "$supported" = "yes" ; then
13780 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13797 xorg_testset_save_CFLAGS="$CFLAGS"
13799 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13800 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13802 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13803 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13804 $as_echo_n "(cached) " >&6
13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807 /* end confdefs.h. */
13810 if ac_fn_c_try_compile "$LINENO"; then :
13811 xorg_cv_compiler_flag_unknown_warning_option=yes
13813 xorg_cv_compiler_flag_unknown_warning_option=no
13815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13818 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13819 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13820 CFLAGS="$xorg_testset_save_CFLAGS"
13823 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13824 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13829 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13830 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13831 $as_echo_n "(cached) " >&6
13833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13834 /* end confdefs.h. */
13837 if ac_fn_c_try_compile "$LINENO"; then :
13838 xorg_cv_compiler_flag_unused_command_line_argument=yes
13840 xorg_cv_compiler_flag_unused_command_line_argument=no
13842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13845 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13846 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13847 CFLAGS="$xorg_testset_save_CFLAGS"
13852 if test $found = "no" ; then
13853 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13857 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13861 CFLAGS="$CFLAGS -Werror=nonnull"
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
13864 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
13865 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull`
13866 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13867 $as_echo_n "(cached) " >&6
13869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870 /* end confdefs.h. */
13880 if ac_fn_c_try_link "$LINENO"; then :
13881 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13883 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13885 rm -f core conftest.err conftest.$ac_objext \
13886 conftest$ac_exeext conftest.$ac_ext
13890 CFLAGS="$xorg_testset_save_CFLAGS"
13892 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13894 $as_echo "$supported" >&6; }
13895 if test "$supported" = "yes" ; then
13896 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
13913 xorg_testset_save_CFLAGS="$CFLAGS"
13915 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13918 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13919 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13920 $as_echo_n "(cached) " >&6
13922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13923 /* end confdefs.h. */
13926 if ac_fn_c_try_compile "$LINENO"; then :
13927 xorg_cv_compiler_flag_unknown_warning_option=yes
13929 xorg_cv_compiler_flag_unknown_warning_option=no
13931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13934 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13935 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13936 CFLAGS="$xorg_testset_save_CFLAGS"
13939 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13940 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13945 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13946 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13947 $as_echo_n "(cached) " >&6
13949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13950 /* end confdefs.h. */
13953 if ac_fn_c_try_compile "$LINENO"; then :
13954 xorg_cv_compiler_flag_unused_command_line_argument=yes
13956 xorg_cv_compiler_flag_unused_command_line_argument=no
13958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13961 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13962 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13963 CFLAGS="$xorg_testset_save_CFLAGS"
13968 if test $found = "no" ; then
13969 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13973 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13977 CFLAGS="$CFLAGS -Werror=init-self"
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
13980 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
13981 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self`
13982 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13983 $as_echo_n "(cached) " >&6
13985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13986 /* end confdefs.h. */
13996 if ac_fn_c_try_link "$LINENO"; then :
13997 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13999 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14001 rm -f core conftest.err conftest.$ac_objext \
14002 conftest$ac_exeext conftest.$ac_ext
14006 CFLAGS="$xorg_testset_save_CFLAGS"
14008 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14010 $as_echo "$supported" >&6; }
14011 if test "$supported" = "yes" ; then
14012 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14029 xorg_testset_save_CFLAGS="$CFLAGS"
14031 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14034 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14035 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14036 $as_echo_n "(cached) " >&6
14038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14039 /* end confdefs.h. */
14042 if ac_fn_c_try_compile "$LINENO"; then :
14043 xorg_cv_compiler_flag_unknown_warning_option=yes
14045 xorg_cv_compiler_flag_unknown_warning_option=no
14047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14050 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14051 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14052 CFLAGS="$xorg_testset_save_CFLAGS"
14055 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14056 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14061 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14062 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14063 $as_echo_n "(cached) " >&6
14065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14066 /* end confdefs.h. */
14069 if ac_fn_c_try_compile "$LINENO"; then :
14070 xorg_cv_compiler_flag_unused_command_line_argument=yes
14072 xorg_cv_compiler_flag_unused_command_line_argument=no
14074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14077 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14078 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14079 CFLAGS="$xorg_testset_save_CFLAGS"
14084 if test $found = "no" ; then
14085 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14089 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14093 CFLAGS="$CFLAGS -Werror=main"
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14096 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14097 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main`
14098 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14099 $as_echo_n "(cached) " >&6
14101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14102 /* end confdefs.h. */
14112 if ac_fn_c_try_link "$LINENO"; then :
14113 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14115 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14117 rm -f core conftest.err conftest.$ac_objext \
14118 conftest$ac_exeext conftest.$ac_ext
14122 CFLAGS="$xorg_testset_save_CFLAGS"
14124 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14126 $as_echo "$supported" >&6; }
14127 if test "$supported" = "yes" ; then
14128 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14145 xorg_testset_save_CFLAGS="$CFLAGS"
14147 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14150 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14151 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14152 $as_echo_n "(cached) " >&6
14154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14155 /* end confdefs.h. */
14158 if ac_fn_c_try_compile "$LINENO"; then :
14159 xorg_cv_compiler_flag_unknown_warning_option=yes
14161 xorg_cv_compiler_flag_unknown_warning_option=no
14163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14166 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14167 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14168 CFLAGS="$xorg_testset_save_CFLAGS"
14171 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14172 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14177 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14178 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14179 $as_echo_n "(cached) " >&6
14181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14182 /* end confdefs.h. */
14185 if ac_fn_c_try_compile "$LINENO"; then :
14186 xorg_cv_compiler_flag_unused_command_line_argument=yes
14188 xorg_cv_compiler_flag_unused_command_line_argument=no
14190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14193 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14194 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14195 CFLAGS="$xorg_testset_save_CFLAGS"
14200 if test $found = "no" ; then
14201 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14205 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14209 CFLAGS="$CFLAGS -Werror=missing-braces"
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14212 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14213 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces`
14214 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14215 $as_echo_n "(cached) " >&6
14217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14218 /* end confdefs.h. */
14228 if ac_fn_c_try_link "$LINENO"; then :
14229 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14231 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14233 rm -f core conftest.err conftest.$ac_objext \
14234 conftest$ac_exeext conftest.$ac_ext
14238 CFLAGS="$xorg_testset_save_CFLAGS"
14240 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14242 $as_echo "$supported" >&6; }
14243 if test "$supported" = "yes" ; then
14244 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14261 xorg_testset_save_CFLAGS="$CFLAGS"
14263 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14266 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14267 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14268 $as_echo_n "(cached) " >&6
14270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14271 /* end confdefs.h. */
14274 if ac_fn_c_try_compile "$LINENO"; then :
14275 xorg_cv_compiler_flag_unknown_warning_option=yes
14277 xorg_cv_compiler_flag_unknown_warning_option=no
14279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14282 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14283 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14284 CFLAGS="$xorg_testset_save_CFLAGS"
14287 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14288 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14293 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14294 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14295 $as_echo_n "(cached) " >&6
14297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14298 /* end confdefs.h. */
14301 if ac_fn_c_try_compile "$LINENO"; then :
14302 xorg_cv_compiler_flag_unused_command_line_argument=yes
14304 xorg_cv_compiler_flag_unused_command_line_argument=no
14306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14309 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14310 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14311 CFLAGS="$xorg_testset_save_CFLAGS"
14316 if test $found = "no" ; then
14317 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14321 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14325 CFLAGS="$CFLAGS -Werror=sequence-point"
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14328 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14329 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point`
14330 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14331 $as_echo_n "(cached) " >&6
14333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14334 /* end confdefs.h. */
14344 if ac_fn_c_try_link "$LINENO"; then :
14345 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14347 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14349 rm -f core conftest.err conftest.$ac_objext \
14350 conftest$ac_exeext conftest.$ac_ext
14354 CFLAGS="$xorg_testset_save_CFLAGS"
14356 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14358 $as_echo "$supported" >&6; }
14359 if test "$supported" = "yes" ; then
14360 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14377 xorg_testset_save_CFLAGS="$CFLAGS"
14379 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14382 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14383 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14384 $as_echo_n "(cached) " >&6
14386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14387 /* end confdefs.h. */
14390 if ac_fn_c_try_compile "$LINENO"; then :
14391 xorg_cv_compiler_flag_unknown_warning_option=yes
14393 xorg_cv_compiler_flag_unknown_warning_option=no
14395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14398 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14399 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14400 CFLAGS="$xorg_testset_save_CFLAGS"
14403 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14404 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14409 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14410 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14411 $as_echo_n "(cached) " >&6
14413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14414 /* end confdefs.h. */
14417 if ac_fn_c_try_compile "$LINENO"; then :
14418 xorg_cv_compiler_flag_unused_command_line_argument=yes
14420 xorg_cv_compiler_flag_unused_command_line_argument=no
14422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14425 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14426 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14427 CFLAGS="$xorg_testset_save_CFLAGS"
14432 if test $found = "no" ; then
14433 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14437 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14441 CFLAGS="$CFLAGS -Werror=return-type"
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14444 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14445 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type`
14446 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14447 $as_echo_n "(cached) " >&6
14449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14450 /* end confdefs.h. */
14460 if ac_fn_c_try_link "$LINENO"; then :
14461 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14463 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14465 rm -f core conftest.err conftest.$ac_objext \
14466 conftest$ac_exeext conftest.$ac_ext
14470 CFLAGS="$xorg_testset_save_CFLAGS"
14472 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14474 $as_echo "$supported" >&6; }
14475 if test "$supported" = "yes" ; then
14476 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14481 if test $found = "no" ; then
14482 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14486 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14490 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14493 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14494 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
14495 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14496 $as_echo_n "(cached) " >&6
14498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14499 /* end confdefs.h. */
14509 if ac_fn_c_try_link "$LINENO"; then :
14510 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14512 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14514 rm -f core conftest.err conftest.$ac_objext \
14515 conftest$ac_exeext conftest.$ac_ext
14519 CFLAGS="$xorg_testset_save_CFLAGS"
14521 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14523 $as_echo "$supported" >&6; }
14524 if test "$supported" = "yes" ; then
14525 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14542 xorg_testset_save_CFLAGS="$CFLAGS"
14544 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14547 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14548 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14549 $as_echo_n "(cached) " >&6
14551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h. */
14555 if ac_fn_c_try_compile "$LINENO"; then :
14556 xorg_cv_compiler_flag_unknown_warning_option=yes
14558 xorg_cv_compiler_flag_unknown_warning_option=no
14560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14563 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14564 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14565 CFLAGS="$xorg_testset_save_CFLAGS"
14568 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14569 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14574 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14575 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14576 $as_echo_n "(cached) " >&6
14578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14579 /* end confdefs.h. */
14582 if ac_fn_c_try_compile "$LINENO"; then :
14583 xorg_cv_compiler_flag_unused_command_line_argument=yes
14585 xorg_cv_compiler_flag_unused_command_line_argument=no
14587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14590 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14591 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14592 CFLAGS="$xorg_testset_save_CFLAGS"
14597 if test $found = "no" ; then
14598 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14602 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14606 CFLAGS="$CFLAGS -Werror=trigraphs"
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14609 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14610 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs`
14611 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14612 $as_echo_n "(cached) " >&6
14614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14615 /* end confdefs.h. */
14625 if ac_fn_c_try_link "$LINENO"; then :
14626 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14628 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14630 rm -f core conftest.err conftest.$ac_objext \
14631 conftest$ac_exeext conftest.$ac_ext
14635 CFLAGS="$xorg_testset_save_CFLAGS"
14637 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14639 $as_echo "$supported" >&6; }
14640 if test "$supported" = "yes" ; then
14641 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14658 xorg_testset_save_CFLAGS="$CFLAGS"
14660 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14663 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14664 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14665 $as_echo_n "(cached) " >&6
14667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14668 /* end confdefs.h. */
14671 if ac_fn_c_try_compile "$LINENO"; then :
14672 xorg_cv_compiler_flag_unknown_warning_option=yes
14674 xorg_cv_compiler_flag_unknown_warning_option=no
14676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14679 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14680 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14681 CFLAGS="$xorg_testset_save_CFLAGS"
14684 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14685 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14690 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14691 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14692 $as_echo_n "(cached) " >&6
14694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14695 /* end confdefs.h. */
14698 if ac_fn_c_try_compile "$LINENO"; then :
14699 xorg_cv_compiler_flag_unused_command_line_argument=yes
14701 xorg_cv_compiler_flag_unused_command_line_argument=no
14703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14706 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14707 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14708 CFLAGS="$xorg_testset_save_CFLAGS"
14713 if test $found = "no" ; then
14714 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14718 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14722 CFLAGS="$CFLAGS -Werror=array-bounds"
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14725 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14726 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds`
14727 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14728 $as_echo_n "(cached) " >&6
14730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14731 /* end confdefs.h. */
14741 if ac_fn_c_try_link "$LINENO"; then :
14742 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14744 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14746 rm -f core conftest.err conftest.$ac_objext \
14747 conftest$ac_exeext conftest.$ac_ext
14751 CFLAGS="$xorg_testset_save_CFLAGS"
14753 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14755 $as_echo "$supported" >&6; }
14756 if test "$supported" = "yes" ; then
14757 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14774 xorg_testset_save_CFLAGS="$CFLAGS"
14776 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14779 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14780 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14781 $as_echo_n "(cached) " >&6
14783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14784 /* end confdefs.h. */
14787 if ac_fn_c_try_compile "$LINENO"; then :
14788 xorg_cv_compiler_flag_unknown_warning_option=yes
14790 xorg_cv_compiler_flag_unknown_warning_option=no
14792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14795 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14796 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14797 CFLAGS="$xorg_testset_save_CFLAGS"
14800 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14801 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14806 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14807 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14808 $as_echo_n "(cached) " >&6
14810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14811 /* end confdefs.h. */
14814 if ac_fn_c_try_compile "$LINENO"; then :
14815 xorg_cv_compiler_flag_unused_command_line_argument=yes
14817 xorg_cv_compiler_flag_unused_command_line_argument=no
14819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14822 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14823 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14824 CFLAGS="$xorg_testset_save_CFLAGS"
14829 if test $found = "no" ; then
14830 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14831 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14834 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14838 CFLAGS="$CFLAGS -Werror=write-strings"
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
14841 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
14842 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings`
14843 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14844 $as_echo_n "(cached) " >&6
14846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14847 /* end confdefs.h. */
14857 if ac_fn_c_try_link "$LINENO"; then :
14858 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14860 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14862 rm -f core conftest.err conftest.$ac_objext \
14863 conftest$ac_exeext conftest.$ac_ext
14867 CFLAGS="$xorg_testset_save_CFLAGS"
14869 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14871 $as_echo "$supported" >&6; }
14872 if test "$supported" = "yes" ; then
14873 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
14890 xorg_testset_save_CFLAGS="$CFLAGS"
14892 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14895 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14896 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14897 $as_echo_n "(cached) " >&6
14899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14900 /* end confdefs.h. */
14903 if ac_fn_c_try_compile "$LINENO"; then :
14904 xorg_cv_compiler_flag_unknown_warning_option=yes
14906 xorg_cv_compiler_flag_unknown_warning_option=no
14908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14911 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14912 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14913 CFLAGS="$xorg_testset_save_CFLAGS"
14916 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14917 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14922 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14923 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14924 $as_echo_n "(cached) " >&6
14926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14927 /* end confdefs.h. */
14930 if ac_fn_c_try_compile "$LINENO"; then :
14931 xorg_cv_compiler_flag_unused_command_line_argument=yes
14933 xorg_cv_compiler_flag_unused_command_line_argument=no
14935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14938 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14939 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14940 CFLAGS="$xorg_testset_save_CFLAGS"
14945 if test $found = "no" ; then
14946 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14950 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14954 CFLAGS="$CFLAGS -Werror=address"
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
14957 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
14958 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address`
14959 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14960 $as_echo_n "(cached) " >&6
14962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14963 /* end confdefs.h. */
14973 if ac_fn_c_try_link "$LINENO"; then :
14974 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14976 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14978 rm -f core conftest.err conftest.$ac_objext \
14979 conftest$ac_exeext conftest.$ac_ext
14983 CFLAGS="$xorg_testset_save_CFLAGS"
14985 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14987 $as_echo "$supported" >&6; }
14988 if test "$supported" = "yes" ; then
14989 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15006 xorg_testset_save_CFLAGS="$CFLAGS"
15008 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15011 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15012 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15013 $as_echo_n "(cached) " >&6
15015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15016 /* end confdefs.h. */
15019 if ac_fn_c_try_compile "$LINENO"; then :
15020 xorg_cv_compiler_flag_unknown_warning_option=yes
15022 xorg_cv_compiler_flag_unknown_warning_option=no
15024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15027 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15028 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15029 CFLAGS="$xorg_testset_save_CFLAGS"
15032 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15033 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15038 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15039 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15040 $as_echo_n "(cached) " >&6
15042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043 /* end confdefs.h. */
15046 if ac_fn_c_try_compile "$LINENO"; then :
15047 xorg_cv_compiler_flag_unused_command_line_argument=yes
15049 xorg_cv_compiler_flag_unused_command_line_argument=no
15051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15054 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15055 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15056 CFLAGS="$xorg_testset_save_CFLAGS"
15061 if test $found = "no" ; then
15062 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15066 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15070 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15073 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15074 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
15075 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15076 $as_echo_n "(cached) " >&6
15078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15079 /* end confdefs.h. */
15089 if ac_fn_c_try_link "$LINENO"; then :
15090 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15092 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15094 rm -f core conftest.err conftest.$ac_objext \
15095 conftest$ac_exeext conftest.$ac_ext
15099 CFLAGS="$xorg_testset_save_CFLAGS"
15101 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15103 $as_echo "$supported" >&6; }
15104 if test "$supported" = "yes" ; then
15105 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15110 if test $found = "no" ; then
15111 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15115 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15119 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15122 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15123 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
15124 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15125 $as_echo_n "(cached) " >&6
15127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15128 /* end confdefs.h. */
15138 if ac_fn_c_try_link "$LINENO"; then :
15139 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15141 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15143 rm -f core conftest.err conftest.$ac_objext \
15144 conftest$ac_exeext conftest.$ac_ext
15148 CFLAGS="$xorg_testset_save_CFLAGS"
15150 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15152 $as_echo "$supported" >&6; }
15153 if test "$supported" = "yes" ; then
15154 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15171 xorg_testset_save_CFLAGS="$CFLAGS"
15173 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15176 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15177 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15178 $as_echo_n "(cached) " >&6
15180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15181 /* end confdefs.h. */
15184 if ac_fn_c_try_compile "$LINENO"; then :
15185 xorg_cv_compiler_flag_unknown_warning_option=yes
15187 xorg_cv_compiler_flag_unknown_warning_option=no
15189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15192 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15193 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15194 CFLAGS="$xorg_testset_save_CFLAGS"
15197 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15198 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15203 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15204 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15205 $as_echo_n "(cached) " >&6
15207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15208 /* end confdefs.h. */
15211 if ac_fn_c_try_compile "$LINENO"; then :
15212 xorg_cv_compiler_flag_unused_command_line_argument=yes
15214 xorg_cv_compiler_flag_unused_command_line_argument=no
15216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15219 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15220 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15221 CFLAGS="$xorg_testset_save_CFLAGS"
15226 if test $found = "no" ; then
15227 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15231 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15235 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15238 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15239 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
15240 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15241 $as_echo_n "(cached) " >&6
15243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15244 /* end confdefs.h. */
15254 if ac_fn_c_try_link "$LINENO"; then :
15255 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15257 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15259 rm -f core conftest.err conftest.$ac_objext \
15260 conftest$ac_exeext conftest.$ac_ext
15264 CFLAGS="$xorg_testset_save_CFLAGS"
15266 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15268 $as_echo "$supported" >&6; }
15269 if test "$supported" = "yes" ; then
15270 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15275 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15277 { $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
15278 $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;}
15290 xorg_testset_save_CFLAGS="$CFLAGS"
15292 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15295 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15296 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15297 $as_echo_n "(cached) " >&6
15299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15300 /* end confdefs.h. */
15303 if ac_fn_c_try_compile "$LINENO"; then :
15304 xorg_cv_compiler_flag_unknown_warning_option=yes
15306 xorg_cv_compiler_flag_unknown_warning_option=no
15308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15311 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15312 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15313 CFLAGS="$xorg_testset_save_CFLAGS"
15316 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15317 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15322 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15323 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15324 $as_echo_n "(cached) " >&6
15326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15327 /* end confdefs.h. */
15330 if ac_fn_c_try_compile "$LINENO"; then :
15331 xorg_cv_compiler_flag_unused_command_line_argument=yes
15333 xorg_cv_compiler_flag_unused_command_line_argument=no
15335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15338 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15339 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15340 CFLAGS="$xorg_testset_save_CFLAGS"
15345 if test $found = "no" ; then
15346 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15350 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15354 CFLAGS="$CFLAGS -Wimplicit"
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15357 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15358 cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit`
15359 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15360 $as_echo_n "(cached) " >&6
15362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15363 /* end confdefs.h. */
15373 if ac_fn_c_try_link "$LINENO"; then :
15374 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15376 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15378 rm -f core conftest.err conftest.$ac_objext \
15379 conftest$ac_exeext conftest.$ac_ext
15383 CFLAGS="$xorg_testset_save_CFLAGS"
15385 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15387 $as_echo "$supported" >&6; }
15388 if test "$supported" = "yes" ; then
15389 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15406 xorg_testset_save_CFLAGS="$CFLAGS"
15408 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15411 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15412 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15413 $as_echo_n "(cached) " >&6
15415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15416 /* end confdefs.h. */
15419 if ac_fn_c_try_compile "$LINENO"; then :
15420 xorg_cv_compiler_flag_unknown_warning_option=yes
15422 xorg_cv_compiler_flag_unknown_warning_option=no
15424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15427 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15428 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15429 CFLAGS="$xorg_testset_save_CFLAGS"
15432 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15433 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15438 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15439 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15440 $as_echo_n "(cached) " >&6
15442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15443 /* end confdefs.h. */
15446 if ac_fn_c_try_compile "$LINENO"; then :
15447 xorg_cv_compiler_flag_unused_command_line_argument=yes
15449 xorg_cv_compiler_flag_unused_command_line_argument=no
15451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15454 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15455 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15456 CFLAGS="$xorg_testset_save_CFLAGS"
15461 if test $found = "no" ; then
15462 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15466 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15470 CFLAGS="$CFLAGS -Wnonnull"
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15473 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15474 cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull`
15475 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15476 $as_echo_n "(cached) " >&6
15478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15479 /* end confdefs.h. */
15489 if ac_fn_c_try_link "$LINENO"; then :
15490 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15492 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15494 rm -f core conftest.err conftest.$ac_objext \
15495 conftest$ac_exeext conftest.$ac_ext
15499 CFLAGS="$xorg_testset_save_CFLAGS"
15501 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15503 $as_echo "$supported" >&6; }
15504 if test "$supported" = "yes" ; then
15505 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15522 xorg_testset_save_CFLAGS="$CFLAGS"
15524 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15527 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15528 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15529 $as_echo_n "(cached) " >&6
15531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15532 /* end confdefs.h. */
15535 if ac_fn_c_try_compile "$LINENO"; then :
15536 xorg_cv_compiler_flag_unknown_warning_option=yes
15538 xorg_cv_compiler_flag_unknown_warning_option=no
15540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15543 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15544 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15545 CFLAGS="$xorg_testset_save_CFLAGS"
15548 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15549 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15554 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15555 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15556 $as_echo_n "(cached) " >&6
15558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15559 /* end confdefs.h. */
15562 if ac_fn_c_try_compile "$LINENO"; then :
15563 xorg_cv_compiler_flag_unused_command_line_argument=yes
15565 xorg_cv_compiler_flag_unused_command_line_argument=no
15567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15570 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15571 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15572 CFLAGS="$xorg_testset_save_CFLAGS"
15577 if test $found = "no" ; then
15578 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15582 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15586 CFLAGS="$CFLAGS -Winit-self"
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15589 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15590 cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self`
15591 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15592 $as_echo_n "(cached) " >&6
15594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15595 /* end confdefs.h. */
15605 if ac_fn_c_try_link "$LINENO"; then :
15606 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15608 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15610 rm -f core conftest.err conftest.$ac_objext \
15611 conftest$ac_exeext conftest.$ac_ext
15615 CFLAGS="$xorg_testset_save_CFLAGS"
15617 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15619 $as_echo "$supported" >&6; }
15620 if test "$supported" = "yes" ; then
15621 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15638 xorg_testset_save_CFLAGS="$CFLAGS"
15640 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15643 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15644 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15645 $as_echo_n "(cached) " >&6
15647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15648 /* end confdefs.h. */
15651 if ac_fn_c_try_compile "$LINENO"; then :
15652 xorg_cv_compiler_flag_unknown_warning_option=yes
15654 xorg_cv_compiler_flag_unknown_warning_option=no
15656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15659 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15660 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15661 CFLAGS="$xorg_testset_save_CFLAGS"
15664 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15665 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15670 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15671 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15672 $as_echo_n "(cached) " >&6
15674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15675 /* end confdefs.h. */
15678 if ac_fn_c_try_compile "$LINENO"; then :
15679 xorg_cv_compiler_flag_unused_command_line_argument=yes
15681 xorg_cv_compiler_flag_unused_command_line_argument=no
15683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15686 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15687 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15688 CFLAGS="$xorg_testset_save_CFLAGS"
15693 if test $found = "no" ; then
15694 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15698 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15702 CFLAGS="$CFLAGS -Wmain"
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15705 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
15706 cacheid=`$as_echo xorg_cv_cc_flag_-Wmain`
15707 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15708 $as_echo_n "(cached) " >&6
15710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15711 /* end confdefs.h. */
15721 if ac_fn_c_try_link "$LINENO"; then :
15722 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15724 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15726 rm -f core conftest.err conftest.$ac_objext \
15727 conftest$ac_exeext conftest.$ac_ext
15731 CFLAGS="$xorg_testset_save_CFLAGS"
15733 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15735 $as_echo "$supported" >&6; }
15736 if test "$supported" = "yes" ; then
15737 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15754 xorg_testset_save_CFLAGS="$CFLAGS"
15756 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15759 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15760 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15761 $as_echo_n "(cached) " >&6
15763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15764 /* end confdefs.h. */
15767 if ac_fn_c_try_compile "$LINENO"; then :
15768 xorg_cv_compiler_flag_unknown_warning_option=yes
15770 xorg_cv_compiler_flag_unknown_warning_option=no
15772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15775 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15776 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15777 CFLAGS="$xorg_testset_save_CFLAGS"
15780 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15781 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15786 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15787 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15788 $as_echo_n "(cached) " >&6
15790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15791 /* end confdefs.h. */
15794 if ac_fn_c_try_compile "$LINENO"; then :
15795 xorg_cv_compiler_flag_unused_command_line_argument=yes
15797 xorg_cv_compiler_flag_unused_command_line_argument=no
15799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15802 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15803 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15804 CFLAGS="$xorg_testset_save_CFLAGS"
15809 if test $found = "no" ; then
15810 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15814 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15818 CFLAGS="$CFLAGS -Wmissing-braces"
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
15821 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
15822 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces`
15823 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15824 $as_echo_n "(cached) " >&6
15826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15827 /* end confdefs.h. */
15837 if ac_fn_c_try_link "$LINENO"; then :
15838 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15840 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15842 rm -f core conftest.err conftest.$ac_objext \
15843 conftest$ac_exeext conftest.$ac_ext
15847 CFLAGS="$xorg_testset_save_CFLAGS"
15849 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15851 $as_echo "$supported" >&6; }
15852 if test "$supported" = "yes" ; then
15853 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
15870 xorg_testset_save_CFLAGS="$CFLAGS"
15872 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15875 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15876 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15877 $as_echo_n "(cached) " >&6
15879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15880 /* end confdefs.h. */
15883 if ac_fn_c_try_compile "$LINENO"; then :
15884 xorg_cv_compiler_flag_unknown_warning_option=yes
15886 xorg_cv_compiler_flag_unknown_warning_option=no
15888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15891 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15892 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15893 CFLAGS="$xorg_testset_save_CFLAGS"
15896 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15897 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15902 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15903 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15904 $as_echo_n "(cached) " >&6
15906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15907 /* end confdefs.h. */
15910 if ac_fn_c_try_compile "$LINENO"; then :
15911 xorg_cv_compiler_flag_unused_command_line_argument=yes
15913 xorg_cv_compiler_flag_unused_command_line_argument=no
15915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15918 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15919 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15920 CFLAGS="$xorg_testset_save_CFLAGS"
15925 if test $found = "no" ; then
15926 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15930 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15934 CFLAGS="$CFLAGS -Wsequence-point"
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
15937 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
15938 cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point`
15939 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15940 $as_echo_n "(cached) " >&6
15942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15943 /* end confdefs.h. */
15953 if ac_fn_c_try_link "$LINENO"; then :
15954 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15956 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15958 rm -f core conftest.err conftest.$ac_objext \
15959 conftest$ac_exeext conftest.$ac_ext
15963 CFLAGS="$xorg_testset_save_CFLAGS"
15965 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15967 $as_echo "$supported" >&6; }
15968 if test "$supported" = "yes" ; then
15969 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
15986 xorg_testset_save_CFLAGS="$CFLAGS"
15988 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15991 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15992 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15993 $as_echo_n "(cached) " >&6
15995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15996 /* end confdefs.h. */
15999 if ac_fn_c_try_compile "$LINENO"; then :
16000 xorg_cv_compiler_flag_unknown_warning_option=yes
16002 xorg_cv_compiler_flag_unknown_warning_option=no
16004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16007 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16008 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16009 CFLAGS="$xorg_testset_save_CFLAGS"
16012 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16013 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16018 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16019 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16020 $as_echo_n "(cached) " >&6
16022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16023 /* end confdefs.h. */
16026 if ac_fn_c_try_compile "$LINENO"; then :
16027 xorg_cv_compiler_flag_unused_command_line_argument=yes
16029 xorg_cv_compiler_flag_unused_command_line_argument=no
16031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16034 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16035 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16036 CFLAGS="$xorg_testset_save_CFLAGS"
16041 if test $found = "no" ; then
16042 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16046 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16050 CFLAGS="$CFLAGS -Wreturn-type"
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16053 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16054 cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type`
16055 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16056 $as_echo_n "(cached) " >&6
16058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16059 /* end confdefs.h. */
16069 if ac_fn_c_try_link "$LINENO"; then :
16070 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16072 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16074 rm -f core conftest.err conftest.$ac_objext \
16075 conftest$ac_exeext conftest.$ac_ext
16079 CFLAGS="$xorg_testset_save_CFLAGS"
16081 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16083 $as_echo "$supported" >&6; }
16084 if test "$supported" = "yes" ; then
16085 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16102 xorg_testset_save_CFLAGS="$CFLAGS"
16104 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16107 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16108 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16109 $as_echo_n "(cached) " >&6
16111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16112 /* end confdefs.h. */
16115 if ac_fn_c_try_compile "$LINENO"; then :
16116 xorg_cv_compiler_flag_unknown_warning_option=yes
16118 xorg_cv_compiler_flag_unknown_warning_option=no
16120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16123 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16124 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16125 CFLAGS="$xorg_testset_save_CFLAGS"
16128 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16129 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16134 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16135 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16136 $as_echo_n "(cached) " >&6
16138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16139 /* end confdefs.h. */
16142 if ac_fn_c_try_compile "$LINENO"; then :
16143 xorg_cv_compiler_flag_unused_command_line_argument=yes
16145 xorg_cv_compiler_flag_unused_command_line_argument=no
16147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16150 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16151 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16152 CFLAGS="$xorg_testset_save_CFLAGS"
16157 if test $found = "no" ; then
16158 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16162 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16166 CFLAGS="$CFLAGS -Wtrigraphs"
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16169 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16170 cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs`
16171 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16172 $as_echo_n "(cached) " >&6
16174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16175 /* end confdefs.h. */
16185 if ac_fn_c_try_link "$LINENO"; then :
16186 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16188 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16190 rm -f core conftest.err conftest.$ac_objext \
16191 conftest$ac_exeext conftest.$ac_ext
16195 CFLAGS="$xorg_testset_save_CFLAGS"
16197 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16199 $as_echo "$supported" >&6; }
16200 if test "$supported" = "yes" ; then
16201 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16218 xorg_testset_save_CFLAGS="$CFLAGS"
16220 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16223 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16224 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16225 $as_echo_n "(cached) " >&6
16227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16228 /* end confdefs.h. */
16231 if ac_fn_c_try_compile "$LINENO"; then :
16232 xorg_cv_compiler_flag_unknown_warning_option=yes
16234 xorg_cv_compiler_flag_unknown_warning_option=no
16236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16239 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16240 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16241 CFLAGS="$xorg_testset_save_CFLAGS"
16244 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16245 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16250 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16251 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16252 $as_echo_n "(cached) " >&6
16254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16255 /* end confdefs.h. */
16258 if ac_fn_c_try_compile "$LINENO"; then :
16259 xorg_cv_compiler_flag_unused_command_line_argument=yes
16261 xorg_cv_compiler_flag_unused_command_line_argument=no
16263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16266 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16267 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16268 CFLAGS="$xorg_testset_save_CFLAGS"
16273 if test $found = "no" ; then
16274 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16278 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16282 CFLAGS="$CFLAGS -Warray-bounds"
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16285 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16286 cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds`
16287 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16288 $as_echo_n "(cached) " >&6
16290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291 /* end confdefs.h. */
16301 if ac_fn_c_try_link "$LINENO"; then :
16302 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16304 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16306 rm -f core conftest.err conftest.$ac_objext \
16307 conftest$ac_exeext conftest.$ac_ext
16311 CFLAGS="$xorg_testset_save_CFLAGS"
16313 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16315 $as_echo "$supported" >&6; }
16316 if test "$supported" = "yes" ; then
16317 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16334 xorg_testset_save_CFLAGS="$CFLAGS"
16336 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16339 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16340 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16341 $as_echo_n "(cached) " >&6
16343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16344 /* end confdefs.h. */
16347 if ac_fn_c_try_compile "$LINENO"; then :
16348 xorg_cv_compiler_flag_unknown_warning_option=yes
16350 xorg_cv_compiler_flag_unknown_warning_option=no
16352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16355 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16356 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16357 CFLAGS="$xorg_testset_save_CFLAGS"
16360 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16361 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16366 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16367 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16368 $as_echo_n "(cached) " >&6
16370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16371 /* end confdefs.h. */
16374 if ac_fn_c_try_compile "$LINENO"; then :
16375 xorg_cv_compiler_flag_unused_command_line_argument=yes
16377 xorg_cv_compiler_flag_unused_command_line_argument=no
16379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16382 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16383 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16384 CFLAGS="$xorg_testset_save_CFLAGS"
16389 if test $found = "no" ; then
16390 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16394 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16398 CFLAGS="$CFLAGS -Wwrite-strings"
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16401 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16402 cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings`
16403 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16404 $as_echo_n "(cached) " >&6
16406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16407 /* end confdefs.h. */
16417 if ac_fn_c_try_link "$LINENO"; then :
16418 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16420 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16422 rm -f core conftest.err conftest.$ac_objext \
16423 conftest$ac_exeext conftest.$ac_ext
16427 CFLAGS="$xorg_testset_save_CFLAGS"
16429 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16431 $as_echo "$supported" >&6; }
16432 if test "$supported" = "yes" ; then
16433 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16450 xorg_testset_save_CFLAGS="$CFLAGS"
16452 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16455 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16456 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16457 $as_echo_n "(cached) " >&6
16459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16460 /* end confdefs.h. */
16463 if ac_fn_c_try_compile "$LINENO"; then :
16464 xorg_cv_compiler_flag_unknown_warning_option=yes
16466 xorg_cv_compiler_flag_unknown_warning_option=no
16468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16471 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16472 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16473 CFLAGS="$xorg_testset_save_CFLAGS"
16476 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16477 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16482 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16483 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16484 $as_echo_n "(cached) " >&6
16486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16487 /* end confdefs.h. */
16490 if ac_fn_c_try_compile "$LINENO"; then :
16491 xorg_cv_compiler_flag_unused_command_line_argument=yes
16493 xorg_cv_compiler_flag_unused_command_line_argument=no
16495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16498 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16499 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16500 CFLAGS="$xorg_testset_save_CFLAGS"
16505 if test $found = "no" ; then
16506 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16510 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16514 CFLAGS="$CFLAGS -Waddress"
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16517 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
16518 cacheid=`$as_echo xorg_cv_cc_flag_-Waddress`
16519 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16520 $as_echo_n "(cached) " >&6
16522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16523 /* end confdefs.h. */
16533 if ac_fn_c_try_link "$LINENO"; then :
16534 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16536 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16538 rm -f core conftest.err conftest.$ac_objext \
16539 conftest$ac_exeext conftest.$ac_ext
16543 CFLAGS="$xorg_testset_save_CFLAGS"
16545 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16547 $as_echo "$supported" >&6; }
16548 if test "$supported" = "yes" ; then
16549 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16566 xorg_testset_save_CFLAGS="$CFLAGS"
16568 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16571 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16572 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16573 $as_echo_n "(cached) " >&6
16575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16576 /* end confdefs.h. */
16579 if ac_fn_c_try_compile "$LINENO"; then :
16580 xorg_cv_compiler_flag_unknown_warning_option=yes
16582 xorg_cv_compiler_flag_unknown_warning_option=no
16584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16587 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16588 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16589 CFLAGS="$xorg_testset_save_CFLAGS"
16592 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16593 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16598 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16599 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16600 $as_echo_n "(cached) " >&6
16602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603 /* end confdefs.h. */
16606 if ac_fn_c_try_compile "$LINENO"; then :
16607 xorg_cv_compiler_flag_unused_command_line_argument=yes
16609 xorg_cv_compiler_flag_unused_command_line_argument=no
16611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16614 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16615 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16616 CFLAGS="$xorg_testset_save_CFLAGS"
16621 if test $found = "no" ; then
16622 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16626 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16630 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16633 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16634 cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast`
16635 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16636 $as_echo_n "(cached) " >&6
16638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639 /* end confdefs.h. */
16649 if ac_fn_c_try_link "$LINENO"; then :
16650 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16652 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16654 rm -f core conftest.err conftest.$ac_objext \
16655 conftest$ac_exeext conftest.$ac_ext
16659 CFLAGS="$xorg_testset_save_CFLAGS"
16661 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16663 $as_echo "$supported" >&6; }
16664 if test "$supported" = "yes" ; then
16665 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16682 xorg_testset_save_CFLAGS="$CFLAGS"
16684 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16687 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16688 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16689 $as_echo_n "(cached) " >&6
16691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16692 /* end confdefs.h. */
16695 if ac_fn_c_try_compile "$LINENO"; then :
16696 xorg_cv_compiler_flag_unknown_warning_option=yes
16698 xorg_cv_compiler_flag_unknown_warning_option=no
16700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16703 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16704 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16705 CFLAGS="$xorg_testset_save_CFLAGS"
16708 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16709 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16714 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16715 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16716 $as_echo_n "(cached) " >&6
16718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16719 /* end confdefs.h. */
16722 if ac_fn_c_try_compile "$LINENO"; then :
16723 xorg_cv_compiler_flag_unused_command_line_argument=yes
16725 xorg_cv_compiler_flag_unused_command_line_argument=no
16727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16730 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16731 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16732 CFLAGS="$xorg_testset_save_CFLAGS"
16737 if test $found = "no" ; then
16738 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16742 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16746 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
16749 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
16750 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast`
16751 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16752 $as_echo_n "(cached) " >&6
16754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16755 /* end confdefs.h. */
16765 if ac_fn_c_try_link "$LINENO"; then :
16766 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16768 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16770 rm -f core conftest.err conftest.$ac_objext \
16771 conftest$ac_exeext conftest.$ac_ext
16775 CFLAGS="$xorg_testset_save_CFLAGS"
16777 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16779 $as_echo "$supported" >&6; }
16780 if test "$supported" = "yes" ; then
16781 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
16795 CWARNFLAGS="$BASE_CFLAGS"
16796 if test "x$GCC" = xyes ; then
16797 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
16807 # Check whether --enable-strict-compilation was given.
16808 if test "${enable_strict_compilation+set}" = set; then :
16809 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
16831 xorg_testset_save_CFLAGS="$CFLAGS"
16833 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16836 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16837 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16838 $as_echo_n "(cached) " >&6
16840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16841 /* end confdefs.h. */
16844 if ac_fn_c_try_compile "$LINENO"; then :
16845 xorg_cv_compiler_flag_unknown_warning_option=yes
16847 xorg_cv_compiler_flag_unknown_warning_option=no
16849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16852 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16853 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16854 CFLAGS="$xorg_testset_save_CFLAGS"
16857 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16858 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16863 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16864 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16865 $as_echo_n "(cached) " >&6
16867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16868 /* end confdefs.h. */
16871 if ac_fn_c_try_compile "$LINENO"; then :
16872 xorg_cv_compiler_flag_unused_command_line_argument=yes
16874 xorg_cv_compiler_flag_unused_command_line_argument=no
16876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16879 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16880 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16881 CFLAGS="$xorg_testset_save_CFLAGS"
16886 if test $found = "no" ; then
16887 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16891 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16895 CFLAGS="$CFLAGS -pedantic"
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
16898 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
16899 cacheid=`$as_echo xorg_cv_cc_flag_-pedantic`
16900 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16901 $as_echo_n "(cached) " >&6
16903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16904 /* end confdefs.h. */
16914 if ac_fn_c_try_link "$LINENO"; then :
16915 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16917 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16919 rm -f core conftest.err conftest.$ac_objext \
16920 conftest$ac_exeext conftest.$ac_ext
16924 CFLAGS="$xorg_testset_save_CFLAGS"
16926 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16928 $as_echo "$supported" >&6; }
16929 if test "$supported" = "yes" ; then
16930 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
16947 xorg_testset_save_CFLAGS="$CFLAGS"
16949 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16952 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16953 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16954 $as_echo_n "(cached) " >&6
16956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16957 /* end confdefs.h. */
16960 if ac_fn_c_try_compile "$LINENO"; then :
16961 xorg_cv_compiler_flag_unknown_warning_option=yes
16963 xorg_cv_compiler_flag_unknown_warning_option=no
16965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16968 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16969 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16970 CFLAGS="$xorg_testset_save_CFLAGS"
16973 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16974 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16979 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16980 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16981 $as_echo_n "(cached) " >&6
16983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16984 /* end confdefs.h. */
16987 if ac_fn_c_try_compile "$LINENO"; then :
16988 xorg_cv_compiler_flag_unused_command_line_argument=yes
16990 xorg_cv_compiler_flag_unused_command_line_argument=no
16992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16995 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16996 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16997 CFLAGS="$xorg_testset_save_CFLAGS"
17002 if test $found = "no" ; then
17003 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17007 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17011 CFLAGS="$CFLAGS -Werror"
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17014 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17015 cacheid=`$as_echo xorg_cv_cc_flag_-Werror`
17016 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17017 $as_echo_n "(cached) " >&6
17019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17020 /* end confdefs.h. */
17030 if ac_fn_c_try_link "$LINENO"; then :
17031 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17033 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17035 rm -f core conftest.err conftest.$ac_objext \
17036 conftest$ac_exeext conftest.$ac_ext
17040 CFLAGS="$xorg_testset_save_CFLAGS"
17042 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17044 $as_echo "$supported" >&6; }
17045 if test "$supported" = "yes" ; then
17046 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17051 if test $found = "no" ; then
17052 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17056 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17060 CFLAGS="$CFLAGS -errwarn"
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17063 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17064 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn`
17065 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17066 $as_echo_n "(cached) " >&6
17068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17069 /* end confdefs.h. */
17079 if ac_fn_c_try_link "$LINENO"; then :
17080 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17082 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17084 rm -f core conftest.err conftest.$ac_objext \
17085 conftest$ac_exeext conftest.$ac_ext
17089 CFLAGS="$xorg_testset_save_CFLAGS"
17091 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17093 $as_echo "$supported" >&6; }
17094 if test "$supported" = "yes" ; then
17095 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17102 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17103 # activate it with -Werror, so we add it here explicitly.
17115 xorg_testset_save_CFLAGS="$CFLAGS"
17117 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
17118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
17120 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
17121 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
17122 $as_echo_n "(cached) " >&6
17124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17125 /* end confdefs.h. */
17128 if ac_fn_c_try_compile "$LINENO"; then :
17129 xorg_cv_compiler_flag_unknown_warning_option=yes
17131 xorg_cv_compiler_flag_unknown_warning_option=no
17133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
17136 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
17137 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
17138 CFLAGS="$xorg_testset_save_CFLAGS"
17141 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
17142 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
17147 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
17148 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
17149 $as_echo_n "(cached) " >&6
17151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17152 /* end confdefs.h. */
17155 if ac_fn_c_try_compile "$LINENO"; then :
17156 xorg_cv_compiler_flag_unused_command_line_argument=yes
17158 xorg_cv_compiler_flag_unused_command_line_argument=no
17160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17163 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17164 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17165 CFLAGS="$xorg_testset_save_CFLAGS"
17170 if test $found = "no" ; then
17171 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17175 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17179 CFLAGS="$CFLAGS -Werror=attributes"
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17182 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17183 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes`
17184 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17185 $as_echo_n "(cached) " >&6
17187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17188 /* end confdefs.h. */
17198 if ac_fn_c_try_link "$LINENO"; then :
17199 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17201 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17203 rm -f core conftest.err conftest.$ac_objext \
17204 conftest$ac_exeext conftest.$ac_ext
17208 CFLAGS="$xorg_testset_save_CFLAGS"
17210 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17212 $as_echo "$supported" >&6; }
17213 if test "$supported" = "yes" ; then
17214 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17221 if test "x$STRICT_COMPILE" = "xyes"; then
17222 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17223 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17231 cat >>confdefs.h <<_ACEOF
17232 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17235 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17236 if test "x$PVM" = "x"; then
17240 cat >>confdefs.h <<_ACEOF
17241 #define PACKAGE_VERSION_MINOR $PVM
17244 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17245 if test "x$PVP" = "x"; then
17249 cat >>confdefs.h <<_ACEOF
17250 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17255 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17256 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17257 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17258 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17263 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17264 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17265 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17266 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17267 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17274 if test x$APP_MAN_SUFFIX = x ; then
17277 if test x$APP_MAN_DIR = x ; then
17278 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17281 if test x$LIB_MAN_SUFFIX = x ; then
17284 if test x$LIB_MAN_DIR = x ; then
17285 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17288 if test x$FILE_MAN_SUFFIX = x ; then
17290 solaris*) FILE_MAN_SUFFIX=4 ;;
17291 *) FILE_MAN_SUFFIX=5 ;;
17294 if test x$FILE_MAN_DIR = x ; then
17295 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17298 if test x$MISC_MAN_SUFFIX = x ; then
17300 solaris*) MISC_MAN_SUFFIX=5 ;;
17301 *) MISC_MAN_SUFFIX=7 ;;
17304 if test x$MISC_MAN_DIR = x ; then
17305 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17308 if test x$DRIVER_MAN_SUFFIX = x ; then
17310 solaris*) DRIVER_MAN_SUFFIX=7 ;;
17311 *) DRIVER_MAN_SUFFIX=4 ;;
17314 if test x$DRIVER_MAN_DIR = x ; then
17315 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17318 if test x$ADMIN_MAN_SUFFIX = x ; then
17320 solaris*) ADMIN_MAN_SUFFIX=1m ;;
17321 *) ADMIN_MAN_SUFFIX=8 ;;
17324 if test x$ADMIN_MAN_DIR = x ; then
17325 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17342 XORG_MAN_PAGE="X Version 11"
17345 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17346 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17347 -e 's|__xservername__|Xorg|g' \
17348 -e 's|__xconfigfile__|xorg.conf|g' \
17349 -e 's|__projectroot__|\$(prefix)|g' \
17350 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17351 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17352 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17353 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17354 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17355 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17356 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17360 # Check whether --enable-silent-rules was given.
17361 if test "${enable_silent_rules+set}" = set; then :
17362 enableval=$enable_silent_rules;
17365 case $enable_silent_rules in
17366 yes) AM_DEFAULT_VERBOSITY=0;;
17367 no) AM_DEFAULT_VERBOSITY=1;;
17368 *) AM_DEFAULT_VERBOSITY=0;;
17374 # Check whether --enable-malloc0returnsnull was given.
17375 if test "${enable_malloc0returnsnull+set}" = set; then :
17376 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
17378 MALLOC_ZERO_RETURNS_NULL=auto
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
17383 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
17384 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
17385 if test "$cross_compiling" = yes; then :
17386 MALLOC_ZERO_RETURNS_NULL=yes
17388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17389 /* end confdefs.h. */
17391 #include <stdlib.h>
17397 char *m0, *r0, *c0, *p;
17402 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
17408 if ac_fn_c_try_run "$LINENO"; then :
17409 MALLOC_ZERO_RETURNS_NULL=yes
17411 MALLOC_ZERO_RETURNS_NULL=no
17413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17414 conftest.$ac_objext conftest.beam conftest.$ac_ext
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
17419 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
17421 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
17422 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
17423 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
17424 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
17426 MALLOC_ZERO_CFLAGS=""
17427 XMALLOC_ZERO_CFLAGS=""
17428 XTMALLOC_ZERO_CFLAGS=""
17436 # Check xres configuration, strip extra digits from package version to
17437 # find the required protocol version
17438 RES_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
17440 # Obtain compiler/linker options for depedencies
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRES" >&5
17444 $as_echo_n "checking for XRES... " >&6; }
17446 if test -n "$XRES_CFLAGS"; then
17447 pkg_cv_XRES_CFLAGS="$XRES_CFLAGS"
17448 elif test -n "$PKG_CONFIG"; then
17449 if test -n "$PKG_CONFIG" && \
17450 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto resourceproto >= \$RES_VERSION\""; } >&5
17451 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto resourceproto >= $RES_VERSION") 2>&5
17453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17454 test $ac_status = 0; }; then
17455 pkg_cv_XRES_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto resourceproto >= $RES_VERSION" 2>/dev/null`
17462 if test -n "$XRES_LIBS"; then
17463 pkg_cv_XRES_LIBS="$XRES_LIBS"
17464 elif test -n "$PKG_CONFIG"; then
17465 if test -n "$PKG_CONFIG" && \
17466 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto resourceproto >= \$RES_VERSION\""; } >&5
17467 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto resourceproto >= $RES_VERSION") 2>&5
17469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17470 test $ac_status = 0; }; then
17471 pkg_cv_XRES_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto resourceproto >= $RES_VERSION" 2>/dev/null`
17481 if test $pkg_failed = yes; then
17483 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17484 _pkg_short_errors_supported=yes
17486 _pkg_short_errors_supported=no
17488 if test $_pkg_short_errors_supported = yes; then
17489 XRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xextproto resourceproto >= $RES_VERSION" 2>&1`
17491 XRES_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xextproto resourceproto >= $RES_VERSION" 2>&1`
17493 # Put the nasty error message in config.log where it belongs
17494 echo "$XRES_PKG_ERRORS" >&5
17496 as_fn_error $? "Package requirements (x11 xext xextproto resourceproto >= $RES_VERSION) were not met:
17500 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17501 installed software in a non-standard prefix.
17503 Alternatively, you may set the environment variables XRES_CFLAGS
17504 and XRES_LIBS to avoid the need to call pkg-config.
17505 See the pkg-config man page for more details.
17507 elif test $pkg_failed = untried; then
17508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17510 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17511 is in your PATH or set the PKG_CONFIG environment variable to the full
17512 path to pkg-config.
17514 Alternatively, you may set the environment variables XRES_CFLAGS
17515 and XRES_LIBS to avoid the need to call pkg-config.
17516 See the pkg-config man page for more details.
17518 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17519 See \`config.log' for more details" "$LINENO" 5; }
17521 XRES_CFLAGS=$pkg_cv_XRES_CFLAGS
17522 XRES_LIBS=$pkg_cv_XRES_LIBS
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17524 $as_echo "yes" >&6; }
17528 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xres.pc"
17530 cat >confcache <<\_ACEOF
17531 # This file is a shell script that caches the results of configure
17532 # tests run on this system so they can be shared between configure
17533 # scripts and configure runs, see configure's option --config-cache.
17534 # It is not useful on other systems. If it contains results you don't
17535 # want to keep, you may remove or edit it.
17537 # config.status only pays attention to the cache file if you give it
17538 # the --recheck option to rerun configure.
17540 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17541 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17542 # following values.
17546 # The following way of writing the cache mishandles newlines in values,
17547 # but we know of no workaround that is simple, portable, and efficient.
17548 # So, we kill variables containing newlines.
17549 # Ultrix sh set writes to stderr and can't be redirected directly,
17550 # and sets the high bit in the cache file unless we assign to the vars.
17552 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17553 eval ac_val=\$$ac_var
17557 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17558 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17561 _ | IFS | as_nl) ;; #(
17562 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17563 *) { eval $ac_var=; unset $ac_var;} ;;
17569 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17570 *${as_nl}ac_space=\ *)
17571 # `set' does not quote correctly, so add quotes: double-quote
17572 # substitution turns \\\\ into \\, and sed turns \\ into \.
17575 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17578 # `set' quotes correctly as required by POSIX, so do not add quotes.
17579 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17588 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17590 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17592 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17593 if test -w "$cache_file"; then
17594 if test "x$cache_file" != "x/dev/null"; then
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17596 $as_echo "$as_me: updating cache $cache_file" >&6;}
17597 if test ! -f "$cache_file" || test -h "$cache_file"; then
17598 cat confcache >"$cache_file"
17600 case $cache_file in #(
17602 mv -f confcache "$cache_file"$$ &&
17603 mv -f "$cache_file"$$ "$cache_file" ;; #(
17605 mv -f confcache "$cache_file" ;;
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17611 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17616 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17617 # Let make expand exec_prefix.
17618 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17620 DEFS=-DHAVE_CONFIG_H
17625 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17626 # 1. Remove the extension, and $U if already installed.
17627 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17628 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17629 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17630 # will be set to the directory where LIBOBJS objects are built.
17631 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17632 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17634 LIBOBJS=$ac_libobjs
17636 LTLIBOBJS=$ac_ltlibobjs
17639 if test -n "$EXEEXT"; then
17641 am__EXEEXT_FALSE='#'
17643 am__EXEEXT_TRUE='#'
17647 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17648 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17651 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17652 as_fn_error $? "conditional \"AMDEP\" was never defined.
17653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17655 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17656 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17660 : "${CONFIG_STATUS=./config.status}"
17662 ac_clean_files_save=$ac_clean_files
17663 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17665 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17667 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17669 # Generated by $as_me.
17670 # Run this file to recreate the current configuration.
17671 # Compiler output produced by configure, useful for debugging
17672 # configure, is in config.log if it exists.
17675 ac_cs_recheck=false
17678 SHELL=\${CONFIG_SHELL-$SHELL}
17681 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17682 ## -------------------- ##
17683 ## M4sh Initialization. ##
17684 ## -------------------- ##
17686 # Be more Bourne compatible
17687 DUALCASE=1; export DUALCASE # for MKS sh
17688 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17691 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17692 # is contrary to our usage. Disable this feature.
17693 alias -g '${1+"$@"}'='"$@"'
17694 setopt NO_GLOB_SUBST
17696 case `(set -o) 2>/dev/null` in #(
17708 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17709 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17710 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17711 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17712 # Prefer a ksh shell builtin over an external printf program on Solaris,
17713 # but without wasting forks for bash or zsh.
17714 if test -z "$BASH_VERSION$ZSH_VERSION" \
17715 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17716 as_echo='print -r --'
17717 as_echo_n='print -rn --'
17718 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17719 as_echo='printf %s\n'
17720 as_echo_n='printf %s'
17722 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17723 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17724 as_echo_n='/usr/ucb/echo -n'
17726 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17727 as_echo_n_body='eval
17731 expr "X$arg" : "X\\(.*\\)$as_nl";
17732 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17734 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17736 export as_echo_n_body
17737 as_echo_n='sh -c $as_echo_n_body as_echo'
17739 export as_echo_body
17740 as_echo='sh -c $as_echo_body as_echo'
17743 # The user is always right.
17744 if test "${PATH_SEPARATOR+set}" != set; then
17746 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17747 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17754 # We need space, tab and new line, in precisely that order. Quoting is
17755 # there to prevent editors from complaining about space-tab.
17756 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17757 # splitting by setting IFS to empty value.)
17760 # Find who we are. Look in the path if we contain no directory separator.
17763 *[\\/]* ) as_myself=$0 ;;
17764 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17765 for as_dir in $PATH
17768 test -z "$as_dir" && as_dir=.
17769 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17775 # We did not find ourselves, most probably we were run as `sh COMMAND'
17776 # in which case we are not to be found in the path.
17777 if test "x$as_myself" = x; then
17780 if test ! -f "$as_myself"; then
17781 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17785 # Unset variables that we do not need and which cause bugs (e.g. in
17786 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17787 # suppresses any "Segmentation fault" message there. '((' could
17788 # trigger a bug in pdksh 5.2.14.
17789 for as_var in BASH_ENV ENV MAIL MAILPATH
17790 do eval test x\${$as_var+set} = xset \
17791 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17804 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17807 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17808 # ----------------------------------------
17809 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17810 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17811 # script with STATUS, using 1 if that was 0.
17814 as_status=$1; test $as_status -eq 0 && as_status=1
17816 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17817 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17819 $as_echo "$as_me: error: $2" >&2
17820 as_fn_exit $as_status
17824 # as_fn_set_status STATUS
17825 # -----------------------
17826 # Set $? to STATUS, without forking.
17827 as_fn_set_status ()
17830 } # as_fn_set_status
17832 # as_fn_exit STATUS
17833 # -----------------
17834 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17838 as_fn_set_status $1
17844 # Portably unset VAR.
17847 { eval $1=; unset $1;}
17849 as_unset=as_fn_unset
17850 # as_fn_append VAR VALUE
17851 # ----------------------
17852 # Append the text in VALUE to the end of the definition contained in VAR. Take
17853 # advantage of any shell optimizations that allow amortized linear growth over
17854 # repeated appends, instead of the typical quadratic growth present in naive
17856 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17857 eval 'as_fn_append ()
17868 # as_fn_arith ARG...
17869 # ------------------
17870 # Perform arithmetic evaluation on the ARGs, and store the result in the
17871 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17872 # must be portable across $(()) and expr.
17873 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17874 eval 'as_fn_arith ()
17881 as_val=`expr "$@" || test $? -eq 1`
17886 if expr a : '\(a\)' >/dev/null 2>&1 &&
17887 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17893 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17894 as_basename=basename
17899 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17905 as_me=`$as_basename -- "$0" ||
17906 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17907 X"$0" : 'X\(//\)$' \| \
17908 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17910 sed '/^.*\/\([^/][^/]*\)\/*$/{
17924 # Avoid depending upon Character Ranges.
17925 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17926 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17927 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17928 as_cr_digits='0123456789'
17929 as_cr_alnum=$as_cr_Letters$as_cr_digits
17931 ECHO_C= ECHO_N= ECHO_T=
17932 case `echo -n x` in #(((((
17934 case `echo 'xy\c'` in
17935 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17937 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17944 rm -f conf$$ conf$$.exe conf$$.file
17945 if test -d conf$$.dir; then
17946 rm -f conf$$.dir/conf$$.file
17949 mkdir conf$$.dir 2>/dev/null
17951 if (echo >conf$$.file) 2>/dev/null; then
17952 if ln -s conf$$.file conf$$ 2>/dev/null; then
17954 # ... but there are two gotchas:
17955 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17956 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17957 # In both cases, we have to default to `cp -p'.
17958 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17960 elif ln conf$$.file conf$$ 2>/dev/null; then
17968 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17969 rmdir conf$$.dir 2>/dev/null
17974 # Create "$as_dir" as a directory, including parents if necessary.
17979 -*) as_dir=./$as_dir;;
17981 test -d "$as_dir" || eval $as_mkdir_p || {
17985 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17986 *) as_qdir=$as_dir;;
17988 as_dirs="'$as_qdir' $as_dirs"
17989 as_dir=`$as_dirname -- "$as_dir" ||
17990 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17991 X"$as_dir" : 'X\(//\)[^/]' \| \
17992 X"$as_dir" : 'X\(//\)$' \| \
17993 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17994 $as_echo X"$as_dir" |
17995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17999 /^X\(\/\/\)[^/].*/{
18012 test -d "$as_dir" && break
18014 test -z "$as_dirs" || eval "mkdir $as_dirs"
18015 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18019 if mkdir -p . 2>/dev/null; then
18020 as_mkdir_p='mkdir -p "$as_dir"'
18022 test -d ./-p && rmdir ./-p
18026 if test -x / >/dev/null 2>&1; then
18027 as_test_x='test -x'
18029 if ls -dL / >/dev/null 2>&1; then
18036 if test -d "$1"; then
18042 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18043 ???[sx]*):;;*)false;;esac;fi
18047 as_executable_p=$as_test_x
18049 # Sed expression to map a string onto a valid CPP name.
18050 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18052 # Sed expression to map a string onto a valid variable name.
18053 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18057 ## ----------------------------------- ##
18058 ## Main body of $CONFIG_STATUS script. ##
18059 ## ----------------------------------- ##
18061 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18064 # Save the log message, to keep $0 and so on meaningful, and to
18065 # report actual input values of CONFIG_FILES etc. instead of their
18066 # values after options handling.
18068 This file was extended by libXres $as_me 1.0.6, which was
18069 generated by GNU Autoconf 2.68. Invocation command line was
18071 CONFIG_FILES = $CONFIG_FILES
18072 CONFIG_HEADERS = $CONFIG_HEADERS
18073 CONFIG_LINKS = $CONFIG_LINKS
18074 CONFIG_COMMANDS = $CONFIG_COMMANDS
18077 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18082 case $ac_config_files in *"
18083 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18086 case $ac_config_headers in *"
18087 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18092 # Files that config.status was made for.
18093 config_files="$ac_config_files"
18094 config_headers="$ac_config_headers"
18095 config_commands="$ac_config_commands"
18099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18101 \`$as_me' instantiates files and other configuration actions
18102 from templates according to the current configuration. Unless the files
18103 and actions are specified as TAGs, all are instantiated by default.
18105 Usage: $0 [OPTION]... [TAG]...
18107 -h, --help print this help, then exit
18108 -V, --version print version number and configuration settings, then exit
18109 --config print configuration, then exit
18110 -q, --quiet, --silent
18111 do not print progress messages
18112 -d, --debug don't remove temporary files
18113 --recheck update $as_me by reconfiguring in the same conditions
18114 --file=FILE[:TEMPLATE]
18115 instantiate the configuration file FILE
18116 --header=FILE[:TEMPLATE]
18117 instantiate the configuration header FILE
18119 Configuration files:
18122 Configuration headers:
18125 Configuration commands:
18128 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18132 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18134 libXres config.status 1.0.6
18135 configured by $0, generated by GNU Autoconf 2.68,
18136 with options \\"\$ac_cs_config\\"
18138 Copyright (C) 2010 Free Software Foundation, Inc.
18139 This config.status script is free software; the Free Software Foundation
18140 gives unlimited permission to copy, distribute and modify it."
18147 test -n "\$AWK" || AWK=awk
18150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18151 # The default lists apply if the user does not specify any file.
18157 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18158 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18162 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18174 # Handling of the options.
18175 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18177 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18178 $as_echo "$ac_cs_version"; exit ;;
18179 --config | --confi | --conf | --con | --co | --c )
18180 $as_echo "$ac_cs_config"; exit ;;
18181 --debug | --debu | --deb | --de | --d | -d )
18183 --file | --fil | --fi | --f )
18186 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18187 '') as_fn_error $? "missing file argument" ;;
18189 as_fn_append CONFIG_FILES " '$ac_optarg'"
18190 ac_need_defaults=false;;
18191 --header | --heade | --head | --hea )
18194 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18196 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18197 ac_need_defaults=false;;
18199 # Conflict between --help and --header
18200 as_fn_error $? "ambiguous option: \`$1'
18201 Try \`$0 --help' for more information.";;
18202 --help | --hel | -h )
18203 $as_echo "$ac_cs_usage"; exit ;;
18204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18205 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18208 # This is an error.
18209 -*) as_fn_error $? "unrecognized option: \`$1'
18210 Try \`$0 --help' for more information." ;;
18212 *) as_fn_append ac_config_targets " $1"
18213 ac_need_defaults=false ;;
18219 ac_configure_extra_args=
18221 if $ac_cs_silent; then
18223 ac_configure_extra_args="$ac_configure_extra_args --silent"
18227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18228 if \$ac_cs_recheck; then
18229 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18231 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18232 CONFIG_SHELL='$SHELL'
18233 export CONFIG_SHELL
18238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18242 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18243 ## Running $as_me. ##
18249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18253 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18256 # The HP-UX ksh and POSIX shell print the target directory to stdout
18257 # if CDPATH is set.
18258 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18260 sed_quote_subst='$sed_quote_subst'
18261 double_quote_subst='$double_quote_subst'
18262 delay_variable_subst='$delay_variable_subst'
18263 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18264 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18265 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18266 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18267 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18268 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18269 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18270 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18271 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18272 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18273 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18274 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18275 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18276 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18277 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18278 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18279 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18280 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18281 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18282 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18283 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18284 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18285 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18286 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18287 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18288 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18289 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18290 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18291 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18292 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18293 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18294 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18295 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18296 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18297 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18298 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18299 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18300 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18301 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18302 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18303 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18304 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18305 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18306 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18307 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18308 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18309 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18310 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18311 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18312 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18313 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18314 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18315 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18316 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18317 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18318 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"`'
18319 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18320 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18321 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18322 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18323 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18324 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18325 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18326 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18327 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18328 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18329 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18330 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18331 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18332 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18333 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18334 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18335 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18336 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18337 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18338 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18339 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18340 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18341 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18342 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18343 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18344 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18345 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18346 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18347 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18348 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18349 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18350 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18351 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18352 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18353 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18354 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18355 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18356 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18357 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18358 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18359 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18360 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18361 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18362 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18363 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18364 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18365 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18366 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18367 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18368 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18369 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18370 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18371 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18372 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18373 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18374 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18375 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18376 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18377 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18378 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18379 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18380 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18381 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18382 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18383 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18384 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18385 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18386 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18387 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18388 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18389 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18390 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18391 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18392 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18395 LTCFLAGS='$LTCFLAGS'
18396 compiler='$compiler_DEFAULT'
18398 # A function that is used when there is no print builtin or printf.
18399 func_fallback_echo ()
18401 eval 'cat <<_LTECHO_EOF
18406 # Quote evaled strings.
18420 deplibs_check_method \
18425 sharedlib_from_linklib_cmd \
18428 archiver_list_spec \
18434 lt_cv_sys_global_symbol_pipe \
18435 lt_cv_sys_global_symbol_to_cdecl \
18436 lt_cv_sys_global_symbol_to_c_name_address \
18437 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18438 nm_file_list_spec \
18439 lt_prog_compiler_no_builtin_flag \
18440 lt_prog_compiler_pic \
18441 lt_prog_compiler_wl \
18442 lt_prog_compiler_static \
18443 lt_cv_prog_compiler_c_o \
18452 export_dynamic_flag_spec \
18453 whole_archive_flag_spec \
18454 compiler_needs_object \
18456 allow_undefined_flag \
18457 no_undefined_flag \
18458 hardcode_libdir_flag_spec \
18459 hardcode_libdir_flag_spec_ld \
18460 hardcode_libdir_separator \
18464 variables_saved_for_relink \
18466 library_names_spec \
18468 install_override_mode \
18472 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18473 *[\\\\\\\`\\"\\\$]*)
18474 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18477 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18482 # Double-quote double-evaled strings.
18483 for var in reload_cmds \
18484 old_postinstall_cmds \
18485 old_postuninstall_cmds \
18487 extract_expsyms_cmds \
18488 old_archive_from_new_cmds \
18489 old_archive_from_expsyms_cmds \
18491 archive_expsym_cmds \
18493 module_expsym_cmds \
18494 export_symbols_cmds \
18498 postuninstall_cmds \
18500 sys_lib_search_path_spec \
18501 sys_lib_dlsearch_path_spec; do
18502 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18503 *[\\\\\\\`\\"\\\$]*)
18504 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18507 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18512 ac_aux_dir='$ac_aux_dir'
18513 xsi_shell='$xsi_shell'
18514 lt_shell_append='$lt_shell_append'
18516 # See if we are running on zsh, and set the options which allow our
18517 # commands through without removal of \ escapes INIT.
18518 if test -n "\${ZSH_VERSION+set}" ; then
18519 setopt NO_GLOB_SUBST
18525 TIMESTAMP='$TIMESTAMP'
18534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18536 # Handling of arguments.
18537 for ac_config_target in $ac_config_targets
18539 case $ac_config_target in
18540 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18541 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18542 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18543 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18544 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18545 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18546 "xres.pc") CONFIG_FILES="$CONFIG_FILES xres.pc" ;;
18548 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18553 # If the user did not use the arguments to specify the items to instantiate,
18554 # then the envvar interface is used. Set only those that are not.
18555 # We use the long form for the default assignment because of an extremely
18556 # bizarre bug on SunOS 4.1.3.
18557 if $ac_need_defaults; then
18558 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18559 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18560 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18563 # Have a temporary directory for convenience. Make it in the build tree
18564 # simply because there is no reason against having it here, and in addition,
18565 # creating and moving files from /tmp can sometimes cause problems.
18566 # Hook for its removal unless debugging.
18567 # Note that there is a small window in which the directory will not be cleaned:
18568 # after its creation but before its name has been assigned to `$tmp'.
18572 trap 'exit_status=$?
18573 : "${ac_tmp:=$tmp}"
18574 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18576 trap 'as_fn_exit 1' 1 2 13 15
18578 # Create a (secure) tmp directory for tmp files.
18581 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18585 tmp=./conf$$-$RANDOM
18586 (umask 077 && mkdir "$tmp")
18587 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18590 # Set up the scripts for CONFIG_FILES section.
18591 # No need to generate them if there are no CONFIG_FILES.
18592 # This happens for instance with `./config.status config.h'.
18593 if test -n "$CONFIG_FILES"; then
18596 ac_cr=`echo X | tr X '\015'`
18597 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18598 # But we know of no other shell where ac_cr would be empty at this
18599 # point, so we can use a bashism as a fallback.
18600 if test "x$ac_cr" = x; then
18601 eval ac_cr=\$\'\\r\'
18603 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18604 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18607 ac_cs_awk_cr=$ac_cr
18610 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18615 echo "cat >conf$$subs.awk <<_ACEOF" &&
18616 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18618 } >conf$$subs.sh ||
18619 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18620 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18622 for ac_last_try in false false false false false :; do
18623 . ./conf$$subs.sh ||
18624 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18626 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18627 if test $ac_delim_n = $ac_delim_num; then
18629 elif $ac_last_try; then
18630 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18632 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18635 rm -f conf$$subs.sh
18637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18638 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18642 s/^/S["/; s/!.*/"]=/
18652 s/\(.\{148\}\)..*/\1/
18654 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18659 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18666 s/\(.\{148\}\)..*/\1/
18668 s/["\\]/\\&/g; s/^/"/; s/$/"/
18672 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18677 ' <conf$$subs.awk | sed '
18682 ' >>$CONFIG_STATUS || ac_write_fail=1
18683 rm -f conf$$subs.awk
18684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18686 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18687 for (key in S) S_is_set[key] = 1
18693 nfields = split(line, field, "@")
18695 len = length(field[1])
18696 for (i = 2; i < nfields; i++) {
18698 keylen = length(key)
18699 if (S_is_set[key]) {
18701 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18702 len += length(value) + length(field[++i])
18713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18714 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18715 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18718 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18719 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18722 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18723 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18724 # trailing colons and then remove the whole line if VPATH becomes empty
18725 # (actually we leave an empty line to preserve line numbers).
18726 if test "x$srcdir" = x.; then
18727 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18746 fi # test -n "$CONFIG_FILES"
18748 # Set up the scripts for CONFIG_HEADERS section.
18749 # No need to generate them if there are no CONFIG_HEADERS.
18750 # This happens for instance with `./config.status Makefile'.
18751 if test -n "$CONFIG_HEADERS"; then
18752 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18756 # Transform confdefs.h into an awk script `defines.awk', embedded as
18757 # here-document in config.status, that substitutes the proper values into
18758 # config.h.in to produce config.h.
18760 # Create a delimiter string that does not exist in confdefs.h, to ease
18761 # handling of long lines.
18763 for ac_last_try in false false :; do
18764 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18765 if test -z "$ac_tt"; then
18767 elif $ac_last_try; then
18768 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18770 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18774 # For the awk script, D is an array of macro values keyed by name,
18775 # likewise P contains macro parameters if any. Preserve backslash
18776 # newline sequences.
18778 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18780 s/.\{148\}/&'"$ac_delim"'/g
18783 s/^[ ]*#[ ]*define[ ][ ]*/ /
18790 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18792 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18796 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18797 D["\1"]=" \3\\\\\\n"\\/p
18799 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18804 s/.\{148\}/&'"$ac_delim"'/g
18809 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18812 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18814 ' <confdefs.h | sed '
18815 s/'"$ac_delim"'/"\\\
18816 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18819 for (key in D) D_is_set[key] = 1
18822 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18824 split(line, arg, " ")
18825 if (arg[1] == "#") {
18829 defundef = substr(arg[1], 2)
18832 split(mac1, mac2, "(") #)
18834 prefix = substr(line, 1, index(line, defundef) - 1)
18835 if (D_is_set[macro]) {
18836 # Preserve the white space surrounding the "#".
18837 print prefix "define", macro P[macro] D[macro]
18840 # Replace #undef with comments. This is necessary, for example,
18841 # in the case of _POSIX_SOURCE, which is predefined and required
18842 # on some systems where configure will not decide to define it.
18843 if (defundef == "undef") {
18844 print "/*", prefix defundef, macro, "*/"
18852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18853 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18854 fi # test -n "$CONFIG_HEADERS"
18857 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18862 :[FHLC]) ac_mode=$ac_tag; continue;;
18864 case $ac_mode$ac_tag in
18866 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18867 :[FH]-) ac_tag=-:-;;
18868 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18885 -) ac_f="$ac_tmp/stdin";;
18886 *) # Look for the file first in the build tree, then in the source tree
18887 # (if the path is not absolute). The absolute path cannot be DOS-style,
18888 # because $ac_f cannot contain `:'.
18892 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18894 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18896 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18897 as_fn_append ac_file_inputs " '$ac_f'"
18900 # Let's still pretend it is `configure' which instantiates (i.e., don't
18901 # use $as_me), people would be surprised to read:
18902 # /* config.h. Generated by config.status. */
18903 configure_input='Generated from '`
18904 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18906 if test x"$ac_file" != x-; then
18907 configure_input="$ac_file. $configure_input"
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18909 $as_echo "$as_me: creating $ac_file" >&6;}
18911 # Neutralize special characters interpreted by sed in replacement strings.
18912 case $configure_input in #(
18913 *\&* | *\|* | *\\* )
18914 ac_sed_conf_input=`$as_echo "$configure_input" |
18915 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18916 *) ac_sed_conf_input=$configure_input;;
18920 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18921 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18926 ac_dir=`$as_dirname -- "$ac_file" ||
18927 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18928 X"$ac_file" : 'X\(//\)[^/]' \| \
18929 X"$ac_file" : 'X\(//\)$' \| \
18930 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18931 $as_echo X"$ac_file" |
18932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18936 /^X\(\/\/\)[^/].*/{
18949 as_dir="$ac_dir"; as_fn_mkdir_p
18953 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18955 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18956 # A ".." for each directory in $ac_dir_suffix.
18957 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18958 case $ac_top_builddir_sub in
18959 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18960 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18963 ac_abs_top_builddir=$ac_pwd
18964 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18965 # for backward compatibility:
18966 ac_top_builddir=$ac_top_build_prefix
18969 .) # We are building in place.
18971 ac_top_srcdir=$ac_top_builddir_sub
18972 ac_abs_top_srcdir=$ac_pwd ;;
18973 [\\/]* | ?:[\\/]* ) # Absolute name.
18974 ac_srcdir=$srcdir$ac_dir_suffix;
18975 ac_top_srcdir=$srcdir
18976 ac_abs_top_srcdir=$srcdir ;;
18977 *) # Relative name.
18978 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18979 ac_top_srcdir=$ac_top_build_prefix$srcdir
18980 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18982 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18992 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18993 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18995 ac_MKDIR_P=$MKDIR_P
18997 [\\/$]* | ?:[\\/]* ) ;;
18998 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19003 # If the template does not know about datarootdir, expand it.
19004 # FIXME: This hack should be removed a few years after 2.60.
19005 ac_datarootdir_hack=; ac_datarootdir_seen=
19016 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19017 *datarootdir*) ac_datarootdir_seen=yes;;
19018 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19020 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19023 ac_datarootdir_hack='
19024 s&@datadir@&$datadir&g
19025 s&@docdir@&$docdir&g
19026 s&@infodir@&$infodir&g
19027 s&@localedir@&$localedir&g
19028 s&@mandir@&$mandir&g
19029 s&\\\${datarootdir}&$datarootdir&g' ;;
19033 # Neutralize VPATH when `$srcdir' = `.'.
19034 # Shell code in configure.ac might set extrasub.
19035 # FIXME: do we really want to maintain this feature?
19036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19037 ac_sed_extra="$ac_vpsub
19040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19042 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19043 s|@configure_input@|$ac_sed_conf_input|;t t
19044 s&@top_builddir@&$ac_top_builddir_sub&;t t
19045 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19046 s&@srcdir@&$ac_srcdir&;t t
19047 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19048 s&@top_srcdir@&$ac_top_srcdir&;t t
19049 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19050 s&@builddir@&$ac_builddir&;t t
19051 s&@abs_builddir@&$ac_abs_builddir&;t t
19052 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19053 s&@INSTALL@&$ac_INSTALL&;t t
19054 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19055 $ac_datarootdir_hack
19057 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19058 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19060 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19061 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19062 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19063 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19065 which seems to be undefined. Please make sure it is defined" >&5
19066 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19067 which seems to be undefined. Please make sure it is defined" >&2;}
19069 rm -f "$ac_tmp/stdin"
19071 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19072 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19074 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19080 if test x"$ac_file" != x-; then
19082 $as_echo "/* $configure_input */" \
19083 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19084 } >"$ac_tmp/config.h" \
19085 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19086 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19088 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19091 mv "$ac_tmp/config.h" "$ac_file" \
19092 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19095 $as_echo "/* $configure_input */" \
19096 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19097 || as_fn_error $? "could not create -" "$LINENO" 5
19099 # Compute "$ac_file"'s index in $config_headers.
19102 for _am_header in $config_headers :; do
19103 case $_am_header in
19104 $_am_arg | $_am_arg:* )
19107 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19110 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19111 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19112 X"$_am_arg" : 'X\(//\)[^/]' \| \
19113 X"$_am_arg" : 'X\(//\)$' \| \
19114 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19115 $as_echo X"$_am_arg" |
19116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19120 /^X\(\/\/\)[^/].*/{
19132 s/.*/./; q'`/stamp-h$_am_stamp_count
19135 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19136 $as_echo "$as_me: executing $ac_file commands" >&6;}
19141 case $ac_file$ac_mode in
19142 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19143 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19144 # are listed without --file. Let's play safe and only enable the eval
19145 # if we detect the quoting.
19146 case $CONFIG_FILES in
19147 *\'*) eval set x "$CONFIG_FILES" ;;
19148 *) set x $CONFIG_FILES ;;
19153 # Strip MF so we end up with the name of the file.
19154 mf=`echo "$mf" | sed -e 's/:.*$//'`
19155 # Check whether this is an Automake generated Makefile or not.
19156 # We used to match only the files named `Makefile.in', but
19157 # some people rename them; so instead we look at the file content.
19158 # Grep'ing the first line is not enough: some people post-process
19159 # each Makefile.in and add a new line on top of each file to say so.
19160 # Grep'ing the whole file is not good either: AIX grep has a line
19161 # limit of 2048, but all sed's we know have understand at least 4000.
19162 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19163 dirpart=`$as_dirname -- "$mf" ||
19164 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19165 X"$mf" : 'X\(//\)[^/]' \| \
19166 X"$mf" : 'X\(//\)$' \| \
19167 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19173 /^X\(\/\/\)[^/].*/{
19189 # Extract the definition of DEPDIR, am__include, and am__quote
19190 # from the Makefile without running `make'.
19191 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19192 test -z "$DEPDIR" && continue
19193 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19194 test -z "am__include" && continue
19195 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19196 # When using ansi2knr, U may be empty or an underscore; expand it
19197 U=`sed -n 's/^U = //p' < "$mf"`
19198 # Find all dependency output files, they are included files with
19199 # $(DEPDIR) in their names. We invoke sed twice because it is the
19200 # simplest approach to changing $(DEPDIR) to its actual value in the
19202 for file in `sed -n "
19203 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19204 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19205 # Make sure the directory exists.
19206 test -f "$dirpart/$file" && continue
19207 fdir=`$as_dirname -- "$file" ||
19208 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19209 X"$file" : 'X\(//\)[^/]' \| \
19210 X"$file" : 'X\(//\)$' \| \
19211 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19212 $as_echo X"$file" |
19213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19217 /^X\(\/\/\)[^/].*/{
19230 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19231 # echo "creating $dirpart/$file"
19232 echo '# dummy' > "$dirpart/$file"
19239 # See if we are running on zsh, and set the options which allow our
19240 # commands through without removal of \ escapes.
19241 if test -n "${ZSH_VERSION+set}" ; then
19242 setopt NO_GLOB_SUBST
19245 cfgfile="${ofile}T"
19246 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19249 cat <<_LT_EOF >> "$cfgfile"
19252 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19253 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19254 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19255 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19257 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19258 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19260 # Written by Gordon Matzigkeit, 1996
19262 # This file is part of GNU Libtool.
19264 # GNU Libtool is free software; you can redistribute it and/or
19265 # modify it under the terms of the GNU General Public License as
19266 # published by the Free Software Foundation; either version 2 of
19267 # the License, or (at your option) any later version.
19269 # As a special exception to the GNU General Public License,
19270 # if you distribute this file as part of a program or library that
19271 # is built using GNU Libtool, you may include this file under the
19272 # same distribution terms that you use for the rest of that program.
19274 # GNU Libtool is distributed in the hope that it will be useful,
19275 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19276 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19277 # GNU General Public License for more details.
19279 # You should have received a copy of the GNU General Public License
19280 # along with GNU Libtool; see the file COPYING. If not, a copy
19281 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19282 # obtained by writing to the Free Software Foundation, Inc.,
19283 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19286 # The names of the tagged configurations supported by this script.
19289 # ### BEGIN LIBTOOL CONFIG
19291 # Which release of libtool.m4 was used?
19292 macro_version=$macro_version
19293 macro_revision=$macro_revision
19295 # Whether or not to build shared libraries.
19296 build_libtool_libs=$enable_shared
19298 # Whether or not to build static libraries.
19299 build_old_libs=$enable_static
19301 # What type of objects to build.
19304 # Whether or not to optimize for fast installation.
19305 fast_install=$enable_fast_install
19307 # Shell to use when invoking shell scripts.
19310 # An echo program that protects backslashes.
19314 host_alias=$host_alias
19318 # The build system.
19319 build_alias=$build_alias
19323 # A sed program that does not truncate output.
19326 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19327 Xsed="\$SED -e 1s/^X//"
19329 # A grep program that handles long lines.
19335 # A literal string matcher.
19338 # A BSD- or MS-compatible name lister.
19341 # Whether we need soft or hard links.
19344 # What is the maximum length of a command?
19345 max_cmd_len=$max_cmd_len
19347 # Object file suffix (normally "o").
19350 # Executable file suffix (normally "").
19353 # whether the shell understands "unset".
19356 # turn spaces into newlines.
19359 # turn newlines into spaces.
19362 # convert \$build file names to \$host format.
19363 to_host_file_cmd=$lt_cv_to_host_file_cmd
19365 # convert \$build files to toolchain format.
19366 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19368 # An object symbol dumper.
19369 OBJDUMP=$lt_OBJDUMP
19371 # Method to check whether dependent libraries are shared objects.
19372 deplibs_check_method=$lt_deplibs_check_method
19374 # Command to use when deplibs_check_method = "file_magic".
19375 file_magic_cmd=$lt_file_magic_cmd
19377 # How to find potential files when deplibs_check_method = "file_magic".
19378 file_magic_glob=$lt_file_magic_glob
19380 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19381 want_nocaseglob=$lt_want_nocaseglob
19383 # DLL creation program.
19384 DLLTOOL=$lt_DLLTOOL
19386 # Command to associate shared and link libraries.
19387 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19392 # Flags to create an archive.
19393 AR_FLAGS=$lt_AR_FLAGS
19395 # How to feed a file listing to the archiver.
19396 archiver_list_spec=$lt_archiver_list_spec
19398 # A symbol stripping program.
19401 # Commands used to install an old-style archive.
19403 old_postinstall_cmds=$lt_old_postinstall_cmds
19404 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19406 # Whether to use a lock for old archive extraction.
19407 lock_old_archive_extraction=$lock_old_archive_extraction
19412 # LTCC compiler flags.
19413 LTCFLAGS=$lt_CFLAGS
19415 # Take the output of nm and produce a listing of raw symbols and C names.
19416 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19418 # Transform the output of nm in a proper C declaration.
19419 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19421 # Transform the output of nm in a C name address pair.
19422 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19424 # Transform the output of nm in a C name address pair when lib prefix is needed.
19425 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19427 # Specify filename containing input files for \$NM.
19428 nm_file_list_spec=$lt_nm_file_list_spec
19430 # The root where to search for dependent libraries,and in which our libraries should be installed.
19431 lt_sysroot=$lt_sysroot
19433 # The name of the directory that contains temporary libtool files.
19436 # Used to examine libraries when file_magic_cmd begins with "file".
19437 MAGIC_CMD=$MAGIC_CMD
19439 # Must we lock files when doing compilation?
19440 need_locks=$lt_need_locks
19443 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19445 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19446 DSYMUTIL=$lt_DSYMUTIL
19448 # Tool to change global to local symbols on Mac OS X.
19451 # Tool to manipulate fat objects and archives on Mac OS X.
19454 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19457 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19458 OTOOL64=$lt_OTOOL64
19460 # Old archive suffix (normally "a").
19463 # Shared library suffix (normally ".so").
19464 shrext_cmds=$lt_shrext_cmds
19466 # The commands to extract the exported symbol list from a shared archive.
19467 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19469 # Variables whose values should be saved in libtool wrapper scripts and
19470 # restored at link time.
19471 variables_saved_for_relink=$lt_variables_saved_for_relink
19473 # Do we need the "lib" prefix for modules?
19474 need_lib_prefix=$need_lib_prefix
19476 # Do we need a version for libraries?
19477 need_version=$need_version
19479 # Library versioning type.
19480 version_type=$version_type
19482 # Shared library runtime path variable.
19483 runpath_var=$runpath_var
19485 # Shared library path variable.
19486 shlibpath_var=$shlibpath_var
19488 # Is shlibpath searched before the hard-coded library search path?
19489 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19491 # Format of library name prefix.
19492 libname_spec=$lt_libname_spec
19494 # List of archive names. First name is the real one, the rest are links.
19495 # The last name is the one that the linker finds with -lNAME
19496 library_names_spec=$lt_library_names_spec
19498 # The coded name of the library, if different from the real name.
19499 soname_spec=$lt_soname_spec
19501 # Permission mode override for installation of shared libraries.
19502 install_override_mode=$lt_install_override_mode
19504 # Command to use after installation of a shared archive.
19505 postinstall_cmds=$lt_postinstall_cmds
19507 # Command to use after uninstallation of a shared archive.
19508 postuninstall_cmds=$lt_postuninstall_cmds
19510 # Commands used to finish a libtool library installation in a directory.
19511 finish_cmds=$lt_finish_cmds
19513 # As "finish_cmds", except a single script fragment to be evaled but
19515 finish_eval=$lt_finish_eval
19517 # Whether we should hardcode library paths into libraries.
19518 hardcode_into_libs=$hardcode_into_libs
19520 # Compile-time system search path for libraries.
19521 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19523 # Run-time system search path for libraries.
19524 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19526 # Whether dlopen is supported.
19527 dlopen_support=$enable_dlopen
19529 # Whether dlopen of programs is supported.
19530 dlopen_self=$enable_dlopen_self
19532 # Whether dlopen of statically linked programs is supported.
19533 dlopen_self_static=$enable_dlopen_self_static
19535 # Commands to strip libraries.
19536 old_striplib=$lt_old_striplib
19537 striplib=$lt_striplib
19540 # The linker used to build libraries.
19543 # How to create reloadable object files.
19544 reload_flag=$lt_reload_flag
19545 reload_cmds=$lt_reload_cmds
19547 # Commands used to build an old-style archive.
19548 old_archive_cmds=$lt_old_archive_cmds
19550 # A language specific compiler.
19553 # Is the compiler the GNU compiler?
19556 # Compiler flag to turn off builtin functions.
19557 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19559 # Additional compiler flags for building library objects.
19560 pic_flag=$lt_lt_prog_compiler_pic
19562 # How to pass a linker flag through the compiler.
19563 wl=$lt_lt_prog_compiler_wl
19565 # Compiler flag to prevent dynamic linking.
19566 link_static_flag=$lt_lt_prog_compiler_static
19568 # Does compiler simultaneously support -c and -o options?
19569 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19571 # Whether or not to add -lc for building shared libraries.
19572 build_libtool_need_lc=$archive_cmds_need_lc
19574 # Whether or not to disallow shared libs when runtime libs are static.
19575 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19577 # Compiler flag to allow reflexive dlopens.
19578 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19580 # Compiler flag to generate shared objects directly from archives.
19581 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19583 # Whether the compiler copes with passing no objects directly.
19584 compiler_needs_object=$lt_compiler_needs_object
19586 # Create an old-style archive from a shared archive.
19587 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19589 # Create a temporary old-style archive to link instead of a shared archive.
19590 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19592 # Commands used to build a shared archive.
19593 archive_cmds=$lt_archive_cmds
19594 archive_expsym_cmds=$lt_archive_expsym_cmds
19596 # Commands used to build a loadable module if different from building
19597 # a shared archive.
19598 module_cmds=$lt_module_cmds
19599 module_expsym_cmds=$lt_module_expsym_cmds
19601 # Whether we are building with GNU ld or not.
19602 with_gnu_ld=$lt_with_gnu_ld
19604 # Flag that allows shared libraries with undefined symbols to be built.
19605 allow_undefined_flag=$lt_allow_undefined_flag
19607 # Flag that enforces no undefined symbols.
19608 no_undefined_flag=$lt_no_undefined_flag
19610 # Flag to hardcode \$libdir into a binary during linking.
19611 # This must work even if \$libdir does not exist
19612 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19614 # If ld is used when linking, flag to hardcode \$libdir into a binary
19615 # during linking. This must work even if \$libdir does not exist.
19616 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19618 # Whether we need a single "-rpath" flag with a separated argument.
19619 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19621 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19622 # DIR into the resulting binary.
19623 hardcode_direct=$hardcode_direct
19625 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19626 # DIR into the resulting binary and the resulting library dependency is
19627 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19628 # library is relocated.
19629 hardcode_direct_absolute=$hardcode_direct_absolute
19631 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19632 # into the resulting binary.
19633 hardcode_minus_L=$hardcode_minus_L
19635 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19636 # into the resulting binary.
19637 hardcode_shlibpath_var=$hardcode_shlibpath_var
19639 # Set to "yes" if building a shared library automatically hardcodes DIR
19640 # into the library and all subsequent libraries and executables linked
19642 hardcode_automatic=$hardcode_automatic
19644 # Set to yes if linker adds runtime paths of dependent libraries
19645 # to runtime path list.
19646 inherit_rpath=$inherit_rpath
19648 # Whether libtool must link a program against all its dependency libraries.
19649 link_all_deplibs=$link_all_deplibs
19651 # Set to "yes" if exported symbols are required.
19652 always_export_symbols=$always_export_symbols
19654 # The commands to list exported symbols.
19655 export_symbols_cmds=$lt_export_symbols_cmds
19657 # Symbols that should not be listed in the preloaded symbols.
19658 exclude_expsyms=$lt_exclude_expsyms
19660 # Symbols that must always be exported.
19661 include_expsyms=$lt_include_expsyms
19663 # Commands necessary for linking programs (against libraries) with templates.
19664 prelink_cmds=$lt_prelink_cmds
19666 # Commands necessary for finishing linking programs.
19667 postlink_cmds=$lt_postlink_cmds
19669 # Specify filename containing input files.
19670 file_list_spec=$lt_file_list_spec
19672 # How to hardcode a shared library path into an executable.
19673 hardcode_action=$hardcode_action
19675 # ### END LIBTOOL CONFIG
19681 cat <<\_LT_EOF >> "$cfgfile"
19682 # AIX sometimes has problems with the GCC collect2 program. For some
19683 # reason, if we set the COLLECT_NAMES environment variable, the problems
19684 # vanish in a puff of smoke.
19685 if test "X${COLLECT_NAMES+set}" != Xset; then
19687 export COLLECT_NAMES
19694 ltmain="$ac_aux_dir/ltmain.sh"
19697 # We use sed instead of cat because bash on DJGPP gets confused if
19698 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19699 # text mode, it properly converts lines to CR/LF. This bash problem
19700 # is reportedly fixed, but why not run on old versions too?
19701 sed '$q' "$ltmain" >> "$cfgfile" \
19702 || (rm -f "$cfgfile"; exit 1)
19704 if test x"$xsi_shell" = xyes; then
19705 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19709 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19710 \ * ) func_dirname_result="${3}" ;;\
19712 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19713 && mv -f "$cfgfile.tmp" "$cfgfile" \
19714 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19715 test 0 -eq $? || _lt_function_replace_fail=:
19718 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19721 \ func_basename_result="${1##*/}"\
19722 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19723 && mv -f "$cfgfile.tmp" "$cfgfile" \
19724 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19725 test 0 -eq $? || _lt_function_replace_fail=:
19728 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19729 func_dirname_and_basename ()\
19732 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19733 \ * ) func_dirname_result="${3}" ;;\
19735 \ func_basename_result="${1##*/}"\
19736 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19737 && mv -f "$cfgfile.tmp" "$cfgfile" \
19738 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19739 test 0 -eq $? || _lt_function_replace_fail=:
19742 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19745 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19746 \ # positional parameters, so assign one to ordinary parameter first.\
19747 \ func_stripname_result=${3}\
19748 \ func_stripname_result=${func_stripname_result#"${1}"}\
19749 \ func_stripname_result=${func_stripname_result%"${2}"}\
19750 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19751 && mv -f "$cfgfile.tmp" "$cfgfile" \
19752 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19753 test 0 -eq $? || _lt_function_replace_fail=:
19756 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19757 func_split_long_opt ()\
19759 \ func_split_long_opt_name=${1%%=*}\
19760 \ func_split_long_opt_arg=${1#*=}\
19761 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19762 && mv -f "$cfgfile.tmp" "$cfgfile" \
19763 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19764 test 0 -eq $? || _lt_function_replace_fail=:
19767 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19768 func_split_short_opt ()\
19770 \ func_split_short_opt_arg=${1#??}\
19771 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19772 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19773 && mv -f "$cfgfile.tmp" "$cfgfile" \
19774 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19775 test 0 -eq $? || _lt_function_replace_fail=:
19778 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19782 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19783 \ *) func_lo2o_result=${1} ;;\
19785 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19786 && mv -f "$cfgfile.tmp" "$cfgfile" \
19787 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19788 test 0 -eq $? || _lt_function_replace_fail=:
19791 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19794 func_xform_result=${1%.*}.lo\
19795 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19796 && mv -f "$cfgfile.tmp" "$cfgfile" \
19797 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19798 test 0 -eq $? || _lt_function_replace_fail=:
19801 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19804 func_arith_result=$(( $* ))\
19805 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19806 && mv -f "$cfgfile.tmp" "$cfgfile" \
19807 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19808 test 0 -eq $? || _lt_function_replace_fail=:
19811 sed -e '/^func_len ()$/,/^} # func_len /c\
19814 func_len_result=${#1}\
19815 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19816 && mv -f "$cfgfile.tmp" "$cfgfile" \
19817 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19818 test 0 -eq $? || _lt_function_replace_fail=:
19822 if test x"$lt_shell_append" = xyes; then
19823 sed -e '/^func_append ()$/,/^} # func_append /c\
19826 eval "${1}+=\\${2}"\
19827 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19828 && mv -f "$cfgfile.tmp" "$cfgfile" \
19829 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19830 test 0 -eq $? || _lt_function_replace_fail=:
19833 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19834 func_append_quoted ()\
19836 \ func_quote_for_eval "${2}"\
19837 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19838 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19839 && mv -f "$cfgfile.tmp" "$cfgfile" \
19840 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19841 test 0 -eq $? || _lt_function_replace_fail=:
19844 # Save a `func_append' function call where possible by direct use of '+='
19845 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19846 && mv -f "$cfgfile.tmp" "$cfgfile" \
19847 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19848 test 0 -eq $? || _lt_function_replace_fail=:
19850 # Save a `func_append' function call even when '+=' is not available
19851 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19852 && mv -f "$cfgfile.tmp" "$cfgfile" \
19853 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19854 test 0 -eq $? || _lt_function_replace_fail=:
19857 if test x"$_lt_function_replace_fail" = x":"; then
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19859 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19863 mv -f "$cfgfile" "$ofile" ||
19864 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19875 ac_clean_files=$ac_clean_files_save
19877 test $ac_write_fail = 0 ||
19878 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19881 # configure is writing to config.log, and then calls config.status.
19882 # config.status does its own redirection, appending to config.log.
19883 # Unfortunately, on DOS this fails, as config.log is still kept open
19884 # by configure, so config.status won't be able to write to it; its
19885 # output is simply discarded. So we exec the FD to /dev/null,
19886 # effectively closing config.log, so it can be properly (re)opened and
19887 # appended to by config.status. When coming back to configure, we
19888 # need to make the FD available again.
19889 if test "$no_create" != yes; then
19891 ac_config_status_args=
19892 test "$silent" = yes &&
19893 ac_config_status_args="$ac_config_status_args --quiet"
19895 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19897 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19898 # would make configure fail if this is the last instruction.
19899 $ac_cs_success || as_fn_exit 1
19901 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19903 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}