2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXxf86misc 1.0.3.
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
271 # Portably unset VAR.
274 { eval $1=; unset $1;}
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
298 # Create "$as_dir" as a directory, including parents if necessary.
303 -*) as_dir=./$as_dir;;
305 test -d "$as_dir" || eval $as_mkdir_p || {
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 test -d "$as_dir" && break
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
374 as_val=`expr "$@" || test $? -eq 1`
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
386 as_status=$1; test $as_status -eq 0 && as_status=1
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
468 # Exit status is that of the last command.
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
490 mkdir conf$$.dir 2>/dev/null
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
515 test -d ./-p && rmdir ./-p
519 if test -x / >/dev/null 2>&1; then
522 if ls -dL / >/dev/null 2>&1; then
529 if test -d "$1"; then
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
540 as_executable_p=$as_test_x
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548 SHELL=${CONFIG_SHELL-/bin/sh}
551 test -n "$DJDIR" || exec 7<&0 </dev/null
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
571 # Identity of this package.
572 PACKAGE_NAME='libXxf86misc'
573 PACKAGE_TARNAME='libXxf86misc'
574 PACKAGE_VERSION='1.0.3'
575 PACKAGE_STRING='libXxf86misc 1.0.3'
576 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
579 ac_unique_file="Makefile.am"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
616 ac_subst_vars='am__EXEEXT_FALSE
689 MAINTAINER_MODE_FALSE
699 INSTALL_STRIP_PROGRAM
741 program_transform_name
754 enable_option_checking
755 enable_maintainer_mode
756 enable_dependency_tracking
757 enable_strict_compilation
765 enable_malloc0returnsnull
767 ac_precious_vars='build_alias
781 # Initialize some variables set by options.
783 ac_init_version=false
784 ac_unrecognized_opts=
786 # The variables have the same names as the options, with
787 # dashes changed to underlines.
795 program_transform_name=s,x,x,
803 # Installation directory options.
804 # These are left unexpanded so users can "make install exec_prefix=/foo"
805 # and all the variables that are supposed to be based on exec_prefix
806 # by default will actually change.
807 # Use braces instead of parens because sh, perl, etc. also accept them.
808 # (The list follows the same order as the GNU Coding Standards.)
809 bindir='${exec_prefix}/bin'
810 sbindir='${exec_prefix}/sbin'
811 libexecdir='${exec_prefix}/libexec'
812 datarootdir='${prefix}/share'
813 datadir='${datarootdir}'
814 sysconfdir='${prefix}/etc'
815 sharedstatedir='${prefix}/com'
816 localstatedir='${prefix}/var'
817 includedir='${prefix}/include'
818 oldincludedir='/usr/include'
819 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
820 infodir='${datarootdir}/info'
825 libdir='${exec_prefix}/lib'
826 localedir='${datarootdir}/locale'
827 mandir='${datarootdir}/man'
833 # If the previous option needs an argument, assign it.
834 if test -n "$ac_prev"; then
835 eval $ac_prev=\$ac_option
841 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846 # Accept the important Cygnus configure options, so we can diagnose typos.
848 case $ac_dashdash$ac_option in
852 -bindir | --bindir | --bindi | --bind | --bin | --bi)
854 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857 -build | --build | --buil | --bui | --bu)
858 ac_prev=build_alias ;;
859 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860 build_alias=$ac_optarg ;;
862 -cache-file | --cache-file | --cache-fil | --cache-fi \
863 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864 ac_prev=cache_file ;;
865 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867 cache_file=$ac_optarg ;;
870 cache_file=config.cache ;;
872 -datadir | --datadir | --datadi | --datad)
874 -datadir=* | --datadir=* | --datadi=* | --datad=*)
875 datadir=$ac_optarg ;;
877 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878 | --dataroo | --dataro | --datar)
879 ac_prev=datarootdir ;;
880 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882 datarootdir=$ac_optarg ;;
884 -disable-* | --disable-*)
885 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888 as_fn_error $? "invalid feature name: $ac_useropt"
889 ac_useropt_orig=$ac_useropt
890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896 ac_unrecognized_sep=', ';;
898 eval enable_$ac_useropt=no ;;
900 -docdir | --docdir | --docdi | --doc | --do)
902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910 -enable-* | --enable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error $? "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
924 eval enable_$ac_useropt=\$ac_optarg ;;
926 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928 | --exec | --exe | --ex)
929 ac_prev=exec_prefix ;;
930 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932 | --exec=* | --exe=* | --ex=*)
933 exec_prefix=$ac_optarg ;;
935 -gas | --gas | --ga | --g)
936 # Obsolete; use --with-gas.
939 -help | --help | --hel | --he | -h)
941 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942 ac_init_help=recursive ;;
943 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944 ac_init_help=short ;;
946 -host | --host | --hos | --ho)
947 ac_prev=host_alias ;;
948 -host=* | --host=* | --hos=* | --ho=*)
949 host_alias=$ac_optarg ;;
951 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955 htmldir=$ac_optarg ;;
957 -includedir | --includedir | --includedi | --included | --include \
958 | --includ | --inclu | --incl | --inc)
959 ac_prev=includedir ;;
960 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961 | --includ=* | --inclu=* | --incl=* | --inc=*)
962 includedir=$ac_optarg ;;
964 -infodir | --infodir | --infodi | --infod | --info | --inf)
966 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967 infodir=$ac_optarg ;;
969 -libdir | --libdir | --libdi | --libd)
971 -libdir=* | --libdir=* | --libdi=* | --libd=*)
974 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975 | --libexe | --libex | --libe)
976 ac_prev=libexecdir ;;
977 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978 | --libexe=* | --libex=* | --libe=*)
979 libexecdir=$ac_optarg ;;
981 -localedir | --localedir | --localedi | --localed | --locale)
983 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984 localedir=$ac_optarg ;;
986 -localstatedir | --localstatedir | --localstatedi | --localstated \
987 | --localstate | --localstat | --localsta | --localst | --locals)
988 ac_prev=localstatedir ;;
989 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991 localstatedir=$ac_optarg ;;
993 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
999 # Obsolete; use --without-fp.
1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003 | --no-cr | --no-c | -n)
1006 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012 | --oldin | --oldi | --old | --ol | --o)
1013 ac_prev=oldincludedir ;;
1014 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017 oldincludedir=$ac_optarg ;;
1019 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022 prefix=$ac_optarg ;;
1024 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025 | --program-pre | --program-pr | --program-p)
1026 ac_prev=program_prefix ;;
1027 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029 program_prefix=$ac_optarg ;;
1031 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032 | --program-suf | --program-su | --program-s)
1033 ac_prev=program_suffix ;;
1034 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036 program_suffix=$ac_optarg ;;
1038 -program-transform-name | --program-transform-name \
1039 | --program-transform-nam | --program-transform-na \
1040 | --program-transform-n | --program-transform- \
1041 | --program-transform | --program-transfor \
1042 | --program-transfo | --program-transf \
1043 | --program-trans | --program-tran \
1044 | --progr-tra | --program-tr | --program-t)
1045 ac_prev=program_transform_name ;;
1046 -program-transform-name=* | --program-transform-name=* \
1047 | --program-transform-nam=* | --program-transform-na=* \
1048 | --program-transform-n=* | --program-transform-=* \
1049 | --program-transform=* | --program-transfor=* \
1050 | --program-transfo=* | --program-transf=* \
1051 | --program-trans=* | --program-tran=* \
1052 | --progr-tra=* | --program-tr=* | --program-t=*)
1053 program_transform_name=$ac_optarg ;;
1055 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058 pdfdir=$ac_optarg ;;
1060 -psdir | --psdir | --psdi | --psd | --ps)
1062 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1069 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073 sbindir=$ac_optarg ;;
1075 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077 | --sharedst | --shareds | --shared | --share | --shar \
1079 ac_prev=sharedstatedir ;;
1080 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084 sharedstatedir=$ac_optarg ;;
1086 -site | --site | --sit)
1088 -site=* | --site=* | --sit=*)
1091 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1094 srcdir=$ac_optarg ;;
1096 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097 | --syscon | --sysco | --sysc | --sys | --sy)
1098 ac_prev=sysconfdir ;;
1099 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1101 sysconfdir=$ac_optarg ;;
1103 -target | --target | --targe | --targ | --tar | --ta | --t)
1104 ac_prev=target_alias ;;
1105 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1106 target_alias=$ac_optarg ;;
1108 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111 -version | --version | --versio | --versi | --vers | -V)
1112 ac_init_version=: ;;
1115 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error $? "invalid package name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1128 eval with_$ac_useropt=\$ac_optarg ;;
1130 -without-* | --without-*)
1131 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error $? "invalid package name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1144 eval with_$ac_useropt=no ;;
1147 # Obsolete; use --with-x.
1150 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1151 | --x-incl | --x-inc | --x-in | --x-i)
1152 ac_prev=x_includes ;;
1153 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1154 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1155 x_includes=$ac_optarg ;;
1157 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1158 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1159 ac_prev=x_libraries ;;
1160 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1161 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1162 x_libraries=$ac_optarg ;;
1164 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1165 Try \`$0 --help' for more information"
1169 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1170 # Reject names that are not valid shell variable names.
1171 case $ac_envvar in #(
1172 '' | [0-9]* | *[!_$as_cr_alnum]* )
1173 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1175 eval $ac_envvar=\$ac_optarg
1176 export $ac_envvar ;;
1179 # FIXME: should be removed in autoconf 3.0.
1180 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1181 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1183 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1189 if test -n "$ac_prev"; then
1190 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1191 as_fn_error $? "missing argument to $ac_option"
1194 if test -n "$ac_unrecognized_opts"; then
1195 case $enable_option_checking in
1197 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1198 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1202 # Check all directory arguments for consistency.
1203 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1208 eval ac_val=\$$ac_var
1209 # Remove trailing slashes.
1212 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213 eval $ac_var=\$ac_val;;
1215 # Be sure to have absolute directory names.
1217 [\\/$]* | ?:[\\/]* ) continue;;
1218 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1228 target=$target_alias
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x; then
1232 if test "x$build_alias" = x; then
1233 cross_compiling=maybe
1234 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1235 If a cross compiler is detected then cross compile mode will be used" >&2
1236 elif test "x$build_alias" != "x$host_alias"; then
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244 test "$silent" = yes && exec 6>/dev/null
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250 as_fn_error $? "working directory cannot be determined"
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 as_fn_error $? "pwd does not report name of working directory"
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$as_myself" ||
1260 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$as_myself" : 'X\(//\)[^/]' \| \
1262 X"$as_myself" : 'X\(//\)$' \| \
1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264 $as_echo X"$as_myself" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1287 ac_srcdir_defaulted=no
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 # Report the --help message.
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1321 \`configure' configures libXxf86misc 1.0.3 to adapt to many kinds of systems.
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1328 Defaults for the options are specified in brackets.
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking ...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1352 For better control, use the options below.
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/libXxf86misc]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1379 --program-prefix=PREFIX prepend PREFIX to installed program names
1380 --program-suffix=SUFFIX append SUFFIX to installed program names
1381 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1384 --build=BUILD configure for building on BUILD [guessed]
1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389 if test -n "$ac_init_help"; then
1390 case $ac_init_help in
1391 short | recursive ) echo "Configuration of libXxf86misc 1.0.3:";;
1396 --disable-option-checking ignore unrecognized --enable/--with options
1397 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1398 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1399 --enable-maintainer-mode enable make rules and dependencies not useful
1400 (and sometimes confusing) to the casual installer
1401 --disable-dependency-tracking speeds up one-time build
1402 --enable-dependency-tracking do not reject slow dependency extractors
1403 --enable-strict-compilation
1404 Enable all warnings from compiler and make them
1405 errors (default: disabled)
1406 --enable-silent-rules less verbose build output (undo: `make V=1')
1407 --disable-silent-rules verbose build output (undo: `make V=0')
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-libtool-lock avoid locking (might break parallel builds)
1413 --enable-malloc0returnsnull
1414 malloc(0) returns NULL (default: auto)
1417 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1418 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1419 --with-pic try to use only PIC/non-PIC objects [default=use
1421 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1423 Some influential environment variables:
1424 CC C compiler command
1425 CFLAGS C compiler flags
1426 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1427 nonstandard directory <lib dir>
1428 LIBS libraries to pass to the linker, e.g. -l<library>
1429 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1430 you have headers in a nonstandard directory <include dir>
1432 PKG_CONFIG path to pkg-config utility
1434 C compiler flags for XXF86MISC, overriding pkg-config
1436 linker flags for XXF86MISC, overriding pkg-config
1438 Use these variables to override the choices made by `configure' or to help
1439 it to find libraries and programs with nonstandard names/locations.
1441 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1446 if test "$ac_init_help" = "recursive"; then
1447 # If there are subdirs, report their specific --help.
1448 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1449 test -d "$ac_dir" ||
1450 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1455 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1458 # A ".." for each directory in $ac_dir_suffix.
1459 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1460 case $ac_top_builddir_sub in
1461 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1465 ac_abs_top_builddir=$ac_pwd
1466 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1467 # for backward compatibility:
1468 ac_top_builddir=$ac_top_build_prefix
1471 .) # We are building in place.
1473 ac_top_srcdir=$ac_top_builddir_sub
1474 ac_abs_top_srcdir=$ac_pwd ;;
1475 [\\/]* | ?:[\\/]* ) # Absolute name.
1476 ac_srcdir=$srcdir$ac_dir_suffix;
1477 ac_top_srcdir=$srcdir
1478 ac_abs_top_srcdir=$srcdir ;;
1480 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1481 ac_top_srcdir=$ac_top_build_prefix$srcdir
1482 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1484 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1486 cd "$ac_dir" || { ac_status=$?; continue; }
1487 # Check for guested configure.
1488 if test -f "$ac_srcdir/configure.gnu"; then
1490 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1491 elif test -f "$ac_srcdir/configure"; then
1493 $SHELL "$ac_srcdir/configure" --help=recursive
1495 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1497 cd "$ac_pwd" || { ac_status=$?; break; }
1501 test -n "$ac_init_help" && exit $ac_status
1502 if $ac_init_version; then
1504 libXxf86misc configure 1.0.3
1505 generated by GNU Autoconf 2.68
1507 Copyright (C) 2010 Free Software Foundation, Inc.
1508 This configure script is free software; the Free Software Foundation
1509 gives unlimited permission to copy, distribute and modify it.
1514 ## ------------------------ ##
1515 ## Autoconf initialization. ##
1516 ## ------------------------ ##
1518 # ac_fn_c_try_compile LINENO
1519 # --------------------------
1520 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1521 ac_fn_c_try_compile ()
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 rm -f conftest.$ac_objext
1525 if { { ac_try="$ac_compile"
1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528 *) ac_try_echo=$ac_try;;
1530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531 $as_echo "$ac_try_echo"; } >&5
1532 (eval "$ac_compile") 2>conftest.err
1534 if test -s conftest.err; then
1535 grep -v '^ *+' conftest.err >conftest.er1
1536 cat conftest.er1 >&5
1537 mv -f conftest.er1 conftest.err
1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540 test $ac_status = 0; } && {
1541 test -z "$ac_c_werror_flag" ||
1542 test ! -s conftest.err
1543 } && test -s conftest.$ac_objext; then :
1546 $as_echo "$as_me: failed program was:" >&5
1547 sed 's/^/| /' conftest.$ac_ext >&5
1551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1552 as_fn_set_status $ac_retval
1554 } # ac_fn_c_try_compile
1556 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1557 # ---------------------------------------------
1558 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1560 ac_fn_c_check_decl ()
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 as_decl_name=`echo $2|sed 's/ *(.*//'`
1564 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1566 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1567 if eval \${$3+:} false; then :
1568 $as_echo_n "(cached) " >&6
1570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1571 /* end confdefs.h. */
1576 #ifndef $as_decl_name
1578 (void) $as_decl_use;
1580 (void) $as_decl_name;
1588 if ac_fn_c_try_compile "$LINENO"; then :
1593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1597 $as_echo "$ac_res" >&6; }
1598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600 } # ac_fn_c_check_decl
1602 # ac_fn_c_try_cpp LINENO
1603 # ----------------------
1604 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 if { { ac_try="$ac_cpp conftest.$ac_ext"
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } > conftest.i && {
1624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1625 test ! -s conftest.err
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635 as_fn_set_status $ac_retval
1639 # ac_fn_c_try_run LINENO
1640 # ----------------------
1641 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1642 # that executables *can* be run.
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 if { { ac_try="$ac_link"
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_link") 2>&5
1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1657 { { case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_try") 2>&5
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; }; }; then :
1669 $as_echo "$as_me: program exited with status $ac_status" >&5
1670 $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1673 ac_retval=$ac_status
1675 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677 as_fn_set_status $ac_retval
1681 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1682 # -------------------------------------------------------
1683 # Tests whether HEADER exists and can be compiled using the include files in
1684 # INCLUDES, setting the cache variable VAR accordingly.
1685 ac_fn_c_check_header_compile ()
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1689 $as_echo_n "checking for $2... " >&6; }
1690 if eval \${$3+:} false; then :
1691 $as_echo_n "(cached) " >&6
1693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1694 /* end confdefs.h. */
1698 if ac_fn_c_try_compile "$LINENO"; then :
1703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1707 $as_echo "$ac_res" >&6; }
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710 } # ac_fn_c_check_header_compile
1712 # ac_fn_c_try_link LINENO
1713 # -----------------------
1714 # Try to link conftest.$ac_ext, and return whether this succeeded.
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 rm -f conftest.$ac_objext conftest$ac_exeext
1719 if { { ac_try="$ac_link"
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_link") 2>conftest.err
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && {
1735 test -z "$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 } && test -s conftest$ac_exeext && {
1738 test "$cross_compiling" = yes ||
1739 $as_test_x conftest$ac_exeext
1743 $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1748 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1749 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1750 # interfere with the next link command; also delete a directory that is
1751 # left behind by Apple's compiler. We do this before executing the actions.
1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 as_fn_set_status $ac_retval
1756 } # ac_fn_c_try_link
1758 # ac_fn_c_check_func LINENO FUNC VAR
1759 # ----------------------------------
1760 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1761 ac_fn_c_check_func ()
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765 $as_echo_n "checking for $2... " >&6; }
1766 if eval \${$3+:} false; then :
1767 $as_echo_n "(cached) " >&6
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1771 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1773 #define $2 innocuous_$2
1775 /* System header to define __stub macros and hopefully few prototypes,
1776 which can conflict with char $2 (); below.
1777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1778 <limits.h> exists even on freestanding compilers. */
1781 # include <limits.h>
1783 # include <assert.h>
1788 /* Override any GCC internal prototype to avoid an error.
1789 Use char because int might match the return type of a GCC
1790 builtin and then its argument prototype would still apply. */
1795 /* The GNU C library defines this for functions which it implements
1796 to always fail with ENOSYS. Some functions are actually named
1797 something starting with __ and the normal name is an alias. */
1798 #if defined __stub_$2 || defined __stub___$2
1810 if ac_fn_c_try_link "$LINENO"; then :
1815 rm -f core conftest.err conftest.$ac_objext \
1816 conftest$ac_exeext conftest.$ac_ext
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 } # ac_fn_c_check_func
1824 cat >config.log <<_ACEOF
1825 This file contains any messages produced by compilers while
1826 running configure, to aid debugging if configure makes a mistake.
1828 It was created by libXxf86misc $as_me 1.0.3, which was
1829 generated by GNU Autoconf 2.68. Invocation command line was
1841 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1842 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1843 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1844 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1845 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1847 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1848 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1850 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1851 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1852 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1853 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1854 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1855 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1856 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864 test -z "$as_dir" && as_dir=.
1865 $as_echo "PATH: $as_dir"
1881 # Keep a trace of the command line.
1882 # Strip out --no-create and --no-recursion so they do not pile up.
1883 # Strip out --silent because we don't want to record it for future runs.
1884 # Also quote any args containing shell meta-characters.
1885 # Make two passes to allow for proper duplicate-argument suppression.
1889 ac_must_keep_next=false
1895 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1896 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1897 | -silent | --silent | --silen | --sile | --sil)
1900 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1903 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1905 as_fn_append ac_configure_args1 " '$ac_arg'"
1906 if test $ac_must_keep_next = true; then
1907 ac_must_keep_next=false # Got value, back to normal.
1910 *=* | --config-cache | -C | -disable-* | --disable-* \
1911 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1912 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1913 | -with-* | --with-* | -without-* | --without-* | --x)
1914 case "$ac_configure_args0 " in
1915 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1918 -* ) ac_must_keep_next=true ;;
1921 as_fn_append ac_configure_args " '$ac_arg'"
1926 { ac_configure_args0=; unset ac_configure_args0;}
1927 { ac_configure_args1=; unset ac_configure_args1;}
1929 # When interrupted or exit'd, cleanup temporary files, and complete
1930 # config.log. We remove comments because anyway the quotes in there
1931 # would cause problems or look ugly.
1932 # WARNING: Use '\'' to represent an apostrophe within the trap.
1933 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1934 trap 'exit_status=$?
1935 # Save into config.log some information that might help in debugging.
1939 $as_echo "## ---------------- ##
1940 ## Cache variables. ##
1941 ## ---------------- ##"
1943 # The following way of writing the cache mishandles newlines in values,
1945 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1946 eval ac_val=\$$ac_var
1950 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1951 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1954 _ | IFS | as_nl) ;; #(
1955 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1956 *) { eval $ac_var=; unset $ac_var;} ;;
1961 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1962 *${as_nl}ac_space=\ *)
1964 "s/'\''/'\''\\\\'\'''\''/g;
1965 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1968 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1975 $as_echo "## ----------------- ##
1976 ## Output variables. ##
1977 ## ----------------- ##"
1979 for ac_var in $ac_subst_vars
1981 eval ac_val=\$$ac_var
1983 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1985 $as_echo "$ac_var='\''$ac_val'\''"
1989 if test -n "$ac_subst_files"; then
1990 $as_echo "## ------------------- ##
1991 ## File substitutions. ##
1992 ## ------------------- ##"
1994 for ac_var in $ac_subst_files
1996 eval ac_val=\$$ac_var
1998 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2000 $as_echo "$ac_var='\''$ac_val'\''"
2005 if test -s confdefs.h; then
2006 $as_echo "## ----------- ##
2013 test "$ac_signal" != 0 &&
2014 $as_echo "$as_me: caught signal $ac_signal"
2015 $as_echo "$as_me: exit $exit_status"
2017 rm -f core *.core core.conftest.* &&
2018 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2021 for ac_signal in 1 2 13 15; do
2022 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2026 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2027 rm -f -r conftest* confdefs.h
2029 $as_echo "/* confdefs.h */" > confdefs.h
2031 # Predefined preprocessor variables.
2033 cat >>confdefs.h <<_ACEOF
2034 #define PACKAGE_NAME "$PACKAGE_NAME"
2037 cat >>confdefs.h <<_ACEOF
2038 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2041 cat >>confdefs.h <<_ACEOF
2042 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2045 cat >>confdefs.h <<_ACEOF
2046 #define PACKAGE_STRING "$PACKAGE_STRING"
2049 cat >>confdefs.h <<_ACEOF
2050 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2053 cat >>confdefs.h <<_ACEOF
2054 #define PACKAGE_URL "$PACKAGE_URL"
2058 # Let the site file select an alternate cache file if it wants to.
2059 # Prefer an explicitly selected file to automatically selected ones.
2062 if test -n "$CONFIG_SITE"; then
2063 # We do not want a PATH search for config.site.
2064 case $CONFIG_SITE in #((
2065 -*) ac_site_file1=./$CONFIG_SITE;;
2066 */*) ac_site_file1=$CONFIG_SITE;;
2067 *) ac_site_file1=./$CONFIG_SITE;;
2069 elif test "x$prefix" != xNONE; then
2070 ac_site_file1=$prefix/share/config.site
2071 ac_site_file2=$prefix/etc/config.site
2073 ac_site_file1=$ac_default_prefix/share/config.site
2074 ac_site_file2=$ac_default_prefix/etc/config.site
2076 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2078 test "x$ac_site_file" = xNONE && continue
2079 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2081 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2082 sed 's/^/| /' "$ac_site_file" >&5
2084 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2086 as_fn_error $? "failed to load site script $ac_site_file
2087 See \`config.log' for more details" "$LINENO" 5; }
2091 if test -r "$cache_file"; then
2092 # Some versions of bash will fail to source /dev/null (special files
2093 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2094 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2096 $as_echo "$as_me: loading cache $cache_file" >&6;}
2098 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2099 *) . "./$cache_file";;
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2104 $as_echo "$as_me: creating cache $cache_file" >&6;}
2108 # Check that the precious variables saved in the cache have kept the same
2110 ac_cache_corrupted=false
2111 for ac_var in $ac_precious_vars; do
2112 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2113 eval ac_new_set=\$ac_env_${ac_var}_set
2114 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2115 eval ac_new_val=\$ac_env_${ac_var}_value
2116 case $ac_old_set,$ac_new_set in
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2119 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2120 ac_cache_corrupted=: ;;
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2123 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2124 ac_cache_corrupted=: ;;
2127 if test "x$ac_old_val" != "x$ac_new_val"; then
2128 # differences in whitespace do not lead to failure.
2129 ac_old_val_w=`echo x $ac_old_val`
2130 ac_new_val_w=`echo x $ac_new_val`
2131 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2133 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2134 ac_cache_corrupted=:
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2137 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2138 eval $ac_var=\$ac_old_val
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2141 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2143 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2146 # Pass precious variables to config.status.
2147 if test "$ac_new_set" = set; then
2149 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2150 *) ac_arg=$ac_var=$ac_new_val ;;
2152 case " $ac_configure_args " in
2153 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2154 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2158 if $ac_cache_corrupted; then
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2162 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2163 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2165 ## -------------------- ##
2166 ## Main body of script. ##
2167 ## -------------------- ##
2170 ac_cpp='$CPP $CPPFLAGS'
2171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2177 ac_config_headers="$ac_config_headers src/config.h"
2180 # Initialize Automake
2181 am__api_version='1.11'
2184 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2185 if test -f "$ac_dir/install-sh"; then
2187 ac_install_sh="$ac_aux_dir/install-sh -c"
2189 elif test -f "$ac_dir/install.sh"; then
2191 ac_install_sh="$ac_aux_dir/install.sh -c"
2193 elif test -f "$ac_dir/shtool"; then
2195 ac_install_sh="$ac_aux_dir/shtool install -c"
2199 if test -z "$ac_aux_dir"; then
2200 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2203 # These three variables are undocumented and unsupported,
2204 # and are intended to be withdrawn in a future Autoconf release.
2205 # They can cause serious problems if a builder's source tree is in a directory
2206 # whose full name contains unusual characters.
2207 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2208 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2209 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2212 # Find a good install program. We prefer a C program (faster),
2213 # so one script is as good as another. But avoid the broken or
2214 # incompatible versions:
2215 # SysV /etc/install, /usr/sbin/install
2216 # SunOS /usr/etc/install
2217 # IRIX /sbin/install
2219 # AmigaOS /C/install, which installs bootblocks on floppy discs
2220 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2221 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2222 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2223 # OS/2's system install, which has a completely different semantic
2224 # ./install, which can be erroneously created by make from ./install.sh.
2225 # Reject install programs that cannot install multiple files.
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2227 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2228 if test -z "$INSTALL"; then
2229 if ${ac_cv_path_install+:} false; then :
2230 $as_echo_n "(cached) " >&6
2232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 test -z "$as_dir" && as_dir=.
2237 # Account for people who put trailing slashes in PATH elements.
2238 case $as_dir/ in #((
2239 ./ | .// | /[cC]/* | \
2240 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2241 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2244 # OSF1 and SCO ODT 3.0 have their own names for install.
2245 # Don't use installbsd from OSF since it installs stuff as root
2247 for ac_prog in ginstall scoinst install; do
2248 for ac_exec_ext in '' $ac_executable_extensions; do
2249 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2250 if test $ac_prog = install &&
2251 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2252 # AIX install. It has an incompatible calling convention.
2254 elif test $ac_prog = install &&
2255 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2256 # program-specific install script used by HP pwplus--don't use.
2259 rm -rf conftest.one conftest.two conftest.dir
2260 echo one > conftest.one
2261 echo two > conftest.two
2263 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2264 test -s conftest.one && test -s conftest.two &&
2265 test -s conftest.dir/conftest.one &&
2266 test -s conftest.dir/conftest.two
2268 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2281 rm -rf conftest.one conftest.two conftest.dir
2284 if test "${ac_cv_path_install+set}" = set; then
2285 INSTALL=$ac_cv_path_install
2287 # As a last resort, use the slow shell script. Don't cache a
2288 # value for INSTALL within a source directory, because that will
2289 # break other packages using the cache if that directory is
2290 # removed, or if the value is a relative name.
2291 INSTALL=$ac_install_sh
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2295 $as_echo "$INSTALL" >&6; }
2297 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2298 # It thinks the first close brace ends the variable substitution.
2299 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2301 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2303 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2306 $as_echo_n "checking whether build environment is sane... " >&6; }
2309 echo timestamp > conftest.file
2310 # Reject unsafe characters in $srcdir or the absolute working directory
2311 # name. Accept space and tab only in the latter.
2315 *[\\\"\#\$\&\'\`$am_lf]*)
2316 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2319 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2320 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2323 # Do `set' in a subshell so we don't clobber the current shell's
2324 # arguments. Must try -L first in case configure is actually a
2325 # symlink; some systems play weird games with the mod time of symlinks
2326 # (eg FreeBSD returns the mod time of the symlink's containing
2329 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2330 if test "$*" = "X"; then
2332 set X `ls -t "$srcdir/configure" conftest.file`
2335 if test "$*" != "X $srcdir/configure conftest.file" \
2336 && test "$*" != "X conftest.file $srcdir/configure"; then
2338 # If neither matched, then we have a broken ls. This can happen
2339 # if, for instance, CONFIG_SHELL is bash and it inherits a
2340 # broken ls alias from the environment. This has actually
2341 # happened. Such a system could not be considered "sane".
2342 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2343 alias in your environment" "$LINENO" 5
2346 test "$2" = conftest.file
2352 as_fn_error $? "newly created file is older than distributed files!
2353 Check your system clock" "$LINENO" 5
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2356 $as_echo "yes" >&6; }
2357 test "$program_prefix" != NONE &&
2358 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2359 # Use a double $ so make ignores it.
2360 test "$program_suffix" != NONE &&
2361 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2362 # Double any \ or $.
2363 # By default was `s,x,x', remove it if useless.
2364 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2365 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2367 # expand $ac_aux_dir to an absolute path
2368 am_aux_dir=`cd $ac_aux_dir && pwd`
2370 if test x"${MISSING+set}" != xset; then
2373 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2375 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2378 # Use eval to expand $SHELL
2379 if eval "$MISSING --run true"; then
2380 am_missing_run="$MISSING --run "
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2384 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2387 if test x"${install_sh}" != xset; then
2390 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2392 install_sh="\${SHELL} $am_aux_dir/install-sh"
2396 # Installed binaries are usually stripped using `strip' when the user
2397 # run `make install-strip'. However `strip' might not be the right
2398 # tool to use in cross-compilation environments, therefore Automake
2399 # will honor the `STRIP' environment variable to overrule this program.
2400 if test "$cross_compiling" != no; then
2401 if test -n "$ac_tool_prefix"; then
2402 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2403 set dummy ${ac_tool_prefix}strip; ac_word=$2
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2405 $as_echo_n "checking for $ac_word... " >&6; }
2406 if ${ac_cv_prog_STRIP+:} false; then :
2407 $as_echo_n "(cached) " >&6
2409 if test -n "$STRIP"; then
2410 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 test -z "$as_dir" && as_dir=.
2417 for ac_exec_ext in '' $ac_executable_extensions; do
2418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2419 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2429 STRIP=$ac_cv_prog_STRIP
2430 if test -n "$STRIP"; then
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2432 $as_echo "$STRIP" >&6; }
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2435 $as_echo "no" >&6; }
2440 if test -z "$ac_cv_prog_STRIP"; then
2442 # Extract the first word of "strip", so it can be a program name with args.
2443 set dummy strip; ac_word=$2
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2445 $as_echo_n "checking for $ac_word... " >&6; }
2446 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2447 $as_echo_n "(cached) " >&6
2449 if test -n "$ac_ct_STRIP"; then
2450 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2459 ac_cv_prog_ac_ct_STRIP="strip"
2460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2470 if test -n "$ac_ct_STRIP"; then
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2472 $as_echo "$ac_ct_STRIP" >&6; }
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2475 $as_echo "no" >&6; }
2478 if test "x$ac_ct_STRIP" = x; then
2481 case $cross_compiling:$ac_tool_warned in
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2485 ac_tool_warned=yes ;;
2490 STRIP="$ac_cv_prog_STRIP"
2494 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2497 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2498 if test -z "$MKDIR_P"; then
2499 if ${ac_cv_path_mkdir+:} false; then :
2500 $as_echo_n "(cached) " >&6
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2506 test -z "$as_dir" && as_dir=.
2507 for ac_prog in mkdir gmkdir; do
2508 for ac_exec_ext in '' $ac_executable_extensions; do
2509 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2510 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2511 'mkdir (GNU coreutils) '* | \
2512 'mkdir (coreutils) '* | \
2513 'mkdir (fileutils) '4.1*)
2514 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2524 test -d ./--version && rmdir ./--version
2525 if test "${ac_cv_path_mkdir+set}" = set; then
2526 MKDIR_P="$ac_cv_path_mkdir -p"
2528 # As a last resort, use the slow shell script. Don't cache a
2529 # value for MKDIR_P within a source directory, because that will
2530 # break other packages using the cache if that directory is
2531 # removed, or if the value is a relative name.
2532 MKDIR_P="$ac_install_sh -d"
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2536 $as_echo "$MKDIR_P" >&6; }
2540 [\\/$]* | ?:[\\/]*) ;;
2541 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2544 for ac_prog in gawk mawk nawk awk
2546 # Extract the first word of "$ac_prog", so it can be a program name with args.
2547 set dummy $ac_prog; ac_word=$2
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2549 $as_echo_n "checking for $ac_word... " >&6; }
2550 if ${ac_cv_prog_AWK+:} false; then :
2551 $as_echo_n "(cached) " >&6
2553 if test -n "$AWK"; then
2554 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 test -z "$as_dir" && as_dir=.
2561 for ac_exec_ext in '' $ac_executable_extensions; do
2562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2563 ac_cv_prog_AWK="$ac_prog"
2564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2574 if test -n "$AWK"; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2576 $as_echo "$AWK" >&6; }
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2579 $as_echo "no" >&6; }
2583 test -n "$AWK" && break
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2587 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2589 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2590 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2591 $as_echo_n "(cached) " >&6
2593 cat >conftest.make <<\_ACEOF
2596 @echo '@@@%%%=$(MAKE)=@@@%%%'
2598 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2599 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2601 eval ac_cv_prog_make_${ac_make}_set=yes;;
2603 eval ac_cv_prog_make_${ac_make}_set=no;;
2607 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2609 $as_echo "yes" >&6; }
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2613 $as_echo "no" >&6; }
2614 SET_MAKE="MAKE=${MAKE-make}"
2617 rm -rf .tst 2>/dev/null
2618 mkdir .tst 2>/dev/null
2619 if test -d .tst; then
2624 rmdir .tst 2>/dev/null
2626 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2627 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2628 # is not polluted with repeated "-I."
2629 am__isrc=' -I$(srcdir)'
2630 # test to see if srcdir already configured
2631 if test -f $srcdir/config.status; then
2632 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2636 # test whether we have cygpath
2637 if test -z "$CYGPATH_W"; then
2638 if (cygpath --version) >/dev/null 2>/dev/null; then
2639 CYGPATH_W='cygpath -w'
2646 # Define the identity of the package.
2647 PACKAGE='libXxf86misc'
2651 cat >>confdefs.h <<_ACEOF
2652 #define PACKAGE "$PACKAGE"
2656 cat >>confdefs.h <<_ACEOF
2657 #define VERSION "$VERSION"
2660 # Some tools Automake needs.
2662 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2665 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2668 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2671 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2674 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2676 # We need awk for the "check" target. The system "awk" is bad on
2678 # Always define AMTAR for backward compatibility.
2680 AMTAR=${AMTAR-"${am_missing_run}tar"}
2682 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2690 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2691 # Check whether --enable-maintainer-mode was given.
2692 if test "${enable_maintainer_mode+set}" = set; then :
2693 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2695 USE_MAINTAINER_MODE=no
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2699 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2700 if test $USE_MAINTAINER_MODE = yes; then
2701 MAINTAINER_MODE_TRUE=
2702 MAINTAINER_MODE_FALSE='#'
2704 MAINTAINER_MODE_TRUE='#'
2705 MAINTAINER_MODE_FALSE=
2708 MAINT=$MAINTAINER_MODE_TRUE
2712 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2724 DEPDIR="${am__leading_dot}deps"
2726 ac_config_commands="$ac_config_commands depfiles"
2729 am_make=${MAKE-make}
2730 cat > confinc << 'END'
2732 @echo this is the am__doit target
2735 # If we don't find an include directive, just comment out the code.
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2737 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2741 # First try GNU make style include.
2742 echo "include confinc" > confmf
2743 # Ignore all kinds of additional output from `make'.
2744 case `$am_make -s -f confmf 2> /dev/null` in #(
2745 *the\ am__doit\ target*)
2751 # Now try BSD make style include.
2752 if test "$am__include" = "#"; then
2753 echo '.include "confinc"' > confmf
2754 case `$am_make -s -f confmf 2> /dev/null` in #(
2755 *the\ am__doit\ target*)
2756 am__include=.include
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2765 $as_echo "$_am_result" >&6; }
2766 rm -f confinc confmf
2768 # Check whether --enable-dependency-tracking was given.
2769 if test "${enable_dependency_tracking+set}" = set; then :
2770 enableval=$enable_dependency_tracking;
2773 if test "x$enable_dependency_tracking" != xno; then
2774 am_depcomp="$ac_aux_dir/depcomp"
2777 if test "x$enable_dependency_tracking" != xno; then
2787 ac_cpp='$CPP $CPPFLAGS'
2788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2791 if test -n "$ac_tool_prefix"; then
2792 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2793 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795 $as_echo_n "checking for $ac_word... " >&6; }
2796 if ${ac_cv_prog_CC+:} false; then :
2797 $as_echo_n "(cached) " >&6
2799 if test -n "$CC"; then
2800 ac_cv_prog_CC="$CC" # Let the user override the test.
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 test -z "$as_dir" && as_dir=.
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2809 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 if test -n "$CC"; then
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2822 $as_echo "$CC" >&6; }
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 $as_echo "no" >&6; }
2830 if test -z "$ac_cv_prog_CC"; then
2832 # Extract the first word of "gcc", so it can be a program name with args.
2833 set dummy gcc; ac_word=$2
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2835 $as_echo_n "checking for $ac_word... " >&6; }
2836 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2837 $as_echo_n "(cached) " >&6
2839 if test -n "$ac_ct_CC"; then
2840 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 test -z "$as_dir" && as_dir=.
2847 for ac_exec_ext in '' $ac_executable_extensions; do
2848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2849 ac_cv_prog_ac_ct_CC="gcc"
2850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2860 if test -n "$ac_ct_CC"; then
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2862 $as_echo "$ac_ct_CC" >&6; }
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865 $as_echo "no" >&6; }
2868 if test "x$ac_ct_CC" = x; then
2871 case $cross_compiling:$ac_tool_warned in
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2875 ac_tool_warned=yes ;;
2883 if test -z "$CC"; then
2884 if test -n "$ac_tool_prefix"; then
2885 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2886 set dummy ${ac_tool_prefix}cc; ac_word=$2
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888 $as_echo_n "checking for $ac_word... " >&6; }
2889 if ${ac_cv_prog_CC+:} false; then :
2890 $as_echo_n "(cached) " >&6
2892 if test -n "$CC"; then
2893 ac_cv_prog_CC="$CC" # Let the user override the test.
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902 ac_cv_prog_CC="${ac_tool_prefix}cc"
2903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 if test -n "$CC"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2915 $as_echo "$CC" >&6; }
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918 $as_echo "no" >&6; }
2924 if test -z "$CC"; then
2925 # Extract the first word of "cc", so it can be a program name with args.
2926 set dummy cc; ac_word=$2
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2928 $as_echo_n "checking for $ac_word... " >&6; }
2929 if ${ac_cv_prog_CC+:} false; then :
2930 $as_echo_n "(cached) " >&6
2932 if test -n "$CC"; then
2933 ac_cv_prog_CC="$CC" # Let the user override the test.
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2943 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2944 ac_prog_rejected=yes
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 if test $ac_prog_rejected = yes; then
2956 # We found a bogon in the path, so make sure we never use it.
2957 set dummy $ac_cv_prog_CC
2959 if test $# != 0; then
2960 # We chose a different compiler from the bogus one.
2961 # However, it has the same basename, so the bogon will be chosen
2962 # first if we set CC to just the basename; use the full file name.
2964 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2970 if test -n "$CC"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2972 $as_echo "$CC" >&6; }
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2980 if test -z "$CC"; then
2981 if test -n "$ac_tool_prefix"; then
2982 for ac_prog in cl.exe
2984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987 $as_echo_n "checking for $ac_word... " >&6; }
2988 if ${ac_cv_prog_CC+:} false; then :
2989 $as_echo_n "(cached) " >&6
2991 if test -n "$CC"; then
2992 ac_cv_prog_CC="$CC" # Let the user override the test.
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 test -z "$as_dir" && as_dir=.
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3001 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012 if test -n "$CC"; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3014 $as_echo "$CC" >&6; }
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3021 test -n "$CC" && break
3024 if test -z "$CC"; then
3026 for ac_prog in cl.exe
3028 # Extract the first word of "$ac_prog", so it can be a program name with args.
3029 set dummy $ac_prog; ac_word=$2
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031 $as_echo_n "checking for $ac_word... " >&6; }
3032 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3033 $as_echo_n "(cached) " >&6
3035 if test -n "$ac_ct_CC"; then
3036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045 ac_cv_prog_ac_ct_CC="$ac_prog"
3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3056 if test -n "$ac_ct_CC"; then
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3058 $as_echo "$ac_ct_CC" >&6; }
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061 $as_echo "no" >&6; }
3065 test -n "$ac_ct_CC" && break
3068 if test "x$ac_ct_CC" = x; then
3071 case $cross_compiling:$ac_tool_warned in
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3075 ac_tool_warned=yes ;;
3084 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3086 as_fn_error $? "no acceptable C compiler found in \$PATH
3087 See \`config.log' for more details" "$LINENO" 5; }
3089 # Provide some information about the compiler.
3090 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3093 for ac_option in --version -v -V -qversion; do
3094 { { ac_try="$ac_compiler $ac_option >&5"
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3100 $as_echo "$ac_try_echo"; } >&5
3101 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3103 if test -s conftest.err; then
3105 ... rest of stderr output deleted ...
3106 10q' conftest.err >conftest.er1
3107 cat conftest.er1 >&5
3109 rm -f conftest.er1 conftest.err
3110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111 test $ac_status = 0; }
3114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3115 /* end confdefs.h. */
3125 ac_clean_files_save=$ac_clean_files
3126 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3127 # Try to create an executable without -o first, disregard a.out.
3128 # It will help us diagnose broken compilers, and finding out an intuition
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3131 $as_echo_n "checking whether the C compiler works... " >&6; }
3132 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3134 # The possible output files:
3135 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3138 for ac_file in $ac_files
3141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3142 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3147 if { { ac_try="$ac_link_default"
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3153 $as_echo "$ac_try_echo"; } >&5
3154 (eval "$ac_link_default") 2>&5
3156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3157 test $ac_status = 0; }; then :
3158 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3159 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3160 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3161 # so that the user can short-circuit this test for compilers unknown to
3163 for ac_file in $ac_files ''
3165 test -f "$ac_file" || continue
3167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3170 # We found the default executable, but exeext='' is most
3174 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3176 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3178 # We set ac_cv_exeext here because the later test for it is not
3179 # safe: cross compilers may not add the suffix if given an `-o'
3180 # argument, so we may need to know it at that point already.
3181 # Even if this section looks crufty: it has the advantage of
3188 test "$ac_cv_exeext" = no && ac_cv_exeext=
3193 if test -z "$ac_file"; then :
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195 $as_echo "no" >&6; }
3196 $as_echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3201 as_fn_error 77 "C compiler cannot create executables
3202 See \`config.log' for more details" "$LINENO" 5; }
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3205 $as_echo "yes" >&6; }
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3208 $as_echo_n "checking for C compiler default output file name... " >&6; }
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3210 $as_echo "$ac_file" >&6; }
3211 ac_exeext=$ac_cv_exeext
3213 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3214 ac_clean_files=$ac_clean_files_save
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3216 $as_echo_n "checking for suffix of executables... " >&6; }
3217 if { { ac_try="$ac_link"
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3223 $as_echo "$ac_try_echo"; } >&5
3224 (eval "$ac_link") 2>&5
3226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3227 test $ac_status = 0; }; then :
3228 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3229 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3230 # work properly (i.e., refer to `conftest.exe'), while it won't with
3232 for ac_file in conftest.exe conftest conftest.*; do
3233 test -f "$ac_file" || continue
3235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3236 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3244 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3245 See \`config.log' for more details" "$LINENO" 5; }
3247 rm -f conftest conftest$ac_cv_exeext
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3249 $as_echo "$ac_cv_exeext" >&6; }
3251 rm -f conftest.$ac_ext
3252 EXEEXT=$ac_cv_exeext
3254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3255 /* end confdefs.h. */
3260 FILE *f = fopen ("conftest.out", "w");
3261 return ferror (f) || fclose (f) != 0;
3267 ac_clean_files="$ac_clean_files conftest.out"
3268 # Check that the compiler produces executables we can run. If not, either
3269 # the compiler is broken, or we cross compile.
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3271 $as_echo_n "checking whether we are cross compiling... " >&6; }
3272 if test "$cross_compiling" != yes; then
3273 { { ac_try="$ac_link"
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279 $as_echo "$ac_try_echo"; } >&5
3280 (eval "$ac_link") 2>&5
3282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3283 test $ac_status = 0; }
3284 if { ac_try='./conftest$ac_cv_exeext'
3285 { { case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290 $as_echo "$ac_try_echo"; } >&5
3291 (eval "$ac_try") 2>&5
3293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294 test $ac_status = 0; }; }; then
3297 if test "$cross_compiling" = maybe; then
3300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3302 as_fn_error $? "cannot run C compiled programs.
3303 If you meant to cross compile, use \`--host'.
3304 See \`config.log' for more details" "$LINENO" 5; }
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3309 $as_echo "$cross_compiling" >&6; }
3311 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3312 ac_clean_files=$ac_clean_files_save
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3314 $as_echo_n "checking for suffix of object files... " >&6; }
3315 if ${ac_cv_objext+:} false; then :
3316 $as_echo_n "(cached) " >&6
3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h. */
3329 rm -f conftest.o conftest.obj
3330 if { { ac_try="$ac_compile"
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336 $as_echo "$ac_try_echo"; } >&5
3337 (eval "$ac_compile") 2>&5
3339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340 test $ac_status = 0; }; then :
3341 for ac_file in conftest.o conftest.obj conftest.*; do
3342 test -f "$ac_file" || continue;
3344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3345 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3350 $as_echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 as_fn_error $? "cannot compute suffix of object files: cannot compile
3356 See \`config.log' for more details" "$LINENO" 5; }
3358 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3361 $as_echo "$ac_cv_objext" >&6; }
3362 OBJEXT=$ac_cv_objext
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3365 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3366 if ${ac_cv_c_compiler_gnu+:} false; then :
3367 $as_echo_n "(cached) " >&6
3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h. */
3383 if ac_fn_c_try_compile "$LINENO"; then :
3388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3393 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3394 if test $ac_compiler_gnu = yes; then
3399 ac_test_CFLAGS=${CFLAGS+set}
3400 ac_save_CFLAGS=$CFLAGS
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3402 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3403 if ${ac_cv_prog_cc_g+:} false; then :
3404 $as_echo_n "(cached) " >&6
3406 ac_save_c_werror_flag=$ac_c_werror_flag
3407 ac_c_werror_flag=yes
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h. */
3421 if ac_fn_c_try_compile "$LINENO"; then :
3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h. */
3436 if ac_fn_c_try_compile "$LINENO"; then :
3439 ac_c_werror_flag=$ac_save_c_werror_flag
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442 /* end confdefs.h. */
3452 if ac_fn_c_try_compile "$LINENO"; then :
3455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3460 ac_c_werror_flag=$ac_save_c_werror_flag
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3463 $as_echo "$ac_cv_prog_cc_g" >&6; }
3464 if test "$ac_test_CFLAGS" = set; then
3465 CFLAGS=$ac_save_CFLAGS
3466 elif test $ac_cv_prog_cc_g = yes; then
3467 if test "$GCC" = yes; then
3473 if test "$GCC" = yes; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3480 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3481 if ${ac_cv_prog_cc_c89+:} false; then :
3482 $as_echo_n "(cached) " >&6
3484 ac_cv_prog_cc_c89=no
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3490 #include <sys/types.h>
3491 #include <sys/stat.h>
3492 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3493 struct buf { int x; };
3494 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3495 static char *e (p, i)
3501 static char *f (char * (*g) (char **, int), char **p, ...)
3506 s = g (p, va_arg (v,int));
3511 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3512 function prototypes and stuff, but not '\xHH' hex character constants.
3513 These don't provoke an error unfortunately, instead are silently treated
3514 as 'x'. The following induces an error, until -std is added to get
3515 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3516 array size at least. It's necessary to write '\x00'==0 to get something
3517 that's true only with -std. */
3518 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3520 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3521 inside strings and character constants. */
3523 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3525 int test (int i, double x);
3526 struct s1 {int (*f) (int a);};
3527 struct s2 {int (*f) (double a);};
3528 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3534 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3539 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3540 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3542 CC="$ac_save_CC $ac_arg"
3543 if ac_fn_c_try_compile "$LINENO"; then :
3544 ac_cv_prog_cc_c89=$ac_arg
3546 rm -f core conftest.err conftest.$ac_objext
3547 test "x$ac_cv_prog_cc_c89" != "xno" && break
3549 rm -f conftest.$ac_ext
3554 case "x$ac_cv_prog_cc_c89" in
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3557 $as_echo "none needed" >&6; } ;;
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3560 $as_echo "unsupported" >&6; } ;;
3562 CC="$CC $ac_cv_prog_cc_c89"
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3564 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3566 if test "x$ac_cv_prog_cc_c89" != xno; then :
3571 ac_cpp='$CPP $CPPFLAGS'
3572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3576 depcc="$CC" am_compiler_list=
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3579 $as_echo_n "checking dependency style of $depcc... " >&6; }
3580 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3581 $as_echo_n "(cached) " >&6
3583 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3584 # We make a subdir and do the tests there. Otherwise we can end up
3585 # making bogus files that we don't know about and never remove. For
3586 # instance it was reported that on HP-UX the gcc test will end up
3587 # making a dummy file named `D' -- because `-MD' means `put the output
3590 # Copy depcomp to subdir because otherwise we won't find it if we're
3591 # using a relative directory.
3592 cp "$am_depcomp" conftest.dir
3594 # We will build objects and dependencies in a subdirectory because
3595 # it helps to detect inapplicable dependency modes. For instance
3596 # both Tru64's cc and ICC support -MD to output dependencies as a
3597 # side effect of compilation, but ICC will put the dependencies in
3598 # the current directory while Tru64 will put them in the object
3602 am_cv_CC_dependencies_compiler_type=none
3603 if test "$am_compiler_list" = ""; then
3604 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3607 case " $depcc " in #(
3608 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3611 for depmode in $am_compiler_list; do
3612 # Setup a source with many dependencies, because some compilers
3613 # like to wrap large dependency lists on column 80 (with \), and
3614 # we should not choose a depcomp mode which is confused by this.
3616 # We need to recreate these files for each test, as the compiler may
3617 # overwrite some of them when testing with obscure command lines.
3618 # This happens at least with the AIX C compiler.
3620 for i in 1 2 3 4 5 6; do
3621 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3622 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3623 # Solaris 8's {/usr,}/bin/sh.
3624 touch sub/conftst$i.h
3626 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3628 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3629 # mode. It turns out that the SunPro C++ compiler does not properly
3630 # handle `-M -o', and we need to detect this. Also, some Intel
3631 # versions had trouble with output in subdirs
3632 am__obj=sub/conftest.${OBJEXT-o}
3633 am__minus_obj="-o $am__obj"
3636 # This depmode causes a compiler race in universal mode.
3637 test "$am__universal" = false || continue
3640 # after this tag, mechanisms are not by side-effect, so they'll
3641 # only be used when explicitly requested
3642 if test "x$enable_dependency_tracking" = xyes; then
3648 msvisualcpp | msvcmsys)
3649 # This compiler won't grok `-c -o', but also, the minuso test has
3650 # not run yet. These depmodes are late enough in the game, and
3651 # so weak that their functioning should not be impacted.
3652 am__obj=conftest.${OBJEXT-o}
3657 if depmode=$depmode \
3658 source=sub/conftest.c object=$am__obj \
3659 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3660 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3661 >/dev/null 2>conftest.err &&
3662 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3663 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3664 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3665 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3666 # icc doesn't choke on unknown options, it will just issue warnings
3667 # or remarks (even with -Werror). So we grep stderr for any message
3668 # that says an option was ignored or not supported.
3669 # When given -MP, icc 7.0 and 7.1 complain thusly:
3670 # icc: Command line warning: ignoring option '-M'; no argument required
3671 # The diagnosis changed in icc 8.0:
3672 # icc: Command line remark: option '-MP' not supported
3673 if (grep 'ignoring option' conftest.err ||
3674 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3675 am_cv_CC_dependencies_compiler_type=$depmode
3684 am_cv_CC_dependencies_compiler_type=none
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3689 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3690 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3693 test "x$enable_dependency_tracking" != xno \
3694 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3696 am__fastdepCC_FALSE='#'
3698 am__fastdepCC_TRUE='#'
3699 am__fastdepCC_FALSE=
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3704 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3705 if ${ac_cv_prog_cc_c99+:} false; then :
3706 $as_echo_n "(cached) " >&6
3708 ac_cv_prog_cc_c99=no
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3713 #include <stdbool.h>
3718 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3719 #define debug(...) fprintf (stderr, __VA_ARGS__)
3720 #define showlist(...) puts (#__VA_ARGS__)
3721 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3723 test_varargs_macros (void)
3728 debug ("X = %d\n", x);
3729 showlist (The first, second, and third items.);
3730 report (x>y, "x is %d but y is %d", x, y);
3733 // Check long long types.
3734 #define BIG64 18446744073709551615ull
3735 #define BIG32 4294967295ul
3736 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3738 your preprocessor is broken;
3742 your preprocessor is broken;
3744 static long long int bignum = -9223372036854775807LL;
3745 static unsigned long long int ubignum = BIG64;
3747 struct incomplete_array
3755 const wchar_t *name;
3759 typedef const char *ccp;
3762 test_restrict (ccp restrict text)
3764 // See if C++-style comments work.
3765 // Iterate through items via the restricted pointer.
3766 // Also check for declarations in for loops.
3767 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3772 // Check varargs and va_copy.
3774 test_varargs (const char *format, ...)
3777 va_start (args, format);
3779 va_copy (args_copy, args);
3790 str = va_arg (args_copy, const char *);
3793 number = va_arg (args_copy, int);
3796 fnumber = va_arg (args_copy, double);
3811 _Bool success = false;
3814 if (test_restrict ("String literal") == 0)
3816 char *restrict newvar = "Another string";
3819 test_varargs ("s, d' f .", "string", 65, 34.234);
3820 test_varargs_macros ();
3822 // Check flexible array members.
3823 struct incomplete_array *ia =
3824 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3826 for (int i = 0; i < ia->datasize; ++i)
3827 ia->data[i] = i * 1.234;
3829 // Check named initializers.
3830 struct named_init ni = {
3832 .name = L"Test wide string",
3833 .average = 543.34343,
3838 int dynamic_array[ni.number];
3839 dynamic_array[ni.number - 1] = 543;
3841 // work around unused variable warnings
3842 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3843 || dynamic_array[ni.number - 1] != 543);
3849 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3851 CC="$ac_save_CC $ac_arg"
3852 if ac_fn_c_try_compile "$LINENO"; then :
3853 ac_cv_prog_cc_c99=$ac_arg
3855 rm -f core conftest.err conftest.$ac_objext
3856 test "x$ac_cv_prog_cc_c99" != "xno" && break
3858 rm -f conftest.$ac_ext
3863 case "x$ac_cv_prog_cc_c99" in
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3866 $as_echo "none needed" >&6; } ;;
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3869 $as_echo "unsupported" >&6; } ;;
3871 CC="$CC $ac_cv_prog_cc_c99"
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3873 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3875 if test "x$ac_cv_prog_cc_c99" != xno; then :
3882 ac_cpp='$CPP $CPPFLAGS'
3883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3887 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3888 # On Suns, sometimes $CPP names a directory.
3889 if test -n "$CPP" && test -d "$CPP"; then
3892 if test -z "$CPP"; then
3893 if ${ac_cv_prog_CPP+:} false; then :
3894 $as_echo_n "(cached) " >&6
3896 # Double quotes because CPP needs to be expanded
3897 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3900 for ac_c_preproc_warn_flag in '' yes
3902 # Use a header file that comes with gcc, so configuring glibc
3903 # with a fresh cross-compiler works.
3904 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3905 # <limits.h> exists even on freestanding compilers.
3906 # On the NeXT, cc -E runs the code through the compiler's parser,
3907 # not just through cpp. "Syntax error" is here to catch this case.
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h. */
3911 # include <limits.h>
3913 # include <assert.h>
3917 if ac_fn_c_try_cpp "$LINENO"; then :
3920 # Broken: fails on valid input.
3923 rm -f conftest.err conftest.i conftest.$ac_ext
3925 # OK, works on sane cases. Now check whether nonexistent headers
3926 # can be detected and how.
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3929 #include <ac_nonexistent.h>
3931 if ac_fn_c_try_cpp "$LINENO"; then :
3932 # Broken: success on invalid input.
3935 # Passes both tests.
3939 rm -f conftest.err conftest.i conftest.$ac_ext
3942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3943 rm -f conftest.i conftest.err conftest.$ac_ext
3944 if $ac_preproc_ok; then :
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3957 $as_echo "$CPP" >&6; }
3959 for ac_c_preproc_warn_flag in '' yes
3961 # Use a header file that comes with gcc, so configuring glibc
3962 # with a fresh cross-compiler works.
3963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3964 # <limits.h> exists even on freestanding compilers.
3965 # On the NeXT, cc -E runs the code through the compiler's parser,
3966 # not just through cpp. "Syntax error" is here to catch this case.
3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h. */
3970 # include <limits.h>
3972 # include <assert.h>
3976 if ac_fn_c_try_cpp "$LINENO"; then :
3979 # Broken: fails on valid input.
3982 rm -f conftest.err conftest.i conftest.$ac_ext
3984 # OK, works on sane cases. Now check whether nonexistent headers
3985 # can be detected and how.
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3988 #include <ac_nonexistent.h>
3990 if ac_fn_c_try_cpp "$LINENO"; then :
3991 # Broken: success on invalid input.
3994 # Passes both tests.
3998 rm -f conftest.err conftest.i conftest.$ac_ext
4001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4002 rm -f conftest.i conftest.err conftest.$ac_ext
4003 if $ac_preproc_ok; then :
4006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4008 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4009 See \`config.log' for more details" "$LINENO" 5; }
4013 ac_cpp='$CPP $CPPFLAGS'
4014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4020 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4021 if ${ac_cv_path_GREP+:} false; then :
4022 $as_echo_n "(cached) " >&6
4024 if test -z "$GREP"; then
4025 ac_path_GREP_found=false
4026 # Loop through the user's path and test for each of PROGNAME-LIST
4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4031 test -z "$as_dir" && as_dir=.
4032 for ac_prog in grep ggrep; do
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4035 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4036 # Check for GNU ac_path_GREP and select it if it is found.
4037 # Check for GNU $ac_path_GREP
4038 case `"$ac_path_GREP" --version 2>&1` in
4040 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4043 $as_echo_n 0123456789 >"conftest.in"
4046 cat "conftest.in" "conftest.in" >"conftest.tmp"
4047 mv "conftest.tmp" "conftest.in"
4048 cp "conftest.in" "conftest.nl"
4049 $as_echo 'GREP' >> "conftest.nl"
4050 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4051 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4052 as_fn_arith $ac_count + 1 && ac_count=$as_val
4053 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4054 # Best one so far, save it but keep looking for a better one
4055 ac_cv_path_GREP="$ac_path_GREP"
4056 ac_path_GREP_max=$ac_count
4058 # 10*(2^10) chars as input seems more than enough
4059 test $ac_count -gt 10 && break
4061 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4064 $ac_path_GREP_found && break 3
4069 if test -z "$ac_cv_path_GREP"; then
4070 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4073 ac_cv_path_GREP=$GREP
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4078 $as_echo "$ac_cv_path_GREP" >&6; }
4079 GREP="$ac_cv_path_GREP"
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4083 $as_echo_n "checking for egrep... " >&6; }
4084 if ${ac_cv_path_EGREP+:} false; then :
4085 $as_echo_n "(cached) " >&6
4087 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4088 then ac_cv_path_EGREP="$GREP -E"
4090 if test -z "$EGREP"; then
4091 ac_path_EGREP_found=false
4092 # Loop through the user's path and test for each of PROGNAME-LIST
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4097 test -z "$as_dir" && as_dir=.
4098 for ac_prog in egrep; do
4099 for ac_exec_ext in '' $ac_executable_extensions; do
4100 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4101 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4102 # Check for GNU ac_path_EGREP and select it if it is found.
4103 # Check for GNU $ac_path_EGREP
4104 case `"$ac_path_EGREP" --version 2>&1` in
4106 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4109 $as_echo_n 0123456789 >"conftest.in"
4112 cat "conftest.in" "conftest.in" >"conftest.tmp"
4113 mv "conftest.tmp" "conftest.in"
4114 cp "conftest.in" "conftest.nl"
4115 $as_echo 'EGREP' >> "conftest.nl"
4116 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4117 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4118 as_fn_arith $ac_count + 1 && ac_count=$as_val
4119 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4120 # Best one so far, save it but keep looking for a better one
4121 ac_cv_path_EGREP="$ac_path_EGREP"
4122 ac_path_EGREP_max=$ac_count
4124 # 10*(2^10) chars as input seems more than enough
4125 test $ac_count -gt 10 && break
4127 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4130 $ac_path_EGREP_found && break 3
4135 if test -z "$ac_cv_path_EGREP"; then
4136 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4139 ac_cv_path_EGREP=$EGREP
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4145 $as_echo "$ac_cv_path_EGREP" >&6; }
4146 EGREP="$ac_cv_path_EGREP"
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4150 $as_echo_n "checking for ANSI C header files... " >&6; }
4151 if ${ac_cv_header_stdc+:} false; then :
4152 $as_echo_n "(cached) " >&6
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4169 if ac_fn_c_try_compile "$LINENO"; then :
4170 ac_cv_header_stdc=yes
4172 ac_cv_header_stdc=no
4174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 if test $ac_cv_header_stdc = yes; then
4177 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4184 $EGREP "memchr" >/dev/null 2>&1; then :
4187 ac_cv_header_stdc=no
4193 if test $ac_cv_header_stdc = yes; then
4194 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4201 $EGREP "free" >/dev/null 2>&1; then :
4204 ac_cv_header_stdc=no
4210 if test $ac_cv_header_stdc = yes; then
4211 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4212 if test "$cross_compiling" = yes; then :
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4219 #if ((' ' & 0x0FF) == 0x020)
4220 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4221 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4223 # define ISLOWER(c) \
4224 (('a' <= (c) && (c) <= 'i') \
4225 || ('j' <= (c) && (c) <= 'r') \
4226 || ('s' <= (c) && (c) <= 'z'))
4227 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4230 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4235 for (i = 0; i < 256; i++)
4236 if (XOR (islower (i), ISLOWER (i))
4237 || toupper (i) != TOUPPER (i))
4242 if ac_fn_c_try_run "$LINENO"; then :
4245 ac_cv_header_stdc=no
4247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4248 conftest.$ac_objext conftest.beam conftest.$ac_ext
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4254 $as_echo "$ac_cv_header_stdc" >&6; }
4255 if test $ac_cv_header_stdc = yes; then
4257 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4261 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4262 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4263 inttypes.h stdint.h unistd.h
4265 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4266 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4268 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4269 cat >>confdefs.h <<_ACEOF
4270 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4280 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4281 if test -n "$ac_tool_prefix"; then
4282 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4283 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 $as_echo_n "checking for $ac_word... " >&6; }
4286 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4287 $as_echo_n "(cached) " >&6
4291 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 test -z "$as_dir" && as_dir=.
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4301 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4312 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4313 if test -n "$PKG_CONFIG"; then
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4315 $as_echo "$PKG_CONFIG" >&6; }
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318 $as_echo "no" >&6; }
4323 if test -z "$ac_cv_path_PKG_CONFIG"; then
4324 ac_pt_PKG_CONFIG=$PKG_CONFIG
4325 # Extract the first word of "pkg-config", so it can be a program name with args.
4326 set dummy pkg-config; ac_word=$2
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4328 $as_echo_n "checking for $ac_word... " >&6; }
4329 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4330 $as_echo_n "(cached) " >&6
4332 case $ac_pt_PKG_CONFIG in
4334 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 test -z "$as_dir" && as_dir=.
4342 for ac_exec_ext in '' $ac_executable_extensions; do
4343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4344 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4356 if test -n "$ac_pt_PKG_CONFIG"; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4358 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 $as_echo "no" >&6; }
4364 if test "x$ac_pt_PKG_CONFIG" = x; then
4367 case $cross_compiling:$ac_tool_warned in
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4371 ac_tool_warned=yes ;;
4373 PKG_CONFIG=$ac_pt_PKG_CONFIG
4376 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4380 if test -n "$PKG_CONFIG"; then
4381 _pkg_min_version=0.9.0
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4383 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4384 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4386 $as_echo "yes" >&6; }
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389 $as_echo "no" >&6; }
4394 # Make sure we can run config.sub.
4395 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4396 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4399 $as_echo_n "checking build system type... " >&6; }
4400 if ${ac_cv_build+:} false; then :
4401 $as_echo_n "(cached) " >&6
4403 ac_build_alias=$build_alias
4404 test "x$ac_build_alias" = x &&
4405 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4406 test "x$ac_build_alias" = x &&
4407 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4408 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4409 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4413 $as_echo "$ac_cv_build" >&6; }
4414 case $ac_cv_build in
4416 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4419 ac_save_IFS=$IFS; IFS='-'
4425 # Remember, the first character of IFS is used to create $*,
4426 # except with old shells:
4429 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4433 $as_echo_n "checking host system type... " >&6; }
4434 if ${ac_cv_host+:} false; then :
4435 $as_echo_n "(cached) " >&6
4437 if test "x$host_alias" = x; then
4438 ac_cv_host=$ac_cv_build
4440 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4441 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4446 $as_echo "$ac_cv_host" >&6; }
4449 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4452 ac_save_IFS=$IFS; IFS='-'
4458 # Remember, the first character of IFS is used to create $*,
4459 # except with old shells:
4462 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4466 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4467 if ${ac_cv_path_SED+:} false; then :
4468 $as_echo_n "(cached) " >&6
4470 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4471 for ac_i in 1 2 3 4 5 6 7; do
4472 ac_script="$ac_script$as_nl$ac_script"
4474 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4475 { ac_script=; unset ac_script;}
4476 if test -z "$SED"; then
4477 ac_path_SED_found=false
4478 # Loop through the user's path and test for each of PROGNAME-LIST
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 test -z "$as_dir" && as_dir=.
4484 for ac_prog in sed gsed; do
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4487 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4488 # Check for GNU ac_path_SED and select it if it is found.
4489 # Check for GNU $ac_path_SED
4490 case `"$ac_path_SED" --version 2>&1` in
4492 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4495 $as_echo_n 0123456789 >"conftest.in"
4498 cat "conftest.in" "conftest.in" >"conftest.tmp"
4499 mv "conftest.tmp" "conftest.in"
4500 cp "conftest.in" "conftest.nl"
4501 $as_echo '' >> "conftest.nl"
4502 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4503 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4504 as_fn_arith $ac_count + 1 && ac_count=$as_val
4505 if test $ac_count -gt ${ac_path_SED_max-0}; then
4506 # Best one so far, save it but keep looking for a better one
4507 ac_cv_path_SED="$ac_path_SED"
4508 ac_path_SED_max=$ac_count
4510 # 10*(2^10) chars as input seems more than enough
4511 test $ac_count -gt 10 && break
4513 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4516 $ac_path_SED_found && break 3
4521 if test -z "$ac_cv_path_SED"; then
4522 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4530 $as_echo "$ac_cv_path_SED" >&6; }
4531 SED="$ac_cv_path_SED"
4538 if test "x$GCC" = xyes ; then
4539 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4540 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4541 -Wbad-function-cast -Wformat=2"
4542 case `$CC -dumpversion` in
4544 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4548 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4549 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4555 if test "x$SUNCC" = "xyes"; then
4562 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4566 # Check whether --enable-strict-compilation was given.
4567 if test "${enable_strict_compilation+set}" = set; then :
4568 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4573 if test "x$STRICT_COMPILE" = "xyes"; then
4574 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4575 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4581 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4582 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4588 if test "x$GCC" = xyes ; then
4589 STRICT_CFLAGS="-pedantic -Werror"
4590 elif test "x$SUNCC" = "xyes"; then
4591 STRICT_CFLAGS="-errwarn"
4592 elif test "x$INTELCC" = "xyes"; then
4593 STRICT_CFLAGS="-Werror"
4596 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4601 cat >>confdefs.h <<_ACEOF
4602 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4605 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4606 if test "x$PVM" = "x"; then
4610 cat >>confdefs.h <<_ACEOF
4611 #define PACKAGE_VERSION_MINOR $PVM
4614 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4615 if test "x$PVP" = "x"; then
4619 cat >>confdefs.h <<_ACEOF
4620 #define PACKAGE_VERSION_PATCHLEVEL $PVP
4625 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4626 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4627 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4628 echo 'git directory not found: installing possibly empty changelog.' >&2)"
4633 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4634 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4635 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4636 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4637 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4644 if test x$APP_MAN_SUFFIX = x ; then
4647 if test x$APP_MAN_DIR = x ; then
4648 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4651 if test x$LIB_MAN_SUFFIX = x ; then
4654 if test x$LIB_MAN_DIR = x ; then
4655 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4658 if test x$FILE_MAN_SUFFIX = x ; then
4660 solaris*) FILE_MAN_SUFFIX=4 ;;
4661 *) FILE_MAN_SUFFIX=5 ;;
4664 if test x$FILE_MAN_DIR = x ; then
4665 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4668 if test x$MISC_MAN_SUFFIX = x ; then
4670 solaris*) MISC_MAN_SUFFIX=5 ;;
4671 *) MISC_MAN_SUFFIX=7 ;;
4674 if test x$MISC_MAN_DIR = x ; then
4675 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4678 if test x$DRIVER_MAN_SUFFIX = x ; then
4680 solaris*) DRIVER_MAN_SUFFIX=7 ;;
4681 *) DRIVER_MAN_SUFFIX=4 ;;
4684 if test x$DRIVER_MAN_DIR = x ; then
4685 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4688 if test x$ADMIN_MAN_SUFFIX = x ; then
4690 solaris*) ADMIN_MAN_SUFFIX=1m ;;
4691 *) ADMIN_MAN_SUFFIX=8 ;;
4694 if test x$ADMIN_MAN_DIR = x ; then
4695 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4712 XORG_MAN_PAGE="X Version 11"
4715 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4716 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4717 -e 's|__xservername__|Xorg|g' \
4718 -e 's|__xconfigfile__|xorg.conf|g' \
4719 -e 's|__projectroot__|\$(prefix)|g' \
4720 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
4721 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4722 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4723 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4724 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4725 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4726 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4730 # Check whether --enable-silent-rules was given.
4731 if test "${enable_silent_rules+set}" = set; then :
4732 enableval=$enable_silent_rules;
4735 case $enable_silent_rules in
4736 yes) AM_DEFAULT_VERBOSITY=0;;
4737 no) AM_DEFAULT_VERBOSITY=1;;
4738 *) AM_DEFAULT_VERBOSITY=0;;
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4748 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4753 macro_version='2.2.10'
4754 macro_revision='1.3175'
4768 ltmain="$ac_aux_dir/ltmain.sh"
4770 # Backslashify metacharacters that are still active within
4771 # double-quoted strings.
4772 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4774 # Same as above, but do not quote variable references.
4775 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4777 # Sed substitution to delay expansion of an escaped shell variable in a
4778 # double_quote_subst'ed string.
4779 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4781 # Sed substitution to delay expansion of an escaped single quote.
4782 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4784 # Sed substitution to avoid accidental globbing in evaled expressions
4785 no_glob_subst='s/\*/\\\*/g'
4787 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4788 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4789 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4792 $as_echo_n "checking how to print strings... " >&6; }
4793 # Test print first, because it will be a builtin if present.
4794 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4795 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4797 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4800 # Use this function as a fallback that always works.
4801 func_fallback_echo ()
4803 eval 'cat <<_LTECHO_EOF
4807 ECHO='func_fallback_echo'
4810 # func_echo_all arg...
4811 # Invoke $ECHO with all args, space-separated.
4818 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4819 $as_echo "printf" >&6; } ;;
4820 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4821 $as_echo "print -r" >&6; } ;;
4822 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4823 $as_echo "cat" >&6; } ;;
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4840 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4841 if ${ac_cv_path_SED+:} false; then :
4842 $as_echo_n "(cached) " >&6
4844 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4845 for ac_i in 1 2 3 4 5 6 7; do
4846 ac_script="$ac_script$as_nl$ac_script"
4848 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4849 { ac_script=; unset ac_script;}
4850 if test -z "$SED"; then
4851 ac_path_SED_found=false
4852 # Loop through the user's path and test for each of PROGNAME-LIST
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 test -z "$as_dir" && as_dir=.
4858 for ac_prog in sed gsed; do
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4861 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4862 # Check for GNU ac_path_SED and select it if it is found.
4863 # Check for GNU $ac_path_SED
4864 case `"$ac_path_SED" --version 2>&1` in
4866 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4869 $as_echo_n 0123456789 >"conftest.in"
4872 cat "conftest.in" "conftest.in" >"conftest.tmp"
4873 mv "conftest.tmp" "conftest.in"
4874 cp "conftest.in" "conftest.nl"
4875 $as_echo '' >> "conftest.nl"
4876 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4877 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4878 as_fn_arith $ac_count + 1 && ac_count=$as_val
4879 if test $ac_count -gt ${ac_path_SED_max-0}; then
4880 # Best one so far, save it but keep looking for a better one
4881 ac_cv_path_SED="$ac_path_SED"
4882 ac_path_SED_max=$ac_count
4884 # 10*(2^10) chars as input seems more than enough
4885 test $ac_count -gt 10 && break
4887 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4890 $ac_path_SED_found && break 3
4895 if test -z "$ac_cv_path_SED"; then
4896 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4904 $as_echo "$ac_cv_path_SED" >&6; }
4905 SED="$ac_cv_path_SED"
4908 test -z "$SED" && SED=sed
4909 Xsed="$SED -e 1s/^X//"
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4922 $as_echo_n "checking for fgrep... " >&6; }
4923 if ${ac_cv_path_FGREP+:} false; then :
4924 $as_echo_n "(cached) " >&6
4926 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4927 then ac_cv_path_FGREP="$GREP -F"
4929 if test -z "$FGREP"; then
4930 ac_path_FGREP_found=false
4931 # Loop through the user's path and test for each of PROGNAME-LIST
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4936 test -z "$as_dir" && as_dir=.
4937 for ac_prog in fgrep; do
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4940 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4941 # Check for GNU ac_path_FGREP and select it if it is found.
4942 # Check for GNU $ac_path_FGREP
4943 case `"$ac_path_FGREP" --version 2>&1` in
4945 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4948 $as_echo_n 0123456789 >"conftest.in"
4951 cat "conftest.in" "conftest.in" >"conftest.tmp"
4952 mv "conftest.tmp" "conftest.in"
4953 cp "conftest.in" "conftest.nl"
4954 $as_echo 'FGREP' >> "conftest.nl"
4955 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4956 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4957 as_fn_arith $ac_count + 1 && ac_count=$as_val
4958 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4959 # Best one so far, save it but keep looking for a better one
4960 ac_cv_path_FGREP="$ac_path_FGREP"
4961 ac_path_FGREP_max=$ac_count
4963 # 10*(2^10) chars as input seems more than enough
4964 test $ac_count -gt 10 && break
4966 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4969 $ac_path_FGREP_found && break 3
4974 if test -z "$ac_cv_path_FGREP"; then
4975 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4978 ac_cv_path_FGREP=$FGREP
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4984 $as_echo "$ac_cv_path_FGREP" >&6; }
4985 FGREP="$ac_cv_path_FGREP"
4988 test -z "$GREP" && GREP=grep
5008 # Check whether --with-gnu-ld was given.
5009 if test "${with_gnu_ld+set}" = set; then :
5010 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5016 if test "$GCC" = yes; then
5017 # Check if gcc -print-prog-name=ld gives a path.
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5019 $as_echo_n "checking for ld used by $CC... " >&6; }
5022 # gcc leaves a trailing carriage return which upsets mingw
5023 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5025 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5028 # Accept absolute paths.
5030 re_direlt='/[^/][^/]*/\.\./'
5031 # Canonicalize the pathname of ld
5032 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5033 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5034 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5036 test -z "$LD" && LD="$ac_prog"
5039 # If it fails, then pretend we aren't using GCC.
5043 # If it is relative, then search for the first ld in PATH.
5047 elif test "$with_gnu_ld" = yes; then
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5049 $as_echo_n "checking for GNU ld... " >&6; }
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5052 $as_echo_n "checking for non-GNU ld... " >&6; }
5054 if ${lt_cv_path_LD+:} false; then :
5055 $as_echo_n "(cached) " >&6
5057 if test -z "$LD"; then
5058 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5059 for ac_dir in $PATH; do
5061 test -z "$ac_dir" && ac_dir=.
5062 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5063 lt_cv_path_LD="$ac_dir/$ac_prog"
5064 # Check to see if the program is GNU ld. I'd rather use --version,
5065 # but apparently some variants of GNU ld only accept -v.
5066 # Break only if it was the GNU/non-GNU ld that we prefer.
5067 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5068 *GNU* | *'with BFD'*)
5069 test "$with_gnu_ld" != no && break
5072 test "$with_gnu_ld" != yes && break
5079 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5084 if test -n "$LD"; then
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5086 $as_echo "$LD" >&6; }
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089 $as_echo "no" >&6; }
5091 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5093 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5094 if ${lt_cv_prog_gnu_ld+:} false; then :
5095 $as_echo_n "(cached) " >&6
5097 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5098 case `$LD -v 2>&1 </dev/null` in
5099 *GNU* | *'with BFD'*)
5100 lt_cv_prog_gnu_ld=yes
5103 lt_cv_prog_gnu_ld=no
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5108 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5109 with_gnu_ld=$lt_cv_prog_gnu_ld
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5120 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5121 if ${lt_cv_path_NM+:} false; then :
5122 $as_echo_n "(cached) " >&6
5124 if test -n "$NM"; then
5125 # Let the user override the test.
5128 lt_nm_to_check="${ac_tool_prefix}nm"
5129 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5130 lt_nm_to_check="$lt_nm_to_check nm"
5132 for lt_tmp_nm in $lt_nm_to_check; do
5133 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5134 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5136 test -z "$ac_dir" && ac_dir=.
5137 tmp_nm="$ac_dir/$lt_tmp_nm"
5138 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5139 # Check to see if the nm accepts a BSD-compat flag.
5140 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5141 # nm: unknown option "B" ignored
5142 # Tru64's nm complains that /dev/null is an invalid object file
5143 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5144 */dev/null* | *'Invalid file or object type'*)
5145 lt_cv_path_NM="$tmp_nm -B"
5149 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5151 lt_cv_path_NM="$tmp_nm -p"
5155 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5156 continue # so that we can try to find one that supports BSD flags
5165 : ${lt_cv_path_NM=no}
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5169 $as_echo "$lt_cv_path_NM" >&6; }
5170 if test "$lt_cv_path_NM" != "no"; then
5173 # Didn't find any BSD compatible name lister, look for dumpbin.
5174 if test -n "$DUMPBIN"; then :
5175 # Let the user override the test.
5177 if test -n "$ac_tool_prefix"; then
5178 for ac_prog in dumpbin "link -dump"
5180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if ${ac_cv_prog_DUMPBIN+:} false; then :
5185 $as_echo_n "(cached) " >&6
5187 if test -n "$DUMPBIN"; then
5188 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5197 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 DUMPBIN=$ac_cv_prog_DUMPBIN
5208 if test -n "$DUMPBIN"; then
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5210 $as_echo "$DUMPBIN" >&6; }
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 $as_echo "no" >&6; }
5217 test -n "$DUMPBIN" && break
5220 if test -z "$DUMPBIN"; then
5221 ac_ct_DUMPBIN=$DUMPBIN
5222 for ac_prog in dumpbin "link -dump"
5224 # Extract the first word of "$ac_prog", so it can be a program name with args.
5225 set dummy $ac_prog; ac_word=$2
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5229 $as_echo_n "(cached) " >&6
5231 if test -n "$ac_ct_DUMPBIN"; then
5232 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5241 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5251 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5252 if test -n "$ac_ct_DUMPBIN"; then
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5254 $as_echo "$ac_ct_DUMPBIN" >&6; }
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257 $as_echo "no" >&6; }
5261 test -n "$ac_ct_DUMPBIN" && break
5264 if test "x$ac_ct_DUMPBIN" = x; then
5267 case $cross_compiling:$ac_tool_warned in
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5271 ac_tool_warned=yes ;;
5273 DUMPBIN=$ac_ct_DUMPBIN
5277 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5279 DUMPBIN="$DUMPBIN -symbols"
5287 if test "$DUMPBIN" != ":"; then
5291 test -z "$NM" && NM=nm
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5299 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5300 if ${lt_cv_nm_interface+:} false; then :
5301 $as_echo_n "(cached) " >&6
5303 lt_cv_nm_interface="BSD nm"
5304 echo "int some_variable = 0;" > conftest.$ac_ext
5305 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5306 (eval "$ac_compile" 2>conftest.err)
5307 cat conftest.err >&5
5308 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5309 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5310 cat conftest.err >&5
5311 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5312 cat conftest.out >&5
5313 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5314 lt_cv_nm_interface="MS dumpbin"
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5319 $as_echo "$lt_cv_nm_interface" >&6; }
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5322 $as_echo_n "checking whether ln -s works... " >&6; }
5324 if test "$LN_S" = "ln -s"; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5326 $as_echo "yes" >&6; }
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5329 $as_echo "no, using $LN_S" >&6; }
5332 # find the maximum length of command line arguments
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5334 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5335 if ${lt_cv_sys_max_cmd_len+:} false; then :
5336 $as_echo_n "(cached) " >&6
5343 # On DJGPP, this test can blow up pretty badly due to problems in libc
5344 # (any single argument exceeding 2000 bytes causes a buffer overrun
5345 # during glob expansion). Even if it were fixed, the result of this
5346 # check would be larger than it should be.
5347 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5351 # Under GNU Hurd, this test is not required because there is
5352 # no limit to the length of command line arguments.
5353 # Libtool will interpret -1 as no limit whatsoever
5354 lt_cv_sys_max_cmd_len=-1;
5357 cygwin* | mingw* | cegcc*)
5358 # On Win9x/ME, this test blows up -- it succeeds, but takes
5359 # about 5 minutes as the teststring grows exponentially.
5360 # Worse, since 9x/ME are not pre-emptively multitasking,
5361 # you end up with a "frozen" computer, even though with patience
5362 # the test eventually succeeds (with a max line length of 256k).
5363 # Instead, let's just punt: use the minimum linelength reported by
5364 # all of the supported platforms: 8192 (on NT/2K/XP).
5365 lt_cv_sys_max_cmd_len=8192;
5369 # On MiNT this can take a long time and run out of memory.
5370 lt_cv_sys_max_cmd_len=8192;
5374 # On AmigaOS with pdksh, this test takes hours, literally.
5375 # So we just punt and use a minimum line length of 8192.
5376 lt_cv_sys_max_cmd_len=8192;
5379 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5380 # This has been around since 386BSD, at least. Likely further.
5381 if test -x /sbin/sysctl; then
5382 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5383 elif test -x /usr/sbin/sysctl; then
5384 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5386 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5388 # And add a safety zone
5389 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5390 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5394 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5395 lt_cv_sys_max_cmd_len=196608
5399 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5400 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5401 # nice to cause kernel panics so lets avoid the loop below.
5402 # First set a reasonable default.
5403 lt_cv_sys_max_cmd_len=16384
5405 if test -x /sbin/sysconfig; then
5406 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5407 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5412 lt_cv_sys_max_cmd_len=102400
5414 sysv5* | sco5v6* | sysv4.2uw2*)
5415 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5416 if test -n "$kargmax"; then
5417 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5419 lt_cv_sys_max_cmd_len=32768
5423 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5424 if test -n "$lt_cv_sys_max_cmd_len"; then
5425 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5426 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5428 # Make teststring a little bigger before we do anything with it.
5429 # a 1K string should be a reasonable start.
5430 for i in 1 2 3 4 5 6 7 8 ; do
5431 teststring=$teststring$teststring
5433 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5434 # If test is not a shell built-in, we'll probably end up computing a
5435 # maximum length that is only half of the actual maximum length, but
5437 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5438 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5439 test $i != 17 # 1/2 MB should be enough
5442 teststring=$teststring$teststring
5444 # Only check the string length outside the loop.
5445 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5447 # Add a significant safety factor because C++ compilers can tack on
5448 # massive amounts of additional arguments before passing them to the
5449 # linker. It appears as though 1/2 is a usable value.
5450 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5457 if test -n $lt_cv_sys_max_cmd_len ; then
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5459 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5462 $as_echo "none" >&6; }
5464 max_cmd_len=$lt_cv_sys_max_cmd_len
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5476 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5477 # Try some XSI features
5480 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5482 && eval 'test $(( 1 + 1 )) -eq 2 \
5483 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5486 $as_echo "$xsi_shell" >&6; }
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5490 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5492 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5494 && lt_shell_append=yes
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5496 $as_echo "$lt_shell_append" >&6; }
5499 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5509 # test EBCDIC or ASCII
5510 case `echo X|tr X '\101'` in
5511 A) # ASCII based system
5512 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5513 lt_SP2NL='tr \040 \012'
5514 lt_NL2SP='tr \015\012 \040\040'
5516 *) # EBCDIC based system
5517 lt_SP2NL='tr \100 \n'
5518 lt_NL2SP='tr \r\n \100\100'
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5531 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5532 if ${lt_cv_ld_reload_flag+:} false; then :
5533 $as_echo_n "(cached) " >&6
5535 lt_cv_ld_reload_flag='-r'
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5538 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5539 reload_flag=$lt_cv_ld_reload_flag
5540 case $reload_flag in
5542 *) reload_flag=" $reload_flag" ;;
5544 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5547 if test "$GCC" = yes; then
5548 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5550 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5563 if test -n "$ac_tool_prefix"; then
5564 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5565 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567 $as_echo_n "checking for $ac_word... " >&6; }
5568 if ${ac_cv_prog_OBJDUMP+:} false; then :
5569 $as_echo_n "(cached) " >&6
5571 if test -n "$OBJDUMP"; then
5572 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5581 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5591 OBJDUMP=$ac_cv_prog_OBJDUMP
5592 if test -n "$OBJDUMP"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5594 $as_echo "$OBJDUMP" >&6; }
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5602 if test -z "$ac_cv_prog_OBJDUMP"; then
5603 ac_ct_OBJDUMP=$OBJDUMP
5604 # Extract the first word of "objdump", so it can be a program name with args.
5605 set dummy objdump; ac_word=$2
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5609 $as_echo_n "(cached) " >&6
5611 if test -n "$ac_ct_OBJDUMP"; then
5612 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5621 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5631 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5632 if test -n "$ac_ct_OBJDUMP"; then
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5634 $as_echo "$ac_ct_OBJDUMP" >&6; }
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5640 if test "x$ac_ct_OBJDUMP" = x; then
5643 case $cross_compiling:$ac_tool_warned in
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5647 ac_tool_warned=yes ;;
5649 OBJDUMP=$ac_ct_OBJDUMP
5652 OBJDUMP="$ac_cv_prog_OBJDUMP"
5655 test -z "$OBJDUMP" && OBJDUMP=objdump
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5666 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5667 if ${lt_cv_deplibs_check_method+:} false; then :
5668 $as_echo_n "(cached) " >&6
5670 lt_cv_file_magic_cmd='$MAGIC_CMD'
5671 lt_cv_file_magic_test_file=
5672 lt_cv_deplibs_check_method='unknown'
5673 # Need to set the preceding variable on all platforms that support
5674 # interlibrary dependencies.
5675 # 'none' -- dependencies not supported.
5676 # `unknown' -- same as none, but documents that we really don't know.
5677 # 'pass_all' -- all dependencies passed with no checks.
5678 # 'test_compile' -- check by making test program.
5679 # 'file_magic [[regex]]' -- check by looking for files in library path
5680 # which responds to the $file_magic_cmd with a given extended regex.
5681 # If you have `file' or equivalent on your system and you're not sure
5682 # whether `pass_all' will *always* work, you probably want this one.
5686 lt_cv_deplibs_check_method=pass_all
5690 lt_cv_deplibs_check_method=pass_all
5694 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5695 lt_cv_file_magic_cmd='/usr/bin/file -L'
5696 lt_cv_file_magic_test_file=/shlib/libc.so
5700 # func_win32_libid is a shell function defined in ltmain.sh
5701 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5702 lt_cv_file_magic_cmd='func_win32_libid'
5706 # Base MSYS/MinGW do not provide the 'file' command needed by
5707 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5708 # unless we find 'file', for example because we are cross-compiling.
5709 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5710 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5711 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5712 lt_cv_file_magic_cmd='func_win32_libid'
5714 # Keep this pattern in sync with the one in func_win32_libid.
5715 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5716 lt_cv_file_magic_cmd='$OBJDUMP -f'
5721 # use the weaker test based on 'objdump'. See mingw*.
5722 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5723 lt_cv_file_magic_cmd='$OBJDUMP -f'
5726 darwin* | rhapsody*)
5727 lt_cv_deplibs_check_method=pass_all
5730 freebsd* | dragonfly*)
5731 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5734 # Not sure whether the presence of OpenBSD here was a mistake.
5735 # Let's accept both of them until this is cleared up.
5736 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5737 lt_cv_file_magic_cmd=/usr/bin/file
5738 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5742 lt_cv_deplibs_check_method=pass_all
5747 lt_cv_deplibs_check_method=pass_all
5751 lt_cv_deplibs_check_method=pass_all
5754 hpux10.20* | hpux11*)
5755 lt_cv_file_magic_cmd=/usr/bin/file
5758 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5759 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5762 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]'
5763 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5766 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5767 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5773 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5774 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5777 irix5* | irix6* | nonstopux*)
5779 *-32|*"-32 ") libmagic=32-bit;;
5780 *-n32|*"-n32 ") libmagic=N32;;
5781 *-64|*"-64 ") libmagic=64-bit;;
5782 *) libmagic=never-match;;
5784 lt_cv_deplibs_check_method=pass_all
5787 # This must be Linux ELF.
5788 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5789 lt_cv_deplibs_check_method=pass_all
5793 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5794 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5796 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5801 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5802 lt_cv_file_magic_cmd=/usr/bin/file
5803 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5807 lt_cv_deplibs_check_method=pass_all
5811 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5812 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5814 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5818 osf3* | osf4* | osf5*)
5819 lt_cv_deplibs_check_method=pass_all
5823 lt_cv_deplibs_check_method=pass_all
5827 lt_cv_deplibs_check_method=pass_all
5830 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5831 lt_cv_deplibs_check_method=pass_all
5835 case $host_vendor in
5837 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]'
5838 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5841 lt_cv_deplibs_check_method=pass_all
5844 lt_cv_file_magic_cmd='/bin/file'
5845 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5848 lt_cv_file_magic_cmd='/bin/file'
5849 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5850 lt_cv_file_magic_test_file=/lib/libc.so
5853 lt_cv_deplibs_check_method=pass_all
5856 lt_cv_deplibs_check_method=pass_all
5862 lt_cv_deplibs_check_method=pass_all
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5868 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5869 file_magic_cmd=$lt_cv_file_magic_cmd
5870 deplibs_check_method=$lt_cv_deplibs_check_method
5871 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5884 if test -n "$ac_tool_prefix"; then
5885 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5886 set dummy ${ac_tool_prefix}ar; ac_word=$2
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888 $as_echo_n "checking for $ac_word... " >&6; }
5889 if ${ac_cv_prog_AR+:} false; then :
5890 $as_echo_n "(cached) " >&6
5892 if test -n "$AR"; then
5893 ac_cv_prog_AR="$AR" # Let the user override the test.
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5902 ac_cv_prog_AR="${ac_tool_prefix}ar"
5903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 if test -n "$AR"; then
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5915 $as_echo "$AR" >&6; }
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918 $as_echo "no" >&6; }
5923 if test -z "$ac_cv_prog_AR"; then
5925 # Extract the first word of "ar", so it can be a program name with args.
5926 set dummy ar; ac_word=$2
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5930 $as_echo_n "(cached) " >&6
5932 if test -n "$ac_ct_AR"; then
5933 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942 ac_cv_prog_ac_ct_AR="ar"
5943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5953 if test -n "$ac_ct_AR"; then
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5955 $as_echo "$ac_ct_AR" >&6; }
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5961 if test "x$ac_ct_AR" = x; then
5964 case $cross_compiling:$ac_tool_warned in
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5968 ac_tool_warned=yes ;;
5976 test -z "$AR" && AR=ar
5977 test -z "$AR_FLAGS" && AR_FLAGS=cru
5989 if test -n "$ac_tool_prefix"; then
5990 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5991 set dummy ${ac_tool_prefix}strip; ac_word=$2
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5993 $as_echo_n "checking for $ac_word... " >&6; }
5994 if ${ac_cv_prog_STRIP+:} false; then :
5995 $as_echo_n "(cached) " >&6
5997 if test -n "$STRIP"; then
5998 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004 test -z "$as_dir" && as_dir=.
6005 for ac_exec_ext in '' $ac_executable_extensions; do
6006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6007 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6017 STRIP=$ac_cv_prog_STRIP
6018 if test -n "$STRIP"; then
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6020 $as_echo "$STRIP" >&6; }
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6023 $as_echo "no" >&6; }
6028 if test -z "$ac_cv_prog_STRIP"; then
6030 # Extract the first word of "strip", so it can be a program name with args.
6031 set dummy strip; ac_word=$2
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6033 $as_echo_n "checking for $ac_word... " >&6; }
6034 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6035 $as_echo_n "(cached) " >&6
6037 if test -n "$ac_ct_STRIP"; then
6038 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044 test -z "$as_dir" && as_dir=.
6045 for ac_exec_ext in '' $ac_executable_extensions; do
6046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6047 ac_cv_prog_ac_ct_STRIP="strip"
6048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6057 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6058 if test -n "$ac_ct_STRIP"; then
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6060 $as_echo "$ac_ct_STRIP" >&6; }
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063 $as_echo "no" >&6; }
6066 if test "x$ac_ct_STRIP" = x; then
6069 case $cross_compiling:$ac_tool_warned in
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6073 ac_tool_warned=yes ;;
6078 STRIP="$ac_cv_prog_STRIP"
6081 test -z "$STRIP" && STRIP=:
6088 if test -n "$ac_tool_prefix"; then
6089 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6090 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6092 $as_echo_n "checking for $ac_word... " >&6; }
6093 if ${ac_cv_prog_RANLIB+:} false; then :
6094 $as_echo_n "(cached) " >&6
6096 if test -n "$RANLIB"; then
6097 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 test -z "$as_dir" && as_dir=.
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6106 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6116 RANLIB=$ac_cv_prog_RANLIB
6117 if test -n "$RANLIB"; then
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6119 $as_echo "$RANLIB" >&6; }
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6122 $as_echo "no" >&6; }
6127 if test -z "$ac_cv_prog_RANLIB"; then
6128 ac_ct_RANLIB=$RANLIB
6129 # Extract the first word of "ranlib", so it can be a program name with args.
6130 set dummy ranlib; ac_word=$2
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6132 $as_echo_n "checking for $ac_word... " >&6; }
6133 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6134 $as_echo_n "(cached) " >&6
6136 if test -n "$ac_ct_RANLIB"; then
6137 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 test -z "$as_dir" && as_dir=.
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6146 ac_cv_prog_ac_ct_RANLIB="ranlib"
6147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6156 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6157 if test -n "$ac_ct_RANLIB"; then
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6159 $as_echo "$ac_ct_RANLIB" >&6; }
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6162 $as_echo "no" >&6; }
6165 if test "x$ac_ct_RANLIB" = x; then
6168 case $cross_compiling:$ac_tool_warned in
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6172 ac_tool_warned=yes ;;
6174 RANLIB=$ac_ct_RANLIB
6177 RANLIB="$ac_cv_prog_RANLIB"
6180 test -z "$RANLIB" && RANLIB=:
6187 # Determine commands to create old-style static archives.
6188 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6189 old_postinstall_cmds='chmod 644 $oldlib'
6190 old_postuninstall_cmds=
6192 if test -n "$RANLIB"; then
6195 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6198 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6201 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6206 lock_old_archive_extraction=yes ;;
6208 lock_old_archive_extraction=no ;;
6249 # If no C compiler was specified, use CC.
6252 # If no C compiler flags were specified, use CFLAGS.
6253 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6255 # Allow CC to be a program name with arguments.
6259 # Check for command to grab the raw symbol name followed by C symbol from nm.
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6261 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6262 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6263 $as_echo_n "(cached) " >&6
6266 # These are sane defaults that work on at least a few old systems.
6267 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6269 # Character class describing NM global symbol codes.
6270 symcode='[BCDEGRST]'
6272 # Regexp to match symbols that can be accessed directly from C.
6273 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6275 # Define system-specific variables.
6280 cygwin* | mingw* | pw32* | cegcc*)
6281 symcode='[ABCDGISTW]'
6284 if test "$host_cpu" = ia64; then
6285 symcode='[ABCDEGRST]'
6289 symcode='[BCDEGRST]'
6292 symcode='[BCDEGQRST]'
6303 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6311 # If we're using GNU nm, then use its standard symbol codes.
6312 case `$NM -V 2>&1` in
6313 *GNU* | *'with BFD'*)
6314 symcode='[ABCDGIRSTW]' ;;
6317 # Transform an extracted symbol line into a proper C declaration.
6318 # Some systems (esp. on ia64) link data and code symbols differently,
6319 # so use this general approach.
6320 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6322 # Transform an extracted symbol line into symbol name and symbol address
6323 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6324 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'"
6326 # Handle CRLF in mingw tool chain
6330 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6334 # Try without a prefix underscore, then with it.
6335 for ac_symprfx in "" "_"; do
6337 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6338 symxfrm="\\1 $ac_symprfx\\2 \\2"
6340 # Write the raw and C identifiers.
6341 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6342 # Fake it for dumpbin and say T for any non-static function
6343 # and D for any global variable.
6344 # Also find C++ and __fastcall symbols from MSVC++,
6345 # which start with @ or ?.
6346 lt_cv_sys_global_symbol_pipe="$AWK '"\
6347 " {last_section=section; section=\$ 3};"\
6348 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6349 " \$ 0!~/External *\|/{next};"\
6350 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6351 " {if(hide[section]) next};"\
6352 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6353 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6354 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6355 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6356 " ' prfx=^$ac_symprfx"
6358 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6361 # Check to see that the pipe works correctly.
6365 cat > conftest.$ac_ext <<_LT_EOF
6370 void nm_test_func(void);
6371 void nm_test_func(void){}
6375 int main(){nm_test_var='a';nm_test_func();return(0);}
6378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6379 (eval $ac_compile) 2>&5
6381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6382 test $ac_status = 0; }; then
6383 # Now try to grab the symbols.
6385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6386 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6389 test $ac_status = 0; } && test -s "$nlist"; then
6390 # Try sorting and uniquifying the output.
6391 if sort "$nlist" | uniq > "$nlist"T; then
6392 mv -f "$nlist"T "$nlist"
6397 # Make sure that we snagged all the symbols we need.
6398 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6399 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6400 cat <<_LT_EOF > conftest.$ac_ext
6406 # Now generate the symbol file.
6407 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6409 cat <<_LT_EOF >> conftest.$ac_ext
6411 /* The mapping between symbol names and symbols. */
6416 lt__PROGRAM__LTX_preloaded_symbols[] =
6418 { "@PROGRAM@", (void *) 0 },
6420 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6421 cat <<\_LT_EOF >> conftest.$ac_ext
6425 /* This works around a problem in FreeBSD linker */
6426 #ifdef FREEBSD_WORKAROUND
6427 static const void *lt_preloaded_setup() {
6428 return lt__PROGRAM__LTX_preloaded_symbols;
6436 # Now try linking the two files.
6437 mv conftest.$ac_objext conftstm.$ac_objext
6438 lt_save_LIBS="$LIBS"
6439 lt_save_CFLAGS="$CFLAGS"
6440 LIBS="conftstm.$ac_objext"
6441 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6443 (eval $ac_link) 2>&5
6445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6446 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6449 LIBS="$lt_save_LIBS"
6450 CFLAGS="$lt_save_CFLAGS"
6452 echo "cannot find nm_test_func in $nlist" >&5
6455 echo "cannot find nm_test_var in $nlist" >&5
6458 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6461 echo "$progname: failed program was:" >&5
6462 cat conftest.$ac_ext >&5
6464 rm -rf conftest* conftst*
6466 # Do not use the global_symbol_pipe unless it works.
6467 if test "$pipe_works" = yes; then
6470 lt_cv_sys_global_symbol_pipe=
6476 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6477 lt_cv_sys_global_symbol_to_cdecl=
6479 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6481 $as_echo "failed" >&6; }
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6484 $as_echo "ok" >&6; }
6508 # Check whether --enable-libtool-lock was given.
6509 if test "${enable_libtool_lock+set}" = set; then :
6510 enableval=$enable_libtool_lock;
6513 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6515 # Some flags need to be propagated to the compiler or linker for good
6519 # Find out which ABI we are using.
6520 echo 'int i;' > conftest.$ac_ext
6521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6522 (eval $ac_compile) 2>&5
6524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6525 test $ac_status = 0; }; then
6526 case `/usr/bin/file conftest.$ac_objext` in
6538 # Find out which ABI we are using.
6539 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6541 (eval $ac_compile) 2>&5
6543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6544 test $ac_status = 0; }; then
6545 if test "$lt_cv_prog_gnu_ld" = yes; then
6546 case `/usr/bin/file conftest.$ac_objext` in
6548 LD="${LD-ld} -melf32bsmip"
6551 LD="${LD-ld} -melf32bmipn32"
6554 LD="${LD-ld} -melf64bmip"
6558 case `/usr/bin/file conftest.$ac_objext` in
6574 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6575 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6576 # Find out which ABI we are using.
6577 echo 'int i;' > conftest.$ac_ext
6578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6579 (eval $ac_compile) 2>&5
6581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6582 test $ac_status = 0; }; then
6583 case `/usr/bin/file conftest.o` in
6586 x86_64-*kfreebsd*-gnu)
6587 LD="${LD-ld} -m elf_i386_fbsd"
6590 LD="${LD-ld} -m elf_i386"
6592 ppc64-*linux*|powerpc64-*linux*)
6593 LD="${LD-ld} -m elf32ppclinux"
6596 LD="${LD-ld} -m elf_s390"
6599 LD="${LD-ld} -m elf32_sparc"
6605 x86_64-*kfreebsd*-gnu)
6606 LD="${LD-ld} -m elf_x86_64_fbsd"
6609 LD="${LD-ld} -m elf_x86_64"
6611 ppc*-*linux*|powerpc*-*linux*)
6612 LD="${LD-ld} -m elf64ppc"
6614 s390*-*linux*|s390*-*tpf*)
6615 LD="${LD-ld} -m elf64_s390"
6618 LD="${LD-ld} -m elf64_sparc"
6628 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6629 SAVE_CFLAGS="$CFLAGS"
6630 CFLAGS="$CFLAGS -belf"
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6632 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6633 if ${lt_cv_cc_needs_belf+:} false; then :
6634 $as_echo_n "(cached) " >&6
6637 ac_cpp='$CPP $CPPFLAGS'
6638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6653 if ac_fn_c_try_link "$LINENO"; then :
6654 lt_cv_cc_needs_belf=yes
6656 lt_cv_cc_needs_belf=no
6658 rm -f core conftest.err conftest.$ac_objext \
6659 conftest$ac_exeext conftest.$ac_ext
6661 ac_cpp='$CPP $CPPFLAGS'
6662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6668 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6669 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6670 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6671 CFLAGS="$SAVE_CFLAGS"
6675 # Find out which ABI we are using.
6676 echo 'int i;' > conftest.$ac_ext
6677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6678 (eval $ac_compile) 2>&5
6680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6681 test $ac_status = 0; }; then
6682 case `/usr/bin/file conftest.o` in
6684 case $lt_cv_prog_gnu_ld in
6685 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6687 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6699 need_locks="$enable_libtool_lock"
6703 rhapsody* | darwin*)
6704 if test -n "$ac_tool_prefix"; then
6705 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6706 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708 $as_echo_n "checking for $ac_word... " >&6; }
6709 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6710 $as_echo_n "(cached) " >&6
6712 if test -n "$DSYMUTIL"; then
6713 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 test -z "$as_dir" && as_dir=.
6720 for ac_exec_ext in '' $ac_executable_extensions; do
6721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6722 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6733 if test -n "$DSYMUTIL"; then
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6735 $as_echo "$DSYMUTIL" >&6; }
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6738 $as_echo "no" >&6; }
6743 if test -z "$ac_cv_prog_DSYMUTIL"; then
6744 ac_ct_DSYMUTIL=$DSYMUTIL
6745 # Extract the first word of "dsymutil", so it can be a program name with args.
6746 set dummy dsymutil; ac_word=$2
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748 $as_echo_n "checking for $ac_word... " >&6; }
6749 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6750 $as_echo_n "(cached) " >&6
6752 if test -n "$ac_ct_DSYMUTIL"; then
6753 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 test -z "$as_dir" && as_dir=.
6760 for ac_exec_ext in '' $ac_executable_extensions; do
6761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6762 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6772 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6773 if test -n "$ac_ct_DSYMUTIL"; then
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6775 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778 $as_echo "no" >&6; }
6781 if test "x$ac_ct_DSYMUTIL" = x; then
6784 case $cross_compiling:$ac_tool_warned in
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6788 ac_tool_warned=yes ;;
6790 DSYMUTIL=$ac_ct_DSYMUTIL
6793 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6796 if test -n "$ac_tool_prefix"; then
6797 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6798 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800 $as_echo_n "checking for $ac_word... " >&6; }
6801 if ${ac_cv_prog_NMEDIT+:} false; then :
6802 $as_echo_n "(cached) " >&6
6804 if test -n "$NMEDIT"; then
6805 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6814 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6824 NMEDIT=$ac_cv_prog_NMEDIT
6825 if test -n "$NMEDIT"; then
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6827 $as_echo "$NMEDIT" >&6; }
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830 $as_echo "no" >&6; }
6835 if test -z "$ac_cv_prog_NMEDIT"; then
6836 ac_ct_NMEDIT=$NMEDIT
6837 # Extract the first word of "nmedit", so it can be a program name with args.
6838 set dummy nmedit; ac_word=$2
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840 $as_echo_n "checking for $ac_word... " >&6; }
6841 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6842 $as_echo_n "(cached) " >&6
6844 if test -n "$ac_ct_NMEDIT"; then
6845 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 test -z "$as_dir" && as_dir=.
6852 for ac_exec_ext in '' $ac_executable_extensions; do
6853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6854 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6864 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6865 if test -n "$ac_ct_NMEDIT"; then
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6867 $as_echo "$ac_ct_NMEDIT" >&6; }
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870 $as_echo "no" >&6; }
6873 if test "x$ac_ct_NMEDIT" = x; then
6876 case $cross_compiling:$ac_tool_warned in
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6880 ac_tool_warned=yes ;;
6882 NMEDIT=$ac_ct_NMEDIT
6885 NMEDIT="$ac_cv_prog_NMEDIT"
6888 if test -n "$ac_tool_prefix"; then
6889 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6890 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892 $as_echo_n "checking for $ac_word... " >&6; }
6893 if ${ac_cv_prog_LIPO+:} false; then :
6894 $as_echo_n "(cached) " >&6
6896 if test -n "$LIPO"; then
6897 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6906 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 LIPO=$ac_cv_prog_LIPO
6917 if test -n "$LIPO"; then
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6919 $as_echo "$LIPO" >&6; }
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922 $as_echo "no" >&6; }
6927 if test -z "$ac_cv_prog_LIPO"; then
6929 # Extract the first word of "lipo", so it can be a program name with args.
6930 set dummy lipo; ac_word=$2
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932 $as_echo_n "checking for $ac_word... " >&6; }
6933 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6934 $as_echo_n "(cached) " >&6
6936 if test -n "$ac_ct_LIPO"; then
6937 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 test -z "$as_dir" && as_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6946 ac_cv_prog_ac_ct_LIPO="lipo"
6947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6957 if test -n "$ac_ct_LIPO"; then
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6959 $as_echo "$ac_ct_LIPO" >&6; }
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962 $as_echo "no" >&6; }
6965 if test "x$ac_ct_LIPO" = x; then
6968 case $cross_compiling:$ac_tool_warned in
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6972 ac_tool_warned=yes ;;
6977 LIPO="$ac_cv_prog_LIPO"
6980 if test -n "$ac_tool_prefix"; then
6981 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6982 set dummy ${ac_tool_prefix}otool; ac_word=$2
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984 $as_echo_n "checking for $ac_word... " >&6; }
6985 if ${ac_cv_prog_OTOOL+:} false; then :
6986 $as_echo_n "(cached) " >&6
6988 if test -n "$OTOOL"; then
6989 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 test -z "$as_dir" && as_dir=.
6996 for ac_exec_ext in '' $ac_executable_extensions; do
6997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6998 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 OTOOL=$ac_cv_prog_OTOOL
7009 if test -n "$OTOOL"; then
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7011 $as_echo "$OTOOL" >&6; }
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014 $as_echo "no" >&6; }
7019 if test -z "$ac_cv_prog_OTOOL"; then
7021 # Extract the first word of "otool", so it can be a program name with args.
7022 set dummy otool; ac_word=$2
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7024 $as_echo_n "checking for $ac_word... " >&6; }
7025 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7026 $as_echo_n "(cached) " >&6
7028 if test -n "$ac_ct_OTOOL"; then
7029 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 test -z "$as_dir" && as_dir=.
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7038 ac_cv_prog_ac_ct_OTOOL="otool"
7039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7048 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7049 if test -n "$ac_ct_OTOOL"; then
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7051 $as_echo "$ac_ct_OTOOL" >&6; }
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7054 $as_echo "no" >&6; }
7057 if test "x$ac_ct_OTOOL" = x; then
7060 case $cross_compiling:$ac_tool_warned in
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7064 ac_tool_warned=yes ;;
7069 OTOOL="$ac_cv_prog_OTOOL"
7072 if test -n "$ac_tool_prefix"; then
7073 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7074 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076 $as_echo_n "checking for $ac_word... " >&6; }
7077 if ${ac_cv_prog_OTOOL64+:} false; then :
7078 $as_echo_n "(cached) " >&6
7080 if test -n "$OTOOL64"; then
7081 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 test -z "$as_dir" && as_dir=.
7088 for ac_exec_ext in '' $ac_executable_extensions; do
7089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7090 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7100 OTOOL64=$ac_cv_prog_OTOOL64
7101 if test -n "$OTOOL64"; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7103 $as_echo "$OTOOL64" >&6; }
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106 $as_echo "no" >&6; }
7111 if test -z "$ac_cv_prog_OTOOL64"; then
7112 ac_ct_OTOOL64=$OTOOL64
7113 # Extract the first word of "otool64", so it can be a program name with args.
7114 set dummy otool64; ac_word=$2
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7116 $as_echo_n "checking for $ac_word... " >&6; }
7117 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7118 $as_echo_n "(cached) " >&6
7120 if test -n "$ac_ct_OTOOL64"; then
7121 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 test -z "$as_dir" && as_dir=.
7128 for ac_exec_ext in '' $ac_executable_extensions; do
7129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7130 ac_cv_prog_ac_ct_OTOOL64="otool64"
7131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7140 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7141 if test -n "$ac_ct_OTOOL64"; then
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7143 $as_echo "$ac_ct_OTOOL64" >&6; }
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7146 $as_echo "no" >&6; }
7149 if test "x$ac_ct_OTOOL64" = x; then
7152 case $cross_compiling:$ac_tool_warned in
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7156 ac_tool_warned=yes ;;
7158 OTOOL64=$ac_ct_OTOOL64
7161 OTOOL64="$ac_cv_prog_OTOOL64"
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7191 $as_echo_n "checking for -single_module linker flag... " >&6; }
7192 if ${lt_cv_apple_cc_single_mod+:} false; then :
7193 $as_echo_n "(cached) " >&6
7195 lt_cv_apple_cc_single_mod=no
7196 if test -z "${LT_MULTI_MODULE}"; then
7197 # By default we will add the -single_module flag. You can override
7198 # by either setting the environment variable LT_MULTI_MODULE
7199 # non-empty at configure time, or by adding -multi_module to the
7201 rm -rf libconftest.dylib*
7202 echo "int foo(void){return 1;}" > conftest.c
7203 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7204 -dynamiclib -Wl,-single_module conftest.c" >&5
7205 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7206 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7208 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7209 lt_cv_apple_cc_single_mod=yes
7211 cat conftest.err >&5
7213 rm -rf libconftest.dylib*
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7218 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7220 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7221 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7222 $as_echo_n "(cached) " >&6
7224 lt_cv_ld_exported_symbols_list=no
7225 save_LDFLAGS=$LDFLAGS
7226 echo "_main" > conftest.sym
7227 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h. */
7239 if ac_fn_c_try_link "$LINENO"; then :
7240 lt_cv_ld_exported_symbols_list=yes
7242 lt_cv_ld_exported_symbols_list=no
7244 rm -f core conftest.err conftest.$ac_objext \
7245 conftest$ac_exeext conftest.$ac_ext
7246 LDFLAGS="$save_LDFLAGS"
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7250 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7252 $as_echo_n "checking for -force_load linker flag... " >&6; }
7253 if ${lt_cv_ld_force_load+:} false; then :
7254 $as_echo_n "(cached) " >&6
7256 lt_cv_ld_force_load=no
7257 cat > conftest.c << _LT_EOF
7258 int forced_loaded() { return 2;}
7260 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7261 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7262 echo "$AR cru libconftest.a conftest.o" >&5
7263 $AR cru libconftest.a conftest.o 2>&5
7264 echo "$RANLIB libconftest.a" >&5
7265 $RANLIB libconftest.a 2>&5
7266 cat > conftest.c << _LT_EOF
7267 int main() { return 0;}
7269 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7270 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7272 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7273 lt_cv_ld_force_load=yes
7275 cat conftest.err >&5
7277 rm -f conftest.err libconftest.a conftest conftest.c
7278 rm -rf conftest.dSYM
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7282 $as_echo "$lt_cv_ld_force_load" >&6; }
7284 rhapsody* | darwin1.[012])
7285 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7287 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7288 darwin*) # darwin 5.x on
7289 # if running on 10.5 or later, the deployment target defaults
7290 # to the OS version, if on x86, and 10.4, the deployment
7291 # target defaults to 10.4. Don't you love it?
7292 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7293 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7294 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7296 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7298 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7302 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7303 _lt_dar_single_mod='$single_module'
7305 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7306 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7308 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7310 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7311 _lt_dsymutil='~$DSYMUTIL $lib || :'
7318 for ac_header in dlfcn.h
7320 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7322 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7323 cat >>confdefs.h <<_ACEOF
7324 #define HAVE_DLFCN_H 1
7345 # Check whether --enable-shared was given.
7346 if test "${enable_shared+set}" = set; then :
7347 enableval=$enable_shared; p=${PACKAGE-default}
7349 yes) enable_shared=yes ;;
7350 no) enable_shared=no ;;
7353 # Look at the argument we got. We use all the common list separators.
7354 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7355 for pkg in $enableval; do
7357 if test "X$pkg" = "X$p"; then
7376 # Check whether --enable-static was given.
7377 if test "${enable_static+set}" = set; then :
7378 enableval=$enable_static; p=${PACKAGE-default}
7380 yes) enable_static=yes ;;
7381 no) enable_static=no ;;
7384 # Look at the argument we got. We use all the common list separators.
7385 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7386 for pkg in $enableval; do
7388 if test "X$pkg" = "X$p"; then
7408 # Check whether --with-pic was given.
7409 if test "${with_pic+set}" = set; then :
7410 withval=$with_pic; pic_mode="$withval"
7416 test -z "$pic_mode" && pic_mode=default
7424 # Check whether --enable-fast-install was given.
7425 if test "${enable_fast_install+set}" = set; then :
7426 enableval=$enable_fast_install; p=${PACKAGE-default}
7428 yes) enable_fast_install=yes ;;
7429 no) enable_fast_install=no ;;
7431 enable_fast_install=no
7432 # Look at the argument we got. We use all the common list separators.
7433 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7434 for pkg in $enableval; do
7436 if test "X$pkg" = "X$p"; then
7437 enable_fast_install=yes
7444 enable_fast_install=yes
7457 # This can be used to rebuild libtool when needed
7458 LIBTOOL_DEPS="$ltmain"
7460 # Always use our own libtool.
7461 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7488 test -z "$LN_S" && LN_S="ln -s"
7503 if test -n "${ZSH_VERSION+set}" ; then
7504 setopt NO_GLOB_SUBST
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7508 $as_echo_n "checking for objdir... " >&6; }
7509 if ${lt_cv_objdir+:} false; then :
7510 $as_echo_n "(cached) " >&6
7512 rm -f .libs 2>/dev/null
7513 mkdir .libs 2>/dev/null
7514 if test -d .libs; then
7517 # MS-DOS does not allow filenames that begin with a dot.
7520 rmdir .libs 2>/dev/null
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7523 $as_echo "$lt_cv_objdir" >&6; }
7524 objdir=$lt_cv_objdir
7530 cat >>confdefs.h <<_ACEOF
7531 #define LT_OBJDIR "$lt_cv_objdir/"
7539 # AIX sometimes has problems with the GCC collect2 program. For some
7540 # reason, if we set the COLLECT_NAMES environment variable, the problems
7541 # vanish in a puff of smoke.
7542 if test "X${COLLECT_NAMES+set}" != Xset; then
7544 export COLLECT_NAMES
7551 can_build_shared=yes
7553 # All known linkers require a `.a' archive for static linking (except MSVC,
7554 # which needs '.lib').
7557 with_gnu_ld="$lt_cv_prog_gnu_ld"
7560 old_CFLAGS="$CFLAGS"
7562 # Set sane defaults for various variables
7563 test -z "$CC" && CC=cc
7564 test -z "$LTCC" && LTCC=$CC
7565 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7566 test -z "$LD" && LD=ld
7567 test -z "$ac_objext" && ac_objext=o
7569 for cc_temp in $compiler""; do
7571 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7572 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7577 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7580 # Only perform the check for file, if the check method requires it
7581 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7582 case $deplibs_check_method in
7584 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7586 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7587 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7588 $as_echo_n "(cached) " >&6
7592 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7595 lt_save_MAGIC_CMD="$MAGIC_CMD"
7596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7597 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7598 for ac_dir in $ac_dummy; do
7600 test -z "$ac_dir" && ac_dir=.
7601 if test -f $ac_dir/${ac_tool_prefix}file; then
7602 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7603 if test -n "$file_magic_test_file"; then
7604 case $deplibs_check_method in
7606 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7607 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7608 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7609 $EGREP "$file_magic_regex" > /dev/null; then
7614 *** Warning: the command libtool uses to detect shared libraries,
7615 *** $file_magic_cmd, produces output that libtool cannot recognize.
7616 *** The result is that libtool may fail to recognize shared libraries
7617 *** as such. This will affect the creation of libtool libraries that
7618 *** depend on shared libraries, but programs linked with such libtool
7619 *** libraries will work regardless of this problem. Nevertheless, you
7620 *** may want to report the problem to your system manager and/or to
7621 *** bug-libtool@gnu.org
7631 MAGIC_CMD="$lt_save_MAGIC_CMD"
7636 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7637 if test -n "$MAGIC_CMD"; then
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7639 $as_echo "$MAGIC_CMD" >&6; }
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7642 $as_echo "no" >&6; }
7649 if test -z "$lt_cv_path_MAGIC_CMD"; then
7650 if test -n "$ac_tool_prefix"; then
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7652 $as_echo_n "checking for file... " >&6; }
7653 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7654 $as_echo_n "(cached) " >&6
7658 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7661 lt_save_MAGIC_CMD="$MAGIC_CMD"
7662 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7663 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7664 for ac_dir in $ac_dummy; do
7666 test -z "$ac_dir" && ac_dir=.
7667 if test -f $ac_dir/file; then
7668 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7669 if test -n "$file_magic_test_file"; then
7670 case $deplibs_check_method in
7672 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7673 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7674 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7675 $EGREP "$file_magic_regex" > /dev/null; then
7680 *** Warning: the command libtool uses to detect shared libraries,
7681 *** $file_magic_cmd, produces output that libtool cannot recognize.
7682 *** The result is that libtool may fail to recognize shared libraries
7683 *** as such. This will affect the creation of libtool libraries that
7684 *** depend on shared libraries, but programs linked with such libtool
7685 *** libraries will work regardless of this problem. Nevertheless, you
7686 *** may want to report the problem to your system manager and/or to
7687 *** bug-libtool@gnu.org
7697 MAGIC_CMD="$lt_save_MAGIC_CMD"
7702 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7703 if test -n "$MAGIC_CMD"; then
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7705 $as_echo "$MAGIC_CMD" >&6; }
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7721 # Use C for the default configuration in the libtool script
7725 ac_cpp='$CPP $CPPFLAGS'
7726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7731 # Source file extension for C test sources.
7734 # Object file extension for compiled C test sources.
7738 # Code to be used in simple compile tests
7739 lt_simple_compile_test_code="int some_variable = 0;"
7741 # Code to be used in simple link tests
7742 lt_simple_link_test_code='int main(){return(0);}'
7750 # If no C compiler was specified, use CC.
7753 # If no C compiler flags were specified, use CFLAGS.
7754 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7756 # Allow CC to be a program name with arguments.
7759 # Save the default compiler, since it gets overwritten when the other
7760 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7761 compiler_DEFAULT=$CC
7763 # save warnings/boilerplate of simple test code
7764 ac_outfile=conftest.$ac_objext
7765 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7766 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7767 _lt_compiler_boilerplate=`cat conftest.err`
7770 ac_outfile=conftest.$ac_objext
7771 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7772 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7773 _lt_linker_boilerplate=`cat conftest.err`
7777 if test -n "$compiler"; then
7779 lt_prog_compiler_no_builtin_flag=
7781 if test "$GCC" = yes; then
7782 case $cc_basename in
7784 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7786 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7790 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7791 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7792 $as_echo_n "(cached) " >&6
7794 lt_cv_prog_compiler_rtti_exceptions=no
7795 ac_outfile=conftest.$ac_objext
7796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7797 lt_compiler_flag="-fno-rtti -fno-exceptions"
7798 # Insert the option either (1) after the last *FLAGS variable, or
7799 # (2) before a word containing "conftest.", or (3) at the end.
7800 # Note that $ac_compile itself does not contain backslashes and begins
7801 # with a dollar sign (not a hyphen), so the echo should work correctly.
7802 # The option is referenced via a variable to avoid confusing sed.
7803 lt_compile=`echo "$ac_compile" | $SED \
7804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7806 -e 's:$: $lt_compiler_flag:'`
7807 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7808 (eval "$lt_compile" 2>conftest.err)
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 if (exit $ac_status) && test -s "$ac_outfile"; then
7813 # The compiler can only warn and ignore the option if not recognized
7814 # So say no if there are warnings other than the usual output.
7815 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7816 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7817 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7818 lt_cv_prog_compiler_rtti_exceptions=yes
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7825 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7827 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7828 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7840 lt_prog_compiler_wl=
7841 lt_prog_compiler_pic=
7842 lt_prog_compiler_static=
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7845 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7847 if test "$GCC" = yes; then
7848 lt_prog_compiler_wl='-Wl,'
7849 lt_prog_compiler_static='-static'
7853 # All AIX code is PIC.
7854 if test "$host_cpu" = ia64; then
7855 # AIX 5 now supports IA64 processor
7856 lt_prog_compiler_static='-Bstatic'
7863 # see comment about AmigaOS4 .so support
7864 lt_prog_compiler_pic='-fPIC'
7867 # FIXME: we need at least 68020 code to build shared libraries, but
7868 # adding the `-m68020' flag to GCC prevents building anything better,
7870 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7875 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7876 # PIC is the default for these OSes.
7879 mingw* | cygwin* | pw32* | os2* | cegcc*)
7880 # This hack is so that the source file can tell whether it is being
7881 # built for inclusion in a dll (and should export symbols for example).
7882 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7883 # (--disable-auto-import) libraries
7884 lt_prog_compiler_pic='-DDLL_EXPORT'
7887 darwin* | rhapsody*)
7888 # PIC is the default on this platform
7889 # Common symbols not allowed in MH_DYLIB files
7890 lt_prog_compiler_pic='-fno-common'
7894 # PIC is the default for Haiku.
7895 # The "-static" flag exists, but is broken.
7896 lt_prog_compiler_static=
7900 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7901 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7902 # sets the default TLS model and affects inlining.
7908 lt_prog_compiler_pic='-fPIC'
7914 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7915 # Instead, we relocate shared libraries at runtime.
7919 # Just because we use GCC doesn't mean we suddenly get shared libraries
7920 # on systems that don't support them.
7921 lt_prog_compiler_can_build_shared=no
7926 # QNX uses GNU C++, but need to define -shared option too, otherwise
7928 lt_prog_compiler_pic='-fPIC -shared'
7932 if test -d /usr/nec; then
7933 lt_prog_compiler_pic=-Kconform_pic
7938 lt_prog_compiler_pic='-fPIC'
7942 case $cc_basename in
7943 nvcc*) # Cuda Compiler Driver 2.2
7944 lt_prog_compiler_wl='-Xlinker '
7945 lt_prog_compiler_pic='-Xcompiler -fPIC'
7949 # PORTME Check for flag to pass linker flags through the system compiler.
7952 lt_prog_compiler_wl='-Wl,'
7953 if test "$host_cpu" = ia64; then
7954 # AIX 5 now supports IA64 processor
7955 lt_prog_compiler_static='-Bstatic'
7957 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7961 mingw* | cygwin* | pw32* | os2* | cegcc*)
7962 # This hack is so that the source file can tell whether it is being
7963 # built for inclusion in a dll (and should export symbols for example).
7964 lt_prog_compiler_pic='-DDLL_EXPORT'
7967 hpux9* | hpux10* | hpux11*)
7968 lt_prog_compiler_wl='-Wl,'
7969 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7976 lt_prog_compiler_pic='+Z'
7979 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7980 lt_prog_compiler_static='${wl}-a ${wl}archive'
7983 irix5* | irix6* | nonstopux*)
7984 lt_prog_compiler_wl='-Wl,'
7985 # PIC (with -KPIC) is the default.
7986 lt_prog_compiler_static='-non_shared'
7989 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7990 case $cc_basename in
7991 # old Intel for x86_64 which still supported -KPIC.
7993 lt_prog_compiler_wl='-Wl,'
7994 lt_prog_compiler_pic='-KPIC'
7995 lt_prog_compiler_static='-static'
7997 # icc used to be incompatible with GCC.
7998 # ICC 10 doesn't accept -KPIC any more.
8000 lt_prog_compiler_wl='-Wl,'
8001 lt_prog_compiler_pic='-fPIC'
8002 lt_prog_compiler_static='-static'
8004 # Lahey Fortran 8.1.
8006 lt_prog_compiler_wl='-Wl,'
8007 lt_prog_compiler_pic='--shared'
8008 lt_prog_compiler_static='--static'
8010 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8011 # Portland Group compilers (*not* the Pentium gcc compiler,
8012 # which looks to be a dead project)
8013 lt_prog_compiler_wl='-Wl,'
8014 lt_prog_compiler_pic='-fpic'
8015 lt_prog_compiler_static='-Bstatic'
8018 lt_prog_compiler_wl='-Wl,'
8019 # All Alpha code is PIC.
8020 lt_prog_compiler_static='-non_shared'
8022 xl* | bgxl* | bgf* | mpixl*)
8023 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8024 lt_prog_compiler_wl='-Wl,'
8025 lt_prog_compiler_pic='-qpic'
8026 lt_prog_compiler_static='-qstaticlink'
8029 case `$CC -V 2>&1 | sed 5q` in
8030 *Sun\ F* | *Sun*Fortran*)
8031 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8032 lt_prog_compiler_pic='-KPIC'
8033 lt_prog_compiler_static='-Bstatic'
8034 lt_prog_compiler_wl=''
8038 lt_prog_compiler_pic='-KPIC'
8039 lt_prog_compiler_static='-Bstatic'
8040 lt_prog_compiler_wl='-Wl,'
8048 lt_prog_compiler_pic='-KPIC'
8049 lt_prog_compiler_static='-Bstatic'
8053 # QNX uses GNU C++, but need to define -shared option too, otherwise
8055 lt_prog_compiler_pic='-fPIC -shared'
8058 osf3* | osf4* | osf5*)
8059 lt_prog_compiler_wl='-Wl,'
8060 # All OSF/1 code is PIC.
8061 lt_prog_compiler_static='-non_shared'
8065 lt_prog_compiler_static='-non_shared'
8069 lt_prog_compiler_pic='-KPIC'
8070 lt_prog_compiler_static='-Bstatic'
8071 case $cc_basename in
8072 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8073 lt_prog_compiler_wl='-Qoption ld ';;
8075 lt_prog_compiler_wl='-Wl,';;
8080 lt_prog_compiler_wl='-Qoption ld '
8081 lt_prog_compiler_pic='-PIC'
8082 lt_prog_compiler_static='-Bstatic'
8085 sysv4 | sysv4.2uw2* | sysv4.3*)
8086 lt_prog_compiler_wl='-Wl,'
8087 lt_prog_compiler_pic='-KPIC'
8088 lt_prog_compiler_static='-Bstatic'
8092 if test -d /usr/nec ;then
8093 lt_prog_compiler_pic='-Kconform_pic'
8094 lt_prog_compiler_static='-Bstatic'
8098 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8099 lt_prog_compiler_wl='-Wl,'
8100 lt_prog_compiler_pic='-KPIC'
8101 lt_prog_compiler_static='-Bstatic'
8105 lt_prog_compiler_wl='-Wl,'
8106 lt_prog_compiler_can_build_shared=no
8110 lt_prog_compiler_pic='-pic'
8111 lt_prog_compiler_static='-Bstatic'
8115 lt_prog_compiler_can_build_shared=no
8121 # For platforms which do not support PIC, -DPIC is meaningless:
8123 lt_prog_compiler_pic=
8126 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8130 $as_echo "$lt_prog_compiler_pic" >&6; }
8138 # Check to make sure the PIC flag actually works.
8140 if test -n "$lt_prog_compiler_pic"; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8142 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8143 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8144 $as_echo_n "(cached) " >&6
8146 lt_cv_prog_compiler_pic_works=no
8147 ac_outfile=conftest.$ac_objext
8148 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8149 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8150 # Insert the option either (1) after the last *FLAGS variable, or
8151 # (2) before a word containing "conftest.", or (3) at the end.
8152 # Note that $ac_compile itself does not contain backslashes and begins
8153 # with a dollar sign (not a hyphen), so the echo should work correctly.
8154 # The option is referenced via a variable to avoid confusing sed.
8155 lt_compile=`echo "$ac_compile" | $SED \
8156 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8157 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8158 -e 's:$: $lt_compiler_flag:'`
8159 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8160 (eval "$lt_compile" 2>conftest.err)
8162 cat conftest.err >&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 if (exit $ac_status) && test -s "$ac_outfile"; then
8165 # The compiler can only warn and ignore the option if not recognized
8166 # So say no if there are warnings other than the usual output.
8167 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8168 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8169 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8170 lt_cv_prog_compiler_pic_works=yes
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8177 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8179 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8180 case $lt_prog_compiler_pic in
8182 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8185 lt_prog_compiler_pic=
8186 lt_prog_compiler_can_build_shared=no
8197 # Check to make sure the static flag actually works.
8199 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8201 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8202 if ${lt_cv_prog_compiler_static_works+:} false; then :
8203 $as_echo_n "(cached) " >&6
8205 lt_cv_prog_compiler_static_works=no
8206 save_LDFLAGS="$LDFLAGS"
8207 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8208 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8209 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8210 # The linker can only warn and ignore the option if not recognized
8211 # So say no if there are warnings
8212 if test -s conftest.err; then
8213 # Append any errors to the config.log.
8214 cat conftest.err 1>&5
8215 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8216 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8217 if diff conftest.exp conftest.er2 >/dev/null; then
8218 lt_cv_prog_compiler_static_works=yes
8221 lt_cv_prog_compiler_static_works=yes
8225 LDFLAGS="$save_LDFLAGS"
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8229 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8231 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8234 lt_prog_compiler_static=
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8244 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8245 if ${lt_cv_prog_compiler_c_o+:} false; then :
8246 $as_echo_n "(cached) " >&6
8248 lt_cv_prog_compiler_c_o=no
8249 $RM -r conftest 2>/dev/null
8253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8255 lt_compiler_flag="-o out/conftest2.$ac_objext"
8256 # Insert the option either (1) after the last *FLAGS variable, or
8257 # (2) before a word containing "conftest.", or (3) at the end.
8258 # Note that $ac_compile itself does not contain backslashes and begins
8259 # with a dollar sign (not a hyphen), so the echo should work correctly.
8260 lt_compile=`echo "$ac_compile" | $SED \
8261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8263 -e 's:$: $lt_compiler_flag:'`
8264 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8265 (eval "$lt_compile" 2>out/conftest.err)
8267 cat out/conftest.err >&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8271 # The compiler can only warn and ignore the option if not recognized
8272 # So say no if there are warnings
8273 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8274 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8275 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8276 lt_cv_prog_compiler_c_o=yes
8281 # SGI C++ compiler will create directory out/ii_files/ for
8282 # template instantiation
8283 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8284 $RM out/* && rmdir out
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8291 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8299 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8300 if ${lt_cv_prog_compiler_c_o+:} false; then :
8301 $as_echo_n "(cached) " >&6
8303 lt_cv_prog_compiler_c_o=no
8304 $RM -r conftest 2>/dev/null
8308 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8310 lt_compiler_flag="-o out/conftest2.$ac_objext"
8311 # Insert the option either (1) after the last *FLAGS variable, or
8312 # (2) before a word containing "conftest.", or (3) at the end.
8313 # Note that $ac_compile itself does not contain backslashes and begins
8314 # with a dollar sign (not a hyphen), so the echo should work correctly.
8315 lt_compile=`echo "$ac_compile" | $SED \
8316 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8317 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8318 -e 's:$: $lt_compiler_flag:'`
8319 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8320 (eval "$lt_compile" 2>out/conftest.err)
8322 cat out/conftest.err >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8326 # The compiler can only warn and ignore the option if not recognized
8327 # So say no if there are warnings
8328 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8329 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8330 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8331 lt_cv_prog_compiler_c_o=yes
8336 # SGI C++ compiler will create directory out/ii_files/ for
8337 # template instantiation
8338 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8339 $RM out/* && rmdir out
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8346 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8351 hard_links="nottested"
8352 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8353 # do not overwrite the value of need_locks provided by the user
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8355 $as_echo_n "checking if we can lock with hard links... " >&6; }
8358 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8360 ln conftest.a conftest.b 2>&5 || hard_links=no
8361 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8363 $as_echo "$hard_links" >&6; }
8364 if test "$hard_links" = no; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8366 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8379 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8382 allow_undefined_flag=
8383 always_export_symbols=no
8385 archive_expsym_cmds=
8386 compiler_needs_object=no
8387 enable_shared_with_static_runtimes=no
8388 export_dynamic_flag_spec=
8389 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8390 hardcode_automatic=no
8392 hardcode_direct_absolute=no
8393 hardcode_libdir_flag_spec=
8394 hardcode_libdir_flag_spec_ld=
8395 hardcode_libdir_separator=
8397 hardcode_shlibpath_var=unsupported
8399 link_all_deplibs=unknown
8402 old_archive_from_new_cmds=
8403 old_archive_from_expsyms_cmds=
8404 thread_safe_flag_spec=
8405 whole_archive_flag_spec=
8406 # include_expsyms should be a list of space-separated symbols to be *always*
8407 # included in the symbol list
8409 # exclude_expsyms can be an extended regexp of symbols to exclude
8410 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8411 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8412 # as well as any symbol that contains `d'.
8413 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8414 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8415 # platforms (ab)use it in PIC code, but their linkers get confused if
8416 # the symbol is explicitly referenced. Since portable code cannot
8417 # rely on this symbol name, it's probably fine to never include it in
8418 # preloaded symbol tables.
8419 # Exclude shared library initialization/finalization symbols.
8420 extract_expsyms_cmds=
8423 cygwin* | mingw* | pw32* | cegcc*)
8424 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8425 # When not using gcc, we currently assume that we are using
8426 # Microsoft Visual C++.
8427 if test "$GCC" != yes; then
8432 # we just hope/assume this is gcc and not c89 (= MSVC++)
8442 # On some targets, GNU ld is compatible enough with the native linker
8443 # that we're better off using the native interface for both.
8444 lt_use_gnu_ld_interface=no
8445 if test "$with_gnu_ld" = yes; then
8448 # The AIX port of GNU ld has always aspired to compatibility
8449 # with the native linker. However, as the warning in the GNU ld
8450 # block says, versions before 2.19.5* couldn't really create working
8451 # shared libraries, regardless of the interface used.
8452 case `$LD -v 2>&1` in
8453 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8454 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8455 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8457 lt_use_gnu_ld_interface=yes
8462 lt_use_gnu_ld_interface=yes
8467 if test "$lt_use_gnu_ld_interface" = yes; then
8468 # If archive_cmds runs LD, not CC, wlarc should be empty
8471 # Set some defaults for GNU ld with shared library support. These
8472 # are reset later if shared libraries are not supported. Putting them
8473 # here allows them to be overridden if necessary.
8474 runpath_var=LD_RUN_PATH
8475 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8476 export_dynamic_flag_spec='${wl}--export-dynamic'
8477 # ancient GNU ld didn't support --whole-archive et. al.
8478 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8479 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8481 whole_archive_flag_spec=
8483 supports_anon_versioning=no
8484 case `$LD -v 2>&1` in
8485 *GNU\ gold*) supports_anon_versioning=yes ;;
8486 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8487 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8488 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8489 *\ 2.11.*) ;; # other 2.11 versions
8490 *) supports_anon_versioning=yes ;;
8493 # See if GNU ld supports shared libraries.
8496 # On AIX/PPC, the GNU linker is very broken
8497 if test "$host_cpu" != ia64; then
8501 *** Warning: the GNU linker, at least up to release 2.19, is reported
8502 *** to be unable to reliably create shared libraries on AIX.
8503 *** Therefore, libtool is disabling shared libraries support. If you
8504 *** really care for shared libraries, you may want to install binutils
8505 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8506 *** You will then need to restart the configuration process.
8515 # see comment about AmigaOS4 .so support
8516 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8517 archive_expsym_cmds=''
8520 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)'
8521 hardcode_libdir_flag_spec='-L$libdir'
8522 hardcode_minus_L=yes
8528 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8529 allow_undefined_flag=unsupported
8530 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8531 # support --undefined. This deserves some investigation. FIXME
8532 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8538 cygwin* | mingw* | pw32* | cegcc*)
8539 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8540 # as there is no search path for DLLs.
8541 hardcode_libdir_flag_spec='-L$libdir'
8542 export_dynamic_flag_spec='${wl}--export-all-symbols'
8543 allow_undefined_flag=unsupported
8544 always_export_symbols=no
8545 enable_shared_with_static_runtimes=yes
8546 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8548 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8550 # If the export-symbols file already is a .def file (1st line
8551 # is EXPORTS), use it as is; otherwise, prepend...
8552 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8553 cp $export_symbols $output_objdir/$soname.def;
8555 echo EXPORTS > $output_objdir/$soname.def;
8556 cat $export_symbols >> $output_objdir/$soname.def;
8558 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8565 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8566 link_all_deplibs=yes
8571 hardcode_shlibpath_var=no
8572 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8573 export_dynamic_flag_spec='${wl}-E'
8574 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8575 # Instead, shared libraries are loaded at an image base (0x10000000 by
8576 # default) and relocated if they conflict, which is a slow very memory
8577 # consuming and fragmenting process. To avoid this, we pick a random,
8578 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8579 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8580 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8581 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'
8584 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8586 if test "$host_os" = linux-dietlibc; then
8587 case $cc_basename in
8588 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8591 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8592 && test "$tmp_diet" = no
8595 tmp_sharedflag='-shared'
8596 case $cc_basename,$host_cpu in
8597 pgcc*) # Portland Group C compiler
8598 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'
8599 tmp_addflag=' $pic_flag'
8601 pgf77* | pgf90* | pgf95* | pgfortran*)
8602 # Portland Group f77 and f90 compilers
8603 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'
8604 tmp_addflag=' $pic_flag -Mnomain' ;;
8605 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8606 tmp_addflag=' -i_dynamic' ;;
8607 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8608 tmp_addflag=' -i_dynamic -nofor_main' ;;
8609 ifc* | ifort*) # Intel Fortran compiler
8610 tmp_addflag=' -nofor_main' ;;
8611 lf95*) # Lahey Fortran 8.1
8612 whole_archive_flag_spec=
8613 tmp_sharedflag='--shared' ;;
8614 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8615 tmp_sharedflag='-qmkshrobj'
8617 nvcc*) # Cuda Compiler Driver 2.2
8618 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'
8619 compiler_needs_object=yes
8622 case `$CC -V 2>&1 | sed 5q` in
8623 *Sun\ C*) # Sun C 5.9
8624 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'
8625 compiler_needs_object=yes
8626 tmp_sharedflag='-G' ;;
8627 *Sun\ F*) # Sun Fortran 8.3
8628 tmp_sharedflag='-G' ;;
8630 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8632 if test "x$supports_anon_versioning" = xyes; then
8633 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8634 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8635 echo "local: *; };" >> $output_objdir/$libname.ver~
8636 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8639 case $cc_basename in
8640 xlf* | bgf* | bgxlf* | mpixlf*)
8641 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8642 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8643 hardcode_libdir_flag_spec=
8644 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8645 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8646 if test "x$supports_anon_versioning" = xyes; then
8647 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8648 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8649 echo "local: *; };" >> $output_objdir/$libname.ver~
8650 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8660 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8661 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8664 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8665 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8670 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8674 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8675 *** create shared libraries on Solaris systems. Therefore, libtool
8676 *** is disabling shared libraries support. We urge you to upgrade GNU
8677 *** binutils to release 2.9.1 or newer. Another option is to modify
8678 *** your PATH or compiler configuration so that the native linker is
8679 *** used, and then restart.
8682 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8683 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8684 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8690 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8691 case `$LD -v 2>&1` in
8692 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8696 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8697 *** reliably create shared libraries on SCO systems. Therefore, libtool
8698 *** is disabling shared libraries support. We urge you to upgrade GNU
8699 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8700 *** your PATH or compiler configuration so that the native linker is
8701 *** used, and then restart.
8706 # For security reasons, it is highly recommended that you always
8707 # use absolute paths for naming shared libraries, and exclude the
8708 # DT_RUNPATH tag from executables and libraries. But doing so
8709 # requires that you compile everything twice, which is a pain.
8710 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8711 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8713 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8722 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8725 hardcode_shlibpath_var=no
8729 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8731 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8738 if test "$ld_shlibs" = no; then
8740 hardcode_libdir_flag_spec=
8741 export_dynamic_flag_spec=
8742 whole_archive_flag_spec=
8745 # PORTME fill in a description of your system's linker (not GNU ld)
8748 allow_undefined_flag=unsupported
8749 always_export_symbols=yes
8750 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'
8751 # Note: this linker hardcodes the directories in LIBPATH if there
8752 # are no directories specified by -L.
8753 hardcode_minus_L=yes
8754 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8755 # Neither direct hardcoding nor static linking is supported with a
8757 hardcode_direct=unsupported
8762 if test "$host_cpu" = ia64; then
8763 # On IA64, the linker does run time linking by default, so we don't
8764 # have to do anything special.
8765 aix_use_runtimelinking=no
8766 exp_sym_flag='-Bexport'
8769 # If we're using GNU nm, then we don't want the "-C" option.
8770 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8771 # Also, AIX nm treats weak defined symbols like other global
8772 # defined symbols, whereas GNU nm marks them as "W".
8773 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8774 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'
8776 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'
8778 aix_use_runtimelinking=no
8780 # Test if we are trying to use run time linking or normal
8781 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8782 # need to do runtime linking.
8783 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8784 for ld_flag in $LDFLAGS; do
8785 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8786 aix_use_runtimelinking=yes
8793 exp_sym_flag='-bexport'
8794 no_entry_flag='-bnoentry'
8797 # When large executables or shared objects are built, AIX ld can
8798 # have problems creating the table of contents. If linking a library
8799 # or program results in "error TOC overflow" add -mminimal-toc to
8800 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8801 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8805 hardcode_direct_absolute=yes
8806 hardcode_libdir_separator=':'
8807 link_all_deplibs=yes
8808 file_list_spec='${wl}-f,'
8810 if test "$GCC" = yes; then
8811 case $host_os in aix4.[012]|aix4.[012].*)
8812 # We only want to do this on AIX 4.2 and lower, the check
8813 # below for broken collect2 doesn't work under 4.3+
8814 collect2name=`${CC} -print-prog-name=collect2`
8815 if test -f "$collect2name" &&
8816 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8818 # We have reworked collect2
8821 # We have old collect2
8822 hardcode_direct=unsupported
8823 # It fails to find uninstalled libraries when the uninstalled
8824 # path is not listed in the libpath. Setting hardcode_minus_L
8825 # to unsupported forces relinking
8826 hardcode_minus_L=yes
8827 hardcode_libdir_flag_spec='-L$libdir'
8828 hardcode_libdir_separator=
8832 shared_flag='-shared'
8833 if test "$aix_use_runtimelinking" = yes; then
8834 shared_flag="$shared_flag "'${wl}-G'
8838 if test "$host_cpu" = ia64; then
8839 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8840 # chokes on -Wl,-G. The following line is correct:
8843 if test "$aix_use_runtimelinking" = yes; then
8844 shared_flag='${wl}-G'
8846 shared_flag='${wl}-bM:SRE'
8851 export_dynamic_flag_spec='${wl}-bexpall'
8852 # It seems that -bexpall does not export symbols beginning with
8853 # underscore (_), so it is better to generate a list of symbols to export.
8854 always_export_symbols=yes
8855 if test "$aix_use_runtimelinking" = yes; then
8856 # Warning - without using the other runtime loading flags (-brtl),
8857 # -berok will link without error, but may produce a broken library.
8858 allow_undefined_flag='-berok'
8859 # Determine the default libpath from the value encoded in an
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8872 if ac_fn_c_try_link "$LINENO"; then :
8874 lt_aix_libpath_sed='
8875 /Import File Strings/,/^$/ {
8881 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8882 # Check for a 64-bit object if we didn't find anything.
8883 if test -z "$aix_libpath"; then
8884 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8887 rm -f core conftest.err conftest.$ac_objext \
8888 conftest$ac_exeext conftest.$ac_ext
8889 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8891 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8892 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"
8894 if test "$host_cpu" = ia64; then
8895 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8896 allow_undefined_flag="-z nodefs"
8897 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"
8899 # Determine the default libpath from the value encoded in an
8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902 /* end confdefs.h. */
8912 if ac_fn_c_try_link "$LINENO"; then :
8914 lt_aix_libpath_sed='
8915 /Import File Strings/,/^$/ {
8921 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8922 # Check for a 64-bit object if we didn't find anything.
8923 if test -z "$aix_libpath"; then
8924 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8927 rm -f core conftest.err conftest.$ac_objext \
8928 conftest$ac_exeext conftest.$ac_ext
8929 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8931 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8932 # Warning - without using the other run time loading flags,
8933 # -berok will link without error, but may produce a broken library.
8934 no_undefined_flag=' ${wl}-bernotok'
8935 allow_undefined_flag=' ${wl}-berok'
8936 if test "$with_gnu_ld" = yes; then
8937 # We only use this code for GNU lds that support --whole-archive.
8938 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8940 # Exported symbols can be pulled into shared objects from archives
8941 whole_archive_flag_spec='$convenience'
8943 archive_cmds_need_lc=yes
8944 # This is similar to how AIX traditionally builds its shared libraries.
8945 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'
8953 # see comment about AmigaOS4 .so support
8954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8955 archive_expsym_cmds=''
8958 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)'
8959 hardcode_libdir_flag_spec='-L$libdir'
8960 hardcode_minus_L=yes
8966 export_dynamic_flag_spec=-rdynamic
8969 cygwin* | mingw* | pw32* | cegcc*)
8970 # When not using gcc, we currently assume that we are using
8971 # Microsoft Visual C++.
8972 # hardcode_libdir_flag_spec is actually meaningless, as there is
8973 # no search path for DLLs.
8974 hardcode_libdir_flag_spec=' '
8975 allow_undefined_flag=unsupported
8976 # Tell ltmain to make .lib files, not .a files.
8978 # Tell ltmain to make .dll files, not .so files.
8980 # FIXME: Setting linknames here is a bad hack.
8981 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8982 # The linker will automatically build a .lib file if we build a DLL.
8983 old_archive_from_new_cmds='true'
8984 # FIXME: Should let the user specify the lib program.
8985 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8986 fix_srcfile_path='`cygpath -w "$srcfile"`'
8987 enable_shared_with_static_runtimes=yes
8990 darwin* | rhapsody*)
8993 archive_cmds_need_lc=no
8995 hardcode_automatic=yes
8996 hardcode_shlibpath_var=unsupported
8997 if test "$lt_cv_ld_force_load" = "yes"; then
8998 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\"`'
9000 whole_archive_flag_spec=''
9002 link_all_deplibs=yes
9003 allow_undefined_flag="$_lt_dar_allow_undefined"
9004 case $cc_basename in
9005 ifort*) _lt_dar_can_shared=yes ;;
9006 *) _lt_dar_can_shared=$GCC ;;
9008 if test "$_lt_dar_can_shared" = "yes"; then
9009 output_verbose_link_cmd=func_echo_all
9010 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9011 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9012 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}"
9013 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}"
9022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9023 hardcode_libdir_flag_spec='-L$libdir'
9024 hardcode_shlibpath_var=no
9031 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9032 # support. Future versions do this automatically, but an explicit c++rt0.o
9033 # does not break anything, and helps significantly (at the cost of a little
9036 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9037 hardcode_libdir_flag_spec='-R$libdir'
9039 hardcode_shlibpath_var=no
9042 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9044 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9046 hardcode_minus_L=yes
9047 hardcode_shlibpath_var=no
9050 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9051 freebsd* | dragonfly*)
9052 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9053 hardcode_libdir_flag_spec='-R$libdir'
9055 hardcode_shlibpath_var=no
9059 if test "$GCC" = yes; then
9060 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9062 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'
9064 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9065 hardcode_libdir_separator=:
9068 # hardcode_minus_L: Not really in the search PATH,
9069 # but as the default location of the library.
9070 hardcode_minus_L=yes
9071 export_dynamic_flag_spec='${wl}-E'
9075 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9076 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9078 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9080 if test "$with_gnu_ld" = no; then
9081 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9082 hardcode_libdir_flag_spec_ld='+b $libdir'
9083 hardcode_libdir_separator=:
9085 hardcode_direct_absolute=yes
9086 export_dynamic_flag_spec='${wl}-E'
9087 # hardcode_minus_L: Not really in the search PATH,
9088 # but as the default location of the library.
9089 hardcode_minus_L=yes
9094 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9097 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9100 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9103 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9109 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9112 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9116 # Older versions of the 11.00 compiler do not understand -b yet
9117 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9119 $as_echo_n "checking if $CC understands -b... " >&6; }
9120 if ${lt_cv_prog_compiler__b+:} false; then :
9121 $as_echo_n "(cached) " >&6
9123 lt_cv_prog_compiler__b=no
9124 save_LDFLAGS="$LDFLAGS"
9125 LDFLAGS="$LDFLAGS -b"
9126 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9127 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9128 # The linker can only warn and ignore the option if not recognized
9129 # So say no if there are warnings
9130 if test -s conftest.err; then
9131 # Append any errors to the config.log.
9132 cat conftest.err 1>&5
9133 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9134 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9135 if diff conftest.exp conftest.er2 >/dev/null; then
9136 lt_cv_prog_compiler__b=yes
9139 lt_cv_prog_compiler__b=yes
9143 LDFLAGS="$save_LDFLAGS"
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9147 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9149 if test x"$lt_cv_prog_compiler__b" = xyes; then
9150 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9152 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9158 if test "$with_gnu_ld" = no; then
9159 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9160 hardcode_libdir_separator=:
9165 hardcode_shlibpath_var=no
9169 hardcode_direct_absolute=yes
9170 export_dynamic_flag_spec='${wl}-E'
9172 # hardcode_minus_L: Not really in the search PATH,
9173 # but as the default location of the library.
9174 hardcode_minus_L=yes
9180 irix5* | irix6* | nonstopux*)
9181 if test "$GCC" = yes; then
9182 archive_cmds='$CC -shared $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'
9183 # Try to use the -exported_symbol ld option, if it does not
9184 # work, assume that -exports_file does not work either and
9185 # implicitly export all symbols.
9186 save_LDFLAGS="$LDFLAGS"
9187 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189 /* end confdefs.h. */
9192 if ac_fn_c_try_link "$LINENO"; then :
9193 archive_expsym_cmds='$CC -shared $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'
9196 rm -f core conftest.err conftest.$ac_objext \
9197 conftest$ac_exeext conftest.$ac_ext
9198 LDFLAGS="$save_LDFLAGS"
9200 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'
9201 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'
9203 archive_cmds_need_lc='no'
9204 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9205 hardcode_libdir_separator=:
9207 link_all_deplibs=yes
9211 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9212 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9214 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9216 hardcode_libdir_flag_spec='-R$libdir'
9218 hardcode_shlibpath_var=no
9222 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9224 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9225 hardcode_libdir_separator=:
9226 hardcode_shlibpath_var=no
9233 if test -f /usr/libexec/ld.so; then
9235 hardcode_shlibpath_var=no
9236 hardcode_direct_absolute=yes
9237 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9238 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9239 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9240 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9241 export_dynamic_flag_spec='${wl}-E'
9244 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9245 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9246 hardcode_libdir_flag_spec='-R$libdir'
9249 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9250 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9260 hardcode_libdir_flag_spec='-L$libdir'
9261 hardcode_minus_L=yes
9262 allow_undefined_flag=unsupported
9263 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'
9264 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9268 if test "$GCC" = yes; then
9269 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9270 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'
9272 allow_undefined_flag=' -expect_unresolved \*'
9273 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'
9275 archive_cmds_need_lc='no'
9276 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9277 hardcode_libdir_separator=:
9280 osf4* | osf5*) # as osf3* with the addition of -msym flag
9281 if test "$GCC" = yes; then
9282 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9283 archive_cmds='$CC -shared${allow_undefined_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'
9284 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9286 allow_undefined_flag=' -expect_unresolved \*'
9287 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'
9288 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~
9289 $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'
9291 # Both c and cxx compiler support -rpath directly
9292 hardcode_libdir_flag_spec='-rpath $libdir'
9294 archive_cmds_need_lc='no'
9295 hardcode_libdir_separator=:
9299 no_undefined_flag=' -z defs'
9300 if test "$GCC" = yes; then
9302 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9303 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9304 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9306 case `$CC -V 2>&1` in
9309 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9310 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9311 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9315 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9316 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9317 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9321 hardcode_libdir_flag_spec='-R$libdir'
9322 hardcode_shlibpath_var=no
9324 solaris2.[0-5] | solaris2.[0-5].*) ;;
9326 # The compiler driver will combine and reorder linker options,
9327 # but understands `-z linker_flag'. GCC discards it without `$wl',
9328 # but is careful enough not to reorder.
9329 # Supported since Solaris 2.6 (maybe 2.5.1?)
9330 if test "$GCC" = yes; then
9331 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9333 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9337 link_all_deplibs=yes
9341 if test "x$host_vendor" = xsequent; then
9342 # Use $CC to link under sequent, because it throws in some extra .o
9343 # files that make .init and .fini sections work.
9344 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9346 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9348 hardcode_libdir_flag_spec='-L$libdir'
9350 hardcode_minus_L=yes
9351 hardcode_shlibpath_var=no
9355 case $host_vendor in
9357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9358 hardcode_direct=yes # is this really true???
9361 ## LD is ld it makes a PLAMLIB
9362 ## CC just makes a GrossModule.
9363 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9364 reload_cmds='$CC -r -o $output$reload_objs'
9368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9369 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9372 runpath_var='LD_RUN_PATH'
9373 hardcode_shlibpath_var=no
9377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9378 hardcode_shlibpath_var=no
9379 export_dynamic_flag_spec='-Bexport'
9383 if test -d /usr/nec; then
9384 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9385 hardcode_shlibpath_var=no
9386 runpath_var=LD_RUN_PATH
9387 hardcode_runpath_var=yes
9392 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9393 no_undefined_flag='${wl}-z,text'
9394 archive_cmds_need_lc=no
9395 hardcode_shlibpath_var=no
9396 runpath_var='LD_RUN_PATH'
9398 if test "$GCC" = yes; then
9399 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9400 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9402 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9403 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9407 sysv5* | sco3.2v5* | sco5v6*)
9408 # Note: We can NOT use -z defs as we might desire, because we do not
9409 # link with -lc, and that would cause any symbols used from libc to
9410 # always be unresolved, which means just about no library would
9411 # ever link correctly. If we're not using GNU ld we use -z text
9412 # though, which does catch some bad symbols but isn't as heavy-handed
9414 no_undefined_flag='${wl}-z,text'
9415 allow_undefined_flag='${wl}-z,nodefs'
9416 archive_cmds_need_lc=no
9417 hardcode_shlibpath_var=no
9418 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9419 hardcode_libdir_separator=':'
9420 link_all_deplibs=yes
9421 export_dynamic_flag_spec='${wl}-Bexport'
9422 runpath_var='LD_RUN_PATH'
9424 if test "$GCC" = yes; then
9425 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9426 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9428 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9429 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9434 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9435 hardcode_libdir_flag_spec='-L$libdir'
9436 hardcode_shlibpath_var=no
9444 if test x$host_vendor = xsni; then
9446 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9447 export_dynamic_flag_spec='${wl}-Blargedynsym'
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9454 $as_echo "$ld_shlibs" >&6; }
9455 test "$ld_shlibs" = no && can_build_shared=no
9457 with_gnu_ld=$with_gnu_ld
9474 # Do we need to explicitly link libc?
9476 case "x$archive_cmds_need_lc" in
9478 # Assume -lc should be added
9479 archive_cmds_need_lc=yes
9481 if test "$enable_shared" = yes && test "$GCC" = yes; then
9482 case $archive_cmds in
9484 # FIXME: we may have to deal with multi-command sequences.
9487 # Test whether the compiler implicitly links with -lc since on some
9488 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9489 # to ld, don't add -lc before -lgcc.
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9491 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9492 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9493 $as_echo_n "(cached) " >&6
9496 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9499 (eval $ac_compile) 2>&5
9501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9502 test $ac_status = 0; } 2>conftest.err; then
9505 libobjs=conftest.$ac_objext
9507 wl=$lt_prog_compiler_wl
9508 pic_flag=$lt_prog_compiler_pic
9514 lt_save_allow_undefined_flag=$allow_undefined_flag
9515 allow_undefined_flag=
9516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9517 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9520 test $ac_status = 0; }
9522 lt_cv_archive_cmds_need_lc=no
9524 lt_cv_archive_cmds_need_lc=yes
9526 allow_undefined_flag=$lt_save_allow_undefined_flag
9528 cat conftest.err 1>&5
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9534 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9535 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9699 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9701 if test "$GCC" = yes; then
9703 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9704 *) lt_awk_arg="/^libraries:/" ;;
9707 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9708 *) lt_sed_strip_eq="s,=/,/,g" ;;
9710 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9711 case $lt_search_path_spec in
9713 # if the path contains ";" then we assume it to be the separator
9714 # otherwise default to the standard path separator (i.e. ":") - it is
9715 # assumed that no part of a normal pathname contains ";" but that should
9716 # okay in the real world where ";" in dirpaths is itself problematic.
9717 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9720 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9723 # Ok, now we have the path, separated by spaces, we can step through it
9724 # and add multilib dir if necessary.
9725 lt_tmp_lt_search_path_spec=
9726 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9727 for lt_sys_path in $lt_search_path_spec; do
9728 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9729 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9731 test -d "$lt_sys_path" && \
9732 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9735 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9736 BEGIN {RS=" "; FS="/|\n";} {
9739 for (lt_i = NF; lt_i > 0; lt_i--) {
9740 if ($lt_i != "" && $lt_i != ".") {
9741 if ($lt_i == "..") {
9744 if (lt_count == 0) {
9745 lt_foo="/" $lt_i lt_foo;
9752 if (lt_foo != "") { lt_freq[lt_foo]++; }
9753 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9755 # AWK program above erroneously prepends '/' to C:/dos/paths
9758 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9759 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9761 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9763 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9766 libname_spec='lib$name'
9774 shlibpath_overrides_runpath=unknown
9776 dynamic_linker="$host_os ld.so"
9777 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9778 need_lib_prefix=unknown
9779 hardcode_into_libs=no
9781 # when you set need_version to no, make sure it does not cause -set_version
9782 # flags to be left without arguments
9783 need_version=unknown
9788 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9789 shlibpath_var=LIBPATH
9791 # AIX 3 has no versioning support, so we append a major version to the name.
9792 soname_spec='${libname}${release}${shared_ext}$major'
9799 hardcode_into_libs=yes
9800 if test "$host_cpu" = ia64; then
9801 # AIX 5 supports IA64
9802 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9803 shlibpath_var=LD_LIBRARY_PATH
9805 # With GCC up to 2.95.x, collect2 would create an import file
9806 # for dependence libraries. The import file would start with
9807 # the line `#! .'. This would cause the generated library to
9808 # depend on `.', always an invalid library. This was fixed in
9809 # development snapshots of GCC prior to 3.0.
9811 aix4 | aix4.[01] | aix4.[01].*)
9812 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9814 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9821 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9822 # soname into executable. Probably we can add versioning support to
9823 # collect2, so additional links can be useful in future.
9824 if test "$aix_use_runtimelinking" = yes; then
9825 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9826 # instead of lib<name>.a to let people know that these are not
9827 # typical AIX shared libraries.
9828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9830 # We preserve .a as extension for shared libraries through AIX4.2
9831 # and later when we are not doing run time linking.
9832 library_names_spec='${libname}${release}.a $libname.a'
9833 soname_spec='${libname}${release}${shared_ext}$major'
9835 shlibpath_var=LIBPATH
9842 # Since July 2007 AmigaOS4 officially supports .so libraries.
9843 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9847 library_names_spec='$libname.ixlibrary $libname.a'
9848 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9849 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'
9855 library_names_spec='${libname}${shared_ext}'
9856 dynamic_linker="$host_os ld.so"
9857 shlibpath_var=LIBRARY_PATH
9863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9864 soname_spec='${libname}${release}${shared_ext}$major'
9865 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9866 shlibpath_var=LD_LIBRARY_PATH
9867 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9868 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9869 # the default ld.so.conf also contains /usr/contrib/lib and
9870 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9871 # libtool to hard-code these into programs
9874 cygwin* | mingw* | pw32* | cegcc*)
9875 version_type=windows
9880 case $GCC,$host_os in
9881 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9882 library_names_spec='$libname.dll.a'
9883 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9884 postinstall_cmds='base_file=`basename \${file}`~
9885 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9886 dldir=$destdir/`dirname \$dlpath`~
9887 test -d \$dldir || mkdir -p \$dldir~
9888 $install_prog $dir/$dlname \$dldir/$dlname~
9889 chmod a+x \$dldir/$dlname~
9890 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9891 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9893 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9894 dlpath=$dir/\$dldll~
9896 shlibpath_overrides_runpath=yes
9900 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9901 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9903 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9906 # MinGW DLLs use traditional 'lib' prefix
9907 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9910 # pw32 DLLs use 'pw' prefix rather than 'lib'
9911 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9917 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9920 dynamic_linker='Win32 ld.exe'
9921 # FIXME: first we should search . and the directory the executable is in
9925 darwin* | rhapsody*)
9926 dynamic_linker="$host_os dyld"
9930 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9931 soname_spec='${libname}${release}${major}$shared_ext'
9932 shlibpath_overrides_runpath=yes
9933 shlibpath_var=DYLD_LIBRARY_PATH
9934 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9936 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9937 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9945 soname_spec='${libname}${release}${shared_ext}$major'
9946 shlibpath_var=LD_LIBRARY_PATH
9953 freebsd* | dragonfly*)
9954 # DragonFly does not have aout. When/if they implement a new
9955 # versioning mechanism, adjust this.
9956 if test -x /usr/bin/objformat; then
9957 objformat=`/usr/bin/objformat`
9960 freebsd[123]*) objformat=aout ;;
9964 version_type=freebsd-$objformat
9965 case $version_type in
9967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9972 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9976 shlibpath_var=LD_LIBRARY_PATH
9979 shlibpath_overrides_runpath=yes
9981 freebsd3.[01]* | freebsdelf3.[01]*)
9982 shlibpath_overrides_runpath=yes
9983 hardcode_into_libs=yes
9985 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9986 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9987 shlibpath_overrides_runpath=no
9988 hardcode_into_libs=yes
9990 *) # from 4.6 on, and DragonFly
9991 shlibpath_overrides_runpath=yes
9992 hardcode_into_libs=yes
10001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10002 soname_spec='${libname}${release}${shared_ext}$major'
10003 shlibpath_var=LD_LIBRARY_PATH
10004 hardcode_into_libs=yes
10011 dynamic_linker="$host_os runtime_loader"
10012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10013 soname_spec='${libname}${release}${shared_ext}$major'
10014 shlibpath_var=LIBRARY_PATH
10015 shlibpath_overrides_runpath=yes
10016 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10017 hardcode_into_libs=yes
10020 hpux9* | hpux10* | hpux11*)
10021 # Give a soname corresponding to the major version so that dld.sl refuses to
10022 # link against other versions.
10029 hardcode_into_libs=yes
10030 dynamic_linker="$host_os dld.so"
10031 shlibpath_var=LD_LIBRARY_PATH
10032 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10034 soname_spec='${libname}${release}${shared_ext}$major'
10035 if test "X$HPUX_IA64_MODE" = X32; then
10036 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10038 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10040 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10044 hardcode_into_libs=yes
10045 dynamic_linker="$host_os dld.sl"
10046 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10047 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10049 soname_spec='${libname}${release}${shared_ext}$major'
10050 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10051 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10055 dynamic_linker="$host_os dld.sl"
10056 shlibpath_var=SHLIB_PATH
10057 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10059 soname_spec='${libname}${release}${shared_ext}$major'
10062 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10063 postinstall_cmds='chmod 555 $lib'
10064 # or fails outright, so override atomically:
10065 install_override_mode=555
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10075 shlibpath_var=LD_LIBRARY_PATH
10076 shlibpath_overrides_runpath=no
10077 hardcode_into_libs=yes
10080 irix5* | irix6* | nonstopux*)
10082 nonstopux*) version_type=nonstopux ;;
10084 if test "$lt_cv_prog_gnu_ld" = yes; then
10092 soname_spec='${libname}${release}${shared_ext}$major'
10093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10095 irix5* | nonstopux*)
10096 libsuff= shlibsuff=
10099 case $LD in # libtool.m4 will add one of these switches to LD
10100 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10101 libsuff= shlibsuff= libmagic=32-bit;;
10102 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10103 libsuff=32 shlibsuff=N32 libmagic=N32;;
10104 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10105 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10106 *) libsuff= shlibsuff= libmagic=never-match;;
10110 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10111 shlibpath_overrides_runpath=no
10112 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10113 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10114 hardcode_into_libs=yes
10117 # No shared lib support for Linux oldld, aout, or coff.
10118 linux*oldld* | linux*aout* | linux*coff*)
10122 # This must be Linux ELF.
10123 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128 soname_spec='${libname}${release}${shared_ext}$major'
10129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10130 shlibpath_var=LD_LIBRARY_PATH
10131 shlibpath_overrides_runpath=no
10133 # Some binutils ld are patched to set DT_RUNPATH
10134 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10135 $as_echo_n "(cached) " >&6
10137 lt_cv_shlibpath_overrides_runpath=no
10138 save_LDFLAGS=$LDFLAGS
10139 save_libdir=$libdir
10140 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10141 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10143 /* end confdefs.h. */
10153 if ac_fn_c_try_link "$LINENO"; then :
10154 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10155 lt_cv_shlibpath_overrides_runpath=yes
10158 rm -f core conftest.err conftest.$ac_objext \
10159 conftest$ac_exeext conftest.$ac_ext
10160 LDFLAGS=$save_LDFLAGS
10161 libdir=$save_libdir
10165 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10167 # This implies no fast_install, which is unacceptable.
10168 # Some rework will be needed to allow for fast_install
10169 # before this can be enabled.
10170 hardcode_into_libs=yes
10172 # Append ld.so.conf contents to the search path
10173 if test -f /etc/ld.so.conf; then
10174 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' ' '`
10175 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10178 # We used to test for /lib/ld.so.1 and disable shared libraries on
10179 # powerpc, because MkLinux only supported shared libraries with the
10180 # GNU dynamic linker. Since this was broken with cross compilers,
10181 # most powerpc-linux boxes support dynamic linking these days and
10182 # people can always --disable-shared, the test was removed, and we
10183 # assume the GNU/Linux dynamic linker is in use.
10184 dynamic_linker='GNU/Linux ld.so'
10191 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10193 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10194 dynamic_linker='NetBSD (a.out) ld.so'
10196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10197 soname_spec='${libname}${release}${shared_ext}$major'
10198 dynamic_linker='NetBSD ld.elf_so'
10200 shlibpath_var=LD_LIBRARY_PATH
10201 shlibpath_overrides_runpath=yes
10202 hardcode_into_libs=yes
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10208 shlibpath_var=LD_LIBRARY_PATH
10209 shlibpath_overrides_runpath=yes
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217 soname_spec='${libname}${release}${shared_ext}$major'
10218 shlibpath_var=LD_LIBRARY_PATH
10219 shlibpath_overrides_runpath=no
10220 hardcode_into_libs=yes
10221 dynamic_linker='ldqnx.so'
10226 sys_lib_dlsearch_path_spec="/usr/lib"
10228 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10230 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10231 *) need_version=no ;;
10233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10234 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10235 shlibpath_var=LD_LIBRARY_PATH
10236 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10238 openbsd2.[89] | openbsd2.[89].*)
10239 shlibpath_overrides_runpath=no
10242 shlibpath_overrides_runpath=yes
10246 shlibpath_overrides_runpath=yes
10251 libname_spec='$name'
10254 library_names_spec='$libname${shared_ext} $libname.a'
10255 dynamic_linker='OS/2 ld.exe'
10256 shlibpath_var=LIBPATH
10259 osf3* | osf4* | osf5*)
10263 soname_spec='${libname}${release}${shared_ext}$major'
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10265 shlibpath_var=LD_LIBRARY_PATH
10266 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10267 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10279 soname_spec='${libname}${release}${shared_ext}$major'
10280 shlibpath_var=LD_LIBRARY_PATH
10281 shlibpath_overrides_runpath=yes
10282 hardcode_into_libs=yes
10283 # ldd complains unless libraries are executable
10284 postinstall_cmds='chmod +x $lib'
10289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10290 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10291 shlibpath_var=LD_LIBRARY_PATH
10292 shlibpath_overrides_runpath=yes
10293 if test "$with_gnu_ld" = yes; then
10301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10302 soname_spec='${libname}${release}${shared_ext}$major'
10303 shlibpath_var=LD_LIBRARY_PATH
10304 case $host_vendor in
10306 shlibpath_overrides_runpath=no
10308 runpath_var=LD_RUN_PATH
10316 shlibpath_overrides_runpath=no
10317 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10323 if test -d /usr/nec ;then
10325 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10326 soname_spec='$libname${shared_ext}.$major'
10327 shlibpath_var=LD_LIBRARY_PATH
10331 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10332 version_type=freebsd-elf
10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10336 soname_spec='${libname}${release}${shared_ext}$major'
10337 shlibpath_var=LD_LIBRARY_PATH
10338 shlibpath_overrides_runpath=yes
10339 hardcode_into_libs=yes
10340 if test "$with_gnu_ld" = yes; then
10341 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10343 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10346 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10350 sys_lib_dlsearch_path_spec='/usr/lib'
10354 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10359 shlibpath_var=LD_LIBRARY_PATH
10360 shlibpath_overrides_runpath=no
10361 hardcode_into_libs=yes
10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10367 soname_spec='${libname}${release}${shared_ext}$major'
10368 shlibpath_var=LD_LIBRARY_PATH
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10376 $as_echo "$dynamic_linker" >&6; }
10377 test "$dynamic_linker" = no && can_build_shared=no
10379 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10380 if test "$GCC" = yes; then
10381 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10384 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10385 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10387 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10388 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10483 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10485 if test -n "$hardcode_libdir_flag_spec" ||
10486 test -n "$runpath_var" ||
10487 test "X$hardcode_automatic" = "Xyes" ; then
10489 # We can hardcode non-existent directories.
10490 if test "$hardcode_direct" != no &&
10491 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10492 # have to relink, otherwise we might link with an installed library
10493 # when we should be linking with a yet-to-be-installed one
10494 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10495 test "$hardcode_minus_L" != no; then
10496 # Linking always hardcodes the temporary library directory.
10497 hardcode_action=relink
10499 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10500 hardcode_action=immediate
10503 # We cannot hardcode anything, or else we can only hardcode existing
10505 hardcode_action=unsupported
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10508 $as_echo "$hardcode_action" >&6; }
10510 if test "$hardcode_action" = relink ||
10511 test "$inherit_rpath" = yes; then
10512 # Fast installation is not supported
10513 enable_fast_install=no
10514 elif test "$shlibpath_overrides_runpath" = yes ||
10515 test "$enable_shared" = no; then
10516 # Fast installation is not necessary
10517 enable_fast_install=needless
10525 if test "x$enable_dlopen" != xyes; then
10526 enable_dlopen=unknown
10527 enable_dlopen_self=unknown
10528 enable_dlopen_self_static=unknown
10535 lt_cv_dlopen="load_add_on"
10537 lt_cv_dlopen_self=yes
10540 mingw* | pw32* | cegcc*)
10541 lt_cv_dlopen="LoadLibrary"
10546 lt_cv_dlopen="dlopen"
10551 # if libdl is installed we need to link against it
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10553 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10554 if ${ac_cv_lib_dl_dlopen+:} false; then :
10555 $as_echo_n "(cached) " >&6
10557 ac_check_lib_save_LIBS=$LIBS
10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10562 /* Override any GCC internal prototype to avoid an error.
10563 Use char because int might match the return type of a GCC
10564 builtin and then its argument prototype would still apply. */
10577 if ac_fn_c_try_link "$LINENO"; then :
10578 ac_cv_lib_dl_dlopen=yes
10580 ac_cv_lib_dl_dlopen=no
10582 rm -f core conftest.err conftest.$ac_objext \
10583 conftest$ac_exeext conftest.$ac_ext
10584 LIBS=$ac_check_lib_save_LIBS
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10587 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10588 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10589 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10592 lt_cv_dlopen="dyld"
10594 lt_cv_dlopen_self=yes
10601 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10602 if test "x$ac_cv_func_shl_load" = xyes; then :
10603 lt_cv_dlopen="shl_load"
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10606 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10607 if ${ac_cv_lib_dld_shl_load+:} false; then :
10608 $as_echo_n "(cached) " >&6
10610 ac_check_lib_save_LIBS=$LIBS
10612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10613 /* end confdefs.h. */
10615 /* Override any GCC internal prototype to avoid an error.
10616 Use char because int might match the return type of a GCC
10617 builtin and then its argument prototype would still apply. */
10625 return shl_load ();
10630 if ac_fn_c_try_link "$LINENO"; then :
10631 ac_cv_lib_dld_shl_load=yes
10633 ac_cv_lib_dld_shl_load=no
10635 rm -f core conftest.err conftest.$ac_objext \
10636 conftest$ac_exeext conftest.$ac_ext
10637 LIBS=$ac_check_lib_save_LIBS
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10640 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10641 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10642 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10644 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10645 if test "x$ac_cv_func_dlopen" = xyes; then :
10646 lt_cv_dlopen="dlopen"
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10649 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10650 if ${ac_cv_lib_dl_dlopen+:} false; then :
10651 $as_echo_n "(cached) " >&6
10653 ac_check_lib_save_LIBS=$LIBS
10655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656 /* end confdefs.h. */
10658 /* Override any GCC internal prototype to avoid an error.
10659 Use char because int might match the return type of a GCC
10660 builtin and then its argument prototype would still apply. */
10673 if ac_fn_c_try_link "$LINENO"; then :
10674 ac_cv_lib_dl_dlopen=yes
10676 ac_cv_lib_dl_dlopen=no
10678 rm -f core conftest.err conftest.$ac_objext \
10679 conftest$ac_exeext conftest.$ac_ext
10680 LIBS=$ac_check_lib_save_LIBS
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10683 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10684 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10685 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10688 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10689 if ${ac_cv_lib_svld_dlopen+:} false; then :
10690 $as_echo_n "(cached) " >&6
10692 ac_check_lib_save_LIBS=$LIBS
10693 LIBS="-lsvld $LIBS"
10694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10695 /* end confdefs.h. */
10697 /* Override any GCC internal prototype to avoid an error.
10698 Use char because int might match the return type of a GCC
10699 builtin and then its argument prototype would still apply. */
10712 if ac_fn_c_try_link "$LINENO"; then :
10713 ac_cv_lib_svld_dlopen=yes
10715 ac_cv_lib_svld_dlopen=no
10717 rm -f core conftest.err conftest.$ac_objext \
10718 conftest$ac_exeext conftest.$ac_ext
10719 LIBS=$ac_check_lib_save_LIBS
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10722 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10723 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10724 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10727 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10728 if ${ac_cv_lib_dld_dld_link+:} false; then :
10729 $as_echo_n "(cached) " >&6
10731 ac_check_lib_save_LIBS=$LIBS
10733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h. */
10736 /* Override any GCC internal prototype to avoid an error.
10737 Use char because int might match the return type of a GCC
10738 builtin and then its argument prototype would still apply. */
10746 return dld_link ();
10751 if ac_fn_c_try_link "$LINENO"; then :
10752 ac_cv_lib_dld_dld_link=yes
10754 ac_cv_lib_dld_dld_link=no
10756 rm -f core conftest.err conftest.$ac_objext \
10757 conftest$ac_exeext conftest.$ac_ext
10758 LIBS=$ac_check_lib_save_LIBS
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10761 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10762 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10763 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10784 if test "x$lt_cv_dlopen" != xno; then
10790 case $lt_cv_dlopen in
10792 save_CPPFLAGS="$CPPFLAGS"
10793 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10795 save_LDFLAGS="$LDFLAGS"
10796 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10799 LIBS="$lt_cv_dlopen_libs $LIBS"
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10802 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10803 if ${lt_cv_dlopen_self+:} false; then :
10804 $as_echo_n "(cached) " >&6
10806 if test "$cross_compiling" = yes; then :
10807 lt_cv_dlopen_self=cross
10809 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10810 lt_status=$lt_dlunknown
10811 cat > conftest.$ac_ext <<_LT_EOF
10812 #line $LINENO "configure"
10813 #include "confdefs.h"
10822 # define LT_DLGLOBAL RTLD_GLOBAL
10825 # define LT_DLGLOBAL DL_GLOBAL
10827 # define LT_DLGLOBAL 0
10831 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10832 find out it does not work in some platform. */
10833 #ifndef LT_DLLAZY_OR_NOW
10835 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10838 # define LT_DLLAZY_OR_NOW DL_LAZY
10841 # define LT_DLLAZY_OR_NOW RTLD_NOW
10844 # define LT_DLLAZY_OR_NOW DL_NOW
10846 # define LT_DLLAZY_OR_NOW 0
10853 /* When -fvisbility=hidden is used, assume the code has been annotated
10854 correspondingly for the symbols needed. */
10855 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10856 void fnord () __attribute__((visibility("default")));
10859 void fnord () { int i=42; }
10862 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10863 int status = $lt_dlunknown;
10867 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10870 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10871 else puts (dlerror ());
10873 /* dlclose (self); */
10881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10882 (eval $ac_link) 2>&5
10884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10885 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10886 (./conftest; exit; ) >&5 2>/dev/null
10888 case x$lt_status in
10889 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10890 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10891 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10894 # compilation failed
10895 lt_cv_dlopen_self=no
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10903 $as_echo "$lt_cv_dlopen_self" >&6; }
10905 if test "x$lt_cv_dlopen_self" = xyes; then
10906 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10908 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10909 if ${lt_cv_dlopen_self_static+:} false; then :
10910 $as_echo_n "(cached) " >&6
10912 if test "$cross_compiling" = yes; then :
10913 lt_cv_dlopen_self_static=cross
10915 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10916 lt_status=$lt_dlunknown
10917 cat > conftest.$ac_ext <<_LT_EOF
10918 #line $LINENO "configure"
10919 #include "confdefs.h"
10928 # define LT_DLGLOBAL RTLD_GLOBAL
10931 # define LT_DLGLOBAL DL_GLOBAL
10933 # define LT_DLGLOBAL 0
10937 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10938 find out it does not work in some platform. */
10939 #ifndef LT_DLLAZY_OR_NOW
10941 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10944 # define LT_DLLAZY_OR_NOW DL_LAZY
10947 # define LT_DLLAZY_OR_NOW RTLD_NOW
10950 # define LT_DLLAZY_OR_NOW DL_NOW
10952 # define LT_DLLAZY_OR_NOW 0
10959 /* When -fvisbility=hidden is used, assume the code has been annotated
10960 correspondingly for the symbols needed. */
10961 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10962 void fnord () __attribute__((visibility("default")));
10965 void fnord () { int i=42; }
10968 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10969 int status = $lt_dlunknown;
10973 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10976 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10977 else puts (dlerror ());
10979 /* dlclose (self); */
10987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10988 (eval $ac_link) 2>&5
10990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10991 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10992 (./conftest; exit; ) >&5 2>/dev/null
10994 case x$lt_status in
10995 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10996 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10997 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11000 # compilation failed
11001 lt_cv_dlopen_self_static=no
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11009 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11012 CPPFLAGS="$save_CPPFLAGS"
11013 LDFLAGS="$save_LDFLAGS"
11018 case $lt_cv_dlopen_self in
11019 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11020 *) enable_dlopen_self=unknown ;;
11023 case $lt_cv_dlopen_self_static in
11024 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11025 *) enable_dlopen_self_static=unknown ;;
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11048 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11049 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11050 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11051 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11053 $as_echo "yes" >&6; }
11055 # FIXME - insert some real tests, host_os isn't really good enough
11058 if test -n "$STRIP" ; then
11059 striplib="$STRIP -x"
11060 old_striplib="$STRIP -S"
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11062 $as_echo "yes" >&6; }
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11065 $as_echo "no" >&6; }
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11070 $as_echo "no" >&6; }
11086 # Report which library types will actually be built
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11088 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11090 $as_echo "$can_build_shared" >&6; }
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11093 $as_echo_n "checking whether to build shared libraries... " >&6; }
11094 test "$can_build_shared" = "no" && enable_shared=no
11096 # On AIX, shared libraries and static libraries use the same namespace, and
11097 # are all built from PIC.
11100 test "$enable_shared" = yes && enable_static=no
11101 if test -n "$RANLIB"; then
11102 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11103 postinstall_cmds='$RANLIB $lib'
11108 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11109 test "$enable_shared" = yes && enable_static=no
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11114 $as_echo "$enable_shared" >&6; }
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11117 $as_echo_n "checking whether to build static libraries... " >&6; }
11118 # Make sure either enable_shared or enable_static is yes.
11119 test "$enable_shared" = yes || enable_static=yes
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11121 $as_echo "$enable_static" >&6; }
11128 ac_cpp='$CPP $CPPFLAGS'
11129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11147 ac_config_commands="$ac_config_commands libtool"
11152 # Only expand once:
11156 # Checks for pkg-config packages
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XXF86MISC" >&5
11160 $as_echo_n "checking for XXF86MISC... " >&6; }
11162 if test -n "$XXF86MISC_CFLAGS"; then
11163 pkg_cv_XXF86MISC_CFLAGS="$XXF86MISC_CFLAGS"
11164 elif test -n "$PKG_CONFIG"; then
11165 if test -n "$PKG_CONFIG" && \
11166 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xextproto xext xf86miscproto\""; } >&5
11167 ($PKG_CONFIG --exists --print-errors "xproto x11 xextproto xext xf86miscproto") 2>&5
11169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11170 test $ac_status = 0; }; then
11171 pkg_cv_XXF86MISC_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xextproto xext xf86miscproto" 2>/dev/null`
11178 if test -n "$XXF86MISC_LIBS"; then
11179 pkg_cv_XXF86MISC_LIBS="$XXF86MISC_LIBS"
11180 elif test -n "$PKG_CONFIG"; then
11181 if test -n "$PKG_CONFIG" && \
11182 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xextproto xext xf86miscproto\""; } >&5
11183 ($PKG_CONFIG --exists --print-errors "xproto x11 xextproto xext xf86miscproto") 2>&5
11185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11186 test $ac_status = 0; }; then
11187 pkg_cv_XXF86MISC_LIBS=`$PKG_CONFIG --libs "xproto x11 xextproto xext xf86miscproto" 2>/dev/null`
11197 if test $pkg_failed = yes; then
11199 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11200 _pkg_short_errors_supported=yes
11202 _pkg_short_errors_supported=no
11204 if test $_pkg_short_errors_supported = yes; then
11205 XXF86MISC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto x11 xextproto xext xf86miscproto" 2>&1`
11207 XXF86MISC_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto x11 xextproto xext xf86miscproto" 2>&1`
11209 # Put the nasty error message in config.log where it belongs
11210 echo "$XXF86MISC_PKG_ERRORS" >&5
11212 as_fn_error $? "Package requirements (xproto x11 xextproto xext xf86miscproto) were not met:
11214 $XXF86MISC_PKG_ERRORS
11216 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11217 installed software in a non-standard prefix.
11219 Alternatively, you may set the environment variables XXF86MISC_CFLAGS
11220 and XXF86MISC_LIBS to avoid the need to call pkg-config.
11221 See the pkg-config man page for more details.
11223 elif test $pkg_failed = untried; then
11224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11226 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11227 is in your PATH or set the PKG_CONFIG environment variable to the full
11228 path to pkg-config.
11230 Alternatively, you may set the environment variables XXF86MISC_CFLAGS
11231 and XXF86MISC_LIBS to avoid the need to call pkg-config.
11232 See the pkg-config man page for more details.
11234 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11235 See \`config.log' for more details" "$LINENO" 5; }
11237 XXF86MISC_CFLAGS=$pkg_cv_XXF86MISC_CFLAGS
11238 XXF86MISC_LIBS=$pkg_cv_XXF86MISC_LIBS
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11240 $as_echo "yes" >&6; }
11245 # Check whether --enable-malloc0returnsnull was given.
11246 if test "${enable_malloc0returnsnull+set}" = set; then :
11247 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
11249 MALLOC_ZERO_RETURNS_NULL=auto
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
11254 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
11255 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
11256 if test "$cross_compiling" = yes; then :
11257 MALLOC_ZERO_RETURNS_NULL=yes
11259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11260 /* end confdefs.h. */
11266 char *m0, *r0, *c0, *p;
11271 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
11274 if ac_fn_c_try_run "$LINENO"; then :
11275 MALLOC_ZERO_RETURNS_NULL=yes
11277 MALLOC_ZERO_RETURNS_NULL=no
11279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11280 conftest.$ac_objext conftest.beam conftest.$ac_ext
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
11285 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
11287 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
11288 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
11289 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
11290 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
11292 MALLOC_ZERO_CFLAGS=""
11293 XMALLOC_ZERO_CFLAGS=""
11294 XTMALLOC_ZERO_CFLAGS=""
11302 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xxf86misc.pc"
11304 cat >confcache <<\_ACEOF
11305 # This file is a shell script that caches the results of configure
11306 # tests run on this system so they can be shared between configure
11307 # scripts and configure runs, see configure's option --config-cache.
11308 # It is not useful on other systems. If it contains results you don't
11309 # want to keep, you may remove or edit it.
11311 # config.status only pays attention to the cache file if you give it
11312 # the --recheck option to rerun configure.
11314 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11315 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11316 # following values.
11320 # The following way of writing the cache mishandles newlines in values,
11321 # but we know of no workaround that is simple, portable, and efficient.
11322 # So, we kill variables containing newlines.
11323 # Ultrix sh set writes to stderr and can't be redirected directly,
11324 # and sets the high bit in the cache file unless we assign to the vars.
11326 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11327 eval ac_val=\$$ac_var
11331 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11332 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11335 _ | IFS | as_nl) ;; #(
11336 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11337 *) { eval $ac_var=; unset $ac_var;} ;;
11343 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11344 *${as_nl}ac_space=\ *)
11345 # `set' does not quote correctly, so add quotes: double-quote
11346 # substitution turns \\\\ into \\, and sed turns \\ into \.
11349 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11352 # `set' quotes correctly as required by POSIX, so do not add quotes.
11353 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11362 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11364 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11366 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11367 if test -w "$cache_file"; then
11368 if test "x$cache_file" != "x/dev/null"; then
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11370 $as_echo "$as_me: updating cache $cache_file" >&6;}
11371 if test ! -f "$cache_file" || test -h "$cache_file"; then
11372 cat confcache >"$cache_file"
11374 case $cache_file in #(
11376 mv -f confcache "$cache_file"$$ &&
11377 mv -f "$cache_file"$$ "$cache_file" ;; #(
11379 mv -f confcache "$cache_file" ;;
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11385 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11390 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11391 # Let make expand exec_prefix.
11392 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11394 DEFS=-DHAVE_CONFIG_H
11399 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11400 # 1. Remove the extension, and $U if already installed.
11401 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11402 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11403 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11404 # will be set to the directory where LIBOBJS objects are built.
11405 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11406 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11408 LIBOBJS=$ac_libobjs
11410 LTLIBOBJS=$ac_ltlibobjs
11413 if test -n "$EXEEXT"; then
11415 am__EXEEXT_FALSE='#'
11417 am__EXEEXT_TRUE='#'
11421 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11422 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11423 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11425 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11426 as_fn_error $? "conditional \"AMDEP\" was never defined.
11427 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11429 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11430 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11431 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11434 : "${CONFIG_STATUS=./config.status}"
11436 ac_clean_files_save=$ac_clean_files
11437 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11439 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11441 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11443 # Generated by $as_me.
11444 # Run this file to recreate the current configuration.
11445 # Compiler output produced by configure, useful for debugging
11446 # configure, is in config.log if it exists.
11449 ac_cs_recheck=false
11452 SHELL=\${CONFIG_SHELL-$SHELL}
11455 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11456 ## -------------------- ##
11457 ## M4sh Initialization. ##
11458 ## -------------------- ##
11460 # Be more Bourne compatible
11461 DUALCASE=1; export DUALCASE # for MKS sh
11462 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11465 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11466 # is contrary to our usage. Disable this feature.
11467 alias -g '${1+"$@"}'='"$@"'
11468 setopt NO_GLOB_SUBST
11470 case `(set -o) 2>/dev/null` in #(
11482 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11483 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11484 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11485 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11486 # Prefer a ksh shell builtin over an external printf program on Solaris,
11487 # but without wasting forks for bash or zsh.
11488 if test -z "$BASH_VERSION$ZSH_VERSION" \
11489 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11490 as_echo='print -r --'
11491 as_echo_n='print -rn --'
11492 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11493 as_echo='printf %s\n'
11494 as_echo_n='printf %s'
11496 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11497 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11498 as_echo_n='/usr/ucb/echo -n'
11500 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11501 as_echo_n_body='eval
11505 expr "X$arg" : "X\\(.*\\)$as_nl";
11506 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11508 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11510 export as_echo_n_body
11511 as_echo_n='sh -c $as_echo_n_body as_echo'
11513 export as_echo_body
11514 as_echo='sh -c $as_echo_body as_echo'
11517 # The user is always right.
11518 if test "${PATH_SEPARATOR+set}" != set; then
11520 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11521 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11528 # We need space, tab and new line, in precisely that order. Quoting is
11529 # there to prevent editors from complaining about space-tab.
11530 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11531 # splitting by setting IFS to empty value.)
11534 # Find who we are. Look in the path if we contain no directory separator.
11537 *[\\/]* ) as_myself=$0 ;;
11538 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11539 for as_dir in $PATH
11542 test -z "$as_dir" && as_dir=.
11543 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11549 # We did not find ourselves, most probably we were run as `sh COMMAND'
11550 # in which case we are not to be found in the path.
11551 if test "x$as_myself" = x; then
11554 if test ! -f "$as_myself"; then
11555 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11559 # Unset variables that we do not need and which cause bugs (e.g. in
11560 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11561 # suppresses any "Segmentation fault" message there. '((' could
11562 # trigger a bug in pdksh 5.2.14.
11563 for as_var in BASH_ENV ENV MAIL MAILPATH
11564 do eval test x\${$as_var+set} = xset \
11565 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11581 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11582 # ----------------------------------------
11583 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11584 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11585 # script with STATUS, using 1 if that was 0.
11588 as_status=$1; test $as_status -eq 0 && as_status=1
11590 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11591 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11593 $as_echo "$as_me: error: $2" >&2
11594 as_fn_exit $as_status
11598 # as_fn_set_status STATUS
11599 # -----------------------
11600 # Set $? to STATUS, without forking.
11601 as_fn_set_status ()
11604 } # as_fn_set_status
11606 # as_fn_exit STATUS
11607 # -----------------
11608 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11612 as_fn_set_status $1
11618 # Portably unset VAR.
11621 { eval $1=; unset $1;}
11623 as_unset=as_fn_unset
11624 # as_fn_append VAR VALUE
11625 # ----------------------
11626 # Append the text in VALUE to the end of the definition contained in VAR. Take
11627 # advantage of any shell optimizations that allow amortized linear growth over
11628 # repeated appends, instead of the typical quadratic growth present in naive
11630 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11631 eval 'as_fn_append ()
11642 # as_fn_arith ARG...
11643 # ------------------
11644 # Perform arithmetic evaluation on the ARGs, and store the result in the
11645 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11646 # must be portable across $(()) and expr.
11647 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11648 eval 'as_fn_arith ()
11655 as_val=`expr "$@" || test $? -eq 1`
11660 if expr a : '\(a\)' >/dev/null 2>&1 &&
11661 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11667 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11668 as_basename=basename
11673 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11679 as_me=`$as_basename -- "$0" ||
11680 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11681 X"$0" : 'X\(//\)$' \| \
11682 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11684 sed '/^.*\/\([^/][^/]*\)\/*$/{
11698 # Avoid depending upon Character Ranges.
11699 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11700 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11701 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11702 as_cr_digits='0123456789'
11703 as_cr_alnum=$as_cr_Letters$as_cr_digits
11705 ECHO_C= ECHO_N= ECHO_T=
11706 case `echo -n x` in #(((((
11708 case `echo 'xy\c'` in
11709 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11711 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11718 rm -f conf$$ conf$$.exe conf$$.file
11719 if test -d conf$$.dir; then
11720 rm -f conf$$.dir/conf$$.file
11723 mkdir conf$$.dir 2>/dev/null
11725 if (echo >conf$$.file) 2>/dev/null; then
11726 if ln -s conf$$.file conf$$ 2>/dev/null; then
11728 # ... but there are two gotchas:
11729 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11730 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11731 # In both cases, we have to default to `cp -p'.
11732 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11734 elif ln conf$$.file conf$$ 2>/dev/null; then
11742 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11743 rmdir conf$$.dir 2>/dev/null
11748 # Create "$as_dir" as a directory, including parents if necessary.
11753 -*) as_dir=./$as_dir;;
11755 test -d "$as_dir" || eval $as_mkdir_p || {
11759 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11760 *) as_qdir=$as_dir;;
11762 as_dirs="'$as_qdir' $as_dirs"
11763 as_dir=`$as_dirname -- "$as_dir" ||
11764 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11765 X"$as_dir" : 'X\(//\)[^/]' \| \
11766 X"$as_dir" : 'X\(//\)$' \| \
11767 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11768 $as_echo X"$as_dir" |
11769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11773 /^X\(\/\/\)[^/].*/{
11786 test -d "$as_dir" && break
11788 test -z "$as_dirs" || eval "mkdir $as_dirs"
11789 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11793 if mkdir -p . 2>/dev/null; then
11794 as_mkdir_p='mkdir -p "$as_dir"'
11796 test -d ./-p && rmdir ./-p
11800 if test -x / >/dev/null 2>&1; then
11801 as_test_x='test -x'
11803 if ls -dL / >/dev/null 2>&1; then
11810 if test -d "$1"; then
11816 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11817 ???[sx]*):;;*)false;;esac;fi
11821 as_executable_p=$as_test_x
11823 # Sed expression to map a string onto a valid CPP name.
11824 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11826 # Sed expression to map a string onto a valid variable name.
11827 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11831 ## ----------------------------------- ##
11832 ## Main body of $CONFIG_STATUS script. ##
11833 ## ----------------------------------- ##
11835 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11838 # Save the log message, to keep $0 and so on meaningful, and to
11839 # report actual input values of CONFIG_FILES etc. instead of their
11840 # values after options handling.
11842 This file was extended by libXxf86misc $as_me 1.0.3, which was
11843 generated by GNU Autoconf 2.68. Invocation command line was
11845 CONFIG_FILES = $CONFIG_FILES
11846 CONFIG_HEADERS = $CONFIG_HEADERS
11847 CONFIG_LINKS = $CONFIG_LINKS
11848 CONFIG_COMMANDS = $CONFIG_COMMANDS
11851 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11856 case $ac_config_files in *"
11857 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11860 case $ac_config_headers in *"
11861 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11866 # Files that config.status was made for.
11867 config_files="$ac_config_files"
11868 config_headers="$ac_config_headers"
11869 config_commands="$ac_config_commands"
11873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11875 \`$as_me' instantiates files and other configuration actions
11876 from templates according to the current configuration. Unless the files
11877 and actions are specified as TAGs, all are instantiated by default.
11879 Usage: $0 [OPTION]... [TAG]...
11881 -h, --help print this help, then exit
11882 -V, --version print version number and configuration settings, then exit
11883 --config print configuration, then exit
11884 -q, --quiet, --silent
11885 do not print progress messages
11886 -d, --debug don't remove temporary files
11887 --recheck update $as_me by reconfiguring in the same conditions
11888 --file=FILE[:TEMPLATE]
11889 instantiate the configuration file FILE
11890 --header=FILE[:TEMPLATE]
11891 instantiate the configuration header FILE
11893 Configuration files:
11896 Configuration headers:
11899 Configuration commands:
11902 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11906 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11908 libXxf86misc config.status 1.0.3
11909 configured by $0, generated by GNU Autoconf 2.68,
11910 with options \\"\$ac_cs_config\\"
11912 Copyright (C) 2010 Free Software Foundation, Inc.
11913 This config.status script is free software; the Free Software Foundation
11914 gives unlimited permission to copy, distribute and modify it."
11921 test -n "\$AWK" || AWK=awk
11924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11925 # The default lists apply if the user does not specify any file.
11931 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11932 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11936 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11948 # Handling of the options.
11949 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11951 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11952 $as_echo "$ac_cs_version"; exit ;;
11953 --config | --confi | --conf | --con | --co | --c )
11954 $as_echo "$ac_cs_config"; exit ;;
11955 --debug | --debu | --deb | --de | --d | -d )
11957 --file | --fil | --fi | --f )
11960 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11961 '') as_fn_error $? "missing file argument" ;;
11963 as_fn_append CONFIG_FILES " '$ac_optarg'"
11964 ac_need_defaults=false;;
11965 --header | --heade | --head | --hea )
11968 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11970 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11971 ac_need_defaults=false;;
11973 # Conflict between --help and --header
11974 as_fn_error $? "ambiguous option: \`$1'
11975 Try \`$0 --help' for more information.";;
11976 --help | --hel | -h )
11977 $as_echo "$ac_cs_usage"; exit ;;
11978 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11979 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11982 # This is an error.
11983 -*) as_fn_error $? "unrecognized option: \`$1'
11984 Try \`$0 --help' for more information." ;;
11986 *) as_fn_append ac_config_targets " $1"
11987 ac_need_defaults=false ;;
11993 ac_configure_extra_args=
11995 if $ac_cs_silent; then
11997 ac_configure_extra_args="$ac_configure_extra_args --silent"
12001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12002 if \$ac_cs_recheck; then
12003 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12005 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12006 CONFIG_SHELL='$SHELL'
12007 export CONFIG_SHELL
12012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12016 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12017 ## Running $as_me. ##
12023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12027 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12030 # The HP-UX ksh and POSIX shell print the target directory to stdout
12031 # if CDPATH is set.
12032 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12034 sed_quote_subst='$sed_quote_subst'
12035 double_quote_subst='$double_quote_subst'
12036 delay_variable_subst='$delay_variable_subst'
12037 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12038 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12039 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12040 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12041 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12042 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12043 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12044 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12045 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12046 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12047 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12048 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12049 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12050 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12051 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12052 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12053 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12054 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12055 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12056 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12057 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12058 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12059 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12060 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12061 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12062 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12063 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12064 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12065 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12066 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12067 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12068 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12069 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12070 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12071 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12072 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12073 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12074 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12075 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12076 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12077 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12078 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12079 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12080 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12081 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12082 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12083 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12084 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12085 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"`'
12086 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12087 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12088 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12089 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12090 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12091 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12092 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12093 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12094 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12095 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12096 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12097 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12098 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12099 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12100 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12101 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12102 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12103 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12104 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12105 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12106 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12107 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12108 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12109 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12110 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12111 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12112 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12113 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12114 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12115 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12116 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12117 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12118 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12119 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12120 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12121 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12122 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12123 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12124 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12125 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12126 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12127 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12128 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12129 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12130 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12131 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12132 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12133 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12134 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12135 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12136 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12137 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12138 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12139 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12140 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12141 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12142 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12143 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12144 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12145 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12146 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12147 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12148 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12149 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12150 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12151 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12152 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12153 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12154 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12155 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12156 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12159 LTCFLAGS='$LTCFLAGS'
12160 compiler='$compiler_DEFAULT'
12162 # A function that is used when there is no print builtin or printf.
12163 func_fallback_echo ()
12165 eval 'cat <<_LTECHO_EOF
12170 # Quote evaled strings.
12184 deplibs_check_method \
12193 lt_cv_sys_global_symbol_pipe \
12194 lt_cv_sys_global_symbol_to_cdecl \
12195 lt_cv_sys_global_symbol_to_c_name_address \
12196 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12197 lt_prog_compiler_no_builtin_flag \
12198 lt_prog_compiler_wl \
12199 lt_prog_compiler_pic \
12200 lt_prog_compiler_static \
12201 lt_cv_prog_compiler_c_o \
12209 export_dynamic_flag_spec \
12210 whole_archive_flag_spec \
12211 compiler_needs_object \
12213 allow_undefined_flag \
12214 no_undefined_flag \
12215 hardcode_libdir_flag_spec \
12216 hardcode_libdir_flag_spec_ld \
12217 hardcode_libdir_separator \
12222 variables_saved_for_relink \
12224 library_names_spec \
12226 install_override_mode \
12230 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12231 *[\\\\\\\`\\"\\\$]*)
12232 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12235 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12240 # Double-quote double-evaled strings.
12241 for var in reload_cmds \
12242 old_postinstall_cmds \
12243 old_postuninstall_cmds \
12245 extract_expsyms_cmds \
12246 old_archive_from_new_cmds \
12247 old_archive_from_expsyms_cmds \
12249 archive_expsym_cmds \
12251 module_expsym_cmds \
12252 export_symbols_cmds \
12255 postuninstall_cmds \
12257 sys_lib_search_path_spec \
12258 sys_lib_dlsearch_path_spec; do
12259 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12260 *[\\\\\\\`\\"\\\$]*)
12261 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12264 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12269 ac_aux_dir='$ac_aux_dir'
12270 xsi_shell='$xsi_shell'
12271 lt_shell_append='$lt_shell_append'
12273 # See if we are running on zsh, and set the options which allow our
12274 # commands through without removal of \ escapes INIT.
12275 if test -n "\${ZSH_VERSION+set}" ; then
12276 setopt NO_GLOB_SUBST
12282 TIMESTAMP='$TIMESTAMP'
12291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12293 # Handling of arguments.
12294 for ac_config_target in $ac_config_targets
12296 case $ac_config_target in
12297 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
12298 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12299 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12300 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12301 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12302 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12303 "xxf86misc.pc") CONFIG_FILES="$CONFIG_FILES xxf86misc.pc" ;;
12305 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12310 # If the user did not use the arguments to specify the items to instantiate,
12311 # then the envvar interface is used. Set only those that are not.
12312 # We use the long form for the default assignment because of an extremely
12313 # bizarre bug on SunOS 4.1.3.
12314 if $ac_need_defaults; then
12315 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12316 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12317 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12320 # Have a temporary directory for convenience. Make it in the build tree
12321 # simply because there is no reason against having it here, and in addition,
12322 # creating and moving files from /tmp can sometimes cause problems.
12323 # Hook for its removal unless debugging.
12324 # Note that there is a small window in which the directory will not be cleaned:
12325 # after its creation but before its name has been assigned to `$tmp'.
12329 trap 'exit_status=$?
12330 : "${ac_tmp:=$tmp}"
12331 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12333 trap 'as_fn_exit 1' 1 2 13 15
12335 # Create a (secure) tmp directory for tmp files.
12338 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12342 tmp=./conf$$-$RANDOM
12343 (umask 077 && mkdir "$tmp")
12344 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12347 # Set up the scripts for CONFIG_FILES section.
12348 # No need to generate them if there are no CONFIG_FILES.
12349 # This happens for instance with `./config.status config.h'.
12350 if test -n "$CONFIG_FILES"; then
12353 ac_cr=`echo X | tr X '\015'`
12354 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12355 # But we know of no other shell where ac_cr would be empty at this
12356 # point, so we can use a bashism as a fallback.
12357 if test "x$ac_cr" = x; then
12358 eval ac_cr=\$\'\\r\'
12360 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12361 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12364 ac_cs_awk_cr=$ac_cr
12367 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12372 echo "cat >conf$$subs.awk <<_ACEOF" &&
12373 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12375 } >conf$$subs.sh ||
12376 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12377 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12379 for ac_last_try in false false false false false :; do
12380 . ./conf$$subs.sh ||
12381 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12383 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12384 if test $ac_delim_n = $ac_delim_num; then
12386 elif $ac_last_try; then
12387 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12389 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12392 rm -f conf$$subs.sh
12394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12395 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12399 s/^/S["/; s/!.*/"]=/
12409 s/\(.\{148\}\)..*/\1/
12411 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12416 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12423 s/\(.\{148\}\)..*/\1/
12425 s/["\\]/\\&/g; s/^/"/; s/$/"/
12429 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12434 ' <conf$$subs.awk | sed '
12439 ' >>$CONFIG_STATUS || ac_write_fail=1
12440 rm -f conf$$subs.awk
12441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12443 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12444 for (key in S) S_is_set[key] = 1
12450 nfields = split(line, field, "@")
12452 len = length(field[1])
12453 for (i = 2; i < nfields; i++) {
12455 keylen = length(key)
12456 if (S_is_set[key]) {
12458 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12459 len += length(value) + length(field[++i])
12470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12471 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12472 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12475 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12476 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12479 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12480 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12481 # trailing colons and then remove the whole line if VPATH becomes empty
12482 # (actually we leave an empty line to preserve line numbers).
12483 if test "x$srcdir" = x.; then
12484 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12503 fi # test -n "$CONFIG_FILES"
12505 # Set up the scripts for CONFIG_HEADERS section.
12506 # No need to generate them if there are no CONFIG_HEADERS.
12507 # This happens for instance with `./config.status Makefile'.
12508 if test -n "$CONFIG_HEADERS"; then
12509 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12513 # Transform confdefs.h into an awk script `defines.awk', embedded as
12514 # here-document in config.status, that substitutes the proper values into
12515 # config.h.in to produce config.h.
12517 # Create a delimiter string that does not exist in confdefs.h, to ease
12518 # handling of long lines.
12520 for ac_last_try in false false :; do
12521 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12522 if test -z "$ac_tt"; then
12524 elif $ac_last_try; then
12525 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12527 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12531 # For the awk script, D is an array of macro values keyed by name,
12532 # likewise P contains macro parameters if any. Preserve backslash
12533 # newline sequences.
12535 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12537 s/.\{148\}/&'"$ac_delim"'/g
12540 s/^[ ]*#[ ]*define[ ][ ]*/ /
12547 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12549 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12553 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12554 D["\1"]=" \3\\\\\\n"\\/p
12556 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12561 s/.\{148\}/&'"$ac_delim"'/g
12566 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12569 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12571 ' <confdefs.h | sed '
12572 s/'"$ac_delim"'/"\\\
12573 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12576 for (key in D) D_is_set[key] = 1
12579 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12581 split(line, arg, " ")
12582 if (arg[1] == "#") {
12586 defundef = substr(arg[1], 2)
12589 split(mac1, mac2, "(") #)
12591 prefix = substr(line, 1, index(line, defundef) - 1)
12592 if (D_is_set[macro]) {
12593 # Preserve the white space surrounding the "#".
12594 print prefix "define", macro P[macro] D[macro]
12597 # Replace #undef with comments. This is necessary, for example,
12598 # in the case of _POSIX_SOURCE, which is predefined and required
12599 # on some systems where configure will not decide to define it.
12600 if (defundef == "undef") {
12601 print "/*", prefix defundef, macro, "*/"
12609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12610 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12611 fi # test -n "$CONFIG_HEADERS"
12614 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12619 :[FHLC]) ac_mode=$ac_tag; continue;;
12621 case $ac_mode$ac_tag in
12623 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12624 :[FH]-) ac_tag=-:-;;
12625 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12642 -) ac_f="$ac_tmp/stdin";;
12643 *) # Look for the file first in the build tree, then in the source tree
12644 # (if the path is not absolute). The absolute path cannot be DOS-style,
12645 # because $ac_f cannot contain `:'.
12649 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12651 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12653 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12654 as_fn_append ac_file_inputs " '$ac_f'"
12657 # Let's still pretend it is `configure' which instantiates (i.e., don't
12658 # use $as_me), people would be surprised to read:
12659 # /* config.h. Generated by config.status. */
12660 configure_input='Generated from '`
12661 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12663 if test x"$ac_file" != x-; then
12664 configure_input="$ac_file. $configure_input"
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12666 $as_echo "$as_me: creating $ac_file" >&6;}
12668 # Neutralize special characters interpreted by sed in replacement strings.
12669 case $configure_input in #(
12670 *\&* | *\|* | *\\* )
12671 ac_sed_conf_input=`$as_echo "$configure_input" |
12672 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12673 *) ac_sed_conf_input=$configure_input;;
12677 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12678 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12683 ac_dir=`$as_dirname -- "$ac_file" ||
12684 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12685 X"$ac_file" : 'X\(//\)[^/]' \| \
12686 X"$ac_file" : 'X\(//\)$' \| \
12687 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12688 $as_echo X"$ac_file" |
12689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12693 /^X\(\/\/\)[^/].*/{
12706 as_dir="$ac_dir"; as_fn_mkdir_p
12710 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12712 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12713 # A ".." for each directory in $ac_dir_suffix.
12714 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12715 case $ac_top_builddir_sub in
12716 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12717 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12720 ac_abs_top_builddir=$ac_pwd
12721 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12722 # for backward compatibility:
12723 ac_top_builddir=$ac_top_build_prefix
12726 .) # We are building in place.
12728 ac_top_srcdir=$ac_top_builddir_sub
12729 ac_abs_top_srcdir=$ac_pwd ;;
12730 [\\/]* | ?:[\\/]* ) # Absolute name.
12731 ac_srcdir=$srcdir$ac_dir_suffix;
12732 ac_top_srcdir=$srcdir
12733 ac_abs_top_srcdir=$srcdir ;;
12734 *) # Relative name.
12735 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12736 ac_top_srcdir=$ac_top_build_prefix$srcdir
12737 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12739 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12749 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12750 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12752 ac_MKDIR_P=$MKDIR_P
12754 [\\/$]* | ?:[\\/]* ) ;;
12755 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12760 # If the template does not know about datarootdir, expand it.
12761 # FIXME: This hack should be removed a few years after 2.60.
12762 ac_datarootdir_hack=; ac_datarootdir_seen=
12773 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12774 *datarootdir*) ac_datarootdir_seen=yes;;
12775 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12777 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12780 ac_datarootdir_hack='
12781 s&@datadir@&$datadir&g
12782 s&@docdir@&$docdir&g
12783 s&@infodir@&$infodir&g
12784 s&@localedir@&$localedir&g
12785 s&@mandir@&$mandir&g
12786 s&\\\${datarootdir}&$datarootdir&g' ;;
12790 # Neutralize VPATH when `$srcdir' = `.'.
12791 # Shell code in configure.ac might set extrasub.
12792 # FIXME: do we really want to maintain this feature?
12793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12794 ac_sed_extra="$ac_vpsub
12797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12799 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12800 s|@configure_input@|$ac_sed_conf_input|;t t
12801 s&@top_builddir@&$ac_top_builddir_sub&;t t
12802 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12803 s&@srcdir@&$ac_srcdir&;t t
12804 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12805 s&@top_srcdir@&$ac_top_srcdir&;t t
12806 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12807 s&@builddir@&$ac_builddir&;t t
12808 s&@abs_builddir@&$ac_abs_builddir&;t t
12809 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12810 s&@INSTALL@&$ac_INSTALL&;t t
12811 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12812 $ac_datarootdir_hack
12814 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12815 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12817 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12818 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12819 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12820 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12822 which seems to be undefined. Please make sure it is defined" >&5
12823 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12824 which seems to be undefined. Please make sure it is defined" >&2;}
12826 rm -f "$ac_tmp/stdin"
12828 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12829 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12831 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12837 if test x"$ac_file" != x-; then
12839 $as_echo "/* $configure_input */" \
12840 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12841 } >"$ac_tmp/config.h" \
12842 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12843 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12845 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12848 mv "$ac_tmp/config.h" "$ac_file" \
12849 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12852 $as_echo "/* $configure_input */" \
12853 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12854 || as_fn_error $? "could not create -" "$LINENO" 5
12856 # Compute "$ac_file"'s index in $config_headers.
12859 for _am_header in $config_headers :; do
12860 case $_am_header in
12861 $_am_arg | $_am_arg:* )
12864 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12867 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12868 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12869 X"$_am_arg" : 'X\(//\)[^/]' \| \
12870 X"$_am_arg" : 'X\(//\)$' \| \
12871 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12872 $as_echo X"$_am_arg" |
12873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12877 /^X\(\/\/\)[^/].*/{
12889 s/.*/./; q'`/stamp-h$_am_stamp_count
12892 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12893 $as_echo "$as_me: executing $ac_file commands" >&6;}
12898 case $ac_file$ac_mode in
12899 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12900 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12901 # are listed without --file. Let's play safe and only enable the eval
12902 # if we detect the quoting.
12903 case $CONFIG_FILES in
12904 *\'*) eval set x "$CONFIG_FILES" ;;
12905 *) set x $CONFIG_FILES ;;
12910 # Strip MF so we end up with the name of the file.
12911 mf=`echo "$mf" | sed -e 's/:.*$//'`
12912 # Check whether this is an Automake generated Makefile or not.
12913 # We used to match only the files named `Makefile.in', but
12914 # some people rename them; so instead we look at the file content.
12915 # Grep'ing the first line is not enough: some people post-process
12916 # each Makefile.in and add a new line on top of each file to say so.
12917 # Grep'ing the whole file is not good either: AIX grep has a line
12918 # limit of 2048, but all sed's we know have understand at least 4000.
12919 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12920 dirpart=`$as_dirname -- "$mf" ||
12921 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12922 X"$mf" : 'X\(//\)[^/]' \| \
12923 X"$mf" : 'X\(//\)$' \| \
12924 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12930 /^X\(\/\/\)[^/].*/{
12946 # Extract the definition of DEPDIR, am__include, and am__quote
12947 # from the Makefile without running `make'.
12948 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12949 test -z "$DEPDIR" && continue
12950 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12951 test -z "am__include" && continue
12952 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12953 # When using ansi2knr, U may be empty or an underscore; expand it
12954 U=`sed -n 's/^U = //p' < "$mf"`
12955 # Find all dependency output files, they are included files with
12956 # $(DEPDIR) in their names. We invoke sed twice because it is the
12957 # simplest approach to changing $(DEPDIR) to its actual value in the
12959 for file in `sed -n "
12960 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12961 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12962 # Make sure the directory exists.
12963 test -f "$dirpart/$file" && continue
12964 fdir=`$as_dirname -- "$file" ||
12965 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12966 X"$file" : 'X\(//\)[^/]' \| \
12967 X"$file" : 'X\(//\)$' \| \
12968 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12969 $as_echo X"$file" |
12970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12974 /^X\(\/\/\)[^/].*/{
12987 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12988 # echo "creating $dirpart/$file"
12989 echo '# dummy' > "$dirpart/$file"
12996 # See if we are running on zsh, and set the options which allow our
12997 # commands through without removal of \ escapes.
12998 if test -n "${ZSH_VERSION+set}" ; then
12999 setopt NO_GLOB_SUBST
13002 cfgfile="${ofile}T"
13003 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13006 cat <<_LT_EOF >> "$cfgfile"
13009 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13010 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13011 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13012 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13014 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13015 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13017 # Written by Gordon Matzigkeit, 1996
13019 # This file is part of GNU Libtool.
13021 # GNU Libtool is free software; you can redistribute it and/or
13022 # modify it under the terms of the GNU General Public License as
13023 # published by the Free Software Foundation; either version 2 of
13024 # the License, or (at your option) any later version.
13026 # As a special exception to the GNU General Public License,
13027 # if you distribute this file as part of a program or library that
13028 # is built using GNU Libtool, you may include this file under the
13029 # same distribution terms that you use for the rest of that program.
13031 # GNU Libtool is distributed in the hope that it will be useful,
13032 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13033 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13034 # GNU General Public License for more details.
13036 # You should have received a copy of the GNU General Public License
13037 # along with GNU Libtool; see the file COPYING. If not, a copy
13038 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13039 # obtained by writing to the Free Software Foundation, Inc.,
13040 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13043 # The names of the tagged configurations supported by this script.
13046 # ### BEGIN LIBTOOL CONFIG
13048 # Which release of libtool.m4 was used?
13049 macro_version=$macro_version
13050 macro_revision=$macro_revision
13052 # Whether or not to build shared libraries.
13053 build_libtool_libs=$enable_shared
13055 # Whether or not to build static libraries.
13056 build_old_libs=$enable_static
13058 # What type of objects to build.
13061 # Whether or not to optimize for fast installation.
13062 fast_install=$enable_fast_install
13064 # Shell to use when invoking shell scripts.
13067 # An echo program that protects backslashes.
13071 host_alias=$host_alias
13075 # The build system.
13076 build_alias=$build_alias
13080 # A sed program that does not truncate output.
13083 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13084 Xsed="\$SED -e 1s/^X//"
13086 # A grep program that handles long lines.
13092 # A literal string matcher.
13095 # A BSD- or MS-compatible name lister.
13098 # Whether we need soft or hard links.
13101 # What is the maximum length of a command?
13102 max_cmd_len=$max_cmd_len
13104 # Object file suffix (normally "o").
13107 # Executable file suffix (normally "").
13110 # whether the shell understands "unset".
13113 # turn spaces into newlines.
13116 # turn newlines into spaces.
13119 # An object symbol dumper.
13120 OBJDUMP=$lt_OBJDUMP
13122 # Method to check whether dependent libraries are shared objects.
13123 deplibs_check_method=$lt_deplibs_check_method
13125 # Command to use when deplibs_check_method == "file_magic".
13126 file_magic_cmd=$lt_file_magic_cmd
13130 AR_FLAGS=$lt_AR_FLAGS
13132 # A symbol stripping program.
13135 # Commands used to install an old-style archive.
13137 old_postinstall_cmds=$lt_old_postinstall_cmds
13138 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13140 # Whether to use a lock for old archive extraction.
13141 lock_old_archive_extraction=$lock_old_archive_extraction
13146 # LTCC compiler flags.
13147 LTCFLAGS=$lt_CFLAGS
13149 # Take the output of nm and produce a listing of raw symbols and C names.
13150 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13152 # Transform the output of nm in a proper C declaration.
13153 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13155 # Transform the output of nm in a C name address pair.
13156 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13158 # Transform the output of nm in a C name address pair when lib prefix is needed.
13159 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13161 # The name of the directory that contains temporary libtool files.
13164 # Used to examine libraries when file_magic_cmd begins with "file".
13165 MAGIC_CMD=$MAGIC_CMD
13167 # Must we lock files when doing compilation?
13168 need_locks=$lt_need_locks
13170 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13171 DSYMUTIL=$lt_DSYMUTIL
13173 # Tool to change global to local symbols on Mac OS X.
13176 # Tool to manipulate fat objects and archives on Mac OS X.
13179 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13182 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13183 OTOOL64=$lt_OTOOL64
13185 # Old archive suffix (normally "a").
13188 # Shared library suffix (normally ".so").
13189 shrext_cmds=$lt_shrext_cmds
13191 # The commands to extract the exported symbol list from a shared archive.
13192 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13194 # Variables whose values should be saved in libtool wrapper scripts and
13195 # restored at link time.
13196 variables_saved_for_relink=$lt_variables_saved_for_relink
13198 # Do we need the "lib" prefix for modules?
13199 need_lib_prefix=$need_lib_prefix
13201 # Do we need a version for libraries?
13202 need_version=$need_version
13204 # Library versioning type.
13205 version_type=$version_type
13207 # Shared library runtime path variable.
13208 runpath_var=$runpath_var
13210 # Shared library path variable.
13211 shlibpath_var=$shlibpath_var
13213 # Is shlibpath searched before the hard-coded library search path?
13214 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13216 # Format of library name prefix.
13217 libname_spec=$lt_libname_spec
13219 # List of archive names. First name is the real one, the rest are links.
13220 # The last name is the one that the linker finds with -lNAME
13221 library_names_spec=$lt_library_names_spec
13223 # The coded name of the library, if different from the real name.
13224 soname_spec=$lt_soname_spec
13226 # Permission mode override for installation of shared libraries.
13227 install_override_mode=$lt_install_override_mode
13229 # Command to use after installation of a shared archive.
13230 postinstall_cmds=$lt_postinstall_cmds
13232 # Command to use after uninstallation of a shared archive.
13233 postuninstall_cmds=$lt_postuninstall_cmds
13235 # Commands used to finish a libtool library installation in a directory.
13236 finish_cmds=$lt_finish_cmds
13238 # As "finish_cmds", except a single script fragment to be evaled but
13240 finish_eval=$lt_finish_eval
13242 # Whether we should hardcode library paths into libraries.
13243 hardcode_into_libs=$hardcode_into_libs
13245 # Compile-time system search path for libraries.
13246 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13248 # Run-time system search path for libraries.
13249 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13251 # Whether dlopen is supported.
13252 dlopen_support=$enable_dlopen
13254 # Whether dlopen of programs is supported.
13255 dlopen_self=$enable_dlopen_self
13257 # Whether dlopen of statically linked programs is supported.
13258 dlopen_self_static=$enable_dlopen_self_static
13260 # Commands to strip libraries.
13261 old_striplib=$lt_old_striplib
13262 striplib=$lt_striplib
13265 # The linker used to build libraries.
13268 # How to create reloadable object files.
13269 reload_flag=$lt_reload_flag
13270 reload_cmds=$lt_reload_cmds
13272 # Commands used to build an old-style archive.
13273 old_archive_cmds=$lt_old_archive_cmds
13275 # A language specific compiler.
13278 # Is the compiler the GNU compiler?
13281 # Compiler flag to turn off builtin functions.
13282 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13284 # How to pass a linker flag through the compiler.
13285 wl=$lt_lt_prog_compiler_wl
13287 # Additional compiler flags for building library objects.
13288 pic_flag=$lt_lt_prog_compiler_pic
13290 # Compiler flag to prevent dynamic linking.
13291 link_static_flag=$lt_lt_prog_compiler_static
13293 # Does compiler simultaneously support -c and -o options?
13294 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13296 # Whether or not to add -lc for building shared libraries.
13297 build_libtool_need_lc=$archive_cmds_need_lc
13299 # Whether or not to disallow shared libs when runtime libs are static.
13300 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13302 # Compiler flag to allow reflexive dlopens.
13303 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13305 # Compiler flag to generate shared objects directly from archives.
13306 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13308 # Whether the compiler copes with passing no objects directly.
13309 compiler_needs_object=$lt_compiler_needs_object
13311 # Create an old-style archive from a shared archive.
13312 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13314 # Create a temporary old-style archive to link instead of a shared archive.
13315 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13317 # Commands used to build a shared archive.
13318 archive_cmds=$lt_archive_cmds
13319 archive_expsym_cmds=$lt_archive_expsym_cmds
13321 # Commands used to build a loadable module if different from building
13322 # a shared archive.
13323 module_cmds=$lt_module_cmds
13324 module_expsym_cmds=$lt_module_expsym_cmds
13326 # Whether we are building with GNU ld or not.
13327 with_gnu_ld=$lt_with_gnu_ld
13329 # Flag that allows shared libraries with undefined symbols to be built.
13330 allow_undefined_flag=$lt_allow_undefined_flag
13332 # Flag that enforces no undefined symbols.
13333 no_undefined_flag=$lt_no_undefined_flag
13335 # Flag to hardcode \$libdir into a binary during linking.
13336 # This must work even if \$libdir does not exist
13337 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13339 # If ld is used when linking, flag to hardcode \$libdir into a binary
13340 # during linking. This must work even if \$libdir does not exist.
13341 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13343 # Whether we need a single "-rpath" flag with a separated argument.
13344 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13346 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13347 # DIR into the resulting binary.
13348 hardcode_direct=$hardcode_direct
13350 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13351 # DIR into the resulting binary and the resulting library dependency is
13352 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13353 # library is relocated.
13354 hardcode_direct_absolute=$hardcode_direct_absolute
13356 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13357 # into the resulting binary.
13358 hardcode_minus_L=$hardcode_minus_L
13360 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13361 # into the resulting binary.
13362 hardcode_shlibpath_var=$hardcode_shlibpath_var
13364 # Set to "yes" if building a shared library automatically hardcodes DIR
13365 # into the library and all subsequent libraries and executables linked
13367 hardcode_automatic=$hardcode_automatic
13369 # Set to yes if linker adds runtime paths of dependent libraries
13370 # to runtime path list.
13371 inherit_rpath=$inherit_rpath
13373 # Whether libtool must link a program against all its dependency libraries.
13374 link_all_deplibs=$link_all_deplibs
13376 # Fix the shell variable \$srcfile for the compiler.
13377 fix_srcfile_path=$lt_fix_srcfile_path
13379 # Set to "yes" if exported symbols are required.
13380 always_export_symbols=$always_export_symbols
13382 # The commands to list exported symbols.
13383 export_symbols_cmds=$lt_export_symbols_cmds
13385 # Symbols that should not be listed in the preloaded symbols.
13386 exclude_expsyms=$lt_exclude_expsyms
13388 # Symbols that must always be exported.
13389 include_expsyms=$lt_include_expsyms
13391 # Commands necessary for linking programs (against libraries) with templates.
13392 prelink_cmds=$lt_prelink_cmds
13394 # Specify filename containing input files.
13395 file_list_spec=$lt_file_list_spec
13397 # How to hardcode a shared library path into an executable.
13398 hardcode_action=$hardcode_action
13400 # ### END LIBTOOL CONFIG
13406 cat <<\_LT_EOF >> "$cfgfile"
13407 # AIX sometimes has problems with the GCC collect2 program. For some
13408 # reason, if we set the COLLECT_NAMES environment variable, the problems
13409 # vanish in a puff of smoke.
13410 if test "X${COLLECT_NAMES+set}" != Xset; then
13412 export COLLECT_NAMES
13419 ltmain="$ac_aux_dir/ltmain.sh"
13422 # We use sed instead of cat because bash on DJGPP gets confused if
13423 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13424 # text mode, it properly converts lines to CR/LF. This bash problem
13425 # is reportedly fixed, but why not run on old versions too?
13426 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13427 || (rm -f "$cfgfile"; exit 1)
13431 cat << \_LT_EOF >> "$cfgfile"
13433 # func_dirname file append nondir_replacement
13434 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13435 # otherwise set result to NONDIR_REPLACEMENT.
13439 */*) func_dirname_result="${1%/*}${2}" ;;
13440 * ) func_dirname_result="${3}" ;;
13444 # func_basename file
13447 func_basename_result="${1##*/}"
13450 # func_dirname_and_basename file append nondir_replacement
13451 # perform func_basename and func_dirname in a single function
13453 # dirname: Compute the dirname of FILE. If nonempty,
13454 # add APPEND to the result, otherwise set result
13455 # to NONDIR_REPLACEMENT.
13456 # value returned in "$func_dirname_result"
13457 # basename: Compute filename of FILE.
13458 # value retuned in "$func_basename_result"
13459 # Implementation must be kept synchronized with func_dirname
13460 # and func_basename. For efficiency, we do not delegate to
13461 # those functions but instead duplicate the functionality here.
13462 func_dirname_and_basename ()
13465 */*) func_dirname_result="${1%/*}${2}" ;;
13466 * ) func_dirname_result="${3}" ;;
13468 func_basename_result="${1##*/}"
13471 # func_stripname prefix suffix name
13472 # strip PREFIX and SUFFIX off of NAME.
13473 # PREFIX and SUFFIX must not contain globbing or regex special
13474 # characters, hashes, percent signs, but SUFFIX may contain a leading
13475 # dot (in which case that matches only a dot).
13478 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13479 # positional parameters, so assign one to ordinary parameter first.
13480 func_stripname_result=${3}
13481 func_stripname_result=${func_stripname_result#"${1}"}
13482 func_stripname_result=${func_stripname_result%"${2}"}
13488 func_opt_split_opt=${1%%=*}
13489 func_opt_split_arg=${1#*=}
13496 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13497 *) func_lo2o_result=${1} ;;
13501 # func_xform libobj-or-source
13504 func_xform_result=${1%.*}.lo
13507 # func_arith arithmetic-term...
13510 func_arith_result=$(( $* ))
13514 # STRING may not start with a hyphen.
13517 func_len_result=${#1}
13522 *) # Bourne compatible functions.
13523 cat << \_LT_EOF >> "$cfgfile"
13525 # func_dirname file append nondir_replacement
13526 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13527 # otherwise set result to NONDIR_REPLACEMENT.
13530 # Extract subdirectory from the argument.
13531 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13532 if test "X$func_dirname_result" = "X${1}"; then
13533 func_dirname_result="${3}"
13535 func_dirname_result="$func_dirname_result${2}"
13539 # func_basename file
13542 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13546 # func_stripname prefix suffix name
13547 # strip PREFIX and SUFFIX off of NAME.
13548 # PREFIX and SUFFIX must not contain globbing or regex special
13549 # characters, hashes, percent signs, but SUFFIX may contain a leading
13550 # dot (in which case that matches only a dot).
13551 # func_strip_suffix prefix name
13555 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13556 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13561 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13562 my_sed_long_arg='1s/^-[^=]*=//'
13567 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13568 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13574 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13577 # func_xform libobj-or-source
13580 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13583 # func_arith arithmetic-term...
13586 func_arith_result=`expr "$@"`
13590 # STRING may not start with a hyphen.
13593 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13599 case $lt_shell_append in
13601 cat << \_LT_EOF >> "$cfgfile"
13603 # func_append var value
13604 # Append VALUE to the end of shell variable VAR.
13612 cat << \_LT_EOF >> "$cfgfile"
13614 # func_append var value
13615 # Append VALUE to the end of shell variable VAR.
13626 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13627 || (rm -f "$cfgfile"; exit 1)
13629 mv -f "$cfgfile" "$ofile" ||
13630 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13641 ac_clean_files=$ac_clean_files_save
13643 test $ac_write_fail = 0 ||
13644 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13647 # configure is writing to config.log, and then calls config.status.
13648 # config.status does its own redirection, appending to config.log.
13649 # Unfortunately, on DOS this fails, as config.log is still kept open
13650 # by configure, so config.status won't be able to write to it; its
13651 # output is simply discarded. So we exec the FD to /dev/null,
13652 # effectively closing config.log, so it can be properly (re)opened and
13653 # appended to by config.status. When coming back to configure, we
13654 # need to make the FD available again.
13655 if test "$no_create" != yes; then
13657 ac_config_status_args=
13658 test "$silent" = yes &&
13659 ac_config_status_args="$ac_config_status_args --quiet"
13661 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13663 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13664 # would make configure fail if this is the last instruction.
13665 $ac_cs_success || as_fn_exit 1
13667 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13669 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}