2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for FreeType 2.10.4.
5 # Report bugs to <freetype@nongnu.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: freetype@nongnu.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='FreeType'
592 PACKAGE_TARNAME='freetype'
593 PACKAGE_VERSION='2.10.4'
594 PACKAGE_STRING='FreeType 2.10.4'
595 PACKAGE_BUGREPORT='freetype@nongnu.org'
598 ac_unique_file="ftconfig.h.in"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
636 ac_subst_vars='LTLIBOBJS
640 hardcode_libdir_flag_spec
742 program_transform_name
755 enable_option_checking
765 enable_freetype_config
776 with_quickdraw_toolbox
777 with_quickdraw_carbon
780 ac_precious_vars='build_alias
805 # Initialize some variables set by options.
807 ac_init_version=false
808 ac_unrecognized_opts=
810 # The variables have the same names as the options, with
811 # dashes changed to underlines.
819 program_transform_name=s,x,x,
827 # Installation directory options.
828 # These are left unexpanded so users can "make install exec_prefix=/foo"
829 # and all the variables that are supposed to be based on exec_prefix
830 # by default will actually change.
831 # Use braces instead of parens because sh, perl, etc. also accept them.
832 # (The list follows the same order as the GNU Coding Standards.)
833 bindir='${exec_prefix}/bin'
834 sbindir='${exec_prefix}/sbin'
835 libexecdir='${exec_prefix}/libexec'
836 datarootdir='${prefix}/share'
837 datadir='${datarootdir}'
838 sysconfdir='${prefix}/etc'
839 sharedstatedir='${prefix}/com'
840 localstatedir='${prefix}/var'
841 includedir='${prefix}/include'
842 oldincludedir='/usr/include'
843 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844 infodir='${datarootdir}/info'
849 libdir='${exec_prefix}/lib'
850 localedir='${datarootdir}/locale'
851 mandir='${datarootdir}/man'
857 # If the previous option needs an argument, assign it.
858 if test -n "$ac_prev"; then
859 eval $ac_prev=\$ac_option
865 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870 # Accept the important Cygnus configure options, so we can diagnose typos.
872 case $ac_dashdash$ac_option in
876 -bindir | --bindir | --bindi | --bind | --bin | --bi)
878 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
881 -build | --build | --buil | --bui | --bu)
882 ac_prev=build_alias ;;
883 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884 build_alias=$ac_optarg ;;
886 -cache-file | --cache-file | --cache-fil | --cache-fi \
887 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888 ac_prev=cache_file ;;
889 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891 cache_file=$ac_optarg ;;
894 cache_file=config.cache ;;
896 -datadir | --datadir | --datadi | --datad)
898 -datadir=* | --datadir=* | --datadi=* | --datad=*)
899 datadir=$ac_optarg ;;
901 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902 | --dataroo | --dataro | --datar)
903 ac_prev=datarootdir ;;
904 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906 datarootdir=$ac_optarg ;;
908 -disable-* | --disable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 as_fn_error $? "invalid feature name: $ac_useropt"
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
922 eval enable_$ac_useropt=no ;;
924 -docdir | --docdir | --docdi | --doc | --do)
926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934 -enable-* | --enable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
948 eval enable_$ac_useropt=\$ac_optarg ;;
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
963 -help | --help | --hel | --he | -h)
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 htmldir=$ac_optarg ;;
981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
993 -libdir | --libdir | --libdi | --libd)
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1010 -localstatedir | --localstatedir | --localstatedi | --localstated \
1011 | --localstate | --localstat | --localsta | --localst | --locals)
1012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015 localstatedir=$ac_optarg ;;
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1084 -psdir | --psdir | --psdi | --psd | --ps)
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 sbindir=$ac_optarg ;;
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 sharedstatedir=$ac_optarg ;;
1110 -site | --site | --sit)
1112 -site=* | --site=* | --sit=*)
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1139 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1152 eval with_$ac_useropt=\$ac_optarg ;;
1154 -without-* | --without-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1168 eval with_$ac_useropt=no ;;
1171 # Obsolete; use --with-x.
1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175 | --x-incl | --x-inc | --x-in | --x-i)
1176 ac_prev=x_includes ;;
1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179 x_includes=$ac_optarg ;;
1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183 ac_prev=x_libraries ;;
1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186 x_libraries=$ac_optarg ;;
1188 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1189 Try \`$0 --help' for more information"
1193 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194 # Reject names that are not valid shell variable names.
1195 case $ac_envvar in #(
1196 '' | [0-9]* | *[!_$as_cr_alnum]* )
1197 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1199 eval $ac_envvar=\$ac_optarg
1200 export $ac_envvar ;;
1203 # FIXME: should be removed in autoconf 3.0.
1204 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1213 if test -n "$ac_prev"; then
1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215 as_fn_error $? "missing argument to $ac_option"
1218 if test -n "$ac_unrecognized_opts"; then
1219 case $enable_option_checking in
1221 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1222 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1226 # Check all directory arguments for consistency.
1227 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1228 datadir sysconfdir sharedstatedir localstatedir includedir \
1229 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1230 libdir localedir mandir
1232 eval ac_val=\$$ac_var
1233 # Remove trailing slashes.
1236 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1237 eval $ac_var=\$ac_val;;
1239 # Be sure to have absolute directory names.
1241 [\\/$]* | ?:[\\/]* ) continue;;
1242 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1244 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1247 # There might be people who depend on the old broken behavior: `$host'
1248 # used to hold the argument of --host etc.
1249 # FIXME: To remove some day.
1252 target=$target_alias
1254 # FIXME: To remove some day.
1255 if test "x$host_alias" != x; then
1256 if test "x$build_alias" = x; then
1257 cross_compiling=maybe
1258 elif test "x$build_alias" != "x$host_alias"; then
1264 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1266 test "$silent" = yes && exec 6>/dev/null
1269 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270 ac_ls_di=`ls -di .` &&
1271 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272 as_fn_error $? "working directory cannot be determined"
1273 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274 as_fn_error $? "pwd does not report name of working directory"
1277 # Find the source files, if location was not specified.
1278 if test -z "$srcdir"; then
1279 ac_srcdir_defaulted=yes
1280 # Try the directory containing this script, then the parent directory.
1281 ac_confdir=`$as_dirname -- "$as_myself" ||
1282 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283 X"$as_myself" : 'X\(//\)[^/]' \| \
1284 X"$as_myself" : 'X\(//\)$' \| \
1285 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286 $as_echo X"$as_myself" |
1287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1309 ac_srcdir_defaulted=no
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1315 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1317 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1319 # When building in place, set srcdir=.
1320 if test "$ac_abs_confdir" = "$ac_pwd"; then
1323 # Remove unnecessary trailing slashes from srcdir.
1324 # Double slashes in file names in object file debugging info
1325 # mess up M-x gdb in Emacs.
1327 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1329 for ac_var in $ac_precious_vars; do
1330 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_env_${ac_var}_value=\$${ac_var}
1332 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1337 # Report the --help message.
1339 if test "$ac_init_help" = "long"; then
1340 # Omit some internal or obsolete options to make the list less imposing.
1341 # This message is too long to be a string in the A/UX 3.1 sh.
1343 \`configure' configures FreeType 2.10.4 to adapt to many kinds of systems.
1345 Usage: $0 [OPTION]... [VAR=VALUE]...
1347 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348 VAR=VALUE. See below for descriptions of some of the useful variables.
1350 Defaults for the options are specified in brackets.
1353 -h, --help display this help and exit
1354 --help=short display options specific to this package
1355 --help=recursive display the short help of all the included packages
1356 -V, --version display version information and exit
1357 -q, --quiet, --silent do not print \`checking ...' messages
1358 --cache-file=FILE cache test results in FILE [disabled]
1359 -C, --config-cache alias for \`--cache-file=config.cache'
1360 -n, --no-create do not create output files
1361 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1363 Installation directories:
1364 --prefix=PREFIX install architecture-independent files in PREFIX
1365 [$ac_default_prefix]
1366 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1369 By default, \`make install' will install all the files in
1370 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1371 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372 for instance \`--prefix=\$HOME'.
1374 For better control, use the options below.
1376 Fine tuning of the installation directories:
1377 --bindir=DIR user executables [EPREFIX/bin]
1378 --sbindir=DIR system admin executables [EPREFIX/sbin]
1379 --libexecdir=DIR program executables [EPREFIX/libexec]
1380 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1381 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1382 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1383 --libdir=DIR object code libraries [EPREFIX/lib]
1384 --includedir=DIR C header files [PREFIX/include]
1385 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1388 --infodir=DIR info documentation [DATAROOTDIR/info]
1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1390 --mandir=DIR man documentation [DATAROOTDIR/man]
1391 --docdir=DIR documentation root [DATAROOTDIR/doc/freetype]
1392 --htmldir=DIR html documentation [DOCDIR]
1393 --dvidir=DIR dvi documentation [DOCDIR]
1394 --pdfdir=DIR pdf documentation [DOCDIR]
1395 --psdir=DIR ps documentation [DOCDIR]
1401 --build=BUILD configure for building on BUILD [guessed]
1402 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1406 if test -n "$ac_init_help"; then
1407 case $ac_init_help in
1408 short | recursive ) echo "Configuration of FreeType 2.10.4:";;
1413 --disable-option-checking ignore unrecognized --enable/--with options
1414 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1415 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1416 --enable-shared[=PKGS] build shared libraries [default=yes]
1417 --enable-static[=PKGS] build static libraries [default=yes]
1418 --enable-fast-install[=PKGS]
1419 optimize for fast installation [default=yes]
1420 --disable-libtool-lock avoid locking (might break parallel builds)
1421 --enable-biarch-config install biarch ftconfig.h to support multiple
1422 architectures by single file
1423 --enable-freetype-config
1424 install freetype-config
1425 --disable-largefile omit support for large files
1426 --disable-mmap do not check mmap() and do not use
1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1431 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1433 --with-aix-soname=aix|svr4|both
1434 shared library versioning (aka "SONAME") variant to
1435 provide on AIX, [default=aix].
1436 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1437 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1438 compiler's sysroot if not specified).
1439 --with-zlib=[yes|no|auto]
1440 use system zlib instead of internal library
1442 --with-bzip2=[yes|no|auto]
1443 support bzip2 compressed fonts [default=auto]
1444 --with-png=[yes|no|auto]
1445 support png compressed OpenType embedded bitmaps
1447 --with-harfbuzz=[yes|no|auto]
1448 improve auto-hinting of OpenType fonts
1450 --with-brotli=[yes|no|auto]
1451 support decompression of WOFF2 streams
1453 --with-old-mac-fonts allow Mac resource-based fonts to be used
1454 --with-fsspec use obsolete FSSpec API of MacOS, if available
1456 --with-fsref use Carbon FSRef API of MacOS, if available
1458 --with-quickdraw-toolbox
1459 use MacOS QuickDraw in ToolBox, if available
1461 --with-quickdraw-carbon use MacOS QuickDraw in Carbon, if available
1463 --with-ats use AppleTypeService, if available (default=yes)
1465 Some influential environment variables:
1466 CC C compiler command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
1470 LIBS libraries to pass to the linker, e.g. -l<library>
1471 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
1474 PKG_CONFIG path to pkg-config utility
1476 directories to add to pkg-config's search path
1478 path overriding pkg-config's built-in search path
1480 User-defined run-time library search path.
1481 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1482 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1484 C compiler flags for BZIP2, overriding pkg-config
1485 BZIP2_LIBS linker flags for BZIP2, overriding pkg-config
1487 C compiler flags for LIBPNG, overriding pkg-config
1488 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1490 C compiler flags for HARFBUZZ, overriding pkg-config
1492 linker flags for HARFBUZZ, overriding pkg-config
1494 C compiler flags for BROTLI, overriding pkg-config
1495 BROTLI_LIBS linker flags for BROTLI, overriding pkg-config
1497 Use these variables to override the choices made by `configure' or to help
1498 it to find libraries and programs with nonstandard names/locations.
1500 Report bugs to <freetype@nongnu.org>.
1505 if test "$ac_init_help" = "recursive"; then
1506 # If there are subdirs, report their specific --help.
1507 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1508 test -d "$ac_dir" ||
1509 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1517 # A ".." for each directory in $ac_dir_suffix.
1518 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1519 case $ac_top_builddir_sub in
1520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1524 ac_abs_top_builddir=$ac_pwd
1525 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526 # for backward compatibility:
1527 ac_top_builddir=$ac_top_build_prefix
1530 .) # We are building in place.
1532 ac_top_srcdir=$ac_top_builddir_sub
1533 ac_abs_top_srcdir=$ac_pwd ;;
1534 [\\/]* | ?:[\\/]* ) # Absolute name.
1535 ac_srcdir=$srcdir$ac_dir_suffix;
1536 ac_top_srcdir=$srcdir
1537 ac_abs_top_srcdir=$srcdir ;;
1539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540 ac_top_srcdir=$ac_top_build_prefix$srcdir
1541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545 cd "$ac_dir" || { ac_status=$?; continue; }
1546 # Check for guested configure.
1547 if test -f "$ac_srcdir/configure.gnu"; then
1549 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550 elif test -f "$ac_srcdir/configure"; then
1552 $SHELL "$ac_srcdir/configure" --help=recursive
1554 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556 cd "$ac_pwd" || { ac_status=$?; break; }
1560 test -n "$ac_init_help" && exit $ac_status
1561 if $ac_init_version; then
1563 FreeType configure 2.10.4
1564 generated by GNU Autoconf 2.69
1566 Copyright (C) 2012 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1573 ## ------------------------ ##
1574 ## Autoconf initialization. ##
1575 ## ------------------------ ##
1577 # ac_fn_c_try_compile LINENO
1578 # --------------------------
1579 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_compile ()
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 rm -f conftest.$ac_objext
1584 if { { ac_try="$ac_compile"
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_compile") 2>conftest.err
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && {
1600 test -z "$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1602 } && test -s conftest.$ac_objext; then :
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
1613 } # ac_fn_c_try_compile
1615 # ac_fn_c_try_cpp LINENO
1616 # ----------------------
1617 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 if { { ac_try="$ac_cpp conftest.$ac_ext"
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1630 if test -s conftest.err; then
1631 grep -v '^ *+' conftest.err >conftest.er1
1632 cat conftest.er1 >&5
1633 mv -f conftest.er1 conftest.err
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } > conftest.i && {
1637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1638 test ! -s conftest.err
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1652 # ac_fn_c_try_link LINENO
1653 # -----------------------
1654 # Try to link conftest.$ac_ext, and return whether this succeeded.
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 rm -f conftest.$ac_objext conftest$ac_exeext
1659 if { { ac_try="$ac_link"
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_link") 2>conftest.err
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } && {
1675 test -z "$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1677 } && test -s conftest$ac_exeext && {
1678 test "$cross_compiling" = yes ||
1679 test -x conftest$ac_exeext
1683 $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1688 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1689 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1690 # interfere with the next link command; also delete a directory that is
1691 # left behind by Apple's compiler. We do this before executing the actions.
1692 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694 as_fn_set_status $ac_retval
1696 } # ac_fn_c_try_link
1698 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1699 # -------------------------------------------------------
1700 # Tests whether HEADER exists and can be compiled using the include files in
1701 # INCLUDES, setting the cache variable VAR accordingly.
1702 ac_fn_c_check_header_compile ()
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706 $as_echo_n "checking for $2... " >&6; }
1707 if eval \${$3+:} false; then :
1708 $as_echo_n "(cached) " >&6
1710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1711 /* end confdefs.h. */
1715 if ac_fn_c_try_compile "$LINENO"; then :
1720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1724 $as_echo "$ac_res" >&6; }
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 } # ac_fn_c_check_header_compile
1729 # ac_fn_c_try_run LINENO
1730 # ----------------------
1731 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1732 # that executables *can* be run.
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 if { { ac_try="$ac_link"
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>&5
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1747 { { case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_try") 2>&5
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; }; }; then :
1759 $as_echo "$as_me: program exited with status $ac_status" >&5
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1763 ac_retval=$ac_status
1765 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1771 # ac_fn_c_check_func LINENO FUNC VAR
1772 # ----------------------------------
1773 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1774 ac_fn_c_check_func ()
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if eval \${$3+:} false; then :
1780 $as_echo_n "(cached) " >&6
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1784 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1786 #define $2 innocuous_$2
1788 /* System header to define __stub macros and hopefully few prototypes,
1789 which can conflict with char $2 (); below.
1790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1791 <limits.h> exists even on freestanding compilers. */
1794 # include <limits.h>
1796 # include <assert.h>
1801 /* Override any GCC internal prototype to avoid an error.
1802 Use char because int might match the return type of a GCC
1803 builtin and then its argument prototype would still apply. */
1808 /* The GNU C library defines this for functions which it implements
1809 to always fail with ENOSYS. Some functions are actually named
1810 something starting with __ and the normal name is an alias. */
1811 #if defined __stub_$2 || defined __stub___$2
1823 if ac_fn_c_try_link "$LINENO"; then :
1828 rm -f core conftest.err conftest.$ac_objext \
1829 conftest$ac_exeext conftest.$ac_ext
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 } # ac_fn_c_check_func
1838 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1839 # -------------------------------------------------------
1840 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1841 # the include files in INCLUDES and setting the cache variable VAR
1843 ac_fn_c_check_header_mongrel ()
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 if eval \${$3+:} false; then :
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850 $as_echo_n "(cached) " >&6
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1856 # Is the header compilable?
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1858 $as_echo_n "checking $2 usability... " >&6; }
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h. */
1864 if ac_fn_c_try_compile "$LINENO"; then :
1865 ac_header_compiler=yes
1867 ac_header_compiler=no
1869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1871 $as_echo "$ac_header_compiler" >&6; }
1873 # Is the header present?
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1875 $as_echo_n "checking $2 presence... " >&6; }
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h. */
1880 if ac_fn_c_try_cpp "$LINENO"; then :
1881 ac_header_preproc=yes
1883 ac_header_preproc=no
1885 rm -f conftest.err conftest.i conftest.$ac_ext
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1887 $as_echo "$ac_header_preproc" >&6; }
1889 # So? What about this header?
1890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1893 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1895 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1899 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1901 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1903 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1905 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1907 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1908 ( $as_echo "## ---------------------------------- ##
1909 ## Report this to freetype@nongnu.org ##
1910 ## ---------------------------------- ##"
1911 ) | sed "s/^/$as_me: WARNING: /" >&2
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 $as_echo_n "checking for $2... " >&6; }
1916 if eval \${$3+:} false; then :
1917 $as_echo_n "(cached) " >&6
1919 eval "$3=\$ac_header_compiler"
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 } # ac_fn_c_check_header_mongrel
1929 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1930 # --------------------------------------------
1931 # Tries to find the compile-time value of EXPR in a program that includes
1932 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1934 ac_fn_c_compute_int ()
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 if test "$cross_compiling" = yes; then
1938 # Depending upon the size, compute the lo and hi bounds.
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1945 static int test_array [1 - 2 * !(($2) >= 0)];
1947 return test_array [0];
1953 if ac_fn_c_try_compile "$LINENO"; then :
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1962 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1964 return test_array [0];
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971 ac_hi=$ac_mid; break
1973 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1974 if test $ac_lo -le $ac_mid; then
1978 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1989 static int test_array [1 - 2 * !(($2) < 0)];
1991 return test_array [0];
1997 if ac_fn_c_try_compile "$LINENO"; then :
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2006 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2008 return test_array [0];
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015 ac_lo=$ac_mid; break
2017 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2018 if test $ac_mid -le $ac_hi; then
2022 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 # Binary search between lo and hi bounds.
2033 while test "x$ac_lo" != "x$ac_hi"; do
2034 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2041 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2043 return test_array [0];
2049 if ac_fn_c_try_compile "$LINENO"; then :
2052 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2064 static long int longval () { return $2; }
2065 static unsigned long int ulongval () { return $2; }
2072 FILE *f = fopen ("conftest.val", "w");
2077 long int i = longval ();
2080 fprintf (f, "%ld", i);
2084 unsigned long int i = ulongval ();
2087 fprintf (f, "%lu", i);
2089 /* Do not output a trailing newline, as this causes \r\n confusion
2090 on some platforms. */
2091 return ferror (f) || fclose (f) != 0;
2097 if ac_fn_c_try_run "$LINENO"; then :
2098 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2103 conftest.$ac_objext conftest.beam conftest.$ac_ext
2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2108 as_fn_set_status $ac_retval
2110 } # ac_fn_c_compute_int
2112 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2113 # ---------------------------------------------
2114 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2116 ac_fn_c_check_decl ()
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 as_decl_name=`echo $2|sed 's/ *(.*//'`
2120 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2122 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2123 if eval \${$3+:} false; then :
2124 $as_echo_n "(cached) " >&6
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2132 #ifndef $as_decl_name
2134 (void) $as_decl_use;
2136 (void) $as_decl_name;
2144 if ac_fn_c_try_compile "$LINENO"; then :
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2153 $as_echo "$ac_res" >&6; }
2154 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2156 } # ac_fn_c_check_decl
2157 cat >config.log <<_ACEOF
2158 This file contains any messages produced by compilers while
2159 running configure, to aid debugging if configure makes a mistake.
2161 It was created by FreeType $as_me 2.10.4, which was
2162 generated by GNU Autoconf 2.69. Invocation command line was
2174 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2175 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2176 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2177 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2178 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2180 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2181 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2183 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2184 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2185 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2186 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2187 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2188 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2189 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 test -z "$as_dir" && as_dir=.
2198 $as_echo "PATH: $as_dir"
2214 # Keep a trace of the command line.
2215 # Strip out --no-create and --no-recursion so they do not pile up.
2216 # Strip out --silent because we don't want to record it for future runs.
2217 # Also quote any args containing shell meta-characters.
2218 # Make two passes to allow for proper duplicate-argument suppression.
2222 ac_must_keep_next=false
2228 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2230 | -silent | --silent | --silen | --sile | --sil)
2233 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2236 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2238 as_fn_append ac_configure_args1 " '$ac_arg'"
2239 if test $ac_must_keep_next = true; then
2240 ac_must_keep_next=false # Got value, back to normal.
2243 *=* | --config-cache | -C | -disable-* | --disable-* \
2244 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2245 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2246 | -with-* | --with-* | -without-* | --without-* | --x)
2247 case "$ac_configure_args0 " in
2248 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2251 -* ) ac_must_keep_next=true ;;
2254 as_fn_append ac_configure_args " '$ac_arg'"
2259 { ac_configure_args0=; unset ac_configure_args0;}
2260 { ac_configure_args1=; unset ac_configure_args1;}
2262 # When interrupted or exit'd, cleanup temporary files, and complete
2263 # config.log. We remove comments because anyway the quotes in there
2264 # would cause problems or look ugly.
2265 # WARNING: Use '\'' to represent an apostrophe within the trap.
2266 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2267 trap 'exit_status=$?
2268 # Save into config.log some information that might help in debugging.
2272 $as_echo "## ---------------- ##
2273 ## Cache variables. ##
2274 ## ---------------- ##"
2276 # The following way of writing the cache mishandles newlines in values,
2278 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2279 eval ac_val=\$$ac_var
2283 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2284 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2287 _ | IFS | as_nl) ;; #(
2288 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2289 *) { eval $ac_var=; unset $ac_var;} ;;
2294 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2295 *${as_nl}ac_space=\ *)
2297 "s/'\''/'\''\\\\'\'''\''/g;
2298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2301 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2308 $as_echo "## ----------------- ##
2309 ## Output variables. ##
2310 ## ----------------- ##"
2312 for ac_var in $ac_subst_vars
2314 eval ac_val=\$$ac_var
2316 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2318 $as_echo "$ac_var='\''$ac_val'\''"
2322 if test -n "$ac_subst_files"; then
2323 $as_echo "## ------------------- ##
2324 ## File substitutions. ##
2325 ## ------------------- ##"
2327 for ac_var in $ac_subst_files
2329 eval ac_val=\$$ac_var
2331 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2333 $as_echo "$ac_var='\''$ac_val'\''"
2338 if test -s confdefs.h; then
2339 $as_echo "## ----------- ##
2346 test "$ac_signal" != 0 &&
2347 $as_echo "$as_me: caught signal $ac_signal"
2348 $as_echo "$as_me: exit $exit_status"
2350 rm -f core *.core core.conftest.* &&
2351 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2354 for ac_signal in 1 2 13 15; do
2355 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2359 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2360 rm -f -r conftest* confdefs.h
2362 $as_echo "/* confdefs.h */" > confdefs.h
2364 # Predefined preprocessor variables.
2366 cat >>confdefs.h <<_ACEOF
2367 #define PACKAGE_NAME "$PACKAGE_NAME"
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2374 cat >>confdefs.h <<_ACEOF
2375 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_STRING "$PACKAGE_STRING"
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_URL "$PACKAGE_URL"
2391 # Let the site file select an alternate cache file if it wants to.
2392 # Prefer an explicitly selected file to automatically selected ones.
2395 if test -n "$CONFIG_SITE"; then
2396 # We do not want a PATH search for config.site.
2397 case $CONFIG_SITE in #((
2398 -*) ac_site_file1=./$CONFIG_SITE;;
2399 */*) ac_site_file1=$CONFIG_SITE;;
2400 *) ac_site_file1=./$CONFIG_SITE;;
2402 elif test "x$prefix" != xNONE; then
2403 ac_site_file1=$prefix/share/config.site
2404 ac_site_file2=$prefix/etc/config.site
2406 ac_site_file1=$ac_default_prefix/share/config.site
2407 ac_site_file2=$ac_default_prefix/etc/config.site
2409 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2411 test "x$ac_site_file" = xNONE && continue
2412 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2414 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2415 sed 's/^/| /' "$ac_site_file" >&5
2417 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2419 as_fn_error $? "failed to load site script $ac_site_file
2420 See \`config.log' for more details" "$LINENO" 5; }
2424 if test -r "$cache_file"; then
2425 # Some versions of bash will fail to source /dev/null (special files
2426 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2427 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2429 $as_echo "$as_me: loading cache $cache_file" >&6;}
2431 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2432 *) . "./$cache_file";;
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2437 $as_echo "$as_me: creating cache $cache_file" >&6;}
2441 as_fn_append ac_header_list " stdlib.h"
2442 as_fn_append ac_header_list " unistd.h"
2443 as_fn_append ac_header_list " sys/param.h"
2444 # Check that the precious variables saved in the cache have kept the same
2446 ac_cache_corrupted=false
2447 for ac_var in $ac_precious_vars; do
2448 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2449 eval ac_new_set=\$ac_env_${ac_var}_set
2450 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2451 eval ac_new_val=\$ac_env_${ac_var}_value
2452 case $ac_old_set,$ac_new_set in
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2455 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2456 ac_cache_corrupted=: ;;
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2459 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2460 ac_cache_corrupted=: ;;
2463 if test "x$ac_old_val" != "x$ac_new_val"; then
2464 # differences in whitespace do not lead to failure.
2465 ac_old_val_w=`echo x $ac_old_val`
2466 ac_new_val_w=`echo x $ac_new_val`
2467 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2469 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2470 ac_cache_corrupted=:
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2473 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2474 eval $ac_var=\$ac_old_val
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2477 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2479 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2482 # Pass precious variables to config.status.
2483 if test "$ac_new_set" = set; then
2485 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2486 *) ac_arg=$ac_var=$ac_new_val ;;
2488 case " $ac_configure_args " in
2489 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2490 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2494 if $ac_cache_corrupted; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2498 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2499 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2501 ## -------------------- ##
2502 ## Main body of script. ##
2503 ## -------------------- ##
2506 ac_cpp='$CPP $CPPFLAGS'
2507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2515 # Don't forget to update `docs/VERSIONS.TXT'!
2517 version_info='23:4:17'
2519 ft_version=`echo $version_info | tr : .`
2523 # checks for system type
2526 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2527 if test -f "$ac_dir/install-sh"; then
2529 ac_install_sh="$ac_aux_dir/install-sh -c"
2531 elif test -f "$ac_dir/install.sh"; then
2533 ac_install_sh="$ac_aux_dir/install.sh -c"
2535 elif test -f "$ac_dir/shtool"; then
2537 ac_install_sh="$ac_aux_dir/shtool install -c"
2541 if test -z "$ac_aux_dir"; then
2542 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2545 # These three variables are undocumented and unsupported,
2546 # and are intended to be withdrawn in a future Autoconf release.
2547 # They can cause serious problems if a builder's source tree is in a directory
2548 # whose full name contains unusual characters.
2549 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2550 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2551 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2554 # Make sure we can run config.sub.
2555 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2556 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2559 $as_echo_n "checking build system type... " >&6; }
2560 if ${ac_cv_build+:} false; then :
2561 $as_echo_n "(cached) " >&6
2563 ac_build_alias=$build_alias
2564 test "x$ac_build_alias" = x &&
2565 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2566 test "x$ac_build_alias" = x &&
2567 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2568 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2569 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2573 $as_echo "$ac_cv_build" >&6; }
2574 case $ac_cv_build in
2576 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2579 ac_save_IFS=$IFS; IFS='-'
2585 # Remember, the first character of IFS is used to create $*,
2586 # except with old shells:
2589 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2593 $as_echo_n "checking host system type... " >&6; }
2594 if ${ac_cv_host+:} false; then :
2595 $as_echo_n "(cached) " >&6
2597 if test "x$host_alias" = x; then
2598 ac_cv_host=$ac_cv_build
2600 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2601 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2606 $as_echo "$ac_cv_host" >&6; }
2609 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2612 ac_save_IFS=$IFS; IFS='-'
2618 # Remember, the first character of IFS is used to create $*,
2619 # except with old shells:
2622 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2627 # checks for programs
2630 ac_cpp='$CPP $CPPFLAGS'
2631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2634 if test -n "$ac_tool_prefix"; then
2635 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2636 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2638 $as_echo_n "checking for $ac_word... " >&6; }
2639 if ${ac_cv_prog_CC+:} false; then :
2640 $as_echo_n "(cached) " >&6
2642 if test -n "$CC"; then
2643 ac_cv_prog_CC="$CC" # Let the user override the test.
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2652 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 if test -n "$CC"; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2665 $as_echo "$CC" >&6; }
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668 $as_echo "no" >&6; }
2673 if test -z "$ac_cv_prog_CC"; then
2675 # Extract the first word of "gcc", so it can be a program name with args.
2676 set dummy gcc; ac_word=$2
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678 $as_echo_n "checking for $ac_word... " >&6; }
2679 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2680 $as_echo_n "(cached) " >&6
2682 if test -n "$ac_ct_CC"; then
2683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692 ac_cv_prog_ac_ct_CC="gcc"
2693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2703 if test -n "$ac_ct_CC"; then
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2705 $as_echo "$ac_ct_CC" >&6; }
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708 $as_echo "no" >&6; }
2711 if test "x$ac_ct_CC" = x; then
2714 case $cross_compiling:$ac_tool_warned in
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2718 ac_tool_warned=yes ;;
2726 if test -z "$CC"; then
2727 if test -n "$ac_tool_prefix"; then
2728 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2729 set dummy ${ac_tool_prefix}cc; ac_word=$2
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2731 $as_echo_n "checking for $ac_word... " >&6; }
2732 if ${ac_cv_prog_CC+:} false; then :
2733 $as_echo_n "(cached) " >&6
2735 if test -n "$CC"; then
2736 ac_cv_prog_CC="$CC" # Let the user override the test.
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 test -z "$as_dir" && as_dir=.
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2745 ac_cv_prog_CC="${ac_tool_prefix}cc"
2746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 if test -n "$CC"; then
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2758 $as_echo "$CC" >&6; }
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761 $as_echo "no" >&6; }
2767 if test -z "$CC"; then
2768 # Extract the first word of "cc", so it can be a program name with args.
2769 set dummy cc; ac_word=$2
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if ${ac_cv_prog_CC+:} false; then :
2773 $as_echo_n "(cached) " >&6
2775 if test -n "$CC"; then
2776 ac_cv_prog_CC="$CC" # Let the user override the test.
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2787 ac_prog_rejected=yes
2791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 if test $ac_prog_rejected = yes; then
2799 # We found a bogon in the path, so make sure we never use it.
2800 set dummy $ac_cv_prog_CC
2802 if test $# != 0; then
2803 # We chose a different compiler from the bogus one.
2804 # However, it has the same basename, so the bogon will be chosen
2805 # first if we set CC to just the basename; use the full file name.
2807 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2813 if test -n "$CC"; then
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2815 $as_echo "$CC" >&6; }
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818 $as_echo "no" >&6; }
2823 if test -z "$CC"; then
2824 if test -n "$ac_tool_prefix"; then
2825 for ac_prog in cl.exe
2827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2830 $as_echo_n "checking for $ac_word... " >&6; }
2831 if ${ac_cv_prog_CC+:} false; then :
2832 $as_echo_n "(cached) " >&6
2834 if test -n "$CC"; then
2835 ac_cv_prog_CC="$CC" # Let the user override the test.
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 if test -n "$CC"; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2857 $as_echo "$CC" >&6; }
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 $as_echo "no" >&6; }
2864 test -n "$CC" && break
2867 if test -z "$CC"; then
2869 for ac_prog in cl.exe
2871 # Extract the first word of "$ac_prog", so it can be a program name with args.
2872 set dummy $ac_prog; ac_word=$2
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874 $as_echo_n "checking for $ac_word... " >&6; }
2875 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2876 $as_echo_n "(cached) " >&6
2878 if test -n "$ac_ct_CC"; then
2879 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888 ac_cv_prog_ac_ct_CC="$ac_prog"
2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2899 if test -n "$ac_ct_CC"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2901 $as_echo "$ac_ct_CC" >&6; }
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 $as_echo "no" >&6; }
2908 test -n "$ac_ct_CC" && break
2911 if test "x$ac_ct_CC" = x; then
2914 case $cross_compiling:$ac_tool_warned in
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2918 ac_tool_warned=yes ;;
2927 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2929 as_fn_error $? "no acceptable C compiler found in \$PATH
2930 See \`config.log' for more details" "$LINENO" 5; }
2932 # Provide some information about the compiler.
2933 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2936 for ac_option in --version -v -V -qversion; do
2937 { { ac_try="$ac_compiler $ac_option >&5"
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2943 $as_echo "$ac_try_echo"; } >&5
2944 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2946 if test -s conftest.err; then
2948 ... rest of stderr output deleted ...
2949 10q' conftest.err >conftest.er1
2950 cat conftest.er1 >&5
2952 rm -f conftest.er1 conftest.err
2953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2954 test $ac_status = 0; }
2957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2958 /* end confdefs.h. */
2968 ac_clean_files_save=$ac_clean_files
2969 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2970 # Try to create an executable without -o first, disregard a.out.
2971 # It will help us diagnose broken compilers, and finding out an intuition
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2974 $as_echo_n "checking whether the C compiler works... " >&6; }
2975 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2977 # The possible output files:
2978 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2981 for ac_file in $ac_files
2984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2985 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2990 if { { ac_try="$ac_link_default"
2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993 *) ac_try_echo=$ac_try;;
2995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2996 $as_echo "$ac_try_echo"; } >&5
2997 (eval "$ac_link_default") 2>&5
2999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3000 test $ac_status = 0; }; then :
3001 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3002 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3003 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3004 # so that the user can short-circuit this test for compilers unknown to
3006 for ac_file in $ac_files ''
3008 test -f "$ac_file" || continue
3010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3013 # We found the default executable, but exeext='' is most
3017 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3019 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3021 # We set ac_cv_exeext here because the later test for it is not
3022 # safe: cross compilers may not add the suffix if given an `-o'
3023 # argument, so we may need to know it at that point already.
3024 # Even if this section looks crufty: it has the advantage of
3031 test "$ac_cv_exeext" = no && ac_cv_exeext=
3036 if test -z "$ac_file"; then :
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3039 $as_echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044 as_fn_error 77 "C compiler cannot create executables
3045 See \`config.log' for more details" "$LINENO" 5; }
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3048 $as_echo "yes" >&6; }
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3051 $as_echo_n "checking for C compiler default output file name... " >&6; }
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3053 $as_echo "$ac_file" >&6; }
3054 ac_exeext=$ac_cv_exeext
3056 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3057 ac_clean_files=$ac_clean_files_save
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3059 $as_echo_n "checking for suffix of executables... " >&6; }
3060 if { { ac_try="$ac_link"
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3066 $as_echo "$ac_try_echo"; } >&5
3067 (eval "$ac_link") 2>&5
3069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3070 test $ac_status = 0; }; then :
3071 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3072 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3073 # work properly (i.e., refer to `conftest.exe'), while it won't with
3075 for ac_file in conftest.exe conftest conftest.*; do
3076 test -f "$ac_file" || continue
3078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3079 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3087 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3088 See \`config.log' for more details" "$LINENO" 5; }
3090 rm -f conftest conftest$ac_cv_exeext
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3092 $as_echo "$ac_cv_exeext" >&6; }
3094 rm -f conftest.$ac_ext
3095 EXEEXT=$ac_cv_exeext
3097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098 /* end confdefs.h. */
3103 FILE *f = fopen ("conftest.out", "w");
3104 return ferror (f) || fclose (f) != 0;
3110 ac_clean_files="$ac_clean_files conftest.out"
3111 # Check that the compiler produces executables we can run. If not, either
3112 # the compiler is broken, or we cross compile.
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3114 $as_echo_n "checking whether we are cross compiling... " >&6; }
3115 if test "$cross_compiling" != yes; then
3116 { { ac_try="$ac_link"
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3122 $as_echo "$ac_try_echo"; } >&5
3123 (eval "$ac_link") 2>&5
3125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3126 test $ac_status = 0; }
3127 if { ac_try='./conftest$ac_cv_exeext'
3128 { { case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3133 $as_echo "$ac_try_echo"; } >&5
3134 (eval "$ac_try") 2>&5
3136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3137 test $ac_status = 0; }; }; then
3140 if test "$cross_compiling" = maybe; then
3143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3145 as_fn_error $? "cannot run C compiled programs.
3146 If you meant to cross compile, use \`--host'.
3147 See \`config.log' for more details" "$LINENO" 5; }
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3152 $as_echo "$cross_compiling" >&6; }
3154 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3155 ac_clean_files=$ac_clean_files_save
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3157 $as_echo_n "checking for suffix of object files... " >&6; }
3158 if ${ac_cv_objext+:} false; then :
3159 $as_echo_n "(cached) " >&6
3161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162 /* end confdefs.h. */
3172 rm -f conftest.o conftest.obj
3173 if { { ac_try="$ac_compile"
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3179 $as_echo "$ac_try_echo"; } >&5
3180 (eval "$ac_compile") 2>&5
3182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3183 test $ac_status = 0; }; then :
3184 for ac_file in conftest.o conftest.obj conftest.*; do
3185 test -f "$ac_file" || continue;
3187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3188 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3193 $as_echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3198 as_fn_error $? "cannot compute suffix of object files: cannot compile
3199 See \`config.log' for more details" "$LINENO" 5; }
3201 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3204 $as_echo "$ac_cv_objext" >&6; }
3205 OBJEXT=$ac_cv_objext
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3208 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3209 if ${ac_cv_c_compiler_gnu+:} false; then :
3210 $as_echo_n "(cached) " >&6
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h. */
3226 if ac_fn_c_try_compile "$LINENO"; then :
3231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3236 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3237 if test $ac_compiler_gnu = yes; then
3242 ac_test_CFLAGS=${CFLAGS+set}
3243 ac_save_CFLAGS=$CFLAGS
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3245 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3246 if ${ac_cv_prog_cc_g+:} false; then :
3247 $as_echo_n "(cached) " >&6
3249 ac_save_c_werror_flag=$ac_c_werror_flag
3250 ac_c_werror_flag=yes
3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254 /* end confdefs.h. */
3264 if ac_fn_c_try_compile "$LINENO"; then :
3268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h. */
3279 if ac_fn_c_try_compile "$LINENO"; then :
3282 ac_c_werror_flag=$ac_save_c_werror_flag
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h. */
3295 if ac_fn_c_try_compile "$LINENO"; then :
3298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3303 ac_c_werror_flag=$ac_save_c_werror_flag
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3306 $as_echo "$ac_cv_prog_cc_g" >&6; }
3307 if test "$ac_test_CFLAGS" = set; then
3308 CFLAGS=$ac_save_CFLAGS
3309 elif test $ac_cv_prog_cc_g = yes; then
3310 if test "$GCC" = yes; then
3316 if test "$GCC" = yes; then
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3323 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3324 if ${ac_cv_prog_cc_c89+:} false; then :
3325 $as_echo_n "(cached) " >&6
3327 ac_cv_prog_cc_c89=no
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3334 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3335 struct buf { int x; };
3336 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3337 static char *e (p, i)
3343 static char *f (char * (*g) (char **, int), char **p, ...)
3348 s = g (p, va_arg (v,int));
3353 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3354 function prototypes and stuff, but not '\xHH' hex character constants.
3355 These don't provoke an error unfortunately, instead are silently treated
3356 as 'x'. The following induces an error, until -std is added to get
3357 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3358 array size at least. It's necessary to write '\x00'==0 to get something
3359 that's true only with -std. */
3360 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3362 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3363 inside strings and character constants. */
3365 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3367 int test (int i, double x);
3368 struct s1 {int (*f) (int a);};
3369 struct s2 {int (*f) (double a);};
3370 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3376 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3381 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3382 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3384 CC="$ac_save_CC $ac_arg"
3385 if ac_fn_c_try_compile "$LINENO"; then :
3386 ac_cv_prog_cc_c89=$ac_arg
3388 rm -f core conftest.err conftest.$ac_objext
3389 test "x$ac_cv_prog_cc_c89" != "xno" && break
3391 rm -f conftest.$ac_ext
3396 case "x$ac_cv_prog_cc_c89" in
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3399 $as_echo "none needed" >&6; } ;;
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3402 $as_echo "unsupported" >&6; } ;;
3404 CC="$CC $ac_cv_prog_cc_c89"
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3406 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3408 if test "x$ac_cv_prog_cc_c89" != xno; then :
3413 ac_cpp='$CPP $CPPFLAGS'
3414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3419 ac_cpp='$CPP $CPPFLAGS'
3420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3424 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3425 # On Suns, sometimes $CPP names a directory.
3426 if test -n "$CPP" && test -d "$CPP"; then
3429 if test -z "$CPP"; then
3430 if ${ac_cv_prog_CPP+:} false; then :
3431 $as_echo_n "(cached) " >&6
3433 # Double quotes because CPP needs to be expanded
3434 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3437 for ac_c_preproc_warn_flag in '' yes
3439 # Use a header file that comes with gcc, so configuring glibc
3440 # with a fresh cross-compiler works.
3441 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3442 # <limits.h> exists even on freestanding compilers.
3443 # On the NeXT, cc -E runs the code through the compiler's parser,
3444 # not just through cpp. "Syntax error" is here to catch this case.
3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h. */
3448 # include <limits.h>
3450 # include <assert.h>
3454 if ac_fn_c_try_cpp "$LINENO"; then :
3457 # Broken: fails on valid input.
3460 rm -f conftest.err conftest.i conftest.$ac_ext
3462 # OK, works on sane cases. Now check whether nonexistent headers
3463 # can be detected and how.
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3466 #include <ac_nonexistent.h>
3468 if ac_fn_c_try_cpp "$LINENO"; then :
3469 # Broken: success on invalid input.
3472 # Passes both tests.
3476 rm -f conftest.err conftest.i conftest.$ac_ext
3479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3480 rm -f conftest.i conftest.err conftest.$ac_ext
3481 if $ac_preproc_ok; then :
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3494 $as_echo "$CPP" >&6; }
3496 for ac_c_preproc_warn_flag in '' yes
3498 # Use a header file that comes with gcc, so configuring glibc
3499 # with a fresh cross-compiler works.
3500 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3501 # <limits.h> exists even on freestanding compilers.
3502 # On the NeXT, cc -E runs the code through the compiler's parser,
3503 # not just through cpp. "Syntax error" is here to catch this case.
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3507 # include <limits.h>
3509 # include <assert.h>
3513 if ac_fn_c_try_cpp "$LINENO"; then :
3516 # Broken: fails on valid input.
3519 rm -f conftest.err conftest.i conftest.$ac_ext
3521 # OK, works on sane cases. Now check whether nonexistent headers
3522 # can be detected and how.
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h. */
3525 #include <ac_nonexistent.h>
3527 if ac_fn_c_try_cpp "$LINENO"; then :
3528 # Broken: success on invalid input.
3531 # Passes both tests.
3535 rm -f conftest.err conftest.i conftest.$ac_ext
3538 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3539 rm -f conftest.i conftest.err conftest.$ac_ext
3540 if $ac_preproc_ok; then :
3543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3545 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3546 See \`config.log' for more details" "$LINENO" 5; }
3550 ac_cpp='$CPP $CPPFLAGS'
3551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3564 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3565 if test -n "$ac_tool_prefix"; then
3566 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3567 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569 $as_echo_n "checking for $ac_word... " >&6; }
3570 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3571 $as_echo_n "(cached) " >&6
3575 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 test -z "$as_dir" && as_dir=.
3583 for ac_exec_ext in '' $ac_executable_extensions; do
3584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3585 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3596 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3597 if test -n "$PKG_CONFIG"; then
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3599 $as_echo "$PKG_CONFIG" >&6; }
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602 $as_echo "no" >&6; }
3607 if test -z "$ac_cv_path_PKG_CONFIG"; then
3608 ac_pt_PKG_CONFIG=$PKG_CONFIG
3609 # Extract the first word of "pkg-config", so it can be a program name with args.
3610 set dummy pkg-config; ac_word=$2
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3612 $as_echo_n "checking for $ac_word... " >&6; }
3613 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3614 $as_echo_n "(cached) " >&6
3616 case $ac_pt_PKG_CONFIG in
3618 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3628 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3640 if test -n "$ac_pt_PKG_CONFIG"; then
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3642 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645 $as_echo "no" >&6; }
3648 if test "x$ac_pt_PKG_CONFIG" = x; then
3651 case $cross_compiling:$ac_tool_warned in
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3655 ac_tool_warned=yes ;;
3657 PKG_CONFIG=$ac_pt_PKG_CONFIG
3660 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3664 if test -n "$PKG_CONFIG"; then
3665 _pkg_min_version=0.24
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3667 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3668 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3670 $as_echo "yes" >&6; }
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673 $as_echo "no" >&6; }
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3681 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3686 macro_version='2.4.6'
3687 macro_revision='2.4.6'
3701 ltmain=$ac_aux_dir/ltmain.sh
3703 # Backslashify metacharacters that are still active within
3704 # double-quoted strings.
3705 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3707 # Same as above, but do not quote variable references.
3708 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3710 # Sed substitution to delay expansion of an escaped shell variable in a
3711 # double_quote_subst'ed string.
3712 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3714 # Sed substitution to delay expansion of an escaped single quote.
3715 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3717 # Sed substitution to avoid accidental globbing in evaled expressions
3718 no_glob_subst='s/\*/\\\*/g'
3720 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3721 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3722 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3725 $as_echo_n "checking how to print strings... " >&6; }
3726 # Test print first, because it will be a builtin if present.
3727 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3728 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3730 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3733 # Use this function as a fallback that always works.
3734 func_fallback_echo ()
3736 eval 'cat <<_LTECHO_EOF
3740 ECHO='func_fallback_echo'
3743 # func_echo_all arg...
3744 # Invoke $ECHO with all args, space-separated.
3751 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3752 $as_echo "printf" >&6; } ;;
3753 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3754 $as_echo "print -r" >&6; } ;;
3755 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3756 $as_echo "cat" >&6; } ;;
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3773 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3774 if ${ac_cv_path_SED+:} false; then :
3775 $as_echo_n "(cached) " >&6
3777 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3778 for ac_i in 1 2 3 4 5 6 7; do
3779 ac_script="$ac_script$as_nl$ac_script"
3781 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3782 { ac_script=; unset ac_script;}
3783 if test -z "$SED"; then
3784 ac_path_SED_found=false
3785 # Loop through the user's path and test for each of PROGNAME-LIST
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 test -z "$as_dir" && as_dir=.
3791 for ac_prog in sed gsed; do
3792 for ac_exec_ext in '' $ac_executable_extensions; do
3793 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3794 as_fn_executable_p "$ac_path_SED" || continue
3795 # Check for GNU ac_path_SED and select it if it is found.
3796 # Check for GNU $ac_path_SED
3797 case `"$ac_path_SED" --version 2>&1` in
3799 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3802 $as_echo_n 0123456789 >"conftest.in"
3805 cat "conftest.in" "conftest.in" >"conftest.tmp"
3806 mv "conftest.tmp" "conftest.in"
3807 cp "conftest.in" "conftest.nl"
3808 $as_echo '' >> "conftest.nl"
3809 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3810 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3811 as_fn_arith $ac_count + 1 && ac_count=$as_val
3812 if test $ac_count -gt ${ac_path_SED_max-0}; then
3813 # Best one so far, save it but keep looking for a better one
3814 ac_cv_path_SED="$ac_path_SED"
3815 ac_path_SED_max=$ac_count
3817 # 10*(2^10) chars as input seems more than enough
3818 test $ac_count -gt 10 && break
3820 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3823 $ac_path_SED_found && break 3
3828 if test -z "$ac_cv_path_SED"; then
3829 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3837 $as_echo "$ac_cv_path_SED" >&6; }
3838 SED="$ac_cv_path_SED"
3841 test -z "$SED" && SED=sed
3842 Xsed="$SED -e 1s/^X//"
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3855 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3856 if ${ac_cv_path_GREP+:} false; then :
3857 $as_echo_n "(cached) " >&6
3859 if test -z "$GREP"; then
3860 ac_path_GREP_found=false
3861 # Loop through the user's path and test for each of PROGNAME-LIST
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3866 test -z "$as_dir" && as_dir=.
3867 for ac_prog in grep ggrep; do
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3870 as_fn_executable_p "$ac_path_GREP" || continue
3871 # Check for GNU ac_path_GREP and select it if it is found.
3872 # Check for GNU $ac_path_GREP
3873 case `"$ac_path_GREP" --version 2>&1` in
3875 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3878 $as_echo_n 0123456789 >"conftest.in"
3881 cat "conftest.in" "conftest.in" >"conftest.tmp"
3882 mv "conftest.tmp" "conftest.in"
3883 cp "conftest.in" "conftest.nl"
3884 $as_echo 'GREP' >> "conftest.nl"
3885 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3886 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3887 as_fn_arith $ac_count + 1 && ac_count=$as_val
3888 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3889 # Best one so far, save it but keep looking for a better one
3890 ac_cv_path_GREP="$ac_path_GREP"
3891 ac_path_GREP_max=$ac_count
3893 # 10*(2^10) chars as input seems more than enough
3894 test $ac_count -gt 10 && break
3896 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3899 $ac_path_GREP_found && break 3
3904 if test -z "$ac_cv_path_GREP"; then
3905 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3908 ac_cv_path_GREP=$GREP
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3913 $as_echo "$ac_cv_path_GREP" >&6; }
3914 GREP="$ac_cv_path_GREP"
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3918 $as_echo_n "checking for egrep... " >&6; }
3919 if ${ac_cv_path_EGREP+:} false; then :
3920 $as_echo_n "(cached) " >&6
3922 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3923 then ac_cv_path_EGREP="$GREP -E"
3925 if test -z "$EGREP"; then
3926 ac_path_EGREP_found=false
3927 # Loop through the user's path and test for each of PROGNAME-LIST
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3932 test -z "$as_dir" && as_dir=.
3933 for ac_prog in egrep; do
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3936 as_fn_executable_p "$ac_path_EGREP" || continue
3937 # Check for GNU ac_path_EGREP and select it if it is found.
3938 # Check for GNU $ac_path_EGREP
3939 case `"$ac_path_EGREP" --version 2>&1` in
3941 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3944 $as_echo_n 0123456789 >"conftest.in"
3947 cat "conftest.in" "conftest.in" >"conftest.tmp"
3948 mv "conftest.tmp" "conftest.in"
3949 cp "conftest.in" "conftest.nl"
3950 $as_echo 'EGREP' >> "conftest.nl"
3951 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3952 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3953 as_fn_arith $ac_count + 1 && ac_count=$as_val
3954 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3955 # Best one so far, save it but keep looking for a better one
3956 ac_cv_path_EGREP="$ac_path_EGREP"
3957 ac_path_EGREP_max=$ac_count
3959 # 10*(2^10) chars as input seems more than enough
3960 test $ac_count -gt 10 && break
3962 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3965 $ac_path_EGREP_found && break 3
3970 if test -z "$ac_cv_path_EGREP"; then
3971 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3974 ac_cv_path_EGREP=$EGREP
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3980 $as_echo "$ac_cv_path_EGREP" >&6; }
3981 EGREP="$ac_cv_path_EGREP"
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3985 $as_echo_n "checking for fgrep... " >&6; }
3986 if ${ac_cv_path_FGREP+:} false; then :
3987 $as_echo_n "(cached) " >&6
3989 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3990 then ac_cv_path_FGREP="$GREP -F"
3992 if test -z "$FGREP"; then
3993 ac_path_FGREP_found=false
3994 # Loop through the user's path and test for each of PROGNAME-LIST
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3999 test -z "$as_dir" && as_dir=.
4000 for ac_prog in fgrep; do
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4003 as_fn_executable_p "$ac_path_FGREP" || continue
4004 # Check for GNU ac_path_FGREP and select it if it is found.
4005 # Check for GNU $ac_path_FGREP
4006 case `"$ac_path_FGREP" --version 2>&1` in
4008 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4011 $as_echo_n 0123456789 >"conftest.in"
4014 cat "conftest.in" "conftest.in" >"conftest.tmp"
4015 mv "conftest.tmp" "conftest.in"
4016 cp "conftest.in" "conftest.nl"
4017 $as_echo 'FGREP' >> "conftest.nl"
4018 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4019 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4020 as_fn_arith $ac_count + 1 && ac_count=$as_val
4021 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4022 # Best one so far, save it but keep looking for a better one
4023 ac_cv_path_FGREP="$ac_path_FGREP"
4024 ac_path_FGREP_max=$ac_count
4026 # 10*(2^10) chars as input seems more than enough
4027 test $ac_count -gt 10 && break
4029 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4032 $ac_path_FGREP_found && break 3
4037 if test -z "$ac_cv_path_FGREP"; then
4038 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4041 ac_cv_path_FGREP=$FGREP
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4047 $as_echo "$ac_cv_path_FGREP" >&6; }
4048 FGREP="$ac_cv_path_FGREP"
4051 test -z "$GREP" && GREP=grep
4071 # Check whether --with-gnu-ld was given.
4072 if test "${with_gnu_ld+set}" = set; then :
4073 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4079 if test yes = "$GCC"; then
4080 # Check if gcc -print-prog-name=ld gives a path.
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4082 $as_echo_n "checking for ld used by $CC... " >&6; }
4085 # gcc leaves a trailing carriage return, which upsets mingw
4086 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4088 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4091 # Accept absolute paths.
4093 re_direlt='/[^/][^/]*/\.\./'
4094 # Canonicalize the pathname of ld
4095 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4096 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4097 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4099 test -z "$LD" && LD=$ac_prog
4102 # If it fails, then pretend we aren't using GCC.
4106 # If it is relative, then search for the first ld in PATH.
4110 elif test yes = "$with_gnu_ld"; then
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4112 $as_echo_n "checking for GNU ld... " >&6; }
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4115 $as_echo_n "checking for non-GNU ld... " >&6; }
4117 if ${lt_cv_path_LD+:} false; then :
4118 $as_echo_n "(cached) " >&6
4120 if test -z "$LD"; then
4121 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4122 for ac_dir in $PATH; do
4124 test -z "$ac_dir" && ac_dir=.
4125 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4126 lt_cv_path_LD=$ac_dir/$ac_prog
4127 # Check to see if the program is GNU ld. I'd rather use --version,
4128 # but apparently some variants of GNU ld only accept -v.
4129 # Break only if it was the GNU/non-GNU ld that we prefer.
4130 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4131 *GNU* | *'with BFD'*)
4132 test no != "$with_gnu_ld" && break
4135 test yes != "$with_gnu_ld" && break
4142 lt_cv_path_LD=$LD # Let the user override the test with a path.
4147 if test -n "$LD"; then
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4149 $as_echo "$LD" >&6; }
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152 $as_echo "no" >&6; }
4154 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4156 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4157 if ${lt_cv_prog_gnu_ld+:} false; then :
4158 $as_echo_n "(cached) " >&6
4160 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4161 case `$LD -v 2>&1 </dev/null` in
4162 *GNU* | *'with BFD'*)
4163 lt_cv_prog_gnu_ld=yes
4166 lt_cv_prog_gnu_ld=no
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4171 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4172 with_gnu_ld=$lt_cv_prog_gnu_ld
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4183 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4184 if ${lt_cv_path_NM+:} false; then :
4185 $as_echo_n "(cached) " >&6
4187 if test -n "$NM"; then
4188 # Let the user override the test.
4191 lt_nm_to_check=${ac_tool_prefix}nm
4192 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4193 lt_nm_to_check="$lt_nm_to_check nm"
4195 for lt_tmp_nm in $lt_nm_to_check; do
4196 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4197 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4199 test -z "$ac_dir" && ac_dir=.
4200 tmp_nm=$ac_dir/$lt_tmp_nm
4201 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4202 # Check to see if the nm accepts a BSD-compat flag.
4203 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4204 # nm: unknown option "B" ignored
4205 # Tru64's nm complains that /dev/null is an invalid object file
4206 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4208 mingw*) lt_bad_file=conftest.nm/nofile ;;
4209 *) lt_bad_file=/dev/null ;;
4211 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4212 *$lt_bad_file* | *'Invalid file or object type'*)
4213 lt_cv_path_NM="$tmp_nm -B"
4217 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4219 lt_cv_path_NM="$tmp_nm -p"
4223 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4224 continue # so that we can try to find one that supports BSD flags
4233 : ${lt_cv_path_NM=no}
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4237 $as_echo "$lt_cv_path_NM" >&6; }
4238 if test no != "$lt_cv_path_NM"; then
4241 # Didn't find any BSD compatible name lister, look for dumpbin.
4242 if test -n "$DUMPBIN"; then :
4243 # Let the user override the test.
4245 if test -n "$ac_tool_prefix"; then
4246 for ac_prog in dumpbin "link -dump"
4248 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4249 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4251 $as_echo_n "checking for $ac_word... " >&6; }
4252 if ${ac_cv_prog_DUMPBIN+:} false; then :
4253 $as_echo_n "(cached) " >&6
4255 if test -n "$DUMPBIN"; then
4256 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 test -z "$as_dir" && as_dir=.
4263 for ac_exec_ext in '' $ac_executable_extensions; do
4264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4265 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 DUMPBIN=$ac_cv_prog_DUMPBIN
4276 if test -n "$DUMPBIN"; then
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4278 $as_echo "$DUMPBIN" >&6; }
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4281 $as_echo "no" >&6; }
4285 test -n "$DUMPBIN" && break
4288 if test -z "$DUMPBIN"; then
4289 ac_ct_DUMPBIN=$DUMPBIN
4290 for ac_prog in dumpbin "link -dump"
4292 # Extract the first word of "$ac_prog", so it can be a program name with args.
4293 set dummy $ac_prog; ac_word=$2
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4295 $as_echo_n "checking for $ac_word... " >&6; }
4296 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4297 $as_echo_n "(cached) " >&6
4299 if test -n "$ac_ct_DUMPBIN"; then
4300 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 test -z "$as_dir" && as_dir=.
4307 for ac_exec_ext in '' $ac_executable_extensions; do
4308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4309 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4319 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4320 if test -n "$ac_ct_DUMPBIN"; then
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4322 $as_echo "$ac_ct_DUMPBIN" >&6; }
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4325 $as_echo "no" >&6; }
4329 test -n "$ac_ct_DUMPBIN" && break
4332 if test "x$ac_ct_DUMPBIN" = x; then
4335 case $cross_compiling:$ac_tool_warned in
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4339 ac_tool_warned=yes ;;
4341 DUMPBIN=$ac_ct_DUMPBIN
4345 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4347 DUMPBIN="$DUMPBIN -symbols -headers"
4355 if test : != "$DUMPBIN"; then
4359 test -z "$NM" && NM=nm
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4367 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4368 if ${lt_cv_nm_interface+:} false; then :
4369 $as_echo_n "(cached) " >&6
4371 lt_cv_nm_interface="BSD nm"
4372 echo "int some_variable = 0;" > conftest.$ac_ext
4373 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4374 (eval "$ac_compile" 2>conftest.err)
4375 cat conftest.err >&5
4376 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4377 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4378 cat conftest.err >&5
4379 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4380 cat conftest.out >&5
4381 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4382 lt_cv_nm_interface="MS dumpbin"
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4387 $as_echo "$lt_cv_nm_interface" >&6; }
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4390 $as_echo_n "checking whether ln -s works... " >&6; }
4392 if test "$LN_S" = "ln -s"; then
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4394 $as_echo "yes" >&6; }
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4397 $as_echo "no, using $LN_S" >&6; }
4400 # find the maximum length of command line arguments
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4402 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4403 if ${lt_cv_sys_max_cmd_len+:} false; then :
4404 $as_echo_n "(cached) " >&6
4411 # On DJGPP, this test can blow up pretty badly due to problems in libc
4412 # (any single argument exceeding 2000 bytes causes a buffer overrun
4413 # during glob expansion). Even if it were fixed, the result of this
4414 # check would be larger than it should be.
4415 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4419 # Under GNU Hurd, this test is not required because there is
4420 # no limit to the length of command line arguments.
4421 # Libtool will interpret -1 as no limit whatsoever
4422 lt_cv_sys_max_cmd_len=-1;
4425 cygwin* | mingw* | cegcc*)
4426 # On Win9x/ME, this test blows up -- it succeeds, but takes
4427 # about 5 minutes as the teststring grows exponentially.
4428 # Worse, since 9x/ME are not pre-emptively multitasking,
4429 # you end up with a "frozen" computer, even though with patience
4430 # the test eventually succeeds (with a max line length of 256k).
4431 # Instead, let's just punt: use the minimum linelength reported by
4432 # all of the supported platforms: 8192 (on NT/2K/XP).
4433 lt_cv_sys_max_cmd_len=8192;
4437 # On MiNT this can take a long time and run out of memory.
4438 lt_cv_sys_max_cmd_len=8192;
4442 # On AmigaOS with pdksh, this test takes hours, literally.
4443 # So we just punt and use a minimum line length of 8192.
4444 lt_cv_sys_max_cmd_len=8192;
4447 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4448 # This has been around since 386BSD, at least. Likely further.
4449 if test -x /sbin/sysctl; then
4450 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4451 elif test -x /usr/sbin/sysctl; then
4452 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4454 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4456 # And add a safety zone
4457 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4458 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4462 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4463 lt_cv_sys_max_cmd_len=196608
4467 # The test takes a long time on OS/2.
4468 lt_cv_sys_max_cmd_len=8192
4472 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4473 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4474 # nice to cause kernel panics so lets avoid the loop below.
4475 # First set a reasonable default.
4476 lt_cv_sys_max_cmd_len=16384
4478 if test -x /sbin/sysconfig; then
4479 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4480 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4485 lt_cv_sys_max_cmd_len=102400
4487 sysv5* | sco5v6* | sysv4.2uw2*)
4488 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4489 if test -n "$kargmax"; then
4490 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4492 lt_cv_sys_max_cmd_len=32768
4496 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4497 if test -n "$lt_cv_sys_max_cmd_len" && \
4498 test undefined != "$lt_cv_sys_max_cmd_len"; then
4499 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4500 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4502 # Make teststring a little bigger before we do anything with it.
4503 # a 1K string should be a reasonable start.
4504 for i in 1 2 3 4 5 6 7 8; do
4505 teststring=$teststring$teststring
4507 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4508 # If test is not a shell built-in, we'll probably end up computing a
4509 # maximum length that is only half of the actual maximum length, but
4511 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4512 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4513 test 17 != "$i" # 1/2 MB should be enough
4516 teststring=$teststring$teststring
4518 # Only check the string length outside the loop.
4519 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4521 # Add a significant safety factor because C++ compilers can tack on
4522 # massive amounts of additional arguments before passing them to the
4523 # linker. It appears as though 1/2 is a usable value.
4524 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4531 if test -n "$lt_cv_sys_max_cmd_len"; then
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4533 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4536 $as_echo "none" >&6; }
4538 max_cmd_len=$lt_cv_sys_max_cmd_len
4549 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4559 # test EBCDIC or ASCII
4560 case `echo X|tr X '\101'` in
4561 A) # ASCII based system
4562 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4563 lt_SP2NL='tr \040 \012'
4564 lt_NL2SP='tr \015\012 \040\040'
4566 *) # EBCDIC based system
4567 lt_SP2NL='tr \100 \n'
4568 lt_NL2SP='tr \r\n \100\100'
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4581 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4582 if ${lt_cv_to_host_file_cmd+:} false; then :
4583 $as_echo_n "(cached) " >&6
4588 *-*-mingw* ) # actually msys
4589 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4592 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4594 * ) # otherwise, assume *nix
4595 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4601 *-*-mingw* ) # actually msys
4602 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4605 lt_cv_to_host_file_cmd=func_convert_file_noop
4607 * ) # otherwise, assume *nix
4608 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4612 * ) # unhandled hosts (and "normal" native builds)
4613 lt_cv_to_host_file_cmd=func_convert_file_noop
4619 to_host_file_cmd=$lt_cv_to_host_file_cmd
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4621 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4628 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4629 if ${lt_cv_to_tool_file_cmd+:} false; then :
4630 $as_echo_n "(cached) " >&6
4632 #assume ordinary cross tools, or native build.
4633 lt_cv_to_tool_file_cmd=func_convert_file_noop
4637 *-*-mingw* ) # actually msys
4638 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4646 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4648 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4655 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4656 if ${lt_cv_ld_reload_flag+:} false; then :
4657 $as_echo_n "(cached) " >&6
4659 lt_cv_ld_reload_flag='-r'
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4662 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4663 reload_flag=$lt_cv_ld_reload_flag
4664 case $reload_flag in
4666 *) reload_flag=" $reload_flag" ;;
4668 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4670 cygwin* | mingw* | pw32* | cegcc*)
4671 if test yes != "$GCC"; then
4676 if test yes = "$GCC"; then
4677 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4679 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4692 if test -n "$ac_tool_prefix"; then
4693 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4694 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4696 $as_echo_n "checking for $ac_word... " >&6; }
4697 if ${ac_cv_prog_OBJDUMP+:} false; then :
4698 $as_echo_n "(cached) " >&6
4700 if test -n "$OBJDUMP"; then
4701 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 test -z "$as_dir" && as_dir=.
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4710 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 OBJDUMP=$ac_cv_prog_OBJDUMP
4721 if test -n "$OBJDUMP"; then
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4723 $as_echo "$OBJDUMP" >&6; }
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726 $as_echo "no" >&6; }
4731 if test -z "$ac_cv_prog_OBJDUMP"; then
4732 ac_ct_OBJDUMP=$OBJDUMP
4733 # Extract the first word of "objdump", so it can be a program name with args.
4734 set dummy objdump; ac_word=$2
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4736 $as_echo_n "checking for $ac_word... " >&6; }
4737 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4738 $as_echo_n "(cached) " >&6
4740 if test -n "$ac_ct_OBJDUMP"; then
4741 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 test -z "$as_dir" && as_dir=.
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4750 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4761 if test -n "$ac_ct_OBJDUMP"; then
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4763 $as_echo "$ac_ct_OBJDUMP" >&6; }
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766 $as_echo "no" >&6; }
4769 if test "x$ac_ct_OBJDUMP" = x; then
4772 case $cross_compiling:$ac_tool_warned in
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4776 ac_tool_warned=yes ;;
4778 OBJDUMP=$ac_ct_OBJDUMP
4781 OBJDUMP="$ac_cv_prog_OBJDUMP"
4784 test -z "$OBJDUMP" && OBJDUMP=objdump
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4792 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4793 if ${lt_cv_deplibs_check_method+:} false; then :
4794 $as_echo_n "(cached) " >&6
4796 lt_cv_file_magic_cmd='$MAGIC_CMD'
4797 lt_cv_file_magic_test_file=
4798 lt_cv_deplibs_check_method='unknown'
4799 # Need to set the preceding variable on all platforms that support
4800 # interlibrary dependencies.
4801 # 'none' -- dependencies not supported.
4802 # 'unknown' -- same as none, but documents that we really don't know.
4803 # 'pass_all' -- all dependencies passed with no checks.
4804 # 'test_compile' -- check by making test program.
4805 # 'file_magic [[regex]]' -- check by looking for files in library path
4806 # that responds to the $file_magic_cmd with a given extended regex.
4807 # If you have 'file' or equivalent on your system and you're not sure
4808 # whether 'pass_all' will *always* work, you probably want this one.
4812 lt_cv_deplibs_check_method=pass_all
4816 lt_cv_deplibs_check_method=pass_all
4820 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4821 lt_cv_file_magic_cmd='/usr/bin/file -L'
4822 lt_cv_file_magic_test_file=/shlib/libc.so
4826 # func_win32_libid is a shell function defined in ltmain.sh
4827 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4828 lt_cv_file_magic_cmd='func_win32_libid'
4832 # Base MSYS/MinGW do not provide the 'file' command needed by
4833 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4834 # unless we find 'file', for example because we are cross-compiling.
4835 if ( file / ) >/dev/null 2>&1; then
4836 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4837 lt_cv_file_magic_cmd='func_win32_libid'
4839 # Keep this pattern in sync with the one in func_win32_libid.
4840 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4841 lt_cv_file_magic_cmd='$OBJDUMP -f'
4846 # use the weaker test based on 'objdump'. See mingw*.
4847 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4848 lt_cv_file_magic_cmd='$OBJDUMP -f'
4851 darwin* | rhapsody*)
4852 lt_cv_deplibs_check_method=pass_all
4855 freebsd* | dragonfly*)
4856 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4859 # Not sure whether the presence of OpenBSD here was a mistake.
4860 # Let's accept both of them until this is cleared up.
4861 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4862 lt_cv_file_magic_cmd=/usr/bin/file
4863 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4867 lt_cv_deplibs_check_method=pass_all
4872 lt_cv_deplibs_check_method=pass_all
4875 hpux10.20* | hpux11*)
4876 lt_cv_file_magic_cmd=/usr/bin/file
4879 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4880 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4883 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]'
4884 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4887 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4888 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4894 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4895 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4898 irix5* | irix6* | nonstopux*)
4900 *-32|*"-32 ") libmagic=32-bit;;
4901 *-n32|*"-n32 ") libmagic=N32;;
4902 *-64|*"-64 ") libmagic=64-bit;;
4903 *) libmagic=never-match;;
4905 lt_cv_deplibs_check_method=pass_all
4908 # This must be glibc/ELF.
4909 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4910 lt_cv_deplibs_check_method=pass_all
4914 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4915 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4917 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4922 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4923 lt_cv_file_magic_cmd=/usr/bin/file
4924 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4928 lt_cv_deplibs_check_method=pass_all
4932 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
4933 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4935 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4939 osf3* | osf4* | osf5*)
4940 lt_cv_deplibs_check_method=pass_all
4944 lt_cv_deplibs_check_method=pass_all
4948 lt_cv_deplibs_check_method=pass_all
4951 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4952 lt_cv_deplibs_check_method=pass_all
4956 case $host_vendor in
4958 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]'
4959 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4962 lt_cv_deplibs_check_method=pass_all
4965 lt_cv_file_magic_cmd='/bin/file'
4966 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4969 lt_cv_file_magic_cmd='/bin/file'
4970 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4971 lt_cv_file_magic_test_file=/lib/libc.so
4974 lt_cv_deplibs_check_method=pass_all
4977 lt_cv_deplibs_check_method=pass_all
4983 lt_cv_deplibs_check_method=pass_all
4986 lt_cv_deplibs_check_method=pass_all
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4992 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4996 if test "$build" = "$host"; then
4999 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5002 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5008 file_magic_cmd=$lt_cv_file_magic_cmd
5009 deplibs_check_method=$lt_cv_deplibs_check_method
5010 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5033 if test -n "$ac_tool_prefix"; then
5034 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5035 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5037 $as_echo_n "checking for $ac_word... " >&6; }
5038 if ${ac_cv_prog_DLLTOOL+:} false; then :
5039 $as_echo_n "(cached) " >&6
5041 if test -n "$DLLTOOL"; then
5042 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 test -z "$as_dir" && as_dir=.
5049 for ac_exec_ext in '' $ac_executable_extensions; do
5050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5051 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 DLLTOOL=$ac_cv_prog_DLLTOOL
5062 if test -n "$DLLTOOL"; then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5064 $as_echo "$DLLTOOL" >&6; }
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5067 $as_echo "no" >&6; }
5072 if test -z "$ac_cv_prog_DLLTOOL"; then
5073 ac_ct_DLLTOOL=$DLLTOOL
5074 # Extract the first word of "dlltool", so it can be a program name with args.
5075 set dummy dlltool; ac_word=$2
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5079 $as_echo_n "(cached) " >&6
5081 if test -n "$ac_ct_DLLTOOL"; then
5082 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 test -z "$as_dir" && as_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5091 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5101 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5102 if test -n "$ac_ct_DLLTOOL"; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5104 $as_echo "$ac_ct_DLLTOOL" >&6; }
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 $as_echo "no" >&6; }
5110 if test "x$ac_ct_DLLTOOL" = x; then
5113 case $cross_compiling:$ac_tool_warned in
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5117 ac_tool_warned=yes ;;
5119 DLLTOOL=$ac_ct_DLLTOOL
5122 DLLTOOL="$ac_cv_prog_DLLTOOL"
5125 test -z "$DLLTOOL" && DLLTOOL=dlltool
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5134 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5135 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5136 $as_echo_n "(cached) " >&6
5138 lt_cv_sharedlib_from_linklib_cmd='unknown'
5141 cygwin* | mingw* | pw32* | cegcc*)
5142 # two different shell functions defined in ltmain.sh;
5143 # decide which one to use based on capabilities of $DLLTOOL
5144 case `$DLLTOOL --help 2>&1` in
5145 *--identify-strict*)
5146 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5149 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5154 # fallback: assume linklib IS sharedlib
5155 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5161 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5162 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5163 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5172 if test -n "$ac_tool_prefix"; then
5175 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5176 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178 $as_echo_n "checking for $ac_word... " >&6; }
5179 if ${ac_cv_prog_AR+:} false; then :
5180 $as_echo_n "(cached) " >&6
5182 if test -n "$AR"; then
5183 ac_cv_prog_AR="$AR" # Let the user override the test.
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5192 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 if test -n "$AR"; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5205 $as_echo "$AR" >&6; }
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 $as_echo "no" >&6; }
5212 test -n "$AR" && break
5215 if test -z "$AR"; then
5219 # Extract the first word of "$ac_prog", so it can be a program name with args.
5220 set dummy $ac_prog; ac_word=$2
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222 $as_echo_n "checking for $ac_word... " >&6; }
5223 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5224 $as_echo_n "(cached) " >&6
5226 if test -n "$ac_ct_AR"; then
5227 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 test -z "$as_dir" && as_dir=.
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5236 ac_cv_prog_ac_ct_AR="$ac_prog"
5237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5246 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5247 if test -n "$ac_ct_AR"; then
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5249 $as_echo "$ac_ct_AR" >&6; }
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 $as_echo "no" >&6; }
5256 test -n "$ac_ct_AR" && break
5259 if test "x$ac_ct_AR" = x; then
5262 case $cross_compiling:$ac_tool_warned in
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5266 ac_tool_warned=yes ;;
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5286 $as_echo_n "checking for archiver @FILE support... " >&6; }
5287 if ${lt_cv_ar_at_file+:} false; then :
5288 $as_echo_n "(cached) " >&6
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5302 if ac_fn_c_try_compile "$LINENO"; then :
5303 echo conftest.$ac_objext > conftest.lst
5304 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5306 (eval $lt_ar_try) 2>&5
5308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5309 test $ac_status = 0; }
5310 if test 0 -eq "$ac_status"; then
5311 # Ensure the archiver fails upon bogus file names.
5312 rm -f conftest.$ac_objext libconftest.a
5313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5314 (eval $lt_ar_try) 2>&5
5316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5317 test $ac_status = 0; }
5318 if test 0 -ne "$ac_status"; then
5322 rm -f conftest.* libconftest.a
5325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5329 $as_echo "$lt_cv_ar_at_file" >&6; }
5331 if test no = "$lt_cv_ar_at_file"; then
5334 archiver_list_spec=$lt_cv_ar_at_file
5343 if test -n "$ac_tool_prefix"; then
5344 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5345 set dummy ${ac_tool_prefix}strip; ac_word=$2
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5347 $as_echo_n "checking for $ac_word... " >&6; }
5348 if ${ac_cv_prog_STRIP+:} false; then :
5349 $as_echo_n "(cached) " >&6
5351 if test -n "$STRIP"; then
5352 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 test -z "$as_dir" && as_dir=.
5359 for ac_exec_ext in '' $ac_executable_extensions; do
5360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5371 STRIP=$ac_cv_prog_STRIP
5372 if test -n "$STRIP"; then
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5374 $as_echo "$STRIP" >&6; }
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377 $as_echo "no" >&6; }
5382 if test -z "$ac_cv_prog_STRIP"; then
5384 # Extract the first word of "strip", so it can be a program name with args.
5385 set dummy strip; ac_word=$2
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5387 $as_echo_n "checking for $ac_word... " >&6; }
5388 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5389 $as_echo_n "(cached) " >&6
5391 if test -n "$ac_ct_STRIP"; then
5392 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 test -z "$as_dir" && as_dir=.
5399 for ac_exec_ext in '' $ac_executable_extensions; do
5400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5401 ac_cv_prog_ac_ct_STRIP="strip"
5402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5412 if test -n "$ac_ct_STRIP"; then
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5414 $as_echo "$ac_ct_STRIP" >&6; }
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5417 $as_echo "no" >&6; }
5420 if test "x$ac_ct_STRIP" = x; then
5423 case $cross_compiling:$ac_tool_warned in
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5427 ac_tool_warned=yes ;;
5432 STRIP="$ac_cv_prog_STRIP"
5435 test -z "$STRIP" && STRIP=:
5442 if test -n "$ac_tool_prefix"; then
5443 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5444 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5446 $as_echo_n "checking for $ac_word... " >&6; }
5447 if ${ac_cv_prog_RANLIB+:} false; then :
5448 $as_echo_n "(cached) " >&6
5450 if test -n "$RANLIB"; then
5451 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 test -z "$as_dir" && as_dir=.
5458 for ac_exec_ext in '' $ac_executable_extensions; do
5459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5460 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5470 RANLIB=$ac_cv_prog_RANLIB
5471 if test -n "$RANLIB"; then
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5473 $as_echo "$RANLIB" >&6; }
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476 $as_echo "no" >&6; }
5481 if test -z "$ac_cv_prog_RANLIB"; then
5482 ac_ct_RANLIB=$RANLIB
5483 # Extract the first word of "ranlib", so it can be a program name with args.
5484 set dummy ranlib; ac_word=$2
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486 $as_echo_n "checking for $ac_word... " >&6; }
5487 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5488 $as_echo_n "(cached) " >&6
5490 if test -n "$ac_ct_RANLIB"; then
5491 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 test -z "$as_dir" && as_dir=.
5498 for ac_exec_ext in '' $ac_executable_extensions; do
5499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5500 ac_cv_prog_ac_ct_RANLIB="ranlib"
5501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5511 if test -n "$ac_ct_RANLIB"; then
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5513 $as_echo "$ac_ct_RANLIB" >&6; }
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516 $as_echo "no" >&6; }
5519 if test "x$ac_ct_RANLIB" = x; then
5522 case $cross_compiling:$ac_tool_warned in
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5526 ac_tool_warned=yes ;;
5528 RANLIB=$ac_ct_RANLIB
5531 RANLIB="$ac_cv_prog_RANLIB"
5534 test -z "$RANLIB" && RANLIB=:
5541 # Determine commands to create old-style static archives.
5542 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5543 old_postinstall_cmds='chmod 644 $oldlib'
5544 old_postuninstall_cmds=
5546 if test -n "$RANLIB"; then
5549 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5552 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5555 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5560 lock_old_archive_extraction=yes ;;
5562 lock_old_archive_extraction=no ;;
5585 for ac_prog in gawk mawk nawk awk
5587 # Extract the first word of "$ac_prog", so it can be a program name with args.
5588 set dummy $ac_prog; ac_word=$2
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5590 $as_echo_n "checking for $ac_word... " >&6; }
5591 if ${ac_cv_prog_AWK+:} false; then :
5592 $as_echo_n "(cached) " >&6
5594 if test -n "$AWK"; then
5595 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 test -z "$as_dir" && as_dir=.
5602 for ac_exec_ext in '' $ac_executable_extensions; do
5603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5604 ac_cv_prog_AWK="$ac_prog"
5605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5615 if test -n "$AWK"; then
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5617 $as_echo "$AWK" >&6; }
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5620 $as_echo "no" >&6; }
5624 test -n "$AWK" && break
5645 # If no C compiler was specified, use CC.
5648 # If no C compiler flags were specified, use CFLAGS.
5649 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5651 # Allow CC to be a program name with arguments.
5655 # Check for command to grab the raw symbol name followed by C symbol from nm.
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5657 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5658 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5659 $as_echo_n "(cached) " >&6
5662 # These are sane defaults that work on at least a few old systems.
5663 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5665 # Character class describing NM global symbol codes.
5666 symcode='[BCDEGRST]'
5668 # Regexp to match symbols that can be accessed directly from C.
5669 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5671 # Define system-specific variables.
5676 cygwin* | mingw* | pw32* | cegcc*)
5677 symcode='[ABCDGISTW]'
5680 if test ia64 = "$host_cpu"; then
5681 symcode='[ABCDEGRST]'
5685 symcode='[BCDEGRST]'
5688 symcode='[BCDEGQRST]'
5699 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5707 # If we're using GNU nm, then use its standard symbol codes.
5708 case `$NM -V 2>&1` in
5709 *GNU* | *'with BFD'*)
5710 symcode='[ABCDGIRSTW]' ;;
5713 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5714 # Gets list of data symbols to import.
5715 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5716 # Adjust the below global symbol transforms to fixup imported variables.
5717 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5718 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5719 lt_c_name_lib_hook="\
5720 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5721 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5723 # Disable hooks by default.
5724 lt_cv_sys_global_symbol_to_import=
5730 # Transform an extracted symbol line into a proper C declaration.
5731 # Some systems (esp. on ia64) link data and code symbols differently,
5732 # so use this general approach.
5733 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5735 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5736 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5738 # Transform an extracted symbol line into symbol name and symbol address
5739 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5741 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5742 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5744 # Transform an extracted symbol line into symbol name with lib prefix and
5746 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5747 $lt_c_name_lib_hook\
5748 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5749 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5750 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5752 # Handle CRLF in mingw tool chain
5756 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5760 # Try without a prefix underscore, then with it.
5761 for ac_symprfx in "" "_"; do
5763 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5764 symxfrm="\\1 $ac_symprfx\\2 \\2"
5766 # Write the raw and C identifiers.
5767 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5768 # Fake it for dumpbin and say T for any non-static function,
5769 # D for any global variable and I for any imported variable.
5770 # Also find C++ and __fastcall symbols from MSVC++,
5771 # which start with @ or ?.
5772 lt_cv_sys_global_symbol_pipe="$AWK '"\
5773 " {last_section=section; section=\$ 3};"\
5774 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5775 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5776 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5777 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5778 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5779 " \$ 0!~/External *\|/{next};"\
5780 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5781 " {if(hide[section]) next};"\
5782 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5783 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5784 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5785 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5786 " ' prfx=^$ac_symprfx"
5788 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5790 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5792 # Check to see that the pipe works correctly.
5796 cat > conftest.$ac_ext <<_LT_EOF
5801 void nm_test_func(void);
5802 void nm_test_func(void){}
5806 int main(){nm_test_var='a';nm_test_func();return(0);}
5809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5810 (eval $ac_compile) 2>&5
5812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5813 test $ac_status = 0; }; then
5814 # Now try to grab the symbols.
5816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5817 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5820 test $ac_status = 0; } && test -s "$nlist"; then
5821 # Try sorting and uniquifying the output.
5822 if sort "$nlist" | uniq > "$nlist"T; then
5823 mv -f "$nlist"T "$nlist"
5828 # Make sure that we snagged all the symbols we need.
5829 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5830 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5831 cat <<_LT_EOF > conftest.$ac_ext
5832 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5833 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5834 /* DATA imports from DLLs on WIN32 can't be const, because runtime
5835 relocations are performed -- see ld's documentation on pseudo-relocs. */
5836 # define LT_DLSYM_CONST
5837 #elif defined __osf__
5838 /* This system does not cope well with relocations in const data. */
5839 # define LT_DLSYM_CONST
5841 # define LT_DLSYM_CONST const
5849 # Now generate the symbol file.
5850 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5852 cat <<_LT_EOF >> conftest.$ac_ext
5854 /* The mapping between symbol names and symbols. */
5855 LT_DLSYM_CONST struct {
5859 lt__PROGRAM__LTX_preloaded_symbols[] =
5861 { "@PROGRAM@", (void *) 0 },
5863 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5864 cat <<\_LT_EOF >> conftest.$ac_ext
5868 /* This works around a problem in FreeBSD linker */
5869 #ifdef FREEBSD_WORKAROUND
5870 static const void *lt_preloaded_setup() {
5871 return lt__PROGRAM__LTX_preloaded_symbols;
5879 # Now try linking the two files.
5880 mv conftest.$ac_objext conftstm.$ac_objext
5881 lt_globsym_save_LIBS=$LIBS
5882 lt_globsym_save_CFLAGS=$CFLAGS
5883 LIBS=conftstm.$ac_objext
5884 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5886 (eval $ac_link) 2>&5
5888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5889 test $ac_status = 0; } && test -s conftest$ac_exeext; then
5892 LIBS=$lt_globsym_save_LIBS
5893 CFLAGS=$lt_globsym_save_CFLAGS
5895 echo "cannot find nm_test_func in $nlist" >&5
5898 echo "cannot find nm_test_var in $nlist" >&5
5901 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5904 echo "$progname: failed program was:" >&5
5905 cat conftest.$ac_ext >&5
5907 rm -rf conftest* conftst*
5909 # Do not use the global_symbol_pipe unless it works.
5910 if test yes = "$pipe_works"; then
5913 lt_cv_sys_global_symbol_pipe=
5919 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5920 lt_cv_sys_global_symbol_to_cdecl=
5922 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5924 $as_echo "failed" >&6; }
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5927 $as_echo "ok" >&6; }
5930 # Response file support.
5931 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5932 nm_file_list_spec='@'
5933 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5934 nm_file_list_spec='@'
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5974 $as_echo_n "checking for sysroot... " >&6; }
5976 # Check whether --with-sysroot was given.
5977 if test "${with_sysroot+set}" = set; then :
5978 withval=$with_sysroot;
5985 case $with_sysroot in #(
5987 if test yes = "$GCC"; then
5988 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5992 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
5998 $as_echo "$with_sysroot" >&6; }
5999 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6004 $as_echo "${lt_sysroot:-no}" >&6; }
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6011 $as_echo_n "checking for a working dd... " >&6; }
6012 if ${ac_cv_path_lt_DD+:} false; then :
6013 $as_echo_n "(cached) " >&6
6015 printf 0123456789abcdef0123456789abcdef >conftest.i
6016 cat conftest.i conftest.i >conftest2.i
6018 if test -z "$lt_DD"; then
6019 ac_path_lt_DD_found=false
6020 # Loop through the user's path and test for each of PROGNAME-LIST
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 test -z "$as_dir" && as_dir=.
6026 for ac_prog in dd; do
6027 for ac_exec_ext in '' $ac_executable_extensions; do
6028 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6029 as_fn_executable_p "$ac_path_lt_DD" || continue
6030 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6031 cmp -s conftest.i conftest.out \
6032 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6034 $ac_path_lt_DD_found && break 3
6039 if test -z "$ac_cv_path_lt_DD"; then
6043 ac_cv_path_lt_DD=$lt_DD
6046 rm -f conftest.i conftest2.i conftest.out
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6049 $as_echo "$ac_cv_path_lt_DD" >&6; }
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6053 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6054 if ${lt_cv_truncate_bin+:} false; then :
6055 $as_echo_n "(cached) " >&6
6057 printf 0123456789abcdef0123456789abcdef >conftest.i
6058 cat conftest.i conftest.i >conftest2.i
6060 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6061 cmp -s conftest.i conftest.out \
6062 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6064 rm -f conftest.i conftest2.i conftest.out
6065 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6068 $as_echo "$lt_cv_truncate_bin" >&6; }
6076 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6079 for cc_temp in $*""; do
6081 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6082 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6087 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6090 # Check whether --enable-libtool-lock was given.
6091 if test "${enable_libtool_lock+set}" = set; then :
6092 enableval=$enable_libtool_lock;
6095 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6097 # Some flags need to be propagated to the compiler or linker for good
6101 # Find out what ABI is being produced by ac_compile, and set mode
6102 # options accordingly.
6103 echo 'int i;' > conftest.$ac_ext
6104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6105 (eval $ac_compile) 2>&5
6107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6108 test $ac_status = 0; }; then
6109 case `/usr/bin/file conftest.$ac_objext` in
6121 # Find out what ABI is being produced by ac_compile, and set linker
6122 # options accordingly.
6123 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6125 (eval $ac_compile) 2>&5
6127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6128 test $ac_status = 0; }; then
6129 if test yes = "$lt_cv_prog_gnu_ld"; then
6130 case `/usr/bin/file conftest.$ac_objext` in
6132 LD="${LD-ld} -melf32bsmip"
6135 LD="${LD-ld} -melf32bmipn32"
6138 LD="${LD-ld} -melf64bmip"
6142 case `/usr/bin/file conftest.$ac_objext` in
6159 # Find out what ABI is being produced by ac_compile, and set linker
6160 # options accordingly.
6161 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6163 (eval $ac_compile) 2>&5
6165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6166 test $ac_status = 0; }; then
6168 case `/usr/bin/file conftest.$ac_objext` in
6176 case `/usr/bin/file conftest.$ac_objext` in
6178 emul="${emul}btsmip"
6181 emul="${emul}ltsmip"
6184 case `/usr/bin/file conftest.$ac_objext` in
6189 LD="${LD-ld} -m $emul"
6194 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6195 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6196 # Find out what ABI is being produced by ac_compile, and set linker
6197 # options accordingly. Note that the listed cases only cover the
6198 # situations where additional linker options are needed (such as when
6199 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6200 # vice versa); the common cases where no linker options are needed do
6201 # not appear in the list.
6202 echo 'int i;' > conftest.$ac_ext
6203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6204 (eval $ac_compile) 2>&5
6206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6207 test $ac_status = 0; }; then
6208 case `/usr/bin/file conftest.o` in
6211 x86_64-*kfreebsd*-gnu)
6212 LD="${LD-ld} -m elf_i386_fbsd"
6215 case `/usr/bin/file conftest.o` in
6217 LD="${LD-ld} -m elf32_x86_64"
6220 LD="${LD-ld} -m elf_i386"
6224 powerpc64le-*linux*)
6225 LD="${LD-ld} -m elf32lppclinux"
6228 LD="${LD-ld} -m elf32ppclinux"
6231 LD="${LD-ld} -m elf_s390"
6234 LD="${LD-ld} -m elf32_sparc"
6240 x86_64-*kfreebsd*-gnu)
6241 LD="${LD-ld} -m elf_x86_64_fbsd"
6244 LD="${LD-ld} -m elf_x86_64"
6247 LD="${LD-ld} -m elf64lppc"
6250 LD="${LD-ld} -m elf64ppc"
6252 s390*-*linux*|s390*-*tpf*)
6253 LD="${LD-ld} -m elf64_s390"
6256 LD="${LD-ld} -m elf64_sparc"
6266 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6268 CFLAGS="$CFLAGS -belf"
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6270 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6271 if ${lt_cv_cc_needs_belf+:} false; then :
6272 $as_echo_n "(cached) " >&6
6275 ac_cpp='$CPP $CPPFLAGS'
6276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h. */
6291 if ac_fn_c_try_link "$LINENO"; then :
6292 lt_cv_cc_needs_belf=yes
6294 lt_cv_cc_needs_belf=no
6296 rm -f core conftest.err conftest.$ac_objext \
6297 conftest$ac_exeext conftest.$ac_ext
6299 ac_cpp='$CPP $CPPFLAGS'
6300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6306 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6307 if test yes != "$lt_cv_cc_needs_belf"; then
6308 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6313 # Find out what ABI is being produced by ac_compile, and set linker
6314 # options accordingly.
6315 echo 'int i;' > conftest.$ac_ext
6316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6317 (eval $ac_compile) 2>&5
6319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6320 test $ac_status = 0; }; then
6321 case `/usr/bin/file conftest.o` in
6323 case $lt_cv_prog_gnu_ld in
6326 i?86-*-solaris*|x86_64-*-solaris*)
6327 LD="${LD-ld} -m elf_x86_64"
6330 LD="${LD-ld} -m elf64_sparc"
6333 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6334 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6339 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6351 need_locks=$enable_libtool_lock
6353 if test -n "$ac_tool_prefix"; then
6354 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6355 set dummy ${ac_tool_prefix}mt; ac_word=$2
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357 $as_echo_n "checking for $ac_word... " >&6; }
6358 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6359 $as_echo_n "(cached) " >&6
6361 if test -n "$MANIFEST_TOOL"; then
6362 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 test -z "$as_dir" && as_dir=.
6369 for ac_exec_ext in '' $ac_executable_extensions; do
6370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6371 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6381 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6382 if test -n "$MANIFEST_TOOL"; then
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6384 $as_echo "$MANIFEST_TOOL" >&6; }
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387 $as_echo "no" >&6; }
6392 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6393 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6394 # Extract the first word of "mt", so it can be a program name with args.
6395 set dummy mt; ac_word=$2
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6397 $as_echo_n "checking for $ac_word... " >&6; }
6398 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6399 $as_echo_n "(cached) " >&6
6401 if test -n "$ac_ct_MANIFEST_TOOL"; then
6402 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 test -z "$as_dir" && as_dir=.
6409 for ac_exec_ext in '' $ac_executable_extensions; do
6410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6411 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6421 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6422 if test -n "$ac_ct_MANIFEST_TOOL"; then
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6424 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6427 $as_echo "no" >&6; }
6430 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6433 case $cross_compiling:$ac_tool_warned in
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6437 ac_tool_warned=yes ;;
6439 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6442 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6445 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6447 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6448 if ${lt_cv_path_mainfest_tool+:} false; then :
6449 $as_echo_n "(cached) " >&6
6451 lt_cv_path_mainfest_tool=no
6452 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6453 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6454 cat conftest.err >&5
6455 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6456 lt_cv_path_mainfest_tool=yes
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6461 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6462 if test yes != "$lt_cv_path_mainfest_tool"; then
6472 rhapsody* | darwin*)
6473 if test -n "$ac_tool_prefix"; then
6474 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6475 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6479 $as_echo_n "(cached) " >&6
6481 if test -n "$DSYMUTIL"; then
6482 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6491 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6502 if test -n "$DSYMUTIL"; then
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6504 $as_echo "$DSYMUTIL" >&6; }
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6507 $as_echo "no" >&6; }
6512 if test -z "$ac_cv_prog_DSYMUTIL"; then
6513 ac_ct_DSYMUTIL=$DSYMUTIL
6514 # Extract the first word of "dsymutil", so it can be a program name with args.
6515 set dummy dsymutil; ac_word=$2
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6519 $as_echo_n "(cached) " >&6
6521 if test -n "$ac_ct_DSYMUTIL"; then
6522 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6531 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6542 if test -n "$ac_ct_DSYMUTIL"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6544 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547 $as_echo "no" >&6; }
6550 if test "x$ac_ct_DSYMUTIL" = x; then
6553 case $cross_compiling:$ac_tool_warned in
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6557 ac_tool_warned=yes ;;
6559 DSYMUTIL=$ac_ct_DSYMUTIL
6562 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6565 if test -n "$ac_tool_prefix"; then
6566 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6567 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6569 $as_echo_n "checking for $ac_word... " >&6; }
6570 if ${ac_cv_prog_NMEDIT+:} false; then :
6571 $as_echo_n "(cached) " >&6
6573 if test -n "$NMEDIT"; then
6574 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 test -z "$as_dir" && as_dir=.
6581 for ac_exec_ext in '' $ac_executable_extensions; do
6582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6583 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6593 NMEDIT=$ac_cv_prog_NMEDIT
6594 if test -n "$NMEDIT"; then
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6596 $as_echo "$NMEDIT" >&6; }
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6599 $as_echo "no" >&6; }
6604 if test -z "$ac_cv_prog_NMEDIT"; then
6605 ac_ct_NMEDIT=$NMEDIT
6606 # Extract the first word of "nmedit", so it can be a program name with args.
6607 set dummy nmedit; ac_word=$2
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6609 $as_echo_n "checking for $ac_word... " >&6; }
6610 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6611 $as_echo_n "(cached) " >&6
6613 if test -n "$ac_ct_NMEDIT"; then
6614 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 test -z "$as_dir" && as_dir=.
6621 for ac_exec_ext in '' $ac_executable_extensions; do
6622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6623 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6633 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6634 if test -n "$ac_ct_NMEDIT"; then
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6636 $as_echo "$ac_ct_NMEDIT" >&6; }
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6639 $as_echo "no" >&6; }
6642 if test "x$ac_ct_NMEDIT" = x; then
6645 case $cross_compiling:$ac_tool_warned in
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6649 ac_tool_warned=yes ;;
6651 NMEDIT=$ac_ct_NMEDIT
6654 NMEDIT="$ac_cv_prog_NMEDIT"
6657 if test -n "$ac_tool_prefix"; then
6658 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6659 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6661 $as_echo_n "checking for $ac_word... " >&6; }
6662 if ${ac_cv_prog_LIPO+:} false; then :
6663 $as_echo_n "(cached) " >&6
6665 if test -n "$LIPO"; then
6666 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 test -z "$as_dir" && as_dir=.
6673 for ac_exec_ext in '' $ac_executable_extensions; do
6674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6675 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 LIPO=$ac_cv_prog_LIPO
6686 if test -n "$LIPO"; then
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6688 $as_echo "$LIPO" >&6; }
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6691 $as_echo "no" >&6; }
6696 if test -z "$ac_cv_prog_LIPO"; then
6698 # Extract the first word of "lipo", so it can be a program name with args.
6699 set dummy lipo; ac_word=$2
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6701 $as_echo_n "checking for $ac_word... " >&6; }
6702 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6703 $as_echo_n "(cached) " >&6
6705 if test -n "$ac_ct_LIPO"; then
6706 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6715 ac_cv_prog_ac_ct_LIPO="lipo"
6716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6725 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6726 if test -n "$ac_ct_LIPO"; then
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6728 $as_echo "$ac_ct_LIPO" >&6; }
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6731 $as_echo "no" >&6; }
6734 if test "x$ac_ct_LIPO" = x; then
6737 case $cross_compiling:$ac_tool_warned in
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6741 ac_tool_warned=yes ;;
6746 LIPO="$ac_cv_prog_LIPO"
6749 if test -n "$ac_tool_prefix"; then
6750 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6751 set dummy ${ac_tool_prefix}otool; ac_word=$2
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6753 $as_echo_n "checking for $ac_word... " >&6; }
6754 if ${ac_cv_prog_OTOOL+:} false; then :
6755 $as_echo_n "(cached) " >&6
6757 if test -n "$OTOOL"; then
6758 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6767 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 OTOOL=$ac_cv_prog_OTOOL
6778 if test -n "$OTOOL"; then
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6780 $as_echo "$OTOOL" >&6; }
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6783 $as_echo "no" >&6; }
6788 if test -z "$ac_cv_prog_OTOOL"; then
6790 # Extract the first word of "otool", so it can be a program name with args.
6791 set dummy otool; ac_word=$2
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793 $as_echo_n "checking for $ac_word... " >&6; }
6794 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6795 $as_echo_n "(cached) " >&6
6797 if test -n "$ac_ct_OTOOL"; then
6798 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6807 ac_cv_prog_ac_ct_OTOOL="otool"
6808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6818 if test -n "$ac_ct_OTOOL"; then
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6820 $as_echo "$ac_ct_OTOOL" >&6; }
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823 $as_echo "no" >&6; }
6826 if test "x$ac_ct_OTOOL" = x; then
6829 case $cross_compiling:$ac_tool_warned in
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6833 ac_tool_warned=yes ;;
6838 OTOOL="$ac_cv_prog_OTOOL"
6841 if test -n "$ac_tool_prefix"; then
6842 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6843 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6845 $as_echo_n "checking for $ac_word... " >&6; }
6846 if ${ac_cv_prog_OTOOL64+:} false; then :
6847 $as_echo_n "(cached) " >&6
6849 if test -n "$OTOOL64"; then
6850 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856 test -z "$as_dir" && as_dir=.
6857 for ac_exec_ext in '' $ac_executable_extensions; do
6858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6859 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6869 OTOOL64=$ac_cv_prog_OTOOL64
6870 if test -n "$OTOOL64"; then
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6872 $as_echo "$OTOOL64" >&6; }
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6875 $as_echo "no" >&6; }
6880 if test -z "$ac_cv_prog_OTOOL64"; then
6881 ac_ct_OTOOL64=$OTOOL64
6882 # Extract the first word of "otool64", so it can be a program name with args.
6883 set dummy otool64; ac_word=$2
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6885 $as_echo_n "checking for $ac_word... " >&6; }
6886 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6887 $as_echo_n "(cached) " >&6
6889 if test -n "$ac_ct_OTOOL64"; then
6890 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896 test -z "$as_dir" && as_dir=.
6897 for ac_exec_ext in '' $ac_executable_extensions; do
6898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6899 ac_cv_prog_ac_ct_OTOOL64="otool64"
6900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6909 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6910 if test -n "$ac_ct_OTOOL64"; then
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6912 $as_echo "$ac_ct_OTOOL64" >&6; }
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6915 $as_echo "no" >&6; }
6918 if test "x$ac_ct_OTOOL64" = x; then
6921 case $cross_compiling:$ac_tool_warned in
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6925 ac_tool_warned=yes ;;
6927 OTOOL64=$ac_ct_OTOOL64
6930 OTOOL64="$ac_cv_prog_OTOOL64"
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6960 $as_echo_n "checking for -single_module linker flag... " >&6; }
6961 if ${lt_cv_apple_cc_single_mod+:} false; then :
6962 $as_echo_n "(cached) " >&6
6964 lt_cv_apple_cc_single_mod=no
6965 if test -z "$LT_MULTI_MODULE"; then
6966 # By default we will add the -single_module flag. You can override
6967 # by either setting the environment variable LT_MULTI_MODULE
6968 # non-empty at configure time, or by adding -multi_module to the
6970 rm -rf libconftest.dylib*
6971 echo "int foo(void){return 1;}" > conftest.c
6972 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6973 -dynamiclib -Wl,-single_module conftest.c" >&5
6974 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6975 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6977 # If there is a non-empty error log, and "single_module"
6978 # appears in it, assume the flag caused a linker warning
6979 if test -s conftest.err && $GREP single_module conftest.err; then
6980 cat conftest.err >&5
6981 # Otherwise, if the output was created with a 0 exit code from
6982 # the compiler, it worked.
6983 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
6984 lt_cv_apple_cc_single_mod=yes
6986 cat conftest.err >&5
6988 rm -rf libconftest.dylib*
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6993 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6996 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6997 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6998 $as_echo_n "(cached) " >&6
7000 lt_cv_ld_exported_symbols_list=no
7001 save_LDFLAGS=$LDFLAGS
7002 echo "_main" > conftest.sym
7003 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7015 if ac_fn_c_try_link "$LINENO"; then :
7016 lt_cv_ld_exported_symbols_list=yes
7018 lt_cv_ld_exported_symbols_list=no
7020 rm -f core conftest.err conftest.$ac_objext \
7021 conftest$ac_exeext conftest.$ac_ext
7022 LDFLAGS=$save_LDFLAGS
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7026 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7029 $as_echo_n "checking for -force_load linker flag... " >&6; }
7030 if ${lt_cv_ld_force_load+:} false; then :
7031 $as_echo_n "(cached) " >&6
7033 lt_cv_ld_force_load=no
7034 cat > conftest.c << _LT_EOF
7035 int forced_loaded() { return 2;}
7037 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7038 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7039 echo "$AR cru libconftest.a conftest.o" >&5
7040 $AR cru libconftest.a conftest.o 2>&5
7041 echo "$RANLIB libconftest.a" >&5
7042 $RANLIB libconftest.a 2>&5
7043 cat > conftest.c << _LT_EOF
7044 int main() { return 0;}
7046 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7047 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7049 if test -s conftest.err && $GREP force_load conftest.err; then
7050 cat conftest.err >&5
7051 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7052 lt_cv_ld_force_load=yes
7054 cat conftest.err >&5
7056 rm -f conftest.err libconftest.a conftest conftest.c
7057 rm -rf conftest.dSYM
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7061 $as_echo "$lt_cv_ld_force_load" >&6; }
7063 rhapsody* | darwin1.[012])
7064 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7066 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7067 darwin*) # darwin 5.x on
7068 # if running on 10.5 or later, the deployment target defaults
7069 # to the OS version, if on x86, and 10.4, the deployment
7070 # target defaults to 10.4. Don't you love it?
7071 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7072 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7073 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7075 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7077 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7081 if test yes = "$lt_cv_apple_cc_single_mod"; then
7082 _lt_dar_single_mod='$single_module'
7084 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7085 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7087 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7089 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7090 _lt_dsymutil='~$DSYMUTIL $lib || :'
7097 # func_munge_path_list VARIABLE PATH
7098 # -----------------------------------
7099 # VARIABLE is name of variable containing _space_ separated list of
7100 # directories to be munged by the contents of PATH, which is string
7103 # string "DIR[ DIR]" will be prepended to VARIABLE
7105 # string "DIR[ DIR]" will be appended to VARIABLE
7106 # "DIRP[:DIRP]::[DIRA:]DIRA"
7107 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7108 # "DIRA[ DIRA]" will be appended to VARIABLE
7110 # VARIABLE will be replaced by "DIR[ DIR]"
7111 func_munge_path_list ()
7117 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7120 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7123 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7124 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7127 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7134 $as_echo_n "checking for ANSI C header files... " >&6; }
7135 if ${ac_cv_header_stdc+:} false; then :
7136 $as_echo_n "(cached) " >&6
7138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139 /* end confdefs.h. */
7153 if ac_fn_c_try_compile "$LINENO"; then :
7154 ac_cv_header_stdc=yes
7156 ac_cv_header_stdc=no
7158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7160 if test $ac_cv_header_stdc = yes; then
7161 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163 /* end confdefs.h. */
7167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7168 $EGREP "memchr" >/dev/null 2>&1; then :
7171 ac_cv_header_stdc=no
7177 if test $ac_cv_header_stdc = yes; then
7178 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7185 $EGREP "free" >/dev/null 2>&1; then :
7188 ac_cv_header_stdc=no
7194 if test $ac_cv_header_stdc = yes; then
7195 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7196 if test "$cross_compiling" = yes; then :
7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200 /* end confdefs.h. */
7203 #if ((' ' & 0x0FF) == 0x020)
7204 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7205 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7207 # define ISLOWER(c) \
7208 (('a' <= (c) && (c) <= 'i') \
7209 || ('j' <= (c) && (c) <= 'r') \
7210 || ('s' <= (c) && (c) <= 'z'))
7211 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7214 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7219 for (i = 0; i < 256; i++)
7220 if (XOR (islower (i), ISLOWER (i))
7221 || toupper (i) != TOUPPER (i))
7226 if ac_fn_c_try_run "$LINENO"; then :
7229 ac_cv_header_stdc=no
7231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7232 conftest.$ac_objext conftest.beam conftest.$ac_ext
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7238 $as_echo "$ac_cv_header_stdc" >&6; }
7239 if test $ac_cv_header_stdc = yes; then
7241 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7245 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7246 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7247 inttypes.h stdint.h unistd.h
7249 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7250 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7252 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7253 cat >>confdefs.h <<_ACEOF
7254 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7262 for ac_header in dlfcn.h
7264 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7266 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7267 cat >>confdefs.h <<_ACEOF
7268 #define HAVE_DLFCN_H 1
7280 enable_win32_dll=yes
7283 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7284 if test -n "$ac_tool_prefix"; then
7285 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7286 set dummy ${ac_tool_prefix}as; ac_word=$2
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7288 $as_echo_n "checking for $ac_word... " >&6; }
7289 if ${ac_cv_prog_AS+:} false; then :
7290 $as_echo_n "(cached) " >&6
7292 if test -n "$AS"; then
7293 ac_cv_prog_AS="$AS" # Let the user override the test.
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 test -z "$as_dir" && as_dir=.
7300 for ac_exec_ext in '' $ac_executable_extensions; do
7301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7302 ac_cv_prog_AS="${ac_tool_prefix}as"
7303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313 if test -n "$AS"; then
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7315 $as_echo "$AS" >&6; }
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7318 $as_echo "no" >&6; }
7323 if test -z "$ac_cv_prog_AS"; then
7325 # Extract the first word of "as", so it can be a program name with args.
7326 set dummy as; ac_word=$2
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7328 $as_echo_n "checking for $ac_word... " >&6; }
7329 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7330 $as_echo_n "(cached) " >&6
7332 if test -n "$ac_ct_AS"; then
7333 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 test -z "$as_dir" && as_dir=.
7340 for ac_exec_ext in '' $ac_executable_extensions; do
7341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7342 ac_cv_prog_ac_ct_AS="as"
7343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7353 if test -n "$ac_ct_AS"; then
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7355 $as_echo "$ac_ct_AS" >&6; }
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358 $as_echo "no" >&6; }
7361 if test "x$ac_ct_AS" = x; then
7364 case $cross_compiling:$ac_tool_warned in
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7368 ac_tool_warned=yes ;;
7376 if test -n "$ac_tool_prefix"; then
7377 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7378 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380 $as_echo_n "checking for $ac_word... " >&6; }
7381 if ${ac_cv_prog_DLLTOOL+:} false; then :
7382 $as_echo_n "(cached) " >&6
7384 if test -n "$DLLTOOL"; then
7385 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7394 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 DLLTOOL=$ac_cv_prog_DLLTOOL
7405 if test -n "$DLLTOOL"; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7407 $as_echo "$DLLTOOL" >&6; }
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410 $as_echo "no" >&6; }
7415 if test -z "$ac_cv_prog_DLLTOOL"; then
7416 ac_ct_DLLTOOL=$DLLTOOL
7417 # Extract the first word of "dlltool", so it can be a program name with args.
7418 set dummy dlltool; ac_word=$2
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7420 $as_echo_n "checking for $ac_word... " >&6; }
7421 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7422 $as_echo_n "(cached) " >&6
7424 if test -n "$ac_ct_DLLTOOL"; then
7425 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 test -z "$as_dir" && as_dir=.
7432 for ac_exec_ext in '' $ac_executable_extensions; do
7433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7434 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7445 if test -n "$ac_ct_DLLTOOL"; then
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7447 $as_echo "$ac_ct_DLLTOOL" >&6; }
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450 $as_echo "no" >&6; }
7453 if test "x$ac_ct_DLLTOOL" = x; then
7456 case $cross_compiling:$ac_tool_warned in
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7460 ac_tool_warned=yes ;;
7462 DLLTOOL=$ac_ct_DLLTOOL
7465 DLLTOOL="$ac_cv_prog_DLLTOOL"
7468 if test -n "$ac_tool_prefix"; then
7469 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7470 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472 $as_echo_n "checking for $ac_word... " >&6; }
7473 if ${ac_cv_prog_OBJDUMP+:} false; then :
7474 $as_echo_n "(cached) " >&6
7476 if test -n "$OBJDUMP"; then
7477 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483 test -z "$as_dir" && as_dir=.
7484 for ac_exec_ext in '' $ac_executable_extensions; do
7485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7486 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7496 OBJDUMP=$ac_cv_prog_OBJDUMP
7497 if test -n "$OBJDUMP"; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7499 $as_echo "$OBJDUMP" >&6; }
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502 $as_echo "no" >&6; }
7507 if test -z "$ac_cv_prog_OBJDUMP"; then
7508 ac_ct_OBJDUMP=$OBJDUMP
7509 # Extract the first word of "objdump", so it can be a program name with args.
7510 set dummy objdump; ac_word=$2
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7512 $as_echo_n "checking for $ac_word... " >&6; }
7513 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7514 $as_echo_n "(cached) " >&6
7516 if test -n "$ac_ct_OBJDUMP"; then
7517 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 test -z "$as_dir" && as_dir=.
7524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7526 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7536 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7537 if test -n "$ac_ct_OBJDUMP"; then
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7539 $as_echo "$ac_ct_OBJDUMP" >&6; }
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 $as_echo "no" >&6; }
7545 if test "x$ac_ct_OBJDUMP" = x; then
7548 case $cross_compiling:$ac_tool_warned in
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7552 ac_tool_warned=yes ;;
7554 OBJDUMP=$ac_ct_OBJDUMP
7557 OBJDUMP="$ac_cv_prog_OBJDUMP"
7563 test -z "$AS" && AS=as
7569 test -z "$DLLTOOL" && DLLTOOL=dlltool
7575 test -z "$OBJDUMP" && OBJDUMP=objdump
7587 # Check whether --enable-shared was given.
7588 if test "${enable_shared+set}" = set; then :
7589 enableval=$enable_shared; p=${PACKAGE-default}
7591 yes) enable_shared=yes ;;
7592 no) enable_shared=no ;;
7595 # Look at the argument we got. We use all the common list separators.
7596 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7597 for pkg in $enableval; do
7599 if test "X$pkg" = "X$p"; then
7618 # Check whether --enable-static was given.
7619 if test "${enable_static+set}" = set; then :
7620 enableval=$enable_static; p=${PACKAGE-default}
7622 yes) enable_static=yes ;;
7623 no) enable_static=no ;;
7626 # Look at the argument we got. We use all the common list separators.
7627 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7628 for pkg in $enableval; do
7630 if test "X$pkg" = "X$p"; then
7650 # Check whether --with-pic was given.
7651 if test "${with_pic+set}" = set; then :
7652 withval=$with_pic; lt_p=${PACKAGE-default}
7654 yes|no) pic_mode=$withval ;;
7657 # Look at the argument we got. We use all the common list separators.
7658 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7659 for lt_pkg in $withval; do
7661 if test "X$lt_pkg" = "X$lt_p"; then
7679 # Check whether --enable-fast-install was given.
7680 if test "${enable_fast_install+set}" = set; then :
7681 enableval=$enable_fast_install; p=${PACKAGE-default}
7683 yes) enable_fast_install=yes ;;
7684 no) enable_fast_install=no ;;
7686 enable_fast_install=no
7687 # Look at the argument we got. We use all the common list separators.
7688 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7689 for pkg in $enableval; do
7691 if test "X$pkg" = "X$p"; then
7692 enable_fast_install=yes
7699 enable_fast_install=yes
7709 shared_archive_member_spec=
7710 case $host,$enable_shared in
7711 power*-*-aix[5-9]*,yes)
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7713 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7715 # Check whether --with-aix-soname was given.
7716 if test "${with_aix_soname+set}" = set; then :
7717 withval=$with_aix_soname; case $withval in
7721 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7724 lt_cv_with_aix_soname=$with_aix_soname
7726 if ${lt_cv_with_aix_soname+:} false; then :
7727 $as_echo_n "(cached) " >&6
7729 lt_cv_with_aix_soname=aix
7732 with_aix_soname=$lt_cv_with_aix_soname
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7736 $as_echo "$with_aix_soname" >&6; }
7737 if test aix != "$with_aix_soname"; then
7738 # For the AIX way of multilib, we name the shared archive member
7739 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7740 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7741 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7742 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7743 if test 64 = "${OBJECT_MODE-32}"; then
7744 shared_archive_member_spec=shr_64
7746 shared_archive_member_spec=shr
7764 # This can be used to rebuild libtool when needed
7765 LIBTOOL_DEPS=$ltmain
7767 # Always use our own libtool.
7768 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7799 test -z "$LN_S" && LN_S="ln -s"
7814 if test -n "${ZSH_VERSION+set}"; then
7815 setopt NO_GLOB_SUBST
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7819 $as_echo_n "checking for objdir... " >&6; }
7820 if ${lt_cv_objdir+:} false; then :
7821 $as_echo_n "(cached) " >&6
7823 rm -f .libs 2>/dev/null
7824 mkdir .libs 2>/dev/null
7825 if test -d .libs; then
7828 # MS-DOS does not allow filenames that begin with a dot.
7831 rmdir .libs 2>/dev/null
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7834 $as_echo "$lt_cv_objdir" >&6; }
7835 objdir=$lt_cv_objdir
7841 cat >>confdefs.h <<_ACEOF
7842 #define LT_OBJDIR "$lt_cv_objdir/"
7850 # AIX sometimes has problems with the GCC collect2 program. For some
7851 # reason, if we set the COLLECT_NAMES environment variable, the problems
7852 # vanish in a puff of smoke.
7853 if test set != "${COLLECT_NAMES+set}"; then
7855 export COLLECT_NAMES
7862 can_build_shared=yes
7864 # All known linkers require a '.a' archive for static linking (except MSVC,
7865 # which needs '.lib').
7868 with_gnu_ld=$lt_cv_prog_gnu_ld
7873 # Set sane defaults for various variables
7874 test -z "$CC" && CC=cc
7875 test -z "$LTCC" && LTCC=$CC
7876 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7877 test -z "$LD" && LD=ld
7878 test -z "$ac_objext" && ac_objext=o
7880 func_cc_basename $compiler
7881 cc_basename=$func_cc_basename_result
7884 # Only perform the check for file, if the check method requires it
7885 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7886 case $deplibs_check_method in
7888 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7890 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7891 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7892 $as_echo_n "(cached) " >&6
7896 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7899 lt_save_MAGIC_CMD=$MAGIC_CMD
7900 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7901 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7902 for ac_dir in $ac_dummy; do
7904 test -z "$ac_dir" && ac_dir=.
7905 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7906 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7907 if test -n "$file_magic_test_file"; then
7908 case $deplibs_check_method in
7910 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7911 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7912 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7913 $EGREP "$file_magic_regex" > /dev/null; then
7918 *** Warning: the command libtool uses to detect shared libraries,
7919 *** $file_magic_cmd, produces output that libtool cannot recognize.
7920 *** The result is that libtool may fail to recognize shared libraries
7921 *** as such. This will affect the creation of libtool libraries that
7922 *** depend on shared libraries, but programs linked with such libtool
7923 *** libraries will work regardless of this problem. Nevertheless, you
7924 *** may want to report the problem to your system manager and/or to
7925 *** bug-libtool@gnu.org
7935 MAGIC_CMD=$lt_save_MAGIC_CMD
7940 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7941 if test -n "$MAGIC_CMD"; then
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7943 $as_echo "$MAGIC_CMD" >&6; }
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946 $as_echo "no" >&6; }
7953 if test -z "$lt_cv_path_MAGIC_CMD"; then
7954 if test -n "$ac_tool_prefix"; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7956 $as_echo_n "checking for file... " >&6; }
7957 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7958 $as_echo_n "(cached) " >&6
7962 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7965 lt_save_MAGIC_CMD=$MAGIC_CMD
7966 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7967 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7968 for ac_dir in $ac_dummy; do
7970 test -z "$ac_dir" && ac_dir=.
7971 if test -f "$ac_dir/file"; then
7972 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7973 if test -n "$file_magic_test_file"; then
7974 case $deplibs_check_method in
7976 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7977 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7978 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7979 $EGREP "$file_magic_regex" > /dev/null; then
7984 *** Warning: the command libtool uses to detect shared libraries,
7985 *** $file_magic_cmd, produces output that libtool cannot recognize.
7986 *** The result is that libtool may fail to recognize shared libraries
7987 *** as such. This will affect the creation of libtool libraries that
7988 *** depend on shared libraries, but programs linked with such libtool
7989 *** libraries will work regardless of this problem. Nevertheless, you
7990 *** may want to report the problem to your system manager and/or to
7991 *** bug-libtool@gnu.org
8001 MAGIC_CMD=$lt_save_MAGIC_CMD
8006 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8007 if test -n "$MAGIC_CMD"; then
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8009 $as_echo "$MAGIC_CMD" >&6; }
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012 $as_echo "no" >&6; }
8025 # Use C for the default configuration in the libtool script
8029 ac_cpp='$CPP $CPPFLAGS'
8030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8035 # Source file extension for C test sources.
8038 # Object file extension for compiled C test sources.
8042 # Code to be used in simple compile tests
8043 lt_simple_compile_test_code="int some_variable = 0;"
8045 # Code to be used in simple link tests
8046 lt_simple_link_test_code='int main(){return(0);}'
8054 # If no C compiler was specified, use CC.
8057 # If no C compiler flags were specified, use CFLAGS.
8058 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8060 # Allow CC to be a program name with arguments.
8063 # Save the default compiler, since it gets overwritten when the other
8064 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8065 compiler_DEFAULT=$CC
8067 # save warnings/boilerplate of simple test code
8068 ac_outfile=conftest.$ac_objext
8069 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8070 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8071 _lt_compiler_boilerplate=`cat conftest.err`
8074 ac_outfile=conftest.$ac_objext
8075 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8076 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8077 _lt_linker_boilerplate=`cat conftest.err`
8081 if test -n "$compiler"; then
8083 lt_prog_compiler_no_builtin_flag=
8085 if test yes = "$GCC"; then
8086 case $cc_basename in
8088 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8090 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8094 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8095 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8096 $as_echo_n "(cached) " >&6
8098 lt_cv_prog_compiler_rtti_exceptions=no
8099 ac_outfile=conftest.$ac_objext
8100 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8101 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8102 # Insert the option either (1) after the last *FLAGS variable, or
8103 # (2) before a word containing "conftest.", or (3) at the end.
8104 # Note that $ac_compile itself does not contain backslashes and begins
8105 # with a dollar sign (not a hyphen), so the echo should work correctly.
8106 # The option is referenced via a variable to avoid confusing sed.
8107 lt_compile=`echo "$ac_compile" | $SED \
8108 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8109 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8110 -e 's:$: $lt_compiler_flag:'`
8111 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8112 (eval "$lt_compile" 2>conftest.err)
8114 cat conftest.err >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 if (exit $ac_status) && test -s "$ac_outfile"; then
8117 # The compiler can only warn and ignore the option if not recognized
8118 # So say no if there are warnings other than the usual output.
8119 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8120 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8121 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8122 lt_cv_prog_compiler_rtti_exceptions=yes
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8129 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8131 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8132 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8144 lt_prog_compiler_wl=
8145 lt_prog_compiler_pic=
8146 lt_prog_compiler_static=
8149 if test yes = "$GCC"; then
8150 lt_prog_compiler_wl='-Wl,'
8151 lt_prog_compiler_static='-static'
8155 # All AIX code is PIC.
8156 if test ia64 = "$host_cpu"; then
8157 # AIX 5 now supports IA64 processor
8158 lt_prog_compiler_static='-Bstatic'
8160 lt_prog_compiler_pic='-fPIC'
8166 # see comment about AmigaOS4 .so support
8167 lt_prog_compiler_pic='-fPIC'
8170 # FIXME: we need at least 68020 code to build shared libraries, but
8171 # adding the '-m68020' flag to GCC prevents building anything better,
8173 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8178 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8179 # PIC is the default for these OSes.
8182 mingw* | cygwin* | pw32* | os2* | cegcc*)
8183 # This hack is so that the source file can tell whether it is being
8184 # built for inclusion in a dll (and should export symbols for example).
8185 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8186 # (--disable-auto-import) libraries
8187 lt_prog_compiler_pic='-DDLL_EXPORT'
8190 lt_prog_compiler_static='$wl-static'
8195 darwin* | rhapsody*)
8196 # PIC is the default on this platform
8197 # Common symbols not allowed in MH_DYLIB files
8198 lt_prog_compiler_pic='-fno-common'
8202 # PIC is the default for Haiku.
8203 # The "-static" flag exists, but is broken.
8204 lt_prog_compiler_static=
8208 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8209 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8210 # sets the default TLS model and affects inlining.
8216 lt_prog_compiler_pic='-fPIC'
8222 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8223 # Instead, we relocate shared libraries at runtime.
8227 # Just because we use GCC doesn't mean we suddenly get shared libraries
8228 # on systems that don't support them.
8229 lt_prog_compiler_can_build_shared=no
8234 # QNX uses GNU C++, but need to define -shared option too, otherwise
8236 lt_prog_compiler_pic='-fPIC -shared'
8240 if test -d /usr/nec; then
8241 lt_prog_compiler_pic=-Kconform_pic
8246 lt_prog_compiler_pic='-fPIC'
8250 case $cc_basename in
8251 nvcc*) # Cuda Compiler Driver 2.2
8252 lt_prog_compiler_wl='-Xlinker '
8253 if test -n "$lt_prog_compiler_pic"; then
8254 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8259 # PORTME Check for flag to pass linker flags through the system compiler.
8262 lt_prog_compiler_wl='-Wl,'
8263 if test ia64 = "$host_cpu"; then
8264 # AIX 5 now supports IA64 processor
8265 lt_prog_compiler_static='-Bstatic'
8267 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8271 darwin* | rhapsody*)
8272 # PIC is the default on this platform
8273 # Common symbols not allowed in MH_DYLIB files
8274 lt_prog_compiler_pic='-fno-common'
8275 case $cc_basename in
8277 # NAG Fortran compiler
8278 lt_prog_compiler_wl='-Wl,-Wl,,'
8279 lt_prog_compiler_pic='-PIC'
8280 lt_prog_compiler_static='-Bstatic'
8285 mingw* | cygwin* | pw32* | os2* | cegcc*)
8286 # This hack is so that the source file can tell whether it is being
8287 # built for inclusion in a dll (and should export symbols for example).
8288 lt_prog_compiler_pic='-DDLL_EXPORT'
8291 lt_prog_compiler_static='$wl-static'
8296 hpux9* | hpux10* | hpux11*)
8297 lt_prog_compiler_wl='-Wl,'
8298 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8305 lt_prog_compiler_pic='+Z'
8308 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8309 lt_prog_compiler_static='$wl-a ${wl}archive'
8312 irix5* | irix6* | nonstopux*)
8313 lt_prog_compiler_wl='-Wl,'
8314 # PIC (with -KPIC) is the default.
8315 lt_prog_compiler_static='-non_shared'
8318 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8319 case $cc_basename in
8320 # old Intel for x86_64, which still supported -KPIC.
8322 lt_prog_compiler_wl='-Wl,'
8323 lt_prog_compiler_pic='-KPIC'
8324 lt_prog_compiler_static='-static'
8326 # icc used to be incompatible with GCC.
8327 # ICC 10 doesn't accept -KPIC any more.
8329 lt_prog_compiler_wl='-Wl,'
8330 lt_prog_compiler_pic='-fPIC'
8331 lt_prog_compiler_static='-static'
8333 # Lahey Fortran 8.1.
8335 lt_prog_compiler_wl='-Wl,'
8336 lt_prog_compiler_pic='--shared'
8337 lt_prog_compiler_static='--static'
8340 # NAG Fortran compiler
8341 lt_prog_compiler_wl='-Wl,-Wl,,'
8342 lt_prog_compiler_pic='-PIC'
8343 lt_prog_compiler_static='-Bstatic'
8346 # Fabrice Bellard et al's Tiny C Compiler
8347 lt_prog_compiler_wl='-Wl,'
8348 lt_prog_compiler_pic='-fPIC'
8349 lt_prog_compiler_static='-static'
8351 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8352 # Portland Group compilers (*not* the Pentium gcc compiler,
8353 # which looks to be a dead project)
8354 lt_prog_compiler_wl='-Wl,'
8355 lt_prog_compiler_pic='-fpic'
8356 lt_prog_compiler_static='-Bstatic'
8359 lt_prog_compiler_wl='-Wl,'
8360 # All Alpha code is PIC.
8361 lt_prog_compiler_static='-non_shared'
8363 xl* | bgxl* | bgf* | mpixl*)
8364 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8365 lt_prog_compiler_wl='-Wl,'
8366 lt_prog_compiler_pic='-qpic'
8367 lt_prog_compiler_static='-qstaticlink'
8370 case `$CC -V 2>&1 | sed 5q` in
8371 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8372 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8373 lt_prog_compiler_pic='-KPIC'
8374 lt_prog_compiler_static='-Bstatic'
8375 lt_prog_compiler_wl=''
8377 *Sun\ F* | *Sun*Fortran*)
8378 lt_prog_compiler_pic='-KPIC'
8379 lt_prog_compiler_static='-Bstatic'
8380 lt_prog_compiler_wl='-Qoption ld '
8384 lt_prog_compiler_pic='-KPIC'
8385 lt_prog_compiler_static='-Bstatic'
8386 lt_prog_compiler_wl='-Wl,'
8388 *Intel*\ [CF]*Compiler*)
8389 lt_prog_compiler_wl='-Wl,'
8390 lt_prog_compiler_pic='-fPIC'
8391 lt_prog_compiler_static='-static'
8394 lt_prog_compiler_wl='-Wl,'
8395 lt_prog_compiler_pic='-fpic'
8396 lt_prog_compiler_static='-Bstatic'
8404 lt_prog_compiler_pic='-KPIC'
8405 lt_prog_compiler_static='-Bstatic'
8409 # QNX uses GNU C++, but need to define -shared option too, otherwise
8411 lt_prog_compiler_pic='-fPIC -shared'
8414 osf3* | osf4* | osf5*)
8415 lt_prog_compiler_wl='-Wl,'
8416 # All OSF/1 code is PIC.
8417 lt_prog_compiler_static='-non_shared'
8421 lt_prog_compiler_static='-non_shared'
8425 lt_prog_compiler_pic='-KPIC'
8426 lt_prog_compiler_static='-Bstatic'
8427 case $cc_basename in
8428 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8429 lt_prog_compiler_wl='-Qoption ld ';;
8431 lt_prog_compiler_wl='-Wl,';;
8436 lt_prog_compiler_wl='-Qoption ld '
8437 lt_prog_compiler_pic='-PIC'
8438 lt_prog_compiler_static='-Bstatic'
8441 sysv4 | sysv4.2uw2* | sysv4.3*)
8442 lt_prog_compiler_wl='-Wl,'
8443 lt_prog_compiler_pic='-KPIC'
8444 lt_prog_compiler_static='-Bstatic'
8448 if test -d /usr/nec; then
8449 lt_prog_compiler_pic='-Kconform_pic'
8450 lt_prog_compiler_static='-Bstatic'
8454 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8455 lt_prog_compiler_wl='-Wl,'
8456 lt_prog_compiler_pic='-KPIC'
8457 lt_prog_compiler_static='-Bstatic'
8461 lt_prog_compiler_wl='-Wl,'
8462 lt_prog_compiler_can_build_shared=no
8466 lt_prog_compiler_pic='-pic'
8467 lt_prog_compiler_static='-Bstatic'
8471 lt_prog_compiler_can_build_shared=no
8477 # For platforms that do not support PIC, -DPIC is meaningless:
8479 lt_prog_compiler_pic=
8482 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8487 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8488 if ${lt_cv_prog_compiler_pic+:} false; then :
8489 $as_echo_n "(cached) " >&6
8491 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8494 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8495 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8498 # Check to make sure the PIC flag actually works.
8500 if test -n "$lt_prog_compiler_pic"; then
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8502 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8503 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8504 $as_echo_n "(cached) " >&6
8506 lt_cv_prog_compiler_pic_works=no
8507 ac_outfile=conftest.$ac_objext
8508 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8509 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8510 # Insert the option either (1) after the last *FLAGS variable, or
8511 # (2) before a word containing "conftest.", or (3) at the end.
8512 # Note that $ac_compile itself does not contain backslashes and begins
8513 # with a dollar sign (not a hyphen), so the echo should work correctly.
8514 # The option is referenced via a variable to avoid confusing sed.
8515 lt_compile=`echo "$ac_compile" | $SED \
8516 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8517 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8518 -e 's:$: $lt_compiler_flag:'`
8519 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8520 (eval "$lt_compile" 2>conftest.err)
8522 cat conftest.err >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 if (exit $ac_status) && test -s "$ac_outfile"; then
8525 # The compiler can only warn and ignore the option if not recognized
8526 # So say no if there are warnings other than the usual output.
8527 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8528 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8529 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8530 lt_cv_prog_compiler_pic_works=yes
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8537 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8539 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8540 case $lt_prog_compiler_pic in
8542 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8545 lt_prog_compiler_pic=
8546 lt_prog_compiler_can_build_shared=no
8562 # Check to make sure the static flag actually works.
8564 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8566 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8567 if ${lt_cv_prog_compiler_static_works+:} false; then :
8568 $as_echo_n "(cached) " >&6
8570 lt_cv_prog_compiler_static_works=no
8571 save_LDFLAGS=$LDFLAGS
8572 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8573 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8574 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8575 # The linker can only warn and ignore the option if not recognized
8576 # So say no if there are warnings
8577 if test -s conftest.err; then
8578 # Append any errors to the config.log.
8579 cat conftest.err 1>&5
8580 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8581 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8582 if diff conftest.exp conftest.er2 >/dev/null; then
8583 lt_cv_prog_compiler_static_works=yes
8586 lt_cv_prog_compiler_static_works=yes
8590 LDFLAGS=$save_LDFLAGS
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8594 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8596 if test yes = "$lt_cv_prog_compiler_static_works"; then
8599 lt_prog_compiler_static=
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8609 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8610 if ${lt_cv_prog_compiler_c_o+:} false; then :
8611 $as_echo_n "(cached) " >&6
8613 lt_cv_prog_compiler_c_o=no
8614 $RM -r conftest 2>/dev/null
8618 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8620 lt_compiler_flag="-o out/conftest2.$ac_objext"
8621 # Insert the option either (1) after the last *FLAGS variable, or
8622 # (2) before a word containing "conftest.", or (3) at the end.
8623 # Note that $ac_compile itself does not contain backslashes and begins
8624 # with a dollar sign (not a hyphen), so the echo should work correctly.
8625 lt_compile=`echo "$ac_compile" | $SED \
8626 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8627 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8628 -e 's:$: $lt_compiler_flag:'`
8629 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8630 (eval "$lt_compile" 2>out/conftest.err)
8632 cat out/conftest.err >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8636 # The compiler can only warn and ignore the option if not recognized
8637 # So say no if there are warnings
8638 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8639 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8640 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8641 lt_cv_prog_compiler_c_o=yes
8646 # SGI C++ compiler will create directory out/ii_files/ for
8647 # template instantiation
8648 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8649 $RM out/* && rmdir out
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8656 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8664 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8665 if ${lt_cv_prog_compiler_c_o+:} false; then :
8666 $as_echo_n "(cached) " >&6
8668 lt_cv_prog_compiler_c_o=no
8669 $RM -r conftest 2>/dev/null
8673 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8675 lt_compiler_flag="-o out/conftest2.$ac_objext"
8676 # Insert the option either (1) after the last *FLAGS variable, or
8677 # (2) before a word containing "conftest.", or (3) at the end.
8678 # Note that $ac_compile itself does not contain backslashes and begins
8679 # with a dollar sign (not a hyphen), so the echo should work correctly.
8680 lt_compile=`echo "$ac_compile" | $SED \
8681 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8682 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8683 -e 's:$: $lt_compiler_flag:'`
8684 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8685 (eval "$lt_compile" 2>out/conftest.err)
8687 cat out/conftest.err >&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8691 # The compiler can only warn and ignore the option if not recognized
8692 # So say no if there are warnings
8693 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8694 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8695 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8696 lt_cv_prog_compiler_c_o=yes
8701 # SGI C++ compiler will create directory out/ii_files/ for
8702 # template instantiation
8703 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8704 $RM out/* && rmdir out
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8711 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8716 hard_links=nottested
8717 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8718 # do not overwrite the value of need_locks provided by the user
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8720 $as_echo_n "checking if we can lock with hard links... " >&6; }
8723 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8725 ln conftest.a conftest.b 2>&5 || hard_links=no
8726 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8728 $as_echo "$hard_links" >&6; }
8729 if test no = "$hard_links"; then
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8731 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8744 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8747 allow_undefined_flag=
8748 always_export_symbols=no
8750 archive_expsym_cmds=
8751 compiler_needs_object=no
8752 enable_shared_with_static_runtimes=no
8753 export_dynamic_flag_spec=
8754 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8755 hardcode_automatic=no
8757 hardcode_direct_absolute=no
8758 hardcode_libdir_flag_spec=
8759 hardcode_libdir_separator=
8761 hardcode_shlibpath_var=unsupported
8763 link_all_deplibs=unknown
8766 old_archive_from_new_cmds=
8767 old_archive_from_expsyms_cmds=
8768 thread_safe_flag_spec=
8769 whole_archive_flag_spec=
8770 # include_expsyms should be a list of space-separated symbols to be *always*
8771 # included in the symbol list
8773 # exclude_expsyms can be an extended regexp of symbols to exclude
8774 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8775 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8776 # as well as any symbol that contains 'd'.
8777 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8778 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8779 # platforms (ab)use it in PIC code, but their linkers get confused if
8780 # the symbol is explicitly referenced. Since portable code cannot
8781 # rely on this symbol name, it's probably fine to never include it in
8782 # preloaded symbol tables.
8783 # Exclude shared library initialization/finalization symbols.
8784 extract_expsyms_cmds=
8787 cygwin* | mingw* | pw32* | cegcc*)
8788 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8789 # When not using gcc, we currently assume that we are using
8790 # Microsoft Visual C++.
8791 if test yes != "$GCC"; then
8796 # we just hope/assume this is gcc and not c89 (= MSVC++)
8806 # On some targets, GNU ld is compatible enough with the native linker
8807 # that we're better off using the native interface for both.
8808 lt_use_gnu_ld_interface=no
8809 if test yes = "$with_gnu_ld"; then
8812 # The AIX port of GNU ld has always aspired to compatibility
8813 # with the native linker. However, as the warning in the GNU ld
8814 # block says, versions before 2.19.5* couldn't really create working
8815 # shared libraries, regardless of the interface used.
8816 case `$LD -v 2>&1` in
8817 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8818 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8819 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8821 lt_use_gnu_ld_interface=yes
8826 lt_use_gnu_ld_interface=yes
8831 if test yes = "$lt_use_gnu_ld_interface"; then
8832 # If archive_cmds runs LD, not CC, wlarc should be empty
8835 # Set some defaults for GNU ld with shared library support. These
8836 # are reset later if shared libraries are not supported. Putting them
8837 # here allows them to be overridden if necessary.
8838 runpath_var=LD_RUN_PATH
8839 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8840 export_dynamic_flag_spec='$wl--export-dynamic'
8841 # ancient GNU ld didn't support --whole-archive et. al.
8842 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8843 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8845 whole_archive_flag_spec=
8847 supports_anon_versioning=no
8848 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8849 *GNU\ gold*) supports_anon_versioning=yes ;;
8850 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8851 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8852 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8853 *\ 2.11.*) ;; # other 2.11 versions
8854 *) supports_anon_versioning=yes ;;
8857 # See if GNU ld supports shared libraries.
8860 # On AIX/PPC, the GNU linker is very broken
8861 if test ia64 != "$host_cpu"; then
8865 *** Warning: the GNU linker, at least up to release 2.19, is reported
8866 *** to be unable to reliably create shared libraries on AIX.
8867 *** Therefore, libtool is disabling shared libraries support. If you
8868 *** really care for shared libraries, you may want to install binutils
8869 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8870 *** You will then need to restart the configuration process.
8879 # see comment about AmigaOS4 .so support
8880 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8881 archive_expsym_cmds=''
8884 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)'
8885 hardcode_libdir_flag_spec='-L$libdir'
8886 hardcode_minus_L=yes
8892 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8893 allow_undefined_flag=unsupported
8894 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8895 # support --undefined. This deserves some investigation. FIXME
8896 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8902 cygwin* | mingw* | pw32* | cegcc*)
8903 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8904 # as there is no search path for DLLs.
8905 hardcode_libdir_flag_spec='-L$libdir'
8906 export_dynamic_flag_spec='$wl--export-all-symbols'
8907 allow_undefined_flag=unsupported
8908 always_export_symbols=no
8909 enable_shared_with_static_runtimes=yes
8910 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8911 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8913 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8915 # If the export-symbols file already is a .def file, use it as
8916 # is; otherwise, prepend EXPORTS...
8917 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8918 cp $export_symbols $output_objdir/$soname.def;
8920 echo EXPORTS > $output_objdir/$soname.def;
8921 cat $export_symbols >> $output_objdir/$soname.def;
8923 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8930 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8931 link_all_deplibs=yes
8935 hardcode_libdir_flag_spec='-L$libdir'
8936 hardcode_minus_L=yes
8937 allow_undefined_flag=unsupported
8939 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8940 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8941 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8942 $ECHO EXPORTS >> $output_objdir/$libname.def~
8943 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8944 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8945 emximp -o $lib $output_objdir/$libname.def'
8946 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8947 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8948 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8949 $ECHO EXPORTS >> $output_objdir/$libname.def~
8951 if test EXPORTS = "`$SED 1q $export_symbols`"; then
8952 prefix_cmds="$prefix_cmds -e 1d";
8954 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8955 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8956 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8957 emximp -o $lib $output_objdir/$libname.def'
8958 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8959 enable_shared_with_static_runtimes=yes
8964 hardcode_shlibpath_var=no
8965 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8966 export_dynamic_flag_spec='$wl-E'
8967 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8968 # Instead, shared libraries are loaded at an image base (0x10000000 by
8969 # default) and relocated if they conflict, which is a slow very memory
8970 # consuming and fragmenting process. To avoid this, we pick a random,
8971 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8972 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8973 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8974 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'
8977 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8979 if test linux-dietlibc = "$host_os"; then
8980 case $cc_basename in
8981 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8984 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8985 && test no = "$tmp_diet"
8987 tmp_addflag=' $pic_flag'
8988 tmp_sharedflag='-shared'
8989 case $cc_basename,$host_cpu in
8990 pgcc*) # Portland Group C compiler
8991 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'
8992 tmp_addflag=' $pic_flag'
8994 pgf77* | pgf90* | pgf95* | pgfortran*)
8995 # Portland Group f77 and f90 compilers
8996 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'
8997 tmp_addflag=' $pic_flag -Mnomain' ;;
8998 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8999 tmp_addflag=' -i_dynamic' ;;
9000 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9001 tmp_addflag=' -i_dynamic -nofor_main' ;;
9002 ifc* | ifort*) # Intel Fortran compiler
9003 tmp_addflag=' -nofor_main' ;;
9004 lf95*) # Lahey Fortran 8.1
9005 whole_archive_flag_spec=
9006 tmp_sharedflag='--shared' ;;
9007 nagfor*) # NAGFOR 5.3
9008 tmp_sharedflag='-Wl,-shared' ;;
9009 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9010 tmp_sharedflag='-qmkshrobj'
9012 nvcc*) # Cuda Compiler Driver 2.2
9013 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'
9014 compiler_needs_object=yes
9017 case `$CC -V 2>&1 | sed 5q` in
9018 *Sun\ C*) # Sun C 5.9
9019 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'
9020 compiler_needs_object=yes
9021 tmp_sharedflag='-G' ;;
9022 *Sun\ F*) # Sun Fortran 8.3
9023 tmp_sharedflag='-G' ;;
9025 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9027 if test yes = "$supports_anon_versioning"; then
9028 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9029 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9030 echo "local: *; };" >> $output_objdir/$libname.ver~
9031 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9034 case $cc_basename in
9036 export_dynamic_flag_spec='-rdynamic'
9038 xlf* | bgf* | bgxlf* | mpixlf*)
9039 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9040 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9041 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9042 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9043 if test yes = "$supports_anon_versioning"; then
9044 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9045 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9046 echo "local: *; };" >> $output_objdir/$libname.ver~
9047 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9057 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9058 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9061 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9062 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9067 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9071 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9072 *** create shared libraries on Solaris systems. Therefore, libtool
9073 *** is disabling shared libraries support. We urge you to upgrade GNU
9074 *** binutils to release 2.9.1 or newer. Another option is to modify
9075 *** your PATH or compiler configuration so that the native linker is
9076 *** used, and then restart.
9079 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9080 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9081 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9087 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9088 case `$LD -v 2>&1` in
9089 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9093 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9094 *** reliably create shared libraries on SCO systems. Therefore, libtool
9095 *** is disabling shared libraries support. We urge you to upgrade GNU
9096 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9097 *** your PATH or compiler configuration so that the native linker is
9098 *** used, and then restart.
9103 # For security reasons, it is highly recommended that you always
9104 # use absolute paths for naming shared libraries, and exclude the
9105 # DT_RUNPATH tag from executables and libraries. But doing so
9106 # requires that you compile everything twice, which is a pain.
9107 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9108 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9110 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9119 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9122 hardcode_shlibpath_var=no
9126 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9127 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9128 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9135 if test no = "$ld_shlibs"; then
9137 hardcode_libdir_flag_spec=
9138 export_dynamic_flag_spec=
9139 whole_archive_flag_spec=
9142 # PORTME fill in a description of your system's linker (not GNU ld)
9145 allow_undefined_flag=unsupported
9146 always_export_symbols=yes
9147 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'
9148 # Note: this linker hardcodes the directories in LIBPATH if there
9149 # are no directories specified by -L.
9150 hardcode_minus_L=yes
9151 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9152 # Neither direct hardcoding nor static linking is supported with a
9154 hardcode_direct=unsupported
9159 if test ia64 = "$host_cpu"; then
9160 # On IA64, the linker does run time linking by default, so we don't
9161 # have to do anything special.
9162 aix_use_runtimelinking=no
9163 exp_sym_flag='-Bexport'
9166 # If we're using GNU nm, then we don't want the "-C" option.
9167 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9168 # Without the "-l" option, or with the "-B" option, AIX nm treats
9169 # weak defined symbols like other global defined symbols, whereas
9170 # GNU nm marks them as "W".
9171 # While the 'weak' keyword is ignored in the Export File, we need
9172 # it in the Import File for the 'aix-soname' feature, so we have
9173 # to replace the "-B" option with "-P" for AIX nm.
9174 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9175 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9177 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9179 aix_use_runtimelinking=no
9181 # Test if we are trying to use run time linking or normal
9182 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9183 # have runtime linking enabled, and use it for executables.
9184 # For shared libraries, we enable/disable runtime linking
9185 # depending on the kind of the shared library created -
9186 # when "with_aix_soname,aix_use_runtimelinking" is:
9187 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9188 # "aix,yes" lib.so shared, rtl:yes, for executables
9189 # lib.a static archive
9190 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9191 # lib.a(lib.so.V) shared, rtl:no, for executables
9192 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9193 # lib.a(lib.so.V) shared, rtl:no
9194 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9195 # lib.a static archive
9196 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9197 for ld_flag in $LDFLAGS; do
9198 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9199 aix_use_runtimelinking=yes
9203 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9204 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9205 # so we don't have lib.a shared libs to link our executables.
9206 # We have to force runtime linking in this case.
9207 aix_use_runtimelinking=yes
9208 LDFLAGS="$LDFLAGS -Wl,-brtl"
9213 exp_sym_flag='-bexport'
9214 no_entry_flag='-bnoentry'
9217 # When large executables or shared objects are built, AIX ld can
9218 # have problems creating the table of contents. If linking a library
9219 # or program results in "error TOC overflow" add -mminimal-toc to
9220 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9221 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9225 hardcode_direct_absolute=yes
9226 hardcode_libdir_separator=':'
9227 link_all_deplibs=yes
9228 file_list_spec='$wl-f,'
9229 case $with_aix_soname,$aix_use_runtimelinking in
9230 aix,*) ;; # traditional, no import file
9231 svr4,* | *,yes) # use import file
9232 # The Import File defines what to hardcode.
9234 hardcode_direct_absolute=no
9238 if test yes = "$GCC"; then
9239 case $host_os in aix4.[012]|aix4.[012].*)
9240 # We only want to do this on AIX 4.2 and lower, the check
9241 # below for broken collect2 doesn't work under 4.3+
9242 collect2name=`$CC -print-prog-name=collect2`
9243 if test -f "$collect2name" &&
9244 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9246 # We have reworked collect2
9249 # We have old collect2
9250 hardcode_direct=unsupported
9251 # It fails to find uninstalled libraries when the uninstalled
9252 # path is not listed in the libpath. Setting hardcode_minus_L
9253 # to unsupported forces relinking
9254 hardcode_minus_L=yes
9255 hardcode_libdir_flag_spec='-L$libdir'
9256 hardcode_libdir_separator=
9260 shared_flag='-shared'
9261 if test yes = "$aix_use_runtimelinking"; then
9262 shared_flag="$shared_flag "'$wl-G'
9264 # Need to ensure runtime linking is disabled for the traditional
9265 # shared library, or the linker may eventually find shared libraries
9266 # /with/ Import File - we do not want to mix them.
9267 shared_flag_aix='-shared'
9268 shared_flag_svr4='-shared $wl-G'
9271 if test ia64 = "$host_cpu"; then
9272 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9273 # chokes on -Wl,-G. The following line is correct:
9276 if test yes = "$aix_use_runtimelinking"; then
9279 shared_flag='$wl-bM:SRE'
9281 shared_flag_aix='$wl-bM:SRE'
9282 shared_flag_svr4='$wl-G'
9286 export_dynamic_flag_spec='$wl-bexpall'
9287 # It seems that -bexpall does not export symbols beginning with
9288 # underscore (_), so it is better to generate a list of symbols to export.
9289 always_export_symbols=yes
9290 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9291 # Warning - without using the other runtime loading flags (-brtl),
9292 # -berok will link without error, but may produce a broken library.
9293 allow_undefined_flag='-berok'
9294 # Determine the default libpath from the value encoded in an
9296 if test set = "${lt_cv_aix_libpath+set}"; then
9297 aix_libpath=$lt_cv_aix_libpath
9299 if ${lt_cv_aix_libpath_+:} false; then :
9300 $as_echo_n "(cached) " >&6
9302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303 /* end confdefs.h. */
9313 if ac_fn_c_try_link "$LINENO"; then :
9315 lt_aix_libpath_sed='
9316 /Import File Strings/,/^$/ {
9318 s/^0 *\([^ ]*\) *$/\1/
9322 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9323 # Check for a 64-bit object if we didn't find anything.
9324 if test -z "$lt_cv_aix_libpath_"; then
9325 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9328 rm -f core conftest.err conftest.$ac_objext \
9329 conftest$ac_exeext conftest.$ac_ext
9330 if test -z "$lt_cv_aix_libpath_"; then
9331 lt_cv_aix_libpath_=/usr/lib:/lib
9336 aix_libpath=$lt_cv_aix_libpath_
9339 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9340 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9342 if test ia64 = "$host_cpu"; then
9343 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9344 allow_undefined_flag="-z nodefs"
9345 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"
9347 # Determine the default libpath from the value encoded in an
9349 if test set = "${lt_cv_aix_libpath+set}"; then
9350 aix_libpath=$lt_cv_aix_libpath
9352 if ${lt_cv_aix_libpath_+:} false; then :
9353 $as_echo_n "(cached) " >&6
9355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9356 /* end confdefs.h. */
9366 if ac_fn_c_try_link "$LINENO"; then :
9368 lt_aix_libpath_sed='
9369 /Import File Strings/,/^$/ {
9371 s/^0 *\([^ ]*\) *$/\1/
9375 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9376 # Check for a 64-bit object if we didn't find anything.
9377 if test -z "$lt_cv_aix_libpath_"; then
9378 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9381 rm -f core conftest.err conftest.$ac_objext \
9382 conftest$ac_exeext conftest.$ac_ext
9383 if test -z "$lt_cv_aix_libpath_"; then
9384 lt_cv_aix_libpath_=/usr/lib:/lib
9389 aix_libpath=$lt_cv_aix_libpath_
9392 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9393 # Warning - without using the other run time loading flags,
9394 # -berok will link without error, but may produce a broken library.
9395 no_undefined_flag=' $wl-bernotok'
9396 allow_undefined_flag=' $wl-berok'
9397 if test yes = "$with_gnu_ld"; then
9398 # We only use this code for GNU lds that support --whole-archive.
9399 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9401 # Exported symbols can be pulled into shared objects from archives
9402 whole_archive_flag_spec='$convenience'
9404 archive_cmds_need_lc=yes
9405 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9406 # -brtl affects multiple linker settings, -berok does not and is overridden later
9407 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9408 if test svr4 != "$with_aix_soname"; then
9409 # This is similar to how AIX traditionally builds its shared libraries.
9410 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9412 if test aix != "$with_aix_soname"; then
9413 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9415 # used by -dlpreopen to get the symbols
9416 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9418 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9426 # see comment about AmigaOS4 .so support
9427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9428 archive_expsym_cmds=''
9431 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)'
9432 hardcode_libdir_flag_spec='-L$libdir'
9433 hardcode_minus_L=yes
9439 export_dynamic_flag_spec=-rdynamic
9442 cygwin* | mingw* | pw32* | cegcc*)
9443 # When not using gcc, we currently assume that we are using
9444 # Microsoft Visual C++.
9445 # hardcode_libdir_flag_spec is actually meaningless, as there is
9446 # no search path for DLLs.
9447 case $cc_basename in
9450 hardcode_libdir_flag_spec=' '
9451 allow_undefined_flag=unsupported
9452 always_export_symbols=yes
9454 # Tell ltmain to make .lib files, not .a files.
9456 # Tell ltmain to make .dll files, not .so files.
9458 # FIXME: Setting linknames here is a bad hack.
9459 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9460 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9461 cp "$export_symbols" "$output_objdir/$soname.def";
9462 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9464 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9466 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9468 # The linker will not automatically build a static lib if we build a DLL.
9469 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9470 enable_shared_with_static_runtimes=yes
9471 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9472 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9474 old_postinstall_cmds='chmod 644 $oldlib'
9475 postlink_cmds='lt_outputfile="@OUTPUT@"~
9476 lt_tool_outputfile="@TOOL_OUTPUT@"~
9477 case $lt_outputfile in
9480 lt_outputfile=$lt_outputfile.exe
9481 lt_tool_outputfile=$lt_tool_outputfile.exe
9484 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9485 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9486 $RM "$lt_outputfile.manifest";
9490 # Assume MSVC wrapper
9491 hardcode_libdir_flag_spec=' '
9492 allow_undefined_flag=unsupported
9493 # Tell ltmain to make .lib files, not .a files.
9495 # Tell ltmain to make .dll files, not .so files.
9497 # FIXME: Setting linknames here is a bad hack.
9498 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9499 # The linker will automatically build a .lib file if we build a DLL.
9500 old_archive_from_new_cmds='true'
9501 # FIXME: Should let the user specify the lib program.
9502 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9503 enable_shared_with_static_runtimes=yes
9508 darwin* | rhapsody*)
9511 archive_cmds_need_lc=no
9513 hardcode_automatic=yes
9514 hardcode_shlibpath_var=unsupported
9515 if test yes = "$lt_cv_ld_force_load"; then
9516 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\"`'
9519 whole_archive_flag_spec=''
9521 link_all_deplibs=yes
9522 allow_undefined_flag=$_lt_dar_allow_undefined
9523 case $cc_basename in
9524 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9525 *) _lt_dar_can_shared=$GCC ;;
9527 if test yes = "$_lt_dar_can_shared"; then
9528 output_verbose_link_cmd=func_echo_all
9529 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9530 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9531 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"
9532 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"
9541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9542 hardcode_libdir_flag_spec='-L$libdir'
9543 hardcode_shlibpath_var=no
9546 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9547 # support. Future versions do this automatically, but an explicit c++rt0.o
9548 # does not break anything, and helps significantly (at the cost of a little
9551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9552 hardcode_libdir_flag_spec='-R$libdir'
9554 hardcode_shlibpath_var=no
9557 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9559 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9561 hardcode_minus_L=yes
9562 hardcode_shlibpath_var=no
9565 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9566 freebsd* | dragonfly*)
9567 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9568 hardcode_libdir_flag_spec='-R$libdir'
9570 hardcode_shlibpath_var=no
9574 if test yes = "$GCC"; then
9575 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9577 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9579 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9580 hardcode_libdir_separator=:
9583 # hardcode_minus_L: Not really in the search PATH,
9584 # but as the default location of the library.
9585 hardcode_minus_L=yes
9586 export_dynamic_flag_spec='$wl-E'
9590 if test yes,no = "$GCC,$with_gnu_ld"; then
9591 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9593 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9595 if test no = "$with_gnu_ld"; then
9596 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9597 hardcode_libdir_separator=:
9599 hardcode_direct_absolute=yes
9600 export_dynamic_flag_spec='$wl-E'
9601 # hardcode_minus_L: Not really in the search PATH,
9602 # but as the default location of the library.
9603 hardcode_minus_L=yes
9608 if test yes,no = "$GCC,$with_gnu_ld"; then
9611 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9614 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9617 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9623 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9626 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9630 # Older versions of the 11.00 compiler do not understand -b yet
9631 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9633 $as_echo_n "checking if $CC understands -b... " >&6; }
9634 if ${lt_cv_prog_compiler__b+:} false; then :
9635 $as_echo_n "(cached) " >&6
9637 lt_cv_prog_compiler__b=no
9638 save_LDFLAGS=$LDFLAGS
9639 LDFLAGS="$LDFLAGS -b"
9640 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9641 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9642 # The linker can only warn and ignore the option if not recognized
9643 # So say no if there are warnings
9644 if test -s conftest.err; then
9645 # Append any errors to the config.log.
9646 cat conftest.err 1>&5
9647 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9648 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9649 if diff conftest.exp conftest.er2 >/dev/null; then
9650 lt_cv_prog_compiler__b=yes
9653 lt_cv_prog_compiler__b=yes
9657 LDFLAGS=$save_LDFLAGS
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9661 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9663 if test yes = "$lt_cv_prog_compiler__b"; then
9664 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9666 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9672 if test no = "$with_gnu_ld"; then
9673 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9674 hardcode_libdir_separator=:
9679 hardcode_shlibpath_var=no
9683 hardcode_direct_absolute=yes
9684 export_dynamic_flag_spec='$wl-E'
9686 # hardcode_minus_L: Not really in the search PATH,
9687 # but as the default location of the library.
9688 hardcode_minus_L=yes
9694 irix5* | irix6* | nonstopux*)
9695 if test yes = "$GCC"; then
9696 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9697 # Try to use the -exported_symbol ld option, if it does not
9698 # work, assume that -exports_file does not work either and
9699 # implicitly export all symbols.
9700 # This should be the same for all languages, so no per-tag cache variable.
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9702 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9703 if ${lt_cv_irix_exported_symbol+:} false; then :
9704 $as_echo_n "(cached) " >&6
9706 save_LDFLAGS=$LDFLAGS
9707 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709 /* end confdefs.h. */
9710 int foo (void) { return 0; }
9712 if ac_fn_c_try_link "$LINENO"; then :
9713 lt_cv_irix_exported_symbol=yes
9715 lt_cv_irix_exported_symbol=no
9717 rm -f core conftest.err conftest.$ac_objext \
9718 conftest$ac_exeext conftest.$ac_ext
9719 LDFLAGS=$save_LDFLAGS
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9722 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9723 if test yes = "$lt_cv_irix_exported_symbol"; then
9724 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
9727 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'
9728 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'
9730 archive_cmds_need_lc='no'
9731 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9732 hardcode_libdir_separator=:
9734 link_all_deplibs=yes
9738 case $cc_basename in
9740 # Fabrice Bellard et al's Tiny C Compiler
9742 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9748 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9749 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9751 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9753 hardcode_libdir_flag_spec='-R$libdir'
9755 hardcode_shlibpath_var=no
9759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9761 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9762 hardcode_libdir_separator=:
9763 hardcode_shlibpath_var=no
9770 if test -f /usr/libexec/ld.so; then
9772 hardcode_shlibpath_var=no
9773 hardcode_direct_absolute=yes
9774 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9775 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9776 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9777 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9778 export_dynamic_flag_spec='$wl-E'
9780 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9781 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9789 hardcode_libdir_flag_spec='-L$libdir'
9790 hardcode_minus_L=yes
9791 allow_undefined_flag=unsupported
9793 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9794 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9795 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9796 $ECHO EXPORTS >> $output_objdir/$libname.def~
9797 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9798 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9799 emximp -o $lib $output_objdir/$libname.def'
9800 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9801 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9802 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9803 $ECHO EXPORTS >> $output_objdir/$libname.def~
9805 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9806 prefix_cmds="$prefix_cmds -e 1d";
9808 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9809 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9810 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9811 emximp -o $lib $output_objdir/$libname.def'
9812 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9813 enable_shared_with_static_runtimes=yes
9817 if test yes = "$GCC"; then
9818 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9819 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'
9821 allow_undefined_flag=' -expect_unresolved \*'
9822 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'
9824 archive_cmds_need_lc='no'
9825 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9826 hardcode_libdir_separator=:
9829 osf4* | osf5*) # as osf3* with the addition of -msym flag
9830 if test yes = "$GCC"; then
9831 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9832 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9833 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9835 allow_undefined_flag=' -expect_unresolved \*'
9836 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'
9837 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~
9838 $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'
9840 # Both c and cxx compiler support -rpath directly
9841 hardcode_libdir_flag_spec='-rpath $libdir'
9843 archive_cmds_need_lc='no'
9844 hardcode_libdir_separator=:
9848 no_undefined_flag=' -z defs'
9849 if test yes = "$GCC"; then
9851 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9852 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9853 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9855 case `$CC -V 2>&1` in
9858 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9859 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9860 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9864 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9865 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9866 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9870 hardcode_libdir_flag_spec='-R$libdir'
9871 hardcode_shlibpath_var=no
9873 solaris2.[0-5] | solaris2.[0-5].*) ;;
9875 # The compiler driver will combine and reorder linker options,
9876 # but understands '-z linker_flag'. GCC discards it without '$wl',
9877 # but is careful enough not to reorder.
9878 # Supported since Solaris 2.6 (maybe 2.5.1?)
9879 if test yes = "$GCC"; then
9880 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9882 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9886 link_all_deplibs=yes
9890 if test sequent = "$host_vendor"; then
9891 # Use $CC to link under sequent, because it throws in some extra .o
9892 # files that make .init and .fini sections work.
9893 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9895 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9897 hardcode_libdir_flag_spec='-L$libdir'
9899 hardcode_minus_L=yes
9900 hardcode_shlibpath_var=no
9904 case $host_vendor in
9906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9907 hardcode_direct=yes # is this really true???
9910 ## LD is ld it makes a PLAMLIB
9911 ## CC just makes a GrossModule.
9912 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9913 reload_cmds='$CC -r -o $output$reload_objs'
9917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9918 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9921 runpath_var='LD_RUN_PATH'
9922 hardcode_shlibpath_var=no
9926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9927 hardcode_shlibpath_var=no
9928 export_dynamic_flag_spec='-Bexport'
9932 if test -d /usr/nec; then
9933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9934 hardcode_shlibpath_var=no
9935 runpath_var=LD_RUN_PATH
9936 hardcode_runpath_var=yes
9941 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9942 no_undefined_flag='$wl-z,text'
9943 archive_cmds_need_lc=no
9944 hardcode_shlibpath_var=no
9945 runpath_var='LD_RUN_PATH'
9947 if test yes = "$GCC"; then
9948 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9949 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9951 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9952 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9956 sysv5* | sco3.2v5* | sco5v6*)
9957 # Note: We CANNOT use -z defs as we might desire, because we do not
9958 # link with -lc, and that would cause any symbols used from libc to
9959 # always be unresolved, which means just about no library would
9960 # ever link correctly. If we're not using GNU ld we use -z text
9961 # though, which does catch some bad symbols but isn't as heavy-handed
9963 no_undefined_flag='$wl-z,text'
9964 allow_undefined_flag='$wl-z,nodefs'
9965 archive_cmds_need_lc=no
9966 hardcode_shlibpath_var=no
9967 hardcode_libdir_flag_spec='$wl-R,$libdir'
9968 hardcode_libdir_separator=':'
9969 link_all_deplibs=yes
9970 export_dynamic_flag_spec='$wl-Bexport'
9971 runpath_var='LD_RUN_PATH'
9973 if test yes = "$GCC"; then
9974 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9975 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9977 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9978 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9983 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9984 hardcode_libdir_flag_spec='-L$libdir'
9985 hardcode_shlibpath_var=no
9993 if test sni = "$host_vendor"; then
9995 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9996 export_dynamic_flag_spec='$wl-Blargedynsym'
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10003 $as_echo "$ld_shlibs" >&6; }
10004 test no = "$ld_shlibs" && can_build_shared=no
10006 with_gnu_ld=$with_gnu_ld
10023 # Do we need to explicitly link libc?
10025 case "x$archive_cmds_need_lc" in
10027 # Assume -lc should be added
10028 archive_cmds_need_lc=yes
10030 if test yes,yes = "$GCC,$enable_shared"; then
10031 case $archive_cmds in
10033 # FIXME: we may have to deal with multi-command sequences.
10036 # Test whether the compiler implicitly links with -lc since on some
10037 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10038 # to ld, don't add -lc before -lgcc.
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10040 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10041 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10042 $as_echo_n "(cached) " >&6
10045 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10048 (eval $ac_compile) 2>&5
10050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10051 test $ac_status = 0; } 2>conftest.err; then
10054 libobjs=conftest.$ac_objext
10056 wl=$lt_prog_compiler_wl
10057 pic_flag=$lt_prog_compiler_pic
10063 lt_save_allow_undefined_flag=$allow_undefined_flag
10064 allow_undefined_flag=
10065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10066 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10069 test $ac_status = 0; }
10071 lt_cv_archive_cmds_need_lc=no
10073 lt_cv_archive_cmds_need_lc=yes
10075 allow_undefined_flag=$lt_save_allow_undefined_flag
10077 cat conftest.err 1>&5
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10083 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10084 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10243 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10245 if test yes = "$GCC"; then
10247 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10248 *) lt_awk_arg='/^libraries:/' ;;
10251 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10252 *) lt_sed_strip_eq='s|=/|/|g' ;;
10254 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10255 case $lt_search_path_spec in
10257 # if the path contains ";" then we assume it to be the separator
10258 # otherwise default to the standard path separator (i.e. ":") - it is
10259 # assumed that no part of a normal pathname contains ";" but that should
10260 # okay in the real world where ";" in dirpaths is itself problematic.
10261 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10264 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10267 # Ok, now we have the path, separated by spaces, we can step through it
10268 # and add multilib dir if necessary...
10269 lt_tmp_lt_search_path_spec=
10270 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10271 # ...but if some path component already ends with the multilib dir we assume
10272 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10273 case "$lt_multi_os_dir; $lt_search_path_spec " in
10274 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10278 for lt_sys_path in $lt_search_path_spec; do
10279 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10280 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10281 elif test -n "$lt_multi_os_dir"; then
10282 test -d "$lt_sys_path" && \
10283 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10286 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10287 BEGIN {RS = " "; FS = "/|\n";} {
10290 for (lt_i = NF; lt_i > 0; lt_i--) {
10291 if ($lt_i != "" && $lt_i != ".") {
10292 if ($lt_i == "..") {
10295 if (lt_count == 0) {
10296 lt_foo = "/" $lt_i lt_foo;
10303 if (lt_foo != "") { lt_freq[lt_foo]++; }
10304 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10306 # AWK program above erroneously prepends '/' to C:/dos/paths
10309 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10310 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10312 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10314 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10316 library_names_spec=
10317 libname_spec='lib$name'
10321 postuninstall_cmds=
10325 shlibpath_overrides_runpath=unknown
10327 dynamic_linker="$host_os ld.so"
10328 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10329 need_lib_prefix=unknown
10330 hardcode_into_libs=no
10332 # when you set need_version to no, make sure it does not cause -set_version
10333 # flags to be left without arguments
10334 need_version=unknown
10340 version_type=linux # correct to gnu/linux during the next big refactor
10341 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10342 shlibpath_var=LIBPATH
10344 # AIX 3 has no versioning support, so we append a major version to the name.
10345 soname_spec='$libname$release$shared_ext$major'
10349 version_type=linux # correct to gnu/linux during the next big refactor
10352 hardcode_into_libs=yes
10353 if test ia64 = "$host_cpu"; then
10354 # AIX 5 supports IA64
10355 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10356 shlibpath_var=LD_LIBRARY_PATH
10358 # With GCC up to 2.95.x, collect2 would create an import file
10359 # for dependence libraries. The import file would start with
10360 # the line '#! .'. This would cause the generated library to
10361 # depend on '.', always an invalid library. This was fixed in
10362 # development snapshots of GCC prior to 3.0.
10364 aix4 | aix4.[01] | aix4.[01].*)
10365 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10367 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10370 can_build_shared=no
10374 # Using Import Files as archive members, it is possible to support
10375 # filename-based versioning of shared library archives on AIX. While
10376 # this would work for both with and without runtime linking, it will
10377 # prevent static linking of such archives. So we do filename-based
10378 # shared library versioning with .so extension only, which is used
10379 # when both runtime linking and shared linking is enabled.
10380 # Unfortunately, runtime linking may impact performance, so we do
10381 # not want this to be the default eventually. Also, we use the
10382 # versioned .so libs for executables only if there is the -brtl
10383 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10384 # To allow for filename-based versioning support, we need to create
10385 # libNAME.so.V as an archive file, containing:
10386 # *) an Import File, referring to the versioned filename of the
10387 # archive as well as the shared archive member, telling the
10388 # bitwidth (32 or 64) of that shared object, and providing the
10389 # list of exported symbols of that shared object, eventually
10390 # decorated with the 'weak' keyword
10391 # *) the shared object with the F_LOADONLY flag set, to really avoid
10392 # it being seen by the linker.
10393 # At run time we better use the real file rather than another symlink,
10394 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10396 case $with_aix_soname,$aix_use_runtimelinking in
10397 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10398 # soname into executable. Probably we can add versioning support to
10399 # collect2, so additional links can be useful in future.
10400 aix,yes) # traditional libtool
10401 dynamic_linker='AIX unversionable lib.so'
10402 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10403 # instead of lib<name>.a to let people know that these are not
10404 # typical AIX shared libraries.
10405 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10407 aix,no) # traditional AIX only
10408 dynamic_linker='AIX lib.a(lib.so.V)'
10409 # We preserve .a as extension for shared libraries through AIX4.2
10410 # and later when we are not doing run time linking.
10411 library_names_spec='$libname$release.a $libname.a'
10412 soname_spec='$libname$release$shared_ext$major'
10414 svr4,*) # full svr4 only
10415 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10416 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10417 # We do not specify a path in Import Files, so LIBPATH fires.
10418 shlibpath_overrides_runpath=yes
10420 *,yes) # both, prefer svr4
10421 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10422 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10423 # unpreferred sharedlib libNAME.a needs extra handling
10424 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10425 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10426 # We do not specify a path in Import Files, so LIBPATH fires.
10427 shlibpath_overrides_runpath=yes
10429 *,no) # both, prefer aix
10430 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10431 library_names_spec='$libname$release.a $libname.a'
10432 soname_spec='$libname$release$shared_ext$major'
10433 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10434 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10435 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10438 shlibpath_var=LIBPATH
10445 # Since July 2007 AmigaOS4 officially supports .so libraries.
10446 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10447 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10450 library_names_spec='$libname.ixlibrary $libname.a'
10451 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10452 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10458 library_names_spec='$libname$shared_ext'
10459 dynamic_linker="$host_os ld.so"
10460 shlibpath_var=LIBRARY_PATH
10464 version_type=linux # correct to gnu/linux during the next big refactor
10466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10467 soname_spec='$libname$release$shared_ext$major'
10468 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10469 shlibpath_var=LD_LIBRARY_PATH
10470 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10471 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10472 # the default ld.so.conf also contains /usr/contrib/lib and
10473 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10474 # libtool to hard-code these into programs
10477 cygwin* | mingw* | pw32* | cegcc*)
10478 version_type=windows
10483 case $GCC,$cc_basename in
10486 library_names_spec='$libname.dll.a'
10487 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10488 postinstall_cmds='base_file=`basename \$file`~
10489 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10490 dldir=$destdir/`dirname \$dlpath`~
10491 test -d \$dldir || mkdir -p \$dldir~
10492 $install_prog $dir/$dlname \$dldir/$dlname~
10493 chmod a+x \$dldir/$dlname~
10494 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10495 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10497 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10498 dlpath=$dir/\$dldll~
10500 shlibpath_overrides_runpath=yes
10504 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10505 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10507 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10510 # MinGW DLLs use traditional 'lib' prefix
10511 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10514 # pw32 DLLs use 'pw' prefix rather than 'lib'
10515 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10518 dynamic_linker='Win32 ld.exe'
10523 libname_spec='$name'
10524 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10525 library_names_spec='$libname.dll.lib'
10529 sys_lib_search_path_spec=
10532 for lt_path in $LIB
10535 # Let DOS variable expansion print the short 8.3 style file name.
10536 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10537 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10540 # Convert to MSYS style.
10541 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10544 # Convert to unix form, then to dos form, then back to unix form
10545 # but this time dos style (no spaces!) so that the unix form looks
10546 # like /cygdrive/c/PROGRA~1:/cygdr...
10547 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10548 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10549 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10552 sys_lib_search_path_spec=$LIB
10553 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10554 # It is most probably a Windows format PATH.
10555 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10557 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10559 # FIXME: find the short name or the path components, as spaces are
10560 # common. (e.g. "Program Files" -> "PROGRA~1")
10564 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10565 postinstall_cmds='base_file=`basename \$file`~
10566 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10567 dldir=$destdir/`dirname \$dlpath`~
10568 test -d \$dldir || mkdir -p \$dldir~
10569 $install_prog $dir/$dlname \$dldir/$dlname'
10570 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10571 dlpath=$dir/\$dldll~
10573 shlibpath_overrides_runpath=yes
10574 dynamic_linker='Win32 link.exe'
10578 # Assume MSVC wrapper
10579 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10580 dynamic_linker='Win32 ld.exe'
10583 # FIXME: first we should search . and the directory the executable is in
10587 darwin* | rhapsody*)
10588 dynamic_linker="$host_os dyld"
10589 version_type=darwin
10592 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10593 soname_spec='$libname$release$major$shared_ext'
10594 shlibpath_overrides_runpath=yes
10595 shlibpath_var=DYLD_LIBRARY_PATH
10596 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10598 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10599 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10603 version_type=linux # correct to gnu/linux during the next big refactor
10606 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10607 soname_spec='$libname$release$shared_ext$major'
10608 shlibpath_var=LD_LIBRARY_PATH
10611 freebsd* | dragonfly*)
10612 # DragonFly does not have aout. When/if they implement a new
10613 # versioning mechanism, adjust this.
10614 if test -x /usr/bin/objformat; then
10615 objformat=`/usr/bin/objformat`
10618 freebsd[23].*) objformat=aout ;;
10619 *) objformat=elf ;;
10622 version_type=freebsd-$objformat
10623 case $version_type in
10625 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10626 soname_spec='$libname$release$shared_ext$major'
10631 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10635 shlibpath_var=LD_LIBRARY_PATH
10638 shlibpath_overrides_runpath=yes
10640 freebsd3.[01]* | freebsdelf3.[01]*)
10641 shlibpath_overrides_runpath=yes
10642 hardcode_into_libs=yes
10644 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10645 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10646 shlibpath_overrides_runpath=no
10647 hardcode_into_libs=yes
10649 *) # from 4.6 on, and DragonFly
10650 shlibpath_overrides_runpath=yes
10651 hardcode_into_libs=yes
10657 version_type=linux # correct to gnu/linux during the next big refactor
10660 dynamic_linker="$host_os runtime_loader"
10661 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10662 soname_spec='$libname$release$shared_ext$major'
10663 shlibpath_var=LIBRARY_PATH
10664 shlibpath_overrides_runpath=no
10665 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10666 hardcode_into_libs=yes
10669 hpux9* | hpux10* | hpux11*)
10670 # Give a soname corresponding to the major version so that dld.sl refuses to
10671 # link against other versions.
10678 hardcode_into_libs=yes
10679 dynamic_linker="$host_os dld.so"
10680 shlibpath_var=LD_LIBRARY_PATH
10681 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10682 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10683 soname_spec='$libname$release$shared_ext$major'
10684 if test 32 = "$HPUX_IA64_MODE"; then
10685 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10686 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10688 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10689 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10694 hardcode_into_libs=yes
10695 dynamic_linker="$host_os dld.sl"
10696 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10697 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10698 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10699 soname_spec='$libname$release$shared_ext$major'
10700 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10701 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10705 dynamic_linker="$host_os dld.sl"
10706 shlibpath_var=SHLIB_PATH
10707 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10708 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10709 soname_spec='$libname$release$shared_ext$major'
10712 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10713 postinstall_cmds='chmod 555 $lib'
10714 # or fails outright, so override atomically:
10715 install_override_mode=555
10719 version_type=linux # correct to gnu/linux during the next big refactor
10722 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10723 soname_spec='$libname$release$shared_ext$major'
10724 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10725 shlibpath_var=LD_LIBRARY_PATH
10726 shlibpath_overrides_runpath=no
10727 hardcode_into_libs=yes
10730 irix5* | irix6* | nonstopux*)
10732 nonstopux*) version_type=nonstopux ;;
10734 if test yes = "$lt_cv_prog_gnu_ld"; then
10735 version_type=linux # correct to gnu/linux during the next big refactor
10742 soname_spec='$libname$release$shared_ext$major'
10743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10745 irix5* | nonstopux*)
10746 libsuff= shlibsuff=
10749 case $LD in # libtool.m4 will add one of these switches to LD
10750 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10751 libsuff= shlibsuff= libmagic=32-bit;;
10752 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10753 libsuff=32 shlibsuff=N32 libmagic=N32;;
10754 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10755 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10756 *) libsuff= shlibsuff= libmagic=never-match;;
10760 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10761 shlibpath_overrides_runpath=no
10762 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10763 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10764 hardcode_into_libs=yes
10767 # No shared lib support for Linux oldld, aout, or coff.
10768 linux*oldld* | linux*aout* | linux*coff*)
10773 version_type=none # Android doesn't support versioned libraries.
10776 library_names_spec='$libname$release$shared_ext'
10777 soname_spec='$libname$release$shared_ext'
10779 shlibpath_var=LD_LIBRARY_PATH
10780 shlibpath_overrides_runpath=yes
10782 # This implies no fast_install, which is unacceptable.
10783 # Some rework will be needed to allow for fast_install
10784 # before this can be enabled.
10785 hardcode_into_libs=yes
10787 dynamic_linker='Android linker'
10788 # Don't embed -rpath directories since the linker doesn't support them.
10789 hardcode_libdir_flag_spec='-L$libdir'
10792 # This must be glibc/ELF.
10793 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10794 version_type=linux # correct to gnu/linux during the next big refactor
10797 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10798 soname_spec='$libname$release$shared_ext$major'
10799 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10800 shlibpath_var=LD_LIBRARY_PATH
10801 shlibpath_overrides_runpath=no
10803 # Some binutils ld are patched to set DT_RUNPATH
10804 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10805 $as_echo_n "(cached) " >&6
10807 lt_cv_shlibpath_overrides_runpath=no
10808 save_LDFLAGS=$LDFLAGS
10809 save_libdir=$libdir
10810 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10811 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10813 /* end confdefs.h. */
10823 if ac_fn_c_try_link "$LINENO"; then :
10824 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10825 lt_cv_shlibpath_overrides_runpath=yes
10828 rm -f core conftest.err conftest.$ac_objext \
10829 conftest$ac_exeext conftest.$ac_ext
10830 LDFLAGS=$save_LDFLAGS
10831 libdir=$save_libdir
10835 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10837 # This implies no fast_install, which is unacceptable.
10838 # Some rework will be needed to allow for fast_install
10839 # before this can be enabled.
10840 hardcode_into_libs=yes
10842 # Ideally, we could use ldconfig to report *all* directores which are
10843 # searched for libraries, however this is still not possible. Aside from not
10844 # being certain /sbin/ldconfig is available, command
10845 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10846 # even though it is searched at run-time. Try to do the best guess by
10847 # appending ld.so.conf contents (and includes) to the search path.
10848 if test -f /etc/ld.so.conf; then
10849 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' ' '`
10850 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10853 # We used to test for /lib/ld.so.1 and disable shared libraries on
10854 # powerpc, because MkLinux only supported shared libraries with the
10855 # GNU dynamic linker. Since this was broken with cross compilers,
10856 # most powerpc-linux boxes support dynamic linking these days and
10857 # people can always --disable-shared, the test was removed, and we
10858 # assume the GNU/Linux dynamic linker is in use.
10859 dynamic_linker='GNU/Linux ld.so'
10866 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10867 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10869 dynamic_linker='NetBSD (a.out) ld.so'
10871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10872 soname_spec='$libname$release$shared_ext$major'
10873 dynamic_linker='NetBSD ld.elf_so'
10875 shlibpath_var=LD_LIBRARY_PATH
10876 shlibpath_overrides_runpath=yes
10877 hardcode_into_libs=yes
10881 version_type=linux # correct to gnu/linux during the next big refactor
10882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10883 shlibpath_var=LD_LIBRARY_PATH
10884 shlibpath_overrides_runpath=yes
10891 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10892 soname_spec='$libname$release$shared_ext$major'
10893 shlibpath_var=LD_LIBRARY_PATH
10894 shlibpath_overrides_runpath=no
10895 hardcode_into_libs=yes
10896 dynamic_linker='ldqnx.so'
10899 openbsd* | bitrig*)
10901 sys_lib_dlsearch_path_spec=/usr/lib
10903 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10908 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10910 shlibpath_var=LD_LIBRARY_PATH
10911 shlibpath_overrides_runpath=yes
10915 libname_spec='$name'
10916 version_type=windows
10920 # OS/2 can only load a DLL with a base name of 8 characters or less.
10921 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10922 v=$($ECHO $release$versuffix | tr -d .-);
10923 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10924 $ECHO $n$v`$shared_ext'
10925 library_names_spec='${libname}_dll.$libext'
10926 dynamic_linker='OS/2 ld.exe'
10927 shlibpath_var=BEGINLIBPATH
10928 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10929 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10930 postinstall_cmds='base_file=`basename \$file`~
10931 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10932 dldir=$destdir/`dirname \$dlpath`~
10933 test -d \$dldir || mkdir -p \$dldir~
10934 $install_prog $dir/$dlname \$dldir/$dlname~
10935 chmod a+x \$dldir/$dlname~
10936 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10937 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10939 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10940 dlpath=$dir/\$dldll~
10944 osf3* | osf4* | osf5*)
10948 soname_spec='$libname$release$shared_ext$major'
10949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10950 shlibpath_var=LD_LIBRARY_PATH
10951 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10960 version_type=linux # correct to gnu/linux during the next big refactor
10963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10964 soname_spec='$libname$release$shared_ext$major'
10965 shlibpath_var=LD_LIBRARY_PATH
10966 shlibpath_overrides_runpath=yes
10967 hardcode_into_libs=yes
10968 # ldd complains unless libraries are executable
10969 postinstall_cmds='chmod +x $lib'
10974 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10975 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10976 shlibpath_var=LD_LIBRARY_PATH
10977 shlibpath_overrides_runpath=yes
10978 if test yes = "$with_gnu_ld"; then
10985 version_type=linux # correct to gnu/linux during the next big refactor
10986 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10987 soname_spec='$libname$release$shared_ext$major'
10988 shlibpath_var=LD_LIBRARY_PATH
10989 case $host_vendor in
10991 shlibpath_overrides_runpath=no
10993 runpath_var=LD_RUN_PATH
11001 shlibpath_overrides_runpath=no
11002 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11008 if test -d /usr/nec; then
11009 version_type=linux # correct to gnu/linux during the next big refactor
11010 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11011 soname_spec='$libname$shared_ext.$major'
11012 shlibpath_var=LD_LIBRARY_PATH
11016 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11021 soname_spec='$libname$release$shared_ext$major'
11022 shlibpath_var=LD_LIBRARY_PATH
11023 shlibpath_overrides_runpath=yes
11024 hardcode_into_libs=yes
11025 if test yes = "$with_gnu_ld"; then
11026 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11028 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11031 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11035 sys_lib_dlsearch_path_spec='/usr/lib'
11039 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11040 version_type=linux # correct to gnu/linux during the next big refactor
11043 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11044 shlibpath_var=LD_LIBRARY_PATH
11045 shlibpath_overrides_runpath=no
11046 hardcode_into_libs=yes
11050 version_type=linux # correct to gnu/linux during the next big refactor
11051 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11052 soname_spec='$libname$release$shared_ext$major'
11053 shlibpath_var=LD_LIBRARY_PATH
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11061 $as_echo "$dynamic_linker" >&6; }
11062 test no = "$dynamic_linker" && can_build_shared=no
11064 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11065 if test yes = "$GCC"; then
11066 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11069 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11070 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11073 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11074 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11077 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11078 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11080 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11081 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11083 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11084 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11183 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11185 if test -n "$hardcode_libdir_flag_spec" ||
11186 test -n "$runpath_var" ||
11187 test yes = "$hardcode_automatic"; then
11189 # We can hardcode non-existent directories.
11190 if test no != "$hardcode_direct" &&
11191 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11192 # have to relink, otherwise we might link with an installed library
11193 # when we should be linking with a yet-to-be-installed one
11194 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11195 test no != "$hardcode_minus_L"; then
11196 # Linking always hardcodes the temporary library directory.
11197 hardcode_action=relink
11199 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11200 hardcode_action=immediate
11203 # We cannot hardcode anything, or else we can only hardcode existing
11205 hardcode_action=unsupported
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11208 $as_echo "$hardcode_action" >&6; }
11210 if test relink = "$hardcode_action" ||
11211 test yes = "$inherit_rpath"; then
11212 # Fast installation is not supported
11213 enable_fast_install=no
11214 elif test yes = "$shlibpath_overrides_runpath" ||
11215 test no = "$enable_shared"; then
11216 # Fast installation is not necessary
11217 enable_fast_install=needless
11225 if test yes != "$enable_dlopen"; then
11226 enable_dlopen=unknown
11227 enable_dlopen_self=unknown
11228 enable_dlopen_self_static=unknown
11235 lt_cv_dlopen=load_add_on
11237 lt_cv_dlopen_self=yes
11240 mingw* | pw32* | cegcc*)
11241 lt_cv_dlopen=LoadLibrary
11246 lt_cv_dlopen=dlopen
11251 # if libdl is installed we need to link against it
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11253 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11254 if ${ac_cv_lib_dl_dlopen+:} false; then :
11255 $as_echo_n "(cached) " >&6
11257 ac_check_lib_save_LIBS=$LIBS
11259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11260 /* end confdefs.h. */
11262 /* Override any GCC internal prototype to avoid an error.
11263 Use char because int might match the return type of a GCC
11264 builtin and then its argument prototype would still apply. */
11277 if ac_fn_c_try_link "$LINENO"; then :
11278 ac_cv_lib_dl_dlopen=yes
11280 ac_cv_lib_dl_dlopen=no
11282 rm -f core conftest.err conftest.$ac_objext \
11283 conftest$ac_exeext conftest.$ac_ext
11284 LIBS=$ac_check_lib_save_LIBS
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11287 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11288 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11289 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11294 lt_cv_dlopen_self=yes
11301 # Don't try to run any link tests for TPF. We know it's impossible
11302 # because TPF is a cross-compiler, and we know how we open DSOs.
11303 lt_cv_dlopen=dlopen
11305 lt_cv_dlopen_self=no
11309 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11310 if test "x$ac_cv_func_shl_load" = xyes; then :
11311 lt_cv_dlopen=shl_load
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11314 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11315 if ${ac_cv_lib_dld_shl_load+:} false; then :
11316 $as_echo_n "(cached) " >&6
11318 ac_check_lib_save_LIBS=$LIBS
11320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11321 /* end confdefs.h. */
11323 /* Override any GCC internal prototype to avoid an error.
11324 Use char because int might match the return type of a GCC
11325 builtin and then its argument prototype would still apply. */
11333 return shl_load ();
11338 if ac_fn_c_try_link "$LINENO"; then :
11339 ac_cv_lib_dld_shl_load=yes
11341 ac_cv_lib_dld_shl_load=no
11343 rm -f core conftest.err conftest.$ac_objext \
11344 conftest$ac_exeext conftest.$ac_ext
11345 LIBS=$ac_check_lib_save_LIBS
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11348 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11349 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11350 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11352 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11353 if test "x$ac_cv_func_dlopen" = xyes; then :
11354 lt_cv_dlopen=dlopen
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11357 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11358 if ${ac_cv_lib_dl_dlopen+:} false; then :
11359 $as_echo_n "(cached) " >&6
11361 ac_check_lib_save_LIBS=$LIBS
11363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11364 /* end confdefs.h. */
11366 /* Override any GCC internal prototype to avoid an error.
11367 Use char because int might match the return type of a GCC
11368 builtin and then its argument prototype would still apply. */
11381 if ac_fn_c_try_link "$LINENO"; then :
11382 ac_cv_lib_dl_dlopen=yes
11384 ac_cv_lib_dl_dlopen=no
11386 rm -f core conftest.err conftest.$ac_objext \
11387 conftest$ac_exeext conftest.$ac_ext
11388 LIBS=$ac_check_lib_save_LIBS
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11391 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11392 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11393 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11396 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11397 if ${ac_cv_lib_svld_dlopen+:} false; then :
11398 $as_echo_n "(cached) " >&6
11400 ac_check_lib_save_LIBS=$LIBS
11401 LIBS="-lsvld $LIBS"
11402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11403 /* end confdefs.h. */
11405 /* Override any GCC internal prototype to avoid an error.
11406 Use char because int might match the return type of a GCC
11407 builtin and then its argument prototype would still apply. */
11420 if ac_fn_c_try_link "$LINENO"; then :
11421 ac_cv_lib_svld_dlopen=yes
11423 ac_cv_lib_svld_dlopen=no
11425 rm -f core conftest.err conftest.$ac_objext \
11426 conftest$ac_exeext conftest.$ac_ext
11427 LIBS=$ac_check_lib_save_LIBS
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11430 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11431 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11432 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11435 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11436 if ${ac_cv_lib_dld_dld_link+:} false; then :
11437 $as_echo_n "(cached) " >&6
11439 ac_check_lib_save_LIBS=$LIBS
11441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11442 /* end confdefs.h. */
11444 /* Override any GCC internal prototype to avoid an error.
11445 Use char because int might match the return type of a GCC
11446 builtin and then its argument prototype would still apply. */
11454 return dld_link ();
11459 if ac_fn_c_try_link "$LINENO"; then :
11460 ac_cv_lib_dld_dld_link=yes
11462 ac_cv_lib_dld_dld_link=no
11464 rm -f core conftest.err conftest.$ac_objext \
11465 conftest$ac_exeext conftest.$ac_ext
11466 LIBS=$ac_check_lib_save_LIBS
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11469 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11470 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11471 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11492 if test no = "$lt_cv_dlopen"; then
11498 case $lt_cv_dlopen in
11500 save_CPPFLAGS=$CPPFLAGS
11501 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11503 save_LDFLAGS=$LDFLAGS
11504 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11507 LIBS="$lt_cv_dlopen_libs $LIBS"
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11510 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11511 if ${lt_cv_dlopen_self+:} false; then :
11512 $as_echo_n "(cached) " >&6
11514 if test yes = "$cross_compiling"; then :
11515 lt_cv_dlopen_self=cross
11517 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11518 lt_status=$lt_dlunknown
11519 cat > conftest.$ac_ext <<_LT_EOF
11520 #line $LINENO "configure"
11521 #include "confdefs.h"
11530 # define LT_DLGLOBAL RTLD_GLOBAL
11533 # define LT_DLGLOBAL DL_GLOBAL
11535 # define LT_DLGLOBAL 0
11539 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11540 find out it does not work in some platform. */
11541 #ifndef LT_DLLAZY_OR_NOW
11543 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11546 # define LT_DLLAZY_OR_NOW DL_LAZY
11549 # define LT_DLLAZY_OR_NOW RTLD_NOW
11552 # define LT_DLLAZY_OR_NOW DL_NOW
11554 # define LT_DLLAZY_OR_NOW 0
11561 /* When -fvisibility=hidden is used, assume the code has been annotated
11562 correspondingly for the symbols needed. */
11563 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11564 int fnord () __attribute__((visibility("default")));
11567 int fnord () { return 42; }
11570 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11571 int status = $lt_dlunknown;
11575 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11578 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11579 else puts (dlerror ());
11581 /* dlclose (self); */
11589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11590 (eval $ac_link) 2>&5
11592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11593 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11594 (./conftest; exit; ) >&5 2>/dev/null
11596 case x$lt_status in
11597 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11598 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11599 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11602 # compilation failed
11603 lt_cv_dlopen_self=no
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11611 $as_echo "$lt_cv_dlopen_self" >&6; }
11613 if test yes = "$lt_cv_dlopen_self"; then
11614 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11616 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11617 if ${lt_cv_dlopen_self_static+:} false; then :
11618 $as_echo_n "(cached) " >&6
11620 if test yes = "$cross_compiling"; then :
11621 lt_cv_dlopen_self_static=cross
11623 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11624 lt_status=$lt_dlunknown
11625 cat > conftest.$ac_ext <<_LT_EOF
11626 #line $LINENO "configure"
11627 #include "confdefs.h"
11636 # define LT_DLGLOBAL RTLD_GLOBAL
11639 # define LT_DLGLOBAL DL_GLOBAL
11641 # define LT_DLGLOBAL 0
11645 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11646 find out it does not work in some platform. */
11647 #ifndef LT_DLLAZY_OR_NOW
11649 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11652 # define LT_DLLAZY_OR_NOW DL_LAZY
11655 # define LT_DLLAZY_OR_NOW RTLD_NOW
11658 # define LT_DLLAZY_OR_NOW DL_NOW
11660 # define LT_DLLAZY_OR_NOW 0
11667 /* When -fvisibility=hidden is used, assume the code has been annotated
11668 correspondingly for the symbols needed. */
11669 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11670 int fnord () __attribute__((visibility("default")));
11673 int fnord () { return 42; }
11676 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11677 int status = $lt_dlunknown;
11681 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11684 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11685 else puts (dlerror ());
11687 /* dlclose (self); */
11695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11696 (eval $ac_link) 2>&5
11698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11699 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11700 (./conftest; exit; ) >&5 2>/dev/null
11702 case x$lt_status in
11703 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11704 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11705 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11708 # compilation failed
11709 lt_cv_dlopen_self_static=no
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11717 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11720 CPPFLAGS=$save_CPPFLAGS
11721 LDFLAGS=$save_LDFLAGS
11726 case $lt_cv_dlopen_self in
11727 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11728 *) enable_dlopen_self=unknown ;;
11731 case $lt_cv_dlopen_self_static in
11732 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11733 *) enable_dlopen_self_static=unknown ;;
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11756 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11757 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11758 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11759 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11761 $as_echo "yes" >&6; }
11763 # FIXME - insert some real tests, host_os isn't really good enough
11766 if test -n "$STRIP"; then
11767 striplib="$STRIP -x"
11768 old_striplib="$STRIP -S"
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11770 $as_echo "yes" >&6; }
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773 $as_echo "no" >&6; }
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11778 $as_echo "no" >&6; }
11794 # Report what library types will actually be built
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11796 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11798 $as_echo "$can_build_shared" >&6; }
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11801 $as_echo_n "checking whether to build shared libraries... " >&6; }
11802 test no = "$can_build_shared" && enable_shared=no
11804 # On AIX, shared libraries and static libraries use the same namespace, and
11805 # are all built from PIC.
11808 test yes = "$enable_shared" && enable_static=no
11809 if test -n "$RANLIB"; then
11810 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11811 postinstall_cmds='$RANLIB $lib'
11816 if test ia64 != "$host_cpu"; then
11817 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11818 yes,aix,yes) ;; # shared object as lib.so file only
11819 yes,svr4,*) ;; # shared object as lib.so archive member only
11820 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11826 $as_echo "$enable_shared" >&6; }
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11829 $as_echo_n "checking whether to build static libraries... " >&6; }
11830 # Make sure either enable_shared or enable_static is yes.
11831 test yes = "$enable_shared" || enable_static=yes
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11833 $as_echo "$enable_static" >&6; }
11840 ac_cpp='$CPP $CPPFLAGS'
11841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11861 ac_config_commands="$ac_config_commands libtool"
11866 # Only expand once:
11869 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
11870 if test "x$ac_cv_header_windows_h" = xyes; then :
11871 if test -n "$ac_tool_prefix"; then
11872 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
11873 set dummy ${ac_tool_prefix}windres; ac_word=$2
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11875 $as_echo_n "checking for $ac_word... " >&6; }
11876 if ${ac_cv_prog_RC+:} false; then :
11877 $as_echo_n "(cached) " >&6
11879 if test -n "$RC"; then
11880 ac_cv_prog_RC="$RC" # Let the user override the test.
11882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11883 for as_dir in $PATH
11886 test -z "$as_dir" && as_dir=.
11887 for ac_exec_ext in '' $ac_executable_extensions; do
11888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11889 ac_cv_prog_RC="${ac_tool_prefix}windres"
11890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11900 if test -n "$RC"; then
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
11902 $as_echo "$RC" >&6; }
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 $as_echo "no" >&6; }
11910 if test -z "$ac_cv_prog_RC"; then
11912 # Extract the first word of "windres", so it can be a program name with args.
11913 set dummy windres; ac_word=$2
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11915 $as_echo_n "checking for $ac_word... " >&6; }
11916 if ${ac_cv_prog_ac_ct_RC+:} false; then :
11917 $as_echo_n "(cached) " >&6
11919 if test -n "$ac_ct_RC"; then
11920 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
11922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11923 for as_dir in $PATH
11926 test -z "$as_dir" && as_dir=.
11927 for ac_exec_ext in '' $ac_executable_extensions; do
11928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11929 ac_cv_prog_ac_ct_RC="windres"
11930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11939 ac_ct_RC=$ac_cv_prog_ac_ct_RC
11940 if test -n "$ac_ct_RC"; then
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
11942 $as_echo "$ac_ct_RC" >&6; }
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11945 $as_echo "no" >&6; }
11948 if test "x$ac_ct_RC" = x; then
11951 case $cross_compiling:$ac_tool_warned in
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11955 ac_tool_warned=yes ;;
11960 RC="$ac_cv_prog_RC"
11965 # Source file extension for RC test sources.
11968 # Object file extension for compiled RC test sources.
11972 # Code to be used in simple compile tests
11973 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
11975 # Code to be used in simple link tests
11976 lt_simple_link_test_code=$lt_simple_compile_test_code
11978 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11985 # If no C compiler was specified, use CC.
11988 # If no C compiler flags were specified, use CFLAGS.
11989 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11991 # Allow CC to be a program name with arguments.
11995 # save warnings/boilerplate of simple test code
11996 ac_outfile=conftest.$ac_objext
11997 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11998 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11999 _lt_compiler_boilerplate=`cat conftest.err`
12002 ac_outfile=conftest.$ac_objext
12003 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12004 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12005 _lt_linker_boilerplate=`cat conftest.err`
12009 # Allow CC to be a program name with arguments.
12011 lt_save_CFLAGS=$CFLAGS
12018 func_cc_basename $compiler
12019 cc_basename=$func_cc_basename_result
12021 lt_cv_prog_compiler_c_o_RC=yes
12023 if test -n "$compiler"; then
12032 ac_cpp='$CPP $CPPFLAGS'
12033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12038 CFLAGS=$lt_save_CFLAGS
12045 # checks for native programs to generate building tool
12047 if test ${cross_compiling} = yes; then
12048 # Extract the first word of "${build}-gcc", so it can be a program name with args.
12049 set dummy ${build}-gcc; ac_word=$2
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12051 $as_echo_n "checking for $ac_word... " >&6; }
12052 if ${ac_cv_prog_CC_BUILD+:} false; then :
12053 $as_echo_n "(cached) " >&6
12055 if test -n "$CC_BUILD"; then
12056 ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
12058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12059 for as_dir in $PATH
12062 test -z "$as_dir" && as_dir=.
12063 for ac_exec_ext in '' $ac_executable_extensions; do
12064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12065 ac_cv_prog_CC_BUILD="${build}-gcc"
12066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12075 CC_BUILD=$ac_cv_prog_CC_BUILD
12076 if test -n "$CC_BUILD"; then
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
12078 $as_echo "$CC_BUILD" >&6; }
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081 $as_echo "no" >&6; }
12085 test -z "${CC_BUILD}" && # Extract the first word of "gcc", so it can be a program name with args.
12086 set dummy gcc; ac_word=$2
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088 $as_echo_n "checking for $ac_word... " >&6; }
12089 if ${ac_cv_prog_CC_BUILD+:} false; then :
12090 $as_echo_n "(cached) " >&6
12092 if test -n "$CC_BUILD"; then
12093 ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
12095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096 for as_dir in $PATH
12099 test -z "$as_dir" && as_dir=.
12100 for ac_exec_ext in '' $ac_executable_extensions; do
12101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12102 ac_cv_prog_CC_BUILD="gcc"
12103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12112 CC_BUILD=$ac_cv_prog_CC_BUILD
12113 if test -n "$CC_BUILD"; then
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
12115 $as_echo "$CC_BUILD" >&6; }
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118 $as_echo "no" >&6; }
12122 test -z "${CC_BUILD}" && # Extract the first word of "cc", so it can be a program name with args.
12123 set dummy cc; ac_word=$2
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12125 $as_echo_n "checking for $ac_word... " >&6; }
12126 if ${ac_cv_prog_CC_BUILD+:} false; then :
12127 $as_echo_n "(cached) " >&6
12129 if test -n "$CC_BUILD"; then
12130 ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
12132 ac_prog_rejected=no
12133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12134 for as_dir in $PATH
12137 test -z "$as_dir" && as_dir=.
12138 for ac_exec_ext in '' $ac_executable_extensions; do
12139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12140 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12141 ac_prog_rejected=yes
12144 ac_cv_prog_CC_BUILD="cc"
12145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12152 if test $ac_prog_rejected = yes; then
12153 # We found a bogon in the path, so make sure we never use it.
12154 set dummy $ac_cv_prog_CC_BUILD
12156 if test $# != 0; then
12157 # We chose a different compiler from the bogus one.
12158 # However, it has the same basename, so the bogon will be chosen
12159 # first if we set CC_BUILD to just the basename; use the full file name.
12161 ac_cv_prog_CC_BUILD="$as_dir/$ac_word${1+' '}$@"
12166 CC_BUILD=$ac_cv_prog_CC_BUILD
12167 if test -n "$CC_BUILD"; then
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
12169 $as_echo "$CC_BUILD" >&6; }
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12172 $as_echo "no" >&6; }
12176 test -z "${CC_BUILD}" && as_fn_error $? "cannot find native C compiler" "$LINENO" 5
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of native executables" >&5
12179 $as_echo_n "checking for suffix of native executables... " >&6; }
12180 rm -f a.* b.* a_out.exe conftest.*
12181 echo > conftest.c "int main() { return 0;}"
12182 ${CC_BUILD} conftest.c || as_fn_error $? "native C compiler is not working" "$LINENO" 5
12184 if test -x a.out -o -x b.out -o -x conftest; then
12186 elif test -x a_out.exe -o -x conftest.exe; then
12187 EXEEXT_BUILD=".exe"
12188 elif test -x conftest.*; then
12189 EXEEXT_BUILD=`echo conftest.* | sed -n '1s/^.*\././'`
12191 rm -f a.* b.* a_out.exe conftest.*
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT_BUILD" >&5
12193 $as_echo "$EXEEXT_BUILD" >&6; }
12196 EXEEXT_BUILD=${EXEEXT}
12203 # Since these files will be eventually called from another directory (namely
12204 # from the top level) we make the path of the scripts absolute.
12206 # This small code snippet has been taken from automake's `ylwrap' script.
12208 # Find a good install program. We prefer a C program (faster),
12209 # so one script is as good as another. But avoid the broken or
12210 # incompatible versions:
12211 # SysV /etc/install, /usr/sbin/install
12212 # SunOS /usr/etc/install
12213 # IRIX /sbin/install
12215 # AmigaOS /C/install, which installs bootblocks on floppy discs
12216 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12217 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12218 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12219 # OS/2's system install, which has a completely different semantic
12220 # ./install, which can be erroneously created by make from ./install.sh.
12221 # Reject install programs that cannot install multiple files.
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
12223 $as_echo_n "checking for a BSD-compatible install... " >&6; }
12224 if test -z "$INSTALL"; then
12225 if ${ac_cv_path_install+:} false; then :
12226 $as_echo_n "(cached) " >&6
12228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12229 for as_dir in $PATH
12232 test -z "$as_dir" && as_dir=.
12233 # Account for people who put trailing slashes in PATH elements.
12234 case $as_dir/ in #((
12235 ./ | .// | /[cC]/* | \
12236 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12237 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
12240 # OSF1 and SCO ODT 3.0 have their own names for install.
12241 # Don't use installbsd from OSF since it installs stuff as root
12243 for ac_prog in ginstall scoinst install; do
12244 for ac_exec_ext in '' $ac_executable_extensions; do
12245 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12246 if test $ac_prog = install &&
12247 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12248 # AIX install. It has an incompatible calling convention.
12250 elif test $ac_prog = install &&
12251 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12252 # program-specific install script used by HP pwplus--don't use.
12255 rm -rf conftest.one conftest.two conftest.dir
12256 echo one > conftest.one
12257 echo two > conftest.two
12259 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12260 test -s conftest.one && test -s conftest.two &&
12261 test -s conftest.dir/conftest.one &&
12262 test -s conftest.dir/conftest.two
12264 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12277 rm -rf conftest.one conftest.two conftest.dir
12280 if test "${ac_cv_path_install+set}" = set; then
12281 INSTALL=$ac_cv_path_install
12283 # As a last resort, use the slow shell script. Don't cache a
12284 # value for INSTALL within a source directory, because that will
12285 # break other packages using the cache if that directory is
12286 # removed, or if the value is a relative name.
12287 INSTALL=$ac_install_sh
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
12291 $as_echo "$INSTALL" >&6; }
12293 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12294 # It thinks the first close brace ends the variable substitution.
12295 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12297 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12299 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12305 INSTALL="`pwd`/$INSTALL"
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
12310 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
12311 if test -z "$MKDIR_P"; then
12312 if ${ac_cv_path_mkdir+:} false; then :
12313 $as_echo_n "(cached) " >&6
12315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12316 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
12319 test -z "$as_dir" && as_dir=.
12320 for ac_prog in mkdir gmkdir; do
12321 for ac_exec_ext in '' $ac_executable_extensions; do
12322 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
12323 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
12324 'mkdir (GNU coreutils) '* | \
12325 'mkdir (coreutils) '* | \
12326 'mkdir (fileutils) '4.1*)
12327 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
12337 test -d ./--version && rmdir ./--version
12338 if test "${ac_cv_path_mkdir+set}" = set; then
12339 MKDIR_P="$ac_cv_path_mkdir -p"
12341 # As a last resort, use the slow shell script. Don't cache a
12342 # value for MKDIR_P within a source directory, because that will
12343 # break other packages using the cache if that directory is
12344 # removed, or if the value is a relative name.
12345 MKDIR_P="$ac_install_sh -d"
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
12349 $as_echo "$MKDIR_P" >&6; }
12355 MKDIR_P="`pwd`/$MKDIR_P"
12360 # checks for header files
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12363 $as_echo_n "checking for ANSI C header files... " >&6; }
12364 if ${ac_cv_header_stdc+:} false; then :
12365 $as_echo_n "(cached) " >&6
12367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12368 /* end confdefs.h. */
12369 #include <stdlib.h>
12370 #include <stdarg.h>
12371 #include <string.h>
12382 if ac_fn_c_try_compile "$LINENO"; then :
12383 ac_cv_header_stdc=yes
12385 ac_cv_header_stdc=no
12387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12389 if test $ac_cv_header_stdc = yes; then
12390 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12392 /* end confdefs.h. */
12393 #include <string.h>
12396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12397 $EGREP "memchr" >/dev/null 2>&1; then :
12400 ac_cv_header_stdc=no
12406 if test $ac_cv_header_stdc = yes; then
12407 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12409 /* end confdefs.h. */
12410 #include <stdlib.h>
12413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12414 $EGREP "free" >/dev/null 2>&1; then :
12417 ac_cv_header_stdc=no
12423 if test $ac_cv_header_stdc = yes; then
12424 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12425 if test "$cross_compiling" = yes; then :
12428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12429 /* end confdefs.h. */
12431 #include <stdlib.h>
12432 #if ((' ' & 0x0FF) == 0x020)
12433 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12434 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12436 # define ISLOWER(c) \
12437 (('a' <= (c) && (c) <= 'i') \
12438 || ('j' <= (c) && (c) <= 'r') \
12439 || ('s' <= (c) && (c) <= 'z'))
12440 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12443 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12448 for (i = 0; i < 256; i++)
12449 if (XOR (islower (i), ISLOWER (i))
12450 || toupper (i) != TOUPPER (i))
12455 if ac_fn_c_try_run "$LINENO"; then :
12458 ac_cv_header_stdc=no
12460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12461 conftest.$ac_objext conftest.beam conftest.$ac_ext
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12467 $as_echo "$ac_cv_header_stdc" >&6; }
12468 if test $ac_cv_header_stdc = yes; then
12470 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12474 for ac_header in fcntl.h unistd.h
12476 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12477 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12478 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12479 cat >>confdefs.h <<_ACEOF
12480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12489 # checks for typedefs, structures, and compiler characteristics
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12492 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12493 if ${ac_cv_c_const+:} false; then :
12494 $as_echo_n "(cached) " >&6
12496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12497 /* end confdefs.h. */
12503 #ifndef __cplusplus
12504 /* Ultrix mips cc rejects this sort of thing. */
12505 typedef int charset[2];
12506 const charset cs = { 0, 0 };
12507 /* SunOS 4.1.1 cc rejects this. */
12508 char const *const *pcpcc;
12510 /* NEC SVR4.0.2 mips cc rejects this. */
12511 struct point {int x, y;};
12512 static struct point const zero = {0,0};
12513 /* AIX XL C 1.02.0.0 rejects this.
12514 It does not let you subtract one const X* pointer from another in
12515 an arm of an if-expression whose if-part is not a constant
12517 const char *g = "string";
12518 pcpcc = &g + (g ? g-g : 0);
12519 /* HPUX 7.0 cc rejects these. */
12521 ppc = (char**) pcpcc;
12522 pcpcc = (char const *const *) ppc;
12523 { /* SCO 3.2v4 cc rejects this sort of thing. */
12526 char const *s = 0 ? (char *) 0 : (char const *) 0;
12531 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12532 int x[] = {25, 17};
12533 const int *foo = &x[0];
12536 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12537 typedef const int *iptr;
12541 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12542 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12543 struct s { int j; const int *ap[3]; } bx;
12544 struct s *b = &bx; b->j = 5;
12546 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12547 const int foo = 10;
12548 if (!foo) return 0;
12550 return !cs[0] && !zero.x;
12557 if ac_fn_c_try_compile "$LINENO"; then :
12562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12565 $as_echo "$ac_cv_c_const" >&6; }
12566 if test $ac_cv_c_const = no; then
12568 $as_echo "#define const /**/" >>confdefs.h
12572 # The cast to long int works around a bug in the HP C Compiler
12573 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12574 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12575 # This bug is HP SR number 8606223364.
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12577 $as_echo_n "checking size of int... " >&6; }
12578 if ${ac_cv_sizeof_int+:} false; then :
12579 $as_echo_n "(cached) " >&6
12581 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12584 if test "$ac_cv_type_int" = yes; then
12585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12587 as_fn_error 77 "cannot compute sizeof (int)
12588 See \`config.log' for more details" "$LINENO" 5; }
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12596 $as_echo "$ac_cv_sizeof_int" >&6; }
12600 cat >>confdefs.h <<_ACEOF
12601 #define SIZEOF_INT $ac_cv_sizeof_int
12605 # The cast to long int works around a bug in the HP C Compiler
12606 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12607 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12608 # This bug is HP SR number 8606223364.
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12610 $as_echo_n "checking size of long... " >&6; }
12611 if ${ac_cv_sizeof_long+:} false; then :
12612 $as_echo_n "(cached) " >&6
12614 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12617 if test "$ac_cv_type_long" = yes; then
12618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12620 as_fn_error 77 "cannot compute sizeof (long)
12621 See \`config.log' for more details" "$LINENO" 5; }
12623 ac_cv_sizeof_long=0
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12629 $as_echo "$ac_cv_sizeof_long" >&6; }
12633 cat >>confdefs.h <<_ACEOF
12634 #define SIZEOF_LONG $ac_cv_sizeof_long
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
12640 $as_echo_n "checking for unsigned long long int... " >&6; }
12641 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
12642 $as_echo_n "(cached) " >&6
12644 ac_cv_type_unsigned_long_long_int=yes
12645 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
12646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12647 /* end confdefs.h. */
12649 /* For now, do not test the preprocessor; as of 2007 there are too many
12650 implementations with broken preprocessors. Perhaps this can
12651 be revisited in 2012. In the meantime, code should not expect
12652 #if to work with literals wider than 32 bits. */
12653 /* Test literals. */
12654 long long int ll = 9223372036854775807ll;
12655 long long int nll = -9223372036854775807LL;
12656 unsigned long long int ull = 18446744073709551615ULL;
12657 /* Test constant expressions. */
12658 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
12660 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
12666 /* Test availability of runtime routines for shift and division. */
12667 long long int llmax = 9223372036854775807ll;
12668 unsigned long long int ullmax = 18446744073709551615ull;
12669 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
12670 | (llmax / ll) | (llmax % ll)
12671 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
12672 | (ullmax / ull) | (ullmax % ull));
12678 if ac_fn_c_try_link "$LINENO"; then :
12681 ac_cv_type_unsigned_long_long_int=no
12683 rm -f core conftest.err conftest.$ac_objext \
12684 conftest$ac_exeext conftest.$ac_ext
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
12688 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
12689 if test $ac_cv_type_unsigned_long_long_int = yes; then
12691 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
12698 $as_echo_n "checking for long long int... " >&6; }
12699 if ${ac_cv_type_long_long_int+:} false; then :
12700 $as_echo_n "(cached) " >&6
12702 ac_cv_type_long_long_int=yes
12703 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
12704 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
12705 if test $ac_cv_type_long_long_int = yes; then
12706 if test "$cross_compiling" = yes; then :
12709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12710 /* end confdefs.h. */
12711 #include <limits.h>
12714 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
12715 # define LLONG_MAX (HALF - 1 + HALF)
12720 long long int n = 1;
12724 long long int m = n << i;
12727 if (LLONG_MAX / 2 < m)
12735 if ac_fn_c_try_run "$LINENO"; then :
12738 ac_cv_type_long_long_int=no
12740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12741 conftest.$ac_objext conftest.beam conftest.$ac_ext
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
12748 $as_echo "$ac_cv_type_long_long_int" >&6; }
12749 if test $ac_cv_type_long_long_int = yes; then
12751 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
12757 # check whether cpp computation of size of int and long in ftconfig.h.in works
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cpp computation of bit length in ftconfig.h.in works" >&5
12760 $as_echo_n "checking whether cpp computation of bit length in ftconfig.h.in works... " >&6; }
12761 orig_CPPFLAGS="${CPPFLAGS}"
12762 CPPFLAGS="-I${srcdir} -I. -I${srcdir}/../../include ${CPPFLAGS}"
12765 if test ! -f ft2build.h; then
12766 ac_clean_files=ft2build.h
12770 cat > conftest.c <<\_ACEOF
12771 #include <limits.h>
12772 #define FT_CONFIG_OPTIONS_H <freetype/config/ftoption.h>
12773 #define FT_CONFIG_STANDARD_LIBRARY_H <freetype/config/ftstdlib.h>
12774 #define FT_UINT_MAX UINT_MAX
12775 #define FT_ULONG_MAX ULONG_MAX
12776 #include "ftconfig.h.in"
12778 echo >> conftest.c "#if FT_SIZEOF_INT == "${ac_cv_sizeof_int}
12779 echo >> conftest.c "ac_cpp_ft_sizeof_int="${ac_cv_sizeof_int}
12780 echo >> conftest.c "#endif"
12781 echo >> conftest.c "#if FT_SIZEOF_LONG == "${ac_cv_sizeof_long}
12782 echo >> conftest.c "ac_cpp_ft_sizeof_long="${ac_cv_sizeof_long}
12783 echo >> conftest.c "#endif"
12785 ${CPP} ${CPPFLAGS} conftest.c | ${GREP} ac_cpp_ft > conftest.sh
12786 eval `cat conftest.sh`
12787 rm -f conftest.* $ac_clean_files
12789 if test x != "x${ac_cpp_ft_sizeof_int}" \
12790 -a x != x"${ac_cpp_ft_sizeof_long}"; then
12791 unset ft_use_autoconf_sizeof_types
12793 ft_use_autoconf_sizeof_types=yes
12796 # Check whether --enable-biarch-config was given.
12797 if test "${enable_biarch_config+set}" = set; then :
12798 enableval=$enable_biarch_config;
12802 case :${ft_use_autoconf_sizeof_types}:${enable_biarch_config}: in
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken but use it" >&5
12805 $as_echo "broken but use it" >&6; }
12806 unset ft_use_autoconf_sizeof_types
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: works but ignore it" >&5
12810 $as_echo "works but ignore it" >&6; }
12811 ft_use_autoconf_sizeof_types=yes
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12815 $as_echo "yes" >&6; }
12816 unset ft_use_autoconf_sizeof_types
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12820 $as_echo "no" >&6; }
12821 ft_use_autoconf_sizeof_types=yes
12825 if test x"${ft_use_autoconf_sizeof_types}" = xyes; then
12827 $as_echo "#define FT_USE_AUTOCONF_SIZEOF_TYPES /**/" >>confdefs.h
12831 CPPFLAGS="${orig_CPPFLAGS}"
12833 # Check whether --enable-freetype-config was given.
12834 if test "${enable_freetype_config+set}" = set; then :
12835 enableval=$enable_freetype_config; case "${enableval}" in
12836 yes) enable_freetype_config="TRUE" ;;
12837 no) enable_freetype_config="FALSE" ;;
12838 *) as_fn_error $? "unknown value '${enableval}' passed with --enable-freetype-config" "$LINENO" 5 ;;
12841 enable_freetype_config="FALSE"
12845 INSTALL_FT2_CONFIG=$enable_freetype_config
12848 # checks for library functions
12850 # Check whether --enable-largefile was given.
12851 if test "${enable_largefile+set}" = set; then :
12852 enableval=$enable_largefile;
12855 if test "$enable_largefile" != no; then
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12858 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12859 if ${ac_cv_sys_largefile_CC+:} false; then :
12860 $as_echo_n "(cached) " >&6
12862 ac_cv_sys_largefile_CC=no
12863 if test "$GCC" != yes; then
12866 # IRIX 6.2 and later do not support large files by default,
12867 # so use the C compiler's -n32 option if that helps.
12868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12869 /* end confdefs.h. */
12870 #include <sys/types.h>
12871 /* Check that off_t can represent 2**63 - 1 correctly.
12872 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12873 since some C++ compilers masquerading as C compilers
12874 incorrectly reject 9223372036854775807. */
12875 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12876 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12877 && LARGE_OFF_T % 2147483647 == 1)
12887 if ac_fn_c_try_compile "$LINENO"; then :
12890 rm -f core conftest.err conftest.$ac_objext
12892 if ac_fn_c_try_compile "$LINENO"; then :
12893 ac_cv_sys_largefile_CC=' -n32'; break
12895 rm -f core conftest.err conftest.$ac_objext
12899 rm -f conftest.$ac_ext
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12903 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12904 if test "$ac_cv_sys_largefile_CC" != no; then
12905 CC=$CC$ac_cv_sys_largefile_CC
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12909 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12910 if ${ac_cv_sys_file_offset_bits+:} false; then :
12911 $as_echo_n "(cached) " >&6
12914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12915 /* end confdefs.h. */
12916 #include <sys/types.h>
12917 /* Check that off_t can represent 2**63 - 1 correctly.
12918 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12919 since some C++ compilers masquerading as C compilers
12920 incorrectly reject 9223372036854775807. */
12921 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12922 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12923 && LARGE_OFF_T % 2147483647 == 1)
12933 if ac_fn_c_try_compile "$LINENO"; then :
12934 ac_cv_sys_file_offset_bits=no; break
12936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12938 /* end confdefs.h. */
12939 #define _FILE_OFFSET_BITS 64
12940 #include <sys/types.h>
12941 /* Check that off_t can represent 2**63 - 1 correctly.
12942 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12943 since some C++ compilers masquerading as C compilers
12944 incorrectly reject 9223372036854775807. */
12945 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12946 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12947 && LARGE_OFF_T % 2147483647 == 1)
12957 if ac_fn_c_try_compile "$LINENO"; then :
12958 ac_cv_sys_file_offset_bits=64; break
12960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12961 ac_cv_sys_file_offset_bits=unknown
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12966 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12967 case $ac_cv_sys_file_offset_bits in #(
12970 cat >>confdefs.h <<_ACEOF
12971 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12976 if test $ac_cv_sys_file_offset_bits = unknown; then
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12978 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12979 if ${ac_cv_sys_large_files+:} false; then :
12980 $as_echo_n "(cached) " >&6
12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984 /* end confdefs.h. */
12985 #include <sys/types.h>
12986 /* Check that off_t can represent 2**63 - 1 correctly.
12987 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12988 since some C++ compilers masquerading as C compilers
12989 incorrectly reject 9223372036854775807. */
12990 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12991 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12992 && LARGE_OFF_T % 2147483647 == 1)
13002 if ac_fn_c_try_compile "$LINENO"; then :
13003 ac_cv_sys_large_files=no; break
13005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h. */
13008 #define _LARGE_FILES 1
13009 #include <sys/types.h>
13010 /* Check that off_t can represent 2**63 - 1 correctly.
13011 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13012 since some C++ compilers masquerading as C compilers
13013 incorrectly reject 9223372036854775807. */
13014 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13015 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13016 && LARGE_OFF_T % 2147483647 == 1)
13026 if ac_fn_c_try_compile "$LINENO"; then :
13027 ac_cv_sys_large_files=1; break
13029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13030 ac_cv_sys_large_files=unknown
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13035 $as_echo "$ac_cv_sys_large_files" >&6; }
13036 case $ac_cv_sys_large_files in #(
13039 cat >>confdefs.h <<_ACEOF
13040 #define _LARGE_FILES $ac_cv_sys_large_files
13051 # Here we check whether we can use our mmap file component.
13053 # Check whether --enable-mmap was given.
13054 if test "${enable_mmap+set}" = set; then :
13055 enableval=$enable_mmap; enable_mmap="no"
13060 if test "x${enable_mmap}" != "xno"; then
13064 for ac_header in $ac_header_list
13066 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13067 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13069 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13070 cat >>confdefs.h <<_ACEOF
13071 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13085 for ac_func in getpagesize
13087 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13088 if test "x$ac_cv_func_getpagesize" = xyes; then :
13089 cat >>confdefs.h <<_ACEOF
13090 #define HAVE_GETPAGESIZE 1
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13097 $as_echo_n "checking for working mmap... " >&6; }
13098 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13099 $as_echo_n "(cached) " >&6
13101 if test "$cross_compiling" = yes; then :
13102 ac_cv_func_mmap_fixed_mapped=no
13104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105 /* end confdefs.h. */
13106 $ac_includes_default
13107 /* malloc might have been renamed as rpl_malloc. */
13110 /* Thanks to Mike Haertel and Jim Avera for this test.
13111 Here is a matrix of mmap possibilities:
13112 mmap private not fixed
13113 mmap private fixed at somewhere currently unmapped
13114 mmap private fixed at somewhere already mapped
13115 mmap shared not fixed
13116 mmap shared fixed at somewhere currently unmapped
13117 mmap shared fixed at somewhere already mapped
13118 For private mappings, we should verify that changes cannot be read()
13119 back from the file, nor mmap's back from the file at a different
13120 address. (There have been systems where private was not correctly
13121 implemented like the infamous i386 svr4.0, and systems where the
13122 VM page cache was not coherent with the file system buffer cache
13123 like early versions of FreeBSD and possibly contemporary NetBSD.)
13124 For shared mappings, we should conversely verify that changes get
13125 propagated back to all the places they're supposed to be.
13127 Grep wants private fixed already mapped.
13128 The main things grep needs to know about mmap are:
13129 * does it exist and is it safe to write into the mmap'd area
13130 * how to use it (BSD variants) */
13133 #include <sys/mman.h>
13135 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13139 /* This mess was copied from the GNU getpagesize.h. */
13140 #ifndef HAVE_GETPAGESIZE
13141 # ifdef _SC_PAGESIZE
13142 # define getpagesize() sysconf(_SC_PAGESIZE)
13143 # else /* no _SC_PAGESIZE */
13144 # ifdef HAVE_SYS_PARAM_H
13145 # include <sys/param.h>
13146 # ifdef EXEC_PAGESIZE
13147 # define getpagesize() EXEC_PAGESIZE
13148 # else /* no EXEC_PAGESIZE */
13150 # define getpagesize() NBPG * CLSIZE
13153 # endif /* no CLSIZE */
13154 # else /* no NBPG */
13156 # define getpagesize() NBPC
13157 # else /* no NBPC */
13159 # define getpagesize() PAGESIZE
13160 # endif /* PAGESIZE */
13161 # endif /* no NBPC */
13162 # endif /* no NBPG */
13163 # endif /* no EXEC_PAGESIZE */
13164 # else /* no HAVE_SYS_PARAM_H */
13165 # define getpagesize() 8192 /* punt totally */
13166 # endif /* no HAVE_SYS_PARAM_H */
13167 # endif /* no _SC_PAGESIZE */
13169 #endif /* no HAVE_GETPAGESIZE */
13174 char *data, *data2, *data3;
13175 const char *cdata2;
13179 pagesize = getpagesize ();
13181 /* First, make a file with some known garbage in it. */
13182 data = (char *) malloc (pagesize);
13185 for (i = 0; i < pagesize; ++i)
13186 *(data + i) = rand ();
13188 fd = creat ("conftest.mmap", 0600);
13191 if (write (fd, data, pagesize) != pagesize)
13195 /* Next, check that the tail of a page is zero-filled. File must have
13196 non-zero length, otherwise we risk SIGBUS for entire page. */
13197 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13201 if (write (fd2, cdata2, 1) != 1)
13203 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13204 if (data2 == MAP_FAILED)
13206 for (i = 0; i < pagesize; ++i)
13210 if (munmap (data2, pagesize))
13213 /* Next, try to mmap the file at a fixed address which already has
13214 something else allocated at it. If we can, also make sure that
13215 we see the same garbage. */
13216 fd = open ("conftest.mmap", O_RDWR);
13219 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13220 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13222 for (i = 0; i < pagesize; ++i)
13223 if (*(data + i) != *(data2 + i))
13226 /* Finally, make sure that changes to the mapped area do not
13227 percolate back to the file as seen by read(). (This is a bug on
13228 some variants of i386 svr4.0.) */
13229 for (i = 0; i < pagesize; ++i)
13230 *(data2 + i) = *(data2 + i) + 1;
13231 data3 = (char *) malloc (pagesize);
13234 if (read (fd, data3, pagesize) != pagesize)
13236 for (i = 0; i < pagesize; ++i)
13237 if (*(data + i) != *(data3 + i))
13243 if ac_fn_c_try_run "$LINENO"; then :
13244 ac_cv_func_mmap_fixed_mapped=yes
13246 ac_cv_func_mmap_fixed_mapped=no
13248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13249 conftest.$ac_objext conftest.beam conftest.$ac_ext
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13254 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13255 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13257 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13260 rm -f conftest.mmap conftest.txt
13263 if test "x${enable_mmap}" = "xno" \
13264 -o "$ac_cv_func_mmap_fixed_mapped" != "yes"; then
13265 FTSYS_SRC='$(BASE_DIR)/ftsystem.c'
13267 FTSYS_SRC='$(BUILD_DIR)/ftsystem.c'
13269 ac_fn_c_check_decl "$LINENO" "munmap" "ac_cv_have_decl_munmap" "
13271 #ifdef HAVE_UNISTD_H
13272 #include <unistd.h>
13274 #include <sys/mman.h>
13278 if test "x$ac_cv_have_decl_munmap" = xyes; then :
13284 cat >>confdefs.h <<_ACEOF
13285 #define HAVE_DECL_MUNMAP $ac_have_decl
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for munmap's first parameter type" >&5
13290 $as_echo_n "checking for munmap's first parameter type... " >&6; }
13291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292 /* end confdefs.h. */
13296 #include <unistd.h>
13297 #include <sys/mman.h>
13298 int munmap(void *, size_t);
13303 if ac_fn_c_try_compile "$LINENO"; then :
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void *" >&5
13305 $as_echo "void *" >&6; }
13307 $as_echo "#define MUNMAP_USES_VOIDP /**/" >>confdefs.h
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: char *" >&5
13311 $as_echo "char *" >&6; }
13313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13318 for ac_func in memcpy memmove
13320 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13321 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13322 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13323 cat >>confdefs.h <<_ACEOF
13324 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13332 # get compiler flags right
13334 # We try to make the compiler work for C89-strict source. Even if the
13335 # C compiler is gcc and C89 flags are available, some system headers
13336 # (e.g., Android Bionic libc) are broken in C89 mode. We have to check
13337 # whether the compilation finishes successfully.
13339 # Due to bugs in mingwrt 4.0.3 we don't use `-ansi' for MinGW.
13341 # To avoid zillions of
13343 # ISO C90 does not support 'long long'
13345 # warnings, we disable `-pedantic' for gcc version < 4.6.
13347 if test "x$GCC" = xyes; then
13351 XX_ANSIFLAGS="-pedantic"
13354 XX_ANSIFLAGS="-pedantic"
13357 GCC_VERSION=`$CC -dumpversion`
13358 GCC_MAJOR=`echo "$GCC_VERSION" | sed 's/\([^.][^.]*\).*/\1/'`
13359 GCC_MINOR=`echo "$GCC_VERSION" | sed 's/[^.][^.]*.\([^.][^.]*\).*/\1/'`
13361 XX_PEDANTIC=-pedantic
13362 if test $GCC_MAJOR -lt 4; then
13365 if test $GCC_MAJOR -eq 4 -a $GCC_MINOR -lt 6; then
13371 for a in $XX_PEDANTIC -ansi
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc compiler flag ${a} to assure ANSI C works correctly" >&5
13374 $as_echo_n "checking gcc compiler flag ${a} to assure ANSI C works correctly... " >&6; }
13375 orig_CFLAGS="${CFLAGS}"
13376 CFLAGS="${CFLAGS} ${XX_ANSIFLAGS} ${a}"
13377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378 /* end confdefs.h. */
13400 if ac_fn_c_try_compile "$LINENO"; then :
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok, adding to XX_ANSIFLAGS" >&5
13402 $as_echo "ok, adding to XX_ANSIFLAGS" >&6; }
13403 XX_ANSIFLAGS="${XX_ANSIFLAGS} ${a}"
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13407 $as_echo "no" >&6; }
13409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13410 CFLAGS="${orig_CFLAGS}"
13418 XX_CFLAGS="-std1 -g3"
13431 # It is recommended that shared libraries hide symbols except those with
13432 # explicit __attribute__((visibility("default"))).
13434 found_visibility_flag=no
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fvisibility=hidden compiler flag" >&5
13436 $as_echo_n "checking for -fvisibility=hidden compiler flag... " >&6; }
13437 orig_CFLAGS="${CFLAGS}"
13438 CFLAGS="${CFLAGS} -fvisibility=hidden"
13439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13440 /* end confdefs.h. */
13450 if ac_fn_c_try_link "$LINENO"; then :
13451 found_visibility_flag=yes
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13453 $as_echo "yes" >&6; }
13455 CFLAGS="${orig_CFLAGS}"
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13457 $as_echo "no" >&6; }
13459 rm -f core conftest.err conftest.$ac_objext \
13460 conftest$ac_exeext conftest.$ac_ext
13462 if test "${found_visibility_flag}" = "no"; then
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -xldscope=hidden compiler flag" >&5
13464 $as_echo_n "checking for -xldscope=hidden compiler flag... " >&6; }
13465 orig_CFLAGS="${CFLAGS}"
13466 CFLAGS="${CFLAGS} -xldscope=hidden"
13467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13468 /* end confdefs.h. */
13478 if ac_fn_c_try_link "$LINENO"; then :
13479 found_visibility_flag=yes
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13481 $as_echo "yes" >&6; }
13483 CFLAGS="${orig_CFLAGS}"
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13485 $as_echo "no" >&6; }
13487 rm -f core conftest.err conftest.$ac_objext \
13488 conftest$ac_exeext conftest.$ac_ext
13491 # All library tests below try `pkg-config' first. If that fails, a function
13492 # from the library is tested in the traditional autoconf way (zlib, bzip2),
13493 # or a config script is called (libpng).
13495 # The `xxx_reqpriv' variables are for the `Requires.private' field in
13496 # `freetype2.pc'. The `xxx_libspriv' variables are for the `Libs.private'
13497 # field in `freetype2.pc' if pkg-config doesn't find a proper .pc file.
13499 # The `xxx_libsstaticconf' variables are for the `freetype-config' script.
13501 # Note that a call to PKG_CHECK_MODULES(XXX, ...) sets and creates the
13502 # output variables `XXX_CFLAGS' and `XXX_LIBS'. In case one or both are set
13503 # for a library by the user, no entry for this library is added to
13504 # `Requires.private'. Instead, it gets added to `Libs.private'
13507 # check for system zlib
13510 # Check whether --with-zlib was given.
13511 if test "${with_zlib+set}" = set; then :
13512 withval=$with_zlib;
13519 if test x"$with_zlib" = xyes -o x"$with_zlib" = xauto; then
13523 if test x"$ZLIB_CFLAGS" = x -a x"$ZLIB_LIBS" = x; then
13524 if test -n "$PKG_CONFIG" && \
13525 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$zlib_pkg\""; } >&5
13526 ($PKG_CONFIG --exists --print-errors "$zlib_pkg") 2>&5
13528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13529 test $ac_status = 0; }; then
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
13536 $as_echo_n "checking for ZLIB... " >&6; }
13538 if test -n "$ZLIB_CFLAGS"; then
13539 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
13540 elif test -n "$PKG_CONFIG"; then
13541 if test -n "$PKG_CONFIG" && \
13542 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$zlib_pkg\""; } >&5
13543 ($PKG_CONFIG --exists --print-errors "$zlib_pkg") 2>&5
13545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13546 test $ac_status = 0; }; then
13547 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "$zlib_pkg" 2>/dev/null`
13548 test "x$?" != "x0" && pkg_failed=yes
13555 if test -n "$ZLIB_LIBS"; then
13556 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
13557 elif test -n "$PKG_CONFIG"; then
13558 if test -n "$PKG_CONFIG" && \
13559 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$zlib_pkg\""; } >&5
13560 ($PKG_CONFIG --exists --print-errors "$zlib_pkg") 2>&5
13562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13563 test $ac_status = 0; }; then
13564 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "$zlib_pkg" 2>/dev/null`
13565 test "x$?" != "x0" && pkg_failed=yes
13575 if test $pkg_failed = yes; then
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13577 $as_echo "no" >&6; }
13579 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13580 _pkg_short_errors_supported=yes
13582 _pkg_short_errors_supported=no
13584 if test $_pkg_short_errors_supported = yes; then
13585 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$zlib_pkg" 2>&1`
13587 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$zlib_pkg" 2>&1`
13589 # Put the nasty error message in config.log where it belongs
13590 echo "$ZLIB_PKG_ERRORS" >&5
13593 elif test $pkg_failed = untried; then
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13595 $as_echo "no" >&6; }
13598 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
13599 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13601 $as_echo "yes" >&6; }
13602 have_zlib="yes (pkg-config)"
13605 if test $have_zlib_pkg = yes; then
13607 zlib_reqpriv="$zlib_pkg"
13609 zlib_libsstaticconf=`$PKG_CONFIG --static --libs "$zlib_pkg"`
13613 if test "$have_zlib" != no; then
13614 # ZLIB_CFLAGS and ZLIB_LIBS are set by the user
13615 zlib_libspriv="$ZLIB_LIBS"
13616 zlib_libsstaticconf="$ZLIB_LIBS"
13617 have_zlib="yes (ZLIB_CFLAGS and ZLIB_LIBS)"
13619 # fall back to standard autoconf test
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzsetparams in -lz" >&5
13621 $as_echo_n "checking for gzsetparams in -lz... " >&6; }
13622 if ${ac_cv_lib_z_gzsetparams+:} false; then :
13623 $as_echo_n "(cached) " >&6
13625 ac_check_lib_save_LIBS=$LIBS
13627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13628 /* end confdefs.h. */
13630 /* Override any GCC internal prototype to avoid an error.
13631 Use char because int might match the return type of a GCC
13632 builtin and then its argument prototype would still apply. */
13636 char gzsetparams ();
13640 return gzsetparams ();
13645 if ac_fn_c_try_link "$LINENO"; then :
13646 ac_cv_lib_z_gzsetparams=yes
13648 ac_cv_lib_z_gzsetparams=no
13650 rm -f core conftest.err conftest.$ac_objext \
13651 conftest$ac_exeext conftest.$ac_ext
13652 LIBS=$ac_check_lib_save_LIBS
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzsetparams" >&5
13655 $as_echo "$ac_cv_lib_z_gzsetparams" >&6; }
13656 if test "x$ac_cv_lib_z_gzsetparams" = xyes; then :
13657 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13658 if test "x$ac_cv_header_zlib_h" = xyes; then :
13659 have_zlib="yes (autoconf test)"
13660 zlib_libspriv="-lz"
13661 zlib_libsstaticconf="$zlib_libspriv"
13662 ZLIB_LIBS="$zlib_libspriv"
13672 if test x"$with_zlib" = xyes -a "$have_zlib" = no; then
13673 as_fn_error $? "external zlib support requested but library not found" "$LINENO" 5
13677 # check for system libbz2
13680 # Check whether --with-bzip2 was given.
13681 if test "${with_bzip2+set}" = set; then :
13682 withval=$with_bzip2;
13689 if test x"$with_bzip2" = xyes -o x"$with_bzip2" = xauto; then
13693 if test x"$BZIP2_CFLAGS" = x -a x"$BZIP2_LIBS" = x; then
13694 if test -n "$PKG_CONFIG" && \
13695 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$bzip2_pkg\""; } >&5
13696 ($PKG_CONFIG --exists --print-errors "$bzip2_pkg") 2>&5
13698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13699 test $ac_status = 0; }; then
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZIP2" >&5
13706 $as_echo_n "checking for BZIP2... " >&6; }
13708 if test -n "$BZIP2_CFLAGS"; then
13709 pkg_cv_BZIP2_CFLAGS="$BZIP2_CFLAGS"
13710 elif test -n "$PKG_CONFIG"; then
13711 if test -n "$PKG_CONFIG" && \
13712 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$bzip2_pkg\""; } >&5
13713 ($PKG_CONFIG --exists --print-errors "$bzip2_pkg") 2>&5
13715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13716 test $ac_status = 0; }; then
13717 pkg_cv_BZIP2_CFLAGS=`$PKG_CONFIG --cflags "$bzip2_pkg" 2>/dev/null`
13718 test "x$?" != "x0" && pkg_failed=yes
13725 if test -n "$BZIP2_LIBS"; then
13726 pkg_cv_BZIP2_LIBS="$BZIP2_LIBS"
13727 elif test -n "$PKG_CONFIG"; then
13728 if test -n "$PKG_CONFIG" && \
13729 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$bzip2_pkg\""; } >&5
13730 ($PKG_CONFIG --exists --print-errors "$bzip2_pkg") 2>&5
13732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13733 test $ac_status = 0; }; then
13734 pkg_cv_BZIP2_LIBS=`$PKG_CONFIG --libs "$bzip2_pkg" 2>/dev/null`
13735 test "x$?" != "x0" && pkg_failed=yes
13745 if test $pkg_failed = yes; then
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13747 $as_echo "no" >&6; }
13749 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13750 _pkg_short_errors_supported=yes
13752 _pkg_short_errors_supported=no
13754 if test $_pkg_short_errors_supported = yes; then
13755 BZIP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$bzip2_pkg" 2>&1`
13757 BZIP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$bzip2_pkg" 2>&1`
13759 # Put the nasty error message in config.log where it belongs
13760 echo "$BZIP2_PKG_ERRORS" >&5
13763 elif test $pkg_failed = untried; then
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13765 $as_echo "no" >&6; }
13768 BZIP2_CFLAGS=$pkg_cv_BZIP2_CFLAGS
13769 BZIP2_LIBS=$pkg_cv_BZIP2_LIBS
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13771 $as_echo "yes" >&6; }
13772 have_bzip2="yes (pkg-config)"
13775 if test $have_bzip2_pkg = yes; then
13777 bzip2_reqpriv="$bzip2_pkg"
13779 bzip2_libsstaticconf=`$PKG_CONFIG --static --libs "$bzip2_pkg"`
13783 if test "$have_bzip2" != no; then
13784 # BZIP2_CFLAGS and BZIP2_LIBS are set by the user
13785 bzip2_libspriv="$BZIP2_LIBS"
13786 bzip2_libsstaticconf="$BZIP2_LIBS"
13787 have_bzip2="yes (BZIP2_CFLAGS and BZIP2_LIBS)"
13789 # fall back to standard autoconf test
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
13791 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
13792 if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
13793 $as_echo_n "(cached) " >&6
13795 ac_check_lib_save_LIBS=$LIBS
13797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13798 /* end confdefs.h. */
13800 /* Override any GCC internal prototype to avoid an error.
13801 Use char because int might match the return type of a GCC
13802 builtin and then its argument prototype would still apply. */
13806 char BZ2_bzDecompress ();
13810 return BZ2_bzDecompress ();
13815 if ac_fn_c_try_link "$LINENO"; then :
13816 ac_cv_lib_bz2_BZ2_bzDecompress=yes
13818 ac_cv_lib_bz2_BZ2_bzDecompress=no
13820 rm -f core conftest.err conftest.$ac_objext \
13821 conftest$ac_exeext conftest.$ac_ext
13822 LIBS=$ac_check_lib_save_LIBS
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
13825 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
13826 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
13827 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
13828 if test "x$ac_cv_header_bzlib_h" = xyes; then :
13829 have_bzip2="yes (autoconf test)"
13830 bzip2_libspriv="-lbz2"
13831 bzip2_libsstaticconf="$bzip2_libspriv"
13832 BZIP2_LIBS="$bzip2_libspriv"
13842 if test x"$with_bzip2" = xyes -a "$have_bzip2" = no; then
13843 as_fn_error $? "bzip2 support requested but library not found" "$LINENO" 5
13847 # check for system libpng
13850 # Check whether --with-png was given.
13851 if test "${with_png+set}" = set; then :
13859 if test x"$with_png" = xyes -o x"$with_png" = xauto; then
13860 libpng_pkg="libpng"
13863 if test x"$LIBPNG_CFLAGS" = x -a x"$LIBPNG_LIBS" = x; then
13864 if test -n "$PKG_CONFIG" && \
13865 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libpng_pkg\""; } >&5
13866 ($PKG_CONFIG --exists --print-errors "$libpng_pkg") 2>&5
13868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13869 test $ac_status = 0; }; then
13870 have_libpng_pkg=yes
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5
13876 $as_echo_n "checking for LIBPNG... " >&6; }
13878 if test -n "$LIBPNG_CFLAGS"; then
13879 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
13880 elif test -n "$PKG_CONFIG"; then
13881 if test -n "$PKG_CONFIG" && \
13882 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libpng_pkg\""; } >&5
13883 ($PKG_CONFIG --exists --print-errors "$libpng_pkg") 2>&5
13885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13886 test $ac_status = 0; }; then
13887 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "$libpng_pkg" 2>/dev/null`
13888 test "x$?" != "x0" && pkg_failed=yes
13895 if test -n "$LIBPNG_LIBS"; then
13896 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
13897 elif test -n "$PKG_CONFIG"; then
13898 if test -n "$PKG_CONFIG" && \
13899 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libpng_pkg\""; } >&5
13900 ($PKG_CONFIG --exists --print-errors "$libpng_pkg") 2>&5
13902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13903 test $ac_status = 0; }; then
13904 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "$libpng_pkg" 2>/dev/null`
13905 test "x$?" != "x0" && pkg_failed=yes
13915 if test $pkg_failed = yes; then
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13917 $as_echo "no" >&6; }
13919 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13920 _pkg_short_errors_supported=yes
13922 _pkg_short_errors_supported=no
13924 if test $_pkg_short_errors_supported = yes; then
13925 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$libpng_pkg" 2>&1`
13927 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$libpng_pkg" 2>&1`
13929 # Put the nasty error message in config.log where it belongs
13930 echo "$LIBPNG_PKG_ERRORS" >&5
13933 elif test $pkg_failed = untried; then
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13935 $as_echo "no" >&6; }
13938 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
13939 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13941 $as_echo "yes" >&6; }
13942 have_libpng="yes (pkg-config)"
13945 if test $have_libpng_pkg = yes; then
13946 # we have libpng.pc
13947 libpng_reqpriv="$libpng_pkg"
13949 libpng_libsstaticconf=`$PKG_CONFIG --static --libs "$libpng_pkg"`
13953 if test "$have_libpng" != no; then
13954 # LIBPNG_CFLAGS and LIBPNG_LIBS are set by the user
13955 libpng_libspriv="$LIBPNG_LIBS"
13956 libpng_libsstaticconf="$LIBPNG_LIBS"
13957 have_libpng="yes (LIBPNG_CFLAGS and LIBPNG_LIBS)"
13959 # fall back to config script
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng-config" >&5
13961 $as_echo_n "checking for libpng-config... " >&6; }
13962 if which libpng-config > /dev/null 2>&1; then
13963 LIBPNG_CFLAGS=`libpng-config --cflags`
13964 LIBPNG_LIBS=`libpng-config --ldflags`
13965 libpng_libspriv=`libpng-config --static --ldflags`
13966 libpng_libsstaticconf="$libpng_libspriv"
13967 have_libpng="yes (libpng-config)"
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13969 $as_echo "yes" >&6; }
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13972 $as_echo "no" >&6; }
13978 if test x"$with_png" = xyes -a "$have_libpng" = no; then
13979 as_fn_error $? "libpng support requested but library not found" "$LINENO" 5
13983 # check for system libharfbuzz
13986 # Check whether --with-harfbuzz was given.
13987 if test "${with_harfbuzz+set}" = set; then :
13988 withval=$with_harfbuzz;
13995 if test x"$with_harfbuzz" = xyes -o x"$with_harfbuzz" = xauto; then
13996 harfbuzz_pkg="harfbuzz >= 1.8.0"
13997 have_harfbuzz_pkg=no
13999 if test x"$HARFBUZZ_CFLAGS" = x -a x"$HARFBUZZ_LIBS" = x; then
14000 if test -n "$PKG_CONFIG" && \
14001 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$harfbuzz_pkg\""; } >&5
14002 ($PKG_CONFIG --exists --print-errors "$harfbuzz_pkg") 2>&5
14004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14005 test $ac_status = 0; }; then
14006 have_harfbuzz_pkg=yes
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HARFBUZZ" >&5
14012 $as_echo_n "checking for HARFBUZZ... " >&6; }
14014 if test -n "$HARFBUZZ_CFLAGS"; then
14015 pkg_cv_HARFBUZZ_CFLAGS="$HARFBUZZ_CFLAGS"
14016 elif test -n "$PKG_CONFIG"; then
14017 if test -n "$PKG_CONFIG" && \
14018 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$harfbuzz_pkg\""; } >&5
14019 ($PKG_CONFIG --exists --print-errors "$harfbuzz_pkg") 2>&5
14021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14022 test $ac_status = 0; }; then
14023 pkg_cv_HARFBUZZ_CFLAGS=`$PKG_CONFIG --cflags "$harfbuzz_pkg" 2>/dev/null`
14024 test "x$?" != "x0" && pkg_failed=yes
14031 if test -n "$HARFBUZZ_LIBS"; then
14032 pkg_cv_HARFBUZZ_LIBS="$HARFBUZZ_LIBS"
14033 elif test -n "$PKG_CONFIG"; then
14034 if test -n "$PKG_CONFIG" && \
14035 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$harfbuzz_pkg\""; } >&5
14036 ($PKG_CONFIG --exists --print-errors "$harfbuzz_pkg") 2>&5
14038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14039 test $ac_status = 0; }; then
14040 pkg_cv_HARFBUZZ_LIBS=`$PKG_CONFIG --libs "$harfbuzz_pkg" 2>/dev/null`
14041 test "x$?" != "x0" && pkg_failed=yes
14051 if test $pkg_failed = yes; then
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14053 $as_echo "no" >&6; }
14055 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14056 _pkg_short_errors_supported=yes
14058 _pkg_short_errors_supported=no
14060 if test $_pkg_short_errors_supported = yes; then
14061 HARFBUZZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$harfbuzz_pkg" 2>&1`
14063 HARFBUZZ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$harfbuzz_pkg" 2>&1`
14065 # Put the nasty error message in config.log where it belongs
14066 echo "$HARFBUZZ_PKG_ERRORS" >&5
14069 elif test $pkg_failed = untried; then
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14071 $as_echo "no" >&6; }
14074 HARFBUZZ_CFLAGS=$pkg_cv_HARFBUZZ_CFLAGS
14075 HARFBUZZ_LIBS=$pkg_cv_HARFBUZZ_LIBS
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14077 $as_echo "yes" >&6; }
14078 have_harfbuzz="yes (pkg-config)"
14081 if test $have_harfbuzz_pkg = yes; then
14082 # we have harfbuzz.pc
14083 harfbuzz_reqpriv="$harfbuzz_pkg"
14085 harfbuzz_libsstaticconf=`$PKG_CONFIG --static --libs "$harfbuzz_pkg"`
14089 if test "$have_harfbuzz" != no; then
14090 # HARFBUZZ_CFLAGS and HARFBUZZ_LIBS are set by the user
14091 harfbuzz_libspriv="$HARFBUZZ_LIBS"
14092 harfbuzz_libsstaticconf="$HARFBUZZ_LIBS"
14093 have_harfbuzz="yes (HARFBUZZ_CFLAGS and HARFBUZZ_LIBS)"
14095 # since HarfBuzz is quite a new library we don't fall back to a
14096 # different test; additionally, it has too many dependencies
14102 if test x"$with_harfbuzz" = xyes -a "$have_harfbuzz" = no; then
14103 as_fn_error $? "harfbuzz support requested but library not found" "$LINENO" 5
14107 # check for system libbrotlidec
14110 # Check whether --with-brotli was given.
14111 if test "${with_brotli+set}" = set; then :
14112 withval=$with_brotli;
14119 if test x"$with_brotli" = xyes -o x"$with_brotli" = xauto; then
14120 brotli_pkg="libbrotlidec"
14123 if test x"$BROTLI_CFLAGS" = x -a x"$BROTLI_LIBS" = x; then
14124 if test -n "$PKG_CONFIG" && \
14125 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$brotli_pkg\""; } >&5
14126 ($PKG_CONFIG --exists --print-errors "$brotli_pkg") 2>&5
14128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14129 test $ac_status = 0; }; then
14130 have_brotli_pkg=yes
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BROTLI" >&5
14136 $as_echo_n "checking for BROTLI... " >&6; }
14138 if test -n "$BROTLI_CFLAGS"; then
14139 pkg_cv_BROTLI_CFLAGS="$BROTLI_CFLAGS"
14140 elif test -n "$PKG_CONFIG"; then
14141 if test -n "$PKG_CONFIG" && \
14142 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$brotli_pkg\""; } >&5
14143 ($PKG_CONFIG --exists --print-errors "$brotli_pkg") 2>&5
14145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14146 test $ac_status = 0; }; then
14147 pkg_cv_BROTLI_CFLAGS=`$PKG_CONFIG --cflags "$brotli_pkg" 2>/dev/null`
14148 test "x$?" != "x0" && pkg_failed=yes
14155 if test -n "$BROTLI_LIBS"; then
14156 pkg_cv_BROTLI_LIBS="$BROTLI_LIBS"
14157 elif test -n "$PKG_CONFIG"; then
14158 if test -n "$PKG_CONFIG" && \
14159 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$brotli_pkg\""; } >&5
14160 ($PKG_CONFIG --exists --print-errors "$brotli_pkg") 2>&5
14162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14163 test $ac_status = 0; }; then
14164 pkg_cv_BROTLI_LIBS=`$PKG_CONFIG --libs "$brotli_pkg" 2>/dev/null`
14165 test "x$?" != "x0" && pkg_failed=yes
14175 if test $pkg_failed = yes; then
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14177 $as_echo "no" >&6; }
14179 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14180 _pkg_short_errors_supported=yes
14182 _pkg_short_errors_supported=no
14184 if test $_pkg_short_errors_supported = yes; then
14185 BROTLI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$brotli_pkg" 2>&1`
14187 BROTLI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$brotli_pkg" 2>&1`
14189 # Put the nasty error message in config.log where it belongs
14190 echo "$BROTLI_PKG_ERRORS" >&5
14193 elif test $pkg_failed = untried; then
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14195 $as_echo "no" >&6; }
14198 BROTLI_CFLAGS=$pkg_cv_BROTLI_CFLAGS
14199 BROTLI_LIBS=$pkg_cv_BROTLI_LIBS
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14201 $as_echo "yes" >&6; }
14202 have_brotli="yes (pkg-config)"
14205 if test $have_brotli_pkg = yes; then
14206 # we have libbrotlidec.pc
14207 brotli_reqpriv="$brotli_pkg"
14209 brotli_libsstaticconf=`$PKG_CONFIG --static --libs "$brotli_pkg"`
14213 if test "$have_brotli" != no; then
14214 # BROTLI_CFLAGS and BROTLI_LIBS are set by the user
14215 brotli_libspriv="$BROTLI_LIBS"
14216 brotli_libsstaticconf="$BROTLI_LIBS"
14217 have_brotli="yes (BROTLI_CFLAGS and BROTLI_LIBS)"
14219 # since Brotli is quite a new library we don't fall back to a
14226 if test x"$with_brotli" = xyes -a "$have_brotli" = no; then
14227 as_fn_error $? "brotli support requested but library not found" "$LINENO" 5
14233 # We need `clock_gettime' for the `ftbench' demo program.
14235 # The code is modeled after gnulib's file `clock_time.m4', ignoring
14236 # very old Solaris systems.
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14240 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14241 if ${ac_cv_search_clock_gettime+:} false; then :
14242 $as_echo_n "(cached) " >&6
14244 ac_func_search_save_LIBS=$LIBS
14245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14246 /* end confdefs.h. */
14248 /* Override any GCC internal prototype to avoid an error.
14249 Use char because int might match the return type of a GCC
14250 builtin and then its argument prototype would still apply. */
14254 char clock_gettime ();
14258 return clock_gettime ();
14263 for ac_lib in '' rt; do
14264 if test -z "$ac_lib"; then
14265 ac_res="none required"
14268 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14270 if ac_fn_c_try_link "$LINENO"; then :
14271 ac_cv_search_clock_gettime=$ac_res
14273 rm -f core conftest.err conftest.$ac_objext \
14275 if ${ac_cv_search_clock_gettime+:} false; then :
14279 if ${ac_cv_search_clock_gettime+:} false; then :
14282 ac_cv_search_clock_gettime=no
14284 rm conftest.$ac_ext
14285 LIBS=$ac_func_search_save_LIBS
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14288 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14289 ac_res=$ac_cv_search_clock_gettime
14290 if test "$ac_res" != no; then :
14291 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14292 test "$ac_cv_search_clock_gettime" = "none required" \
14293 || LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
14299 # Some options handling SDKs/archs in CFLAGS should be copied
14300 # to LDFLAGS. Apple TechNote 2137 recommends to include these
14301 # options in CFLAGS but not in LDFLAGS.
14303 save_config_args=$*
14304 set dummy ${CFLAGS}
14306 while test $i -le $#
14311 -isysroot|-arch) # options taking 1 argument
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS and LDFLAGS share ${c} ${a}" >&5
14314 $as_echo_n "checking whether CFLAGS and LDFLAGS share ${c} ${a}... " >&6; }
14315 if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14318 $as_echo "yes" >&6; }
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, copy to LDFLAGS" >&5
14321 $as_echo "no, copy to LDFLAGS" >&6; }
14322 LDFLAGS="${LDFLAGS} ${c} ${a}"
14326 -m32|-m64|-march=*|-mcpu=*) # options taking no argument
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS and LDFLAGS share ${c}" >&5
14328 $as_echo_n "checking whether CFLAGS and LDFLAGS share ${c}... " >&6; }
14329 if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14332 $as_echo "yes" >&6; }
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, copy to LDFLAGS" >&5
14335 $as_echo "no, copy to LDFLAGS" >&6; }
14336 LDFLAGS="${LDFLAGS} ${c}"
14340 # AC_MSG_RESULT([${c} is not copied to LDFLAGS])
14346 set ${save_config_args}
14349 # Whether to use Mac OS resource-based fonts.
14351 ftmac_c="" # src/base/ftmac.c should not be included in makefiles by default
14354 # Check whether --with-old-mac-fonts was given.
14355 if test "${with_old_mac_fonts+set}" = set; then :
14356 withval=$with_old_mac_fonts;
14359 if test x$with_old_mac_fonts = xyes; then
14360 orig_LDFLAGS="${LDFLAGS}"
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CoreServices & ApplicationServices of Mac OS X" >&5
14362 $as_echo_n "checking CoreServices & ApplicationServices of Mac OS X... " >&6; }
14363 ft2_extra_libs="-Wl,-framework,CoreServices -Wl,-framework,ApplicationServices"
14364 LDFLAGS="$LDFLAGS $ft2_extra_libs"
14365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14366 /* end confdefs.h. */
14370 #if defined(__GNUC__) && defined(__APPLE_CC__)
14371 # include <CoreServices/CoreServices.h>
14372 # include <ApplicationServices/ApplicationServices.h>
14374 # include <ConditionalMacros.h>
14375 # include <Files.h>
14394 if ac_fn_c_try_link "$LINENO"; then :
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14396 $as_echo "ok" >&6; }
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OS_INLINE macro is ANSI compatible" >&5
14399 $as_echo_n "checking whether OS_INLINE macro is ANSI compatible... " >&6; }
14400 orig_CFLAGS="$CFLAGS -DFT_MACINTOSH"
14401 CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
14402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14403 /* end confdefs.h. */
14407 #if defined(__GNUC__) && defined(__APPLE_CC__)
14408 # include <CoreServices/CoreServices.h>
14409 # include <ApplicationServices/ApplicationServices.h>
14411 # include <ConditionalMacros.h>
14412 # include <Files.h>
14421 /* OSHostByteOrder() is typed as OS_INLINE */
14422 int32_t os_byte_order = OSHostByteOrder();
14425 if ( OSBigEndian != os_byte_order )
14433 if ac_fn_c_try_compile "$LINENO"; then :
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14435 $as_echo "ok" >&6; }
14436 CFLAGS="$orig_CFLAGS"
14437 CFLAGS="$CFLAGS -DHAVE_ANSI_OS_INLINE=1"
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, ANSI incompatible" >&5
14441 $as_echo "no, ANSI incompatible" >&6; }
14442 CFLAGS="$orig_CFLAGS"
14445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type ResourceIndex" >&5
14447 $as_echo_n "checking type ResourceIndex... " >&6; }
14448 orig_CFLAGS="$CFLAGS"
14449 CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
14450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451 /* end confdefs.h. */
14455 #if defined(__GNUC__) && defined(__APPLE_CC__)
14456 # include <CoreServices/CoreServices.h>
14457 # include <ApplicationServices/ApplicationServices.h>
14459 # include <ConditionalMacros.h>
14460 # include <Files.h>
14461 # include <Resources.h>
14470 ResourceIndex i = 0;
14478 if ac_fn_c_try_compile "$LINENO"; then :
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14480 $as_echo "ok" >&6; }
14481 CFLAGS="$orig_CFLAGS"
14482 CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=1"
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14486 $as_echo "no" >&6; }
14487 CFLAGS="$orig_CFLAGS"
14488 CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=0"
14491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14494 $as_echo "not found" >&6; }
14496 LDFLAGS="${orig_LDFLAGS}"
14497 CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
14499 rm -f core conftest.err conftest.$ac_objext \
14500 conftest$ac_exeext conftest.$ac_ext
14504 CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
14512 # Whether to use FileManager, which is deprecated since Mac OS X 10.4.
14515 # Check whether --with-fsspec was given.
14516 if test "${with_fsspec+set}" = set; then :
14517 withval=$with_fsspec;
14520 if test x$with_fsspec = xno; then
14521 CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
14522 elif test x$with_old_mac_fonts = xyes -a x$with_fsspec != x; then
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FSSpec-based FileManager" >&5
14524 $as_echo_n "checking FSSpec-based FileManager... " >&6; }
14525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14526 /* end confdefs.h. */
14530 #if defined(__GNUC__) && defined(__APPLE_CC__)
14531 # include <CoreServices/CoreServices.h>
14532 # include <ApplicationServices/ApplicationServices.h>
14534 # include <ConditionalMacros.h>
14535 # include <Files.h>
14544 FCBPBPtr paramBlock;
14547 ConstStr255Param fileName;
14551 /* FSSpec functions: deprecated since Mac OS X 10.4 */
14552 PBGetFCBInfoSync( paramBlock );
14553 FSMakeFSSpec( vRefNum, dirID, fileName, spec );
14560 if ac_fn_c_try_link "$LINENO"; then :
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14562 $as_echo "ok" >&6; }
14563 CFLAGS="$CFLAGS -DHAVE_FSSPEC=1"
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14566 $as_echo "not found" >&6; }
14567 CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
14569 rm -f core conftest.err conftest.$ac_objext \
14570 conftest$ac_exeext conftest.$ac_ext
14574 # Whether to use FileManager in Carbon since MacOS 9.x.
14577 # Check whether --with-fsref was given.
14578 if test "${with_fsref+set}" = set; then :
14579 withval=$with_fsref;
14582 if test x$with_fsref = xno; then
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14585 FreeType2 built without FSRef API cannot load
14586 data-fork fonts on MacOS, except of XXX.dfont.
14588 $as_echo "$as_me: WARNING:
14590 FreeType2 built without FSRef API cannot load
14591 data-fork fonts on MacOS, except of XXX.dfont.
14593 CFLAGS="$CFLAGS -DHAVE_FSREF=0"
14594 elif test x$with_old_mac_fonts = xyes -a x$with_fsref != x; then
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FSRef-based FileManager" >&5
14596 $as_echo_n "checking FSRef-based FileManager... " >&6; }
14597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14598 /* end confdefs.h. */
14602 #if defined(__GNUC__) && defined(__APPLE_CC__)
14603 # include <CoreServices/CoreServices.h>
14604 # include <ApplicationServices/ApplicationServices.h>
14606 # include <ConditionalMacros.h>
14607 # include <Files.h>
14618 ConstStr255Param fileName;
14620 Boolean* isDirectory;
14622 SInt16 desiredRefNum;
14624 SInt16* actualRefNum;
14625 HFSUniStr255* outForkName;
14626 FSVolumeRefNum volume;
14627 FSCatalogInfoBitmap whichInfo;
14628 FSCatalogInfo* catalogInfo;
14629 FSForkInfo* forkInfo;
14636 /* FSRef functions: no need to check? */
14637 FSGetForkCBInfo( desiredRefNum, volume, iterator,
14638 actualRefNum, forkInfo, ref,
14640 FSPathMakeRef( path, ref, isDirectory );
14643 FSpMakeFSRef ( spec, ref );
14644 FSGetCatalogInfo( ref, whichInfo, catalogInfo,
14645 outForkName, spec, ref );
14652 if ac_fn_c_try_link "$LINENO"; then :
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14654 $as_echo "ok" >&6; }
14655 CFLAGS="$CFLAGS -DHAVE_FSREF=1"
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14658 $as_echo "not found" >&6; }
14659 CFLAGS="$CFLAGS -DHAVE_FSREF=0"
14661 rm -f core conftest.err conftest.$ac_objext \
14662 conftest$ac_exeext conftest.$ac_ext
14666 # Whether to use QuickDraw API in ToolBox, which is deprecated since
14670 # Check whether --with-quickdraw-toolbox was given.
14671 if test "${with_quickdraw_toolbox+set}" = set; then :
14672 withval=$with_quickdraw_toolbox;
14675 if test x$with_quickdraw_toolbox = xno; then
14676 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
14677 elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_toolbox != x; then
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking QuickDraw FontManager functions in ToolBox" >&5
14679 $as_echo_n "checking QuickDraw FontManager functions in ToolBox... " >&6; }
14680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14681 /* end confdefs.h. */
14685 #if defined(__GNUC__) && defined(__APPLE_CC__)
14686 # include <CoreServices/CoreServices.h>
14687 # include <ApplicationServices/ApplicationServices.h>
14689 # include <ConditionalMacros.h>
14690 # include <Fonts.h>
14700 SInt16 familyID = 0;
14701 FMInput* fmIn = NULL;
14702 FMOutput* fmOut = NULL;
14705 GetFontName( familyID, familyName );
14706 GetFNum( familyName, &familyID );
14707 fmOut = FMSwapFont( fmIn );
14714 if ac_fn_c_try_link "$LINENO"; then :
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14716 $as_echo "ok" >&6; }
14717 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=1"
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14720 $as_echo "not found" >&6; }
14721 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
14723 rm -f core conftest.err conftest.$ac_objext \
14724 conftest$ac_exeext conftest.$ac_ext
14728 # Whether to use QuickDraw API in Carbon, which is deprecated since
14732 # Check whether --with-quickdraw-carbon was given.
14733 if test "${with_quickdraw_carbon+set}" = set; then :
14734 withval=$with_quickdraw_carbon;
14737 if test x$with_quickdraw_carbon = xno; then
14738 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
14739 elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_carbon != x; then
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking QuickDraw FontManager functions in Carbon" >&5
14741 $as_echo_n "checking QuickDraw FontManager functions in Carbon... " >&6; }
14742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14743 /* end confdefs.h. */
14747 #if defined(__GNUC__) && defined(__APPLE_CC__)
14748 # include <CoreServices/CoreServices.h>
14749 # include <ApplicationServices/ApplicationServices.h>
14751 # include <ConditionalMacros.h>
14752 # include <Fonts.h>
14761 FMFontFamilyIterator famIter;
14762 FMFontFamily family;
14764 FMFontFamilyInstanceIterator instIter;
14771 FMCreateFontFamilyIterator( NULL, NULL, kFMUseGlobalScopeOption,
14773 FMGetNextFontFamily( &famIter, &family );
14774 FMGetFontFamilyName( family, famNameStr );
14775 FMCreateFontFamilyInstanceIterator( family, &instIter );
14776 FMGetNextFontFamilyInstance( &instIter, &font, &style, &size );
14777 FMDisposeFontFamilyInstanceIterator( &instIter );
14778 FMDisposeFontFamilyIterator( &famIter );
14779 FMGetFontContainer( font, pathSpec );
14786 if ac_fn_c_try_link "$LINENO"; then :
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14788 $as_echo "ok" >&6; }
14789 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=1"
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14792 $as_echo "not found" >&6; }
14793 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
14795 rm -f core conftest.err conftest.$ac_objext \
14796 conftest$ac_exeext conftest.$ac_ext
14800 # Whether to use AppleTypeService since Mac OS X.
14803 # Check whether --with-ats was given.
14804 if test "${with_ats+set}" = set; then :
14808 if test x$with_ats = xno; then
14809 CFLAGS="$CFLAGS -DHAVE_ATS=0"
14810 elif test x$with_old_mac_fonts = xyes -a x$with_ats != x; then
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AppleTypeService functions" >&5
14812 $as_echo_n "checking AppleTypeService functions... " >&6; }
14813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14814 /* end confdefs.h. */
14818 #if defined(__GNUC__) && defined(__APPLE_CC__)
14819 # include <CoreServices/CoreServices.h>
14820 # include <ApplicationServices/ApplicationServices.h>
14822 # include <ConditionalMacros.h>
14823 # include <Files.h>
14835 ATSFontFindFromName( NULL, kATSOptionFlagsUnRestrictedScope );
14837 ATSFontGetFileSpecification( 0, pathSpec );
14845 if ac_fn_c_try_link "$LINENO"; then :
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14847 $as_echo "ok" >&6; }
14848 CFLAGS="$CFLAGS -DHAVE_ATS=1"
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14851 $as_echo "not found" >&6; }
14852 CFLAGS="$CFLAGS -DHAVE_ATS=0"
14854 rm -f core conftest.err conftest.$ac_objext \
14855 conftest$ac_exeext conftest.$ac_ext
14859 *HAVE_FSSPEC* | *HAVE_FSREF* | *HAVE_QUICKDRAW* | *HAVE_ATS* )
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14862 FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
14863 thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
14865 $as_echo "$as_me: WARNING:
14867 FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
14868 thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
14870 CFLAGS="$CFLAGS "'-I$(TOP_DIR)/builds/mac/'
14876 # Check for Python and docwriter
14882 for ac_prog in python3 python
14884 # Extract the first word of "$ac_prog", so it can be a program name with args.
14885 set dummy $ac_prog; ac_word=$2
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14887 $as_echo_n "checking for $ac_word... " >&6; }
14888 if ${ac_cv_prog_PYTHON+:} false; then :
14889 $as_echo_n "(cached) " >&6
14891 if test -n "$PYTHON"; then
14892 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
14894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14895 for as_dir in $PATH
14898 test -z "$as_dir" && as_dir=.
14899 for ac_exec_ext in '' $ac_executable_extensions; do
14900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14901 ac_cv_prog_PYTHON="$ac_prog"
14902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14911 PYTHON=$ac_cv_prog_PYTHON
14912 if test -n "$PYTHON"; then
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14914 $as_echo "$PYTHON" >&6; }
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14917 $as_echo "no" >&6; }
14921 test -n "$PYTHON" && break
14923 test -n "$PYTHON" || PYTHON="missing"
14925 if test "x$PYTHON" != "xmissing"; then
14930 if test -n "$PYTHON"; then :
14932 ax_python_version="3.5"
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python version" >&5
14935 $as_echo_n "checking for python version... " >&6; }
14937 python_version=`$PYTHON -V 2>&1 | $GREP "^Python " | $SED -e 's/^.* \([0-9]*\.[0-9]*\.[0-9]*\)/\1/'`
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_version" >&5
14940 $as_echo "$python_version" >&6; }
14942 PYTHON_VERSION=$python_version
14948 # Used to indicate true or false condition
14949 ax_compare_version=false
14951 # Convert the two version strings to be compared into a format that
14952 # allows a simple string comparison. The end result is that a version
14953 # string of the form 1.12.5-r617 will be converted to the form
14954 # 0001001200050617. In other words, each number is zero padded to four
14955 # digits, and non digits are removed.
14957 ax_compare_version_A=`echo "$ax_python_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14958 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14959 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14960 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14964 ax_compare_version_B=`echo "$python_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14965 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14966 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14967 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14971 ax_compare_version=`echo "x$ax_compare_version_A
14972 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
14976 if test "$ax_compare_version" = "true" ; then
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the python interpreter" >&5
14991 $as_echo "$as_me: WARNING: could not find the python interpreter" >&2;}
14997 if test "x$have_py3" = "xyes"; then
14998 PIP="$PYTHON -m $PIP"
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \`docwriter' Python module" >&5
15000 $as_echo_n "checking for \`docwriter' Python module... " >&6; }
15001 $PYTHON -m docwriter -h > /dev/null 2>&1
15002 if test "x$?" = "x0"; then
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15005 $as_echo "yes" >&6; }
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15008 $as_echo "no" >&6; }
15014 # entries in Requires.private are separated by commas
15015 REQUIRES_PRIVATE="$zlib_reqpriv, \
15018 $harfbuzz_reqpriv, \
15021 REQUIRES_PRIVATE=`echo "$REQUIRES_PRIVATE" \
15022 | sed -e 's/^ *//' \
15030 LIBS_PRIVATE="$zlib_libspriv \
15033 $harfbuzz_libspriv \
15037 LIBS_PRIVATE=`echo "$LIBS_PRIVATE" \
15038 | sed -e 's/^ *//' \
15042 LIBSSTATIC_CONFIG="-lfreetype \
15043 $zlib_libsstaticconf \
15044 $bzip2_libsstaticconf \
15045 $libpng_libsstaticconf \
15046 $harfbuzz_libsstaticconf \
15047 $brotli_libsstaticconf \
15049 # remove -L/usr/lib and -L/usr/lib64 since `freetype-config' adds them later
15050 # on if necessary; also beautify
15051 LIBSSTATIC_CONFIG=`echo "$LIBSSTATIC_CONFIG" \
15052 | sed -e 's|-L */usr/lib64/* | |g' \
15053 -e 's|-L */usr/lib/* | |g' \
15069 # changing LDFLAGS value should only be done after
15070 # lt_cv_prog_compiler_static_works test
15074 regexp="-e \\\"s|.*#.*def.*$1.*|#define $1|\\\""
15075 FTOPTION_H_SED="$FTOPTION_H_SED $regexp"
15080 regexp="-e \\\"s|.*#.*def.*$1.*|/* #undef $1 */|\\\""
15081 FTOPTION_H_SED="$FTOPTION_H_SED $regexp"
15084 if test "$have_zlib" != no; then
15085 CFLAGS="$CFLAGS $ZLIB_CFLAGS"
15086 LDFLAGS="$LDFLAGS $ZLIB_LIBS"
15087 ftoption_set FT_CONFIG_OPTION_SYSTEM_ZLIB
15089 ftoption_unset FT_CONFIG_OPTION_SYSTEM_ZLIB
15091 if test "$have_bzip2" != no; then
15092 CFLAGS="$CFLAGS $BZIP2_CFLAGS"
15093 LDFLAGS="$LDFLAGS $BZIP2_LIBS"
15094 ftoption_set FT_CONFIG_OPTION_USE_BZIP2
15096 ftoption_unset FT_CONFIG_OPTION_USE_BZIP2
15098 if test "$have_libpng" != no; then
15099 CFLAGS="$CFLAGS $LIBPNG_CFLAGS"
15100 LDFLAGS="$LDFLAGS $LIBPNG_LIBS"
15101 ftoption_set FT_CONFIG_OPTION_USE_PNG
15103 ftoption_unset FT_CONFIG_OPTION_USE_PNG
15105 if test "$have_harfbuzz" != no; then
15106 CFLAGS="$CFLAGS $HARFBUZZ_CFLAGS"
15107 LDFLAGS="$LDFLAGS $HARFBUZZ_LIBS"
15108 ftoption_set FT_CONFIG_OPTION_USE_HARFBUZZ
15110 ftoption_unset FT_CONFIG_OPTION_USE_HARFBUZZ
15112 if test "$have_brotli" != no; then
15113 CFLAGS="$CFLAGS $BROTLI_CFLAGS"
15114 LDFLAGS="$LDFLAGS $BROTLI_LIBS"
15115 ftoption_set FT_CONFIG_OPTION_USE_BROTLI
15117 ftoption_unset FT_CONFIG_OPTION_USE_BROTLI
15123 # We don't want to use a template file for `ftoption.h', since compilation
15124 # should work without calling a configure script also. For this reason, we
15125 # copy the `include/freetype/config/ftoption.h' file to the `unix/builds'
15126 # directory (using a dummy `AC_CONFIG_FILES' call) and apply the just
15127 # constructed $FTOPTION_H_SED regexp (using the post-action of
15128 # `AC_CONFIG_FILES'); this is also the version that gets installed later on.
15130 ac_config_files="$ac_config_files ftoption.h:${srcdir}/../../include/freetype/config/ftoption.h"
15133 ac_config_headers="$ac_config_headers ftconfig.h"
15136 # create the Unix-specific sub-Makefiles `builds/unix/unix-def.mk'
15137 # and `builds/unix/unix-cc.mk' that will be used by the build system
15139 ac_config_files="$ac_config_files unix-cc.mk:unix-cc.in unix-def.mk:unix-def.in"
15142 cat >confcache <<\_ACEOF
15143 # This file is a shell script that caches the results of configure
15144 # tests run on this system so they can be shared between configure
15145 # scripts and configure runs, see configure's option --config-cache.
15146 # It is not useful on other systems. If it contains results you don't
15147 # want to keep, you may remove or edit it.
15149 # config.status only pays attention to the cache file if you give it
15150 # the --recheck option to rerun configure.
15152 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15153 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15154 # following values.
15158 # The following way of writing the cache mishandles newlines in values,
15159 # but we know of no workaround that is simple, portable, and efficient.
15160 # So, we kill variables containing newlines.
15161 # Ultrix sh set writes to stderr and can't be redirected directly,
15162 # and sets the high bit in the cache file unless we assign to the vars.
15164 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15165 eval ac_val=\$$ac_var
15169 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15170 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15173 _ | IFS | as_nl) ;; #(
15174 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15175 *) { eval $ac_var=; unset $ac_var;} ;;
15181 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15182 *${as_nl}ac_space=\ *)
15183 # `set' does not quote correctly, so add quotes: double-quote
15184 # substitution turns \\\\ into \\, and sed turns \\ into \.
15187 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15190 # `set' quotes correctly as required by POSIX, so do not add quotes.
15191 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15200 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15202 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15204 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15205 if test -w "$cache_file"; then
15206 if test "x$cache_file" != "x/dev/null"; then
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15208 $as_echo "$as_me: updating cache $cache_file" >&6;}
15209 if test ! -f "$cache_file" || test -h "$cache_file"; then
15210 cat confcache >"$cache_file"
15212 case $cache_file in #(
15214 mv -f confcache "$cache_file"$$ &&
15215 mv -f "$cache_file"$$ "$cache_file" ;; #(
15217 mv -f confcache "$cache_file" ;;
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15223 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15228 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15229 # Let make expand exec_prefix.
15230 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15232 DEFS=-DHAVE_CONFIG_H
15237 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15238 # 1. Remove the extension, and $U if already installed.
15239 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15240 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15241 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15242 # will be set to the directory where LIBOBJS objects are built.
15243 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15244 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15246 LIBOBJS=$ac_libobjs
15248 LTLIBOBJS=$ac_ltlibobjs
15252 : "${CONFIG_STATUS=./config.status}"
15254 ac_clean_files_save=$ac_clean_files
15255 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15257 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15259 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15261 # Generated by $as_me.
15262 # Run this file to recreate the current configuration.
15263 # Compiler output produced by configure, useful for debugging
15264 # configure, is in config.log if it exists.
15267 ac_cs_recheck=false
15270 SHELL=\${CONFIG_SHELL-$SHELL}
15273 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15274 ## -------------------- ##
15275 ## M4sh Initialization. ##
15276 ## -------------------- ##
15278 # Be more Bourne compatible
15279 DUALCASE=1; export DUALCASE # for MKS sh
15280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15284 # is contrary to our usage. Disable this feature.
15285 alias -g '${1+"$@"}'='"$@"'
15286 setopt NO_GLOB_SUBST
15288 case `(set -o) 2>/dev/null` in #(
15300 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15301 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15302 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15303 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15304 # Prefer a ksh shell builtin over an external printf program on Solaris,
15305 # but without wasting forks for bash or zsh.
15306 if test -z "$BASH_VERSION$ZSH_VERSION" \
15307 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15308 as_echo='print -r --'
15309 as_echo_n='print -rn --'
15310 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15311 as_echo='printf %s\n'
15312 as_echo_n='printf %s'
15314 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15315 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15316 as_echo_n='/usr/ucb/echo -n'
15318 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15319 as_echo_n_body='eval
15323 expr "X$arg" : "X\\(.*\\)$as_nl";
15324 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15326 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15328 export as_echo_n_body
15329 as_echo_n='sh -c $as_echo_n_body as_echo'
15331 export as_echo_body
15332 as_echo='sh -c $as_echo_body as_echo'
15335 # The user is always right.
15336 if test "${PATH_SEPARATOR+set}" != set; then
15338 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15339 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15346 # We need space, tab and new line, in precisely that order. Quoting is
15347 # there to prevent editors from complaining about space-tab.
15348 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15349 # splitting by setting IFS to empty value.)
15352 # Find who we are. Look in the path if we contain no directory separator.
15355 *[\\/]* ) as_myself=$0 ;;
15356 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15357 for as_dir in $PATH
15360 test -z "$as_dir" && as_dir=.
15361 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15367 # We did not find ourselves, most probably we were run as `sh COMMAND'
15368 # in which case we are not to be found in the path.
15369 if test "x$as_myself" = x; then
15372 if test ! -f "$as_myself"; then
15373 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15377 # Unset variables that we do not need and which cause bugs (e.g. in
15378 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15379 # suppresses any "Segmentation fault" message there. '((' could
15380 # trigger a bug in pdksh 5.2.14.
15381 for as_var in BASH_ENV ENV MAIL MAILPATH
15382 do eval test x\${$as_var+set} = xset \
15383 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15396 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15399 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15400 # ----------------------------------------
15401 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15402 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15403 # script with STATUS, using 1 if that was 0.
15406 as_status=$1; test $as_status -eq 0 && as_status=1
15408 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15409 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15411 $as_echo "$as_me: error: $2" >&2
15412 as_fn_exit $as_status
15416 # as_fn_set_status STATUS
15417 # -----------------------
15418 # Set $? to STATUS, without forking.
15419 as_fn_set_status ()
15422 } # as_fn_set_status
15424 # as_fn_exit STATUS
15425 # -----------------
15426 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15430 as_fn_set_status $1
15436 # Portably unset VAR.
15439 { eval $1=; unset $1;}
15441 as_unset=as_fn_unset
15442 # as_fn_append VAR VALUE
15443 # ----------------------
15444 # Append the text in VALUE to the end of the definition contained in VAR. Take
15445 # advantage of any shell optimizations that allow amortized linear growth over
15446 # repeated appends, instead of the typical quadratic growth present in naive
15448 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15449 eval 'as_fn_append ()
15460 # as_fn_arith ARG...
15461 # ------------------
15462 # Perform arithmetic evaluation on the ARGs, and store the result in the
15463 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15464 # must be portable across $(()) and expr.
15465 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15466 eval 'as_fn_arith ()
15473 as_val=`expr "$@" || test $? -eq 1`
15478 if expr a : '\(a\)' >/dev/null 2>&1 &&
15479 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15485 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15486 as_basename=basename
15491 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15497 as_me=`$as_basename -- "$0" ||
15498 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15499 X"$0" : 'X\(//\)$' \| \
15500 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15502 sed '/^.*\/\([^/][^/]*\)\/*$/{
15516 # Avoid depending upon Character Ranges.
15517 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15518 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15519 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15520 as_cr_digits='0123456789'
15521 as_cr_alnum=$as_cr_Letters$as_cr_digits
15523 ECHO_C= ECHO_N= ECHO_T=
15524 case `echo -n x` in #(((((
15526 case `echo 'xy\c'` in
15527 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15529 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15536 rm -f conf$$ conf$$.exe conf$$.file
15537 if test -d conf$$.dir; then
15538 rm -f conf$$.dir/conf$$.file
15541 mkdir conf$$.dir 2>/dev/null
15543 if (echo >conf$$.file) 2>/dev/null; then
15544 if ln -s conf$$.file conf$$ 2>/dev/null; then
15546 # ... but there are two gotchas:
15547 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15548 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15549 # In both cases, we have to default to `cp -pR'.
15550 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15552 elif ln conf$$.file conf$$ 2>/dev/null; then
15560 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15561 rmdir conf$$.dir 2>/dev/null
15566 # Create "$as_dir" as a directory, including parents if necessary.
15571 -*) as_dir=./$as_dir;;
15573 test -d "$as_dir" || eval $as_mkdir_p || {
15577 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15578 *) as_qdir=$as_dir;;
15580 as_dirs="'$as_qdir' $as_dirs"
15581 as_dir=`$as_dirname -- "$as_dir" ||
15582 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15583 X"$as_dir" : 'X\(//\)[^/]' \| \
15584 X"$as_dir" : 'X\(//\)$' \| \
15585 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15586 $as_echo X"$as_dir" |
15587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15591 /^X\(\/\/\)[^/].*/{
15604 test -d "$as_dir" && break
15606 test -z "$as_dirs" || eval "mkdir $as_dirs"
15607 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15611 if mkdir -p . 2>/dev/null; then
15612 as_mkdir_p='mkdir -p "$as_dir"'
15614 test -d ./-p && rmdir ./-p
15619 # as_fn_executable_p FILE
15620 # -----------------------
15621 # Test if FILE is an executable regular file.
15622 as_fn_executable_p ()
15624 test -f "$1" && test -x "$1"
15625 } # as_fn_executable_p
15626 as_test_x='test -x'
15627 as_executable_p=as_fn_executable_p
15629 # Sed expression to map a string onto a valid CPP name.
15630 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15632 # Sed expression to map a string onto a valid variable name.
15633 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15637 ## ----------------------------------- ##
15638 ## Main body of $CONFIG_STATUS script. ##
15639 ## ----------------------------------- ##
15641 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15644 # Save the log message, to keep $0 and so on meaningful, and to
15645 # report actual input values of CONFIG_FILES etc. instead of their
15646 # values after options handling.
15648 This file was extended by FreeType $as_me 2.10.4, which was
15649 generated by GNU Autoconf 2.69. Invocation command line was
15651 CONFIG_FILES = $CONFIG_FILES
15652 CONFIG_HEADERS = $CONFIG_HEADERS
15653 CONFIG_LINKS = $CONFIG_LINKS
15654 CONFIG_COMMANDS = $CONFIG_COMMANDS
15657 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15662 case $ac_config_files in *"
15663 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15666 case $ac_config_headers in *"
15667 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15672 # Files that config.status was made for.
15673 config_files="$ac_config_files"
15674 config_headers="$ac_config_headers"
15675 config_commands="$ac_config_commands"
15679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15681 \`$as_me' instantiates files and other configuration actions
15682 from templates according to the current configuration. Unless the files
15683 and actions are specified as TAGs, all are instantiated by default.
15685 Usage: $0 [OPTION]... [TAG]...
15687 -h, --help print this help, then exit
15688 -V, --version print version number and configuration settings, then exit
15689 --config print configuration, then exit
15690 -q, --quiet, --silent
15691 do not print progress messages
15692 -d, --debug don't remove temporary files
15693 --recheck update $as_me by reconfiguring in the same conditions
15694 --file=FILE[:TEMPLATE]
15695 instantiate the configuration file FILE
15696 --header=FILE[:TEMPLATE]
15697 instantiate the configuration header FILE
15699 Configuration files:
15702 Configuration headers:
15705 Configuration commands:
15708 Report bugs to <freetype@nongnu.org>."
15711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15712 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15714 FreeType config.status 2.10.4
15715 configured by $0, generated by GNU Autoconf 2.69,
15716 with options \\"\$ac_cs_config\\"
15718 Copyright (C) 2012 Free Software Foundation, Inc.
15719 This config.status script is free software; the Free Software Foundation
15720 gives unlimited permission to copy, distribute and modify it."
15727 test -n "\$AWK" || AWK=awk
15730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15731 # The default lists apply if the user does not specify any file.
15737 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15738 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15742 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15754 # Handling of the options.
15755 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15757 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15758 $as_echo "$ac_cs_version"; exit ;;
15759 --config | --confi | --conf | --con | --co | --c )
15760 $as_echo "$ac_cs_config"; exit ;;
15761 --debug | --debu | --deb | --de | --d | -d )
15763 --file | --fil | --fi | --f )
15766 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15767 '') as_fn_error $? "missing file argument" ;;
15769 as_fn_append CONFIG_FILES " '$ac_optarg'"
15770 ac_need_defaults=false;;
15771 --header | --heade | --head | --hea )
15774 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15776 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15777 ac_need_defaults=false;;
15779 # Conflict between --help and --header
15780 as_fn_error $? "ambiguous option: \`$1'
15781 Try \`$0 --help' for more information.";;
15782 --help | --hel | -h )
15783 $as_echo "$ac_cs_usage"; exit ;;
15784 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15785 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15788 # This is an error.
15789 -*) as_fn_error $? "unrecognized option: \`$1'
15790 Try \`$0 --help' for more information." ;;
15792 *) as_fn_append ac_config_targets " $1"
15793 ac_need_defaults=false ;;
15799 ac_configure_extra_args=
15801 if $ac_cs_silent; then
15803 ac_configure_extra_args="$ac_configure_extra_args --silent"
15807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15808 if \$ac_cs_recheck; then
15809 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15811 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15812 CONFIG_SHELL='$SHELL'
15813 export CONFIG_SHELL
15818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15822 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15823 ## Running $as_me. ##
15829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15835 # The HP-UX ksh and POSIX shell print the target directory to stdout
15836 # if CDPATH is set.
15837 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15839 sed_quote_subst='$sed_quote_subst'
15840 double_quote_subst='$double_quote_subst'
15841 delay_variable_subst='$delay_variable_subst'
15842 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15843 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15844 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15845 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15846 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15847 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15848 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15849 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15850 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15851 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15852 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15853 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15854 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15855 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15856 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15857 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15858 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15859 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15860 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15861 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15862 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15863 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15864 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15865 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15866 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15867 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15868 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15869 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15870 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15871 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15872 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15873 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15874 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15875 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15876 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15877 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15878 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15879 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15880 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15881 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15882 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15883 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15884 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15885 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15886 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15887 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15888 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15889 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15890 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15891 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15892 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15893 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15894 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15895 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15896 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15897 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15898 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15899 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15900 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15901 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"`'
15902 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15903 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15904 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15905 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15906 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15907 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15908 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15909 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15910 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15911 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15912 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15913 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15914 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15915 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15916 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15917 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15918 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15919 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15920 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15921 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15922 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15923 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15924 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15925 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15926 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15927 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15928 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15929 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15930 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15931 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15932 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15933 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15934 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15935 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15936 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15937 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15938 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15939 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15940 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15941 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15942 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15943 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15944 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15945 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15946 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15947 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15948 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15949 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15950 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15951 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15952 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15953 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15954 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15955 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15956 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15957 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15958 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15959 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15960 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15961 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15962 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15963 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15964 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15965 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15966 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15967 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15968 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15969 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15970 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15971 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15972 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15973 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15974 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15975 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15976 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15977 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15978 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
15979 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
15980 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
15981 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
15982 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
15983 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
15984 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
15985 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
15986 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
15987 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
15988 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
15989 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
15990 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
15991 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
15992 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
15993 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
15994 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
15995 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
15996 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
15997 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
15998 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
15999 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
16000 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
16001 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
16002 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
16003 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
16004 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
16005 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
16006 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
16007 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
16008 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
16009 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
16010 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
16011 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
16012 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
16013 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
16014 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
16015 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
16016 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
16017 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
16018 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
16019 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
16022 LTCFLAGS='$LTCFLAGS'
16023 compiler='$compiler_DEFAULT'
16025 # A function that is used when there is no print builtin or printf.
16026 func_fallback_echo ()
16028 eval 'cat <<_LTECHO_EOF
16033 # Quote evaled strings.
16050 deplibs_check_method \
16054 sharedlib_from_linklib_cmd \
16057 archiver_list_spec \
16063 lt_cv_sys_global_symbol_pipe \
16064 lt_cv_sys_global_symbol_to_cdecl \
16065 lt_cv_sys_global_symbol_to_import \
16066 lt_cv_sys_global_symbol_to_c_name_address \
16067 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16068 lt_cv_nm_interface \
16069 nm_file_list_spec \
16070 lt_cv_truncate_bin \
16071 lt_prog_compiler_no_builtin_flag \
16072 lt_prog_compiler_pic \
16073 lt_prog_compiler_wl \
16074 lt_prog_compiler_static \
16075 lt_cv_prog_compiler_c_o \
16084 export_dynamic_flag_spec \
16085 whole_archive_flag_spec \
16086 compiler_needs_object \
16088 allow_undefined_flag \
16089 no_undefined_flag \
16090 hardcode_libdir_flag_spec \
16091 hardcode_libdir_separator \
16095 variables_saved_for_relink \
16097 library_names_spec \
16099 install_override_mode \
16106 lt_prog_compiler_no_builtin_flag_RC \
16107 lt_prog_compiler_pic_RC \
16108 lt_prog_compiler_wl_RC \
16109 lt_prog_compiler_static_RC \
16110 lt_cv_prog_compiler_c_o_RC \
16111 export_dynamic_flag_spec_RC \
16112 whole_archive_flag_spec_RC \
16113 compiler_needs_object_RC \
16115 allow_undefined_flag_RC \
16116 no_undefined_flag_RC \
16117 hardcode_libdir_flag_spec_RC \
16118 hardcode_libdir_separator_RC \
16119 exclude_expsyms_RC \
16120 include_expsyms_RC \
16121 file_list_spec_RC; do
16122 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16123 *[\\\\\\\`\\"\\\$]*)
16124 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16127 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16132 # Double-quote double-evaled strings.
16133 for var in reload_cmds \
16134 old_postinstall_cmds \
16135 old_postuninstall_cmds \
16137 extract_expsyms_cmds \
16138 old_archive_from_new_cmds \
16139 old_archive_from_expsyms_cmds \
16141 archive_expsym_cmds \
16143 module_expsym_cmds \
16144 export_symbols_cmds \
16148 postuninstall_cmds \
16150 sys_lib_search_path_spec \
16151 configure_time_dlsearch_path \
16152 configure_time_lt_sys_library_path \
16154 old_archive_cmds_RC \
16155 old_archive_from_new_cmds_RC \
16156 old_archive_from_expsyms_cmds_RC \
16158 archive_expsym_cmds_RC \
16160 module_expsym_cmds_RC \
16161 export_symbols_cmds_RC \
16163 postlink_cmds_RC; do
16164 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16165 *[\\\\\\\`\\"\\\$]*)
16166 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16169 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16174 ac_aux_dir='$ac_aux_dir'
16176 # See if we are running on zsh, and set the options that allow our
16177 # commands through without removal of \ escapes INIT.
16178 if test -n "\${ZSH_VERSION+set}"; then
16179 setopt NO_GLOB_SUBST
16192 FTOPTION_H_SED="$FTOPTION_H_SED"
16196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16198 # Handling of arguments.
16199 for ac_config_target in $ac_config_targets
16201 case $ac_config_target in
16202 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16203 "ftoption.h") CONFIG_FILES="$CONFIG_FILES ftoption.h:${srcdir}/../../include/freetype/config/ftoption.h" ;;
16204 "ftconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS ftconfig.h" ;;
16205 "unix-cc.mk") CONFIG_FILES="$CONFIG_FILES unix-cc.mk:unix-cc.in" ;;
16206 "unix-def.mk") CONFIG_FILES="$CONFIG_FILES unix-def.mk:unix-def.in" ;;
16208 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16213 # If the user did not use the arguments to specify the items to instantiate,
16214 # then the envvar interface is used. Set only those that are not.
16215 # We use the long form for the default assignment because of an extremely
16216 # bizarre bug on SunOS 4.1.3.
16217 if $ac_need_defaults; then
16218 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16219 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16220 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16223 # Have a temporary directory for convenience. Make it in the build tree
16224 # simply because there is no reason against having it here, and in addition,
16225 # creating and moving files from /tmp can sometimes cause problems.
16226 # Hook for its removal unless debugging.
16227 # Note that there is a small window in which the directory will not be cleaned:
16228 # after its creation but before its name has been assigned to `$tmp'.
16232 trap 'exit_status=$?
16233 : "${ac_tmp:=$tmp}"
16234 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16236 trap 'as_fn_exit 1' 1 2 13 15
16238 # Create a (secure) tmp directory for tmp files.
16241 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16245 tmp=./conf$$-$RANDOM
16246 (umask 077 && mkdir "$tmp")
16247 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16250 # Set up the scripts for CONFIG_FILES section.
16251 # No need to generate them if there are no CONFIG_FILES.
16252 # This happens for instance with `./config.status config.h'.
16253 if test -n "$CONFIG_FILES"; then
16256 ac_cr=`echo X | tr X '\015'`
16257 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16258 # But we know of no other shell where ac_cr would be empty at this
16259 # point, so we can use a bashism as a fallback.
16260 if test "x$ac_cr" = x; then
16261 eval ac_cr=\$\'\\r\'
16263 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16264 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16267 ac_cs_awk_cr=$ac_cr
16270 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16275 echo "cat >conf$$subs.awk <<_ACEOF" &&
16276 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16278 } >conf$$subs.sh ||
16279 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16280 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16282 for ac_last_try in false false false false false :; do
16283 . ./conf$$subs.sh ||
16284 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16286 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16287 if test $ac_delim_n = $ac_delim_num; then
16289 elif $ac_last_try; then
16290 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16292 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16295 rm -f conf$$subs.sh
16297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16298 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16302 s/^/S["/; s/!.*/"]=/
16312 s/\(.\{148\}\)..*/\1/
16314 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16319 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16326 s/\(.\{148\}\)..*/\1/
16328 s/["\\]/\\&/g; s/^/"/; s/$/"/
16332 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16337 ' <conf$$subs.awk | sed '
16342 ' >>$CONFIG_STATUS || ac_write_fail=1
16343 rm -f conf$$subs.awk
16344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16346 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16347 for (key in S) S_is_set[key] = 1
16353 nfields = split(line, field, "@")
16355 len = length(field[1])
16356 for (i = 2; i < nfields; i++) {
16358 keylen = length(key)
16359 if (S_is_set[key]) {
16361 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16362 len += length(value) + length(field[++i])
16373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16374 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16375 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16378 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16379 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16382 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16383 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16384 # trailing colons and then remove the whole line if VPATH becomes empty
16385 # (actually we leave an empty line to preserve line numbers).
16386 if test "x$srcdir" = x.; then
16387 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16406 fi # test -n "$CONFIG_FILES"
16408 # Set up the scripts for CONFIG_HEADERS section.
16409 # No need to generate them if there are no CONFIG_HEADERS.
16410 # This happens for instance with `./config.status Makefile'.
16411 if test -n "$CONFIG_HEADERS"; then
16412 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16416 # Transform confdefs.h into an awk script `defines.awk', embedded as
16417 # here-document in config.status, that substitutes the proper values into
16418 # config.h.in to produce config.h.
16420 # Create a delimiter string that does not exist in confdefs.h, to ease
16421 # handling of long lines.
16423 for ac_last_try in false false :; do
16424 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16425 if test -z "$ac_tt"; then
16427 elif $ac_last_try; then
16428 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16430 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16434 # For the awk script, D is an array of macro values keyed by name,
16435 # likewise P contains macro parameters if any. Preserve backslash
16436 # newline sequences.
16438 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16440 s/.\{148\}/&'"$ac_delim"'/g
16443 s/^[ ]*#[ ]*define[ ][ ]*/ /
16450 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16452 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16456 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16457 D["\1"]=" \3\\\\\\n"\\/p
16459 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16464 s/.\{148\}/&'"$ac_delim"'/g
16469 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16472 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16474 ' <confdefs.h | sed '
16475 s/'"$ac_delim"'/"\\\
16476 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16479 for (key in D) D_is_set[key] = 1
16482 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16484 split(line, arg, " ")
16485 if (arg[1] == "#") {
16489 defundef = substr(arg[1], 2)
16492 split(mac1, mac2, "(") #)
16494 prefix = substr(line, 1, index(line, defundef) - 1)
16495 if (D_is_set[macro]) {
16496 # Preserve the white space surrounding the "#".
16497 print prefix "define", macro P[macro] D[macro]
16500 # Replace #undef with comments. This is necessary, for example,
16501 # in the case of _POSIX_SOURCE, which is predefined and required
16502 # on some systems where configure will not decide to define it.
16503 if (defundef == "undef") {
16504 print "/*", prefix defundef, macro, "*/"
16512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16513 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16514 fi # test -n "$CONFIG_HEADERS"
16517 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16522 :[FHLC]) ac_mode=$ac_tag; continue;;
16524 case $ac_mode$ac_tag in
16526 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16527 :[FH]-) ac_tag=-:-;;
16528 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16545 -) ac_f="$ac_tmp/stdin";;
16546 *) # Look for the file first in the build tree, then in the source tree
16547 # (if the path is not absolute). The absolute path cannot be DOS-style,
16548 # because $ac_f cannot contain `:'.
16552 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16554 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16556 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16557 as_fn_append ac_file_inputs " '$ac_f'"
16560 # Let's still pretend it is `configure' which instantiates (i.e., don't
16561 # use $as_me), people would be surprised to read:
16562 # /* config.h. Generated by config.status. */
16563 configure_input='Generated from '`
16564 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16566 if test x"$ac_file" != x-; then
16567 configure_input="$ac_file. $configure_input"
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16569 $as_echo "$as_me: creating $ac_file" >&6;}
16571 # Neutralize special characters interpreted by sed in replacement strings.
16572 case $configure_input in #(
16573 *\&* | *\|* | *\\* )
16574 ac_sed_conf_input=`$as_echo "$configure_input" |
16575 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16576 *) ac_sed_conf_input=$configure_input;;
16580 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16581 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16586 ac_dir=`$as_dirname -- "$ac_file" ||
16587 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16588 X"$ac_file" : 'X\(//\)[^/]' \| \
16589 X"$ac_file" : 'X\(//\)$' \| \
16590 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16591 $as_echo X"$ac_file" |
16592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16596 /^X\(\/\/\)[^/].*/{
16609 as_dir="$ac_dir"; as_fn_mkdir_p
16613 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16615 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16616 # A ".." for each directory in $ac_dir_suffix.
16617 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16618 case $ac_top_builddir_sub in
16619 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16620 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16623 ac_abs_top_builddir=$ac_pwd
16624 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16625 # for backward compatibility:
16626 ac_top_builddir=$ac_top_build_prefix
16629 .) # We are building in place.
16631 ac_top_srcdir=$ac_top_builddir_sub
16632 ac_abs_top_srcdir=$ac_pwd ;;
16633 [\\/]* | ?:[\\/]* ) # Absolute name.
16634 ac_srcdir=$srcdir$ac_dir_suffix;
16635 ac_top_srcdir=$srcdir
16636 ac_abs_top_srcdir=$srcdir ;;
16637 *) # Relative name.
16638 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16639 ac_top_srcdir=$ac_top_build_prefix$srcdir
16640 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16642 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16652 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16653 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16655 ac_MKDIR_P=$MKDIR_P
16657 [\\/$]* | ?:[\\/]* ) ;;
16658 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16663 # If the template does not know about datarootdir, expand it.
16664 # FIXME: This hack should be removed a few years after 2.60.
16665 ac_datarootdir_hack=; ac_datarootdir_seen=
16676 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16677 *datarootdir*) ac_datarootdir_seen=yes;;
16678 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16680 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16683 ac_datarootdir_hack='
16684 s&@datadir@&$datadir&g
16685 s&@docdir@&$docdir&g
16686 s&@infodir@&$infodir&g
16687 s&@localedir@&$localedir&g
16688 s&@mandir@&$mandir&g
16689 s&\\\${datarootdir}&$datarootdir&g' ;;
16693 # Neutralize VPATH when `$srcdir' = `.'.
16694 # Shell code in configure.ac might set extrasub.
16695 # FIXME: do we really want to maintain this feature?
16696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16697 ac_sed_extra="$ac_vpsub
16700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16702 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16703 s|@configure_input@|$ac_sed_conf_input|;t t
16704 s&@top_builddir@&$ac_top_builddir_sub&;t t
16705 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16706 s&@srcdir@&$ac_srcdir&;t t
16707 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16708 s&@top_srcdir@&$ac_top_srcdir&;t t
16709 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16710 s&@builddir@&$ac_builddir&;t t
16711 s&@abs_builddir@&$ac_abs_builddir&;t t
16712 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16713 s&@INSTALL@&$ac_INSTALL&;t t
16714 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16715 $ac_datarootdir_hack
16717 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16718 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16720 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16721 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16722 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16723 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16725 which seems to be undefined. Please make sure it is defined" >&5
16726 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16727 which seems to be undefined. Please make sure it is defined" >&2;}
16729 rm -f "$ac_tmp/stdin"
16731 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16732 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16734 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16740 if test x"$ac_file" != x-; then
16742 $as_echo "/* $configure_input */" \
16743 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16744 } >"$ac_tmp/config.h" \
16745 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16746 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16748 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16751 mv "$ac_tmp/config.h" "$ac_file" \
16752 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16755 $as_echo "/* $configure_input */" \
16756 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16757 || as_fn_error $? "could not create -" "$LINENO" 5
16761 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16762 $as_echo "$as_me: executing $ac_file commands" >&6;}
16767 case $ac_file$ac_mode in
16770 # See if we are running on zsh, and set the options that allow our
16771 # commands through without removal of \ escapes.
16772 if test -n "${ZSH_VERSION+set}"; then
16773 setopt NO_GLOB_SUBST
16777 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16780 cat <<_LT_EOF >> "$cfgfile"
16782 # Generated automatically by $as_me ($PACKAGE) $VERSION
16783 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16785 # Provide generalized library-building support services.
16786 # Written by Gordon Matzigkeit, 1996
16788 # Copyright (C) 2014 Free Software Foundation, Inc.
16789 # This is free software; see the source for copying conditions. There is NO
16790 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16792 # GNU Libtool is free software; you can redistribute it and/or modify
16793 # it under the terms of the GNU General Public License as published by
16794 # the Free Software Foundation; either version 2 of of the License, or
16795 # (at your option) any later version.
16797 # As a special exception to the GNU General Public License, if you
16798 # distribute this file as part of a program or library that is built
16799 # using GNU Libtool, you may include this file under the same
16800 # distribution terms that you use for the rest of that program.
16802 # GNU Libtool is distributed in the hope that it will be useful, but
16803 # WITHOUT ANY WARRANTY; without even the implied warranty of
16804 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16805 # GNU General Public License for more details.
16807 # You should have received a copy of the GNU General Public License
16808 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16811 # The names of the tagged configurations supported by this script.
16812 available_tags='RC '
16814 # Configured defaults for sys_lib_dlsearch_path munging.
16815 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16817 # ### BEGIN LIBTOOL CONFIG
16819 # Which release of libtool.m4 was used?
16820 macro_version=$macro_version
16821 macro_revision=$macro_revision
16823 # Assembler program.
16826 # DLL creation program.
16827 DLLTOOL=$lt_DLLTOOL
16829 # Object dumper program.
16830 OBJDUMP=$lt_OBJDUMP
16832 # Whether or not to build shared libraries.
16833 build_libtool_libs=$enable_shared
16835 # Whether or not to build static libraries.
16836 build_old_libs=$enable_static
16838 # What type of objects to build.
16841 # Whether or not to optimize for fast installation.
16842 fast_install=$enable_fast_install
16844 # Shared archive member basename,for filename based shared library versioning on AIX.
16845 shared_archive_member_spec=$shared_archive_member_spec
16847 # Shell to use when invoking shell scripts.
16850 # An echo program that protects backslashes.
16853 # The PATH separator for the build system.
16854 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16857 host_alias=$host_alias
16861 # The build system.
16862 build_alias=$build_alias
16866 # A sed program that does not truncate output.
16869 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16870 Xsed="\$SED -e 1s/^X//"
16872 # A grep program that handles long lines.
16878 # A literal string matcher.
16881 # A BSD- or MS-compatible name lister.
16884 # Whether we need soft or hard links.
16887 # What is the maximum length of a command?
16888 max_cmd_len=$max_cmd_len
16890 # Object file suffix (normally "o").
16893 # Executable file suffix (normally "").
16896 # whether the shell understands "unset".
16899 # turn spaces into newlines.
16902 # turn newlines into spaces.
16905 # convert \$build file names to \$host format.
16906 to_host_file_cmd=$lt_cv_to_host_file_cmd
16908 # convert \$build files to toolchain format.
16909 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16911 # Method to check whether dependent libraries are shared objects.
16912 deplibs_check_method=$lt_deplibs_check_method
16914 # Command to use when deplibs_check_method = "file_magic".
16915 file_magic_cmd=$lt_file_magic_cmd
16917 # How to find potential files when deplibs_check_method = "file_magic".
16918 file_magic_glob=$lt_file_magic_glob
16920 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16921 want_nocaseglob=$lt_want_nocaseglob
16923 # Command to associate shared and link libraries.
16924 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16929 # Flags to create an archive.
16930 AR_FLAGS=$lt_AR_FLAGS
16932 # How to feed a file listing to the archiver.
16933 archiver_list_spec=$lt_archiver_list_spec
16935 # A symbol stripping program.
16938 # Commands used to install an old-style archive.
16940 old_postinstall_cmds=$lt_old_postinstall_cmds
16941 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16943 # Whether to use a lock for old archive extraction.
16944 lock_old_archive_extraction=$lock_old_archive_extraction
16949 # LTCC compiler flags.
16950 LTCFLAGS=$lt_CFLAGS
16952 # Take the output of nm and produce a listing of raw symbols and C names.
16953 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16955 # Transform the output of nm in a proper C declaration.
16956 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16958 # Transform the output of nm into a list of symbols to manually relocate.
16959 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16961 # Transform the output of nm in a C name address pair.
16962 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16964 # Transform the output of nm in a C name address pair when lib prefix is needed.
16965 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16967 # The name lister interface.
16968 nm_interface=$lt_lt_cv_nm_interface
16970 # Specify filename containing input files for \$NM.
16971 nm_file_list_spec=$lt_nm_file_list_spec
16973 # The root where to search for dependent libraries,and where our libraries should be installed.
16974 lt_sysroot=$lt_sysroot
16976 # Command to truncate a binary pipe.
16977 lt_truncate_bin=$lt_lt_cv_truncate_bin
16979 # The name of the directory that contains temporary libtool files.
16982 # Used to examine libraries when file_magic_cmd begins with "file".
16983 MAGIC_CMD=$MAGIC_CMD
16985 # Must we lock files when doing compilation?
16986 need_locks=$lt_need_locks
16989 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16991 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16992 DSYMUTIL=$lt_DSYMUTIL
16994 # Tool to change global to local symbols on Mac OS X.
16997 # Tool to manipulate fat objects and archives on Mac OS X.
17000 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17003 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17004 OTOOL64=$lt_OTOOL64
17006 # Old archive suffix (normally "a").
17009 # Shared library suffix (normally ".so").
17010 shrext_cmds=$lt_shrext_cmds
17012 # The commands to extract the exported symbol list from a shared archive.
17013 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17015 # Variables whose values should be saved in libtool wrapper scripts and
17016 # restored at link time.
17017 variables_saved_for_relink=$lt_variables_saved_for_relink
17019 # Do we need the "lib" prefix for modules?
17020 need_lib_prefix=$need_lib_prefix
17022 # Do we need a version for libraries?
17023 need_version=$need_version
17025 # Library versioning type.
17026 version_type=$version_type
17028 # Shared library runtime path variable.
17029 runpath_var=$runpath_var
17031 # Shared library path variable.
17032 shlibpath_var=$shlibpath_var
17034 # Is shlibpath searched before the hard-coded library search path?
17035 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17037 # Format of library name prefix.
17038 libname_spec=$lt_libname_spec
17040 # List of archive names. First name is the real one, the rest are links.
17041 # The last name is the one that the linker finds with -lNAME
17042 library_names_spec=$lt_library_names_spec
17044 # The coded name of the library, if different from the real name.
17045 soname_spec=$lt_soname_spec
17047 # Permission mode override for installation of shared libraries.
17048 install_override_mode=$lt_install_override_mode
17050 # Command to use after installation of a shared archive.
17051 postinstall_cmds=$lt_postinstall_cmds
17053 # Command to use after uninstallation of a shared archive.
17054 postuninstall_cmds=$lt_postuninstall_cmds
17056 # Commands used to finish a libtool library installation in a directory.
17057 finish_cmds=$lt_finish_cmds
17059 # As "finish_cmds", except a single script fragment to be evaled but
17061 finish_eval=$lt_finish_eval
17063 # Whether we should hardcode library paths into libraries.
17064 hardcode_into_libs=$hardcode_into_libs
17066 # Compile-time system search path for libraries.
17067 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17069 # Detected run-time system search path for libraries.
17070 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17072 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17073 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17075 # Whether dlopen is supported.
17076 dlopen_support=$enable_dlopen
17078 # Whether dlopen of programs is supported.
17079 dlopen_self=$enable_dlopen_self
17081 # Whether dlopen of statically linked programs is supported.
17082 dlopen_self_static=$enable_dlopen_self_static
17084 # Commands to strip libraries.
17085 old_striplib=$lt_old_striplib
17086 striplib=$lt_striplib
17089 # The linker used to build libraries.
17092 # How to create reloadable object files.
17093 reload_flag=$lt_reload_flag
17094 reload_cmds=$lt_reload_cmds
17096 # Commands used to build an old-style archive.
17097 old_archive_cmds=$lt_old_archive_cmds
17099 # A language specific compiler.
17102 # Is the compiler the GNU compiler?
17105 # Compiler flag to turn off builtin functions.
17106 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17108 # Additional compiler flags for building library objects.
17109 pic_flag=$lt_lt_prog_compiler_pic
17111 # How to pass a linker flag through the compiler.
17112 wl=$lt_lt_prog_compiler_wl
17114 # Compiler flag to prevent dynamic linking.
17115 link_static_flag=$lt_lt_prog_compiler_static
17117 # Does compiler simultaneously support -c and -o options?
17118 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17120 # Whether or not to add -lc for building shared libraries.
17121 build_libtool_need_lc=$archive_cmds_need_lc
17123 # Whether or not to disallow shared libs when runtime libs are static.
17124 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17126 # Compiler flag to allow reflexive dlopens.
17127 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17129 # Compiler flag to generate shared objects directly from archives.
17130 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17132 # Whether the compiler copes with passing no objects directly.
17133 compiler_needs_object=$lt_compiler_needs_object
17135 # Create an old-style archive from a shared archive.
17136 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17138 # Create a temporary old-style archive to link instead of a shared archive.
17139 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17141 # Commands used to build a shared archive.
17142 archive_cmds=$lt_archive_cmds
17143 archive_expsym_cmds=$lt_archive_expsym_cmds
17145 # Commands used to build a loadable module if different from building
17146 # a shared archive.
17147 module_cmds=$lt_module_cmds
17148 module_expsym_cmds=$lt_module_expsym_cmds
17150 # Whether we are building with GNU ld or not.
17151 with_gnu_ld=$lt_with_gnu_ld
17153 # Flag that allows shared libraries with undefined symbols to be built.
17154 allow_undefined_flag=$lt_allow_undefined_flag
17156 # Flag that enforces no undefined symbols.
17157 no_undefined_flag=$lt_no_undefined_flag
17159 # Flag to hardcode \$libdir into a binary during linking.
17160 # This must work even if \$libdir does not exist
17161 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17163 # Whether we need a single "-rpath" flag with a separated argument.
17164 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17166 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17167 # DIR into the resulting binary.
17168 hardcode_direct=$hardcode_direct
17170 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17171 # DIR into the resulting binary and the resulting library dependency is
17172 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17173 # library is relocated.
17174 hardcode_direct_absolute=$hardcode_direct_absolute
17176 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17177 # into the resulting binary.
17178 hardcode_minus_L=$hardcode_minus_L
17180 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17181 # into the resulting binary.
17182 hardcode_shlibpath_var=$hardcode_shlibpath_var
17184 # Set to "yes" if building a shared library automatically hardcodes DIR
17185 # into the library and all subsequent libraries and executables linked
17187 hardcode_automatic=$hardcode_automatic
17189 # Set to yes if linker adds runtime paths of dependent libraries
17190 # to runtime path list.
17191 inherit_rpath=$inherit_rpath
17193 # Whether libtool must link a program against all its dependency libraries.
17194 link_all_deplibs=$link_all_deplibs
17196 # Set to "yes" if exported symbols are required.
17197 always_export_symbols=$always_export_symbols
17199 # The commands to list exported symbols.
17200 export_symbols_cmds=$lt_export_symbols_cmds
17202 # Symbols that should not be listed in the preloaded symbols.
17203 exclude_expsyms=$lt_exclude_expsyms
17205 # Symbols that must always be exported.
17206 include_expsyms=$lt_include_expsyms
17208 # Commands necessary for linking programs (against libraries) with templates.
17209 prelink_cmds=$lt_prelink_cmds
17211 # Commands necessary for finishing linking programs.
17212 postlink_cmds=$lt_postlink_cmds
17214 # Specify filename containing input files.
17215 file_list_spec=$lt_file_list_spec
17217 # How to hardcode a shared library path into an executable.
17218 hardcode_action=$hardcode_action
17220 # ### END LIBTOOL CONFIG
17224 cat <<'_LT_EOF' >> "$cfgfile"
17226 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17228 # func_munge_path_list VARIABLE PATH
17229 # -----------------------------------
17230 # VARIABLE is name of variable containing _space_ separated list of
17231 # directories to be munged by the contents of PATH, which is string
17234 # string "DIR[ DIR]" will be prepended to VARIABLE
17236 # string "DIR[ DIR]" will be appended to VARIABLE
17237 # "DIRP[:DIRP]::[DIRA:]DIRA"
17238 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17239 # "DIRA[ DIRA]" will be appended to VARIABLE
17241 # VARIABLE will be replaced by "DIR[ DIR]"
17242 func_munge_path_list ()
17248 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17251 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17254 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17255 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17258 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17264 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17265 func_cc_basename ()
17267 for cc_temp in $*""; do
17269 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17270 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17275 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17279 # ### END FUNCTIONS SHARED WITH CONFIGURE
17285 cat <<\_LT_EOF >> "$cfgfile"
17286 # AIX sometimes has problems with the GCC collect2 program. For some
17287 # reason, if we set the COLLECT_NAMES environment variable, the problems
17288 # vanish in a puff of smoke.
17289 if test set != "${COLLECT_NAMES+set}"; then
17291 export COLLECT_NAMES
17298 ltmain=$ac_aux_dir/ltmain.sh
17301 # We use sed instead of cat because bash on DJGPP gets confused if
17302 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17303 # text mode, it properly converts lines to CR/LF. This bash problem
17304 # is reportedly fixed, but why not run on old versions too?
17305 sed '$q' "$ltmain" >> "$cfgfile" \
17306 || (rm -f "$cfgfile"; exit 1)
17308 mv -f "$cfgfile" "$ofile" ||
17309 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17313 cat <<_LT_EOF >> "$ofile"
17315 # ### BEGIN LIBTOOL TAG CONFIG: RC
17317 # The linker used to build libraries.
17320 # How to create reloadable object files.
17321 reload_flag=$lt_reload_flag_RC
17322 reload_cmds=$lt_reload_cmds_RC
17324 # Commands used to build an old-style archive.
17325 old_archive_cmds=$lt_old_archive_cmds_RC
17327 # A language specific compiler.
17330 # Is the compiler the GNU compiler?
17333 # Compiler flag to turn off builtin functions.
17334 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17336 # Additional compiler flags for building library objects.
17337 pic_flag=$lt_lt_prog_compiler_pic_RC
17339 # How to pass a linker flag through the compiler.
17340 wl=$lt_lt_prog_compiler_wl_RC
17342 # Compiler flag to prevent dynamic linking.
17343 link_static_flag=$lt_lt_prog_compiler_static_RC
17345 # Does compiler simultaneously support -c and -o options?
17346 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17348 # Whether or not to add -lc for building shared libraries.
17349 build_libtool_need_lc=$archive_cmds_need_lc_RC
17351 # Whether or not to disallow shared libs when runtime libs are static.
17352 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17354 # Compiler flag to allow reflexive dlopens.
17355 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17357 # Compiler flag to generate shared objects directly from archives.
17358 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17360 # Whether the compiler copes with passing no objects directly.
17361 compiler_needs_object=$lt_compiler_needs_object_RC
17363 # Create an old-style archive from a shared archive.
17364 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17366 # Create a temporary old-style archive to link instead of a shared archive.
17367 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17369 # Commands used to build a shared archive.
17370 archive_cmds=$lt_archive_cmds_RC
17371 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17373 # Commands used to build a loadable module if different from building
17374 # a shared archive.
17375 module_cmds=$lt_module_cmds_RC
17376 module_expsym_cmds=$lt_module_expsym_cmds_RC
17378 # Whether we are building with GNU ld or not.
17379 with_gnu_ld=$lt_with_gnu_ld_RC
17381 # Flag that allows shared libraries with undefined symbols to be built.
17382 allow_undefined_flag=$lt_allow_undefined_flag_RC
17384 # Flag that enforces no undefined symbols.
17385 no_undefined_flag=$lt_no_undefined_flag_RC
17387 # Flag to hardcode \$libdir into a binary during linking.
17388 # This must work even if \$libdir does not exist
17389 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17391 # Whether we need a single "-rpath" flag with a separated argument.
17392 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17394 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17395 # DIR into the resulting binary.
17396 hardcode_direct=$hardcode_direct_RC
17398 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17399 # DIR into the resulting binary and the resulting library dependency is
17400 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17401 # library is relocated.
17402 hardcode_direct_absolute=$hardcode_direct_absolute_RC
17404 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17405 # into the resulting binary.
17406 hardcode_minus_L=$hardcode_minus_L_RC
17408 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17409 # into the resulting binary.
17410 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17412 # Set to "yes" if building a shared library automatically hardcodes DIR
17413 # into the library and all subsequent libraries and executables linked
17415 hardcode_automatic=$hardcode_automatic_RC
17417 # Set to yes if linker adds runtime paths of dependent libraries
17418 # to runtime path list.
17419 inherit_rpath=$inherit_rpath_RC
17421 # Whether libtool must link a program against all its dependency libraries.
17422 link_all_deplibs=$link_all_deplibs_RC
17424 # Set to "yes" if exported symbols are required.
17425 always_export_symbols=$always_export_symbols_RC
17427 # The commands to list exported symbols.
17428 export_symbols_cmds=$lt_export_symbols_cmds_RC
17430 # Symbols that should not be listed in the preloaded symbols.
17431 exclude_expsyms=$lt_exclude_expsyms_RC
17433 # Symbols that must always be exported.
17434 include_expsyms=$lt_include_expsyms_RC
17436 # Commands necessary for linking programs (against libraries) with templates.
17437 prelink_cmds=$lt_prelink_cmds_RC
17439 # Commands necessary for finishing linking programs.
17440 postlink_cmds=$lt_postlink_cmds_RC
17442 # Specify filename containing input files.
17443 file_list_spec=$lt_file_list_spec_RC
17445 # How to hardcode a shared library path into an executable.
17446 hardcode_action=$hardcode_action_RC
17448 # ### END LIBTOOL TAG CONFIG: RC
17452 "ftoption.h":F) mv ftoption.h ftoption.tmp
17453 eval "sed $FTOPTION_H_SED < ftoption.tmp > ftoption.h"
17462 ac_clean_files=$ac_clean_files_save
17464 test $ac_write_fail = 0 ||
17465 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17468 # configure is writing to config.log, and then calls config.status.
17469 # config.status does its own redirection, appending to config.log.
17470 # Unfortunately, on DOS this fails, as config.log is still kept open
17471 # by configure, so config.status won't be able to write to it; its
17472 # output is simply discarded. So we exec the FD to /dev/null,
17473 # effectively closing config.log, so it can be properly (re)opened and
17474 # appended to by config.status. When coming back to configure, we
17475 # need to make the FD available again.
17476 if test "$no_create" != yes; then
17478 ac_config_status_args=
17479 test "$silent" = yes &&
17480 ac_config_status_args="$ac_config_status_args --quiet"
17482 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17484 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17485 # would make configure fail if this is the last instruction.
17486 $ac_cs_success || as_fn_exit 1
17488 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17490 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17494 { $as_echo "$as_me:${as_lineno-$LINENO}:
17496 Library configuration:
17497 external zlib: $have_zlib
17499 libpng: $have_libpng
17500 harfbuzz: $have_harfbuzz
17501 brotli: $have_brotli
17505 Library configuration:
17506 external zlib: $have_zlib
17508 libpng: $have_libpng
17509 harfbuzz: $have_harfbuzz
17510 brotli: $have_brotli
17513 # Warn if docwriter is not installed
17515 if test $have_docwriter = no; then
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
17517 \`make refdoc' will fail since pip package \`docwriter' is not installed.
17518 To install, run \`$PIP install docwriter', or to use a Python
17519 virtual environment, run \`make refdoc-venv' (requires pip package
17520 \`virtualenv'). These operations require Python >= 3.5.
17522 $as_echo "$as_me: WARNING:
17523 \`make refdoc' will fail since pip package \`docwriter' is not installed.
17524 To install, run \`$PIP install docwriter', or to use a Python
17525 virtual environment, run \`make refdoc-venv' (requires pip package
17526 \`virtualenv'). These operations require Python >= 3.5.
17530 # end of configure.raw