2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXpm 3.5.9.
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
271 # Portably unset VAR.
274 { eval $1=; unset $1;}
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
298 # Create "$as_dir" as a directory, including parents if necessary.
303 -*) as_dir=./$as_dir;;
305 test -d "$as_dir" || eval $as_mkdir_p || {
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 test -d "$as_dir" && break
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
374 as_val=`expr "$@" || test $? -eq 1`
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
386 as_status=$1; test $as_status -eq 0 && as_status=1
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
468 # Exit status is that of the last command.
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
490 mkdir conf$$.dir 2>/dev/null
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
515 test -d ./-p && rmdir ./-p
519 if test -x / >/dev/null 2>&1; then
522 if ls -dL / >/dev/null 2>&1; then
529 if test -d "$1"; then
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
540 as_executable_p=$as_test_x
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548 SHELL=${CONFIG_SHELL-/bin/sh}
551 test -n "$DJDIR" || exec 7<&0 </dev/null
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
571 # Identity of this package.
572 PACKAGE_NAME='libXpm'
573 PACKAGE_TARNAME='libXpm'
574 PACKAGE_VERSION='3.5.9'
575 PACKAGE_STRING='libXpm 3.5.9'
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
693 MAINTAINER_MODE_FALSE
703 INSTALL_STRIP_PROGRAM
745 program_transform_name
758 enable_option_checking
759 enable_maintainer_mode
764 enable_dependency_tracking
767 enable_strict_compilation
772 ac_precious_vars='build_alias
788 # Initialize some variables set by options.
790 ac_init_version=false
791 ac_unrecognized_opts=
793 # The variables have the same names as the options, with
794 # dashes changed to underlines.
802 program_transform_name=s,x,x,
810 # Installation directory options.
811 # These are left unexpanded so users can "make install exec_prefix=/foo"
812 # and all the variables that are supposed to be based on exec_prefix
813 # by default will actually change.
814 # Use braces instead of parens because sh, perl, etc. also accept them.
815 # (The list follows the same order as the GNU Coding Standards.)
816 bindir='${exec_prefix}/bin'
817 sbindir='${exec_prefix}/sbin'
818 libexecdir='${exec_prefix}/libexec'
819 datarootdir='${prefix}/share'
820 datadir='${datarootdir}'
821 sysconfdir='${prefix}/etc'
822 sharedstatedir='${prefix}/com'
823 localstatedir='${prefix}/var'
824 includedir='${prefix}/include'
825 oldincludedir='/usr/include'
826 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827 infodir='${datarootdir}/info'
832 libdir='${exec_prefix}/lib'
833 localedir='${datarootdir}/locale'
834 mandir='${datarootdir}/man'
840 # If the previous option needs an argument, assign it.
841 if test -n "$ac_prev"; then
842 eval $ac_prev=\$ac_option
848 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 # Accept the important Cygnus configure options, so we can diagnose typos.
855 case $ac_dashdash$ac_option in
859 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864 -build | --build | --buil | --bui | --bu)
865 ac_prev=build_alias ;;
866 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867 build_alias=$ac_optarg ;;
869 -cache-file | --cache-file | --cache-fil | --cache-fi \
870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871 ac_prev=cache_file ;;
872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874 cache_file=$ac_optarg ;;
877 cache_file=config.cache ;;
879 -datadir | --datadir | --datadi | --datad)
881 -datadir=* | --datadir=* | --datadi=* | --datad=*)
882 datadir=$ac_optarg ;;
884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885 | --dataroo | --dataro | --datar)
886 ac_prev=datarootdir ;;
887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889 datarootdir=$ac_optarg ;;
891 -disable-* | --disable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error $? "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
905 eval enable_$ac_useropt=no ;;
907 -docdir | --docdir | --docdi | --doc | --do)
909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917 -enable-* | --enable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error $? "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
931 eval enable_$ac_useropt=\$ac_optarg ;;
933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935 | --exec | --exe | --ex)
936 ac_prev=exec_prefix ;;
937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939 | --exec=* | --exe=* | --ex=*)
940 exec_prefix=$ac_optarg ;;
942 -gas | --gas | --ga | --g)
943 # Obsolete; use --with-gas.
946 -help | --help | --hel | --he | -h)
948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949 ac_init_help=recursive ;;
950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951 ac_init_help=short ;;
953 -host | --host | --hos | --ho)
954 ac_prev=host_alias ;;
955 -host=* | --host=* | --hos=* | --ho=*)
956 host_alias=$ac_optarg ;;
958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 htmldir=$ac_optarg ;;
964 -includedir | --includedir | --includedi | --included | --include \
965 | --includ | --inclu | --incl | --inc)
966 ac_prev=includedir ;;
967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968 | --includ=* | --inclu=* | --incl=* | --inc=*)
969 includedir=$ac_optarg ;;
971 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974 infodir=$ac_optarg ;;
976 -libdir | --libdir | --libdi | --libd)
978 -libdir=* | --libdir=* | --libdi=* | --libd=*)
981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982 | --libexe | --libex | --libe)
983 ac_prev=libexecdir ;;
984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985 | --libexe=* | --libex=* | --libe=*)
986 libexecdir=$ac_optarg ;;
988 -localedir | --localedir | --localedi | --localed | --locale)
990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991 localedir=$ac_optarg ;;
993 -localstatedir | --localstatedir | --localstatedi | --localstated \
994 | --localstate | --localstat | --localsta | --localst | --locals)
995 ac_prev=localstatedir ;;
996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998 localstatedir=$ac_optarg ;;
1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003 mandir=$ac_optarg ;;
1005 -nfp | --nfp | --nf)
1006 # Obsolete; use --without-fp.
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n)
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019 | --oldin | --oldi | --old | --ol | --o)
1020 ac_prev=oldincludedir ;;
1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024 oldincludedir=$ac_optarg ;;
1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029 prefix=$ac_optarg ;;
1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032 | --program-pre | --program-pr | --program-p)
1033 ac_prev=program_prefix ;;
1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036 program_prefix=$ac_optarg ;;
1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039 | --program-suf | --program-su | --program-s)
1040 ac_prev=program_suffix ;;
1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043 program_suffix=$ac_optarg ;;
1045 -program-transform-name | --program-transform-name \
1046 | --program-transform-nam | --program-transform-na \
1047 | --program-transform-n | --program-transform- \
1048 | --program-transform | --program-transfor \
1049 | --program-transfo | --program-transf \
1050 | --program-trans | --program-tran \
1051 | --progr-tra | --program-tr | --program-t)
1052 ac_prev=program_transform_name ;;
1053 -program-transform-name=* | --program-transform-name=* \
1054 | --program-transform-nam=* | --program-transform-na=* \
1055 | --program-transform-n=* | --program-transform-=* \
1056 | --program-transform=* | --program-transfor=* \
1057 | --program-transfo=* | --program-transf=* \
1058 | --program-trans=* | --program-tran=* \
1059 | --progr-tra=* | --program-tr=* | --program-t=*)
1060 program_transform_name=$ac_optarg ;;
1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065 pdfdir=$ac_optarg ;;
1067 -psdir | --psdir | --psdi | --psd | --ps)
1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 sbindir=$ac_optarg ;;
1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084 | --sharedst | --shareds | --shared | --share | --shar \
1086 ac_prev=sharedstatedir ;;
1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 sharedstatedir=$ac_optarg ;;
1093 -site | --site | --sit)
1095 -site=* | --site=* | --sit=*)
1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101 srcdir=$ac_optarg ;;
1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104 | --syscon | --sysco | --sysc | --sys | --sy)
1105 ac_prev=sysconfdir ;;
1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108 sysconfdir=$ac_optarg ;;
1110 -target | --target | --targe | --targ | --tar | --ta | --t)
1111 ac_prev=target_alias ;;
1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113 target_alias=$ac_optarg ;;
1115 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118 -version | --version | --versio | --versi | --vers | -V)
1119 ac_init_version=: ;;
1122 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error $? "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1135 eval with_$ac_useropt=\$ac_optarg ;;
1137 -without-* | --without-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error $? "invalid package name: $ac_useropt"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1151 eval with_$ac_useropt=no ;;
1154 # Obsolete; use --with-x.
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1171 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1172 Try \`$0 --help' for more information"
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
1178 case $ac_envvar in #(
1179 '' | [0-9]* | *[!_$as_cr_alnum]* )
1180 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1186 # FIXME: should be removed in autoconf 3.0.
1187 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1196 if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 as_fn_error $? "missing argument to $ac_option"
1201 if test -n "$ac_unrecognized_opts"; then
1202 case $enable_option_checking in
1204 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1205 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1209 # Check all directory arguments for consistency.
1210 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211 datadir sysconfdir sharedstatedir localstatedir includedir \
1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213 libdir localedir mandir
1215 eval ac_val=\$$ac_var
1216 # Remove trailing slashes.
1219 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1220 eval $ac_var=\$ac_val;;
1222 # Be sure to have absolute directory names.
1224 [\\/$]* | ?:[\\/]* ) continue;;
1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1235 target=$target_alias
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1242 If a cross compiler is detected then cross compile mode will be used" >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251 test "$silent" = yes && exec 6>/dev/null
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 as_fn_error $? "working directory cannot be determined"
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 as_fn_error $? "pwd does not report name of working directory"
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
1265 # Try the directory containing this script, then the parent directory.
1266 ac_confdir=`$as_dirname -- "$as_myself" ||
1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$as_myself" : 'X\(//\)[^/]' \| \
1269 X"$as_myself" : 'X\(//\)$' \| \
1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271 $as_echo X"$as_myself" |
1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1294 ac_srcdir_defaulted=no
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314 for ac_var in $ac_precious_vars; do
1315 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_env_${ac_var}_value=\$${ac_var}
1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322 # Report the --help message.
1324 if test "$ac_init_help" = "long"; then
1325 # Omit some internal or obsolete options to make the list less imposing.
1326 # This message is too long to be a string in the A/UX 3.1 sh.
1328 \`configure' configures libXpm 3.5.9 to adapt to many kinds of systems.
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE. See below for descriptions of some of the useful variables.
1335 Defaults for the options are specified in brackets.
1338 -h, --help display this help and exit
1339 --help=short display options specific to this package
1340 --help=recursive display the short help of all the included packages
1341 -V, --version display version information and exit
1342 -q, --quiet, --silent do not print \`checking ...' messages
1343 --cache-file=FILE cache test results in FILE [disabled]
1344 -C, --config-cache alias for \`--cache-file=config.cache'
1345 -n, --no-create do not create output files
1346 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1348 Installation directories:
1349 --prefix=PREFIX install architecture-independent files in PREFIX
1350 [$ac_default_prefix]
1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1354 By default, \`make install' will install all the files in
1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357 for instance \`--prefix=\$HOME'.
1359 For better control, use the options below.
1361 Fine tuning of the installation directories:
1362 --bindir=DIR user executables [EPREFIX/bin]
1363 --sbindir=DIR system admin executables [EPREFIX/sbin]
1364 --libexecdir=DIR program executables [EPREFIX/libexec]
1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1368 --libdir=DIR object code libraries [EPREFIX/lib]
1369 --includedir=DIR C header files [PREFIX/include]
1370 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1373 --infodir=DIR info documentation [DATAROOTDIR/info]
1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1375 --mandir=DIR man documentation [DATAROOTDIR/man]
1376 --docdir=DIR documentation root [DATAROOTDIR/doc/libXpm]
1377 --htmldir=DIR html documentation [DOCDIR]
1378 --dvidir=DIR dvi documentation [DOCDIR]
1379 --pdfdir=DIR pdf documentation [DOCDIR]
1380 --psdir=DIR ps documentation [DOCDIR]
1386 --program-prefix=PREFIX prepend PREFIX to installed program names
1387 --program-suffix=SUFFIX append SUFFIX to installed program names
1388 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1391 --build=BUILD configure for building on BUILD [guessed]
1392 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive ) echo "Configuration of libXpm 3.5.9:";;
1403 --disable-option-checking ignore unrecognized --enable/--with options
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --enable-maintainer-mode enable make rules and dependencies not useful
1407 (and sometimes confusing) to the casual installer
1408 --enable-shared[=PKGS] build shared libraries [default=yes]
1409 --enable-static[=PKGS] build static libraries [default=yes]
1410 --enable-fast-install[=PKGS]
1411 optimize for fast installation [default=yes]
1412 --disable-dependency-tracking speeds up one-time build
1413 --enable-dependency-tracking do not reject slow dependency extractors
1414 --disable-libtool-lock avoid locking (might break parallel builds)
1415 --enable-strict-compilation
1416 Enable all warnings from compiler and make them
1417 errors (default: disabled)
1418 --enable-silent-rules less verbose build output (undo: `make V=1')
1419 --disable-silent-rules verbose build output (undo: `make V=0')
1420 --enable-stat-zfile Search for files with .Z & .gz extensions
1421 automatically [default=yes]
1424 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1425 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1426 --with-pic try to use only PIC/non-PIC objects [default=use
1428 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1429 --with-localedir=<path> Path to install message files in (default:
1432 Some influential environment variables:
1433 CC C compiler command
1434 CFLAGS C compiler flags
1435 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1436 nonstandard directory <lib dir>
1437 LIBS libraries to pass to the linker, e.g. -l<library>
1438 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439 you have headers in a nonstandard directory <include dir>
1441 PKG_CONFIG path to pkg-config utility
1442 XPM_CFLAGS C compiler flags for XPM, overriding pkg-config
1443 XPM_LIBS linker flags for XPM, overriding pkg-config
1444 SXPM_CFLAGS C compiler flags for SXPM, overriding pkg-config
1445 SXPM_LIBS linker flags for SXPM, overriding pkg-config
1447 Use these variables to override the choices made by `configure' or to help
1448 it to find libraries and programs with nonstandard names/locations.
1450 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1455 if test "$ac_init_help" = "recursive"; then
1456 # If there are subdirs, report their specific --help.
1457 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1458 test -d "$ac_dir" ||
1459 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1464 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1467 # A ".." for each directory in $ac_dir_suffix.
1468 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1469 case $ac_top_builddir_sub in
1470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474 ac_abs_top_builddir=$ac_pwd
1475 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476 # for backward compatibility:
1477 ac_top_builddir=$ac_top_build_prefix
1480 .) # We are building in place.
1482 ac_top_srcdir=$ac_top_builddir_sub
1483 ac_abs_top_srcdir=$ac_pwd ;;
1484 [\\/]* | ?:[\\/]* ) # Absolute name.
1485 ac_srcdir=$srcdir$ac_dir_suffix;
1486 ac_top_srcdir=$srcdir
1487 ac_abs_top_srcdir=$srcdir ;;
1489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490 ac_top_srcdir=$ac_top_build_prefix$srcdir
1491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1493 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495 cd "$ac_dir" || { ac_status=$?; continue; }
1496 # Check for guested configure.
1497 if test -f "$ac_srcdir/configure.gnu"; then
1499 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500 elif test -f "$ac_srcdir/configure"; then
1502 $SHELL "$ac_srcdir/configure" --help=recursive
1504 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1506 cd "$ac_pwd" || { ac_status=$?; break; }
1510 test -n "$ac_init_help" && exit $ac_status
1511 if $ac_init_version; then
1513 libXpm configure 3.5.9
1514 generated by GNU Autoconf 2.68
1516 Copyright (C) 2010 Free Software Foundation, Inc.
1517 This configure script is free software; the Free Software Foundation
1518 gives unlimited permission to copy, distribute and modify it.
1523 ## ------------------------ ##
1524 ## Autoconf initialization. ##
1525 ## ------------------------ ##
1527 # ac_fn_c_try_compile LINENO
1528 # --------------------------
1529 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1530 ac_fn_c_try_compile ()
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 rm -f conftest.$ac_objext
1534 if { { ac_try="$ac_compile"
1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537 *) ac_try_echo=$ac_try;;
1539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540 $as_echo "$ac_try_echo"; } >&5
1541 (eval "$ac_compile") 2>conftest.err
1543 if test -s conftest.err; then
1544 grep -v '^ *+' conftest.err >conftest.er1
1545 cat conftest.er1 >&5
1546 mv -f conftest.er1 conftest.err
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; } && {
1550 test -z "$ac_c_werror_flag" ||
1551 test ! -s conftest.err
1552 } && test -s conftest.$ac_objext; then :
1555 $as_echo "$as_me: failed program was:" >&5
1556 sed 's/^/| /' conftest.$ac_ext >&5
1560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1561 as_fn_set_status $ac_retval
1563 } # ac_fn_c_try_compile
1565 # ac_fn_c_try_link LINENO
1566 # -----------------------
1567 # Try to link conftest.$ac_ext, and return whether this succeeded.
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 rm -f conftest.$ac_objext conftest$ac_exeext
1572 if { { ac_try="$ac_link"
1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575 *) ac_try_echo=$ac_try;;
1577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578 $as_echo "$ac_try_echo"; } >&5
1579 (eval "$ac_link") 2>conftest.err
1581 if test -s conftest.err; then
1582 grep -v '^ *+' conftest.err >conftest.er1
1583 cat conftest.er1 >&5
1584 mv -f conftest.er1 conftest.err
1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587 test $ac_status = 0; } && {
1588 test -z "$ac_c_werror_flag" ||
1589 test ! -s conftest.err
1590 } && test -s conftest$ac_exeext && {
1591 test "$cross_compiling" = yes ||
1592 $as_test_x conftest$ac_exeext
1596 $as_echo "$as_me: failed program was:" >&5
1597 sed 's/^/| /' conftest.$ac_ext >&5
1601 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1602 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1603 # interfere with the next link command; also delete a directory that is
1604 # left behind by Apple's compiler. We do this before executing the actions.
1605 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status $ac_retval
1609 } # ac_fn_c_try_link
1611 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1612 # -------------------------------------------------------
1613 # Tests whether HEADER exists and can be compiled using the include files in
1614 # INCLUDES, setting the cache variable VAR accordingly.
1615 ac_fn_c_check_header_compile ()
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1619 $as_echo_n "checking for $2... " >&6; }
1620 if eval \${$3+:} false; then :
1621 $as_echo_n "(cached) " >&6
1623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624 /* end confdefs.h. */
1628 if ac_fn_c_try_compile "$LINENO"; then :
1633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1637 $as_echo "$ac_res" >&6; }
1638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 } # ac_fn_c_check_header_compile
1642 # ac_fn_c_try_cpp LINENO
1643 # ----------------------
1644 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 if { { ac_try="$ac_cpp conftest.$ac_ext"
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } > conftest.i && {
1664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1665 test ! -s conftest.err
1669 $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675 as_fn_set_status $ac_retval
1679 # ac_fn_c_try_run LINENO
1680 # ----------------------
1681 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1682 # that executables *can* be run.
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 if { { ac_try="$ac_link"
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_link") 2>&5
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1697 { { case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_try") 2>&5
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; }; }; then :
1709 $as_echo "$as_me: program exited with status $ac_status" >&5
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1713 ac_retval=$ac_status
1715 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717 as_fn_set_status $ac_retval
1721 # ac_fn_c_check_func LINENO FUNC VAR
1722 # ----------------------------------
1723 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1724 ac_fn_c_check_func ()
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728 $as_echo_n "checking for $2... " >&6; }
1729 if eval \${$3+:} false; then :
1730 $as_echo_n "(cached) " >&6
1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h. */
1734 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1736 #define $2 innocuous_$2
1738 /* System header to define __stub macros and hopefully few prototypes,
1739 which can conflict with char $2 (); below.
1740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1741 <limits.h> exists even on freestanding compilers. */
1744 # include <limits.h>
1746 # include <assert.h>
1751 /* Override any GCC internal prototype to avoid an error.
1752 Use char because int might match the return type of a GCC
1753 builtin and then its argument prototype would still apply. */
1758 /* The GNU C library defines this for functions which it implements
1759 to always fail with ENOSYS. Some functions are actually named
1760 something starting with __ and the normal name is an alias. */
1761 #if defined __stub_$2 || defined __stub___$2
1773 if ac_fn_c_try_link "$LINENO"; then :
1778 rm -f core conftest.err conftest.$ac_objext \
1779 conftest$ac_exeext conftest.$ac_ext
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783 $as_echo "$ac_res" >&6; }
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786 } # ac_fn_c_check_func
1788 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1789 # ---------------------------------------------
1790 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1792 ac_fn_c_check_decl ()
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 as_decl_name=`echo $2|sed 's/ *(.*//'`
1796 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1798 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1799 if eval \${$3+:} false; then :
1800 $as_echo_n "(cached) " >&6
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1808 #ifndef $as_decl_name
1810 (void) $as_decl_use;
1812 (void) $as_decl_name;
1820 if ac_fn_c_try_compile "$LINENO"; then :
1825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 } # ac_fn_c_check_decl
1833 cat >config.log <<_ACEOF
1834 This file contains any messages produced by compilers while
1835 running configure, to aid debugging if configure makes a mistake.
1837 It was created by libXpm $as_me 3.5.9, which was
1838 generated by GNU Autoconf 2.68. Invocation command line was
1850 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1851 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1852 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1853 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1854 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1856 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1857 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1859 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1860 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1861 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1862 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1863 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1864 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1865 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 test -z "$as_dir" && as_dir=.
1874 $as_echo "PATH: $as_dir"
1890 # Keep a trace of the command line.
1891 # Strip out --no-create and --no-recursion so they do not pile up.
1892 # Strip out --silent because we don't want to record it for future runs.
1893 # Also quote any args containing shell meta-characters.
1894 # Make two passes to allow for proper duplicate-argument suppression.
1898 ac_must_keep_next=false
1904 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1905 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1906 | -silent | --silent | --silen | --sile | --sil)
1909 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1912 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1914 as_fn_append ac_configure_args1 " '$ac_arg'"
1915 if test $ac_must_keep_next = true; then
1916 ac_must_keep_next=false # Got value, back to normal.
1919 *=* | --config-cache | -C | -disable-* | --disable-* \
1920 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1921 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1922 | -with-* | --with-* | -without-* | --without-* | --x)
1923 case "$ac_configure_args0 " in
1924 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1927 -* ) ac_must_keep_next=true ;;
1930 as_fn_append ac_configure_args " '$ac_arg'"
1935 { ac_configure_args0=; unset ac_configure_args0;}
1936 { ac_configure_args1=; unset ac_configure_args1;}
1938 # When interrupted or exit'd, cleanup temporary files, and complete
1939 # config.log. We remove comments because anyway the quotes in there
1940 # would cause problems or look ugly.
1941 # WARNING: Use '\'' to represent an apostrophe within the trap.
1942 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1943 trap 'exit_status=$?
1944 # Save into config.log some information that might help in debugging.
1948 $as_echo "## ---------------- ##
1949 ## Cache variables. ##
1950 ## ---------------- ##"
1952 # The following way of writing the cache mishandles newlines in values,
1954 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1955 eval ac_val=\$$ac_var
1959 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1960 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1963 _ | IFS | as_nl) ;; #(
1964 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1965 *) { eval $ac_var=; unset $ac_var;} ;;
1970 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1971 *${as_nl}ac_space=\ *)
1973 "s/'\''/'\''\\\\'\'''\''/g;
1974 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1977 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1984 $as_echo "## ----------------- ##
1985 ## Output variables. ##
1986 ## ----------------- ##"
1988 for ac_var in $ac_subst_vars
1990 eval ac_val=\$$ac_var
1992 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1994 $as_echo "$ac_var='\''$ac_val'\''"
1998 if test -n "$ac_subst_files"; then
1999 $as_echo "## ------------------- ##
2000 ## File substitutions. ##
2001 ## ------------------- ##"
2003 for ac_var in $ac_subst_files
2005 eval ac_val=\$$ac_var
2007 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2009 $as_echo "$ac_var='\''$ac_val'\''"
2014 if test -s confdefs.h; then
2015 $as_echo "## ----------- ##
2022 test "$ac_signal" != 0 &&
2023 $as_echo "$as_me: caught signal $ac_signal"
2024 $as_echo "$as_me: exit $exit_status"
2026 rm -f core *.core core.conftest.* &&
2027 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2030 for ac_signal in 1 2 13 15; do
2031 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2035 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2036 rm -f -r conftest* confdefs.h
2038 $as_echo "/* confdefs.h */" > confdefs.h
2040 # Predefined preprocessor variables.
2042 cat >>confdefs.h <<_ACEOF
2043 #define PACKAGE_NAME "$PACKAGE_NAME"
2046 cat >>confdefs.h <<_ACEOF
2047 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2050 cat >>confdefs.h <<_ACEOF
2051 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2054 cat >>confdefs.h <<_ACEOF
2055 #define PACKAGE_STRING "$PACKAGE_STRING"
2058 cat >>confdefs.h <<_ACEOF
2059 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_URL "$PACKAGE_URL"
2067 # Let the site file select an alternate cache file if it wants to.
2068 # Prefer an explicitly selected file to automatically selected ones.
2071 if test -n "$CONFIG_SITE"; then
2072 # We do not want a PATH search for config.site.
2073 case $CONFIG_SITE in #((
2074 -*) ac_site_file1=./$CONFIG_SITE;;
2075 */*) ac_site_file1=$CONFIG_SITE;;
2076 *) ac_site_file1=./$CONFIG_SITE;;
2078 elif test "x$prefix" != xNONE; then
2079 ac_site_file1=$prefix/share/config.site
2080 ac_site_file2=$prefix/etc/config.site
2082 ac_site_file1=$ac_default_prefix/share/config.site
2083 ac_site_file2=$ac_default_prefix/etc/config.site
2085 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2087 test "x$ac_site_file" = xNONE && continue
2088 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2090 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2091 sed 's/^/| /' "$ac_site_file" >&5
2093 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2095 as_fn_error $? "failed to load site script $ac_site_file
2096 See \`config.log' for more details" "$LINENO" 5; }
2100 if test -r "$cache_file"; then
2101 # Some versions of bash will fail to source /dev/null (special files
2102 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2103 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2105 $as_echo "$as_me: loading cache $cache_file" >&6;}
2107 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2108 *) . "./$cache_file";;
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2113 $as_echo "$as_me: creating cache $cache_file" >&6;}
2117 # Check that the precious variables saved in the cache have kept the same
2119 ac_cache_corrupted=false
2120 for ac_var in $ac_precious_vars; do
2121 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2122 eval ac_new_set=\$ac_env_${ac_var}_set
2123 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2124 eval ac_new_val=\$ac_env_${ac_var}_value
2125 case $ac_old_set,$ac_new_set in
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2128 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2129 ac_cache_corrupted=: ;;
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2132 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2133 ac_cache_corrupted=: ;;
2136 if test "x$ac_old_val" != "x$ac_new_val"; then
2137 # differences in whitespace do not lead to failure.
2138 ac_old_val_w=`echo x $ac_old_val`
2139 ac_new_val_w=`echo x $ac_new_val`
2140 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2142 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2143 ac_cache_corrupted=:
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2146 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2147 eval $ac_var=\$ac_old_val
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2150 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2152 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2155 # Pass precious variables to config.status.
2156 if test "$ac_new_set" = set; then
2158 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2159 *) ac_arg=$ac_var=$ac_new_val ;;
2161 case " $ac_configure_args " in
2162 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2163 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2167 if $ac_cache_corrupted; then
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2171 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2172 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2174 ## -------------------- ##
2175 ## Main body of script. ##
2176 ## -------------------- ##
2179 ac_cpp='$CPP $CPPFLAGS'
2180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2187 ac_config_headers="$ac_config_headers config.h"
2190 # Initialize Automake
2191 am__api_version='1.11'
2194 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2195 if test -f "$ac_dir/install-sh"; then
2197 ac_install_sh="$ac_aux_dir/install-sh -c"
2199 elif test -f "$ac_dir/install.sh"; then
2201 ac_install_sh="$ac_aux_dir/install.sh -c"
2203 elif test -f "$ac_dir/shtool"; then
2205 ac_install_sh="$ac_aux_dir/shtool install -c"
2209 if test -z "$ac_aux_dir"; then
2210 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2213 # These three variables are undocumented and unsupported,
2214 # and are intended to be withdrawn in a future Autoconf release.
2215 # They can cause serious problems if a builder's source tree is in a directory
2216 # whose full name contains unusual characters.
2217 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2218 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2219 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2222 # Find a good install program. We prefer a C program (faster),
2223 # so one script is as good as another. But avoid the broken or
2224 # incompatible versions:
2225 # SysV /etc/install, /usr/sbin/install
2226 # SunOS /usr/etc/install
2227 # IRIX /sbin/install
2229 # AmigaOS /C/install, which installs bootblocks on floppy discs
2230 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2231 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2232 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2233 # OS/2's system install, which has a completely different semantic
2234 # ./install, which can be erroneously created by make from ./install.sh.
2235 # Reject install programs that cannot install multiple files.
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2237 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2238 if test -z "$INSTALL"; then
2239 if ${ac_cv_path_install+:} false; then :
2240 $as_echo_n "(cached) " >&6
2242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 test -z "$as_dir" && as_dir=.
2247 # Account for people who put trailing slashes in PATH elements.
2248 case $as_dir/ in #((
2249 ./ | .// | /[cC]/* | \
2250 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2251 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2254 # OSF1 and SCO ODT 3.0 have their own names for install.
2255 # Don't use installbsd from OSF since it installs stuff as root
2257 for ac_prog in ginstall scoinst install; do
2258 for ac_exec_ext in '' $ac_executable_extensions; do
2259 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2260 if test $ac_prog = install &&
2261 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2262 # AIX install. It has an incompatible calling convention.
2264 elif test $ac_prog = install &&
2265 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2266 # program-specific install script used by HP pwplus--don't use.
2269 rm -rf conftest.one conftest.two conftest.dir
2270 echo one > conftest.one
2271 echo two > conftest.two
2273 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2274 test -s conftest.one && test -s conftest.two &&
2275 test -s conftest.dir/conftest.one &&
2276 test -s conftest.dir/conftest.two
2278 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2291 rm -rf conftest.one conftest.two conftest.dir
2294 if test "${ac_cv_path_install+set}" = set; then
2295 INSTALL=$ac_cv_path_install
2297 # As a last resort, use the slow shell script. Don't cache a
2298 # value for INSTALL within a source directory, because that will
2299 # break other packages using the cache if that directory is
2300 # removed, or if the value is a relative name.
2301 INSTALL=$ac_install_sh
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2305 $as_echo "$INSTALL" >&6; }
2307 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2308 # It thinks the first close brace ends the variable substitution.
2309 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2311 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2313 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2316 $as_echo_n "checking whether build environment is sane... " >&6; }
2319 echo timestamp > conftest.file
2320 # Reject unsafe characters in $srcdir or the absolute working directory
2321 # name. Accept space and tab only in the latter.
2325 *[\\\"\#\$\&\'\`$am_lf]*)
2326 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2329 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2330 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2333 # Do `set' in a subshell so we don't clobber the current shell's
2334 # arguments. Must try -L first in case configure is actually a
2335 # symlink; some systems play weird games with the mod time of symlinks
2336 # (eg FreeBSD returns the mod time of the symlink's containing
2339 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2340 if test "$*" = "X"; then
2342 set X `ls -t "$srcdir/configure" conftest.file`
2345 if test "$*" != "X $srcdir/configure conftest.file" \
2346 && test "$*" != "X conftest.file $srcdir/configure"; then
2348 # If neither matched, then we have a broken ls. This can happen
2349 # if, for instance, CONFIG_SHELL is bash and it inherits a
2350 # broken ls alias from the environment. This has actually
2351 # happened. Such a system could not be considered "sane".
2352 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2353 alias in your environment" "$LINENO" 5
2356 test "$2" = conftest.file
2362 as_fn_error $? "newly created file is older than distributed files!
2363 Check your system clock" "$LINENO" 5
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2366 $as_echo "yes" >&6; }
2367 test "$program_prefix" != NONE &&
2368 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2369 # Use a double $ so make ignores it.
2370 test "$program_suffix" != NONE &&
2371 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2372 # Double any \ or $.
2373 # By default was `s,x,x', remove it if useless.
2374 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2375 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2377 # expand $ac_aux_dir to an absolute path
2378 am_aux_dir=`cd $ac_aux_dir && pwd`
2380 if test x"${MISSING+set}" != xset; then
2383 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2385 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2388 # Use eval to expand $SHELL
2389 if eval "$MISSING --run true"; then
2390 am_missing_run="$MISSING --run "
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2394 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2397 if test x"${install_sh}" != xset; then
2400 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2402 install_sh="\${SHELL} $am_aux_dir/install-sh"
2406 # Installed binaries are usually stripped using `strip' when the user
2407 # run `make install-strip'. However `strip' might not be the right
2408 # tool to use in cross-compilation environments, therefore Automake
2409 # will honor the `STRIP' environment variable to overrule this program.
2410 if test "$cross_compiling" != no; then
2411 if test -n "$ac_tool_prefix"; then
2412 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2413 set dummy ${ac_tool_prefix}strip; ac_word=$2
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2415 $as_echo_n "checking for $ac_word... " >&6; }
2416 if ${ac_cv_prog_STRIP+:} false; then :
2417 $as_echo_n "(cached) " >&6
2419 if test -n "$STRIP"; then
2420 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426 test -z "$as_dir" && as_dir=.
2427 for ac_exec_ext in '' $ac_executable_extensions; do
2428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2429 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2439 STRIP=$ac_cv_prog_STRIP
2440 if test -n "$STRIP"; then
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2442 $as_echo "$STRIP" >&6; }
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2445 $as_echo "no" >&6; }
2450 if test -z "$ac_cv_prog_STRIP"; then
2452 # Extract the first word of "strip", so it can be a program name with args.
2453 set dummy strip; ac_word=$2
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2455 $as_echo_n "checking for $ac_word... " >&6; }
2456 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2457 $as_echo_n "(cached) " >&6
2459 if test -n "$ac_ct_STRIP"; then
2460 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 test -z "$as_dir" && as_dir=.
2467 for ac_exec_ext in '' $ac_executable_extensions; do
2468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2469 ac_cv_prog_ac_ct_STRIP="strip"
2470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2480 if test -n "$ac_ct_STRIP"; then
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2482 $as_echo "$ac_ct_STRIP" >&6; }
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2485 $as_echo "no" >&6; }
2488 if test "x$ac_ct_STRIP" = x; then
2491 case $cross_compiling:$ac_tool_warned in
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2495 ac_tool_warned=yes ;;
2500 STRIP="$ac_cv_prog_STRIP"
2504 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2507 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2508 if test -z "$MKDIR_P"; then
2509 if ${ac_cv_path_mkdir+:} false; then :
2510 $as_echo_n "(cached) " >&6
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2516 test -z "$as_dir" && as_dir=.
2517 for ac_prog in mkdir gmkdir; do
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2520 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2521 'mkdir (GNU coreutils) '* | \
2522 'mkdir (coreutils) '* | \
2523 'mkdir (fileutils) '4.1*)
2524 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2534 test -d ./--version && rmdir ./--version
2535 if test "${ac_cv_path_mkdir+set}" = set; then
2536 MKDIR_P="$ac_cv_path_mkdir -p"
2538 # As a last resort, use the slow shell script. Don't cache a
2539 # value for MKDIR_P within a source directory, because that will
2540 # break other packages using the cache if that directory is
2541 # removed, or if the value is a relative name.
2542 MKDIR_P="$ac_install_sh -d"
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2546 $as_echo "$MKDIR_P" >&6; }
2550 [\\/$]* | ?:[\\/]*) ;;
2551 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2554 for ac_prog in gawk mawk nawk awk
2556 # Extract the first word of "$ac_prog", so it can be a program name with args.
2557 set dummy $ac_prog; ac_word=$2
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2559 $as_echo_n "checking for $ac_word... " >&6; }
2560 if ${ac_cv_prog_AWK+:} false; then :
2561 $as_echo_n "(cached) " >&6
2563 if test -n "$AWK"; then
2564 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573 ac_cv_prog_AWK="$ac_prog"
2574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 if test -n "$AWK"; then
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2586 $as_echo "$AWK" >&6; }
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2589 $as_echo "no" >&6; }
2593 test -n "$AWK" && break
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2597 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2599 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2600 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2601 $as_echo_n "(cached) " >&6
2603 cat >conftest.make <<\_ACEOF
2606 @echo '@@@%%%=$(MAKE)=@@@%%%'
2608 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2609 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2611 eval ac_cv_prog_make_${ac_make}_set=yes;;
2613 eval ac_cv_prog_make_${ac_make}_set=no;;
2617 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2619 $as_echo "yes" >&6; }
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2623 $as_echo "no" >&6; }
2624 SET_MAKE="MAKE=${MAKE-make}"
2627 rm -rf .tst 2>/dev/null
2628 mkdir .tst 2>/dev/null
2629 if test -d .tst; then
2634 rmdir .tst 2>/dev/null
2636 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2637 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2638 # is not polluted with repeated "-I."
2639 am__isrc=' -I$(srcdir)'
2640 # test to see if srcdir already configured
2641 if test -f $srcdir/config.status; then
2642 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2646 # test whether we have cygpath
2647 if test -z "$CYGPATH_W"; then
2648 if (cygpath --version) >/dev/null 2>/dev/null; then
2649 CYGPATH_W='cygpath -w'
2656 # Define the identity of the package.
2661 cat >>confdefs.h <<_ACEOF
2662 #define PACKAGE "$PACKAGE"
2666 cat >>confdefs.h <<_ACEOF
2667 #define VERSION "$VERSION"
2670 # Some tools Automake needs.
2672 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2675 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2678 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2681 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2684 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2686 # We need awk for the "check" target. The system "awk" is bad on
2688 # Always define AMTAR for backward compatibility.
2690 AMTAR=${AMTAR-"${am_missing_run}tar"}
2692 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2700 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2701 # Check whether --enable-maintainer-mode was given.
2702 if test "${enable_maintainer_mode+set}" = set; then :
2703 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2705 USE_MAINTAINER_MODE=no
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2709 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2710 if test $USE_MAINTAINER_MODE = yes; then
2711 MAINTAINER_MODE_TRUE=
2712 MAINTAINER_MODE_FALSE='#'
2714 MAINTAINER_MODE_TRUE='#'
2715 MAINTAINER_MODE_FALSE=
2718 MAINT=$MAINTAINER_MODE_TRUE
2722 # Initialize libtool
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2726 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2731 macro_version='2.2.10'
2732 macro_revision='1.3175'
2746 ltmain="$ac_aux_dir/ltmain.sh"
2748 # Make sure we can run config.sub.
2749 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2750 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2753 $as_echo_n "checking build system type... " >&6; }
2754 if ${ac_cv_build+:} false; then :
2755 $as_echo_n "(cached) " >&6
2757 ac_build_alias=$build_alias
2758 test "x$ac_build_alias" = x &&
2759 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2760 test "x$ac_build_alias" = x &&
2761 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2762 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2763 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2767 $as_echo "$ac_cv_build" >&6; }
2768 case $ac_cv_build in
2770 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2773 ac_save_IFS=$IFS; IFS='-'
2779 # Remember, the first character of IFS is used to create $*,
2780 # except with old shells:
2783 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2787 $as_echo_n "checking host system type... " >&6; }
2788 if ${ac_cv_host+:} false; then :
2789 $as_echo_n "(cached) " >&6
2791 if test "x$host_alias" = x; then
2792 ac_cv_host=$ac_cv_build
2794 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2795 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2800 $as_echo "$ac_cv_host" >&6; }
2803 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2806 ac_save_IFS=$IFS; IFS='-'
2812 # Remember, the first character of IFS is used to create $*,
2813 # except with old shells:
2816 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2819 # Backslashify metacharacters that are still active within
2820 # double-quoted strings.
2821 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2823 # Same as above, but do not quote variable references.
2824 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2826 # Sed substitution to delay expansion of an escaped shell variable in a
2827 # double_quote_subst'ed string.
2828 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2830 # Sed substitution to delay expansion of an escaped single quote.
2831 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2833 # Sed substitution to avoid accidental globbing in evaled expressions
2834 no_glob_subst='s/\*/\\\*/g'
2836 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2837 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2838 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2841 $as_echo_n "checking how to print strings... " >&6; }
2842 # Test print first, because it will be a builtin if present.
2843 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
2844 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2846 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2849 # Use this function as a fallback that always works.
2850 func_fallback_echo ()
2852 eval 'cat <<_LTECHO_EOF
2856 ECHO='func_fallback_echo'
2859 # func_echo_all arg...
2860 # Invoke $ECHO with all args, space-separated.
2867 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2868 $as_echo "printf" >&6; } ;;
2869 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2870 $as_echo "print -r" >&6; } ;;
2871 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2872 $as_echo "cat" >&6; } ;;
2888 DEPDIR="${am__leading_dot}deps"
2890 ac_config_commands="$ac_config_commands depfiles"
2893 am_make=${MAKE-make}
2894 cat > confinc << 'END'
2896 @echo this is the am__doit target
2899 # If we don't find an include directive, just comment out the code.
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2901 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2905 # First try GNU make style include.
2906 echo "include confinc" > confmf
2907 # Ignore all kinds of additional output from `make'.
2908 case `$am_make -s -f confmf 2> /dev/null` in #(
2909 *the\ am__doit\ target*)
2915 # Now try BSD make style include.
2916 if test "$am__include" = "#"; then
2917 echo '.include "confinc"' > confmf
2918 case `$am_make -s -f confmf 2> /dev/null` in #(
2919 *the\ am__doit\ target*)
2920 am__include=.include
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2929 $as_echo "$_am_result" >&6; }
2930 rm -f confinc confmf
2932 # Check whether --enable-dependency-tracking was given.
2933 if test "${enable_dependency_tracking+set}" = set; then :
2934 enableval=$enable_dependency_tracking;
2937 if test "x$enable_dependency_tracking" != xno; then
2938 am_depcomp="$ac_aux_dir/depcomp"
2941 if test "x$enable_dependency_tracking" != xno; then
2951 ac_cpp='$CPP $CPPFLAGS'
2952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2955 if test -n "$ac_tool_prefix"; then
2956 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2957 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if ${ac_cv_prog_CC+:} false; then :
2961 $as_echo_n "(cached) " >&6
2963 if test -n "$CC"; then
2964 ac_cv_prog_CC="$CC" # Let the user override the test.
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2973 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 if test -n "$CC"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2986 $as_echo "$CC" >&6; }
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2994 if test -z "$ac_cv_prog_CC"; then
2996 # Extract the first word of "gcc", so it can be a program name with args.
2997 set dummy gcc; ac_word=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3001 $as_echo_n "(cached) " >&6
3003 if test -n "$ac_ct_CC"; then
3004 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 test -z "$as_dir" && as_dir=.
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3013 ac_cv_prog_ac_ct_CC="gcc"
3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3024 if test -n "$ac_ct_CC"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3026 $as_echo "$ac_ct_CC" >&6; }
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3032 if test "x$ac_ct_CC" = x; then
3035 case $cross_compiling:$ac_tool_warned in
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3039 ac_tool_warned=yes ;;
3047 if test -z "$CC"; then
3048 if test -n "$ac_tool_prefix"; then
3049 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3050 set dummy ${ac_tool_prefix}cc; ac_word=$2
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 $as_echo_n "checking for $ac_word... " >&6; }
3053 if ${ac_cv_prog_CC+:} false; then :
3054 $as_echo_n "(cached) " >&6
3056 if test -n "$CC"; then
3057 ac_cv_prog_CC="$CC" # Let the user override the test.
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 test -z "$as_dir" && as_dir=.
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066 ac_cv_prog_CC="${ac_tool_prefix}cc"
3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 if test -n "$CC"; then
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3079 $as_echo "$CC" >&6; }
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 $as_echo "no" >&6; }
3088 if test -z "$CC"; then
3089 # Extract the first word of "cc", so it can be a program name with args.
3090 set dummy cc; ac_word=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if ${ac_cv_prog_CC+:} false; then :
3094 $as_echo_n "(cached) " >&6
3096 if test -n "$CC"; then
3097 ac_cv_prog_CC="$CC" # Let the user override the test.
3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 test -z "$as_dir" && as_dir=.
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3107 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3108 ac_prog_rejected=yes
3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 if test $ac_prog_rejected = yes; then
3120 # We found a bogon in the path, so make sure we never use it.
3121 set dummy $ac_cv_prog_CC
3123 if test $# != 0; then
3124 # We chose a different compiler from the bogus one.
3125 # However, it has the same basename, so the bogon will be chosen
3126 # first if we set CC to just the basename; use the full file name.
3128 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3134 if test -n "$CC"; then
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3136 $as_echo "$CC" >&6; }
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139 $as_echo "no" >&6; }
3144 if test -z "$CC"; then
3145 if test -n "$ac_tool_prefix"; then
3146 for ac_prog in cl.exe
3148 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3149 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151 $as_echo_n "checking for $ac_word... " >&6; }
3152 if ${ac_cv_prog_CC+:} false; then :
3153 $as_echo_n "(cached) " >&6
3155 if test -n "$CC"; then
3156 ac_cv_prog_CC="$CC" # Let the user override the test.
3158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 test -z "$as_dir" && as_dir=.
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3165 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 if test -n "$CC"; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3178 $as_echo "$CC" >&6; }
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181 $as_echo "no" >&6; }
3185 test -n "$CC" && break
3188 if test -z "$CC"; then
3190 for ac_prog in cl.exe
3192 # Extract the first word of "$ac_prog", so it can be a program name with args.
3193 set dummy $ac_prog; ac_word=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3197 $as_echo_n "(cached) " >&6
3199 if test -n "$ac_ct_CC"; then
3200 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 test -z "$as_dir" && as_dir=.
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3209 ac_cv_prog_ac_ct_CC="$ac_prog"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3220 if test -n "$ac_ct_CC"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3222 $as_echo "$ac_ct_CC" >&6; }
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3229 test -n "$ac_ct_CC" && break
3232 if test "x$ac_ct_CC" = x; then
3235 case $cross_compiling:$ac_tool_warned in
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3239 ac_tool_warned=yes ;;
3248 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3250 as_fn_error $? "no acceptable C compiler found in \$PATH
3251 See \`config.log' for more details" "$LINENO" 5; }
3253 # Provide some information about the compiler.
3254 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3257 for ac_option in --version -v -V -qversion; do
3258 { { ac_try="$ac_compiler $ac_option >&5"
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3267 if test -s conftest.err; then
3269 ... rest of stderr output deleted ...
3270 10q' conftest.err >conftest.er1
3271 cat conftest.er1 >&5
3273 rm -f conftest.er1 conftest.err
3274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275 test $ac_status = 0; }
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h. */
3289 ac_clean_files_save=$ac_clean_files
3290 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3291 # Try to create an executable without -o first, disregard a.out.
3292 # It will help us diagnose broken compilers, and finding out an intuition
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3295 $as_echo_n "checking whether the C compiler works... " >&6; }
3296 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3298 # The possible output files:
3299 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3302 for ac_file in $ac_files
3305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3306 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3311 if { { ac_try="$ac_link_default"
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317 $as_echo "$ac_try_echo"; } >&5
3318 (eval "$ac_link_default") 2>&5
3320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321 test $ac_status = 0; }; then :
3322 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3323 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3324 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3325 # so that the user can short-circuit this test for compilers unknown to
3327 for ac_file in $ac_files ''
3329 test -f "$ac_file" || continue
3331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3334 # We found the default executable, but exeext='' is most
3338 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3340 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3342 # We set ac_cv_exeext here because the later test for it is not
3343 # safe: cross compilers may not add the suffix if given an `-o'
3344 # argument, so we may need to know it at that point already.
3345 # Even if this section looks crufty: it has the advantage of
3352 test "$ac_cv_exeext" = no && ac_cv_exeext=
3357 if test -z "$ac_file"; then :
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3360 $as_echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error 77 "C compiler cannot create executables
3366 See \`config.log' for more details" "$LINENO" 5; }
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3369 $as_echo "yes" >&6; }
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3372 $as_echo_n "checking for C compiler default output file name... " >&6; }
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3374 $as_echo "$ac_file" >&6; }
3375 ac_exeext=$ac_cv_exeext
3377 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3378 ac_clean_files=$ac_clean_files_save
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3380 $as_echo_n "checking for suffix of executables... " >&6; }
3381 if { { ac_try="$ac_link"
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387 $as_echo "$ac_try_echo"; } >&5
3388 (eval "$ac_link") 2>&5
3390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391 test $ac_status = 0; }; then :
3392 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3393 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3394 # work properly (i.e., refer to `conftest.exe'), while it won't with
3396 for ac_file in conftest.exe conftest conftest.*; do
3397 test -f "$ac_file" || continue
3399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3400 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3409 See \`config.log' for more details" "$LINENO" 5; }
3411 rm -f conftest conftest$ac_cv_exeext
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3413 $as_echo "$ac_cv_exeext" >&6; }
3415 rm -f conftest.$ac_ext
3416 EXEEXT=$ac_cv_exeext
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h. */
3424 FILE *f = fopen ("conftest.out", "w");
3425 return ferror (f) || fclose (f) != 0;
3431 ac_clean_files="$ac_clean_files conftest.out"
3432 # Check that the compiler produces executables we can run. If not, either
3433 # the compiler is broken, or we cross compile.
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3435 $as_echo_n "checking whether we are cross compiling... " >&6; }
3436 if test "$cross_compiling" != yes; then
3437 { { ac_try="$ac_link"
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443 $as_echo "$ac_try_echo"; } >&5
3444 (eval "$ac_link") 2>&5
3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447 test $ac_status = 0; }
3448 if { ac_try='./conftest$ac_cv_exeext'
3449 { { case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454 $as_echo "$ac_try_echo"; } >&5
3455 (eval "$ac_try") 2>&5
3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458 test $ac_status = 0; }; }; then
3461 if test "$cross_compiling" = maybe; then
3464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466 as_fn_error $? "cannot run C compiled programs.
3467 If you meant to cross compile, use \`--host'.
3468 See \`config.log' for more details" "$LINENO" 5; }
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3473 $as_echo "$cross_compiling" >&6; }
3475 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3476 ac_clean_files=$ac_clean_files_save
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3478 $as_echo_n "checking for suffix of object files... " >&6; }
3479 if ${ac_cv_objext+:} false; then :
3480 $as_echo_n "(cached) " >&6
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3493 rm -f conftest.o conftest.obj
3494 if { { ac_try="$ac_compile"
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3500 $as_echo "$ac_try_echo"; } >&5
3501 (eval "$ac_compile") 2>&5
3503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504 test $ac_status = 0; }; then :
3505 for ac_file in conftest.o conftest.obj conftest.*; do
3506 test -f "$ac_file" || continue;
3508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3509 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3514 $as_echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519 as_fn_error $? "cannot compute suffix of object files: cannot compile
3520 See \`config.log' for more details" "$LINENO" 5; }
3522 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3525 $as_echo "$ac_cv_objext" >&6; }
3526 OBJEXT=$ac_cv_objext
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3529 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3530 if ${ac_cv_c_compiler_gnu+:} false; then :
3531 $as_echo_n "(cached) " >&6
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3547 if ac_fn_c_try_compile "$LINENO"; then :
3552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3557 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3558 if test $ac_compiler_gnu = yes; then
3563 ac_test_CFLAGS=${CFLAGS+set}
3564 ac_save_CFLAGS=$CFLAGS
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3566 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3567 if ${ac_cv_prog_cc_g+:} false; then :
3568 $as_echo_n "(cached) " >&6
3570 ac_save_c_werror_flag=$ac_c_werror_flag
3571 ac_c_werror_flag=yes
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3585 if ac_fn_c_try_compile "$LINENO"; then :
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h. */
3600 if ac_fn_c_try_compile "$LINENO"; then :
3603 ac_c_werror_flag=$ac_save_c_werror_flag
3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h. */
3616 if ac_fn_c_try_compile "$LINENO"; then :
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 ac_c_werror_flag=$ac_save_c_werror_flag
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3627 $as_echo "$ac_cv_prog_cc_g" >&6; }
3628 if test "$ac_test_CFLAGS" = set; then
3629 CFLAGS=$ac_save_CFLAGS
3630 elif test $ac_cv_prog_cc_g = yes; then
3631 if test "$GCC" = yes; then
3637 if test "$GCC" = yes; then
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3644 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3645 if ${ac_cv_prog_cc_c89+:} false; then :
3646 $as_echo_n "(cached) " >&6
3648 ac_cv_prog_cc_c89=no
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h. */
3654 #include <sys/types.h>
3655 #include <sys/stat.h>
3656 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3657 struct buf { int x; };
3658 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3659 static char *e (p, i)
3665 static char *f (char * (*g) (char **, int), char **p, ...)
3670 s = g (p, va_arg (v,int));
3675 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3676 function prototypes and stuff, but not '\xHH' hex character constants.
3677 These don't provoke an error unfortunately, instead are silently treated
3678 as 'x'. The following induces an error, until -std is added to get
3679 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3680 array size at least. It's necessary to write '\x00'==0 to get something
3681 that's true only with -std. */
3682 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3684 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3685 inside strings and character constants. */
3687 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3689 int test (int i, double x);
3690 struct s1 {int (*f) (int a);};
3691 struct s2 {int (*f) (double a);};
3692 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3698 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3703 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3704 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3706 CC="$ac_save_CC $ac_arg"
3707 if ac_fn_c_try_compile "$LINENO"; then :
3708 ac_cv_prog_cc_c89=$ac_arg
3710 rm -f core conftest.err conftest.$ac_objext
3711 test "x$ac_cv_prog_cc_c89" != "xno" && break
3713 rm -f conftest.$ac_ext
3718 case "x$ac_cv_prog_cc_c89" in
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3721 $as_echo "none needed" >&6; } ;;
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3724 $as_echo "unsupported" >&6; } ;;
3726 CC="$CC $ac_cv_prog_cc_c89"
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3728 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3730 if test "x$ac_cv_prog_cc_c89" != xno; then :
3735 ac_cpp='$CPP $CPPFLAGS'
3736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3740 depcc="$CC" am_compiler_list=
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3743 $as_echo_n "checking dependency style of $depcc... " >&6; }
3744 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3745 $as_echo_n "(cached) " >&6
3747 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3748 # We make a subdir and do the tests there. Otherwise we can end up
3749 # making bogus files that we don't know about and never remove. For
3750 # instance it was reported that on HP-UX the gcc test will end up
3751 # making a dummy file named `D' -- because `-MD' means `put the output
3754 # Copy depcomp to subdir because otherwise we won't find it if we're
3755 # using a relative directory.
3756 cp "$am_depcomp" conftest.dir
3758 # We will build objects and dependencies in a subdirectory because
3759 # it helps to detect inapplicable dependency modes. For instance
3760 # both Tru64's cc and ICC support -MD to output dependencies as a
3761 # side effect of compilation, but ICC will put the dependencies in
3762 # the current directory while Tru64 will put them in the object
3766 am_cv_CC_dependencies_compiler_type=none
3767 if test "$am_compiler_list" = ""; then
3768 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3771 case " $depcc " in #(
3772 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3775 for depmode in $am_compiler_list; do
3776 # Setup a source with many dependencies, because some compilers
3777 # like to wrap large dependency lists on column 80 (with \), and
3778 # we should not choose a depcomp mode which is confused by this.
3780 # We need to recreate these files for each test, as the compiler may
3781 # overwrite some of them when testing with obscure command lines.
3782 # This happens at least with the AIX C compiler.
3784 for i in 1 2 3 4 5 6; do
3785 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3786 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3787 # Solaris 8's {/usr,}/bin/sh.
3788 touch sub/conftst$i.h
3790 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3792 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3793 # mode. It turns out that the SunPro C++ compiler does not properly
3794 # handle `-M -o', and we need to detect this. Also, some Intel
3795 # versions had trouble with output in subdirs
3796 am__obj=sub/conftest.${OBJEXT-o}
3797 am__minus_obj="-o $am__obj"
3800 # This depmode causes a compiler race in universal mode.
3801 test "$am__universal" = false || continue
3804 # after this tag, mechanisms are not by side-effect, so they'll
3805 # only be used when explicitly requested
3806 if test "x$enable_dependency_tracking" = xyes; then
3812 msvisualcpp | msvcmsys)
3813 # This compiler won't grok `-c -o', but also, the minuso test has
3814 # not run yet. These depmodes are late enough in the game, and
3815 # so weak that their functioning should not be impacted.
3816 am__obj=conftest.${OBJEXT-o}
3821 if depmode=$depmode \
3822 source=sub/conftest.c object=$am__obj \
3823 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3824 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3825 >/dev/null 2>conftest.err &&
3826 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3827 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3828 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3829 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3830 # icc doesn't choke on unknown options, it will just issue warnings
3831 # or remarks (even with -Werror). So we grep stderr for any message
3832 # that says an option was ignored or not supported.
3833 # When given -MP, icc 7.0 and 7.1 complain thusly:
3834 # icc: Command line warning: ignoring option '-M'; no argument required
3835 # The diagnosis changed in icc 8.0:
3836 # icc: Command line remark: option '-MP' not supported
3837 if (grep 'ignoring option' conftest.err ||
3838 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3839 am_cv_CC_dependencies_compiler_type=$depmode
3848 am_cv_CC_dependencies_compiler_type=none
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3853 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3854 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3857 test "x$enable_dependency_tracking" != xno \
3858 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3860 am__fastdepCC_FALSE='#'
3862 am__fastdepCC_TRUE='#'
3863 am__fastdepCC_FALSE=
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3868 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3869 if ${ac_cv_path_SED+:} false; then :
3870 $as_echo_n "(cached) " >&6
3872 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3873 for ac_i in 1 2 3 4 5 6 7; do
3874 ac_script="$ac_script$as_nl$ac_script"
3876 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3877 { ac_script=; unset ac_script;}
3878 if test -z "$SED"; then
3879 ac_path_SED_found=false
3880 # Loop through the user's path and test for each of PROGNAME-LIST
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 test -z "$as_dir" && as_dir=.
3886 for ac_prog in sed gsed; do
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3889 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3890 # Check for GNU ac_path_SED and select it if it is found.
3891 # Check for GNU $ac_path_SED
3892 case `"$ac_path_SED" --version 2>&1` in
3894 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3897 $as_echo_n 0123456789 >"conftest.in"
3900 cat "conftest.in" "conftest.in" >"conftest.tmp"
3901 mv "conftest.tmp" "conftest.in"
3902 cp "conftest.in" "conftest.nl"
3903 $as_echo '' >> "conftest.nl"
3904 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3905 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3906 as_fn_arith $ac_count + 1 && ac_count=$as_val
3907 if test $ac_count -gt ${ac_path_SED_max-0}; then
3908 # Best one so far, save it but keep looking for a better one
3909 ac_cv_path_SED="$ac_path_SED"
3910 ac_path_SED_max=$ac_count
3912 # 10*(2^10) chars as input seems more than enough
3913 test $ac_count -gt 10 && break
3915 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3918 $ac_path_SED_found && break 3
3923 if test -z "$ac_cv_path_SED"; then
3924 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3932 $as_echo "$ac_cv_path_SED" >&6; }
3933 SED="$ac_cv_path_SED"
3936 test -z "$SED" && SED=sed
3937 Xsed="$SED -e 1s/^X//"
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3950 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3951 if ${ac_cv_path_GREP+:} false; then :
3952 $as_echo_n "(cached) " >&6
3954 if test -z "$GREP"; then
3955 ac_path_GREP_found=false
3956 # Loop through the user's path and test for each of PROGNAME-LIST
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3961 test -z "$as_dir" && as_dir=.
3962 for ac_prog in grep ggrep; do
3963 for ac_exec_ext in '' $ac_executable_extensions; do
3964 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3965 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3966 # Check for GNU ac_path_GREP and select it if it is found.
3967 # Check for GNU $ac_path_GREP
3968 case `"$ac_path_GREP" --version 2>&1` in
3970 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3973 $as_echo_n 0123456789 >"conftest.in"
3976 cat "conftest.in" "conftest.in" >"conftest.tmp"
3977 mv "conftest.tmp" "conftest.in"
3978 cp "conftest.in" "conftest.nl"
3979 $as_echo 'GREP' >> "conftest.nl"
3980 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3981 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3982 as_fn_arith $ac_count + 1 && ac_count=$as_val
3983 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3984 # Best one so far, save it but keep looking for a better one
3985 ac_cv_path_GREP="$ac_path_GREP"
3986 ac_path_GREP_max=$ac_count
3988 # 10*(2^10) chars as input seems more than enough
3989 test $ac_count -gt 10 && break
3991 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3994 $ac_path_GREP_found && break 3
3999 if test -z "$ac_cv_path_GREP"; then
4000 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4003 ac_cv_path_GREP=$GREP
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4008 $as_echo "$ac_cv_path_GREP" >&6; }
4009 GREP="$ac_cv_path_GREP"
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4013 $as_echo_n "checking for egrep... " >&6; }
4014 if ${ac_cv_path_EGREP+:} false; then :
4015 $as_echo_n "(cached) " >&6
4017 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4018 then ac_cv_path_EGREP="$GREP -E"
4020 if test -z "$EGREP"; then
4021 ac_path_EGREP_found=false
4022 # Loop through the user's path and test for each of PROGNAME-LIST
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4027 test -z "$as_dir" && as_dir=.
4028 for ac_prog in egrep; do
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4031 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4032 # Check for GNU ac_path_EGREP and select it if it is found.
4033 # Check for GNU $ac_path_EGREP
4034 case `"$ac_path_EGREP" --version 2>&1` in
4036 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4039 $as_echo_n 0123456789 >"conftest.in"
4042 cat "conftest.in" "conftest.in" >"conftest.tmp"
4043 mv "conftest.tmp" "conftest.in"
4044 cp "conftest.in" "conftest.nl"
4045 $as_echo 'EGREP' >> "conftest.nl"
4046 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4047 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4048 as_fn_arith $ac_count + 1 && ac_count=$as_val
4049 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4050 # Best one so far, save it but keep looking for a better one
4051 ac_cv_path_EGREP="$ac_path_EGREP"
4052 ac_path_EGREP_max=$ac_count
4054 # 10*(2^10) chars as input seems more than enough
4055 test $ac_count -gt 10 && break
4057 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4060 $ac_path_EGREP_found && break 3
4065 if test -z "$ac_cv_path_EGREP"; then
4066 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4069 ac_cv_path_EGREP=$EGREP
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4075 $as_echo "$ac_cv_path_EGREP" >&6; }
4076 EGREP="$ac_cv_path_EGREP"
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4080 $as_echo_n "checking for fgrep... " >&6; }
4081 if ${ac_cv_path_FGREP+:} false; then :
4082 $as_echo_n "(cached) " >&6
4084 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4085 then ac_cv_path_FGREP="$GREP -F"
4087 if test -z "$FGREP"; then
4088 ac_path_FGREP_found=false
4089 # Loop through the user's path and test for each of PROGNAME-LIST
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4094 test -z "$as_dir" && as_dir=.
4095 for ac_prog in fgrep; do
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4098 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4099 # Check for GNU ac_path_FGREP and select it if it is found.
4100 # Check for GNU $ac_path_FGREP
4101 case `"$ac_path_FGREP" --version 2>&1` in
4103 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4106 $as_echo_n 0123456789 >"conftest.in"
4109 cat "conftest.in" "conftest.in" >"conftest.tmp"
4110 mv "conftest.tmp" "conftest.in"
4111 cp "conftest.in" "conftest.nl"
4112 $as_echo 'FGREP' >> "conftest.nl"
4113 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4114 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4115 as_fn_arith $ac_count + 1 && ac_count=$as_val
4116 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4117 # Best one so far, save it but keep looking for a better one
4118 ac_cv_path_FGREP="$ac_path_FGREP"
4119 ac_path_FGREP_max=$ac_count
4121 # 10*(2^10) chars as input seems more than enough
4122 test $ac_count -gt 10 && break
4124 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4127 $ac_path_FGREP_found && break 3
4132 if test -z "$ac_cv_path_FGREP"; then
4133 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4136 ac_cv_path_FGREP=$FGREP
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4142 $as_echo "$ac_cv_path_FGREP" >&6; }
4143 FGREP="$ac_cv_path_FGREP"
4146 test -z "$GREP" && GREP=grep
4166 # Check whether --with-gnu-ld was given.
4167 if test "${with_gnu_ld+set}" = set; then :
4168 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4174 if test "$GCC" = yes; then
4175 # Check if gcc -print-prog-name=ld gives a path.
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4177 $as_echo_n "checking for ld used by $CC... " >&6; }
4180 # gcc leaves a trailing carriage return which upsets mingw
4181 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4183 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4186 # Accept absolute paths.
4188 re_direlt='/[^/][^/]*/\.\./'
4189 # Canonicalize the pathname of ld
4190 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4191 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4192 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4194 test -z "$LD" && LD="$ac_prog"
4197 # If it fails, then pretend we aren't using GCC.
4201 # If it is relative, then search for the first ld in PATH.
4205 elif test "$with_gnu_ld" = yes; then
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4207 $as_echo_n "checking for GNU ld... " >&6; }
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4210 $as_echo_n "checking for non-GNU ld... " >&6; }
4212 if ${lt_cv_path_LD+:} false; then :
4213 $as_echo_n "(cached) " >&6
4215 if test -z "$LD"; then
4216 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4217 for ac_dir in $PATH; do
4219 test -z "$ac_dir" && ac_dir=.
4220 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4221 lt_cv_path_LD="$ac_dir/$ac_prog"
4222 # Check to see if the program is GNU ld. I'd rather use --version,
4223 # but apparently some variants of GNU ld only accept -v.
4224 # Break only if it was the GNU/non-GNU ld that we prefer.
4225 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4226 *GNU* | *'with BFD'*)
4227 test "$with_gnu_ld" != no && break
4230 test "$with_gnu_ld" != yes && break
4237 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4242 if test -n "$LD"; then
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4244 $as_echo "$LD" >&6; }
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247 $as_echo "no" >&6; }
4249 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4251 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4252 if ${lt_cv_prog_gnu_ld+:} false; then :
4253 $as_echo_n "(cached) " >&6
4255 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4256 case `$LD -v 2>&1 </dev/null` in
4257 *GNU* | *'with BFD'*)
4258 lt_cv_prog_gnu_ld=yes
4261 lt_cv_prog_gnu_ld=no
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4266 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4267 with_gnu_ld=$lt_cv_prog_gnu_ld
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4278 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4279 if ${lt_cv_path_NM+:} false; then :
4280 $as_echo_n "(cached) " >&6
4282 if test -n "$NM"; then
4283 # Let the user override the test.
4286 lt_nm_to_check="${ac_tool_prefix}nm"
4287 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4288 lt_nm_to_check="$lt_nm_to_check nm"
4290 for lt_tmp_nm in $lt_nm_to_check; do
4291 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4292 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4294 test -z "$ac_dir" && ac_dir=.
4295 tmp_nm="$ac_dir/$lt_tmp_nm"
4296 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4297 # Check to see if the nm accepts a BSD-compat flag.
4298 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4299 # nm: unknown option "B" ignored
4300 # Tru64's nm complains that /dev/null is an invalid object file
4301 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4302 */dev/null* | *'Invalid file or object type'*)
4303 lt_cv_path_NM="$tmp_nm -B"
4307 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4309 lt_cv_path_NM="$tmp_nm -p"
4313 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4314 continue # so that we can try to find one that supports BSD flags
4323 : ${lt_cv_path_NM=no}
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4327 $as_echo "$lt_cv_path_NM" >&6; }
4328 if test "$lt_cv_path_NM" != "no"; then
4331 # Didn't find any BSD compatible name lister, look for dumpbin.
4332 if test -n "$DUMPBIN"; then :
4333 # Let the user override the test.
4335 if test -n "$ac_tool_prefix"; then
4336 for ac_prog in dumpbin "link -dump"
4338 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4339 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4341 $as_echo_n "checking for $ac_word... " >&6; }
4342 if ${ac_cv_prog_DUMPBIN+:} false; then :
4343 $as_echo_n "(cached) " >&6
4345 if test -n "$DUMPBIN"; then
4346 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 test -z "$as_dir" && as_dir=.
4353 for ac_exec_ext in '' $ac_executable_extensions; do
4354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4355 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 DUMPBIN=$ac_cv_prog_DUMPBIN
4366 if test -n "$DUMPBIN"; then
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4368 $as_echo "$DUMPBIN" >&6; }
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4371 $as_echo "no" >&6; }
4375 test -n "$DUMPBIN" && break
4378 if test -z "$DUMPBIN"; then
4379 ac_ct_DUMPBIN=$DUMPBIN
4380 for ac_prog in dumpbin "link -dump"
4382 # Extract the first word of "$ac_prog", so it can be a program name with args.
4383 set dummy $ac_prog; ac_word=$2
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4385 $as_echo_n "checking for $ac_word... " >&6; }
4386 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4387 $as_echo_n "(cached) " >&6
4389 if test -n "$ac_ct_DUMPBIN"; then
4390 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4399 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4410 if test -n "$ac_ct_DUMPBIN"; then
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4412 $as_echo "$ac_ct_DUMPBIN" >&6; }
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415 $as_echo "no" >&6; }
4419 test -n "$ac_ct_DUMPBIN" && break
4422 if test "x$ac_ct_DUMPBIN" = x; then
4425 case $cross_compiling:$ac_tool_warned in
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4429 ac_tool_warned=yes ;;
4431 DUMPBIN=$ac_ct_DUMPBIN
4435 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4437 DUMPBIN="$DUMPBIN -symbols"
4445 if test "$DUMPBIN" != ":"; then
4449 test -z "$NM" && NM=nm
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4457 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4458 if ${lt_cv_nm_interface+:} false; then :
4459 $as_echo_n "(cached) " >&6
4461 lt_cv_nm_interface="BSD nm"
4462 echo "int some_variable = 0;" > conftest.$ac_ext
4463 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4464 (eval "$ac_compile" 2>conftest.err)
4465 cat conftest.err >&5
4466 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4467 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4468 cat conftest.err >&5
4469 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4470 cat conftest.out >&5
4471 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4472 lt_cv_nm_interface="MS dumpbin"
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4477 $as_echo "$lt_cv_nm_interface" >&6; }
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4480 $as_echo_n "checking whether ln -s works... " >&6; }
4482 if test "$LN_S" = "ln -s"; then
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4484 $as_echo "yes" >&6; }
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4487 $as_echo "no, using $LN_S" >&6; }
4490 # find the maximum length of command line arguments
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4492 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4493 if ${lt_cv_sys_max_cmd_len+:} false; then :
4494 $as_echo_n "(cached) " >&6
4501 # On DJGPP, this test can blow up pretty badly due to problems in libc
4502 # (any single argument exceeding 2000 bytes causes a buffer overrun
4503 # during glob expansion). Even if it were fixed, the result of this
4504 # check would be larger than it should be.
4505 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4509 # Under GNU Hurd, this test is not required because there is
4510 # no limit to the length of command line arguments.
4511 # Libtool will interpret -1 as no limit whatsoever
4512 lt_cv_sys_max_cmd_len=-1;
4515 cygwin* | mingw* | cegcc*)
4516 # On Win9x/ME, this test blows up -- it succeeds, but takes
4517 # about 5 minutes as the teststring grows exponentially.
4518 # Worse, since 9x/ME are not pre-emptively multitasking,
4519 # you end up with a "frozen" computer, even though with patience
4520 # the test eventually succeeds (with a max line length of 256k).
4521 # Instead, let's just punt: use the minimum linelength reported by
4522 # all of the supported platforms: 8192 (on NT/2K/XP).
4523 lt_cv_sys_max_cmd_len=8192;
4527 # On MiNT this can take a long time and run out of memory.
4528 lt_cv_sys_max_cmd_len=8192;
4532 # On AmigaOS with pdksh, this test takes hours, literally.
4533 # So we just punt and use a minimum line length of 8192.
4534 lt_cv_sys_max_cmd_len=8192;
4537 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4538 # This has been around since 386BSD, at least. Likely further.
4539 if test -x /sbin/sysctl; then
4540 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4541 elif test -x /usr/sbin/sysctl; then
4542 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4544 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4546 # And add a safety zone
4547 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4548 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4552 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4553 lt_cv_sys_max_cmd_len=196608
4557 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4558 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4559 # nice to cause kernel panics so lets avoid the loop below.
4560 # First set a reasonable default.
4561 lt_cv_sys_max_cmd_len=16384
4563 if test -x /sbin/sysconfig; then
4564 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4565 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4570 lt_cv_sys_max_cmd_len=102400
4572 sysv5* | sco5v6* | sysv4.2uw2*)
4573 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4574 if test -n "$kargmax"; then
4575 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4577 lt_cv_sys_max_cmd_len=32768
4581 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4582 if test -n "$lt_cv_sys_max_cmd_len"; then
4583 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4584 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4586 # Make teststring a little bigger before we do anything with it.
4587 # a 1K string should be a reasonable start.
4588 for i in 1 2 3 4 5 6 7 8 ; do
4589 teststring=$teststring$teststring
4591 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4592 # If test is not a shell built-in, we'll probably end up computing a
4593 # maximum length that is only half of the actual maximum length, but
4595 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4596 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4597 test $i != 17 # 1/2 MB should be enough
4600 teststring=$teststring$teststring
4602 # Only check the string length outside the loop.
4603 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4605 # Add a significant safety factor because C++ compilers can tack on
4606 # massive amounts of additional arguments before passing them to the
4607 # linker. It appears as though 1/2 is a usable value.
4608 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4615 if test -n $lt_cv_sys_max_cmd_len ; then
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4617 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4620 $as_echo "none" >&6; }
4622 max_cmd_len=$lt_cv_sys_max_cmd_len
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4634 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4635 # Try some XSI features
4638 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4640 && eval 'test $(( 1 + 1 )) -eq 2 \
4641 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4644 $as_echo "$xsi_shell" >&6; }
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4648 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4650 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4652 && lt_shell_append=yes
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4654 $as_echo "$lt_shell_append" >&6; }
4657 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4667 # test EBCDIC or ASCII
4668 case `echo X|tr X '\101'` in
4669 A) # ASCII based system
4670 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4671 lt_SP2NL='tr \040 \012'
4672 lt_NL2SP='tr \015\012 \040\040'
4674 *) # EBCDIC based system
4675 lt_SP2NL='tr \100 \n'
4676 lt_NL2SP='tr \r\n \100\100'
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4689 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4690 if ${lt_cv_ld_reload_flag+:} false; then :
4691 $as_echo_n "(cached) " >&6
4693 lt_cv_ld_reload_flag='-r'
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4696 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4697 reload_flag=$lt_cv_ld_reload_flag
4698 case $reload_flag in
4700 *) reload_flag=" $reload_flag" ;;
4702 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4705 if test "$GCC" = yes; then
4706 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4708 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4721 if test -n "$ac_tool_prefix"; then
4722 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4723 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4725 $as_echo_n "checking for $ac_word... " >&6; }
4726 if ${ac_cv_prog_OBJDUMP+:} false; then :
4727 $as_echo_n "(cached) " >&6
4729 if test -n "$OBJDUMP"; then
4730 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4739 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 OBJDUMP=$ac_cv_prog_OBJDUMP
4750 if test -n "$OBJDUMP"; then
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4752 $as_echo "$OBJDUMP" >&6; }
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4755 $as_echo "no" >&6; }
4760 if test -z "$ac_cv_prog_OBJDUMP"; then
4761 ac_ct_OBJDUMP=$OBJDUMP
4762 # Extract the first word of "objdump", so it can be a program name with args.
4763 set dummy objdump; ac_word=$2
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4765 $as_echo_n "checking for $ac_word... " >&6; }
4766 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4767 $as_echo_n "(cached) " >&6
4769 if test -n "$ac_ct_OBJDUMP"; then
4770 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4790 if test -n "$ac_ct_OBJDUMP"; then
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4792 $as_echo "$ac_ct_OBJDUMP" >&6; }
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795 $as_echo "no" >&6; }
4798 if test "x$ac_ct_OBJDUMP" = x; then
4801 case $cross_compiling:$ac_tool_warned in
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4805 ac_tool_warned=yes ;;
4807 OBJDUMP=$ac_ct_OBJDUMP
4810 OBJDUMP="$ac_cv_prog_OBJDUMP"
4813 test -z "$OBJDUMP" && OBJDUMP=objdump
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4824 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4825 if ${lt_cv_deplibs_check_method+:} false; then :
4826 $as_echo_n "(cached) " >&6
4828 lt_cv_file_magic_cmd='$MAGIC_CMD'
4829 lt_cv_file_magic_test_file=
4830 lt_cv_deplibs_check_method='unknown'
4831 # Need to set the preceding variable on all platforms that support
4832 # interlibrary dependencies.
4833 # 'none' -- dependencies not supported.
4834 # `unknown' -- same as none, but documents that we really don't know.
4835 # 'pass_all' -- all dependencies passed with no checks.
4836 # 'test_compile' -- check by making test program.
4837 # 'file_magic [[regex]]' -- check by looking for files in library path
4838 # which responds to the $file_magic_cmd with a given extended regex.
4839 # If you have `file' or equivalent on your system and you're not sure
4840 # whether `pass_all' will *always* work, you probably want this one.
4844 lt_cv_deplibs_check_method=pass_all
4848 lt_cv_deplibs_check_method=pass_all
4852 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4853 lt_cv_file_magic_cmd='/usr/bin/file -L'
4854 lt_cv_file_magic_test_file=/shlib/libc.so
4858 # func_win32_libid is a shell function defined in ltmain.sh
4859 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4860 lt_cv_file_magic_cmd='func_win32_libid'
4864 # Base MSYS/MinGW do not provide the 'file' command needed by
4865 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4866 # unless we find 'file', for example because we are cross-compiling.
4867 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4868 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4869 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4870 lt_cv_file_magic_cmd='func_win32_libid'
4872 # Keep this pattern in sync with the one in func_win32_libid.
4873 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4874 lt_cv_file_magic_cmd='$OBJDUMP -f'
4879 # use the weaker test based on 'objdump'. See mingw*.
4880 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4881 lt_cv_file_magic_cmd='$OBJDUMP -f'
4884 darwin* | rhapsody*)
4885 lt_cv_deplibs_check_method=pass_all
4888 freebsd* | dragonfly*)
4889 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4892 # Not sure whether the presence of OpenBSD here was a mistake.
4893 # Let's accept both of them until this is cleared up.
4894 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4895 lt_cv_file_magic_cmd=/usr/bin/file
4896 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4900 lt_cv_deplibs_check_method=pass_all
4905 lt_cv_deplibs_check_method=pass_all
4909 lt_cv_deplibs_check_method=pass_all
4912 hpux10.20* | hpux11*)
4913 lt_cv_file_magic_cmd=/usr/bin/file
4916 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4917 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4920 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]'
4921 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4924 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4925 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4931 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4932 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4935 irix5* | irix6* | nonstopux*)
4937 *-32|*"-32 ") libmagic=32-bit;;
4938 *-n32|*"-n32 ") libmagic=N32;;
4939 *-64|*"-64 ") libmagic=64-bit;;
4940 *) libmagic=never-match;;
4942 lt_cv_deplibs_check_method=pass_all
4945 # This must be Linux ELF.
4946 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4947 lt_cv_deplibs_check_method=pass_all
4951 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4952 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4954 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4959 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4960 lt_cv_file_magic_cmd=/usr/bin/file
4961 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4965 lt_cv_deplibs_check_method=pass_all
4969 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4970 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4972 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4976 osf3* | osf4* | osf5*)
4977 lt_cv_deplibs_check_method=pass_all
4981 lt_cv_deplibs_check_method=pass_all
4985 lt_cv_deplibs_check_method=pass_all
4988 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4989 lt_cv_deplibs_check_method=pass_all
4993 case $host_vendor in
4995 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]'
4996 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4999 lt_cv_deplibs_check_method=pass_all
5002 lt_cv_file_magic_cmd='/bin/file'
5003 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5006 lt_cv_file_magic_cmd='/bin/file'
5007 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5008 lt_cv_file_magic_test_file=/lib/libc.so
5011 lt_cv_deplibs_check_method=pass_all
5014 lt_cv_deplibs_check_method=pass_all
5020 lt_cv_deplibs_check_method=pass_all
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5026 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5027 file_magic_cmd=$lt_cv_file_magic_cmd
5028 deplibs_check_method=$lt_cv_deplibs_check_method
5029 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5042 if test -n "$ac_tool_prefix"; then
5043 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5044 set dummy ${ac_tool_prefix}ar; ac_word=$2
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5046 $as_echo_n "checking for $ac_word... " >&6; }
5047 if ${ac_cv_prog_AR+:} false; then :
5048 $as_echo_n "(cached) " >&6
5050 if test -n "$AR"; then
5051 ac_cv_prog_AR="$AR" # Let the user override the test.
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 test -z "$as_dir" && as_dir=.
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5060 ac_cv_prog_AR="${ac_tool_prefix}ar"
5061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5071 if test -n "$AR"; then
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5073 $as_echo "$AR" >&6; }
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5076 $as_echo "no" >&6; }
5081 if test -z "$ac_cv_prog_AR"; then
5083 # Extract the first word of "ar", so it can be a program name with args.
5084 set dummy ar; ac_word=$2
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5086 $as_echo_n "checking for $ac_word... " >&6; }
5087 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5088 $as_echo_n "(cached) " >&6
5090 if test -n "$ac_ct_AR"; then
5091 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5100 ac_cv_prog_ac_ct_AR="ar"
5101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5111 if test -n "$ac_ct_AR"; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5113 $as_echo "$ac_ct_AR" >&6; }
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5119 if test "x$ac_ct_AR" = x; then
5122 case $cross_compiling:$ac_tool_warned in
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5126 ac_tool_warned=yes ;;
5134 test -z "$AR" && AR=ar
5135 test -z "$AR_FLAGS" && AR_FLAGS=cru
5147 if test -n "$ac_tool_prefix"; then
5148 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5149 set dummy ${ac_tool_prefix}strip; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if ${ac_cv_prog_STRIP+:} false; then :
5153 $as_echo_n "(cached) " >&6
5155 if test -n "$STRIP"; then
5156 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5165 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 STRIP=$ac_cv_prog_STRIP
5176 if test -n "$STRIP"; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5178 $as_echo "$STRIP" >&6; }
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5186 if test -z "$ac_cv_prog_STRIP"; then
5188 # Extract the first word of "strip", so it can be a program name with args.
5189 set dummy strip; ac_word=$2
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5191 $as_echo_n "checking for $ac_word... " >&6; }
5192 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5193 $as_echo_n "(cached) " >&6
5195 if test -n "$ac_ct_STRIP"; then
5196 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5205 ac_cv_prog_ac_ct_STRIP="strip"
5206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5215 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5216 if test -n "$ac_ct_STRIP"; then
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5218 $as_echo "$ac_ct_STRIP" >&6; }
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 $as_echo "no" >&6; }
5224 if test "x$ac_ct_STRIP" = x; then
5227 case $cross_compiling:$ac_tool_warned in
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5231 ac_tool_warned=yes ;;
5236 STRIP="$ac_cv_prog_STRIP"
5239 test -z "$STRIP" && STRIP=:
5246 if test -n "$ac_tool_prefix"; then
5247 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5248 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5250 $as_echo_n "checking for $ac_word... " >&6; }
5251 if ${ac_cv_prog_RANLIB+:} false; then :
5252 $as_echo_n "(cached) " >&6
5254 if test -n "$RANLIB"; then
5255 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5264 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 RANLIB=$ac_cv_prog_RANLIB
5275 if test -n "$RANLIB"; then
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5277 $as_echo "$RANLIB" >&6; }
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5280 $as_echo "no" >&6; }
5285 if test -z "$ac_cv_prog_RANLIB"; then
5286 ac_ct_RANLIB=$RANLIB
5287 # Extract the first word of "ranlib", so it can be a program name with args.
5288 set dummy ranlib; ac_word=$2
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5290 $as_echo_n "checking for $ac_word... " >&6; }
5291 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5292 $as_echo_n "(cached) " >&6
5294 if test -n "$ac_ct_RANLIB"; then
5295 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5304 ac_cv_prog_ac_ct_RANLIB="ranlib"
5305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5315 if test -n "$ac_ct_RANLIB"; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5317 $as_echo "$ac_ct_RANLIB" >&6; }
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320 $as_echo "no" >&6; }
5323 if test "x$ac_ct_RANLIB" = x; then
5326 case $cross_compiling:$ac_tool_warned in
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5330 ac_tool_warned=yes ;;
5332 RANLIB=$ac_ct_RANLIB
5335 RANLIB="$ac_cv_prog_RANLIB"
5338 test -z "$RANLIB" && RANLIB=:
5345 # Determine commands to create old-style static archives.
5346 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5347 old_postinstall_cmds='chmod 644 $oldlib'
5348 old_postuninstall_cmds=
5350 if test -n "$RANLIB"; then
5353 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5356 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5359 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5364 lock_old_archive_extraction=yes ;;
5366 lock_old_archive_extraction=no ;;
5407 # If no C compiler was specified, use CC.
5410 # If no C compiler flags were specified, use CFLAGS.
5411 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5413 # Allow CC to be a program name with arguments.
5417 # Check for command to grab the raw symbol name followed by C symbol from nm.
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5419 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5420 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5421 $as_echo_n "(cached) " >&6
5424 # These are sane defaults that work on at least a few old systems.
5425 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5427 # Character class describing NM global symbol codes.
5428 symcode='[BCDEGRST]'
5430 # Regexp to match symbols that can be accessed directly from C.
5431 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5433 # Define system-specific variables.
5438 cygwin* | mingw* | pw32* | cegcc*)
5439 symcode='[ABCDGISTW]'
5442 if test "$host_cpu" = ia64; then
5443 symcode='[ABCDEGRST]'
5447 symcode='[BCDEGRST]'
5450 symcode='[BCDEGQRST]'
5461 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5469 # If we're using GNU nm, then use its standard symbol codes.
5470 case `$NM -V 2>&1` in
5471 *GNU* | *'with BFD'*)
5472 symcode='[ABCDGIRSTW]' ;;
5475 # Transform an extracted symbol line into a proper C declaration.
5476 # Some systems (esp. on ia64) link data and code symbols differently,
5477 # so use this general approach.
5478 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5480 # Transform an extracted symbol line into symbol name and symbol address
5481 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5482 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'"
5484 # Handle CRLF in mingw tool chain
5488 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5492 # Try without a prefix underscore, then with it.
5493 for ac_symprfx in "" "_"; do
5495 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5496 symxfrm="\\1 $ac_symprfx\\2 \\2"
5498 # Write the raw and C identifiers.
5499 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5500 # Fake it for dumpbin and say T for any non-static function
5501 # and D for any global variable.
5502 # Also find C++ and __fastcall symbols from MSVC++,
5503 # which start with @ or ?.
5504 lt_cv_sys_global_symbol_pipe="$AWK '"\
5505 " {last_section=section; section=\$ 3};"\
5506 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5507 " \$ 0!~/External *\|/{next};"\
5508 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5509 " {if(hide[section]) next};"\
5510 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5511 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5512 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5513 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5514 " ' prfx=^$ac_symprfx"
5516 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5519 # Check to see that the pipe works correctly.
5523 cat > conftest.$ac_ext <<_LT_EOF
5528 void nm_test_func(void);
5529 void nm_test_func(void){}
5533 int main(){nm_test_var='a';nm_test_func();return(0);}
5536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5537 (eval $ac_compile) 2>&5
5539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5540 test $ac_status = 0; }; then
5541 # Now try to grab the symbols.
5543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5544 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5547 test $ac_status = 0; } && test -s "$nlist"; then
5548 # Try sorting and uniquifying the output.
5549 if sort "$nlist" | uniq > "$nlist"T; then
5550 mv -f "$nlist"T "$nlist"
5555 # Make sure that we snagged all the symbols we need.
5556 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5557 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5558 cat <<_LT_EOF > conftest.$ac_ext
5564 # Now generate the symbol file.
5565 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5567 cat <<_LT_EOF >> conftest.$ac_ext
5569 /* The mapping between symbol names and symbols. */
5574 lt__PROGRAM__LTX_preloaded_symbols[] =
5576 { "@PROGRAM@", (void *) 0 },
5578 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5579 cat <<\_LT_EOF >> conftest.$ac_ext
5583 /* This works around a problem in FreeBSD linker */
5584 #ifdef FREEBSD_WORKAROUND
5585 static const void *lt_preloaded_setup() {
5586 return lt__PROGRAM__LTX_preloaded_symbols;
5594 # Now try linking the two files.
5595 mv conftest.$ac_objext conftstm.$ac_objext
5596 lt_save_LIBS="$LIBS"
5597 lt_save_CFLAGS="$CFLAGS"
5598 LIBS="conftstm.$ac_objext"
5599 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5601 (eval $ac_link) 2>&5
5603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5604 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5607 LIBS="$lt_save_LIBS"
5608 CFLAGS="$lt_save_CFLAGS"
5610 echo "cannot find nm_test_func in $nlist" >&5
5613 echo "cannot find nm_test_var in $nlist" >&5
5616 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5619 echo "$progname: failed program was:" >&5
5620 cat conftest.$ac_ext >&5
5622 rm -rf conftest* conftst*
5624 # Do not use the global_symbol_pipe unless it works.
5625 if test "$pipe_works" = yes; then
5628 lt_cv_sys_global_symbol_pipe=
5634 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5635 lt_cv_sys_global_symbol_to_cdecl=
5637 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5639 $as_echo "failed" >&6; }
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5642 $as_echo "ok" >&6; }
5667 # Check whether --enable-libtool-lock was given.
5668 if test "${enable_libtool_lock+set}" = set; then :
5669 enableval=$enable_libtool_lock;
5672 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5674 # Some flags need to be propagated to the compiler or linker for good
5678 # Find out which ABI we are using.
5679 echo 'int i;' > conftest.$ac_ext
5680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5681 (eval $ac_compile) 2>&5
5683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5684 test $ac_status = 0; }; then
5685 case `/usr/bin/file conftest.$ac_objext` in
5697 # Find out which ABI we are using.
5698 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5700 (eval $ac_compile) 2>&5
5702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5703 test $ac_status = 0; }; then
5704 if test "$lt_cv_prog_gnu_ld" = yes; then
5705 case `/usr/bin/file conftest.$ac_objext` in
5707 LD="${LD-ld} -melf32bsmip"
5710 LD="${LD-ld} -melf32bmipn32"
5713 LD="${LD-ld} -melf64bmip"
5717 case `/usr/bin/file conftest.$ac_objext` in
5733 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5734 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5735 # Find out which ABI we are using.
5736 echo 'int i;' > conftest.$ac_ext
5737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5738 (eval $ac_compile) 2>&5
5740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5741 test $ac_status = 0; }; then
5742 case `/usr/bin/file conftest.o` in
5745 x86_64-*kfreebsd*-gnu)
5746 LD="${LD-ld} -m elf_i386_fbsd"
5749 LD="${LD-ld} -m elf_i386"
5751 ppc64-*linux*|powerpc64-*linux*)
5752 LD="${LD-ld} -m elf32ppclinux"
5755 LD="${LD-ld} -m elf_s390"
5758 LD="${LD-ld} -m elf32_sparc"
5764 x86_64-*kfreebsd*-gnu)
5765 LD="${LD-ld} -m elf_x86_64_fbsd"
5768 LD="${LD-ld} -m elf_x86_64"
5770 ppc*-*linux*|powerpc*-*linux*)
5771 LD="${LD-ld} -m elf64ppc"
5773 s390*-*linux*|s390*-*tpf*)
5774 LD="${LD-ld} -m elf64_s390"
5777 LD="${LD-ld} -m elf64_sparc"
5787 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5788 SAVE_CFLAGS="$CFLAGS"
5789 CFLAGS="$CFLAGS -belf"
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5791 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5792 if ${lt_cv_cc_needs_belf+:} false; then :
5793 $as_echo_n "(cached) " >&6
5796 ac_cpp='$CPP $CPPFLAGS'
5797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802 /* end confdefs.h. */
5812 if ac_fn_c_try_link "$LINENO"; then :
5813 lt_cv_cc_needs_belf=yes
5815 lt_cv_cc_needs_belf=no
5817 rm -f core conftest.err conftest.$ac_objext \
5818 conftest$ac_exeext conftest.$ac_ext
5820 ac_cpp='$CPP $CPPFLAGS'
5821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5827 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5828 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5829 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5830 CFLAGS="$SAVE_CFLAGS"
5834 # Find out which ABI we are using.
5835 echo 'int i;' > conftest.$ac_ext
5836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5837 (eval $ac_compile) 2>&5
5839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5840 test $ac_status = 0; }; then
5841 case `/usr/bin/file conftest.o` in
5843 case $lt_cv_prog_gnu_ld in
5844 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5846 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5858 need_locks="$enable_libtool_lock"
5862 rhapsody* | darwin*)
5863 if test -n "$ac_tool_prefix"; then
5864 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5865 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5867 $as_echo_n "checking for $ac_word... " >&6; }
5868 if ${ac_cv_prog_DSYMUTIL+:} false; then :
5869 $as_echo_n "(cached) " >&6
5871 if test -n "$DSYMUTIL"; then
5872 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 test -z "$as_dir" && as_dir=.
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5881 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5892 if test -n "$DSYMUTIL"; then
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5894 $as_echo "$DSYMUTIL" >&6; }
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897 $as_echo "no" >&6; }
5902 if test -z "$ac_cv_prog_DSYMUTIL"; then
5903 ac_ct_DSYMUTIL=$DSYMUTIL
5904 # Extract the first word of "dsymutil", so it can be a program name with args.
5905 set dummy dsymutil; ac_word=$2
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5907 $as_echo_n "checking for $ac_word... " >&6; }
5908 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5909 $as_echo_n "(cached) " >&6
5911 if test -n "$ac_ct_DSYMUTIL"; then
5912 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5921 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5932 if test -n "$ac_ct_DSYMUTIL"; then
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5934 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937 $as_echo "no" >&6; }
5940 if test "x$ac_ct_DSYMUTIL" = x; then
5943 case $cross_compiling:$ac_tool_warned in
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5947 ac_tool_warned=yes ;;
5949 DSYMUTIL=$ac_ct_DSYMUTIL
5952 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5955 if test -n "$ac_tool_prefix"; then
5956 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5957 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959 $as_echo_n "checking for $ac_word... " >&6; }
5960 if ${ac_cv_prog_NMEDIT+:} false; then :
5961 $as_echo_n "(cached) " >&6
5963 if test -n "$NMEDIT"; then
5964 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 test -z "$as_dir" && as_dir=.
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5973 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5983 NMEDIT=$ac_cv_prog_NMEDIT
5984 if test -n "$NMEDIT"; then
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5986 $as_echo "$NMEDIT" >&6; }
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989 $as_echo "no" >&6; }
5994 if test -z "$ac_cv_prog_NMEDIT"; then
5995 ac_ct_NMEDIT=$NMEDIT
5996 # Extract the first word of "nmedit", so it can be a program name with args.
5997 set dummy nmedit; ac_word=$2
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5999 $as_echo_n "checking for $ac_word... " >&6; }
6000 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6001 $as_echo_n "(cached) " >&6
6003 if test -n "$ac_ct_NMEDIT"; then
6004 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 test -z "$as_dir" && as_dir=.
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6013 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6023 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6024 if test -n "$ac_ct_NMEDIT"; then
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6026 $as_echo "$ac_ct_NMEDIT" >&6; }
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029 $as_echo "no" >&6; }
6032 if test "x$ac_ct_NMEDIT" = x; then
6035 case $cross_compiling:$ac_tool_warned in
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6039 ac_tool_warned=yes ;;
6041 NMEDIT=$ac_ct_NMEDIT
6044 NMEDIT="$ac_cv_prog_NMEDIT"
6047 if test -n "$ac_tool_prefix"; then
6048 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6049 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051 $as_echo_n "checking for $ac_word... " >&6; }
6052 if ${ac_cv_prog_LIPO+:} false; then :
6053 $as_echo_n "(cached) " >&6
6055 if test -n "$LIPO"; then
6056 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6065 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 LIPO=$ac_cv_prog_LIPO
6076 if test -n "$LIPO"; then
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6078 $as_echo "$LIPO" >&6; }
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081 $as_echo "no" >&6; }
6086 if test -z "$ac_cv_prog_LIPO"; then
6088 # Extract the first word of "lipo", so it can be a program name with args.
6089 set dummy lipo; ac_word=$2
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6091 $as_echo_n "checking for $ac_word... " >&6; }
6092 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6093 $as_echo_n "(cached) " >&6
6095 if test -n "$ac_ct_LIPO"; then
6096 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 test -z "$as_dir" && as_dir=.
6103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6105 ac_cv_prog_ac_ct_LIPO="lipo"
6106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6115 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6116 if test -n "$ac_ct_LIPO"; then
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6118 $as_echo "$ac_ct_LIPO" >&6; }
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121 $as_echo "no" >&6; }
6124 if test "x$ac_ct_LIPO" = x; then
6127 case $cross_compiling:$ac_tool_warned in
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6131 ac_tool_warned=yes ;;
6136 LIPO="$ac_cv_prog_LIPO"
6139 if test -n "$ac_tool_prefix"; then
6140 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6141 set dummy ${ac_tool_prefix}otool; ac_word=$2
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6143 $as_echo_n "checking for $ac_word... " >&6; }
6144 if ${ac_cv_prog_OTOOL+:} false; then :
6145 $as_echo_n "(cached) " >&6
6147 if test -n "$OTOOL"; then
6148 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154 test -z "$as_dir" && as_dir=.
6155 for ac_exec_ext in '' $ac_executable_extensions; do
6156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6157 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6167 OTOOL=$ac_cv_prog_OTOOL
6168 if test -n "$OTOOL"; then
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6170 $as_echo "$OTOOL" >&6; }
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6173 $as_echo "no" >&6; }
6178 if test -z "$ac_cv_prog_OTOOL"; then
6180 # Extract the first word of "otool", so it can be a program name with args.
6181 set dummy otool; ac_word=$2
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6183 $as_echo_n "checking for $ac_word... " >&6; }
6184 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6185 $as_echo_n "(cached) " >&6
6187 if test -n "$ac_ct_OTOOL"; then
6188 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 test -z "$as_dir" && as_dir=.
6195 for ac_exec_ext in '' $ac_executable_extensions; do
6196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6197 ac_cv_prog_ac_ct_OTOOL="otool"
6198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6208 if test -n "$ac_ct_OTOOL"; then
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6210 $as_echo "$ac_ct_OTOOL" >&6; }
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6213 $as_echo "no" >&6; }
6216 if test "x$ac_ct_OTOOL" = x; then
6219 case $cross_compiling:$ac_tool_warned in
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6223 ac_tool_warned=yes ;;
6228 OTOOL="$ac_cv_prog_OTOOL"
6231 if test -n "$ac_tool_prefix"; then
6232 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6233 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6235 $as_echo_n "checking for $ac_word... " >&6; }
6236 if ${ac_cv_prog_OTOOL64+:} false; then :
6237 $as_echo_n "(cached) " >&6
6239 if test -n "$OTOOL64"; then
6240 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6249 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6259 OTOOL64=$ac_cv_prog_OTOOL64
6260 if test -n "$OTOOL64"; then
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6262 $as_echo "$OTOOL64" >&6; }
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6265 $as_echo "no" >&6; }
6270 if test -z "$ac_cv_prog_OTOOL64"; then
6271 ac_ct_OTOOL64=$OTOOL64
6272 # Extract the first word of "otool64", so it can be a program name with args.
6273 set dummy otool64; ac_word=$2
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6275 $as_echo_n "checking for $ac_word... " >&6; }
6276 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6277 $as_echo_n "(cached) " >&6
6279 if test -n "$ac_ct_OTOOL64"; then
6280 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 test -z "$as_dir" && as_dir=.
6287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6289 ac_cv_prog_ac_ct_OTOOL64="otool64"
6290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6300 if test -n "$ac_ct_OTOOL64"; then
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6302 $as_echo "$ac_ct_OTOOL64" >&6; }
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305 $as_echo "no" >&6; }
6308 if test "x$ac_ct_OTOOL64" = x; then
6311 case $cross_compiling:$ac_tool_warned in
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6315 ac_tool_warned=yes ;;
6317 OTOOL64=$ac_ct_OTOOL64
6320 OTOOL64="$ac_cv_prog_OTOOL64"
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6350 $as_echo_n "checking for -single_module linker flag... " >&6; }
6351 if ${lt_cv_apple_cc_single_mod+:} false; then :
6352 $as_echo_n "(cached) " >&6
6354 lt_cv_apple_cc_single_mod=no
6355 if test -z "${LT_MULTI_MODULE}"; then
6356 # By default we will add the -single_module flag. You can override
6357 # by either setting the environment variable LT_MULTI_MODULE
6358 # non-empty at configure time, or by adding -multi_module to the
6360 rm -rf libconftest.dylib*
6361 echo "int foo(void){return 1;}" > conftest.c
6362 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6363 -dynamiclib -Wl,-single_module conftest.c" >&5
6364 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6365 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6367 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6368 lt_cv_apple_cc_single_mod=yes
6370 cat conftest.err >&5
6372 rm -rf libconftest.dylib*
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6377 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6379 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6380 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6381 $as_echo_n "(cached) " >&6
6383 lt_cv_ld_exported_symbols_list=no
6384 save_LDFLAGS=$LDFLAGS
6385 echo "_main" > conftest.sym
6386 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388 /* end confdefs.h. */
6398 if ac_fn_c_try_link "$LINENO"; then :
6399 lt_cv_ld_exported_symbols_list=yes
6401 lt_cv_ld_exported_symbols_list=no
6403 rm -f core conftest.err conftest.$ac_objext \
6404 conftest$ac_exeext conftest.$ac_ext
6405 LDFLAGS="$save_LDFLAGS"
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6409 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6411 $as_echo_n "checking for -force_load linker flag... " >&6; }
6412 if ${lt_cv_ld_force_load+:} false; then :
6413 $as_echo_n "(cached) " >&6
6415 lt_cv_ld_force_load=no
6416 cat > conftest.c << _LT_EOF
6417 int forced_loaded() { return 2;}
6419 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6420 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6421 echo "$AR cru libconftest.a conftest.o" >&5
6422 $AR cru libconftest.a conftest.o 2>&5
6423 echo "$RANLIB libconftest.a" >&5
6424 $RANLIB libconftest.a 2>&5
6425 cat > conftest.c << _LT_EOF
6426 int main() { return 0;}
6428 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6429 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6431 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6432 lt_cv_ld_force_load=yes
6434 cat conftest.err >&5
6436 rm -f conftest.err libconftest.a conftest conftest.c
6437 rm -rf conftest.dSYM
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6441 $as_echo "$lt_cv_ld_force_load" >&6; }
6443 rhapsody* | darwin1.[012])
6444 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6446 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6447 darwin*) # darwin 5.x on
6448 # if running on 10.5 or later, the deployment target defaults
6449 # to the OS version, if on x86, and 10.4, the deployment
6450 # target defaults to 10.4. Don't you love it?
6451 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6452 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6453 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6455 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6457 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6461 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6462 _lt_dar_single_mod='$single_module'
6464 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6465 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6467 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6469 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6470 _lt_dsymutil='~$DSYMUTIL $lib || :'
6478 ac_cpp='$CPP $CPPFLAGS'
6479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6483 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6484 # On Suns, sometimes $CPP names a directory.
6485 if test -n "$CPP" && test -d "$CPP"; then
6488 if test -z "$CPP"; then
6489 if ${ac_cv_prog_CPP+:} false; then :
6490 $as_echo_n "(cached) " >&6
6492 # Double quotes because CPP needs to be expanded
6493 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6496 for ac_c_preproc_warn_flag in '' yes
6498 # Use a header file that comes with gcc, so configuring glibc
6499 # with a fresh cross-compiler works.
6500 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6501 # <limits.h> exists even on freestanding compilers.
6502 # On the NeXT, cc -E runs the code through the compiler's parser,
6503 # not just through cpp. "Syntax error" is here to catch this case.
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6507 # include <limits.h>
6509 # include <assert.h>
6513 if ac_fn_c_try_cpp "$LINENO"; then :
6516 # Broken: fails on valid input.
6519 rm -f conftest.err conftest.i conftest.$ac_ext
6521 # OK, works on sane cases. Now check whether nonexistent headers
6522 # can be detected and how.
6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h. */
6525 #include <ac_nonexistent.h>
6527 if ac_fn_c_try_cpp "$LINENO"; then :
6528 # Broken: success on invalid input.
6531 # Passes both tests.
6535 rm -f conftest.err conftest.i conftest.$ac_ext
6538 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6539 rm -f conftest.i conftest.err conftest.$ac_ext
6540 if $ac_preproc_ok; then :
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6553 $as_echo "$CPP" >&6; }
6555 for ac_c_preproc_warn_flag in '' yes
6557 # Use a header file that comes with gcc, so configuring glibc
6558 # with a fresh cross-compiler works.
6559 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6560 # <limits.h> exists even on freestanding compilers.
6561 # On the NeXT, cc -E runs the code through the compiler's parser,
6562 # not just through cpp. "Syntax error" is here to catch this case.
6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6566 # include <limits.h>
6568 # include <assert.h>
6572 if ac_fn_c_try_cpp "$LINENO"; then :
6575 # Broken: fails on valid input.
6578 rm -f conftest.err conftest.i conftest.$ac_ext
6580 # OK, works on sane cases. Now check whether nonexistent headers
6581 # can be detected and how.
6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6584 #include <ac_nonexistent.h>
6586 if ac_fn_c_try_cpp "$LINENO"; then :
6587 # Broken: success on invalid input.
6590 # Passes both tests.
6594 rm -f conftest.err conftest.i conftest.$ac_ext
6597 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6598 rm -f conftest.i conftest.err conftest.$ac_ext
6599 if $ac_preproc_ok; then :
6602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6604 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6605 See \`config.log' for more details" "$LINENO" 5; }
6609 ac_cpp='$CPP $CPPFLAGS'
6610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6616 $as_echo_n "checking for ANSI C header files... " >&6; }
6617 if ${ac_cv_header_stdc+:} false; then :
6618 $as_echo_n "(cached) " >&6
6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6635 if ac_fn_c_try_compile "$LINENO"; then :
6636 ac_cv_header_stdc=yes
6638 ac_cv_header_stdc=no
6640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6642 if test $ac_cv_header_stdc = yes; then
6643 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h. */
6649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6650 $EGREP "memchr" >/dev/null 2>&1; then :
6653 ac_cv_header_stdc=no
6659 if test $ac_cv_header_stdc = yes; then
6660 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h. */
6666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6667 $EGREP "free" >/dev/null 2>&1; then :
6670 ac_cv_header_stdc=no
6676 if test $ac_cv_header_stdc = yes; then
6677 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6678 if test "$cross_compiling" = yes; then :
6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h. */
6685 #if ((' ' & 0x0FF) == 0x020)
6686 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6687 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6689 # define ISLOWER(c) \
6690 (('a' <= (c) && (c) <= 'i') \
6691 || ('j' <= (c) && (c) <= 'r') \
6692 || ('s' <= (c) && (c) <= 'z'))
6693 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6696 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6701 for (i = 0; i < 256; i++)
6702 if (XOR (islower (i), ISLOWER (i))
6703 || toupper (i) != TOUPPER (i))
6708 if ac_fn_c_try_run "$LINENO"; then :
6711 ac_cv_header_stdc=no
6713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6714 conftest.$ac_objext conftest.beam conftest.$ac_ext
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6720 $as_echo "$ac_cv_header_stdc" >&6; }
6721 if test $ac_cv_header_stdc = yes; then
6723 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6727 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6728 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6729 inttypes.h stdint.h unistd.h
6731 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6732 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6734 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6735 cat >>confdefs.h <<_ACEOF
6736 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6744 for ac_header in dlfcn.h
6746 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6748 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6749 cat >>confdefs.h <<_ACEOF
6750 #define HAVE_DLFCN_H 1
6771 # Check whether --enable-shared was given.
6772 if test "${enable_shared+set}" = set; then :
6773 enableval=$enable_shared; p=${PACKAGE-default}
6775 yes) enable_shared=yes ;;
6776 no) enable_shared=no ;;
6779 # Look at the argument we got. We use all the common list separators.
6780 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6781 for pkg in $enableval; do
6783 if test "X$pkg" = "X$p"; then
6802 # Check whether --enable-static was given.
6803 if test "${enable_static+set}" = set; then :
6804 enableval=$enable_static; p=${PACKAGE-default}
6806 yes) enable_static=yes ;;
6807 no) enable_static=no ;;
6810 # Look at the argument we got. We use all the common list separators.
6811 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6812 for pkg in $enableval; do
6814 if test "X$pkg" = "X$p"; then
6834 # Check whether --with-pic was given.
6835 if test "${with_pic+set}" = set; then :
6836 withval=$with_pic; pic_mode="$withval"
6842 test -z "$pic_mode" && pic_mode=default
6850 # Check whether --enable-fast-install was given.
6851 if test "${enable_fast_install+set}" = set; then :
6852 enableval=$enable_fast_install; p=${PACKAGE-default}
6854 yes) enable_fast_install=yes ;;
6855 no) enable_fast_install=no ;;
6857 enable_fast_install=no
6858 # Look at the argument we got. We use all the common list separators.
6859 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6860 for pkg in $enableval; do
6862 if test "X$pkg" = "X$p"; then
6863 enable_fast_install=yes
6870 enable_fast_install=yes
6883 # This can be used to rebuild libtool when needed
6884 LIBTOOL_DEPS="$ltmain"
6886 # Always use our own libtool.
6887 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6914 test -z "$LN_S" && LN_S="ln -s"
6929 if test -n "${ZSH_VERSION+set}" ; then
6930 setopt NO_GLOB_SUBST
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6934 $as_echo_n "checking for objdir... " >&6; }
6935 if ${lt_cv_objdir+:} false; then :
6936 $as_echo_n "(cached) " >&6
6938 rm -f .libs 2>/dev/null
6939 mkdir .libs 2>/dev/null
6940 if test -d .libs; then
6943 # MS-DOS does not allow filenames that begin with a dot.
6946 rmdir .libs 2>/dev/null
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6949 $as_echo "$lt_cv_objdir" >&6; }
6950 objdir=$lt_cv_objdir
6956 cat >>confdefs.h <<_ACEOF
6957 #define LT_OBJDIR "$lt_cv_objdir/"
6965 # AIX sometimes has problems with the GCC collect2 program. For some
6966 # reason, if we set the COLLECT_NAMES environment variable, the problems
6967 # vanish in a puff of smoke.
6968 if test "X${COLLECT_NAMES+set}" != Xset; then
6970 export COLLECT_NAMES
6977 can_build_shared=yes
6979 # All known linkers require a `.a' archive for static linking (except MSVC,
6980 # which needs '.lib').
6983 with_gnu_ld="$lt_cv_prog_gnu_ld"
6986 old_CFLAGS="$CFLAGS"
6988 # Set sane defaults for various variables
6989 test -z "$CC" && CC=cc
6990 test -z "$LTCC" && LTCC=$CC
6991 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6992 test -z "$LD" && LD=ld
6993 test -z "$ac_objext" && ac_objext=o
6995 for cc_temp in $compiler""; do
6997 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6998 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7003 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7006 # Only perform the check for file, if the check method requires it
7007 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7008 case $deplibs_check_method in
7010 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7012 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7013 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7014 $as_echo_n "(cached) " >&6
7018 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7021 lt_save_MAGIC_CMD="$MAGIC_CMD"
7022 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7023 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7024 for ac_dir in $ac_dummy; do
7026 test -z "$ac_dir" && ac_dir=.
7027 if test -f $ac_dir/${ac_tool_prefix}file; then
7028 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7029 if test -n "$file_magic_test_file"; then
7030 case $deplibs_check_method in
7032 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7033 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7034 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7035 $EGREP "$file_magic_regex" > /dev/null; then
7040 *** Warning: the command libtool uses to detect shared libraries,
7041 *** $file_magic_cmd, produces output that libtool cannot recognize.
7042 *** The result is that libtool may fail to recognize shared libraries
7043 *** as such. This will affect the creation of libtool libraries that
7044 *** depend on shared libraries, but programs linked with such libtool
7045 *** libraries will work regardless of this problem. Nevertheless, you
7046 *** may want to report the problem to your system manager and/or to
7047 *** bug-libtool@gnu.org
7057 MAGIC_CMD="$lt_save_MAGIC_CMD"
7062 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7063 if test -n "$MAGIC_CMD"; then
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7065 $as_echo "$MAGIC_CMD" >&6; }
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068 $as_echo "no" >&6; }
7075 if test -z "$lt_cv_path_MAGIC_CMD"; then
7076 if test -n "$ac_tool_prefix"; then
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7078 $as_echo_n "checking for file... " >&6; }
7079 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7080 $as_echo_n "(cached) " >&6
7084 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7087 lt_save_MAGIC_CMD="$MAGIC_CMD"
7088 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7089 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7090 for ac_dir in $ac_dummy; do
7092 test -z "$ac_dir" && ac_dir=.
7093 if test -f $ac_dir/file; then
7094 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7095 if test -n "$file_magic_test_file"; then
7096 case $deplibs_check_method in
7098 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7099 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7100 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7101 $EGREP "$file_magic_regex" > /dev/null; then
7106 *** Warning: the command libtool uses to detect shared libraries,
7107 *** $file_magic_cmd, produces output that libtool cannot recognize.
7108 *** The result is that libtool may fail to recognize shared libraries
7109 *** as such. This will affect the creation of libtool libraries that
7110 *** depend on shared libraries, but programs linked with such libtool
7111 *** libraries will work regardless of this problem. Nevertheless, you
7112 *** may want to report the problem to your system manager and/or to
7113 *** bug-libtool@gnu.org
7123 MAGIC_CMD="$lt_save_MAGIC_CMD"
7128 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7129 if test -n "$MAGIC_CMD"; then
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7131 $as_echo "$MAGIC_CMD" >&6; }
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7134 $as_echo "no" >&6; }
7147 # Use C for the default configuration in the libtool script
7151 ac_cpp='$CPP $CPPFLAGS'
7152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7157 # Source file extension for C test sources.
7160 # Object file extension for compiled C test sources.
7164 # Code to be used in simple compile tests
7165 lt_simple_compile_test_code="int some_variable = 0;"
7167 # Code to be used in simple link tests
7168 lt_simple_link_test_code='int main(){return(0);}'
7176 # If no C compiler was specified, use CC.
7179 # If no C compiler flags were specified, use CFLAGS.
7180 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7182 # Allow CC to be a program name with arguments.
7185 # Save the default compiler, since it gets overwritten when the other
7186 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7187 compiler_DEFAULT=$CC
7189 # save warnings/boilerplate of simple test code
7190 ac_outfile=conftest.$ac_objext
7191 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7192 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7193 _lt_compiler_boilerplate=`cat conftest.err`
7196 ac_outfile=conftest.$ac_objext
7197 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7198 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7199 _lt_linker_boilerplate=`cat conftest.err`
7203 if test -n "$compiler"; then
7205 lt_prog_compiler_no_builtin_flag=
7207 if test "$GCC" = yes; then
7208 case $cc_basename in
7210 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7212 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7216 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7217 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7218 $as_echo_n "(cached) " >&6
7220 lt_cv_prog_compiler_rtti_exceptions=no
7221 ac_outfile=conftest.$ac_objext
7222 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7223 lt_compiler_flag="-fno-rtti -fno-exceptions"
7224 # Insert the option either (1) after the last *FLAGS variable, or
7225 # (2) before a word containing "conftest.", or (3) at the end.
7226 # Note that $ac_compile itself does not contain backslashes and begins
7227 # with a dollar sign (not a hyphen), so the echo should work correctly.
7228 # The option is referenced via a variable to avoid confusing sed.
7229 lt_compile=`echo "$ac_compile" | $SED \
7230 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7232 -e 's:$: $lt_compiler_flag:'`
7233 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7234 (eval "$lt_compile" 2>conftest.err)
7236 cat conftest.err >&5
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 if (exit $ac_status) && test -s "$ac_outfile"; then
7239 # The compiler can only warn and ignore the option if not recognized
7240 # So say no if there are warnings other than the usual output.
7241 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7242 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7243 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7244 lt_cv_prog_compiler_rtti_exceptions=yes
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7251 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7253 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7254 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7266 lt_prog_compiler_wl=
7267 lt_prog_compiler_pic=
7268 lt_prog_compiler_static=
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7271 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7273 if test "$GCC" = yes; then
7274 lt_prog_compiler_wl='-Wl,'
7275 lt_prog_compiler_static='-static'
7279 # All AIX code is PIC.
7280 if test "$host_cpu" = ia64; then
7281 # AIX 5 now supports IA64 processor
7282 lt_prog_compiler_static='-Bstatic'
7289 # see comment about AmigaOS4 .so support
7290 lt_prog_compiler_pic='-fPIC'
7293 # FIXME: we need at least 68020 code to build shared libraries, but
7294 # adding the `-m68020' flag to GCC prevents building anything better,
7296 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7301 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7302 # PIC is the default for these OSes.
7305 mingw* | cygwin* | pw32* | os2* | cegcc*)
7306 # This hack is so that the source file can tell whether it is being
7307 # built for inclusion in a dll (and should export symbols for example).
7308 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7309 # (--disable-auto-import) libraries
7310 lt_prog_compiler_pic='-DDLL_EXPORT'
7313 darwin* | rhapsody*)
7314 # PIC is the default on this platform
7315 # Common symbols not allowed in MH_DYLIB files
7316 lt_prog_compiler_pic='-fno-common'
7320 # PIC is the default for Haiku.
7321 # The "-static" flag exists, but is broken.
7322 lt_prog_compiler_static=
7326 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7327 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7328 # sets the default TLS model and affects inlining.
7334 lt_prog_compiler_pic='-fPIC'
7340 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7341 # Instead, we relocate shared libraries at runtime.
7345 # Just because we use GCC doesn't mean we suddenly get shared libraries
7346 # on systems that don't support them.
7347 lt_prog_compiler_can_build_shared=no
7352 # QNX uses GNU C++, but need to define -shared option too, otherwise
7354 lt_prog_compiler_pic='-fPIC -shared'
7358 if test -d /usr/nec; then
7359 lt_prog_compiler_pic=-Kconform_pic
7364 lt_prog_compiler_pic='-fPIC'
7368 case $cc_basename in
7369 nvcc*) # Cuda Compiler Driver 2.2
7370 lt_prog_compiler_wl='-Xlinker '
7371 lt_prog_compiler_pic='-Xcompiler -fPIC'
7375 # PORTME Check for flag to pass linker flags through the system compiler.
7378 lt_prog_compiler_wl='-Wl,'
7379 if test "$host_cpu" = ia64; then
7380 # AIX 5 now supports IA64 processor
7381 lt_prog_compiler_static='-Bstatic'
7383 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7387 mingw* | cygwin* | pw32* | os2* | cegcc*)
7388 # This hack is so that the source file can tell whether it is being
7389 # built for inclusion in a dll (and should export symbols for example).
7390 lt_prog_compiler_pic='-DDLL_EXPORT'
7393 hpux9* | hpux10* | hpux11*)
7394 lt_prog_compiler_wl='-Wl,'
7395 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7402 lt_prog_compiler_pic='+Z'
7405 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7406 lt_prog_compiler_static='${wl}-a ${wl}archive'
7409 irix5* | irix6* | nonstopux*)
7410 lt_prog_compiler_wl='-Wl,'
7411 # PIC (with -KPIC) is the default.
7412 lt_prog_compiler_static='-non_shared'
7415 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7416 case $cc_basename in
7417 # old Intel for x86_64 which still supported -KPIC.
7419 lt_prog_compiler_wl='-Wl,'
7420 lt_prog_compiler_pic='-KPIC'
7421 lt_prog_compiler_static='-static'
7423 # icc used to be incompatible with GCC.
7424 # ICC 10 doesn't accept -KPIC any more.
7426 lt_prog_compiler_wl='-Wl,'
7427 lt_prog_compiler_pic='-fPIC'
7428 lt_prog_compiler_static='-static'
7430 # Lahey Fortran 8.1.
7432 lt_prog_compiler_wl='-Wl,'
7433 lt_prog_compiler_pic='--shared'
7434 lt_prog_compiler_static='--static'
7436 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7437 # Portland Group compilers (*not* the Pentium gcc compiler,
7438 # which looks to be a dead project)
7439 lt_prog_compiler_wl='-Wl,'
7440 lt_prog_compiler_pic='-fpic'
7441 lt_prog_compiler_static='-Bstatic'
7444 lt_prog_compiler_wl='-Wl,'
7445 # All Alpha code is PIC.
7446 lt_prog_compiler_static='-non_shared'
7448 xl* | bgxl* | bgf* | mpixl*)
7449 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7450 lt_prog_compiler_wl='-Wl,'
7451 lt_prog_compiler_pic='-qpic'
7452 lt_prog_compiler_static='-qstaticlink'
7455 case `$CC -V 2>&1 | sed 5q` in
7456 *Sun\ F* | *Sun*Fortran*)
7457 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7458 lt_prog_compiler_pic='-KPIC'
7459 lt_prog_compiler_static='-Bstatic'
7460 lt_prog_compiler_wl=''
7464 lt_prog_compiler_pic='-KPIC'
7465 lt_prog_compiler_static='-Bstatic'
7466 lt_prog_compiler_wl='-Wl,'
7474 lt_prog_compiler_pic='-KPIC'
7475 lt_prog_compiler_static='-Bstatic'
7479 # QNX uses GNU C++, but need to define -shared option too, otherwise
7481 lt_prog_compiler_pic='-fPIC -shared'
7484 osf3* | osf4* | osf5*)
7485 lt_prog_compiler_wl='-Wl,'
7486 # All OSF/1 code is PIC.
7487 lt_prog_compiler_static='-non_shared'
7491 lt_prog_compiler_static='-non_shared'
7495 lt_prog_compiler_pic='-KPIC'
7496 lt_prog_compiler_static='-Bstatic'
7497 case $cc_basename in
7498 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7499 lt_prog_compiler_wl='-Qoption ld ';;
7501 lt_prog_compiler_wl='-Wl,';;
7506 lt_prog_compiler_wl='-Qoption ld '
7507 lt_prog_compiler_pic='-PIC'
7508 lt_prog_compiler_static='-Bstatic'
7511 sysv4 | sysv4.2uw2* | sysv4.3*)
7512 lt_prog_compiler_wl='-Wl,'
7513 lt_prog_compiler_pic='-KPIC'
7514 lt_prog_compiler_static='-Bstatic'
7518 if test -d /usr/nec ;then
7519 lt_prog_compiler_pic='-Kconform_pic'
7520 lt_prog_compiler_static='-Bstatic'
7524 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7525 lt_prog_compiler_wl='-Wl,'
7526 lt_prog_compiler_pic='-KPIC'
7527 lt_prog_compiler_static='-Bstatic'
7531 lt_prog_compiler_wl='-Wl,'
7532 lt_prog_compiler_can_build_shared=no
7536 lt_prog_compiler_pic='-pic'
7537 lt_prog_compiler_static='-Bstatic'
7541 lt_prog_compiler_can_build_shared=no
7547 # For platforms which do not support PIC, -DPIC is meaningless:
7549 lt_prog_compiler_pic=
7552 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7556 $as_echo "$lt_prog_compiler_pic" >&6; }
7564 # Check to make sure the PIC flag actually works.
7566 if test -n "$lt_prog_compiler_pic"; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7568 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7569 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7570 $as_echo_n "(cached) " >&6
7572 lt_cv_prog_compiler_pic_works=no
7573 ac_outfile=conftest.$ac_objext
7574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7575 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7576 # Insert the option either (1) after the last *FLAGS variable, or
7577 # (2) before a word containing "conftest.", or (3) at the end.
7578 # Note that $ac_compile itself does not contain backslashes and begins
7579 # with a dollar sign (not a hyphen), so the echo should work correctly.
7580 # The option is referenced via a variable to avoid confusing sed.
7581 lt_compile=`echo "$ac_compile" | $SED \
7582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7584 -e 's:$: $lt_compiler_flag:'`
7585 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7586 (eval "$lt_compile" 2>conftest.err)
7588 cat conftest.err >&5
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 if (exit $ac_status) && test -s "$ac_outfile"; then
7591 # The compiler can only warn and ignore the option if not recognized
7592 # So say no if there are warnings other than the usual output.
7593 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7594 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7595 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7596 lt_cv_prog_compiler_pic_works=yes
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7603 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7605 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7606 case $lt_prog_compiler_pic in
7608 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7611 lt_prog_compiler_pic=
7612 lt_prog_compiler_can_build_shared=no
7623 # Check to make sure the static flag actually works.
7625 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7627 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7628 if ${lt_cv_prog_compiler_static_works+:} false; then :
7629 $as_echo_n "(cached) " >&6
7631 lt_cv_prog_compiler_static_works=no
7632 save_LDFLAGS="$LDFLAGS"
7633 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7634 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7635 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7636 # The linker can only warn and ignore the option if not recognized
7637 # So say no if there are warnings
7638 if test -s conftest.err; then
7639 # Append any errors to the config.log.
7640 cat conftest.err 1>&5
7641 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7643 if diff conftest.exp conftest.er2 >/dev/null; then
7644 lt_cv_prog_compiler_static_works=yes
7647 lt_cv_prog_compiler_static_works=yes
7651 LDFLAGS="$save_LDFLAGS"
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7655 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7657 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7660 lt_prog_compiler_static=
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7670 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7671 if ${lt_cv_prog_compiler_c_o+:} false; then :
7672 $as_echo_n "(cached) " >&6
7674 lt_cv_prog_compiler_c_o=no
7675 $RM -r conftest 2>/dev/null
7679 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7681 lt_compiler_flag="-o out/conftest2.$ac_objext"
7682 # Insert the option either (1) after the last *FLAGS variable, or
7683 # (2) before a word containing "conftest.", or (3) at the end.
7684 # Note that $ac_compile itself does not contain backslashes and begins
7685 # with a dollar sign (not a hyphen), so the echo should work correctly.
7686 lt_compile=`echo "$ac_compile" | $SED \
7687 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7688 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7689 -e 's:$: $lt_compiler_flag:'`
7690 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7691 (eval "$lt_compile" 2>out/conftest.err)
7693 cat out/conftest.err >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7697 # The compiler can only warn and ignore the option if not recognized
7698 # So say no if there are warnings
7699 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7700 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7701 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7702 lt_cv_prog_compiler_c_o=yes
7707 # SGI C++ compiler will create directory out/ii_files/ for
7708 # template instantiation
7709 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7710 $RM out/* && rmdir out
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7717 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7725 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7726 if ${lt_cv_prog_compiler_c_o+:} false; then :
7727 $as_echo_n "(cached) " >&6
7729 lt_cv_prog_compiler_c_o=no
7730 $RM -r conftest 2>/dev/null
7734 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7736 lt_compiler_flag="-o out/conftest2.$ac_objext"
7737 # Insert the option either (1) after the last *FLAGS variable, or
7738 # (2) before a word containing "conftest.", or (3) at the end.
7739 # Note that $ac_compile itself does not contain backslashes and begins
7740 # with a dollar sign (not a hyphen), so the echo should work correctly.
7741 lt_compile=`echo "$ac_compile" | $SED \
7742 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7743 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7744 -e 's:$: $lt_compiler_flag:'`
7745 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7746 (eval "$lt_compile" 2>out/conftest.err)
7748 cat out/conftest.err >&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7752 # The compiler can only warn and ignore the option if not recognized
7753 # So say no if there are warnings
7754 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7755 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7756 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7757 lt_cv_prog_compiler_c_o=yes
7762 # SGI C++ compiler will create directory out/ii_files/ for
7763 # template instantiation
7764 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7765 $RM out/* && rmdir out
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7772 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7777 hard_links="nottested"
7778 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7779 # do not overwrite the value of need_locks provided by the user
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7781 $as_echo_n "checking if we can lock with hard links... " >&6; }
7784 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7786 ln conftest.a conftest.b 2>&5 || hard_links=no
7787 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7789 $as_echo "$hard_links" >&6; }
7790 if test "$hard_links" = no; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7792 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7805 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7808 allow_undefined_flag=
7809 always_export_symbols=no
7811 archive_expsym_cmds=
7812 compiler_needs_object=no
7813 enable_shared_with_static_runtimes=no
7814 export_dynamic_flag_spec=
7815 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7816 hardcode_automatic=no
7818 hardcode_direct_absolute=no
7819 hardcode_libdir_flag_spec=
7820 hardcode_libdir_flag_spec_ld=
7821 hardcode_libdir_separator=
7823 hardcode_shlibpath_var=unsupported
7825 link_all_deplibs=unknown
7828 old_archive_from_new_cmds=
7829 old_archive_from_expsyms_cmds=
7830 thread_safe_flag_spec=
7831 whole_archive_flag_spec=
7832 # include_expsyms should be a list of space-separated symbols to be *always*
7833 # included in the symbol list
7835 # exclude_expsyms can be an extended regexp of symbols to exclude
7836 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7837 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7838 # as well as any symbol that contains `d'.
7839 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7840 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7841 # platforms (ab)use it in PIC code, but their linkers get confused if
7842 # the symbol is explicitly referenced. Since portable code cannot
7843 # rely on this symbol name, it's probably fine to never include it in
7844 # preloaded symbol tables.
7845 # Exclude shared library initialization/finalization symbols.
7846 extract_expsyms_cmds=
7849 cygwin* | mingw* | pw32* | cegcc*)
7850 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7851 # When not using gcc, we currently assume that we are using
7852 # Microsoft Visual C++.
7853 if test "$GCC" != yes; then
7858 # we just hope/assume this is gcc and not c89 (= MSVC++)
7868 # On some targets, GNU ld is compatible enough with the native linker
7869 # that we're better off using the native interface for both.
7870 lt_use_gnu_ld_interface=no
7871 if test "$with_gnu_ld" = yes; then
7874 # The AIX port of GNU ld has always aspired to compatibility
7875 # with the native linker. However, as the warning in the GNU ld
7876 # block says, versions before 2.19.5* couldn't really create working
7877 # shared libraries, regardless of the interface used.
7878 case `$LD -v 2>&1` in
7879 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7880 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
7881 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
7883 lt_use_gnu_ld_interface=yes
7888 lt_use_gnu_ld_interface=yes
7893 if test "$lt_use_gnu_ld_interface" = yes; then
7894 # If archive_cmds runs LD, not CC, wlarc should be empty
7897 # Set some defaults for GNU ld with shared library support. These
7898 # are reset later if shared libraries are not supported. Putting them
7899 # here allows them to be overridden if necessary.
7900 runpath_var=LD_RUN_PATH
7901 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7902 export_dynamic_flag_spec='${wl}--export-dynamic'
7903 # ancient GNU ld didn't support --whole-archive et. al.
7904 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7905 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7907 whole_archive_flag_spec=
7909 supports_anon_versioning=no
7910 case `$LD -v 2>&1` in
7911 *GNU\ gold*) supports_anon_versioning=yes ;;
7912 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7913 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7914 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7915 *\ 2.11.*) ;; # other 2.11 versions
7916 *) supports_anon_versioning=yes ;;
7919 # See if GNU ld supports shared libraries.
7922 # On AIX/PPC, the GNU linker is very broken
7923 if test "$host_cpu" != ia64; then
7927 *** Warning: the GNU linker, at least up to release 2.19, is reported
7928 *** to be unable to reliably create shared libraries on AIX.
7929 *** Therefore, libtool is disabling shared libraries support. If you
7930 *** really care for shared libraries, you may want to install binutils
7931 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
7932 *** You will then need to restart the configuration process.
7941 # see comment about AmigaOS4 .so support
7942 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7943 archive_expsym_cmds=''
7946 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)'
7947 hardcode_libdir_flag_spec='-L$libdir'
7948 hardcode_minus_L=yes
7954 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7955 allow_undefined_flag=unsupported
7956 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7957 # support --undefined. This deserves some investigation. FIXME
7958 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7964 cygwin* | mingw* | pw32* | cegcc*)
7965 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7966 # as there is no search path for DLLs.
7967 hardcode_libdir_flag_spec='-L$libdir'
7968 export_dynamic_flag_spec='${wl}--export-all-symbols'
7969 allow_undefined_flag=unsupported
7970 always_export_symbols=no
7971 enable_shared_with_static_runtimes=yes
7972 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7974 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7975 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7976 # If the export-symbols file already is a .def file (1st line
7977 # is EXPORTS), use it as is; otherwise, prepend...
7978 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7979 cp $export_symbols $output_objdir/$soname.def;
7981 echo EXPORTS > $output_objdir/$soname.def;
7982 cat $export_symbols >> $output_objdir/$soname.def;
7984 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7991 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7992 link_all_deplibs=yes
7997 hardcode_shlibpath_var=no
7998 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7999 export_dynamic_flag_spec='${wl}-E'
8000 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8001 # Instead, shared libraries are loaded at an image base (0x10000000 by
8002 # default) and relocated if they conflict, which is a slow very memory
8003 # consuming and fragmenting process. To avoid this, we pick a random,
8004 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8005 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8006 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8007 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'
8010 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8012 if test "$host_os" = linux-dietlibc; then
8013 case $cc_basename in
8014 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8017 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8018 && test "$tmp_diet" = no
8021 tmp_sharedflag='-shared'
8022 case $cc_basename,$host_cpu in
8023 pgcc*) # Portland Group C compiler
8024 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'
8025 tmp_addflag=' $pic_flag'
8027 pgf77* | pgf90* | pgf95* | pgfortran*)
8028 # Portland Group f77 and f90 compilers
8029 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'
8030 tmp_addflag=' $pic_flag -Mnomain' ;;
8031 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8032 tmp_addflag=' -i_dynamic' ;;
8033 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8034 tmp_addflag=' -i_dynamic -nofor_main' ;;
8035 ifc* | ifort*) # Intel Fortran compiler
8036 tmp_addflag=' -nofor_main' ;;
8037 lf95*) # Lahey Fortran 8.1
8038 whole_archive_flag_spec=
8039 tmp_sharedflag='--shared' ;;
8040 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8041 tmp_sharedflag='-qmkshrobj'
8043 nvcc*) # Cuda Compiler Driver 2.2
8044 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'
8045 compiler_needs_object=yes
8048 case `$CC -V 2>&1 | sed 5q` in
8049 *Sun\ C*) # Sun C 5.9
8050 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'
8051 compiler_needs_object=yes
8052 tmp_sharedflag='-G' ;;
8053 *Sun\ F*) # Sun Fortran 8.3
8054 tmp_sharedflag='-G' ;;
8056 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8058 if test "x$supports_anon_versioning" = xyes; then
8059 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8060 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8061 echo "local: *; };" >> $output_objdir/$libname.ver~
8062 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8065 case $cc_basename in
8066 xlf* | bgf* | bgxlf* | mpixlf*)
8067 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8068 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8069 hardcode_libdir_flag_spec=
8070 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8071 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8072 if test "x$supports_anon_versioning" = xyes; then
8073 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8074 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8075 echo "local: *; };" >> $output_objdir/$libname.ver~
8076 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8086 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8087 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8091 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8096 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8100 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8101 *** create shared libraries on Solaris systems. Therefore, libtool
8102 *** is disabling shared libraries support. We urge you to upgrade GNU
8103 *** binutils to release 2.9.1 or newer. Another option is to modify
8104 *** your PATH or compiler configuration so that the native linker is
8105 *** used, and then restart.
8108 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8110 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8116 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8117 case `$LD -v 2>&1` in
8118 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8122 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8123 *** reliably create shared libraries on SCO systems. Therefore, libtool
8124 *** is disabling shared libraries support. We urge you to upgrade GNU
8125 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8126 *** your PATH or compiler configuration so that the native linker is
8127 *** used, and then restart.
8132 # For security reasons, it is highly recommended that you always
8133 # use absolute paths for naming shared libraries, and exclude the
8134 # DT_RUNPATH tag from executables and libraries. But doing so
8135 # requires that you compile everything twice, which is a pain.
8136 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8137 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8138 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8139 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8148 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8151 hardcode_shlibpath_var=no
8155 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8156 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8157 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8164 if test "$ld_shlibs" = no; then
8166 hardcode_libdir_flag_spec=
8167 export_dynamic_flag_spec=
8168 whole_archive_flag_spec=
8171 # PORTME fill in a description of your system's linker (not GNU ld)
8174 allow_undefined_flag=unsupported
8175 always_export_symbols=yes
8176 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'
8177 # Note: this linker hardcodes the directories in LIBPATH if there
8178 # are no directories specified by -L.
8179 hardcode_minus_L=yes
8180 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8181 # Neither direct hardcoding nor static linking is supported with a
8183 hardcode_direct=unsupported
8188 if test "$host_cpu" = ia64; then
8189 # On IA64, the linker does run time linking by default, so we don't
8190 # have to do anything special.
8191 aix_use_runtimelinking=no
8192 exp_sym_flag='-Bexport'
8195 # If we're using GNU nm, then we don't want the "-C" option.
8196 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8197 # Also, AIX nm treats weak defined symbols like other global
8198 # defined symbols, whereas GNU nm marks them as "W".
8199 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8200 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'
8202 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'
8204 aix_use_runtimelinking=no
8206 # Test if we are trying to use run time linking or normal
8207 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8208 # need to do runtime linking.
8209 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8210 for ld_flag in $LDFLAGS; do
8211 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8212 aix_use_runtimelinking=yes
8219 exp_sym_flag='-bexport'
8220 no_entry_flag='-bnoentry'
8223 # When large executables or shared objects are built, AIX ld can
8224 # have problems creating the table of contents. If linking a library
8225 # or program results in "error TOC overflow" add -mminimal-toc to
8226 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8227 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8231 hardcode_direct_absolute=yes
8232 hardcode_libdir_separator=':'
8233 link_all_deplibs=yes
8234 file_list_spec='${wl}-f,'
8236 if test "$GCC" = yes; then
8237 case $host_os in aix4.[012]|aix4.[012].*)
8238 # We only want to do this on AIX 4.2 and lower, the check
8239 # below for broken collect2 doesn't work under 4.3+
8240 collect2name=`${CC} -print-prog-name=collect2`
8241 if test -f "$collect2name" &&
8242 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8244 # We have reworked collect2
8247 # We have old collect2
8248 hardcode_direct=unsupported
8249 # It fails to find uninstalled libraries when the uninstalled
8250 # path is not listed in the libpath. Setting hardcode_minus_L
8251 # to unsupported forces relinking
8252 hardcode_minus_L=yes
8253 hardcode_libdir_flag_spec='-L$libdir'
8254 hardcode_libdir_separator=
8258 shared_flag='-shared'
8259 if test "$aix_use_runtimelinking" = yes; then
8260 shared_flag="$shared_flag "'${wl}-G'
8264 if test "$host_cpu" = ia64; then
8265 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8266 # chokes on -Wl,-G. The following line is correct:
8269 if test "$aix_use_runtimelinking" = yes; then
8270 shared_flag='${wl}-G'
8272 shared_flag='${wl}-bM:SRE'
8277 export_dynamic_flag_spec='${wl}-bexpall'
8278 # It seems that -bexpall does not export symbols beginning with
8279 # underscore (_), so it is better to generate a list of symbols to export.
8280 always_export_symbols=yes
8281 if test "$aix_use_runtimelinking" = yes; then
8282 # Warning - without using the other runtime loading flags (-brtl),
8283 # -berok will link without error, but may produce a broken library.
8284 allow_undefined_flag='-berok'
8285 # Determine the default libpath from the value encoded in an
8287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h. */
8298 if ac_fn_c_try_link "$LINENO"; then :
8300 lt_aix_libpath_sed='
8301 /Import File Strings/,/^$/ {
8307 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8308 # Check for a 64-bit object if we didn't find anything.
8309 if test -z "$aix_libpath"; then
8310 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8313 rm -f core conftest.err conftest.$ac_objext \
8314 conftest$ac_exeext conftest.$ac_ext
8315 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8317 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8318 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"
8320 if test "$host_cpu" = ia64; then
8321 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8322 allow_undefined_flag="-z nodefs"
8323 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"
8325 # Determine the default libpath from the value encoded in an
8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8338 if ac_fn_c_try_link "$LINENO"; then :
8340 lt_aix_libpath_sed='
8341 /Import File Strings/,/^$/ {
8347 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8348 # Check for a 64-bit object if we didn't find anything.
8349 if test -z "$aix_libpath"; then
8350 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8353 rm -f core conftest.err conftest.$ac_objext \
8354 conftest$ac_exeext conftest.$ac_ext
8355 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8357 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8358 # Warning - without using the other run time loading flags,
8359 # -berok will link without error, but may produce a broken library.
8360 no_undefined_flag=' ${wl}-bernotok'
8361 allow_undefined_flag=' ${wl}-berok'
8362 if test "$with_gnu_ld" = yes; then
8363 # We only use this code for GNU lds that support --whole-archive.
8364 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8366 # Exported symbols can be pulled into shared objects from archives
8367 whole_archive_flag_spec='$convenience'
8369 archive_cmds_need_lc=yes
8370 # This is similar to how AIX traditionally builds its shared libraries.
8371 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'
8379 # see comment about AmigaOS4 .so support
8380 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8381 archive_expsym_cmds=''
8384 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)'
8385 hardcode_libdir_flag_spec='-L$libdir'
8386 hardcode_minus_L=yes
8392 export_dynamic_flag_spec=-rdynamic
8395 cygwin* | mingw* | pw32* | cegcc*)
8396 # When not using gcc, we currently assume that we are using
8397 # Microsoft Visual C++.
8398 # hardcode_libdir_flag_spec is actually meaningless, as there is
8399 # no search path for DLLs.
8400 hardcode_libdir_flag_spec=' '
8401 allow_undefined_flag=unsupported
8402 # Tell ltmain to make .lib files, not .a files.
8404 # Tell ltmain to make .dll files, not .so files.
8406 # FIXME: Setting linknames here is a bad hack.
8407 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8408 # The linker will automatically build a .lib file if we build a DLL.
8409 old_archive_from_new_cmds='true'
8410 # FIXME: Should let the user specify the lib program.
8411 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8412 fix_srcfile_path='`cygpath -w "$srcfile"`'
8413 enable_shared_with_static_runtimes=yes
8416 darwin* | rhapsody*)
8419 archive_cmds_need_lc=no
8421 hardcode_automatic=yes
8422 hardcode_shlibpath_var=unsupported
8423 if test "$lt_cv_ld_force_load" = "yes"; then
8424 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\"`'
8426 whole_archive_flag_spec=''
8428 link_all_deplibs=yes
8429 allow_undefined_flag="$_lt_dar_allow_undefined"
8430 case $cc_basename in
8431 ifort*) _lt_dar_can_shared=yes ;;
8432 *) _lt_dar_can_shared=$GCC ;;
8434 if test "$_lt_dar_can_shared" = "yes"; then
8435 output_verbose_link_cmd=func_echo_all
8436 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8437 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8438 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}"
8439 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}"
8448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8449 hardcode_libdir_flag_spec='-L$libdir'
8450 hardcode_shlibpath_var=no
8457 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8458 # support. Future versions do this automatically, but an explicit c++rt0.o
8459 # does not break anything, and helps significantly (at the cost of a little
8462 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8463 hardcode_libdir_flag_spec='-R$libdir'
8465 hardcode_shlibpath_var=no
8468 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8470 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8472 hardcode_minus_L=yes
8473 hardcode_shlibpath_var=no
8476 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8477 freebsd* | dragonfly*)
8478 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8479 hardcode_libdir_flag_spec='-R$libdir'
8481 hardcode_shlibpath_var=no
8485 if test "$GCC" = yes; then
8486 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'
8488 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'
8490 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8491 hardcode_libdir_separator=:
8494 # hardcode_minus_L: Not really in the search PATH,
8495 # but as the default location of the library.
8496 hardcode_minus_L=yes
8497 export_dynamic_flag_spec='${wl}-E'
8501 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8502 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8504 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8506 if test "$with_gnu_ld" = no; then
8507 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8508 hardcode_libdir_flag_spec_ld='+b $libdir'
8509 hardcode_libdir_separator=:
8511 hardcode_direct_absolute=yes
8512 export_dynamic_flag_spec='${wl}-E'
8513 # hardcode_minus_L: Not really in the search PATH,
8514 # but as the default location of the library.
8515 hardcode_minus_L=yes
8520 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8523 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8526 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8529 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8535 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8538 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8542 # Older versions of the 11.00 compiler do not understand -b yet
8543 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8545 $as_echo_n "checking if $CC understands -b... " >&6; }
8546 if ${lt_cv_prog_compiler__b+:} false; then :
8547 $as_echo_n "(cached) " >&6
8549 lt_cv_prog_compiler__b=no
8550 save_LDFLAGS="$LDFLAGS"
8551 LDFLAGS="$LDFLAGS -b"
8552 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8553 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8554 # The linker can only warn and ignore the option if not recognized
8555 # So say no if there are warnings
8556 if test -s conftest.err; then
8557 # Append any errors to the config.log.
8558 cat conftest.err 1>&5
8559 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8560 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8561 if diff conftest.exp conftest.er2 >/dev/null; then
8562 lt_cv_prog_compiler__b=yes
8565 lt_cv_prog_compiler__b=yes
8569 LDFLAGS="$save_LDFLAGS"
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8573 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8575 if test x"$lt_cv_prog_compiler__b" = xyes; then
8576 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8578 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8584 if test "$with_gnu_ld" = no; then
8585 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8586 hardcode_libdir_separator=:
8591 hardcode_shlibpath_var=no
8595 hardcode_direct_absolute=yes
8596 export_dynamic_flag_spec='${wl}-E'
8598 # hardcode_minus_L: Not really in the search PATH,
8599 # but as the default location of the library.
8600 hardcode_minus_L=yes
8606 irix5* | irix6* | nonstopux*)
8607 if test "$GCC" = yes; then
8608 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'
8609 # Try to use the -exported_symbol ld option, if it does not
8610 # work, assume that -exports_file does not work either and
8611 # implicitly export all symbols.
8612 save_LDFLAGS="$LDFLAGS"
8613 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h. */
8618 if ac_fn_c_try_link "$LINENO"; then :
8619 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'
8622 rm -f core conftest.err conftest.$ac_objext \
8623 conftest$ac_exeext conftest.$ac_ext
8624 LDFLAGS="$save_LDFLAGS"
8626 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'
8627 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'
8629 archive_cmds_need_lc='no'
8630 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8631 hardcode_libdir_separator=:
8633 link_all_deplibs=yes
8637 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8638 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8640 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8642 hardcode_libdir_flag_spec='-R$libdir'
8644 hardcode_shlibpath_var=no
8648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8650 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8651 hardcode_libdir_separator=:
8652 hardcode_shlibpath_var=no
8659 if test -f /usr/libexec/ld.so; then
8661 hardcode_shlibpath_var=no
8662 hardcode_direct_absolute=yes
8663 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8664 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8665 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8666 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8667 export_dynamic_flag_spec='${wl}-E'
8670 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8671 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8672 hardcode_libdir_flag_spec='-R$libdir'
8675 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8676 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8686 hardcode_libdir_flag_spec='-L$libdir'
8687 hardcode_minus_L=yes
8688 allow_undefined_flag=unsupported
8689 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'
8690 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8694 if test "$GCC" = yes; then
8695 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8696 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'
8698 allow_undefined_flag=' -expect_unresolved \*'
8699 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'
8701 archive_cmds_need_lc='no'
8702 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8703 hardcode_libdir_separator=:
8706 osf4* | osf5*) # as osf3* with the addition of -msym flag
8707 if test "$GCC" = yes; then
8708 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8709 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'
8710 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8712 allow_undefined_flag=' -expect_unresolved \*'
8713 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'
8714 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~
8715 $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'
8717 # Both c and cxx compiler support -rpath directly
8718 hardcode_libdir_flag_spec='-rpath $libdir'
8720 archive_cmds_need_lc='no'
8721 hardcode_libdir_separator=:
8725 no_undefined_flag=' -z defs'
8726 if test "$GCC" = yes; then
8728 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8729 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8730 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8732 case `$CC -V 2>&1` in
8735 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8736 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8737 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8741 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8742 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8743 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8747 hardcode_libdir_flag_spec='-R$libdir'
8748 hardcode_shlibpath_var=no
8750 solaris2.[0-5] | solaris2.[0-5].*) ;;
8752 # The compiler driver will combine and reorder linker options,
8753 # but understands `-z linker_flag'. GCC discards it without `$wl',
8754 # but is careful enough not to reorder.
8755 # Supported since Solaris 2.6 (maybe 2.5.1?)
8756 if test "$GCC" = yes; then
8757 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8759 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8763 link_all_deplibs=yes
8767 if test "x$host_vendor" = xsequent; then
8768 # Use $CC to link under sequent, because it throws in some extra .o
8769 # files that make .init and .fini sections work.
8770 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8772 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8774 hardcode_libdir_flag_spec='-L$libdir'
8776 hardcode_minus_L=yes
8777 hardcode_shlibpath_var=no
8781 case $host_vendor in
8783 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8784 hardcode_direct=yes # is this really true???
8787 ## LD is ld it makes a PLAMLIB
8788 ## CC just makes a GrossModule.
8789 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8790 reload_cmds='$CC -r -o $output$reload_objs'
8794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8795 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8798 runpath_var='LD_RUN_PATH'
8799 hardcode_shlibpath_var=no
8803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8804 hardcode_shlibpath_var=no
8805 export_dynamic_flag_spec='-Bexport'
8809 if test -d /usr/nec; then
8810 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8811 hardcode_shlibpath_var=no
8812 runpath_var=LD_RUN_PATH
8813 hardcode_runpath_var=yes
8818 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8819 no_undefined_flag='${wl}-z,text'
8820 archive_cmds_need_lc=no
8821 hardcode_shlibpath_var=no
8822 runpath_var='LD_RUN_PATH'
8824 if test "$GCC" = yes; then
8825 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8826 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8828 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8829 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8833 sysv5* | sco3.2v5* | sco5v6*)
8834 # Note: We can NOT use -z defs as we might desire, because we do not
8835 # link with -lc, and that would cause any symbols used from libc to
8836 # always be unresolved, which means just about no library would
8837 # ever link correctly. If we're not using GNU ld we use -z text
8838 # though, which does catch some bad symbols but isn't as heavy-handed
8840 no_undefined_flag='${wl}-z,text'
8841 allow_undefined_flag='${wl}-z,nodefs'
8842 archive_cmds_need_lc=no
8843 hardcode_shlibpath_var=no
8844 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8845 hardcode_libdir_separator=':'
8846 link_all_deplibs=yes
8847 export_dynamic_flag_spec='${wl}-Bexport'
8848 runpath_var='LD_RUN_PATH'
8850 if test "$GCC" = yes; then
8851 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8852 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8854 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8855 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8860 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8861 hardcode_libdir_flag_spec='-L$libdir'
8862 hardcode_shlibpath_var=no
8870 if test x$host_vendor = xsni; then
8872 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8873 export_dynamic_flag_spec='${wl}-Blargedynsym'
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8880 $as_echo "$ld_shlibs" >&6; }
8881 test "$ld_shlibs" = no && can_build_shared=no
8883 with_gnu_ld=$with_gnu_ld
8900 # Do we need to explicitly link libc?
8902 case "x$archive_cmds_need_lc" in
8904 # Assume -lc should be added
8905 archive_cmds_need_lc=yes
8907 if test "$enable_shared" = yes && test "$GCC" = yes; then
8908 case $archive_cmds in
8910 # FIXME: we may have to deal with multi-command sequences.
8913 # Test whether the compiler implicitly links with -lc since on some
8914 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8915 # to ld, don't add -lc before -lgcc.
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8917 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8918 if ${lt_cv_archive_cmds_need_lc+:} false; then :
8919 $as_echo_n "(cached) " >&6
8922 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8925 (eval $ac_compile) 2>&5
8927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8928 test $ac_status = 0; } 2>conftest.err; then
8931 libobjs=conftest.$ac_objext
8933 wl=$lt_prog_compiler_wl
8934 pic_flag=$lt_prog_compiler_pic
8940 lt_save_allow_undefined_flag=$allow_undefined_flag
8941 allow_undefined_flag=
8942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8943 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8946 test $ac_status = 0; }
8948 lt_cv_archive_cmds_need_lc=no
8950 lt_cv_archive_cmds_need_lc=yes
8952 allow_undefined_flag=$lt_save_allow_undefined_flag
8954 cat conftest.err 1>&5
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
8960 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
8961 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9125 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9127 if test "$GCC" = yes; then
9129 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9130 *) lt_awk_arg="/^libraries:/" ;;
9133 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9134 *) lt_sed_strip_eq="s,=/,/,g" ;;
9136 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9137 case $lt_search_path_spec in
9139 # if the path contains ";" then we assume it to be the separator
9140 # otherwise default to the standard path separator (i.e. ":") - it is
9141 # assumed that no part of a normal pathname contains ";" but that should
9142 # okay in the real world where ";" in dirpaths is itself problematic.
9143 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9146 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9149 # Ok, now we have the path, separated by spaces, we can step through it
9150 # and add multilib dir if necessary.
9151 lt_tmp_lt_search_path_spec=
9152 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9153 for lt_sys_path in $lt_search_path_spec; do
9154 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9155 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9157 test -d "$lt_sys_path" && \
9158 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9161 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9162 BEGIN {RS=" "; FS="/|\n";} {
9165 for (lt_i = NF; lt_i > 0; lt_i--) {
9166 if ($lt_i != "" && $lt_i != ".") {
9167 if ($lt_i == "..") {
9170 if (lt_count == 0) {
9171 lt_foo="/" $lt_i lt_foo;
9178 if (lt_foo != "") { lt_freq[lt_foo]++; }
9179 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9181 # AWK program above erroneously prepends '/' to C:/dos/paths
9184 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9185 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9187 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9189 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9192 libname_spec='lib$name'
9200 shlibpath_overrides_runpath=unknown
9202 dynamic_linker="$host_os ld.so"
9203 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9204 need_lib_prefix=unknown
9205 hardcode_into_libs=no
9207 # when you set need_version to no, make sure it does not cause -set_version
9208 # flags to be left without arguments
9209 need_version=unknown
9214 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9215 shlibpath_var=LIBPATH
9217 # AIX 3 has no versioning support, so we append a major version to the name.
9218 soname_spec='${libname}${release}${shared_ext}$major'
9225 hardcode_into_libs=yes
9226 if test "$host_cpu" = ia64; then
9227 # AIX 5 supports IA64
9228 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9229 shlibpath_var=LD_LIBRARY_PATH
9231 # With GCC up to 2.95.x, collect2 would create an import file
9232 # for dependence libraries. The import file would start with
9233 # the line `#! .'. This would cause the generated library to
9234 # depend on `.', always an invalid library. This was fixed in
9235 # development snapshots of GCC prior to 3.0.
9237 aix4 | aix4.[01] | aix4.[01].*)
9238 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9240 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9247 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9248 # soname into executable. Probably we can add versioning support to
9249 # collect2, so additional links can be useful in future.
9250 if test "$aix_use_runtimelinking" = yes; then
9251 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9252 # instead of lib<name>.a to let people know that these are not
9253 # typical AIX shared libraries.
9254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9256 # We preserve .a as extension for shared libraries through AIX4.2
9257 # and later when we are not doing run time linking.
9258 library_names_spec='${libname}${release}.a $libname.a'
9259 soname_spec='${libname}${release}${shared_ext}$major'
9261 shlibpath_var=LIBPATH
9268 # Since July 2007 AmigaOS4 officially supports .so libraries.
9269 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9273 library_names_spec='$libname.ixlibrary $libname.a'
9274 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9275 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'
9281 library_names_spec='${libname}${shared_ext}'
9282 dynamic_linker="$host_os ld.so"
9283 shlibpath_var=LIBRARY_PATH
9289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9290 soname_spec='${libname}${release}${shared_ext}$major'
9291 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9292 shlibpath_var=LD_LIBRARY_PATH
9293 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9294 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9295 # the default ld.so.conf also contains /usr/contrib/lib and
9296 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9297 # libtool to hard-code these into programs
9300 cygwin* | mingw* | pw32* | cegcc*)
9301 version_type=windows
9306 case $GCC,$host_os in
9307 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9308 library_names_spec='$libname.dll.a'
9309 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9310 postinstall_cmds='base_file=`basename \${file}`~
9311 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9312 dldir=$destdir/`dirname \$dlpath`~
9313 test -d \$dldir || mkdir -p \$dldir~
9314 $install_prog $dir/$dlname \$dldir/$dlname~
9315 chmod a+x \$dldir/$dlname~
9316 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9317 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9319 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9320 dlpath=$dir/\$dldll~
9322 shlibpath_overrides_runpath=yes
9326 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9327 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9329 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9332 # MinGW DLLs use traditional 'lib' prefix
9333 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9336 # pw32 DLLs use 'pw' prefix rather than 'lib'
9337 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9343 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9346 dynamic_linker='Win32 ld.exe'
9347 # FIXME: first we should search . and the directory the executable is in
9351 darwin* | rhapsody*)
9352 dynamic_linker="$host_os dyld"
9356 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9357 soname_spec='${libname}${release}${major}$shared_ext'
9358 shlibpath_overrides_runpath=yes
9359 shlibpath_var=DYLD_LIBRARY_PATH
9360 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9362 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9363 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9371 soname_spec='${libname}${release}${shared_ext}$major'
9372 shlibpath_var=LD_LIBRARY_PATH
9379 freebsd* | dragonfly*)
9380 # DragonFly does not have aout. When/if they implement a new
9381 # versioning mechanism, adjust this.
9382 if test -x /usr/bin/objformat; then
9383 objformat=`/usr/bin/objformat`
9386 freebsd[123]*) objformat=aout ;;
9390 version_type=freebsd-$objformat
9391 case $version_type in
9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9398 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9402 shlibpath_var=LD_LIBRARY_PATH
9405 shlibpath_overrides_runpath=yes
9407 freebsd3.[01]* | freebsdelf3.[01]*)
9408 shlibpath_overrides_runpath=yes
9409 hardcode_into_libs=yes
9411 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9412 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9413 shlibpath_overrides_runpath=no
9414 hardcode_into_libs=yes
9416 *) # from 4.6 on, and DragonFly
9417 shlibpath_overrides_runpath=yes
9418 hardcode_into_libs=yes
9427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9428 soname_spec='${libname}${release}${shared_ext}$major'
9429 shlibpath_var=LD_LIBRARY_PATH
9430 hardcode_into_libs=yes
9437 dynamic_linker="$host_os runtime_loader"
9438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9439 soname_spec='${libname}${release}${shared_ext}$major'
9440 shlibpath_var=LIBRARY_PATH
9441 shlibpath_overrides_runpath=yes
9442 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9443 hardcode_into_libs=yes
9446 hpux9* | hpux10* | hpux11*)
9447 # Give a soname corresponding to the major version so that dld.sl refuses to
9448 # link against other versions.
9455 hardcode_into_libs=yes
9456 dynamic_linker="$host_os dld.so"
9457 shlibpath_var=LD_LIBRARY_PATH
9458 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9460 soname_spec='${libname}${release}${shared_ext}$major'
9461 if test "X$HPUX_IA64_MODE" = X32; then
9462 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9464 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9466 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9470 hardcode_into_libs=yes
9471 dynamic_linker="$host_os dld.sl"
9472 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9473 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9475 soname_spec='${libname}${release}${shared_ext}$major'
9476 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9477 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9481 dynamic_linker="$host_os dld.sl"
9482 shlibpath_var=SHLIB_PATH
9483 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485 soname_spec='${libname}${release}${shared_ext}$major'
9488 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9489 postinstall_cmds='chmod 555 $lib'
9490 # or fails outright, so override atomically:
9491 install_override_mode=555
9498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9499 soname_spec='${libname}${release}${shared_ext}$major'
9500 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9501 shlibpath_var=LD_LIBRARY_PATH
9502 shlibpath_overrides_runpath=no
9503 hardcode_into_libs=yes
9506 irix5* | irix6* | nonstopux*)
9508 nonstopux*) version_type=nonstopux ;;
9510 if test "$lt_cv_prog_gnu_ld" = yes; then
9518 soname_spec='${libname}${release}${shared_ext}$major'
9519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9521 irix5* | nonstopux*)
9525 case $LD in # libtool.m4 will add one of these switches to LD
9526 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9527 libsuff= shlibsuff= libmagic=32-bit;;
9528 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9529 libsuff=32 shlibsuff=N32 libmagic=N32;;
9530 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9531 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9532 *) libsuff= shlibsuff= libmagic=never-match;;
9536 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9537 shlibpath_overrides_runpath=no
9538 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9539 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9540 hardcode_into_libs=yes
9543 # No shared lib support for Linux oldld, aout, or coff.
9544 linux*oldld* | linux*aout* | linux*coff*)
9548 # This must be Linux ELF.
9549 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9554 soname_spec='${libname}${release}${shared_ext}$major'
9555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9556 shlibpath_var=LD_LIBRARY_PATH
9557 shlibpath_overrides_runpath=no
9559 # Some binutils ld are patched to set DT_RUNPATH
9560 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9561 $as_echo_n "(cached) " >&6
9563 lt_cv_shlibpath_overrides_runpath=no
9564 save_LDFLAGS=$LDFLAGS
9566 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9567 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9579 if ac_fn_c_try_link "$LINENO"; then :
9580 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9581 lt_cv_shlibpath_overrides_runpath=yes
9584 rm -f core conftest.err conftest.$ac_objext \
9585 conftest$ac_exeext conftest.$ac_ext
9586 LDFLAGS=$save_LDFLAGS
9591 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9593 # This implies no fast_install, which is unacceptable.
9594 # Some rework will be needed to allow for fast_install
9595 # before this can be enabled.
9596 hardcode_into_libs=yes
9598 # Append ld.so.conf contents to the search path
9599 if test -f /etc/ld.so.conf; then
9600 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' ' '`
9601 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9604 # We used to test for /lib/ld.so.1 and disable shared libraries on
9605 # powerpc, because MkLinux only supported shared libraries with the
9606 # GNU dynamic linker. Since this was broken with cross compilers,
9607 # most powerpc-linux boxes support dynamic linking these days and
9608 # people can always --disable-shared, the test was removed, and we
9609 # assume the GNU/Linux dynamic linker is in use.
9610 dynamic_linker='GNU/Linux ld.so'
9617 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9619 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9620 dynamic_linker='NetBSD (a.out) ld.so'
9622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9623 soname_spec='${libname}${release}${shared_ext}$major'
9624 dynamic_linker='NetBSD ld.elf_so'
9626 shlibpath_var=LD_LIBRARY_PATH
9627 shlibpath_overrides_runpath=yes
9628 hardcode_into_libs=yes
9633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9634 shlibpath_var=LD_LIBRARY_PATH
9635 shlibpath_overrides_runpath=yes
9642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9643 soname_spec='${libname}${release}${shared_ext}$major'
9644 shlibpath_var=LD_LIBRARY_PATH
9645 shlibpath_overrides_runpath=no
9646 hardcode_into_libs=yes
9647 dynamic_linker='ldqnx.so'
9652 sys_lib_dlsearch_path_spec="/usr/lib"
9654 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9656 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9657 *) need_version=no ;;
9659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9661 shlibpath_var=LD_LIBRARY_PATH
9662 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9664 openbsd2.[89] | openbsd2.[89].*)
9665 shlibpath_overrides_runpath=no
9668 shlibpath_overrides_runpath=yes
9672 shlibpath_overrides_runpath=yes
9677 libname_spec='$name'
9680 library_names_spec='$libname${shared_ext} $libname.a'
9681 dynamic_linker='OS/2 ld.exe'
9682 shlibpath_var=LIBPATH
9685 osf3* | osf4* | osf5*)
9689 soname_spec='${libname}${release}${shared_ext}$major'
9690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9691 shlibpath_var=LD_LIBRARY_PATH
9692 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9693 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9705 soname_spec='${libname}${release}${shared_ext}$major'
9706 shlibpath_var=LD_LIBRARY_PATH
9707 shlibpath_overrides_runpath=yes
9708 hardcode_into_libs=yes
9709 # ldd complains unless libraries are executable
9710 postinstall_cmds='chmod +x $lib'
9715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9716 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9717 shlibpath_var=LD_LIBRARY_PATH
9718 shlibpath_overrides_runpath=yes
9719 if test "$with_gnu_ld" = yes; then
9727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9728 soname_spec='${libname}${release}${shared_ext}$major'
9729 shlibpath_var=LD_LIBRARY_PATH
9730 case $host_vendor in
9732 shlibpath_overrides_runpath=no
9734 runpath_var=LD_RUN_PATH
9742 shlibpath_overrides_runpath=no
9743 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9749 if test -d /usr/nec ;then
9751 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9752 soname_spec='$libname${shared_ext}.$major'
9753 shlibpath_var=LD_LIBRARY_PATH
9757 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9758 version_type=freebsd-elf
9761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9762 soname_spec='${libname}${release}${shared_ext}$major'
9763 shlibpath_var=LD_LIBRARY_PATH
9764 shlibpath_overrides_runpath=yes
9765 hardcode_into_libs=yes
9766 if test "$with_gnu_ld" = yes; then
9767 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9769 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9772 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9776 sys_lib_dlsearch_path_spec='/usr/lib'
9780 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9785 shlibpath_var=LD_LIBRARY_PATH
9786 shlibpath_overrides_runpath=no
9787 hardcode_into_libs=yes
9792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9793 soname_spec='${libname}${release}${shared_ext}$major'
9794 shlibpath_var=LD_LIBRARY_PATH
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9802 $as_echo "$dynamic_linker" >&6; }
9803 test "$dynamic_linker" = no && can_build_shared=no
9805 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9806 if test "$GCC" = yes; then
9807 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9810 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9811 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9813 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9814 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9909 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9911 if test -n "$hardcode_libdir_flag_spec" ||
9912 test -n "$runpath_var" ||
9913 test "X$hardcode_automatic" = "Xyes" ; then
9915 # We can hardcode non-existent directories.
9916 if test "$hardcode_direct" != no &&
9917 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9918 # have to relink, otherwise we might link with an installed library
9919 # when we should be linking with a yet-to-be-installed one
9920 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9921 test "$hardcode_minus_L" != no; then
9922 # Linking always hardcodes the temporary library directory.
9923 hardcode_action=relink
9925 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9926 hardcode_action=immediate
9929 # We cannot hardcode anything, or else we can only hardcode existing
9931 hardcode_action=unsupported
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9934 $as_echo "$hardcode_action" >&6; }
9936 if test "$hardcode_action" = relink ||
9937 test "$inherit_rpath" = yes; then
9938 # Fast installation is not supported
9939 enable_fast_install=no
9940 elif test "$shlibpath_overrides_runpath" = yes ||
9941 test "$enable_shared" = no; then
9942 # Fast installation is not necessary
9943 enable_fast_install=needless
9951 if test "x$enable_dlopen" != xyes; then
9952 enable_dlopen=unknown
9953 enable_dlopen_self=unknown
9954 enable_dlopen_self_static=unknown
9961 lt_cv_dlopen="load_add_on"
9963 lt_cv_dlopen_self=yes
9966 mingw* | pw32* | cegcc*)
9967 lt_cv_dlopen="LoadLibrary"
9972 lt_cv_dlopen="dlopen"
9977 # if libdl is installed we need to link against it
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9979 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9980 if ${ac_cv_lib_dl_dlopen+:} false; then :
9981 $as_echo_n "(cached) " >&6
9983 ac_check_lib_save_LIBS=$LIBS
9985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9986 /* end confdefs.h. */
9988 /* Override any GCC internal prototype to avoid an error.
9989 Use char because int might match the return type of a GCC
9990 builtin and then its argument prototype would still apply. */
10003 if ac_fn_c_try_link "$LINENO"; then :
10004 ac_cv_lib_dl_dlopen=yes
10006 ac_cv_lib_dl_dlopen=no
10008 rm -f core conftest.err conftest.$ac_objext \
10009 conftest$ac_exeext conftest.$ac_ext
10010 LIBS=$ac_check_lib_save_LIBS
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10013 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10014 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10015 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10018 lt_cv_dlopen="dyld"
10020 lt_cv_dlopen_self=yes
10027 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10028 if test "x$ac_cv_func_shl_load" = xyes; then :
10029 lt_cv_dlopen="shl_load"
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10032 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10033 if ${ac_cv_lib_dld_shl_load+:} false; then :
10034 $as_echo_n "(cached) " >&6
10036 ac_check_lib_save_LIBS=$LIBS
10038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039 /* end confdefs.h. */
10041 /* Override any GCC internal prototype to avoid an error.
10042 Use char because int might match the return type of a GCC
10043 builtin and then its argument prototype would still apply. */
10051 return shl_load ();
10056 if ac_fn_c_try_link "$LINENO"; then :
10057 ac_cv_lib_dld_shl_load=yes
10059 ac_cv_lib_dld_shl_load=no
10061 rm -f core conftest.err conftest.$ac_objext \
10062 conftest$ac_exeext conftest.$ac_ext
10063 LIBS=$ac_check_lib_save_LIBS
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10066 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10067 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10068 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10070 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10071 if test "x$ac_cv_func_dlopen" = xyes; then :
10072 lt_cv_dlopen="dlopen"
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10075 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10076 if ${ac_cv_lib_dl_dlopen+:} false; then :
10077 $as_echo_n "(cached) " >&6
10079 ac_check_lib_save_LIBS=$LIBS
10081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10082 /* end confdefs.h. */
10084 /* Override any GCC internal prototype to avoid an error.
10085 Use char because int might match the return type of a GCC
10086 builtin and then its argument prototype would still apply. */
10099 if ac_fn_c_try_link "$LINENO"; then :
10100 ac_cv_lib_dl_dlopen=yes
10102 ac_cv_lib_dl_dlopen=no
10104 rm -f core conftest.err conftest.$ac_objext \
10105 conftest$ac_exeext conftest.$ac_ext
10106 LIBS=$ac_check_lib_save_LIBS
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10109 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10110 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10111 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10114 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10115 if ${ac_cv_lib_svld_dlopen+:} false; then :
10116 $as_echo_n "(cached) " >&6
10118 ac_check_lib_save_LIBS=$LIBS
10119 LIBS="-lsvld $LIBS"
10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10123 /* Override any GCC internal prototype to avoid an error.
10124 Use char because int might match the return type of a GCC
10125 builtin and then its argument prototype would still apply. */
10138 if ac_fn_c_try_link "$LINENO"; then :
10139 ac_cv_lib_svld_dlopen=yes
10141 ac_cv_lib_svld_dlopen=no
10143 rm -f core conftest.err conftest.$ac_objext \
10144 conftest$ac_exeext conftest.$ac_ext
10145 LIBS=$ac_check_lib_save_LIBS
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10148 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10149 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10150 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10153 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10154 if ${ac_cv_lib_dld_dld_link+:} false; then :
10155 $as_echo_n "(cached) " >&6
10157 ac_check_lib_save_LIBS=$LIBS
10159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160 /* end confdefs.h. */
10162 /* Override any GCC internal prototype to avoid an error.
10163 Use char because int might match the return type of a GCC
10164 builtin and then its argument prototype would still apply. */
10172 return dld_link ();
10177 if ac_fn_c_try_link "$LINENO"; then :
10178 ac_cv_lib_dld_dld_link=yes
10180 ac_cv_lib_dld_dld_link=no
10182 rm -f core conftest.err conftest.$ac_objext \
10183 conftest$ac_exeext conftest.$ac_ext
10184 LIBS=$ac_check_lib_save_LIBS
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10187 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10188 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10189 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10210 if test "x$lt_cv_dlopen" != xno; then
10216 case $lt_cv_dlopen in
10218 save_CPPFLAGS="$CPPFLAGS"
10219 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10221 save_LDFLAGS="$LDFLAGS"
10222 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10225 LIBS="$lt_cv_dlopen_libs $LIBS"
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10228 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10229 if ${lt_cv_dlopen_self+:} false; then :
10230 $as_echo_n "(cached) " >&6
10232 if test "$cross_compiling" = yes; then :
10233 lt_cv_dlopen_self=cross
10235 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10236 lt_status=$lt_dlunknown
10237 cat > conftest.$ac_ext <<_LT_EOF
10238 #line $LINENO "configure"
10239 #include "confdefs.h"
10248 # define LT_DLGLOBAL RTLD_GLOBAL
10251 # define LT_DLGLOBAL DL_GLOBAL
10253 # define LT_DLGLOBAL 0
10257 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10258 find out it does not work in some platform. */
10259 #ifndef LT_DLLAZY_OR_NOW
10261 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10264 # define LT_DLLAZY_OR_NOW DL_LAZY
10267 # define LT_DLLAZY_OR_NOW RTLD_NOW
10270 # define LT_DLLAZY_OR_NOW DL_NOW
10272 # define LT_DLLAZY_OR_NOW 0
10279 /* When -fvisbility=hidden is used, assume the code has been annotated
10280 correspondingly for the symbols needed. */
10281 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10282 void fnord () __attribute__((visibility("default")));
10285 void fnord () { int i=42; }
10288 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10289 int status = $lt_dlunknown;
10293 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10296 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10297 else puts (dlerror ());
10299 /* dlclose (self); */
10307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10308 (eval $ac_link) 2>&5
10310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10311 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10312 (./conftest; exit; ) >&5 2>/dev/null
10314 case x$lt_status in
10315 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10316 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10317 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10320 # compilation failed
10321 lt_cv_dlopen_self=no
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10329 $as_echo "$lt_cv_dlopen_self" >&6; }
10331 if test "x$lt_cv_dlopen_self" = xyes; then
10332 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10334 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10335 if ${lt_cv_dlopen_self_static+:} false; then :
10336 $as_echo_n "(cached) " >&6
10338 if test "$cross_compiling" = yes; then :
10339 lt_cv_dlopen_self_static=cross
10341 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10342 lt_status=$lt_dlunknown
10343 cat > conftest.$ac_ext <<_LT_EOF
10344 #line $LINENO "configure"
10345 #include "confdefs.h"
10354 # define LT_DLGLOBAL RTLD_GLOBAL
10357 # define LT_DLGLOBAL DL_GLOBAL
10359 # define LT_DLGLOBAL 0
10363 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10364 find out it does not work in some platform. */
10365 #ifndef LT_DLLAZY_OR_NOW
10367 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10370 # define LT_DLLAZY_OR_NOW DL_LAZY
10373 # define LT_DLLAZY_OR_NOW RTLD_NOW
10376 # define LT_DLLAZY_OR_NOW DL_NOW
10378 # define LT_DLLAZY_OR_NOW 0
10385 /* When -fvisbility=hidden is used, assume the code has been annotated
10386 correspondingly for the symbols needed. */
10387 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10388 void fnord () __attribute__((visibility("default")));
10391 void fnord () { int i=42; }
10394 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10395 int status = $lt_dlunknown;
10399 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10402 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10403 else puts (dlerror ());
10405 /* dlclose (self); */
10413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10414 (eval $ac_link) 2>&5
10416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10417 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10418 (./conftest; exit; ) >&5 2>/dev/null
10420 case x$lt_status in
10421 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10422 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10423 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10426 # compilation failed
10427 lt_cv_dlopen_self_static=no
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10435 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10438 CPPFLAGS="$save_CPPFLAGS"
10439 LDFLAGS="$save_LDFLAGS"
10444 case $lt_cv_dlopen_self in
10445 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10446 *) enable_dlopen_self=unknown ;;
10449 case $lt_cv_dlopen_self_static in
10450 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10451 *) enable_dlopen_self_static=unknown ;;
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10474 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10475 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10476 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10477 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10479 $as_echo "yes" >&6; }
10481 # FIXME - insert some real tests, host_os isn't really good enough
10484 if test -n "$STRIP" ; then
10485 striplib="$STRIP -x"
10486 old_striplib="$STRIP -S"
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10488 $as_echo "yes" >&6; }
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10491 $as_echo "no" >&6; }
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10496 $as_echo "no" >&6; }
10512 # Report which library types will actually be built
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10514 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10516 $as_echo "$can_build_shared" >&6; }
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10519 $as_echo_n "checking whether to build shared libraries... " >&6; }
10520 test "$can_build_shared" = "no" && enable_shared=no
10522 # On AIX, shared libraries and static libraries use the same namespace, and
10523 # are all built from PIC.
10526 test "$enable_shared" = yes && enable_static=no
10527 if test -n "$RANLIB"; then
10528 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10529 postinstall_cmds='$RANLIB $lib'
10534 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10535 test "$enable_shared" = yes && enable_static=no
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10540 $as_echo "$enable_shared" >&6; }
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10543 $as_echo_n "checking whether to build static libraries... " >&6; }
10544 # Make sure either enable_shared or enable_static is yes.
10545 test "$enable_shared" = yes || enable_static=yes
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10547 $as_echo "$enable_static" >&6; }
10554 ac_cpp='$CPP $CPPFLAGS'
10555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10573 ac_config_commands="$ac_config_commands libtool"
10578 # Only expand once:
10582 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
10595 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
10596 if ${ac_cv_prog_cc_c99+:} false; then :
10597 $as_echo_n "(cached) " >&6
10599 ac_cv_prog_cc_c99=no
10601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10602 /* end confdefs.h. */
10603 #include <stdarg.h>
10604 #include <stdbool.h>
10605 #include <stdlib.h>
10609 // Check varargs macros. These examples are taken from C99 6.10.3.5.
10610 #define debug(...) fprintf (stderr, __VA_ARGS__)
10611 #define showlist(...) puts (#__VA_ARGS__)
10612 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
10614 test_varargs_macros (void)
10619 debug ("X = %d\n", x);
10620 showlist (The first, second, and third items.);
10621 report (x>y, "x is %d but y is %d", x, y);
10624 // Check long long types.
10625 #define BIG64 18446744073709551615ull
10626 #define BIG32 4294967295ul
10627 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
10629 your preprocessor is broken;
10633 your preprocessor is broken;
10635 static long long int bignum = -9223372036854775807LL;
10636 static unsigned long long int ubignum = BIG64;
10638 struct incomplete_array
10644 struct named_init {
10646 const wchar_t *name;
10650 typedef const char *ccp;
10653 test_restrict (ccp restrict text)
10655 // See if C++-style comments work.
10656 // Iterate through items via the restricted pointer.
10657 // Also check for declarations in for loops.
10658 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
10663 // Check varargs and va_copy.
10665 test_varargs (const char *format, ...)
10668 va_start (args, format);
10670 va_copy (args_copy, args);
10680 case 's': // string
10681 str = va_arg (args_copy, const char *);
10684 number = va_arg (args_copy, int);
10687 fnumber = va_arg (args_copy, double);
10693 va_end (args_copy);
10702 _Bool success = false;
10705 if (test_restrict ("String literal") == 0)
10707 char *restrict newvar = "Another string";
10710 test_varargs ("s, d' f .", "string", 65, 34.234);
10711 test_varargs_macros ();
10713 // Check flexible array members.
10714 struct incomplete_array *ia =
10715 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
10717 for (int i = 0; i < ia->datasize; ++i)
10718 ia->data[i] = i * 1.234;
10720 // Check named initializers.
10721 struct named_init ni = {
10723 .name = L"Test wide string",
10724 .average = 543.34343,
10729 int dynamic_array[ni.number];
10730 dynamic_array[ni.number - 1] = 543;
10732 // work around unused variable warnings
10733 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
10734 || dynamic_array[ni.number - 1] != 543);
10740 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
10742 CC="$ac_save_CC $ac_arg"
10743 if ac_fn_c_try_compile "$LINENO"; then :
10744 ac_cv_prog_cc_c99=$ac_arg
10746 rm -f core conftest.err conftest.$ac_objext
10747 test "x$ac_cv_prog_cc_c99" != "xno" && break
10749 rm -f conftest.$ac_ext
10754 case "x$ac_cv_prog_cc_c99" in
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10757 $as_echo "none needed" >&6; } ;;
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10760 $as_echo "unsupported" >&6; } ;;
10762 CC="$CC $ac_cv_prog_cc_c99"
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
10764 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
10766 if test "x$ac_cv_prog_cc_c99" != xno; then :
10773 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10774 if test -n "$ac_tool_prefix"; then
10775 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10776 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10778 $as_echo_n "checking for $ac_word... " >&6; }
10779 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10780 $as_echo_n "(cached) " >&6
10782 case $PKG_CONFIG in
10784 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10788 for as_dir in $PATH
10791 test -z "$as_dir" && as_dir=.
10792 for ac_exec_ext in '' $ac_executable_extensions; do
10793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10794 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10805 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10806 if test -n "$PKG_CONFIG"; then
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10808 $as_echo "$PKG_CONFIG" >&6; }
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811 $as_echo "no" >&6; }
10816 if test -z "$ac_cv_path_PKG_CONFIG"; then
10817 ac_pt_PKG_CONFIG=$PKG_CONFIG
10818 # Extract the first word of "pkg-config", so it can be a program name with args.
10819 set dummy pkg-config; ac_word=$2
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10821 $as_echo_n "checking for $ac_word... " >&6; }
10822 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10823 $as_echo_n "(cached) " >&6
10825 case $ac_pt_PKG_CONFIG in
10827 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10831 for as_dir in $PATH
10834 test -z "$as_dir" && as_dir=.
10835 for ac_exec_ext in '' $ac_executable_extensions; do
10836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10837 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10848 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10849 if test -n "$ac_pt_PKG_CONFIG"; then
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10851 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10854 $as_echo "no" >&6; }
10857 if test "x$ac_pt_PKG_CONFIG" = x; then
10860 case $cross_compiling:$ac_tool_warned in
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10864 ac_tool_warned=yes ;;
10866 PKG_CONFIG=$ac_pt_PKG_CONFIG
10869 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10873 if test -n "$PKG_CONFIG"; then
10874 _pkg_min_version=0.9.0
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10876 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10877 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10879 $as_echo "yes" >&6; }
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10882 $as_echo "no" >&6; }
10891 if test "x$GCC" = xyes ; then
10892 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
10893 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
10894 -Wbad-function-cast -Wformat=2"
10895 case `$CC -dumpversion` in
10897 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
10901 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
10902 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
10908 if test "x$SUNCC" = "xyes"; then
10915 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
10919 # Check whether --enable-strict-compilation was given.
10920 if test "${enable_strict_compilation+set}" = set; then :
10921 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10926 if test "x$STRICT_COMPILE" = "xyes"; then
10927 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
10928 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
10934 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
10935 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
10941 if test "x$GCC" = xyes ; then
10942 STRICT_CFLAGS="-pedantic -Werror"
10943 elif test "x$SUNCC" = "xyes"; then
10944 STRICT_CFLAGS="-errwarn"
10945 elif test "x$INTELCC" = "xyes"; then
10946 STRICT_CFLAGS="-Werror"
10949 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10954 cat >>confdefs.h <<_ACEOF
10955 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10958 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10959 if test "x$PVM" = "x"; then
10963 cat >>confdefs.h <<_ACEOF
10964 #define PACKAGE_VERSION_MINOR $PVM
10967 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10968 if test "x$PVP" = "x"; then
10972 cat >>confdefs.h <<_ACEOF
10973 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10978 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10979 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10980 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10981 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10986 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10987 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10988 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10989 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10990 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10997 if test x$APP_MAN_SUFFIX = x ; then
11000 if test x$APP_MAN_DIR = x ; then
11001 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11004 if test x$LIB_MAN_SUFFIX = x ; then
11007 if test x$LIB_MAN_DIR = x ; then
11008 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11011 if test x$FILE_MAN_SUFFIX = x ; then
11013 solaris*) FILE_MAN_SUFFIX=4 ;;
11014 *) FILE_MAN_SUFFIX=5 ;;
11017 if test x$FILE_MAN_DIR = x ; then
11018 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11021 if test x$MISC_MAN_SUFFIX = x ; then
11023 solaris*) MISC_MAN_SUFFIX=5 ;;
11024 *) MISC_MAN_SUFFIX=7 ;;
11027 if test x$MISC_MAN_DIR = x ; then
11028 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11031 if test x$DRIVER_MAN_SUFFIX = x ; then
11033 solaris*) DRIVER_MAN_SUFFIX=7 ;;
11034 *) DRIVER_MAN_SUFFIX=4 ;;
11037 if test x$DRIVER_MAN_DIR = x ; then
11038 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11041 if test x$ADMIN_MAN_SUFFIX = x ; then
11043 solaris*) ADMIN_MAN_SUFFIX=1m ;;
11044 *) ADMIN_MAN_SUFFIX=8 ;;
11047 if test x$ADMIN_MAN_DIR = x ; then
11048 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11065 XORG_MAN_PAGE="X Version 11"
11068 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11069 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11070 -e 's|__xservername__|Xorg|g' \
11071 -e 's|__xconfigfile__|xorg.conf|g' \
11072 -e 's|__projectroot__|\$(prefix)|g' \
11073 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11074 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11075 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11076 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11077 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11078 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11079 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11083 # Check whether --enable-silent-rules was given.
11084 if test "${enable_silent_rules+set}" = set; then :
11085 enableval=$enable_silent_rules;
11088 case $enable_silent_rules in
11089 yes) AM_DEFAULT_VERBOSITY=0;;
11090 no) AM_DEFAULT_VERBOSITY=1;;
11091 *) AM_DEFAULT_VERBOSITY=0;;
11097 # Checks for library functions
11098 for ac_func in strlcat
11100 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
11101 if test "x$ac_cv_func_strlcat" = xyes; then :
11102 cat >>confdefs.h <<_ACEOF
11103 #define HAVE_STRLCAT 1
11110 # Obtain compiler/linker options for dependencies
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPM" >&5
11114 $as_echo_n "checking for XPM... " >&6; }
11116 if test -n "$XPM_CFLAGS"; then
11117 pkg_cv_XPM_CFLAGS="$XPM_CFLAGS"
11118 elif test -n "$PKG_CONFIG"; then
11119 if test -n "$PKG_CONFIG" && \
11120 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11\""; } >&5
11121 ($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5
11123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11124 test $ac_status = 0; }; then
11125 pkg_cv_XPM_CFLAGS=`$PKG_CONFIG --cflags "xproto x11" 2>/dev/null`
11132 if test -n "$XPM_LIBS"; then
11133 pkg_cv_XPM_LIBS="$XPM_LIBS"
11134 elif test -n "$PKG_CONFIG"; then
11135 if test -n "$PKG_CONFIG" && \
11136 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11\""; } >&5
11137 ($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5
11139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11140 test $ac_status = 0; }; then
11141 pkg_cv_XPM_LIBS=`$PKG_CONFIG --libs "xproto x11" 2>/dev/null`
11151 if test $pkg_failed = yes; then
11153 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11154 _pkg_short_errors_supported=yes
11156 _pkg_short_errors_supported=no
11158 if test $_pkg_short_errors_supported = yes; then
11159 XPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto x11" 2>&1`
11161 XPM_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto x11" 2>&1`
11163 # Put the nasty error message in config.log where it belongs
11164 echo "$XPM_PKG_ERRORS" >&5
11166 as_fn_error $? "Package requirements (xproto x11) were not met:
11170 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11171 installed software in a non-standard prefix.
11173 Alternatively, you may set the environment variables XPM_CFLAGS
11174 and XPM_LIBS to avoid the need to call pkg-config.
11175 See the pkg-config man page for more details.
11177 elif test $pkg_failed = untried; then
11178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11180 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11181 is in your PATH or set the PKG_CONFIG environment variable to the full
11182 path to pkg-config.
11184 Alternatively, you may set the environment variables XPM_CFLAGS
11185 and XPM_LIBS to avoid the need to call pkg-config.
11186 See the pkg-config man page for more details.
11188 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11189 See \`config.log' for more details" "$LINENO" 5; }
11191 XPM_CFLAGS=$pkg_cv_XPM_CFLAGS
11192 XPM_LIBS=$pkg_cv_XPM_LIBS
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11194 $as_echo "yes" >&6; }
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SXPM" >&5
11200 $as_echo_n "checking for SXPM... " >&6; }
11202 if test -n "$SXPM_CFLAGS"; then
11203 pkg_cv_SXPM_CFLAGS="$SXPM_CFLAGS"
11204 elif test -n "$PKG_CONFIG"; then
11205 if test -n "$PKG_CONFIG" && \
11206 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt xext xextproto\""; } >&5
11207 ($PKG_CONFIG --exists --print-errors "xt xext xextproto") 2>&5
11209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11210 test $ac_status = 0; }; then
11211 pkg_cv_SXPM_CFLAGS=`$PKG_CONFIG --cflags "xt xext xextproto" 2>/dev/null`
11218 if test -n "$SXPM_LIBS"; then
11219 pkg_cv_SXPM_LIBS="$SXPM_LIBS"
11220 elif test -n "$PKG_CONFIG"; then
11221 if test -n "$PKG_CONFIG" && \
11222 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt xext xextproto\""; } >&5
11223 ($PKG_CONFIG --exists --print-errors "xt xext xextproto") 2>&5
11225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11226 test $ac_status = 0; }; then
11227 pkg_cv_SXPM_LIBS=`$PKG_CONFIG --libs "xt xext xextproto" 2>/dev/null`
11237 if test $pkg_failed = yes; then
11239 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11240 _pkg_short_errors_supported=yes
11242 _pkg_short_errors_supported=no
11244 if test $_pkg_short_errors_supported = yes; then
11245 SXPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt xext xextproto" 2>&1`
11247 SXPM_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt xext xextproto" 2>&1`
11249 # Put the nasty error message in config.log where it belongs
11250 echo "$SXPM_PKG_ERRORS" >&5
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11253 $as_echo "no" >&6; }
11255 elif test $pkg_failed = untried; then
11258 SXPM_CFLAGS=$pkg_cv_SXPM_CFLAGS
11259 SXPM_LIBS=$pkg_cv_SXPM_LIBS
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11261 $as_echo "yes" >&6; }
11264 if test x$build_sxpm = xtrue; then
11266 BUILD_SXPM_FALSE='#'
11268 BUILD_SXPM_TRUE='#'
11273 # Internationalization & localization support
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5
11275 $as_echo_n "checking for library containing gettext... " >&6; }
11276 if ${ac_cv_search_gettext+:} false; then :
11277 $as_echo_n "(cached) " >&6
11279 ac_func_search_save_LIBS=$LIBS
11280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11281 /* end confdefs.h. */
11283 /* Override any GCC internal prototype to avoid an error.
11284 Use char because int might match the return type of a GCC
11285 builtin and then its argument prototype would still apply. */
11298 for ac_lib in '' intl; do
11299 if test -z "$ac_lib"; then
11300 ac_res="none required"
11303 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11305 if ac_fn_c_try_link "$LINENO"; then :
11306 ac_cv_search_gettext=$ac_res
11308 rm -f core conftest.err conftest.$ac_objext \
11310 if ${ac_cv_search_gettext+:} false; then :
11314 if ${ac_cv_search_gettext+:} false; then :
11317 ac_cv_search_gettext=no
11319 rm conftest.$ac_ext
11320 LIBS=$ac_func_search_save_LIBS
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5
11323 $as_echo "$ac_cv_search_gettext" >&6; }
11324 ac_res=$ac_cv_search_gettext
11325 if test "$ac_res" != no; then :
11326 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5
11333 $as_echo_n "checking where to install localized messages... " >&6; }
11335 # Check whether --with-localedir was given.
11336 if test "${with_localedir+set}" = set; then :
11337 withval=$with_localedir; LOCALEDIR=${withval}
11339 LOCALEDIR=${datadir}/locale
11345 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
11346 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
11347 eval ax_define_dir="\"$LOCALEDIR\""
11348 eval ax_define_dir="\"$ax_define_dir\""
11349 LOCALEDIR="$ax_define_dir"
11352 cat >>confdefs.h <<_ACEOF
11353 #define LOCALEDIR "$ax_define_dir"
11356 test "$prefix_NONE" && prefix=NONE
11357 test "$exec_prefix_NONE" && exec_prefix=NONE
11359 if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5
11361 $as_echo "nowhere" >&6; }
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5
11365 $as_echo "$LOCALEDIR" >&6; }
11368 if test "x$USE_GETTEXT" = "xyes" ; then
11370 $as_echo "#define USE_GETTEXT 1" >>confdefs.h
11373 if test "x$USE_GETTEXT" = "xyes"; then
11375 USE_GETTEXT_FALSE='#'
11377 USE_GETTEXT_TRUE='#'
11382 # Optional feature: When ___.xpm is requested, also look for ___.xpm.Z & .gz
11383 # Replaces ZFILEDEF = -DSTAT_ZFILE in old Imakefile
11384 # Check whether --enable-stat-zfile was given.
11385 if test "${enable_stat_zfile+set}" = set; then :
11386 enableval=$enable_stat_zfile; STAT_ZFILE=$enableval
11391 if test x$STAT_ZFILE = xyes ; then
11393 $as_echo "#define STAT_ZFILE 1" >>confdefs.h
11397 ac_config_files="$ac_config_files Makefile doc/Makefile include/Makefile src/Makefile sxpm/Makefile cxpm/Makefile xpm.pc"
11399 cat >confcache <<\_ACEOF
11400 # This file is a shell script that caches the results of configure
11401 # tests run on this system so they can be shared between configure
11402 # scripts and configure runs, see configure's option --config-cache.
11403 # It is not useful on other systems. If it contains results you don't
11404 # want to keep, you may remove or edit it.
11406 # config.status only pays attention to the cache file if you give it
11407 # the --recheck option to rerun configure.
11409 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11410 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11411 # following values.
11415 # The following way of writing the cache mishandles newlines in values,
11416 # but we know of no workaround that is simple, portable, and efficient.
11417 # So, we kill variables containing newlines.
11418 # Ultrix sh set writes to stderr and can't be redirected directly,
11419 # and sets the high bit in the cache file unless we assign to the vars.
11421 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11422 eval ac_val=\$$ac_var
11426 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11427 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11430 _ | IFS | as_nl) ;; #(
11431 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11432 *) { eval $ac_var=; unset $ac_var;} ;;
11438 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11439 *${as_nl}ac_space=\ *)
11440 # `set' does not quote correctly, so add quotes: double-quote
11441 # substitution turns \\\\ into \\, and sed turns \\ into \.
11444 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11447 # `set' quotes correctly as required by POSIX, so do not add quotes.
11448 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11457 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11459 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11461 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11462 if test -w "$cache_file"; then
11463 if test "x$cache_file" != "x/dev/null"; then
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11465 $as_echo "$as_me: updating cache $cache_file" >&6;}
11466 if test ! -f "$cache_file" || test -h "$cache_file"; then
11467 cat confcache >"$cache_file"
11469 case $cache_file in #(
11471 mv -f confcache "$cache_file"$$ &&
11472 mv -f "$cache_file"$$ "$cache_file" ;; #(
11474 mv -f confcache "$cache_file" ;;
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11480 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11485 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11486 # Let make expand exec_prefix.
11487 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11489 DEFS=-DHAVE_CONFIG_H
11494 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11495 # 1. Remove the extension, and $U if already installed.
11496 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11497 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11498 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11499 # will be set to the directory where LIBOBJS objects are built.
11500 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11501 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11503 LIBOBJS=$ac_libobjs
11505 LTLIBOBJS=$ac_ltlibobjs
11508 if test -n "$EXEEXT"; then
11510 am__EXEEXT_FALSE='#'
11512 am__EXEEXT_TRUE='#'
11516 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11517 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11520 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11521 as_fn_error $? "conditional \"AMDEP\" was never defined.
11522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11524 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11525 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11528 if test -z "${BUILD_SXPM_TRUE}" && test -z "${BUILD_SXPM_FALSE}"; then
11529 as_fn_error $? "conditional \"BUILD_SXPM\" was never defined.
11530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11532 if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then
11533 as_fn_error $? "conditional \"USE_GETTEXT\" was never defined.
11534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11537 : "${CONFIG_STATUS=./config.status}"
11539 ac_clean_files_save=$ac_clean_files
11540 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11542 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11544 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11546 # Generated by $as_me.
11547 # Run this file to recreate the current configuration.
11548 # Compiler output produced by configure, useful for debugging
11549 # configure, is in config.log if it exists.
11552 ac_cs_recheck=false
11555 SHELL=\${CONFIG_SHELL-$SHELL}
11558 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11559 ## -------------------- ##
11560 ## M4sh Initialization. ##
11561 ## -------------------- ##
11563 # Be more Bourne compatible
11564 DUALCASE=1; export DUALCASE # for MKS sh
11565 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11568 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11569 # is contrary to our usage. Disable this feature.
11570 alias -g '${1+"$@"}'='"$@"'
11571 setopt NO_GLOB_SUBST
11573 case `(set -o) 2>/dev/null` in #(
11585 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11586 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11587 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11588 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11589 # Prefer a ksh shell builtin over an external printf program on Solaris,
11590 # but without wasting forks for bash or zsh.
11591 if test -z "$BASH_VERSION$ZSH_VERSION" \
11592 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11593 as_echo='print -r --'
11594 as_echo_n='print -rn --'
11595 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11596 as_echo='printf %s\n'
11597 as_echo_n='printf %s'
11599 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11600 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11601 as_echo_n='/usr/ucb/echo -n'
11603 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11604 as_echo_n_body='eval
11608 expr "X$arg" : "X\\(.*\\)$as_nl";
11609 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11611 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11613 export as_echo_n_body
11614 as_echo_n='sh -c $as_echo_n_body as_echo'
11616 export as_echo_body
11617 as_echo='sh -c $as_echo_body as_echo'
11620 # The user is always right.
11621 if test "${PATH_SEPARATOR+set}" != set; then
11623 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11624 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11631 # We need space, tab and new line, in precisely that order. Quoting is
11632 # there to prevent editors from complaining about space-tab.
11633 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11634 # splitting by setting IFS to empty value.)
11637 # Find who we are. Look in the path if we contain no directory separator.
11640 *[\\/]* ) as_myself=$0 ;;
11641 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11642 for as_dir in $PATH
11645 test -z "$as_dir" && as_dir=.
11646 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11652 # We did not find ourselves, most probably we were run as `sh COMMAND'
11653 # in which case we are not to be found in the path.
11654 if test "x$as_myself" = x; then
11657 if test ! -f "$as_myself"; then
11658 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11662 # Unset variables that we do not need and which cause bugs (e.g. in
11663 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11664 # suppresses any "Segmentation fault" message there. '((' could
11665 # trigger a bug in pdksh 5.2.14.
11666 for as_var in BASH_ENV ENV MAIL MAILPATH
11667 do eval test x\${$as_var+set} = xset \
11668 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11681 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11684 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11685 # ----------------------------------------
11686 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11687 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11688 # script with STATUS, using 1 if that was 0.
11691 as_status=$1; test $as_status -eq 0 && as_status=1
11693 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11694 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11696 $as_echo "$as_me: error: $2" >&2
11697 as_fn_exit $as_status
11701 # as_fn_set_status STATUS
11702 # -----------------------
11703 # Set $? to STATUS, without forking.
11704 as_fn_set_status ()
11707 } # as_fn_set_status
11709 # as_fn_exit STATUS
11710 # -----------------
11711 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11715 as_fn_set_status $1
11721 # Portably unset VAR.
11724 { eval $1=; unset $1;}
11726 as_unset=as_fn_unset
11727 # as_fn_append VAR VALUE
11728 # ----------------------
11729 # Append the text in VALUE to the end of the definition contained in VAR. Take
11730 # advantage of any shell optimizations that allow amortized linear growth over
11731 # repeated appends, instead of the typical quadratic growth present in naive
11733 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11734 eval 'as_fn_append ()
11745 # as_fn_arith ARG...
11746 # ------------------
11747 # Perform arithmetic evaluation on the ARGs, and store the result in the
11748 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11749 # must be portable across $(()) and expr.
11750 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11751 eval 'as_fn_arith ()
11758 as_val=`expr "$@" || test $? -eq 1`
11763 if expr a : '\(a\)' >/dev/null 2>&1 &&
11764 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11770 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11771 as_basename=basename
11776 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11782 as_me=`$as_basename -- "$0" ||
11783 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11784 X"$0" : 'X\(//\)$' \| \
11785 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11787 sed '/^.*\/\([^/][^/]*\)\/*$/{
11801 # Avoid depending upon Character Ranges.
11802 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11803 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11804 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11805 as_cr_digits='0123456789'
11806 as_cr_alnum=$as_cr_Letters$as_cr_digits
11808 ECHO_C= ECHO_N= ECHO_T=
11809 case `echo -n x` in #(((((
11811 case `echo 'xy\c'` in
11812 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11814 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11821 rm -f conf$$ conf$$.exe conf$$.file
11822 if test -d conf$$.dir; then
11823 rm -f conf$$.dir/conf$$.file
11826 mkdir conf$$.dir 2>/dev/null
11828 if (echo >conf$$.file) 2>/dev/null; then
11829 if ln -s conf$$.file conf$$ 2>/dev/null; then
11831 # ... but there are two gotchas:
11832 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11833 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11834 # In both cases, we have to default to `cp -p'.
11835 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11837 elif ln conf$$.file conf$$ 2>/dev/null; then
11845 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11846 rmdir conf$$.dir 2>/dev/null
11851 # Create "$as_dir" as a directory, including parents if necessary.
11856 -*) as_dir=./$as_dir;;
11858 test -d "$as_dir" || eval $as_mkdir_p || {
11862 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11863 *) as_qdir=$as_dir;;
11865 as_dirs="'$as_qdir' $as_dirs"
11866 as_dir=`$as_dirname -- "$as_dir" ||
11867 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11868 X"$as_dir" : 'X\(//\)[^/]' \| \
11869 X"$as_dir" : 'X\(//\)$' \| \
11870 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11871 $as_echo X"$as_dir" |
11872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11876 /^X\(\/\/\)[^/].*/{
11889 test -d "$as_dir" && break
11891 test -z "$as_dirs" || eval "mkdir $as_dirs"
11892 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11896 if mkdir -p . 2>/dev/null; then
11897 as_mkdir_p='mkdir -p "$as_dir"'
11899 test -d ./-p && rmdir ./-p
11903 if test -x / >/dev/null 2>&1; then
11904 as_test_x='test -x'
11906 if ls -dL / >/dev/null 2>&1; then
11913 if test -d "$1"; then
11919 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11920 ???[sx]*):;;*)false;;esac;fi
11924 as_executable_p=$as_test_x
11926 # Sed expression to map a string onto a valid CPP name.
11927 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11929 # Sed expression to map a string onto a valid variable name.
11930 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11934 ## ----------------------------------- ##
11935 ## Main body of $CONFIG_STATUS script. ##
11936 ## ----------------------------------- ##
11938 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11941 # Save the log message, to keep $0 and so on meaningful, and to
11942 # report actual input values of CONFIG_FILES etc. instead of their
11943 # values after options handling.
11945 This file was extended by libXpm $as_me 3.5.9, which was
11946 generated by GNU Autoconf 2.68. Invocation command line was
11948 CONFIG_FILES = $CONFIG_FILES
11949 CONFIG_HEADERS = $CONFIG_HEADERS
11950 CONFIG_LINKS = $CONFIG_LINKS
11951 CONFIG_COMMANDS = $CONFIG_COMMANDS
11954 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11959 case $ac_config_files in *"
11960 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11963 case $ac_config_headers in *"
11964 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11969 # Files that config.status was made for.
11970 config_files="$ac_config_files"
11971 config_headers="$ac_config_headers"
11972 config_commands="$ac_config_commands"
11976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11978 \`$as_me' instantiates files and other configuration actions
11979 from templates according to the current configuration. Unless the files
11980 and actions are specified as TAGs, all are instantiated by default.
11982 Usage: $0 [OPTION]... [TAG]...
11984 -h, --help print this help, then exit
11985 -V, --version print version number and configuration settings, then exit
11986 --config print configuration, then exit
11987 -q, --quiet, --silent
11988 do not print progress messages
11989 -d, --debug don't remove temporary files
11990 --recheck update $as_me by reconfiguring in the same conditions
11991 --file=FILE[:TEMPLATE]
11992 instantiate the configuration file FILE
11993 --header=FILE[:TEMPLATE]
11994 instantiate the configuration header FILE
11996 Configuration files:
11999 Configuration headers:
12002 Configuration commands:
12005 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12009 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12011 libXpm config.status 3.5.9
12012 configured by $0, generated by GNU Autoconf 2.68,
12013 with options \\"\$ac_cs_config\\"
12015 Copyright (C) 2010 Free Software Foundation, Inc.
12016 This config.status script is free software; the Free Software Foundation
12017 gives unlimited permission to copy, distribute and modify it."
12024 test -n "\$AWK" || AWK=awk
12027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12028 # The default lists apply if the user does not specify any file.
12034 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12035 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12039 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12051 # Handling of the options.
12052 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12054 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12055 $as_echo "$ac_cs_version"; exit ;;
12056 --config | --confi | --conf | --con | --co | --c )
12057 $as_echo "$ac_cs_config"; exit ;;
12058 --debug | --debu | --deb | --de | --d | -d )
12060 --file | --fil | --fi | --f )
12063 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12064 '') as_fn_error $? "missing file argument" ;;
12066 as_fn_append CONFIG_FILES " '$ac_optarg'"
12067 ac_need_defaults=false;;
12068 --header | --heade | --head | --hea )
12071 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12073 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12074 ac_need_defaults=false;;
12076 # Conflict between --help and --header
12077 as_fn_error $? "ambiguous option: \`$1'
12078 Try \`$0 --help' for more information.";;
12079 --help | --hel | -h )
12080 $as_echo "$ac_cs_usage"; exit ;;
12081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12082 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12085 # This is an error.
12086 -*) as_fn_error $? "unrecognized option: \`$1'
12087 Try \`$0 --help' for more information." ;;
12089 *) as_fn_append ac_config_targets " $1"
12090 ac_need_defaults=false ;;
12096 ac_configure_extra_args=
12098 if $ac_cs_silent; then
12100 ac_configure_extra_args="$ac_configure_extra_args --silent"
12104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12105 if \$ac_cs_recheck; then
12106 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12108 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12109 CONFIG_SHELL='$SHELL'
12110 export CONFIG_SHELL
12115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12119 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12120 ## Running $as_me. ##
12126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12130 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12133 # The HP-UX ksh and POSIX shell print the target directory to stdout
12134 # if CDPATH is set.
12135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12137 sed_quote_subst='$sed_quote_subst'
12138 double_quote_subst='$double_quote_subst'
12139 delay_variable_subst='$delay_variable_subst'
12140 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12141 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12142 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12143 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12144 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12145 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12146 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12147 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12148 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12149 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12150 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12151 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12152 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12153 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12154 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12155 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12156 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12157 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12158 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12159 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12160 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12161 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12162 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12163 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12164 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12165 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12166 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12167 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12168 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12169 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12170 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12171 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12172 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12173 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12174 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12175 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12176 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12177 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12178 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12179 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12180 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12181 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12182 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12183 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12184 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12185 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12186 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12187 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12188 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"`'
12189 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12190 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12191 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12192 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12193 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12194 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12195 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12196 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12197 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12198 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12199 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12200 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12201 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12202 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12203 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12204 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12205 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12206 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12207 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12208 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12209 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12210 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12211 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12212 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12213 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12214 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12215 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12216 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12217 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12218 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12219 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12220 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12221 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12222 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12223 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12224 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12225 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12226 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12227 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12228 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12229 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12230 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12231 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12232 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12233 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12234 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12235 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12236 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12237 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12238 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12239 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12240 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12241 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12242 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12243 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12244 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12245 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12246 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12247 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12248 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12249 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12250 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12251 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12252 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12253 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12254 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12255 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12256 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12257 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12258 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12259 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12262 LTCFLAGS='$LTCFLAGS'
12263 compiler='$compiler_DEFAULT'
12265 # A function that is used when there is no print builtin or printf.
12266 func_fallback_echo ()
12268 eval 'cat <<_LTECHO_EOF
12273 # Quote evaled strings.
12287 deplibs_check_method \
12296 lt_cv_sys_global_symbol_pipe \
12297 lt_cv_sys_global_symbol_to_cdecl \
12298 lt_cv_sys_global_symbol_to_c_name_address \
12299 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12300 lt_prog_compiler_no_builtin_flag \
12301 lt_prog_compiler_wl \
12302 lt_prog_compiler_pic \
12303 lt_prog_compiler_static \
12304 lt_cv_prog_compiler_c_o \
12312 export_dynamic_flag_spec \
12313 whole_archive_flag_spec \
12314 compiler_needs_object \
12316 allow_undefined_flag \
12317 no_undefined_flag \
12318 hardcode_libdir_flag_spec \
12319 hardcode_libdir_flag_spec_ld \
12320 hardcode_libdir_separator \
12325 variables_saved_for_relink \
12327 library_names_spec \
12329 install_override_mode \
12333 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12334 *[\\\\\\\`\\"\\\$]*)
12335 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12338 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12343 # Double-quote double-evaled strings.
12344 for var in reload_cmds \
12345 old_postinstall_cmds \
12346 old_postuninstall_cmds \
12348 extract_expsyms_cmds \
12349 old_archive_from_new_cmds \
12350 old_archive_from_expsyms_cmds \
12352 archive_expsym_cmds \
12354 module_expsym_cmds \
12355 export_symbols_cmds \
12358 postuninstall_cmds \
12360 sys_lib_search_path_spec \
12361 sys_lib_dlsearch_path_spec; do
12362 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12363 *[\\\\\\\`\\"\\\$]*)
12364 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12367 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12372 ac_aux_dir='$ac_aux_dir'
12373 xsi_shell='$xsi_shell'
12374 lt_shell_append='$lt_shell_append'
12376 # See if we are running on zsh, and set the options which allow our
12377 # commands through without removal of \ escapes INIT.
12378 if test -n "\${ZSH_VERSION+set}" ; then
12379 setopt NO_GLOB_SUBST
12385 TIMESTAMP='$TIMESTAMP'
12394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12396 # Handling of arguments.
12397 for ac_config_target in $ac_config_targets
12399 case $ac_config_target in
12400 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12401 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12402 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12403 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12404 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12405 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12406 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12407 "sxpm/Makefile") CONFIG_FILES="$CONFIG_FILES sxpm/Makefile" ;;
12408 "cxpm/Makefile") CONFIG_FILES="$CONFIG_FILES cxpm/Makefile" ;;
12409 "xpm.pc") CONFIG_FILES="$CONFIG_FILES xpm.pc" ;;
12411 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12416 # If the user did not use the arguments to specify the items to instantiate,
12417 # then the envvar interface is used. Set only those that are not.
12418 # We use the long form for the default assignment because of an extremely
12419 # bizarre bug on SunOS 4.1.3.
12420 if $ac_need_defaults; then
12421 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12422 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12423 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12426 # Have a temporary directory for convenience. Make it in the build tree
12427 # simply because there is no reason against having it here, and in addition,
12428 # creating and moving files from /tmp can sometimes cause problems.
12429 # Hook for its removal unless debugging.
12430 # Note that there is a small window in which the directory will not be cleaned:
12431 # after its creation but before its name has been assigned to `$tmp'.
12435 trap 'exit_status=$?
12436 : "${ac_tmp:=$tmp}"
12437 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12439 trap 'as_fn_exit 1' 1 2 13 15
12441 # Create a (secure) tmp directory for tmp files.
12444 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12448 tmp=./conf$$-$RANDOM
12449 (umask 077 && mkdir "$tmp")
12450 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12453 # Set up the scripts for CONFIG_FILES section.
12454 # No need to generate them if there are no CONFIG_FILES.
12455 # This happens for instance with `./config.status config.h'.
12456 if test -n "$CONFIG_FILES"; then
12459 ac_cr=`echo X | tr X '\015'`
12460 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12461 # But we know of no other shell where ac_cr would be empty at this
12462 # point, so we can use a bashism as a fallback.
12463 if test "x$ac_cr" = x; then
12464 eval ac_cr=\$\'\\r\'
12466 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12467 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12470 ac_cs_awk_cr=$ac_cr
12473 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12478 echo "cat >conf$$subs.awk <<_ACEOF" &&
12479 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12481 } >conf$$subs.sh ||
12482 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12483 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12485 for ac_last_try in false false false false false :; do
12486 . ./conf$$subs.sh ||
12487 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12489 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12490 if test $ac_delim_n = $ac_delim_num; then
12492 elif $ac_last_try; then
12493 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12495 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12498 rm -f conf$$subs.sh
12500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12501 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12505 s/^/S["/; s/!.*/"]=/
12515 s/\(.\{148\}\)..*/\1/
12517 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12522 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12529 s/\(.\{148\}\)..*/\1/
12531 s/["\\]/\\&/g; s/^/"/; s/$/"/
12535 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12540 ' <conf$$subs.awk | sed '
12545 ' >>$CONFIG_STATUS || ac_write_fail=1
12546 rm -f conf$$subs.awk
12547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12549 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12550 for (key in S) S_is_set[key] = 1
12556 nfields = split(line, field, "@")
12558 len = length(field[1])
12559 for (i = 2; i < nfields; i++) {
12561 keylen = length(key)
12562 if (S_is_set[key]) {
12564 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12565 len += length(value) + length(field[++i])
12576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12577 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12578 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12581 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12582 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12585 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12586 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12587 # trailing colons and then remove the whole line if VPATH becomes empty
12588 # (actually we leave an empty line to preserve line numbers).
12589 if test "x$srcdir" = x.; then
12590 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12609 fi # test -n "$CONFIG_FILES"
12611 # Set up the scripts for CONFIG_HEADERS section.
12612 # No need to generate them if there are no CONFIG_HEADERS.
12613 # This happens for instance with `./config.status Makefile'.
12614 if test -n "$CONFIG_HEADERS"; then
12615 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12619 # Transform confdefs.h into an awk script `defines.awk', embedded as
12620 # here-document in config.status, that substitutes the proper values into
12621 # config.h.in to produce config.h.
12623 # Create a delimiter string that does not exist in confdefs.h, to ease
12624 # handling of long lines.
12626 for ac_last_try in false false :; do
12627 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12628 if test -z "$ac_tt"; then
12630 elif $ac_last_try; then
12631 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12633 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12637 # For the awk script, D is an array of macro values keyed by name,
12638 # likewise P contains macro parameters if any. Preserve backslash
12639 # newline sequences.
12641 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12643 s/.\{148\}/&'"$ac_delim"'/g
12646 s/^[ ]*#[ ]*define[ ][ ]*/ /
12653 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12655 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12659 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12660 D["\1"]=" \3\\\\\\n"\\/p
12662 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12667 s/.\{148\}/&'"$ac_delim"'/g
12672 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12675 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12677 ' <confdefs.h | sed '
12678 s/'"$ac_delim"'/"\\\
12679 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12682 for (key in D) D_is_set[key] = 1
12685 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12687 split(line, arg, " ")
12688 if (arg[1] == "#") {
12692 defundef = substr(arg[1], 2)
12695 split(mac1, mac2, "(") #)
12697 prefix = substr(line, 1, index(line, defundef) - 1)
12698 if (D_is_set[macro]) {
12699 # Preserve the white space surrounding the "#".
12700 print prefix "define", macro P[macro] D[macro]
12703 # Replace #undef with comments. This is necessary, for example,
12704 # in the case of _POSIX_SOURCE, which is predefined and required
12705 # on some systems where configure will not decide to define it.
12706 if (defundef == "undef") {
12707 print "/*", prefix defundef, macro, "*/"
12715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12716 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12717 fi # test -n "$CONFIG_HEADERS"
12720 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12725 :[FHLC]) ac_mode=$ac_tag; continue;;
12727 case $ac_mode$ac_tag in
12729 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12730 :[FH]-) ac_tag=-:-;;
12731 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12748 -) ac_f="$ac_tmp/stdin";;
12749 *) # Look for the file first in the build tree, then in the source tree
12750 # (if the path is not absolute). The absolute path cannot be DOS-style,
12751 # because $ac_f cannot contain `:'.
12755 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12757 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12759 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12760 as_fn_append ac_file_inputs " '$ac_f'"
12763 # Let's still pretend it is `configure' which instantiates (i.e., don't
12764 # use $as_me), people would be surprised to read:
12765 # /* config.h. Generated by config.status. */
12766 configure_input='Generated from '`
12767 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12769 if test x"$ac_file" != x-; then
12770 configure_input="$ac_file. $configure_input"
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12772 $as_echo "$as_me: creating $ac_file" >&6;}
12774 # Neutralize special characters interpreted by sed in replacement strings.
12775 case $configure_input in #(
12776 *\&* | *\|* | *\\* )
12777 ac_sed_conf_input=`$as_echo "$configure_input" |
12778 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12779 *) ac_sed_conf_input=$configure_input;;
12783 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12784 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12789 ac_dir=`$as_dirname -- "$ac_file" ||
12790 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12791 X"$ac_file" : 'X\(//\)[^/]' \| \
12792 X"$ac_file" : 'X\(//\)$' \| \
12793 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12794 $as_echo X"$ac_file" |
12795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12799 /^X\(\/\/\)[^/].*/{
12812 as_dir="$ac_dir"; as_fn_mkdir_p
12816 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12818 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12819 # A ".." for each directory in $ac_dir_suffix.
12820 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12821 case $ac_top_builddir_sub in
12822 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12823 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12826 ac_abs_top_builddir=$ac_pwd
12827 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12828 # for backward compatibility:
12829 ac_top_builddir=$ac_top_build_prefix
12832 .) # We are building in place.
12834 ac_top_srcdir=$ac_top_builddir_sub
12835 ac_abs_top_srcdir=$ac_pwd ;;
12836 [\\/]* | ?:[\\/]* ) # Absolute name.
12837 ac_srcdir=$srcdir$ac_dir_suffix;
12838 ac_top_srcdir=$srcdir
12839 ac_abs_top_srcdir=$srcdir ;;
12840 *) # Relative name.
12841 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12842 ac_top_srcdir=$ac_top_build_prefix$srcdir
12843 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12845 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12855 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12856 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12858 ac_MKDIR_P=$MKDIR_P
12860 [\\/$]* | ?:[\\/]* ) ;;
12861 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12866 # If the template does not know about datarootdir, expand it.
12867 # FIXME: This hack should be removed a few years after 2.60.
12868 ac_datarootdir_hack=; ac_datarootdir_seen=
12879 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12880 *datarootdir*) ac_datarootdir_seen=yes;;
12881 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12883 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12886 ac_datarootdir_hack='
12887 s&@datadir@&$datadir&g
12888 s&@docdir@&$docdir&g
12889 s&@infodir@&$infodir&g
12890 s&@localedir@&$localedir&g
12891 s&@mandir@&$mandir&g
12892 s&\\\${datarootdir}&$datarootdir&g' ;;
12896 # Neutralize VPATH when `$srcdir' = `.'.
12897 # Shell code in configure.ac might set extrasub.
12898 # FIXME: do we really want to maintain this feature?
12899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12900 ac_sed_extra="$ac_vpsub
12903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12905 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12906 s|@configure_input@|$ac_sed_conf_input|;t t
12907 s&@top_builddir@&$ac_top_builddir_sub&;t t
12908 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12909 s&@srcdir@&$ac_srcdir&;t t
12910 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12911 s&@top_srcdir@&$ac_top_srcdir&;t t
12912 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12913 s&@builddir@&$ac_builddir&;t t
12914 s&@abs_builddir@&$ac_abs_builddir&;t t
12915 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12916 s&@INSTALL@&$ac_INSTALL&;t t
12917 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12918 $ac_datarootdir_hack
12920 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12921 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12923 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12924 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12925 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12926 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12928 which seems to be undefined. Please make sure it is defined" >&5
12929 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12930 which seems to be undefined. Please make sure it is defined" >&2;}
12932 rm -f "$ac_tmp/stdin"
12934 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12935 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12937 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12943 if test x"$ac_file" != x-; then
12945 $as_echo "/* $configure_input */" \
12946 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12947 } >"$ac_tmp/config.h" \
12948 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12949 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12951 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12954 mv "$ac_tmp/config.h" "$ac_file" \
12955 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12958 $as_echo "/* $configure_input */" \
12959 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12960 || as_fn_error $? "could not create -" "$LINENO" 5
12962 # Compute "$ac_file"'s index in $config_headers.
12965 for _am_header in $config_headers :; do
12966 case $_am_header in
12967 $_am_arg | $_am_arg:* )
12970 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12973 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12974 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12975 X"$_am_arg" : 'X\(//\)[^/]' \| \
12976 X"$_am_arg" : 'X\(//\)$' \| \
12977 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12978 $as_echo X"$_am_arg" |
12979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12983 /^X\(\/\/\)[^/].*/{
12995 s/.*/./; q'`/stamp-h$_am_stamp_count
12998 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12999 $as_echo "$as_me: executing $ac_file commands" >&6;}
13004 case $ac_file$ac_mode in
13005 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13006 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13007 # are listed without --file. Let's play safe and only enable the eval
13008 # if we detect the quoting.
13009 case $CONFIG_FILES in
13010 *\'*) eval set x "$CONFIG_FILES" ;;
13011 *) set x $CONFIG_FILES ;;
13016 # Strip MF so we end up with the name of the file.
13017 mf=`echo "$mf" | sed -e 's/:.*$//'`
13018 # Check whether this is an Automake generated Makefile or not.
13019 # We used to match only the files named `Makefile.in', but
13020 # some people rename them; so instead we look at the file content.
13021 # Grep'ing the first line is not enough: some people post-process
13022 # each Makefile.in and add a new line on top of each file to say so.
13023 # Grep'ing the whole file is not good either: AIX grep has a line
13024 # limit of 2048, but all sed's we know have understand at least 4000.
13025 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13026 dirpart=`$as_dirname -- "$mf" ||
13027 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13028 X"$mf" : 'X\(//\)[^/]' \| \
13029 X"$mf" : 'X\(//\)$' \| \
13030 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13036 /^X\(\/\/\)[^/].*/{
13052 # Extract the definition of DEPDIR, am__include, and am__quote
13053 # from the Makefile without running `make'.
13054 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13055 test -z "$DEPDIR" && continue
13056 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13057 test -z "am__include" && continue
13058 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13059 # When using ansi2knr, U may be empty or an underscore; expand it
13060 U=`sed -n 's/^U = //p' < "$mf"`
13061 # Find all dependency output files, they are included files with
13062 # $(DEPDIR) in their names. We invoke sed twice because it is the
13063 # simplest approach to changing $(DEPDIR) to its actual value in the
13065 for file in `sed -n "
13066 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13067 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13068 # Make sure the directory exists.
13069 test -f "$dirpart/$file" && continue
13070 fdir=`$as_dirname -- "$file" ||
13071 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13072 X"$file" : 'X\(//\)[^/]' \| \
13073 X"$file" : 'X\(//\)$' \| \
13074 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13075 $as_echo X"$file" |
13076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13080 /^X\(\/\/\)[^/].*/{
13093 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13094 # echo "creating $dirpart/$file"
13095 echo '# dummy' > "$dirpart/$file"
13102 # See if we are running on zsh, and set the options which allow our
13103 # commands through without removal of \ escapes.
13104 if test -n "${ZSH_VERSION+set}" ; then
13105 setopt NO_GLOB_SUBST
13108 cfgfile="${ofile}T"
13109 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13112 cat <<_LT_EOF >> "$cfgfile"
13115 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13116 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13117 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13118 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13120 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13121 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13123 # Written by Gordon Matzigkeit, 1996
13125 # This file is part of GNU Libtool.
13127 # GNU Libtool is free software; you can redistribute it and/or
13128 # modify it under the terms of the GNU General Public License as
13129 # published by the Free Software Foundation; either version 2 of
13130 # the License, or (at your option) any later version.
13132 # As a special exception to the GNU General Public License,
13133 # if you distribute this file as part of a program or library that
13134 # is built using GNU Libtool, you may include this file under the
13135 # same distribution terms that you use for the rest of that program.
13137 # GNU Libtool is distributed in the hope that it will be useful,
13138 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13139 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13140 # GNU General Public License for more details.
13142 # You should have received a copy of the GNU General Public License
13143 # along with GNU Libtool; see the file COPYING. If not, a copy
13144 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13145 # obtained by writing to the Free Software Foundation, Inc.,
13146 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13149 # The names of the tagged configurations supported by this script.
13152 # ### BEGIN LIBTOOL CONFIG
13154 # Which release of libtool.m4 was used?
13155 macro_version=$macro_version
13156 macro_revision=$macro_revision
13158 # Whether or not to build shared libraries.
13159 build_libtool_libs=$enable_shared
13161 # Whether or not to build static libraries.
13162 build_old_libs=$enable_static
13164 # What type of objects to build.
13167 # Whether or not to optimize for fast installation.
13168 fast_install=$enable_fast_install
13170 # Shell to use when invoking shell scripts.
13173 # An echo program that protects backslashes.
13177 host_alias=$host_alias
13181 # The build system.
13182 build_alias=$build_alias
13186 # A sed program that does not truncate output.
13189 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13190 Xsed="\$SED -e 1s/^X//"
13192 # A grep program that handles long lines.
13198 # A literal string matcher.
13201 # A BSD- or MS-compatible name lister.
13204 # Whether we need soft or hard links.
13207 # What is the maximum length of a command?
13208 max_cmd_len=$max_cmd_len
13210 # Object file suffix (normally "o").
13213 # Executable file suffix (normally "").
13216 # whether the shell understands "unset".
13219 # turn spaces into newlines.
13222 # turn newlines into spaces.
13225 # An object symbol dumper.
13226 OBJDUMP=$lt_OBJDUMP
13228 # Method to check whether dependent libraries are shared objects.
13229 deplibs_check_method=$lt_deplibs_check_method
13231 # Command to use when deplibs_check_method == "file_magic".
13232 file_magic_cmd=$lt_file_magic_cmd
13236 AR_FLAGS=$lt_AR_FLAGS
13238 # A symbol stripping program.
13241 # Commands used to install an old-style archive.
13243 old_postinstall_cmds=$lt_old_postinstall_cmds
13244 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13246 # Whether to use a lock for old archive extraction.
13247 lock_old_archive_extraction=$lock_old_archive_extraction
13252 # LTCC compiler flags.
13253 LTCFLAGS=$lt_CFLAGS
13255 # Take the output of nm and produce a listing of raw symbols and C names.
13256 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13258 # Transform the output of nm in a proper C declaration.
13259 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13261 # Transform the output of nm in a C name address pair.
13262 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13264 # Transform the output of nm in a C name address pair when lib prefix is needed.
13265 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13267 # The name of the directory that contains temporary libtool files.
13270 # Used to examine libraries when file_magic_cmd begins with "file".
13271 MAGIC_CMD=$MAGIC_CMD
13273 # Must we lock files when doing compilation?
13274 need_locks=$lt_need_locks
13276 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13277 DSYMUTIL=$lt_DSYMUTIL
13279 # Tool to change global to local symbols on Mac OS X.
13282 # Tool to manipulate fat objects and archives on Mac OS X.
13285 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13288 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13289 OTOOL64=$lt_OTOOL64
13291 # Old archive suffix (normally "a").
13294 # Shared library suffix (normally ".so").
13295 shrext_cmds=$lt_shrext_cmds
13297 # The commands to extract the exported symbol list from a shared archive.
13298 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13300 # Variables whose values should be saved in libtool wrapper scripts and
13301 # restored at link time.
13302 variables_saved_for_relink=$lt_variables_saved_for_relink
13304 # Do we need the "lib" prefix for modules?
13305 need_lib_prefix=$need_lib_prefix
13307 # Do we need a version for libraries?
13308 need_version=$need_version
13310 # Library versioning type.
13311 version_type=$version_type
13313 # Shared library runtime path variable.
13314 runpath_var=$runpath_var
13316 # Shared library path variable.
13317 shlibpath_var=$shlibpath_var
13319 # Is shlibpath searched before the hard-coded library search path?
13320 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13322 # Format of library name prefix.
13323 libname_spec=$lt_libname_spec
13325 # List of archive names. First name is the real one, the rest are links.
13326 # The last name is the one that the linker finds with -lNAME
13327 library_names_spec=$lt_library_names_spec
13329 # The coded name of the library, if different from the real name.
13330 soname_spec=$lt_soname_spec
13332 # Permission mode override for installation of shared libraries.
13333 install_override_mode=$lt_install_override_mode
13335 # Command to use after installation of a shared archive.
13336 postinstall_cmds=$lt_postinstall_cmds
13338 # Command to use after uninstallation of a shared archive.
13339 postuninstall_cmds=$lt_postuninstall_cmds
13341 # Commands used to finish a libtool library installation in a directory.
13342 finish_cmds=$lt_finish_cmds
13344 # As "finish_cmds", except a single script fragment to be evaled but
13346 finish_eval=$lt_finish_eval
13348 # Whether we should hardcode library paths into libraries.
13349 hardcode_into_libs=$hardcode_into_libs
13351 # Compile-time system search path for libraries.
13352 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13354 # Run-time system search path for libraries.
13355 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13357 # Whether dlopen is supported.
13358 dlopen_support=$enable_dlopen
13360 # Whether dlopen of programs is supported.
13361 dlopen_self=$enable_dlopen_self
13363 # Whether dlopen of statically linked programs is supported.
13364 dlopen_self_static=$enable_dlopen_self_static
13366 # Commands to strip libraries.
13367 old_striplib=$lt_old_striplib
13368 striplib=$lt_striplib
13371 # The linker used to build libraries.
13374 # How to create reloadable object files.
13375 reload_flag=$lt_reload_flag
13376 reload_cmds=$lt_reload_cmds
13378 # Commands used to build an old-style archive.
13379 old_archive_cmds=$lt_old_archive_cmds
13381 # A language specific compiler.
13384 # Is the compiler the GNU compiler?
13387 # Compiler flag to turn off builtin functions.
13388 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13390 # How to pass a linker flag through the compiler.
13391 wl=$lt_lt_prog_compiler_wl
13393 # Additional compiler flags for building library objects.
13394 pic_flag=$lt_lt_prog_compiler_pic
13396 # Compiler flag to prevent dynamic linking.
13397 link_static_flag=$lt_lt_prog_compiler_static
13399 # Does compiler simultaneously support -c and -o options?
13400 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13402 # Whether or not to add -lc for building shared libraries.
13403 build_libtool_need_lc=$archive_cmds_need_lc
13405 # Whether or not to disallow shared libs when runtime libs are static.
13406 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13408 # Compiler flag to allow reflexive dlopens.
13409 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13411 # Compiler flag to generate shared objects directly from archives.
13412 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13414 # Whether the compiler copes with passing no objects directly.
13415 compiler_needs_object=$lt_compiler_needs_object
13417 # Create an old-style archive from a shared archive.
13418 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13420 # Create a temporary old-style archive to link instead of a shared archive.
13421 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13423 # Commands used to build a shared archive.
13424 archive_cmds=$lt_archive_cmds
13425 archive_expsym_cmds=$lt_archive_expsym_cmds
13427 # Commands used to build a loadable module if different from building
13428 # a shared archive.
13429 module_cmds=$lt_module_cmds
13430 module_expsym_cmds=$lt_module_expsym_cmds
13432 # Whether we are building with GNU ld or not.
13433 with_gnu_ld=$lt_with_gnu_ld
13435 # Flag that allows shared libraries with undefined symbols to be built.
13436 allow_undefined_flag=$lt_allow_undefined_flag
13438 # Flag that enforces no undefined symbols.
13439 no_undefined_flag=$lt_no_undefined_flag
13441 # Flag to hardcode \$libdir into a binary during linking.
13442 # This must work even if \$libdir does not exist
13443 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13445 # If ld is used when linking, flag to hardcode \$libdir into a binary
13446 # during linking. This must work even if \$libdir does not exist.
13447 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13449 # Whether we need a single "-rpath" flag with a separated argument.
13450 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13452 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13453 # DIR into the resulting binary.
13454 hardcode_direct=$hardcode_direct
13456 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13457 # DIR into the resulting binary and the resulting library dependency is
13458 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13459 # library is relocated.
13460 hardcode_direct_absolute=$hardcode_direct_absolute
13462 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13463 # into the resulting binary.
13464 hardcode_minus_L=$hardcode_minus_L
13466 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13467 # into the resulting binary.
13468 hardcode_shlibpath_var=$hardcode_shlibpath_var
13470 # Set to "yes" if building a shared library automatically hardcodes DIR
13471 # into the library and all subsequent libraries and executables linked
13473 hardcode_automatic=$hardcode_automatic
13475 # Set to yes if linker adds runtime paths of dependent libraries
13476 # to runtime path list.
13477 inherit_rpath=$inherit_rpath
13479 # Whether libtool must link a program against all its dependency libraries.
13480 link_all_deplibs=$link_all_deplibs
13482 # Fix the shell variable \$srcfile for the compiler.
13483 fix_srcfile_path=$lt_fix_srcfile_path
13485 # Set to "yes" if exported symbols are required.
13486 always_export_symbols=$always_export_symbols
13488 # The commands to list exported symbols.
13489 export_symbols_cmds=$lt_export_symbols_cmds
13491 # Symbols that should not be listed in the preloaded symbols.
13492 exclude_expsyms=$lt_exclude_expsyms
13494 # Symbols that must always be exported.
13495 include_expsyms=$lt_include_expsyms
13497 # Commands necessary for linking programs (against libraries) with templates.
13498 prelink_cmds=$lt_prelink_cmds
13500 # Specify filename containing input files.
13501 file_list_spec=$lt_file_list_spec
13503 # How to hardcode a shared library path into an executable.
13504 hardcode_action=$hardcode_action
13506 # ### END LIBTOOL CONFIG
13512 cat <<\_LT_EOF >> "$cfgfile"
13513 # AIX sometimes has problems with the GCC collect2 program. For some
13514 # reason, if we set the COLLECT_NAMES environment variable, the problems
13515 # vanish in a puff of smoke.
13516 if test "X${COLLECT_NAMES+set}" != Xset; then
13518 export COLLECT_NAMES
13525 ltmain="$ac_aux_dir/ltmain.sh"
13528 # We use sed instead of cat because bash on DJGPP gets confused if
13529 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13530 # text mode, it properly converts lines to CR/LF. This bash problem
13531 # is reportedly fixed, but why not run on old versions too?
13532 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13533 || (rm -f "$cfgfile"; exit 1)
13537 cat << \_LT_EOF >> "$cfgfile"
13539 # func_dirname file append nondir_replacement
13540 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13541 # otherwise set result to NONDIR_REPLACEMENT.
13545 */*) func_dirname_result="${1%/*}${2}" ;;
13546 * ) func_dirname_result="${3}" ;;
13550 # func_basename file
13553 func_basename_result="${1##*/}"
13556 # func_dirname_and_basename file append nondir_replacement
13557 # perform func_basename and func_dirname in a single function
13559 # dirname: Compute the dirname of FILE. If nonempty,
13560 # add APPEND to the result, otherwise set result
13561 # to NONDIR_REPLACEMENT.
13562 # value returned in "$func_dirname_result"
13563 # basename: Compute filename of FILE.
13564 # value retuned in "$func_basename_result"
13565 # Implementation must be kept synchronized with func_dirname
13566 # and func_basename. For efficiency, we do not delegate to
13567 # those functions but instead duplicate the functionality here.
13568 func_dirname_and_basename ()
13571 */*) func_dirname_result="${1%/*}${2}" ;;
13572 * ) func_dirname_result="${3}" ;;
13574 func_basename_result="${1##*/}"
13577 # func_stripname prefix suffix name
13578 # strip PREFIX and SUFFIX off of NAME.
13579 # PREFIX and SUFFIX must not contain globbing or regex special
13580 # characters, hashes, percent signs, but SUFFIX may contain a leading
13581 # dot (in which case that matches only a dot).
13584 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13585 # positional parameters, so assign one to ordinary parameter first.
13586 func_stripname_result=${3}
13587 func_stripname_result=${func_stripname_result#"${1}"}
13588 func_stripname_result=${func_stripname_result%"${2}"}
13594 func_opt_split_opt=${1%%=*}
13595 func_opt_split_arg=${1#*=}
13602 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13603 *) func_lo2o_result=${1} ;;
13607 # func_xform libobj-or-source
13610 func_xform_result=${1%.*}.lo
13613 # func_arith arithmetic-term...
13616 func_arith_result=$(( $* ))
13620 # STRING may not start with a hyphen.
13623 func_len_result=${#1}
13628 *) # Bourne compatible functions.
13629 cat << \_LT_EOF >> "$cfgfile"
13631 # func_dirname file append nondir_replacement
13632 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13633 # otherwise set result to NONDIR_REPLACEMENT.
13636 # Extract subdirectory from the argument.
13637 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13638 if test "X$func_dirname_result" = "X${1}"; then
13639 func_dirname_result="${3}"
13641 func_dirname_result="$func_dirname_result${2}"
13645 # func_basename file
13648 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13652 # func_stripname prefix suffix name
13653 # strip PREFIX and SUFFIX off of NAME.
13654 # PREFIX and SUFFIX must not contain globbing or regex special
13655 # characters, hashes, percent signs, but SUFFIX may contain a leading
13656 # dot (in which case that matches only a dot).
13657 # func_strip_suffix prefix name
13661 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13662 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13667 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13668 my_sed_long_arg='1s/^-[^=]*=//'
13673 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13674 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13680 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13683 # func_xform libobj-or-source
13686 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13689 # func_arith arithmetic-term...
13692 func_arith_result=`expr "$@"`
13696 # STRING may not start with a hyphen.
13699 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13705 case $lt_shell_append in
13707 cat << \_LT_EOF >> "$cfgfile"
13709 # func_append var value
13710 # Append VALUE to the end of shell variable VAR.
13718 cat << \_LT_EOF >> "$cfgfile"
13720 # func_append var value
13721 # Append VALUE to the end of shell variable VAR.
13732 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13733 || (rm -f "$cfgfile"; exit 1)
13735 mv -f "$cfgfile" "$ofile" ||
13736 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13747 ac_clean_files=$ac_clean_files_save
13749 test $ac_write_fail = 0 ||
13750 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13753 # configure is writing to config.log, and then calls config.status.
13754 # config.status does its own redirection, appending to config.log.
13755 # Unfortunately, on DOS this fails, as config.log is still kept open
13756 # by configure, so config.status won't be able to write to it; its
13757 # output is simply discarded. So we exec the FD to /dev/null,
13758 # effectively closing config.log, so it can be properly (re)opened and
13759 # appended to by config.status. When coming back to configure, we
13760 # need to make the FD available again.
13761 if test "$no_create" != yes; then
13763 ac_config_status_args=
13764 test "$silent" = yes &&
13765 ac_config_status_args="$ac_config_status_args --quiet"
13767 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13769 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13770 # would make configure fail if this is the last instruction.
13771 $ac_cs_success || as_fn_exit 1
13773 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13775 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}