2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for fontconfig 2.13.1.
5 # Report bugs to <https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new>.
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
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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: https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Create "$as_dir" as a directory, including parents if necessary.
331 -*) as_dir=./$as_dir;;
333 test -d "$as_dir" || eval $as_mkdir_p || {
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364 test -d "$as_dir" && break
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410 as_val=`expr "$@" || test $? -eq 1`
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
422 as_status=$1; test $as_status -eq 0 && as_status=1
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
508 # Exit status is that of the last command.
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
530 mkdir conf$$.dir 2>/dev/null
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 elif ln conf$$.file conf$$ 2>/dev/null; then
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
555 test -d ./-p && rmdir ./-p
560 as_executable_p=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL=${CONFIG_SHELL-/bin/sh}
571 test -n "$DJDIR" || exec 7<&0 </dev/null
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 ac_default_prefix=/usr/local
584 ac_config_libobj_dir=.
591 # Identity of this package.
592 PACKAGE_NAME='fontconfig'
593 PACKAGE_TARNAME='fontconfig'
594 PACKAGE_VERSION='2.13.1'
595 PACKAGE_STRING='fontconfig 2.13.1'
596 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new'
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>
637 ac_subst_vars='am__EXEEXT_FALSE
641 PKGCONFIG_REQUIRES_PRIVATELY
679 FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE
680 FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE
687 CROSS_COMPILING_FALSE
692 MS_LIB_AVAILABLE_FALSE
693 MS_LIB_AVAILABLE_TRUE
702 XGETTEXT_EXTRA_OPTIONS
710 GETTEXT_MACRO_VERSION
715 LIBT_CURRENT_MINUS_AGE
786 INSTALL_STRIP_PROGRAM
828 program_transform_name
842 enable_option_checking
844 enable_dependency_tracking
862 with_libiconv_includes
878 ac_precious_vars='build_alias
904 # Initialize some variables set by options.
906 ac_init_version=false
907 ac_unrecognized_opts=
909 # The variables have the same names as the options, with
910 # dashes changed to underlines.
918 program_transform_name=s,x,x,
926 # Installation directory options.
927 # These are left unexpanded so users can "make install exec_prefix=/foo"
928 # and all the variables that are supposed to be based on exec_prefix
929 # by default will actually change.
930 # Use braces instead of parens because sh, perl, etc. also accept them.
931 # (The list follows the same order as the GNU Coding Standards.)
932 bindir='${exec_prefix}/bin'
933 sbindir='${exec_prefix}/sbin'
934 libexecdir='${exec_prefix}/libexec'
935 datarootdir='${prefix}/share'
936 datadir='${datarootdir}'
937 sysconfdir='${prefix}/etc'
938 sharedstatedir='${prefix}/com'
939 localstatedir='${prefix}/var'
940 includedir='${prefix}/include'
941 oldincludedir='/usr/include'
942 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
943 infodir='${datarootdir}/info'
948 libdir='${exec_prefix}/lib'
949 localedir='${datarootdir}/locale'
950 mandir='${datarootdir}/man'
956 # If the previous option needs an argument, assign it.
957 if test -n "$ac_prev"; then
958 eval $ac_prev=\$ac_option
964 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969 # Accept the important Cygnus configure options, so we can diagnose typos.
971 case $ac_dashdash$ac_option in
975 -bindir | --bindir | --bindi | --bind | --bin | --bi)
977 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
980 -build | --build | --buil | --bui | --bu)
981 ac_prev=build_alias ;;
982 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
983 build_alias=$ac_optarg ;;
985 -cache-file | --cache-file | --cache-fil | --cache-fi \
986 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
987 ac_prev=cache_file ;;
988 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
989 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
990 cache_file=$ac_optarg ;;
993 cache_file=config.cache ;;
995 -datadir | --datadir | --datadi | --datad)
997 -datadir=* | --datadir=* | --datadi=* | --datad=*)
998 datadir=$ac_optarg ;;
1000 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1001 | --dataroo | --dataro | --datar)
1002 ac_prev=datarootdir ;;
1003 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1004 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1005 datarootdir=$ac_optarg ;;
1007 -disable-* | --disable-*)
1008 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011 as_fn_error $? "invalid feature name: $ac_useropt"
1012 ac_useropt_orig=$ac_useropt
1013 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014 case $ac_user_opts in
1016 "enable_$ac_useropt"
1018 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1019 ac_unrecognized_sep=', ';;
1021 eval enable_$ac_useropt=no ;;
1023 -docdir | --docdir | --docdi | --doc | --do)
1025 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1026 docdir=$ac_optarg ;;
1028 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1031 dvidir=$ac_optarg ;;
1033 -enable-* | --enable-*)
1034 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1037 as_fn_error $? "invalid feature name: $ac_useropt"
1038 ac_useropt_orig=$ac_useropt
1039 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040 case $ac_user_opts in
1042 "enable_$ac_useropt"
1044 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1045 ac_unrecognized_sep=', ';;
1047 eval enable_$ac_useropt=\$ac_optarg ;;
1049 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1050 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1051 | --exec | --exe | --ex)
1052 ac_prev=exec_prefix ;;
1053 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1054 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1055 | --exec=* | --exe=* | --ex=*)
1056 exec_prefix=$ac_optarg ;;
1058 -gas | --gas | --ga | --g)
1059 # Obsolete; use --with-gas.
1062 -help | --help | --hel | --he | -h)
1063 ac_init_help=long ;;
1064 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1065 ac_init_help=recursive ;;
1066 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1067 ac_init_help=short ;;
1069 -host | --host | --hos | --ho)
1070 ac_prev=host_alias ;;
1071 -host=* | --host=* | --hos=* | --ho=*)
1072 host_alias=$ac_optarg ;;
1074 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078 htmldir=$ac_optarg ;;
1080 -includedir | --includedir | --includedi | --included | --include \
1081 | --includ | --inclu | --incl | --inc)
1082 ac_prev=includedir ;;
1083 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1084 | --includ=* | --inclu=* | --incl=* | --inc=*)
1085 includedir=$ac_optarg ;;
1087 -infodir | --infodir | --infodi | --infod | --info | --inf)
1089 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1090 infodir=$ac_optarg ;;
1092 -libdir | --libdir | --libdi | --libd)
1094 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1095 libdir=$ac_optarg ;;
1097 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1098 | --libexe | --libex | --libe)
1099 ac_prev=libexecdir ;;
1100 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1101 | --libexe=* | --libex=* | --libe=*)
1102 libexecdir=$ac_optarg ;;
1104 -localedir | --localedir | --localedi | --localed | --locale)
1105 ac_prev=localedir ;;
1106 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1107 localedir=$ac_optarg ;;
1109 -localstatedir | --localstatedir | --localstatedi | --localstated \
1110 | --localstate | --localstat | --localsta | --localst | --locals)
1111 ac_prev=localstatedir ;;
1112 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1113 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1114 localstatedir=$ac_optarg ;;
1116 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1119 mandir=$ac_optarg ;;
1121 -nfp | --nfp | --nf)
1122 # Obsolete; use --without-fp.
1125 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1126 | --no-cr | --no-c | -n)
1129 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1130 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1133 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1134 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1135 | --oldin | --oldi | --old | --ol | --o)
1136 ac_prev=oldincludedir ;;
1137 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1138 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1139 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1140 oldincludedir=$ac_optarg ;;
1142 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1145 prefix=$ac_optarg ;;
1147 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1148 | --program-pre | --program-pr | --program-p)
1149 ac_prev=program_prefix ;;
1150 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1151 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1152 program_prefix=$ac_optarg ;;
1154 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1155 | --program-suf | --program-su | --program-s)
1156 ac_prev=program_suffix ;;
1157 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1158 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1159 program_suffix=$ac_optarg ;;
1161 -program-transform-name | --program-transform-name \
1162 | --program-transform-nam | --program-transform-na \
1163 | --program-transform-n | --program-transform- \
1164 | --program-transform | --program-transfor \
1165 | --program-transfo | --program-transf \
1166 | --program-trans | --program-tran \
1167 | --progr-tra | --program-tr | --program-t)
1168 ac_prev=program_transform_name ;;
1169 -program-transform-name=* | --program-transform-name=* \
1170 | --program-transform-nam=* | --program-transform-na=* \
1171 | --program-transform-n=* | --program-transform-=* \
1172 | --program-transform=* | --program-transfor=* \
1173 | --program-transfo=* | --program-transf=* \
1174 | --program-trans=* | --program-tran=* \
1175 | --progr-tra=* | --program-tr=* | --program-t=*)
1176 program_transform_name=$ac_optarg ;;
1178 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1181 pdfdir=$ac_optarg ;;
1183 -psdir | --psdir | --psdi | --psd | --ps)
1185 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1188 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1189 | -silent | --silent | --silen | --sile | --sil)
1192 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1194 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1196 sbindir=$ac_optarg ;;
1198 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1199 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1200 | --sharedst | --shareds | --shared | --share | --shar \
1202 ac_prev=sharedstatedir ;;
1203 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1204 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1205 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1207 sharedstatedir=$ac_optarg ;;
1209 -site | --site | --sit)
1211 -site=* | --site=* | --sit=*)
1214 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1216 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1217 srcdir=$ac_optarg ;;
1219 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1220 | --syscon | --sysco | --sysc | --sys | --sy)
1221 ac_prev=sysconfdir ;;
1222 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1223 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1224 sysconfdir=$ac_optarg ;;
1226 -target | --target | --targe | --targ | --tar | --ta | --t)
1227 ac_prev=target_alias ;;
1228 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1229 target_alias=$ac_optarg ;;
1231 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1234 -version | --version | --versio | --versi | --vers | -V)
1235 ac_init_version=: ;;
1238 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241 as_fn_error $? "invalid package name: $ac_useropt"
1242 ac_useropt_orig=$ac_useropt
1243 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244 case $ac_user_opts in
1248 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1249 ac_unrecognized_sep=', ';;
1251 eval with_$ac_useropt=\$ac_optarg ;;
1253 -without-* | --without-*)
1254 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257 as_fn_error $? "invalid package name: $ac_useropt"
1258 ac_useropt_orig=$ac_useropt
1259 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1264 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1265 ac_unrecognized_sep=', ';;
1267 eval with_$ac_useropt=no ;;
1270 # Obsolete; use --with-x.
1273 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1274 | --x-incl | --x-inc | --x-in | --x-i)
1275 ac_prev=x_includes ;;
1276 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1277 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1278 x_includes=$ac_optarg ;;
1280 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1281 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1282 ac_prev=x_libraries ;;
1283 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1284 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1285 x_libraries=$ac_optarg ;;
1287 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1288 Try \`$0 --help' for more information"
1292 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1293 # Reject names that are not valid shell variable names.
1294 case $ac_envvar in #(
1295 '' | [0-9]* | *[!_$as_cr_alnum]* )
1296 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1298 eval $ac_envvar=\$ac_optarg
1299 export $ac_envvar ;;
1302 # FIXME: should be removed in autoconf 3.0.
1303 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1304 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1305 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1306 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1312 if test -n "$ac_prev"; then
1313 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1314 as_fn_error $? "missing argument to $ac_option"
1317 if test -n "$ac_unrecognized_opts"; then
1318 case $enable_option_checking in
1320 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1321 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1325 # Check all directory arguments for consistency.
1326 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1327 datadir sysconfdir sharedstatedir localstatedir includedir \
1328 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1329 libdir localedir mandir
1331 eval ac_val=\$$ac_var
1332 # Remove trailing slashes.
1335 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1336 eval $ac_var=\$ac_val;;
1338 # Be sure to have absolute directory names.
1340 [\\/$]* | ?:[\\/]* ) continue;;
1341 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1343 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1346 # There might be people who depend on the old broken behavior: `$host'
1347 # used to hold the argument of --host etc.
1348 # FIXME: To remove some day.
1351 target=$target_alias
1353 # FIXME: To remove some day.
1354 if test "x$host_alias" != x; then
1355 if test "x$build_alias" = x; then
1356 cross_compiling=maybe
1357 elif test "x$build_alias" != "x$host_alias"; then
1363 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1365 test "$silent" = yes && exec 6>/dev/null
1368 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1369 ac_ls_di=`ls -di .` &&
1370 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1371 as_fn_error $? "working directory cannot be determined"
1372 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1373 as_fn_error $? "pwd does not report name of working directory"
1376 # Find the source files, if location was not specified.
1377 if test -z "$srcdir"; then
1378 ac_srcdir_defaulted=yes
1379 # Try the directory containing this script, then the parent directory.
1380 ac_confdir=`$as_dirname -- "$as_myself" ||
1381 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1382 X"$as_myself" : 'X\(//\)[^/]' \| \
1383 X"$as_myself" : 'X\(//\)$' \| \
1384 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1385 $as_echo X"$as_myself" |
1386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1408 ac_srcdir_defaulted=no
1410 if test ! -r "$srcdir/$ac_unique_file"; then
1411 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1412 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1414 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1416 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1418 # When building in place, set srcdir=.
1419 if test "$ac_abs_confdir" = "$ac_pwd"; then
1422 # Remove unnecessary trailing slashes from srcdir.
1423 # Double slashes in file names in object file debugging info
1424 # mess up M-x gdb in Emacs.
1426 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1428 for ac_var in $ac_precious_vars; do
1429 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1430 eval ac_env_${ac_var}_value=\$${ac_var}
1431 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1432 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1436 # Report the --help message.
1438 if test "$ac_init_help" = "long"; then
1439 # Omit some internal or obsolete options to make the list less imposing.
1440 # This message is too long to be a string in the A/UX 3.1 sh.
1442 \`configure' configures fontconfig 2.13.1 to adapt to many kinds of systems.
1444 Usage: $0 [OPTION]... [VAR=VALUE]...
1446 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1447 VAR=VALUE. See below for descriptions of some of the useful variables.
1449 Defaults for the options are specified in brackets.
1452 -h, --help display this help and exit
1453 --help=short display options specific to this package
1454 --help=recursive display the short help of all the included packages
1455 -V, --version display version information and exit
1456 -q, --quiet, --silent do not print \`checking ...' messages
1457 --cache-file=FILE cache test results in FILE [disabled]
1458 -C, --config-cache alias for \`--cache-file=config.cache'
1459 -n, --no-create do not create output files
1460 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1462 Installation directories:
1463 --prefix=PREFIX install architecture-independent files in PREFIX
1464 [$ac_default_prefix]
1465 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1468 By default, \`make install' will install all the files in
1469 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1470 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1471 for instance \`--prefix=\$HOME'.
1473 For better control, use the options below.
1475 Fine tuning of the installation directories:
1476 --bindir=DIR user executables [EPREFIX/bin]
1477 --sbindir=DIR system admin executables [EPREFIX/sbin]
1478 --libexecdir=DIR program executables [EPREFIX/libexec]
1479 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1480 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1481 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1482 --libdir=DIR object code libraries [EPREFIX/lib]
1483 --includedir=DIR C header files [PREFIX/include]
1484 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1485 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1486 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1487 --infodir=DIR info documentation [DATAROOTDIR/info]
1488 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1489 --mandir=DIR man documentation [DATAROOTDIR/man]
1490 --docdir=DIR documentation root [DATAROOTDIR/doc/fontconfig]
1491 --htmldir=DIR html documentation [DOCDIR]
1492 --dvidir=DIR dvi documentation [DOCDIR]
1493 --pdfdir=DIR pdf documentation [DOCDIR]
1494 --psdir=DIR ps documentation [DOCDIR]
1500 --program-prefix=PREFIX prepend PREFIX to installed program names
1501 --program-suffix=SUFFIX append SUFFIX to installed program names
1502 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1505 --build=BUILD configure for building on BUILD [guessed]
1506 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1510 if test -n "$ac_init_help"; then
1511 case $ac_init_help in
1512 short | recursive ) echo "Configuration of fontconfig 2.13.1:";;
1517 --disable-option-checking ignore unrecognized --enable/--with options
1518 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1519 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1520 --enable-silent-rules less verbose build output (undo: "make V=1")
1521 --disable-silent-rules verbose build output (undo: "make V=0")
1522 --enable-dependency-tracking
1523 do not reject slow dependency extractors
1524 --disable-dependency-tracking
1525 speeds up one-time build
1526 --disable-largefile omit support for large files
1527 --enable-static[=PKGS] build static libraries [default=no]
1528 --enable-shared[=PKGS] build shared libraries [default=yes]
1529 --enable-fast-install[=PKGS]
1530 optimize for fast installation [default=yes]
1531 --disable-libtool-lock avoid locking (might break parallel builds)
1532 --disable-nls do not use Native Language Support
1533 --disable-rpath do not hardcode runtime library paths
1534 --enable-iconv Use iconv to support non-Unicode SFNT name
1535 --enable-libxml2 Use libxml2 instead of Expat
1536 --disable-docs Don't build and install documentation
1539 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1540 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1541 --with-pkgconfigdir pkg-config installation directory
1542 ['${libdir}/pkgconfig']
1543 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1545 --with-aix-soname=aix|svr4|both
1546 shared library versioning (aka "SONAME") variant to
1547 provide on AIX, [default=aix].
1548 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1549 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1550 compiler's sysroot if not specified).
1551 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1552 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1553 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1554 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1555 --without-libintl-prefix don't search for libintl in includedir and libdir
1556 --with-arch=ARCH Force architecture to ARCH
1557 --with-libiconv=DIR Use libiconv in DIR
1558 --with-libiconv-includes=DIR
1559 Use libiconv includes in DIR
1560 --with-libiconv-lib=DIR Use libiconv library in DIR
1561 --with-expat=DIR Use Expat in DIR
1562 --with-expat-includes=DIR
1563 Use Expat includes in DIR
1564 --with-expat-lib=DIR
1565 --with-default-hinting=NAME
1566 Enable your preferred hinting configuration
1567 (none/slight/medium/full) [default=slight]
1568 --with-default-fonts=DIR
1569 Use fonts from DIR when config is busted
1570 --with-add-fonts=DIR1,DIR2,...
1571 Find additional fonts in DIR1,DIR2,...
1572 --with-cache-dir=DIR Use DIR to store cache files
1573 [default=LOCALSTATEDIR/cache/fontconfig]
1574 --with-templatedir=DIR Use DIR to store the configuration template files
1575 [default=DATADIR/fontconfig/conf.avail]
1576 --with-baseconfigdir=DIR
1577 Use DIR to store the base configuration files
1578 [default=SYSCONFDIR/fonts]
1579 --with-configdir=DIR Use DIR to store active configuration files
1580 [default=BASECONFIGDIR/conf.d]
1581 --with-xmldir=DIR Use DIR to store XML schema files
1582 [default=DATADIR/xml/fontconfig]
1584 Some influential environment variables:
1585 CC C compiler command
1586 CFLAGS C compiler flags
1587 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1588 nonstandard directory <lib dir>
1589 LIBS libraries to pass to the linker, e.g. -l<library>
1590 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1591 you have headers in a nonstandard directory <include dir>
1593 PKG_CONFIG path to pkg-config utility
1595 directories to add to pkg-config's search path
1597 path overriding pkg-config's built-in search path
1599 User-defined run-time library search path.
1601 build system C compiler
1603 C compiler flags for FREETYPE, overriding pkg-config
1605 linker flags for FREETYPE, overriding pkg-config
1606 UUID_CFLAGS C compiler flags for UUID, overriding pkg-config
1607 UUID_LIBS linker flags for UUID, overriding pkg-config
1609 C compiler flags for EXPAT, overriding pkg-config
1610 EXPAT_LIBS linker flags for EXPAT, overriding pkg-config
1612 C compiler flags for LIBXML2, overriding pkg-config
1614 linker flags for LIBXML2, overriding pkg-config
1616 C compiler flags for JSONC, overriding pkg-config
1617 JSONC_LIBS linker flags for JSONC, overriding pkg-config
1619 Use these variables to override the choices made by `configure' or to help
1620 it to find libraries and programs with nonstandard names/locations.
1622 Report bugs to <https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new>.
1627 if test "$ac_init_help" = "recursive"; then
1628 # If there are subdirs, report their specific --help.
1629 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1630 test -d "$ac_dir" ||
1631 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1636 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1639 # A ".." for each directory in $ac_dir_suffix.
1640 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1641 case $ac_top_builddir_sub in
1642 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1646 ac_abs_top_builddir=$ac_pwd
1647 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1648 # for backward compatibility:
1649 ac_top_builddir=$ac_top_build_prefix
1652 .) # We are building in place.
1654 ac_top_srcdir=$ac_top_builddir_sub
1655 ac_abs_top_srcdir=$ac_pwd ;;
1656 [\\/]* | ?:[\\/]* ) # Absolute name.
1657 ac_srcdir=$srcdir$ac_dir_suffix;
1658 ac_top_srcdir=$srcdir
1659 ac_abs_top_srcdir=$srcdir ;;
1661 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1662 ac_top_srcdir=$ac_top_build_prefix$srcdir
1663 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1665 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1667 cd "$ac_dir" || { ac_status=$?; continue; }
1668 # Check for guested configure.
1669 if test -f "$ac_srcdir/configure.gnu"; then
1671 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1672 elif test -f "$ac_srcdir/configure"; then
1674 $SHELL "$ac_srcdir/configure" --help=recursive
1676 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1678 cd "$ac_pwd" || { ac_status=$?; break; }
1682 test -n "$ac_init_help" && exit $ac_status
1683 if $ac_init_version; then
1685 fontconfig configure 2.13.1
1686 generated by GNU Autoconf 2.69
1688 Copyright (C) 2012 Free Software Foundation, Inc.
1689 This configure script is free software; the Free Software Foundation
1690 gives unlimited permission to copy, distribute and modify it.
1695 ## ------------------------ ##
1696 ## Autoconf initialization. ##
1697 ## ------------------------ ##
1699 # ac_fn_c_try_compile LINENO
1700 # --------------------------
1701 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1702 ac_fn_c_try_compile ()
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 rm -f conftest.$ac_objext
1706 if { { ac_try="$ac_compile"
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_compile") 2>conftest.err
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && {
1722 test -z "$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1724 } && test -s conftest.$ac_objext; then :
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1735 } # ac_fn_c_try_compile
1737 # ac_fn_c_try_cpp LINENO
1738 # ----------------------
1739 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 if { { ac_try="$ac_cpp conftest.$ac_ext"
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1752 if test -s conftest.err; then
1753 grep -v '^ *+' conftest.err >conftest.er1
1754 cat conftest.er1 >&5
1755 mv -f conftest.er1 conftest.err
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } > conftest.i && {
1759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1760 test ! -s conftest.err
1764 $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770 as_fn_set_status $ac_retval
1774 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1775 # -------------------------------------------------------
1776 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1777 # the include files in INCLUDES and setting the cache variable VAR
1779 ac_fn_c_check_header_mongrel ()
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 if eval \${$3+:} false; then :
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if eval \${$3+:} false; then :
1786 $as_echo_n "(cached) " >&6
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790 $as_echo "$ac_res" >&6; }
1792 # Is the header compilable?
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1794 $as_echo_n "checking $2 usability... " >&6; }
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1800 if ac_fn_c_try_compile "$LINENO"; then :
1801 ac_header_compiler=yes
1803 ac_header_compiler=no
1805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1807 $as_echo "$ac_header_compiler" >&6; }
1809 # Is the header present?
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1811 $as_echo_n "checking $2 presence... " >&6; }
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1816 if ac_fn_c_try_cpp "$LINENO"; then :
1817 ac_header_preproc=yes
1819 ac_header_preproc=no
1821 rm -f conftest.err conftest.i conftest.$ac_ext
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1823 $as_echo "$ac_header_preproc" >&6; }
1825 # So? What about this header?
1826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1829 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1831 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1835 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1837 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1839 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1841 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1843 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1844 ( $as_echo "## ------------------------------------------------------------------------------ ##
1845 ## Report this to https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new ##
1846 ## ------------------------------------------------------------------------------ ##"
1847 ) | sed "s/^/$as_me: WARNING: /" >&2
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851 $as_echo_n "checking for $2... " >&6; }
1852 if eval \${$3+:} false; then :
1853 $as_echo_n "(cached) " >&6
1855 eval "$3=\$ac_header_compiler"
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859 $as_echo "$ac_res" >&6; }
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863 } # ac_fn_c_check_header_mongrel
1865 # ac_fn_c_try_run LINENO
1866 # ----------------------
1867 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1868 # that executables *can* be run.
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 if { { ac_try="$ac_link"
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_link") 2>&5
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1883 { { case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_try") 2>&5
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; }; }; then :
1895 $as_echo "$as_me: program exited with status $ac_status" >&5
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1899 ac_retval=$ac_status
1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903 as_fn_set_status $ac_retval
1907 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1908 # -------------------------------------------------------
1909 # Tests whether HEADER exists and can be compiled using the include files in
1910 # INCLUDES, setting the cache variable VAR accordingly.
1911 ac_fn_c_check_header_compile ()
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1924 if ac_fn_c_try_compile "$LINENO"; then :
1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 } # ac_fn_c_check_header_compile
1938 # ac_fn_c_try_link LINENO
1939 # -----------------------
1940 # Try to link conftest.$ac_ext, and return whether this succeeded.
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 rm -f conftest.$ac_objext conftest$ac_exeext
1945 if { { ac_try="$ac_link"
1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952 (eval "$ac_link") 2>conftest.err
1954 if test -s conftest.err; then
1955 grep -v '^ *+' conftest.err >conftest.er1
1956 cat conftest.er1 >&5
1957 mv -f conftest.er1 conftest.err
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; } && {
1961 test -z "$ac_c_werror_flag" ||
1962 test ! -s conftest.err
1963 } && test -s conftest$ac_exeext && {
1964 test "$cross_compiling" = yes ||
1965 test -x conftest$ac_exeext
1969 $as_echo "$as_me: failed program was:" >&5
1970 sed 's/^/| /' conftest.$ac_ext >&5
1974 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1975 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1976 # interfere with the next link command; also delete a directory that is
1977 # left behind by Apple's compiler. We do this before executing the actions.
1978 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1979 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1980 as_fn_set_status $ac_retval
1982 } # ac_fn_c_try_link
1984 # ac_fn_c_check_func LINENO FUNC VAR
1985 # ----------------------------------
1986 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1987 ac_fn_c_check_func ()
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991 $as_echo_n "checking for $2... " >&6; }
1992 if eval \${$3+:} false; then :
1993 $as_echo_n "(cached) " >&6
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
1997 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1999 #define $2 innocuous_$2
2001 /* System header to define __stub macros and hopefully few prototypes,
2002 which can conflict with char $2 (); below.
2003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2004 <limits.h> exists even on freestanding compilers. */
2007 # include <limits.h>
2009 # include <assert.h>
2014 /* Override any GCC internal prototype to avoid an error.
2015 Use char because int might match the return type of a GCC
2016 builtin and then its argument prototype would still apply. */
2021 /* The GNU C library defines this for functions which it implements
2022 to always fail with ENOSYS. Some functions are actually named
2023 something starting with __ and the normal name is an alias. */
2024 #if defined __stub_$2 || defined __stub___$2
2036 if ac_fn_c_try_link "$LINENO"; then :
2041 rm -f core conftest.err conftest.$ac_objext \
2042 conftest$ac_exeext conftest.$ac_ext
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049 } # ac_fn_c_check_func
2051 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2052 # ---------------------------------------------
2053 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2055 ac_fn_c_check_decl ()
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 as_decl_name=`echo $2|sed 's/ *(.*//'`
2059 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2061 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2062 if eval \${$3+:} false; then :
2063 $as_echo_n "(cached) " >&6
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2071 #ifndef $as_decl_name
2073 (void) $as_decl_use;
2075 (void) $as_decl_name;
2083 if ac_fn_c_try_compile "$LINENO"; then :
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092 $as_echo "$ac_res" >&6; }
2093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095 } # ac_fn_c_check_decl
2097 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2098 # -------------------------------------------
2099 # Tests whether TYPE exists after having included INCLUDES, setting cache
2100 # variable VAR accordingly.
2101 ac_fn_c_check_type ()
2103 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2105 $as_echo_n "checking for $2... " >&6; }
2106 if eval \${$3+:} false; then :
2107 $as_echo_n "(cached) " >&6
2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h. */
2122 if ac_fn_c_try_compile "$LINENO"; then :
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2135 if ac_fn_c_try_compile "$LINENO"; then :
2140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2146 $as_echo "$ac_res" >&6; }
2147 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2149 } # ac_fn_c_check_type
2151 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2152 # --------------------------------------------
2153 # Tries to find the compile-time value of EXPR in a program that includes
2154 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2156 ac_fn_c_compute_int ()
2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159 if test "$cross_compiling" = yes; then
2160 # Depending upon the size, compute the lo and hi bounds.
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2167 static int test_array [1 - 2 * !(($2) >= 0)];
2169 return test_array [0];
2175 if ac_fn_c_try_compile "$LINENO"; then :
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2184 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2186 return test_array [0];
2192 if ac_fn_c_try_compile "$LINENO"; then :
2193 ac_hi=$ac_mid; break
2195 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2196 if test $ac_lo -le $ac_mid; then
2200 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h. */
2211 static int test_array [1 - 2 * !(($2) < 0)];
2213 return test_array [0];
2219 if ac_fn_c_try_compile "$LINENO"; then :
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2228 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2230 return test_array [0];
2236 if ac_fn_c_try_compile "$LINENO"; then :
2237 ac_lo=$ac_mid; break
2239 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2240 if test $ac_mid -le $ac_hi; then
2244 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 # Binary search between lo and hi bounds.
2255 while test "x$ac_lo" != "x$ac_hi"; do
2256 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2263 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2265 return test_array [0];
2271 if ac_fn_c_try_compile "$LINENO"; then :
2274 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2286 static long int longval () { return $2; }
2287 static unsigned long int ulongval () { return $2; }
2294 FILE *f = fopen ("conftest.val", "w");
2299 long int i = longval ();
2302 fprintf (f, "%ld", i);
2306 unsigned long int i = ulongval ();
2309 fprintf (f, "%lu", i);
2311 /* Do not output a trailing newline, as this causes \r\n confusion
2312 on some platforms. */
2313 return ferror (f) || fclose (f) != 0;
2319 if ac_fn_c_try_run "$LINENO"; then :
2320 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2325 conftest.$ac_objext conftest.beam conftest.$ac_ext
2329 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2330 as_fn_set_status $ac_retval
2332 } # ac_fn_c_compute_int
2334 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2335 # ----------------------------------------------------
2336 # Tries to find if the field MEMBER exists in type AGGR, after including
2337 # INCLUDES, setting cache variable VAR accordingly.
2338 ac_fn_c_check_member ()
2340 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2342 $as_echo_n "checking for $2.$3... " >&6; }
2343 if eval \${$4+:} false; then :
2344 $as_echo_n "(cached) " >&6
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h. */
2359 if ac_fn_c_try_compile "$LINENO"; then :
2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h. */
2369 if (sizeof ac_aggr.$3)
2375 if ac_fn_c_try_compile "$LINENO"; then :
2380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2386 $as_echo "$ac_res" >&6; }
2387 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2389 } # ac_fn_c_check_member
2390 cat >config.log <<_ACEOF
2391 This file contains any messages produced by compilers while
2392 running configure, to aid debugging if configure makes a mistake.
2394 It was created by fontconfig $as_me 2.13.1, which was
2395 generated by GNU Autoconf 2.69. Invocation command line was
2407 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2408 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2409 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2410 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2411 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2413 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2414 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2416 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2417 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2418 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2419 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2420 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2421 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2422 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430 test -z "$as_dir" && as_dir=.
2431 $as_echo "PATH: $as_dir"
2447 # Keep a trace of the command line.
2448 # Strip out --no-create and --no-recursion so they do not pile up.
2449 # Strip out --silent because we don't want to record it for future runs.
2450 # Also quote any args containing shell meta-characters.
2451 # Make two passes to allow for proper duplicate-argument suppression.
2455 ac_must_keep_next=false
2461 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2462 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2463 | -silent | --silent | --silen | --sile | --sil)
2466 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2469 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2471 as_fn_append ac_configure_args1 " '$ac_arg'"
2472 if test $ac_must_keep_next = true; then
2473 ac_must_keep_next=false # Got value, back to normal.
2476 *=* | --config-cache | -C | -disable-* | --disable-* \
2477 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2478 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2479 | -with-* | --with-* | -without-* | --without-* | --x)
2480 case "$ac_configure_args0 " in
2481 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2484 -* ) ac_must_keep_next=true ;;
2487 as_fn_append ac_configure_args " '$ac_arg'"
2492 { ac_configure_args0=; unset ac_configure_args0;}
2493 { ac_configure_args1=; unset ac_configure_args1;}
2495 # When interrupted or exit'd, cleanup temporary files, and complete
2496 # config.log. We remove comments because anyway the quotes in there
2497 # would cause problems or look ugly.
2498 # WARNING: Use '\'' to represent an apostrophe within the trap.
2499 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2500 trap 'exit_status=$?
2501 # Save into config.log some information that might help in debugging.
2505 $as_echo "## ---------------- ##
2506 ## Cache variables. ##
2507 ## ---------------- ##"
2509 # The following way of writing the cache mishandles newlines in values,
2511 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2512 eval ac_val=\$$ac_var
2516 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2517 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2520 _ | IFS | as_nl) ;; #(
2521 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2522 *) { eval $ac_var=; unset $ac_var;} ;;
2527 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2528 *${as_nl}ac_space=\ *)
2530 "s/'\''/'\''\\\\'\'''\''/g;
2531 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2534 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2541 $as_echo "## ----------------- ##
2542 ## Output variables. ##
2543 ## ----------------- ##"
2545 for ac_var in $ac_subst_vars
2547 eval ac_val=\$$ac_var
2549 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2551 $as_echo "$ac_var='\''$ac_val'\''"
2555 if test -n "$ac_subst_files"; then
2556 $as_echo "## ------------------- ##
2557 ## File substitutions. ##
2558 ## ------------------- ##"
2560 for ac_var in $ac_subst_files
2562 eval ac_val=\$$ac_var
2564 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2566 $as_echo "$ac_var='\''$ac_val'\''"
2571 if test -s confdefs.h; then
2572 $as_echo "## ----------- ##
2579 test "$ac_signal" != 0 &&
2580 $as_echo "$as_me: caught signal $ac_signal"
2581 $as_echo "$as_me: exit $exit_status"
2583 rm -f core *.core core.conftest.* &&
2584 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2587 for ac_signal in 1 2 13 15; do
2588 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2592 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2593 rm -f -r conftest* confdefs.h
2595 $as_echo "/* confdefs.h */" > confdefs.h
2597 # Predefined preprocessor variables.
2599 cat >>confdefs.h <<_ACEOF
2600 #define PACKAGE_NAME "$PACKAGE_NAME"
2603 cat >>confdefs.h <<_ACEOF
2604 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2607 cat >>confdefs.h <<_ACEOF
2608 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2611 cat >>confdefs.h <<_ACEOF
2612 #define PACKAGE_STRING "$PACKAGE_STRING"
2615 cat >>confdefs.h <<_ACEOF
2616 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2619 cat >>confdefs.h <<_ACEOF
2620 #define PACKAGE_URL "$PACKAGE_URL"
2624 # Let the site file select an alternate cache file if it wants to.
2625 # Prefer an explicitly selected file to automatically selected ones.
2628 if test -n "$CONFIG_SITE"; then
2629 # We do not want a PATH search for config.site.
2630 case $CONFIG_SITE in #((
2631 -*) ac_site_file1=./$CONFIG_SITE;;
2632 */*) ac_site_file1=$CONFIG_SITE;;
2633 *) ac_site_file1=./$CONFIG_SITE;;
2635 elif test "x$prefix" != xNONE; then
2636 ac_site_file1=$prefix/share/config.site
2637 ac_site_file2=$prefix/etc/config.site
2639 ac_site_file1=$ac_default_prefix/share/config.site
2640 ac_site_file2=$ac_default_prefix/etc/config.site
2642 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2644 test "x$ac_site_file" = xNONE && continue
2645 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2647 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2648 sed 's/^/| /' "$ac_site_file" >&5
2650 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2652 as_fn_error $? "failed to load site script $ac_site_file
2653 See \`config.log' for more details" "$LINENO" 5; }
2657 if test -r "$cache_file"; then
2658 # Some versions of bash will fail to source /dev/null (special files
2659 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2660 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2662 $as_echo "$as_me: loading cache $cache_file" >&6;}
2664 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2665 *) . "./$cache_file";;
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2670 $as_echo "$as_me: creating cache $cache_file" >&6;}
2674 gt_needs="$gt_needs "
2675 as_fn_append ac_header_list " stdlib.h"
2676 as_fn_append ac_header_list " unistd.h"
2677 as_fn_append ac_header_list " sys/param.h"
2678 # Check that the precious variables saved in the cache have kept the same
2680 ac_cache_corrupted=false
2681 for ac_var in $ac_precious_vars; do
2682 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2683 eval ac_new_set=\$ac_env_${ac_var}_set
2684 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2685 eval ac_new_val=\$ac_env_${ac_var}_value
2686 case $ac_old_set,$ac_new_set in
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2689 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2690 ac_cache_corrupted=: ;;
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2693 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2694 ac_cache_corrupted=: ;;
2697 if test "x$ac_old_val" != "x$ac_new_val"; then
2698 # differences in whitespace do not lead to failure.
2699 ac_old_val_w=`echo x $ac_old_val`
2700 ac_new_val_w=`echo x $ac_new_val`
2701 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2703 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2704 ac_cache_corrupted=:
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2707 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2708 eval $ac_var=\$ac_old_val
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2711 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2713 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2716 # Pass precious variables to config.status.
2717 if test "$ac_new_set" = set; then
2719 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2720 *) ac_arg=$ac_var=$ac_new_val ;;
2722 case " $ac_configure_args " in
2723 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2724 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2728 if $ac_cache_corrupted; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2730 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2732 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2733 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2735 ## -------------------- ##
2736 ## Main body of script. ##
2737 ## -------------------- ##
2740 ac_cpp='$CPP $CPPFLAGS'
2741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2746 am__api_version='1.16'
2749 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2750 if test -f "$ac_dir/install-sh"; then
2752 ac_install_sh="$ac_aux_dir/install-sh -c"
2754 elif test -f "$ac_dir/install.sh"; then
2756 ac_install_sh="$ac_aux_dir/install.sh -c"
2758 elif test -f "$ac_dir/shtool"; then
2760 ac_install_sh="$ac_aux_dir/shtool install -c"
2764 if test -z "$ac_aux_dir"; then
2765 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2768 # These three variables are undocumented and unsupported,
2769 # and are intended to be withdrawn in a future Autoconf release.
2770 # They can cause serious problems if a builder's source tree is in a directory
2771 # whose full name contains unusual characters.
2772 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2773 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2774 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2777 # Find a good install program. We prefer a C program (faster),
2778 # so one script is as good as another. But avoid the broken or
2779 # incompatible versions:
2780 # SysV /etc/install, /usr/sbin/install
2781 # SunOS /usr/etc/install
2782 # IRIX /sbin/install
2784 # AmigaOS /C/install, which installs bootblocks on floppy discs
2785 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2786 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2787 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2788 # OS/2's system install, which has a completely different semantic
2789 # ./install, which can be erroneously created by make from ./install.sh.
2790 # Reject install programs that cannot install multiple files.
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2792 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2793 if test -z "$INSTALL"; then
2794 if ${ac_cv_path_install+:} false; then :
2795 $as_echo_n "(cached) " >&6
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 test -z "$as_dir" && as_dir=.
2802 # Account for people who put trailing slashes in PATH elements.
2803 case $as_dir/ in #((
2804 ./ | .// | /[cC]/* | \
2805 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2806 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2809 # OSF1 and SCO ODT 3.0 have their own names for install.
2810 # Don't use installbsd from OSF since it installs stuff as root
2812 for ac_prog in ginstall scoinst install; do
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2815 if test $ac_prog = install &&
2816 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2817 # AIX install. It has an incompatible calling convention.
2819 elif test $ac_prog = install &&
2820 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2821 # program-specific install script used by HP pwplus--don't use.
2824 rm -rf conftest.one conftest.two conftest.dir
2825 echo one > conftest.one
2826 echo two > conftest.two
2828 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2829 test -s conftest.one && test -s conftest.two &&
2830 test -s conftest.dir/conftest.one &&
2831 test -s conftest.dir/conftest.two
2833 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2846 rm -rf conftest.one conftest.two conftest.dir
2849 if test "${ac_cv_path_install+set}" = set; then
2850 INSTALL=$ac_cv_path_install
2852 # As a last resort, use the slow shell script. Don't cache a
2853 # value for INSTALL within a source directory, because that will
2854 # break other packages using the cache if that directory is
2855 # removed, or if the value is a relative name.
2856 INSTALL=$ac_install_sh
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2860 $as_echo "$INSTALL" >&6; }
2862 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2863 # It thinks the first close brace ends the variable substitution.
2864 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2866 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2868 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2871 $as_echo_n "checking whether build environment is sane... " >&6; }
2872 # Reject unsafe characters in $srcdir or the absolute working directory
2873 # name. Accept space and tab only in the latter.
2877 *[\\\"\#\$\&\'\`$am_lf]*)
2878 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2881 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2882 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2885 # Do 'set' in a subshell so we don't clobber the current shell's
2886 # arguments. Must try -L first in case configure is actually a
2887 # symlink; some systems play weird games with the mod time of symlinks
2888 # (eg FreeBSD returns the mod time of the symlink's containing
2892 for am_try in 1 2; do
2893 echo "timestamp, slept: $am_has_slept" > conftest.file
2894 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2895 if test "$*" = "X"; then
2897 set X `ls -t "$srcdir/configure" conftest.file`
2899 if test "$*" != "X $srcdir/configure conftest.file" \
2900 && test "$*" != "X conftest.file $srcdir/configure"; then
2902 # If neither matched, then we have a broken ls. This can happen
2903 # if, for instance, CONFIG_SHELL is bash and it inherits a
2904 # broken ls alias from the environment. This has actually
2905 # happened. Such a system could not be considered "sane".
2906 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2907 alias in your environment" "$LINENO" 5
2909 if test "$2" = conftest.file || test $am_try -eq 2; then
2916 test "$2" = conftest.file
2922 as_fn_error $? "newly created file is older than distributed files!
2923 Check your system clock" "$LINENO" 5
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2926 $as_echo "yes" >&6; }
2927 # If we didn't sleep, we still need to ensure time stamps of config.status and
2928 # generated files are strictly newer.
2930 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2937 test "$program_prefix" != NONE &&
2938 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2939 # Use a double $ so make ignores it.
2940 test "$program_suffix" != NONE &&
2941 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2942 # Double any \ or $.
2943 # By default was `s,x,x', remove it if useless.
2944 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2945 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2947 # Expand $ac_aux_dir to an absolute path.
2948 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2950 if test x"${MISSING+set}" != xset; then
2953 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2955 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2958 # Use eval to expand $SHELL
2959 if eval "$MISSING --is-lightweight"; then
2960 am_missing_run="$MISSING "
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2964 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2967 if test x"${install_sh+set}" != xset; then
2970 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2972 install_sh="\${SHELL} $am_aux_dir/install-sh"
2976 # Installed binaries are usually stripped using 'strip' when the user
2977 # run "make install-strip". However 'strip' might not be the right
2978 # tool to use in cross-compilation environments, therefore Automake
2979 # will honor the 'STRIP' environment variable to overrule this program.
2980 if test "$cross_compiling" != no; then
2981 if test -n "$ac_tool_prefix"; then
2982 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2983 set dummy ${ac_tool_prefix}strip; ac_word=$2
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if ${ac_cv_prog_STRIP+:} false; then :
2987 $as_echo_n "(cached) " >&6
2989 if test -n "$STRIP"; then
2990 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 STRIP=$ac_cv_prog_STRIP
3010 if test -n "$STRIP"; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3012 $as_echo "$STRIP" >&6; }
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 $as_echo "no" >&6; }
3020 if test -z "$ac_cv_prog_STRIP"; then
3022 # Extract the first word of "strip", so it can be a program name with args.
3023 set dummy strip; ac_word=$2
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 $as_echo_n "checking for $ac_word... " >&6; }
3026 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3027 $as_echo_n "(cached) " >&6
3029 if test -n "$ac_ct_STRIP"; then
3030 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039 ac_cv_prog_ac_ct_STRIP="strip"
3040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3050 if test -n "$ac_ct_STRIP"; then
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3052 $as_echo "$ac_ct_STRIP" >&6; }
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 $as_echo "no" >&6; }
3058 if test "x$ac_ct_STRIP" = x; then
3061 case $cross_compiling:$ac_tool_warned in
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3065 ac_tool_warned=yes ;;
3070 STRIP="$ac_cv_prog_STRIP"
3074 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3077 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3078 if test -z "$MKDIR_P"; then
3079 if ${ac_cv_path_mkdir+:} false; then :
3080 $as_echo_n "(cached) " >&6
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3086 test -z "$as_dir" && as_dir=.
3087 for ac_prog in mkdir gmkdir; do
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3090 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3091 'mkdir (GNU coreutils) '* | \
3092 'mkdir (coreutils) '* | \
3093 'mkdir (fileutils) '4.1*)
3094 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3104 test -d ./--version && rmdir ./--version
3105 if test "${ac_cv_path_mkdir+set}" = set; then
3106 MKDIR_P="$ac_cv_path_mkdir -p"
3108 # As a last resort, use the slow shell script. Don't cache a
3109 # value for MKDIR_P within a source directory, because that will
3110 # break other packages using the cache if that directory is
3111 # removed, or if the value is a relative name.
3112 MKDIR_P="$ac_install_sh -d"
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3116 $as_echo "$MKDIR_P" >&6; }
3118 for ac_prog in gawk mawk nawk awk
3120 # Extract the first word of "$ac_prog", so it can be a program name with args.
3121 set dummy $ac_prog; ac_word=$2
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123 $as_echo_n "checking for $ac_word... " >&6; }
3124 if ${ac_cv_prog_AWK+:} false; then :
3125 $as_echo_n "(cached) " >&6
3127 if test -n "$AWK"; then
3128 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137 ac_cv_prog_AWK="$ac_prog"
3138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148 if test -n "$AWK"; then
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3150 $as_echo "$AWK" >&6; }
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153 $as_echo "no" >&6; }
3157 test -n "$AWK" && break
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3161 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3163 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3164 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3165 $as_echo_n "(cached) " >&6
3167 cat >conftest.make <<\_ACEOF
3170 @echo '@@@%%%=$(MAKE)=@@@%%%'
3172 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3173 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3175 eval ac_cv_prog_make_${ac_make}_set=yes;;
3177 eval ac_cv_prog_make_${ac_make}_set=no;;
3181 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3183 $as_echo "yes" >&6; }
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188 SET_MAKE="MAKE=${MAKE-make}"
3191 rm -rf .tst 2>/dev/null
3192 mkdir .tst 2>/dev/null
3193 if test -d .tst; then
3198 rmdir .tst 2>/dev/null
3200 # Check whether --enable-silent-rules was given.
3201 if test "${enable_silent_rules+set}" = set; then :
3202 enableval=$enable_silent_rules;
3205 case $enable_silent_rules in # (((
3206 yes) AM_DEFAULT_VERBOSITY=0;;
3207 no) AM_DEFAULT_VERBOSITY=1;;
3208 *) AM_DEFAULT_VERBOSITY=1;;
3210 am_make=${MAKE-make}
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3212 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3213 if ${am_cv_make_support_nested_variables+:} false; then :
3214 $as_echo_n "(cached) " >&6
3216 if $as_echo 'TRUE=$(BAR$(V))
3222 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3223 am_cv_make_support_nested_variables=yes
3225 am_cv_make_support_nested_variables=no
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3229 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3230 if test $am_cv_make_support_nested_variables = yes; then
3232 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3234 AM_V=$AM_DEFAULT_VERBOSITY
3235 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3239 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3240 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3241 # is not polluted with repeated "-I."
3242 am__isrc=' -I$(srcdir)'
3243 # test to see if srcdir already configured
3244 if test -f $srcdir/config.status; then
3245 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3249 # test whether we have cygpath
3250 if test -z "$CYGPATH_W"; then
3251 if (cygpath --version) >/dev/null 2>/dev/null; then
3252 CYGPATH_W='cygpath -w'
3259 # Define the identity of the package.
3260 PACKAGE='fontconfig'
3264 cat >>confdefs.h <<_ACEOF
3265 #define PACKAGE "$PACKAGE"
3269 cat >>confdefs.h <<_ACEOF
3270 #define VERSION "$VERSION"
3273 # Some tools Automake needs.
3275 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3278 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3281 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3284 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3287 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3289 # For better backward compatibility. To be removed once Automake 1.9.x
3290 # dies out for good. For more background, see:
3291 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3292 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3293 mkdir_p='$(MKDIR_P)'
3295 # We need awk for the "check" target (and possibly the TAP driver). The
3296 # system "awk" is bad on some platforms.
3297 # Always define AMTAR for backward compatibility. Yes, it's still used
3298 # in the wild :-( We should find a proper way to deprecate it ...
3302 # We'll loop over all known methods to create a tar archive until one works.
3303 _am_tools='gnutar pax cpio none'
3305 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3312 # POSIX will say in a future version that running "rm -f" with no argument
3313 # is OK; and we want to be able to make that assumption in our Makefile
3314 # recipes. So use an aggressive probe to check that the usage we want is
3315 # actually supported "in the wild" to an acceptable degree.
3316 # See automake bug#10828.
3317 # To make any issue more visible, cause the running configure to be aborted
3318 # by default if the 'rm' program in use doesn't match our expectations; the
3319 # user can still override this though.
3320 if rm -f && rm -fr && rm -rf; then : OK; else
3324 Your 'rm' program seems unable to run without file operands specified
3325 on the command line, even when the '-f' option is present. This is contrary
3326 to the behaviour of most rm programs out there, and not conforming with
3327 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3329 Please tell bug-automake@gnu.org about your system, including the value
3330 of your $PATH and any error possibly output before this message. This
3331 can help us improve future automake versions.
3334 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3335 echo 'Configuration will proceed anyway, since you have set the' >&2
3336 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3340 Aborting the configuration process, to ensure you take notice of the issue.
3342 You can download and install GNU coreutils to get an 'rm' implementation
3343 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3345 If you want to complete the configuration process using your problematic
3346 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3347 to "yes", and re-run configure.
3350 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3354 # Check whether --enable-silent-rules was given.
3355 if test "${enable_silent_rules+set}" = set; then :
3356 enableval=$enable_silent_rules;
3359 case $enable_silent_rules in # (((
3360 yes) AM_DEFAULT_VERBOSITY=0;;
3361 no) AM_DEFAULT_VERBOSITY=1;;
3362 *) AM_DEFAULT_VERBOSITY=0;;
3364 am_make=${MAKE-make}
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3366 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3367 if ${am_cv_make_support_nested_variables+:} false; then :
3368 $as_echo_n "(cached) " >&6
3370 if $as_echo 'TRUE=$(BAR$(V))
3376 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3377 am_cv_make_support_nested_variables=yes
3379 am_cv_make_support_nested_variables=no
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3383 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3384 if test $am_cv_make_support_nested_variables = yes; then
3386 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3388 AM_V=$AM_DEFAULT_VERBOSITY
3389 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3395 ac_config_headers="$ac_config_headers config.h"
3400 ac_cpp='$CPP $CPPFLAGS'
3401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3404 if test -n "$ac_tool_prefix"; then
3405 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3406 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3408 $as_echo_n "checking for $ac_word... " >&6; }
3409 if ${ac_cv_prog_CC+:} false; then :
3410 $as_echo_n "(cached) " >&6
3412 if test -n "$CC"; then
3413 ac_cv_prog_CC="$CC" # Let the user override the test.
3415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 test -z "$as_dir" && as_dir=.
3420 for ac_exec_ext in '' $ac_executable_extensions; do
3421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3422 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 if test -n "$CC"; then
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3435 $as_echo "$CC" >&6; }
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3438 $as_echo "no" >&6; }
3443 if test -z "$ac_cv_prog_CC"; then
3445 # Extract the first word of "gcc", so it can be a program name with args.
3446 set dummy gcc; ac_word=$2
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3448 $as_echo_n "checking for $ac_word... " >&6; }
3449 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3450 $as_echo_n "(cached) " >&6
3452 if test -n "$ac_ct_CC"; then
3453 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462 ac_cv_prog_ac_ct_CC="gcc"
3463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3473 if test -n "$ac_ct_CC"; then
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3475 $as_echo "$ac_ct_CC" >&6; }
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478 $as_echo "no" >&6; }
3481 if test "x$ac_ct_CC" = x; then
3484 case $cross_compiling:$ac_tool_warned in
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3488 ac_tool_warned=yes ;;
3496 if test -z "$CC"; then
3497 if test -n "$ac_tool_prefix"; then
3498 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3499 set dummy ${ac_tool_prefix}cc; ac_word=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if ${ac_cv_prog_CC+:} false; then :
3503 $as_echo_n "(cached) " >&6
3505 if test -n "$CC"; then
3506 ac_cv_prog_CC="$CC" # Let the user override the test.
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 test -z "$as_dir" && as_dir=.
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3515 ac_cv_prog_CC="${ac_tool_prefix}cc"
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 if test -n "$CC"; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3528 $as_echo "$CC" >&6; }
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3537 if test -z "$CC"; then
3538 # Extract the first word of "cc", so it can be a program name with args.
3539 set dummy cc; ac_word=$2
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3541 $as_echo_n "checking for $ac_word... " >&6; }
3542 if ${ac_cv_prog_CC+:} false; then :
3543 $as_echo_n "(cached) " >&6
3545 if test -n "$CC"; then
3546 ac_cv_prog_CC="$CC" # Let the user override the test.
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3557 ac_prog_rejected=yes
3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3568 if test $ac_prog_rejected = yes; then
3569 # We found a bogon in the path, so make sure we never use it.
3570 set dummy $ac_cv_prog_CC
3572 if test $# != 0; then
3573 # We chose a different compiler from the bogus one.
3574 # However, it has the same basename, so the bogon will be chosen
3575 # first if we set CC to just the basename; use the full file name.
3577 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3583 if test -n "$CC"; then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3585 $as_echo "$CC" >&6; }
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588 $as_echo "no" >&6; }
3593 if test -z "$CC"; then
3594 if test -n "$ac_tool_prefix"; then
3595 for ac_prog in cl.exe
3597 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3598 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3600 $as_echo_n "checking for $ac_word... " >&6; }
3601 if ${ac_cv_prog_CC+:} false; then :
3602 $as_echo_n "(cached) " >&6
3604 if test -n "$CC"; then
3605 ac_cv_prog_CC="$CC" # Let the user override the test.
3607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611 test -z "$as_dir" && as_dir=.
3612 for ac_exec_ext in '' $ac_executable_extensions; do
3613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3614 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3625 if test -n "$CC"; then
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3627 $as_echo "$CC" >&6; }
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630 $as_echo "no" >&6; }
3634 test -n "$CC" && break
3637 if test -z "$CC"; then
3639 for ac_prog in cl.exe
3641 # Extract the first word of "$ac_prog", so it can be a program name with args.
3642 set dummy $ac_prog; ac_word=$2
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644 $as_echo_n "checking for $ac_word... " >&6; }
3645 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3646 $as_echo_n "(cached) " >&6
3648 if test -n "$ac_ct_CC"; then
3649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 test -z "$as_dir" && as_dir=.
3656 for ac_exec_ext in '' $ac_executable_extensions; do
3657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3658 ac_cv_prog_ac_ct_CC="$ac_prog"
3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3669 if test -n "$ac_ct_CC"; then
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3671 $as_echo "$ac_ct_CC" >&6; }
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3678 test -n "$ac_ct_CC" && break
3681 if test "x$ac_ct_CC" = x; then
3684 case $cross_compiling:$ac_tool_warned in
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3688 ac_tool_warned=yes ;;
3697 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3699 as_fn_error $? "no acceptable C compiler found in \$PATH
3700 See \`config.log' for more details" "$LINENO" 5; }
3702 # Provide some information about the compiler.
3703 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3706 for ac_option in --version -v -V -qversion; do
3707 { { ac_try="$ac_compiler $ac_option >&5"
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713 $as_echo "$ac_try_echo"; } >&5
3714 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3716 if test -s conftest.err; then
3718 ... rest of stderr output deleted ...
3719 10q' conftest.err >conftest.er1
3720 cat conftest.er1 >&5
3722 rm -f conftest.er1 conftest.err
3723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3724 test $ac_status = 0; }
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3738 ac_clean_files_save=$ac_clean_files
3739 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3740 # Try to create an executable without -o first, disregard a.out.
3741 # It will help us diagnose broken compilers, and finding out an intuition
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3744 $as_echo_n "checking whether the C compiler works... " >&6; }
3745 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3747 # The possible output files:
3748 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3751 for ac_file in $ac_files
3754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3755 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3760 if { { ac_try="$ac_link_default"
3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3766 $as_echo "$ac_try_echo"; } >&5
3767 (eval "$ac_link_default") 2>&5
3769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3770 test $ac_status = 0; }; then :
3771 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3772 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3773 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3774 # so that the user can short-circuit this test for compilers unknown to
3776 for ac_file in $ac_files ''
3778 test -f "$ac_file" || continue
3780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3783 # We found the default executable, but exeext='' is most
3787 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3789 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3791 # We set ac_cv_exeext here because the later test for it is not
3792 # safe: cross compilers may not add the suffix if given an `-o'
3793 # argument, so we may need to know it at that point already.
3794 # Even if this section looks crufty: it has the advantage of
3801 test "$ac_cv_exeext" = no && ac_cv_exeext=
3806 if test -z "$ac_file"; then :
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3808 $as_echo "no" >&6; }
3809 $as_echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3814 as_fn_error 77 "C compiler cannot create executables
3815 See \`config.log' for more details" "$LINENO" 5; }
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3818 $as_echo "yes" >&6; }
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3821 $as_echo_n "checking for C compiler default output file name... " >&6; }
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3823 $as_echo "$ac_file" >&6; }
3824 ac_exeext=$ac_cv_exeext
3826 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3827 ac_clean_files=$ac_clean_files_save
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3829 $as_echo_n "checking for suffix of executables... " >&6; }
3830 if { { ac_try="$ac_link"
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3836 $as_echo "$ac_try_echo"; } >&5
3837 (eval "$ac_link") 2>&5
3839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3840 test $ac_status = 0; }; then :
3841 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3842 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3843 # work properly (i.e., refer to `conftest.exe'), while it won't with
3845 for ac_file in conftest.exe conftest conftest.*; do
3846 test -f "$ac_file" || continue
3848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3849 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3857 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3858 See \`config.log' for more details" "$LINENO" 5; }
3860 rm -f conftest conftest$ac_cv_exeext
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3862 $as_echo "$ac_cv_exeext" >&6; }
3864 rm -f conftest.$ac_ext
3865 EXEEXT=$ac_cv_exeext
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h. */
3873 FILE *f = fopen ("conftest.out", "w");
3874 return ferror (f) || fclose (f) != 0;
3880 ac_clean_files="$ac_clean_files conftest.out"
3881 # Check that the compiler produces executables we can run. If not, either
3882 # the compiler is broken, or we cross compile.
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3884 $as_echo_n "checking whether we are cross compiling... " >&6; }
3885 if test "$cross_compiling" != yes; then
3886 { { ac_try="$ac_link"
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3892 $as_echo "$ac_try_echo"; } >&5
3893 (eval "$ac_link") 2>&5
3895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3896 test $ac_status = 0; }
3897 if { ac_try='./conftest$ac_cv_exeext'
3898 { { case "(($ac_try" in
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3903 $as_echo "$ac_try_echo"; } >&5
3904 (eval "$ac_try") 2>&5
3906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3907 test $ac_status = 0; }; }; then
3910 if test "$cross_compiling" = maybe; then
3913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3915 as_fn_error $? "cannot run C compiled programs.
3916 If you meant to cross compile, use \`--host'.
3917 See \`config.log' for more details" "$LINENO" 5; }
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3922 $as_echo "$cross_compiling" >&6; }
3924 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3925 ac_clean_files=$ac_clean_files_save
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3927 $as_echo_n "checking for suffix of object files... " >&6; }
3928 if ${ac_cv_objext+:} false; then :
3929 $as_echo_n "(cached) " >&6
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3942 rm -f conftest.o conftest.obj
3943 if { { ac_try="$ac_compile"
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3949 $as_echo "$ac_try_echo"; } >&5
3950 (eval "$ac_compile") 2>&5
3952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3953 test $ac_status = 0; }; then :
3954 for ac_file in conftest.o conftest.obj conftest.*; do
3955 test -f "$ac_file" || continue;
3957 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3958 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3963 $as_echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3968 as_fn_error $? "cannot compute suffix of object files: cannot compile
3969 See \`config.log' for more details" "$LINENO" 5; }
3971 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3974 $as_echo "$ac_cv_objext" >&6; }
3975 OBJEXT=$ac_cv_objext
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3978 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3979 if ${ac_cv_c_compiler_gnu+:} false; then :
3980 $as_echo_n "(cached) " >&6
3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h. */
3996 if ac_fn_c_try_compile "$LINENO"; then :
4001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4002 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4006 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4007 if test $ac_compiler_gnu = yes; then
4012 ac_test_CFLAGS=${CFLAGS+set}
4013 ac_save_CFLAGS=$CFLAGS
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4015 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4016 if ${ac_cv_prog_cc_g+:} false; then :
4017 $as_echo_n "(cached) " >&6
4019 ac_save_c_werror_flag=$ac_c_werror_flag
4020 ac_c_werror_flag=yes
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4034 if ac_fn_c_try_compile "$LINENO"; then :
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4049 if ac_fn_c_try_compile "$LINENO"; then :
4052 ac_c_werror_flag=$ac_save_c_werror_flag
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4065 if ac_fn_c_try_compile "$LINENO"; then :
4068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 ac_c_werror_flag=$ac_save_c_werror_flag
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4076 $as_echo "$ac_cv_prog_cc_g" >&6; }
4077 if test "$ac_test_CFLAGS" = set; then
4078 CFLAGS=$ac_save_CFLAGS
4079 elif test $ac_cv_prog_cc_g = yes; then
4080 if test "$GCC" = yes; then
4086 if test "$GCC" = yes; then
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4093 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4094 if ${ac_cv_prog_cc_c89+:} false; then :
4095 $as_echo_n "(cached) " >&6
4097 ac_cv_prog_cc_c89=no
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4104 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4105 struct buf { int x; };
4106 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4107 static char *e (p, i)
4113 static char *f (char * (*g) (char **, int), char **p, ...)
4118 s = g (p, va_arg (v,int));
4123 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4124 function prototypes and stuff, but not '\xHH' hex character constants.
4125 These don't provoke an error unfortunately, instead are silently treated
4126 as 'x'. The following induces an error, until -std is added to get
4127 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4128 array size at least. It's necessary to write '\x00'==0 to get something
4129 that's true only with -std. */
4130 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4132 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4133 inside strings and character constants. */
4135 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4137 int test (int i, double x);
4138 struct s1 {int (*f) (int a);};
4139 struct s2 {int (*f) (double a);};
4140 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4146 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4151 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4152 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4154 CC="$ac_save_CC $ac_arg"
4155 if ac_fn_c_try_compile "$LINENO"; then :
4156 ac_cv_prog_cc_c89=$ac_arg
4158 rm -f core conftest.err conftest.$ac_objext
4159 test "x$ac_cv_prog_cc_c89" != "xno" && break
4161 rm -f conftest.$ac_ext
4166 case "x$ac_cv_prog_cc_c89" in
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4169 $as_echo "none needed" >&6; } ;;
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4172 $as_echo "unsupported" >&6; } ;;
4174 CC="$CC $ac_cv_prog_cc_c89"
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4176 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4178 if test "x$ac_cv_prog_cc_c89" != xno; then :
4183 ac_cpp='$CPP $CPPFLAGS'
4184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189 ac_cpp='$CPP $CPPFLAGS'
4190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4194 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4195 if ${am_cv_prog_cc_c_o+:} false; then :
4196 $as_echo_n "(cached) " >&6
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199 /* end confdefs.h. */
4209 # Make sure it works both with $CC and with simple cc.
4210 # Following AC_PROG_CC_C_O, we do the test twice because some
4211 # compilers refuse to overwrite an existing .o file with -o,
4212 # though they will create one.
4213 am_cv_prog_cc_c_o=yes
4215 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4216 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } \
4220 && test -f conftest2.$ac_objext; then
4223 am_cv_prog_cc_c_o=no
4227 rm -f core conftest*
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4231 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4232 if test "$am_cv_prog_cc_c_o" != yes; then
4233 # Losing compiler, so override with the script.
4234 # FIXME: It is wrong to rewrite CC.
4235 # But if we don't then we get into trouble of one sort or another.
4236 # A longer-term fix would be to have automake use am__CC in this case,
4237 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4238 CC="$am_aux_dir/compile $CC"
4241 ac_cpp='$CPP $CPPFLAGS'
4242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4246 DEPDIR="${am__leading_dot}deps"
4248 ac_config_commands="$ac_config_commands depfiles"
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4251 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4252 cat > confinc.mk << 'END'
4254 @echo this is the am__doit target >confinc.out
4259 # BSD make does it like this.
4260 echo '.include "confinc.mk" # ignored' > confmf.BSD
4261 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4262 echo 'include confinc.mk # ignored' > confmf.GNU
4264 for s in GNU BSD; do
4265 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4266 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }
4270 case $?:`cat confinc.out 2>/dev/null` in #(
4271 '0:this is the am__doit target') :
4274 am__include='.include' am__quote='"' ;; #(
4276 am__include='include' am__quote='' ;;
4281 if test "$am__include" != "#"; then
4282 _am_result="yes ($s style)"
4286 rm -f confinc.* confmf.*
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4288 $as_echo "${_am_result}" >&6; }
4290 # Check whether --enable-dependency-tracking was given.
4291 if test "${enable_dependency_tracking+set}" = set; then :
4292 enableval=$enable_dependency_tracking;
4295 if test "x$enable_dependency_tracking" != xno; then
4296 am_depcomp="$ac_aux_dir/depcomp"
4300 if test "x$enable_dependency_tracking" != xno; then
4310 depcc="$CC" am_compiler_list=
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4313 $as_echo_n "checking dependency style of $depcc... " >&6; }
4314 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4315 $as_echo_n "(cached) " >&6
4317 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4318 # We make a subdir and do the tests there. Otherwise we can end up
4319 # making bogus files that we don't know about and never remove. For
4320 # instance it was reported that on HP-UX the gcc test will end up
4321 # making a dummy file named 'D' -- because '-MD' means "put the output
4325 # Copy depcomp to subdir because otherwise we won't find it if we're
4326 # using a relative directory.
4327 cp "$am_depcomp" conftest.dir
4329 # We will build objects and dependencies in a subdirectory because
4330 # it helps to detect inapplicable dependency modes. For instance
4331 # both Tru64's cc and ICC support -MD to output dependencies as a
4332 # side effect of compilation, but ICC will put the dependencies in
4333 # the current directory while Tru64 will put them in the object
4337 am_cv_CC_dependencies_compiler_type=none
4338 if test "$am_compiler_list" = ""; then
4339 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4342 case " $depcc " in #(
4343 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4346 for depmode in $am_compiler_list; do
4347 # Setup a source with many dependencies, because some compilers
4348 # like to wrap large dependency lists on column 80 (with \), and
4349 # we should not choose a depcomp mode which is confused by this.
4351 # We need to recreate these files for each test, as the compiler may
4352 # overwrite some of them when testing with obscure command lines.
4353 # This happens at least with the AIX C compiler.
4355 for i in 1 2 3 4 5 6; do
4356 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4357 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4358 # Solaris 10 /bin/sh.
4359 echo '/* dummy */' > sub/conftst$i.h
4361 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4363 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4364 # mode. It turns out that the SunPro C++ compiler does not properly
4365 # handle '-M -o', and we need to detect this. Also, some Intel
4366 # versions had trouble with output in subdirs.
4367 am__obj=sub/conftest.${OBJEXT-o}
4368 am__minus_obj="-o $am__obj"
4371 # This depmode causes a compiler race in universal mode.
4372 test "$am__universal" = false || continue
4375 # After this tag, mechanisms are not by side-effect, so they'll
4376 # only be used when explicitly requested.
4377 if test "x$enable_dependency_tracking" = xyes; then
4383 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4384 # This compiler won't grok '-c -o', but also, the minuso test has
4385 # not run yet. These depmodes are late enough in the game, and
4386 # so weak that their functioning should not be impacted.
4387 am__obj=conftest.${OBJEXT-o}
4392 if depmode=$depmode \
4393 source=sub/conftest.c object=$am__obj \
4394 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4395 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4396 >/dev/null 2>conftest.err &&
4397 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4398 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4399 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4400 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4401 # icc doesn't choke on unknown options, it will just issue warnings
4402 # or remarks (even with -Werror). So we grep stderr for any message
4403 # that says an option was ignored or not supported.
4404 # When given -MP, icc 7.0 and 7.1 complain thusly:
4405 # icc: Command line warning: ignoring option '-M'; no argument required
4406 # The diagnosis changed in icc 8.0:
4407 # icc: Command line remark: option '-MP' not supported
4408 if (grep 'ignoring option' conftest.err ||
4409 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4410 am_cv_CC_dependencies_compiler_type=$depmode
4419 am_cv_CC_dependencies_compiler_type=none
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4424 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4425 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4428 test "x$enable_dependency_tracking" != xno \
4429 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4431 am__fastdepCC_FALSE='#'
4433 am__fastdepCC_TRUE='#'
4434 am__fastdepCC_FALSE=
4440 ac_cpp='$CPP $CPPFLAGS'
4441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4445 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4446 # On Suns, sometimes $CPP names a directory.
4447 if test -n "$CPP" && test -d "$CPP"; then
4450 if test -z "$CPP"; then
4451 if ${ac_cv_prog_CPP+:} false; then :
4452 $as_echo_n "(cached) " >&6
4454 # Double quotes because CPP needs to be expanded
4455 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4458 for ac_c_preproc_warn_flag in '' yes
4460 # Use a header file that comes with gcc, so configuring glibc
4461 # with a fresh cross-compiler works.
4462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4463 # <limits.h> exists even on freestanding compilers.
4464 # On the NeXT, cc -E runs the code through the compiler's parser,
4465 # not just through cpp. "Syntax error" is here to catch this case.
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4469 # include <limits.h>
4471 # include <assert.h>
4475 if ac_fn_c_try_cpp "$LINENO"; then :
4478 # Broken: fails on valid input.
4481 rm -f conftest.err conftest.i conftest.$ac_ext
4483 # OK, works on sane cases. Now check whether nonexistent headers
4484 # can be detected and how.
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4487 #include <ac_nonexistent.h>
4489 if ac_fn_c_try_cpp "$LINENO"; then :
4490 # Broken: success on invalid input.
4493 # Passes both tests.
4497 rm -f conftest.err conftest.i conftest.$ac_ext
4500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4501 rm -f conftest.i conftest.err conftest.$ac_ext
4502 if $ac_preproc_ok; then :
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4515 $as_echo "$CPP" >&6; }
4517 for ac_c_preproc_warn_flag in '' yes
4519 # Use a header file that comes with gcc, so configuring glibc
4520 # with a fresh cross-compiler works.
4521 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4522 # <limits.h> exists even on freestanding compilers.
4523 # On the NeXT, cc -E runs the code through the compiler's parser,
4524 # not just through cpp. "Syntax error" is here to catch this case.
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4528 # include <limits.h>
4530 # include <assert.h>
4534 if ac_fn_c_try_cpp "$LINENO"; then :
4537 # Broken: fails on valid input.
4540 rm -f conftest.err conftest.i conftest.$ac_ext
4542 # OK, works on sane cases. Now check whether nonexistent headers
4543 # can be detected and how.
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4546 #include <ac_nonexistent.h>
4548 if ac_fn_c_try_cpp "$LINENO"; then :
4549 # Broken: success on invalid input.
4552 # Passes both tests.
4556 rm -f conftest.err conftest.i conftest.$ac_ext
4559 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4560 rm -f conftest.i conftest.err conftest.$ac_ext
4561 if $ac_preproc_ok; then :
4564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4566 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4567 See \`config.log' for more details" "$LINENO" 5; }
4571 ac_cpp='$CPP $CPPFLAGS'
4572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4578 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4579 if ${ac_cv_path_GREP+:} false; then :
4580 $as_echo_n "(cached) " >&6
4582 if test -z "$GREP"; then
4583 ac_path_GREP_found=false
4584 # Loop through the user's path and test for each of PROGNAME-LIST
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4589 test -z "$as_dir" && as_dir=.
4590 for ac_prog in grep ggrep; do
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4593 as_fn_executable_p "$ac_path_GREP" || continue
4594 # Check for GNU ac_path_GREP and select it if it is found.
4595 # Check for GNU $ac_path_GREP
4596 case `"$ac_path_GREP" --version 2>&1` in
4598 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4601 $as_echo_n 0123456789 >"conftest.in"
4604 cat "conftest.in" "conftest.in" >"conftest.tmp"
4605 mv "conftest.tmp" "conftest.in"
4606 cp "conftest.in" "conftest.nl"
4607 $as_echo 'GREP' >> "conftest.nl"
4608 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4609 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4610 as_fn_arith $ac_count + 1 && ac_count=$as_val
4611 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4612 # Best one so far, save it but keep looking for a better one
4613 ac_cv_path_GREP="$ac_path_GREP"
4614 ac_path_GREP_max=$ac_count
4616 # 10*(2^10) chars as input seems more than enough
4617 test $ac_count -gt 10 && break
4619 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4622 $ac_path_GREP_found && break 3
4627 if test -z "$ac_cv_path_GREP"; then
4628 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4631 ac_cv_path_GREP=$GREP
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4636 $as_echo "$ac_cv_path_GREP" >&6; }
4637 GREP="$ac_cv_path_GREP"
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4641 $as_echo_n "checking for egrep... " >&6; }
4642 if ${ac_cv_path_EGREP+:} false; then :
4643 $as_echo_n "(cached) " >&6
4645 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4646 then ac_cv_path_EGREP="$GREP -E"
4648 if test -z "$EGREP"; then
4649 ac_path_EGREP_found=false
4650 # Loop through the user's path and test for each of PROGNAME-LIST
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4655 test -z "$as_dir" && as_dir=.
4656 for ac_prog in egrep; do
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4659 as_fn_executable_p "$ac_path_EGREP" || continue
4660 # Check for GNU ac_path_EGREP and select it if it is found.
4661 # Check for GNU $ac_path_EGREP
4662 case `"$ac_path_EGREP" --version 2>&1` in
4664 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4667 $as_echo_n 0123456789 >"conftest.in"
4670 cat "conftest.in" "conftest.in" >"conftest.tmp"
4671 mv "conftest.tmp" "conftest.in"
4672 cp "conftest.in" "conftest.nl"
4673 $as_echo 'EGREP' >> "conftest.nl"
4674 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4675 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4676 as_fn_arith $ac_count + 1 && ac_count=$as_val
4677 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4678 # Best one so far, save it but keep looking for a better one
4679 ac_cv_path_EGREP="$ac_path_EGREP"
4680 ac_path_EGREP_max=$ac_count
4682 # 10*(2^10) chars as input seems more than enough
4683 test $ac_count -gt 10 && break
4685 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4688 $ac_path_EGREP_found && break 3
4693 if test -z "$ac_cv_path_EGREP"; then
4694 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4697 ac_cv_path_EGREP=$EGREP
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4703 $as_echo "$ac_cv_path_EGREP" >&6; }
4704 EGREP="$ac_cv_path_EGREP"
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4708 $as_echo_n "checking for ANSI C header files... " >&6; }
4709 if ${ac_cv_header_stdc+:} false; then :
4710 $as_echo_n "(cached) " >&6
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4727 if ac_fn_c_try_compile "$LINENO"; then :
4728 ac_cv_header_stdc=yes
4730 ac_cv_header_stdc=no
4732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734 if test $ac_cv_header_stdc = yes; then
4735 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4742 $EGREP "memchr" >/dev/null 2>&1; then :
4745 ac_cv_header_stdc=no
4751 if test $ac_cv_header_stdc = yes; then
4752 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h. */
4758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4759 $EGREP "free" >/dev/null 2>&1; then :
4762 ac_cv_header_stdc=no
4768 if test $ac_cv_header_stdc = yes; then
4769 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4770 if test "$cross_compiling" = yes; then :
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4777 #if ((' ' & 0x0FF) == 0x020)
4778 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4779 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4781 # define ISLOWER(c) \
4782 (('a' <= (c) && (c) <= 'i') \
4783 || ('j' <= (c) && (c) <= 'r') \
4784 || ('s' <= (c) && (c) <= 'z'))
4785 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4788 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4793 for (i = 0; i < 256; i++)
4794 if (XOR (islower (i), ISLOWER (i))
4795 || toupper (i) != TOUPPER (i))
4800 if ac_fn_c_try_run "$LINENO"; then :
4803 ac_cv_header_stdc=no
4805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4806 conftest.$ac_objext conftest.beam conftest.$ac_ext
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4812 $as_echo "$ac_cv_header_stdc" >&6; }
4813 if test $ac_cv_header_stdc = yes; then
4815 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4819 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4820 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4821 inttypes.h stdint.h unistd.h
4823 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4824 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4826 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4827 cat >>confdefs.h <<_ACEOF
4828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4837 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4838 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4845 if test "$MINIX" = yes; then
4847 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4850 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4853 $as_echo "#define _MINIX 1" >>confdefs.h
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4859 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4860 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4861 $as_echo_n "(cached) " >&6
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4866 # define __EXTENSIONS__ 1
4867 $ac_includes_default
4876 if ac_fn_c_try_compile "$LINENO"; then :
4877 ac_cv_safe_to_define___extensions__=yes
4879 ac_cv_safe_to_define___extensions__=no
4881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4884 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4885 test $ac_cv_safe_to_define___extensions__ = yes &&
4886 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4888 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4890 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4892 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4894 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4897 # Check whether --enable-largefile was given.
4898 if test "${enable_largefile+set}" = set; then :
4899 enableval=$enable_largefile;
4902 if test "$enable_largefile" != no; then
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4905 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4906 if ${ac_cv_sys_largefile_CC+:} false; then :
4907 $as_echo_n "(cached) " >&6
4909 ac_cv_sys_largefile_CC=no
4910 if test "$GCC" != yes; then
4913 # IRIX 6.2 and later do not support large files by default,
4914 # so use the C compiler's -n32 option if that helps.
4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916 /* end confdefs.h. */
4917 #include <sys/types.h>
4918 /* Check that off_t can represent 2**63 - 1 correctly.
4919 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4920 since some C++ compilers masquerading as C compilers
4921 incorrectly reject 9223372036854775807. */
4922 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4923 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4924 && LARGE_OFF_T % 2147483647 == 1)
4934 if ac_fn_c_try_compile "$LINENO"; then :
4937 rm -f core conftest.err conftest.$ac_objext
4939 if ac_fn_c_try_compile "$LINENO"; then :
4940 ac_cv_sys_largefile_CC=' -n32'; break
4942 rm -f core conftest.err conftest.$ac_objext
4946 rm -f conftest.$ac_ext
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4950 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4951 if test "$ac_cv_sys_largefile_CC" != no; then
4952 CC=$CC$ac_cv_sys_largefile_CC
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4956 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4957 if ${ac_cv_sys_file_offset_bits+:} false; then :
4958 $as_echo_n "(cached) " >&6
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h. */
4963 #include <sys/types.h>
4964 /* Check that off_t can represent 2**63 - 1 correctly.
4965 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4966 since some C++ compilers masquerading as C compilers
4967 incorrectly reject 9223372036854775807. */
4968 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4969 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4970 && LARGE_OFF_T % 2147483647 == 1)
4980 if ac_fn_c_try_compile "$LINENO"; then :
4981 ac_cv_sys_file_offset_bits=no; break
4983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4986 #define _FILE_OFFSET_BITS 64
4987 #include <sys/types.h>
4988 /* Check that off_t can represent 2**63 - 1 correctly.
4989 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4990 since some C++ compilers masquerading as C compilers
4991 incorrectly reject 9223372036854775807. */
4992 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4993 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4994 && LARGE_OFF_T % 2147483647 == 1)
5004 if ac_fn_c_try_compile "$LINENO"; then :
5005 ac_cv_sys_file_offset_bits=64; break
5007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5008 ac_cv_sys_file_offset_bits=unknown
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5013 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5014 case $ac_cv_sys_file_offset_bits in #(
5017 cat >>confdefs.h <<_ACEOF
5018 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5023 if test $ac_cv_sys_file_offset_bits = unknown; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5025 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5026 if ${ac_cv_sys_large_files+:} false; then :
5027 $as_echo_n "(cached) " >&6
5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031 /* end confdefs.h. */
5032 #include <sys/types.h>
5033 /* Check that off_t can represent 2**63 - 1 correctly.
5034 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5035 since some C++ compilers masquerading as C compilers
5036 incorrectly reject 9223372036854775807. */
5037 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5038 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5039 && LARGE_OFF_T % 2147483647 == 1)
5049 if ac_fn_c_try_compile "$LINENO"; then :
5050 ac_cv_sys_large_files=no; break
5052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054 /* end confdefs.h. */
5055 #define _LARGE_FILES 1
5056 #include <sys/types.h>
5057 /* Check that off_t can represent 2**63 - 1 correctly.
5058 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5059 since some C++ compilers masquerading as C compilers
5060 incorrectly reject 9223372036854775807. */
5061 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5062 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5063 && LARGE_OFF_T % 2147483647 == 1)
5073 if ac_fn_c_try_compile "$LINENO"; then :
5074 ac_cv_sys_large_files=1; break
5076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5077 ac_cv_sys_large_files=unknown
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5082 $as_echo "$ac_cv_sys_large_files" >&6; }
5083 case $ac_cv_sys_large_files in #(
5086 cat >>confdefs.h <<_ACEOF
5087 #define _LARGE_FILES $ac_cv_sys_large_files
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5099 $as_echo_n "checking whether ln -s works... " >&6; }
5101 if test "$LN_S" = "ln -s"; then
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5103 $as_echo "yes" >&6; }
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5106 $as_echo "no, using $LN_S" >&6; }
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5110 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5112 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5113 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5114 $as_echo_n "(cached) " >&6
5116 cat >conftest.make <<\_ACEOF
5119 @echo '@@@%%%=$(MAKE)=@@@%%%'
5121 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5122 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5124 eval ac_cv_prog_make_${ac_make}_set=yes;;
5126 eval ac_cv_prog_make_${ac_make}_set=no;;
5130 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5132 $as_echo "yes" >&6; }
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5137 SET_MAKE="MAKE=${MAKE-make}"
5147 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5148 if test -n "$ac_tool_prefix"; then
5149 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5150 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152 $as_echo_n "checking for $ac_word... " >&6; }
5153 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5154 $as_echo_n "(cached) " >&6
5158 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5168 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5180 if test -n "$PKG_CONFIG"; then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5182 $as_echo "$PKG_CONFIG" >&6; }
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185 $as_echo "no" >&6; }
5190 if test -z "$ac_cv_path_PKG_CONFIG"; then
5191 ac_pt_PKG_CONFIG=$PKG_CONFIG
5192 # Extract the first word of "pkg-config", so it can be a program name with args.
5193 set dummy pkg-config; ac_word=$2
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5195 $as_echo_n "checking for $ac_word... " >&6; }
5196 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5197 $as_echo_n "(cached) " >&6
5199 case $ac_pt_PKG_CONFIG in
5201 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 test -z "$as_dir" && as_dir=.
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5211 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5223 if test -n "$ac_pt_PKG_CONFIG"; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5225 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5231 if test "x$ac_pt_PKG_CONFIG" = x; then
5234 case $cross_compiling:$ac_tool_warned in
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5238 ac_tool_warned=yes ;;
5240 PKG_CONFIG=$ac_pt_PKG_CONFIG
5243 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5247 if test -n "$PKG_CONFIG"; then
5248 _pkg_min_version=0.9.0
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5250 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5251 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5253 $as_echo "yes" >&6; }
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 $as_echo "no" >&6; }
5263 # Check whether --with-pkgconfigdir was given.
5264 if test "${with_pkgconfigdir+set}" = set; then :
5265 withval=$with_pkgconfigdir;
5267 with_pkgconfigdir='${libdir}/pkgconfig'
5270 pkgconfigdir=$with_pkgconfigdir
5277 GIT=${GIT-"${am_missing_run}git"}
5280 GPERF=${GPERF-"${am_missing_run}gperf"}
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM macro" >&5
5284 $as_echo_n "checking for RM macro... " >&6; }
5285 _predefined_rm=`make -p -f /dev/null 2>/dev/null|grep '^RM ='|sed -e 's/^RM = //'`
5286 if test "x$_predefined_rm" = "x"; then
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no predefined RM" >&5
5288 $as_echo "no predefined RM" >&6; }
5289 # Extract the first word of "rm", so it can be a program name with args.
5290 set dummy rm; ac_word=$2
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5292 $as_echo_n "checking for $ac_word... " >&6; }
5293 if ${ac_cv_prog_RM+:} false; then :
5294 $as_echo_n "(cached) " >&6
5296 if test -n "$RM"; then
5297 ac_cv_prog_RM="$RM" # Let the user override the test.
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 test -z "$as_dir" && as_dir=.
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5306 ac_cv_prog_RM="rm -f"
5307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5317 if test -n "$RM"; then
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5319 $as_echo "$RM" >&6; }
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322 $as_echo "no" >&6; }
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_predefined_rm" >&5
5328 $as_echo "$_predefined_rm" >&6; }
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5335 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5340 macro_version='2.4.6'
5341 macro_revision='2.4.6'
5355 ltmain=$ac_aux_dir/ltmain.sh
5357 # Make sure we can run config.sub.
5358 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5359 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5362 $as_echo_n "checking build system type... " >&6; }
5363 if ${ac_cv_build+:} false; then :
5364 $as_echo_n "(cached) " >&6
5366 ac_build_alias=$build_alias
5367 test "x$ac_build_alias" = x &&
5368 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5369 test "x$ac_build_alias" = x &&
5370 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5371 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5372 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5376 $as_echo "$ac_cv_build" >&6; }
5377 case $ac_cv_build in
5379 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5382 ac_save_IFS=$IFS; IFS='-'
5388 # Remember, the first character of IFS is used to create $*,
5389 # except with old shells:
5392 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5396 $as_echo_n "checking host system type... " >&6; }
5397 if ${ac_cv_host+:} false; then :
5398 $as_echo_n "(cached) " >&6
5400 if test "x$host_alias" = x; then
5401 ac_cv_host=$ac_cv_build
5403 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5404 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5409 $as_echo "$ac_cv_host" >&6; }
5412 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5415 ac_save_IFS=$IFS; IFS='-'
5421 # Remember, the first character of IFS is used to create $*,
5422 # except with old shells:
5425 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5428 # Backslashify metacharacters that are still active within
5429 # double-quoted strings.
5430 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5432 # Same as above, but do not quote variable references.
5433 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5435 # Sed substitution to delay expansion of an escaped shell variable in a
5436 # double_quote_subst'ed string.
5437 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5439 # Sed substitution to delay expansion of an escaped single quote.
5440 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5442 # Sed substitution to avoid accidental globbing in evaled expressions
5443 no_glob_subst='s/\*/\\\*/g'
5445 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5446 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5447 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5450 $as_echo_n "checking how to print strings... " >&6; }
5451 # Test print first, because it will be a builtin if present.
5452 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5453 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5455 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5458 # Use this function as a fallback that always works.
5459 func_fallback_echo ()
5461 eval 'cat <<_LTECHO_EOF
5465 ECHO='func_fallback_echo'
5468 # func_echo_all arg...
5469 # Invoke $ECHO with all args, space-separated.
5476 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5477 $as_echo "printf" >&6; } ;;
5478 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5479 $as_echo "print -r" >&6; } ;;
5480 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5481 $as_echo "cat" >&6; } ;;
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5498 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5499 if ${ac_cv_path_SED+:} false; then :
5500 $as_echo_n "(cached) " >&6
5502 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5503 for ac_i in 1 2 3 4 5 6 7; do
5504 ac_script="$ac_script$as_nl$ac_script"
5506 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5507 { ac_script=; unset ac_script;}
5508 if test -z "$SED"; then
5509 ac_path_SED_found=false
5510 # Loop through the user's path and test for each of PROGNAME-LIST
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 test -z "$as_dir" && as_dir=.
5516 for ac_prog in sed gsed; do
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5519 as_fn_executable_p "$ac_path_SED" || continue
5520 # Check for GNU ac_path_SED and select it if it is found.
5521 # Check for GNU $ac_path_SED
5522 case `"$ac_path_SED" --version 2>&1` in
5524 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5527 $as_echo_n 0123456789 >"conftest.in"
5530 cat "conftest.in" "conftest.in" >"conftest.tmp"
5531 mv "conftest.tmp" "conftest.in"
5532 cp "conftest.in" "conftest.nl"
5533 $as_echo '' >> "conftest.nl"
5534 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5535 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5536 as_fn_arith $ac_count + 1 && ac_count=$as_val
5537 if test $ac_count -gt ${ac_path_SED_max-0}; then
5538 # Best one so far, save it but keep looking for a better one
5539 ac_cv_path_SED="$ac_path_SED"
5540 ac_path_SED_max=$ac_count
5542 # 10*(2^10) chars as input seems more than enough
5543 test $ac_count -gt 10 && break
5545 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5548 $ac_path_SED_found && break 3
5553 if test -z "$ac_cv_path_SED"; then
5554 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5562 $as_echo "$ac_cv_path_SED" >&6; }
5563 SED="$ac_cv_path_SED"
5566 test -z "$SED" && SED=sed
5567 Xsed="$SED -e 1s/^X//"
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5580 $as_echo_n "checking for fgrep... " >&6; }
5581 if ${ac_cv_path_FGREP+:} false; then :
5582 $as_echo_n "(cached) " >&6
5584 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5585 then ac_cv_path_FGREP="$GREP -F"
5587 if test -z "$FGREP"; then
5588 ac_path_FGREP_found=false
5589 # Loop through the user's path and test for each of PROGNAME-LIST
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5594 test -z "$as_dir" && as_dir=.
5595 for ac_prog in fgrep; do
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5598 as_fn_executable_p "$ac_path_FGREP" || continue
5599 # Check for GNU ac_path_FGREP and select it if it is found.
5600 # Check for GNU $ac_path_FGREP
5601 case `"$ac_path_FGREP" --version 2>&1` in
5603 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5606 $as_echo_n 0123456789 >"conftest.in"
5609 cat "conftest.in" "conftest.in" >"conftest.tmp"
5610 mv "conftest.tmp" "conftest.in"
5611 cp "conftest.in" "conftest.nl"
5612 $as_echo 'FGREP' >> "conftest.nl"
5613 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5614 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5615 as_fn_arith $ac_count + 1 && ac_count=$as_val
5616 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5617 # Best one so far, save it but keep looking for a better one
5618 ac_cv_path_FGREP="$ac_path_FGREP"
5619 ac_path_FGREP_max=$ac_count
5621 # 10*(2^10) chars as input seems more than enough
5622 test $ac_count -gt 10 && break
5624 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5627 $ac_path_FGREP_found && break 3
5632 if test -z "$ac_cv_path_FGREP"; then
5633 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5636 ac_cv_path_FGREP=$FGREP
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5642 $as_echo "$ac_cv_path_FGREP" >&6; }
5643 FGREP="$ac_cv_path_FGREP"
5646 test -z "$GREP" && GREP=grep
5666 # Check whether --with-gnu-ld was given.
5667 if test "${with_gnu_ld+set}" = set; then :
5668 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5674 if test yes = "$GCC"; then
5675 # Check if gcc -print-prog-name=ld gives a path.
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5677 $as_echo_n "checking for ld used by $CC... " >&6; }
5680 # gcc leaves a trailing carriage return, which upsets mingw
5681 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5683 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5686 # Accept absolute paths.
5688 re_direlt='/[^/][^/]*/\.\./'
5689 # Canonicalize the pathname of ld
5690 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5691 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5692 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5694 test -z "$LD" && LD=$ac_prog
5697 # If it fails, then pretend we aren't using GCC.
5701 # If it is relative, then search for the first ld in PATH.
5705 elif test yes = "$with_gnu_ld"; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5707 $as_echo_n "checking for GNU ld... " >&6; }
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5710 $as_echo_n "checking for non-GNU ld... " >&6; }
5712 if ${lt_cv_path_LD+:} false; then :
5713 $as_echo_n "(cached) " >&6
5715 if test -z "$LD"; then
5716 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5717 for ac_dir in $PATH; do
5719 test -z "$ac_dir" && ac_dir=.
5720 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5721 lt_cv_path_LD=$ac_dir/$ac_prog
5722 # Check to see if the program is GNU ld. I'd rather use --version,
5723 # but apparently some variants of GNU ld only accept -v.
5724 # Break only if it was the GNU/non-GNU ld that we prefer.
5725 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5726 *GNU* | *'with BFD'*)
5727 test no != "$with_gnu_ld" && break
5730 test yes != "$with_gnu_ld" && break
5737 lt_cv_path_LD=$LD # Let the user override the test with a path.
5742 if test -n "$LD"; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5744 $as_echo "$LD" >&6; }
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5749 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5751 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5752 if ${lt_cv_prog_gnu_ld+:} false; then :
5753 $as_echo_n "(cached) " >&6
5755 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5756 case `$LD -v 2>&1 </dev/null` in
5757 *GNU* | *'with BFD'*)
5758 lt_cv_prog_gnu_ld=yes
5761 lt_cv_prog_gnu_ld=no
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5766 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5767 with_gnu_ld=$lt_cv_prog_gnu_ld
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5778 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5779 if ${lt_cv_path_NM+:} false; then :
5780 $as_echo_n "(cached) " >&6
5782 if test -n "$NM"; then
5783 # Let the user override the test.
5786 lt_nm_to_check=${ac_tool_prefix}nm
5787 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5788 lt_nm_to_check="$lt_nm_to_check nm"
5790 for lt_tmp_nm in $lt_nm_to_check; do
5791 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5792 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5794 test -z "$ac_dir" && ac_dir=.
5795 tmp_nm=$ac_dir/$lt_tmp_nm
5796 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5797 # Check to see if the nm accepts a BSD-compat flag.
5798 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5799 # nm: unknown option "B" ignored
5800 # Tru64's nm complains that /dev/null is an invalid object file
5801 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5803 mingw*) lt_bad_file=conftest.nm/nofile ;;
5804 *) lt_bad_file=/dev/null ;;
5806 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5807 *$lt_bad_file* | *'Invalid file or object type'*)
5808 lt_cv_path_NM="$tmp_nm -B"
5812 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5814 lt_cv_path_NM="$tmp_nm -p"
5818 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5819 continue # so that we can try to find one that supports BSD flags
5828 : ${lt_cv_path_NM=no}
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5832 $as_echo "$lt_cv_path_NM" >&6; }
5833 if test no != "$lt_cv_path_NM"; then
5836 # Didn't find any BSD compatible name lister, look for dumpbin.
5837 if test -n "$DUMPBIN"; then :
5838 # Let the user override the test.
5840 if test -n "$ac_tool_prefix"; then
5841 for ac_prog in dumpbin "link -dump"
5843 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5844 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5846 $as_echo_n "checking for $ac_word... " >&6; }
5847 if ${ac_cv_prog_DUMPBIN+:} false; then :
5848 $as_echo_n "(cached) " >&6
5850 if test -n "$DUMPBIN"; then
5851 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 test -z "$as_dir" && as_dir=.
5858 for ac_exec_ext in '' $ac_executable_extensions; do
5859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5860 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 DUMPBIN=$ac_cv_prog_DUMPBIN
5871 if test -n "$DUMPBIN"; then
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5873 $as_echo "$DUMPBIN" >&6; }
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 $as_echo "no" >&6; }
5880 test -n "$DUMPBIN" && break
5883 if test -z "$DUMPBIN"; then
5884 ac_ct_DUMPBIN=$DUMPBIN
5885 for ac_prog in dumpbin "link -dump"
5887 # Extract the first word of "$ac_prog", so it can be a program name with args.
5888 set dummy $ac_prog; ac_word=$2
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890 $as_echo_n "checking for $ac_word... " >&6; }
5891 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5892 $as_echo_n "(cached) " >&6
5894 if test -n "$ac_ct_DUMPBIN"; then
5895 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5904 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5915 if test -n "$ac_ct_DUMPBIN"; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5917 $as_echo "$ac_ct_DUMPBIN" >&6; }
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920 $as_echo "no" >&6; }
5924 test -n "$ac_ct_DUMPBIN" && break
5927 if test "x$ac_ct_DUMPBIN" = x; then
5930 case $cross_compiling:$ac_tool_warned in
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5934 ac_tool_warned=yes ;;
5936 DUMPBIN=$ac_ct_DUMPBIN
5940 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5942 DUMPBIN="$DUMPBIN -symbols -headers"
5950 if test : != "$DUMPBIN"; then
5954 test -z "$NM" && NM=nm
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5962 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5963 if ${lt_cv_nm_interface+:} false; then :
5964 $as_echo_n "(cached) " >&6
5966 lt_cv_nm_interface="BSD nm"
5967 echo "int some_variable = 0;" > conftest.$ac_ext
5968 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5969 (eval "$ac_compile" 2>conftest.err)
5970 cat conftest.err >&5
5971 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5972 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5973 cat conftest.err >&5
5974 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5975 cat conftest.out >&5
5976 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5977 lt_cv_nm_interface="MS dumpbin"
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5982 $as_echo "$lt_cv_nm_interface" >&6; }
5984 # find the maximum length of command line arguments
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5986 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5987 if ${lt_cv_sys_max_cmd_len+:} false; then :
5988 $as_echo_n "(cached) " >&6
5995 # On DJGPP, this test can blow up pretty badly due to problems in libc
5996 # (any single argument exceeding 2000 bytes causes a buffer overrun
5997 # during glob expansion). Even if it were fixed, the result of this
5998 # check would be larger than it should be.
5999 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6003 # Under GNU Hurd, this test is not required because there is
6004 # no limit to the length of command line arguments.
6005 # Libtool will interpret -1 as no limit whatsoever
6006 lt_cv_sys_max_cmd_len=-1;
6009 cygwin* | mingw* | cegcc*)
6010 # On Win9x/ME, this test blows up -- it succeeds, but takes
6011 # about 5 minutes as the teststring grows exponentially.
6012 # Worse, since 9x/ME are not pre-emptively multitasking,
6013 # you end up with a "frozen" computer, even though with patience
6014 # the test eventually succeeds (with a max line length of 256k).
6015 # Instead, let's just punt: use the minimum linelength reported by
6016 # all of the supported platforms: 8192 (on NT/2K/XP).
6017 lt_cv_sys_max_cmd_len=8192;
6021 # On MiNT this can take a long time and run out of memory.
6022 lt_cv_sys_max_cmd_len=8192;
6026 # On AmigaOS with pdksh, this test takes hours, literally.
6027 # So we just punt and use a minimum line length of 8192.
6028 lt_cv_sys_max_cmd_len=8192;
6031 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6032 # This has been around since 386BSD, at least. Likely further.
6033 if test -x /sbin/sysctl; then
6034 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6035 elif test -x /usr/sbin/sysctl; then
6036 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6038 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6040 # And add a safety zone
6041 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6042 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6046 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6047 lt_cv_sys_max_cmd_len=196608
6051 # The test takes a long time on OS/2.
6052 lt_cv_sys_max_cmd_len=8192
6056 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6057 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6058 # nice to cause kernel panics so lets avoid the loop below.
6059 # First set a reasonable default.
6060 lt_cv_sys_max_cmd_len=16384
6062 if test -x /sbin/sysconfig; then
6063 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6064 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6069 lt_cv_sys_max_cmd_len=102400
6071 sysv5* | sco5v6* | sysv4.2uw2*)
6072 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6073 if test -n "$kargmax"; then
6074 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6076 lt_cv_sys_max_cmd_len=32768
6080 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6081 if test -n "$lt_cv_sys_max_cmd_len" && \
6082 test undefined != "$lt_cv_sys_max_cmd_len"; then
6083 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6084 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6086 # Make teststring a little bigger before we do anything with it.
6087 # a 1K string should be a reasonable start.
6088 for i in 1 2 3 4 5 6 7 8; do
6089 teststring=$teststring$teststring
6091 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6092 # If test is not a shell built-in, we'll probably end up computing a
6093 # maximum length that is only half of the actual maximum length, but
6095 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6096 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6097 test 17 != "$i" # 1/2 MB should be enough
6100 teststring=$teststring$teststring
6102 # Only check the string length outside the loop.
6103 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6105 # Add a significant safety factor because C++ compilers can tack on
6106 # massive amounts of additional arguments before passing them to the
6107 # linker. It appears as though 1/2 is a usable value.
6108 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6115 if test -n "$lt_cv_sys_max_cmd_len"; then
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6117 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6120 $as_echo "none" >&6; }
6122 max_cmd_len=$lt_cv_sys_max_cmd_len
6133 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6143 # test EBCDIC or ASCII
6144 case `echo X|tr X '\101'` in
6145 A) # ASCII based system
6146 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6147 lt_SP2NL='tr \040 \012'
6148 lt_NL2SP='tr \015\012 \040\040'
6150 *) # EBCDIC based system
6151 lt_SP2NL='tr \100 \n'
6152 lt_NL2SP='tr \r\n \100\100'
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6165 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6166 if ${lt_cv_to_host_file_cmd+:} false; then :
6167 $as_echo_n "(cached) " >&6
6172 *-*-mingw* ) # actually msys
6173 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6176 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6178 * ) # otherwise, assume *nix
6179 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6185 *-*-mingw* ) # actually msys
6186 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6189 lt_cv_to_host_file_cmd=func_convert_file_noop
6191 * ) # otherwise, assume *nix
6192 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6196 * ) # unhandled hosts (and "normal" native builds)
6197 lt_cv_to_host_file_cmd=func_convert_file_noop
6203 to_host_file_cmd=$lt_cv_to_host_file_cmd
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6205 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6212 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6213 if ${lt_cv_to_tool_file_cmd+:} false; then :
6214 $as_echo_n "(cached) " >&6
6216 #assume ordinary cross tools, or native build.
6217 lt_cv_to_tool_file_cmd=func_convert_file_noop
6221 *-*-mingw* ) # actually msys
6222 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6230 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6232 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6239 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6240 if ${lt_cv_ld_reload_flag+:} false; then :
6241 $as_echo_n "(cached) " >&6
6243 lt_cv_ld_reload_flag='-r'
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6246 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6247 reload_flag=$lt_cv_ld_reload_flag
6248 case $reload_flag in
6250 *) reload_flag=" $reload_flag" ;;
6252 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6254 cygwin* | mingw* | pw32* | cegcc*)
6255 if test yes != "$GCC"; then
6260 if test yes = "$GCC"; then
6261 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6263 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6276 if test -n "$ac_tool_prefix"; then
6277 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6278 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280 $as_echo_n "checking for $ac_word... " >&6; }
6281 if ${ac_cv_prog_OBJDUMP+:} false; then :
6282 $as_echo_n "(cached) " >&6
6284 if test -n "$OBJDUMP"; then
6285 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6294 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 OBJDUMP=$ac_cv_prog_OBJDUMP
6305 if test -n "$OBJDUMP"; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6307 $as_echo "$OBJDUMP" >&6; }
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310 $as_echo "no" >&6; }
6315 if test -z "$ac_cv_prog_OBJDUMP"; then
6316 ac_ct_OBJDUMP=$OBJDUMP
6317 # Extract the first word of "objdump", so it can be a program name with args.
6318 set dummy objdump; ac_word=$2
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6320 $as_echo_n "checking for $ac_word... " >&6; }
6321 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6322 $as_echo_n "(cached) " >&6
6324 if test -n "$ac_ct_OBJDUMP"; then
6325 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 test -z "$as_dir" && as_dir=.
6332 for ac_exec_ext in '' $ac_executable_extensions; do
6333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6334 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6345 if test -n "$ac_ct_OBJDUMP"; then
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6347 $as_echo "$ac_ct_OBJDUMP" >&6; }
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350 $as_echo "no" >&6; }
6353 if test "x$ac_ct_OBJDUMP" = x; then
6356 case $cross_compiling:$ac_tool_warned in
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6360 ac_tool_warned=yes ;;
6362 OBJDUMP=$ac_ct_OBJDUMP
6365 OBJDUMP="$ac_cv_prog_OBJDUMP"
6368 test -z "$OBJDUMP" && OBJDUMP=objdump
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6376 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6377 if ${lt_cv_deplibs_check_method+:} false; then :
6378 $as_echo_n "(cached) " >&6
6380 lt_cv_file_magic_cmd='$MAGIC_CMD'
6381 lt_cv_file_magic_test_file=
6382 lt_cv_deplibs_check_method='unknown'
6383 # Need to set the preceding variable on all platforms that support
6384 # interlibrary dependencies.
6385 # 'none' -- dependencies not supported.
6386 # 'unknown' -- same as none, but documents that we really don't know.
6387 # 'pass_all' -- all dependencies passed with no checks.
6388 # 'test_compile' -- check by making test program.
6389 # 'file_magic [[regex]]' -- check by looking for files in library path
6390 # that responds to the $file_magic_cmd with a given extended regex.
6391 # If you have 'file' or equivalent on your system and you're not sure
6392 # whether 'pass_all' will *always* work, you probably want this one.
6396 lt_cv_deplibs_check_method=pass_all
6400 lt_cv_deplibs_check_method=pass_all
6404 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6405 lt_cv_file_magic_cmd='/usr/bin/file -L'
6406 lt_cv_file_magic_test_file=/shlib/libc.so
6410 # func_win32_libid is a shell function defined in ltmain.sh
6411 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6412 lt_cv_file_magic_cmd='func_win32_libid'
6416 # Base MSYS/MinGW do not provide the 'file' command needed by
6417 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6418 # unless we find 'file', for example because we are cross-compiling.
6419 if ( file / ) >/dev/null 2>&1; then
6420 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6421 lt_cv_file_magic_cmd='func_win32_libid'
6423 # Keep this pattern in sync with the one in func_win32_libid.
6424 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6425 lt_cv_file_magic_cmd='$OBJDUMP -f'
6430 # use the weaker test based on 'objdump'. See mingw*.
6431 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6432 lt_cv_file_magic_cmd='$OBJDUMP -f'
6435 darwin* | rhapsody*)
6436 lt_cv_deplibs_check_method=pass_all
6439 freebsd* | dragonfly*)
6440 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6443 # Not sure whether the presence of OpenBSD here was a mistake.
6444 # Let's accept both of them until this is cleared up.
6445 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6446 lt_cv_file_magic_cmd=/usr/bin/file
6447 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6451 lt_cv_deplibs_check_method=pass_all
6456 lt_cv_deplibs_check_method=pass_all
6459 hpux10.20* | hpux11*)
6460 lt_cv_file_magic_cmd=/usr/bin/file
6463 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6464 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6467 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]'
6468 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6471 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6472 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6478 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6479 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6482 irix5* | irix6* | nonstopux*)
6484 *-32|*"-32 ") libmagic=32-bit;;
6485 *-n32|*"-n32 ") libmagic=N32;;
6486 *-64|*"-64 ") libmagic=64-bit;;
6487 *) libmagic=never-match;;
6489 lt_cv_deplibs_check_method=pass_all
6492 # This must be glibc/ELF.
6493 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6494 lt_cv_deplibs_check_method=pass_all
6498 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6499 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6501 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6506 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6507 lt_cv_file_magic_cmd=/usr/bin/file
6508 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6512 lt_cv_deplibs_check_method=pass_all
6516 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6517 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6519 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6523 osf3* | osf4* | osf5*)
6524 lt_cv_deplibs_check_method=pass_all
6528 lt_cv_deplibs_check_method=pass_all
6532 lt_cv_deplibs_check_method=pass_all
6535 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6536 lt_cv_deplibs_check_method=pass_all
6540 case $host_vendor in
6542 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]'
6543 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6546 lt_cv_deplibs_check_method=pass_all
6549 lt_cv_file_magic_cmd='/bin/file'
6550 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6553 lt_cv_file_magic_cmd='/bin/file'
6554 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6555 lt_cv_file_magic_test_file=/lib/libc.so
6558 lt_cv_deplibs_check_method=pass_all
6561 lt_cv_deplibs_check_method=pass_all
6567 lt_cv_deplibs_check_method=pass_all
6570 lt_cv_deplibs_check_method=pass_all
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6576 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6580 if test "$build" = "$host"; then
6583 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6586 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6592 file_magic_cmd=$lt_cv_file_magic_cmd
6593 deplibs_check_method=$lt_cv_deplibs_check_method
6594 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6617 if test -n "$ac_tool_prefix"; then
6618 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6619 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621 $as_echo_n "checking for $ac_word... " >&6; }
6622 if ${ac_cv_prog_DLLTOOL+:} false; then :
6623 $as_echo_n "(cached) " >&6
6625 if test -n "$DLLTOOL"; then
6626 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 test -z "$as_dir" && as_dir=.
6633 for ac_exec_ext in '' $ac_executable_extensions; do
6634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6635 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 DLLTOOL=$ac_cv_prog_DLLTOOL
6646 if test -n "$DLLTOOL"; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6648 $as_echo "$DLLTOOL" >&6; }
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6651 $as_echo "no" >&6; }
6656 if test -z "$ac_cv_prog_DLLTOOL"; then
6657 ac_ct_DLLTOOL=$DLLTOOL
6658 # Extract the first word of "dlltool", so it can be a program name with args.
6659 set dummy dlltool; 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_ac_ct_DLLTOOL+:} false; then :
6663 $as_echo_n "(cached) " >&6
6665 if test -n "$ac_ct_DLLTOOL"; then
6666 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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_ac_ct_DLLTOOL="dlltool"
6676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6686 if test -n "$ac_ct_DLLTOOL"; then
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6688 $as_echo "$ac_ct_DLLTOOL" >&6; }
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6691 $as_echo "no" >&6; }
6694 if test "x$ac_ct_DLLTOOL" = x; then
6697 case $cross_compiling:$ac_tool_warned in
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6701 ac_tool_warned=yes ;;
6703 DLLTOOL=$ac_ct_DLLTOOL
6706 DLLTOOL="$ac_cv_prog_DLLTOOL"
6709 test -z "$DLLTOOL" && DLLTOOL=dlltool
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6718 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6719 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6720 $as_echo_n "(cached) " >&6
6722 lt_cv_sharedlib_from_linklib_cmd='unknown'
6725 cygwin* | mingw* | pw32* | cegcc*)
6726 # two different shell functions defined in ltmain.sh;
6727 # decide which one to use based on capabilities of $DLLTOOL
6728 case `$DLLTOOL --help 2>&1` in
6729 *--identify-strict*)
6730 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6733 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6738 # fallback: assume linklib IS sharedlib
6739 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6745 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6746 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6747 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6755 if test -n "$ac_tool_prefix"; then
6758 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6759 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761 $as_echo_n "checking for $ac_word... " >&6; }
6762 if ${ac_cv_prog_AR+:} false; then :
6763 $as_echo_n "(cached) " >&6
6765 if test -n "$AR"; then
6766 ac_cv_prog_AR="$AR" # Let the user override the test.
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6775 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 if test -n "$AR"; then
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6788 $as_echo "$AR" >&6; }
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6795 test -n "$AR" && break
6798 if test -z "$AR"; then
6802 # Extract the first word of "$ac_prog", so it can be a program name with args.
6803 set dummy $ac_prog; ac_word=$2
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6805 $as_echo_n "checking for $ac_word... " >&6; }
6806 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6807 $as_echo_n "(cached) " >&6
6809 if test -n "$ac_ct_AR"; then
6810 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6819 ac_cv_prog_ac_ct_AR="$ac_prog"
6820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6830 if test -n "$ac_ct_AR"; then
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6832 $as_echo "$ac_ct_AR" >&6; }
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835 $as_echo "no" >&6; }
6839 test -n "$ac_ct_AR" && break
6842 if test "x$ac_ct_AR" = x; then
6845 case $cross_compiling:$ac_tool_warned in
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6849 ac_tool_warned=yes ;;
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6869 $as_echo_n "checking for archiver @FILE support... " >&6; }
6870 if ${lt_cv_ar_at_file+:} false; then :
6871 $as_echo_n "(cached) " >&6
6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h. */
6885 if ac_fn_c_try_compile "$LINENO"; then :
6886 echo conftest.$ac_objext > conftest.lst
6887 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6889 (eval $lt_ar_try) 2>&5
6891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6892 test $ac_status = 0; }
6893 if test 0 -eq "$ac_status"; then
6894 # Ensure the archiver fails upon bogus file names.
6895 rm -f conftest.$ac_objext libconftest.a
6896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6897 (eval $lt_ar_try) 2>&5
6899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6900 test $ac_status = 0; }
6901 if test 0 -ne "$ac_status"; then
6905 rm -f conftest.* libconftest.a
6908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6912 $as_echo "$lt_cv_ar_at_file" >&6; }
6914 if test no = "$lt_cv_ar_at_file"; then
6917 archiver_list_spec=$lt_cv_ar_at_file
6926 if test -n "$ac_tool_prefix"; then
6927 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6928 set dummy ${ac_tool_prefix}strip; ac_word=$2
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930 $as_echo_n "checking for $ac_word... " >&6; }
6931 if ${ac_cv_prog_STRIP+:} false; then :
6932 $as_echo_n "(cached) " >&6
6934 if test -n "$STRIP"; then
6935 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 test -z "$as_dir" && as_dir=.
6942 for ac_exec_ext in '' $ac_executable_extensions; do
6943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6944 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6954 STRIP=$ac_cv_prog_STRIP
6955 if test -n "$STRIP"; then
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6957 $as_echo "$STRIP" >&6; }
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960 $as_echo "no" >&6; }
6965 if test -z "$ac_cv_prog_STRIP"; then
6967 # Extract the first word of "strip", so it can be a program name with args.
6968 set dummy strip; ac_word=$2
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6970 $as_echo_n "checking for $ac_word... " >&6; }
6971 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6972 $as_echo_n "(cached) " >&6
6974 if test -n "$ac_ct_STRIP"; then
6975 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981 test -z "$as_dir" && as_dir=.
6982 for ac_exec_ext in '' $ac_executable_extensions; do
6983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6984 ac_cv_prog_ac_ct_STRIP="strip"
6985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6994 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6995 if test -n "$ac_ct_STRIP"; then
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6997 $as_echo "$ac_ct_STRIP" >&6; }
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000 $as_echo "no" >&6; }
7003 if test "x$ac_ct_STRIP" = x; then
7006 case $cross_compiling:$ac_tool_warned in
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7010 ac_tool_warned=yes ;;
7015 STRIP="$ac_cv_prog_STRIP"
7018 test -z "$STRIP" && STRIP=:
7025 if test -n "$ac_tool_prefix"; then
7026 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7027 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029 $as_echo_n "checking for $ac_word... " >&6; }
7030 if ${ac_cv_prog_RANLIB+:} false; then :
7031 $as_echo_n "(cached) " >&6
7033 if test -n "$RANLIB"; then
7034 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 test -z "$as_dir" && as_dir=.
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7043 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7053 RANLIB=$ac_cv_prog_RANLIB
7054 if test -n "$RANLIB"; then
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7056 $as_echo "$RANLIB" >&6; }
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059 $as_echo "no" >&6; }
7064 if test -z "$ac_cv_prog_RANLIB"; then
7065 ac_ct_RANLIB=$RANLIB
7066 # Extract the first word of "ranlib", so it can be a program name with args.
7067 set dummy ranlib; ac_word=$2
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069 $as_echo_n "checking for $ac_word... " >&6; }
7070 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7071 $as_echo_n "(cached) " >&6
7073 if test -n "$ac_ct_RANLIB"; then
7074 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 test -z "$as_dir" && as_dir=.
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083 ac_cv_prog_ac_ct_RANLIB="ranlib"
7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7093 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7094 if test -n "$ac_ct_RANLIB"; then
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7096 $as_echo "$ac_ct_RANLIB" >&6; }
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099 $as_echo "no" >&6; }
7102 if test "x$ac_ct_RANLIB" = x; then
7105 case $cross_compiling:$ac_tool_warned in
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7109 ac_tool_warned=yes ;;
7111 RANLIB=$ac_ct_RANLIB
7114 RANLIB="$ac_cv_prog_RANLIB"
7117 test -z "$RANLIB" && RANLIB=:
7124 # Determine commands to create old-style static archives.
7125 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7126 old_postinstall_cmds='chmod 644 $oldlib'
7127 old_postuninstall_cmds=
7129 if test -n "$RANLIB"; then
7132 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7135 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7138 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7143 lock_old_archive_extraction=yes ;;
7145 lock_old_archive_extraction=no ;;
7186 # If no C compiler was specified, use CC.
7189 # If no C compiler flags were specified, use CFLAGS.
7190 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7192 # Allow CC to be a program name with arguments.
7196 # Check for command to grab the raw symbol name followed by C symbol from nm.
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7198 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7199 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7200 $as_echo_n "(cached) " >&6
7203 # These are sane defaults that work on at least a few old systems.
7204 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7206 # Character class describing NM global symbol codes.
7207 symcode='[BCDEGRST]'
7209 # Regexp to match symbols that can be accessed directly from C.
7210 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7212 # Define system-specific variables.
7217 cygwin* | mingw* | pw32* | cegcc*)
7218 symcode='[ABCDGISTW]'
7221 if test ia64 = "$host_cpu"; then
7222 symcode='[ABCDEGRST]'
7226 symcode='[BCDEGRST]'
7229 symcode='[BCDEGQRST]'
7240 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7248 # If we're using GNU nm, then use its standard symbol codes.
7249 case `$NM -V 2>&1` in
7250 *GNU* | *'with BFD'*)
7251 symcode='[ABCDGIRSTW]' ;;
7254 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7255 # Gets list of data symbols to import.
7256 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7257 # Adjust the below global symbol transforms to fixup imported variables.
7258 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7259 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7260 lt_c_name_lib_hook="\
7261 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7262 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7264 # Disable hooks by default.
7265 lt_cv_sys_global_symbol_to_import=
7271 # Transform an extracted symbol line into a proper C declaration.
7272 # Some systems (esp. on ia64) link data and code symbols differently,
7273 # so use this general approach.
7274 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7276 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7277 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7279 # Transform an extracted symbol line into symbol name and symbol address
7280 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7282 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7283 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7285 # Transform an extracted symbol line into symbol name with lib prefix and
7287 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7288 $lt_c_name_lib_hook\
7289 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7290 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7291 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7293 # Handle CRLF in mingw tool chain
7297 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7301 # Try without a prefix underscore, then with it.
7302 for ac_symprfx in "" "_"; do
7304 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7305 symxfrm="\\1 $ac_symprfx\\2 \\2"
7307 # Write the raw and C identifiers.
7308 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7309 # Fake it for dumpbin and say T for any non-static function,
7310 # D for any global variable and I for any imported variable.
7311 # Also find C++ and __fastcall symbols from MSVC++,
7312 # which start with @ or ?.
7313 lt_cv_sys_global_symbol_pipe="$AWK '"\
7314 " {last_section=section; section=\$ 3};"\
7315 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7316 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7317 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7318 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7319 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7320 " \$ 0!~/External *\|/{next};"\
7321 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7322 " {if(hide[section]) next};"\
7323 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7324 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7325 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7326 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7327 " ' prfx=^$ac_symprfx"
7329 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7331 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7333 # Check to see that the pipe works correctly.
7337 cat > conftest.$ac_ext <<_LT_EOF
7342 void nm_test_func(void);
7343 void nm_test_func(void){}
7347 int main(){nm_test_var='a';nm_test_func();return(0);}
7350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7351 (eval $ac_compile) 2>&5
7353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7354 test $ac_status = 0; }; then
7355 # Now try to grab the symbols.
7357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7358 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7361 test $ac_status = 0; } && test -s "$nlist"; then
7362 # Try sorting and uniquifying the output.
7363 if sort "$nlist" | uniq > "$nlist"T; then
7364 mv -f "$nlist"T "$nlist"
7369 # Make sure that we snagged all the symbols we need.
7370 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7371 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7372 cat <<_LT_EOF > conftest.$ac_ext
7373 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7374 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7375 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7376 relocations are performed -- see ld's documentation on pseudo-relocs. */
7377 # define LT_DLSYM_CONST
7378 #elif defined __osf__
7379 /* This system does not cope well with relocations in const data. */
7380 # define LT_DLSYM_CONST
7382 # define LT_DLSYM_CONST const
7390 # Now generate the symbol file.
7391 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7393 cat <<_LT_EOF >> conftest.$ac_ext
7395 /* The mapping between symbol names and symbols. */
7396 LT_DLSYM_CONST struct {
7400 lt__PROGRAM__LTX_preloaded_symbols[] =
7402 { "@PROGRAM@", (void *) 0 },
7404 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7405 cat <<\_LT_EOF >> conftest.$ac_ext
7409 /* This works around a problem in FreeBSD linker */
7410 #ifdef FREEBSD_WORKAROUND
7411 static const void *lt_preloaded_setup() {
7412 return lt__PROGRAM__LTX_preloaded_symbols;
7420 # Now try linking the two files.
7421 mv conftest.$ac_objext conftstm.$ac_objext
7422 lt_globsym_save_LIBS=$LIBS
7423 lt_globsym_save_CFLAGS=$CFLAGS
7424 LIBS=conftstm.$ac_objext
7425 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7427 (eval $ac_link) 2>&5
7429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7430 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7433 LIBS=$lt_globsym_save_LIBS
7434 CFLAGS=$lt_globsym_save_CFLAGS
7436 echo "cannot find nm_test_func in $nlist" >&5
7439 echo "cannot find nm_test_var in $nlist" >&5
7442 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7445 echo "$progname: failed program was:" >&5
7446 cat conftest.$ac_ext >&5
7448 rm -rf conftest* conftst*
7450 # Do not use the global_symbol_pipe unless it works.
7451 if test yes = "$pipe_works"; then
7454 lt_cv_sys_global_symbol_pipe=
7460 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7461 lt_cv_sys_global_symbol_to_cdecl=
7463 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7465 $as_echo "failed" >&6; }
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7468 $as_echo "ok" >&6; }
7471 # Response file support.
7472 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7473 nm_file_list_spec='@'
7474 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7475 nm_file_list_spec='@'
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7515 $as_echo_n "checking for sysroot... " >&6; }
7517 # Check whether --with-sysroot was given.
7518 if test "${with_sysroot+set}" = set; then :
7519 withval=$with_sysroot;
7526 case $with_sysroot in #(
7528 if test yes = "$GCC"; then
7529 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7533 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7539 $as_echo "$with_sysroot" >&6; }
7540 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7545 $as_echo "${lt_sysroot:-no}" >&6; }
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7552 $as_echo_n "checking for a working dd... " >&6; }
7553 if ${ac_cv_path_lt_DD+:} false; then :
7554 $as_echo_n "(cached) " >&6
7556 printf 0123456789abcdef0123456789abcdef >conftest.i
7557 cat conftest.i conftest.i >conftest2.i
7559 if test -z "$lt_DD"; then
7560 ac_path_lt_DD_found=false
7561 # Loop through the user's path and test for each of PROGNAME-LIST
7562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 test -z "$as_dir" && as_dir=.
7567 for ac_prog in dd; do
7568 for ac_exec_ext in '' $ac_executable_extensions; do
7569 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7570 as_fn_executable_p "$ac_path_lt_DD" || continue
7571 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7572 cmp -s conftest.i conftest.out \
7573 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7575 $ac_path_lt_DD_found && break 3
7580 if test -z "$ac_cv_path_lt_DD"; then
7584 ac_cv_path_lt_DD=$lt_DD
7587 rm -f conftest.i conftest2.i conftest.out
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7590 $as_echo "$ac_cv_path_lt_DD" >&6; }
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7594 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7595 if ${lt_cv_truncate_bin+:} false; then :
7596 $as_echo_n "(cached) " >&6
7598 printf 0123456789abcdef0123456789abcdef >conftest.i
7599 cat conftest.i conftest.i >conftest2.i
7601 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7602 cmp -s conftest.i conftest.out \
7603 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7605 rm -f conftest.i conftest2.i conftest.out
7606 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7609 $as_echo "$lt_cv_truncate_bin" >&6; }
7617 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7620 for cc_temp in $*""; do
7622 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7623 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7628 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7631 # Check whether --enable-libtool-lock was given.
7632 if test "${enable_libtool_lock+set}" = set; then :
7633 enableval=$enable_libtool_lock;
7636 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7638 # Some flags need to be propagated to the compiler or linker for good
7642 # Find out what ABI is being produced by ac_compile, and set mode
7643 # options accordingly.
7644 echo 'int i;' > conftest.$ac_ext
7645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7646 (eval $ac_compile) 2>&5
7648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7649 test $ac_status = 0; }; then
7650 case `/usr/bin/file conftest.$ac_objext` in
7662 # Find out what ABI is being produced by ac_compile, and set linker
7663 # options accordingly.
7664 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7666 (eval $ac_compile) 2>&5
7668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7669 test $ac_status = 0; }; then
7670 if test yes = "$lt_cv_prog_gnu_ld"; then
7671 case `/usr/bin/file conftest.$ac_objext` in
7673 LD="${LD-ld} -melf32bsmip"
7676 LD="${LD-ld} -melf32bmipn32"
7679 LD="${LD-ld} -melf64bmip"
7683 case `/usr/bin/file conftest.$ac_objext` in
7700 # Find out what ABI is being produced by ac_compile, and set linker
7701 # options accordingly.
7702 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7704 (eval $ac_compile) 2>&5
7706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7707 test $ac_status = 0; }; then
7709 case `/usr/bin/file conftest.$ac_objext` in
7717 case `/usr/bin/file conftest.$ac_objext` in
7719 emul="${emul}btsmip"
7722 emul="${emul}ltsmip"
7725 case `/usr/bin/file conftest.$ac_objext` in
7730 LD="${LD-ld} -m $emul"
7735 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7736 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7737 # Find out what ABI is being produced by ac_compile, and set linker
7738 # options accordingly. Note that the listed cases only cover the
7739 # situations where additional linker options are needed (such as when
7740 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7741 # vice versa); the common cases where no linker options are needed do
7742 # not appear in the list.
7743 echo 'int i;' > conftest.$ac_ext
7744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7745 (eval $ac_compile) 2>&5
7747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7748 test $ac_status = 0; }; then
7749 case `/usr/bin/file conftest.o` in
7752 x86_64-*kfreebsd*-gnu)
7753 LD="${LD-ld} -m elf_i386_fbsd"
7756 case `/usr/bin/file conftest.o` in
7758 LD="${LD-ld} -m elf32_x86_64"
7761 LD="${LD-ld} -m elf_i386"
7765 powerpc64le-*linux*)
7766 LD="${LD-ld} -m elf32lppclinux"
7769 LD="${LD-ld} -m elf32ppclinux"
7772 LD="${LD-ld} -m elf_s390"
7775 LD="${LD-ld} -m elf32_sparc"
7781 x86_64-*kfreebsd*-gnu)
7782 LD="${LD-ld} -m elf_x86_64_fbsd"
7785 LD="${LD-ld} -m elf_x86_64"
7788 LD="${LD-ld} -m elf64lppc"
7791 LD="${LD-ld} -m elf64ppc"
7793 s390*-*linux*|s390*-*tpf*)
7794 LD="${LD-ld} -m elf64_s390"
7797 LD="${LD-ld} -m elf64_sparc"
7807 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7809 CFLAGS="$CFLAGS -belf"
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7811 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7812 if ${lt_cv_cc_needs_belf+:} false; then :
7813 $as_echo_n "(cached) " >&6
7816 ac_cpp='$CPP $CPPFLAGS'
7817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7822 /* end confdefs.h. */
7832 if ac_fn_c_try_link "$LINENO"; then :
7833 lt_cv_cc_needs_belf=yes
7835 lt_cv_cc_needs_belf=no
7837 rm -f core conftest.err conftest.$ac_objext \
7838 conftest$ac_exeext conftest.$ac_ext
7840 ac_cpp='$CPP $CPPFLAGS'
7841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7847 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7848 if test yes != "$lt_cv_cc_needs_belf"; then
7849 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7854 # Find out what ABI is being produced by ac_compile, and set linker
7855 # options accordingly.
7856 echo 'int i;' > conftest.$ac_ext
7857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7858 (eval $ac_compile) 2>&5
7860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7861 test $ac_status = 0; }; then
7862 case `/usr/bin/file conftest.o` in
7864 case $lt_cv_prog_gnu_ld in
7867 i?86-*-solaris*|x86_64-*-solaris*)
7868 LD="${LD-ld} -m elf_x86_64"
7871 LD="${LD-ld} -m elf64_sparc"
7874 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7875 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7880 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7892 need_locks=$enable_libtool_lock
7894 if test -n "$ac_tool_prefix"; then
7895 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7896 set dummy ${ac_tool_prefix}mt; ac_word=$2
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7898 $as_echo_n "checking for $ac_word... " >&6; }
7899 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7900 $as_echo_n "(cached) " >&6
7902 if test -n "$MANIFEST_TOOL"; then
7903 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 test -z "$as_dir" && as_dir=.
7910 for ac_exec_ext in '' $ac_executable_extensions; do
7911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7912 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7922 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7923 if test -n "$MANIFEST_TOOL"; then
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7925 $as_echo "$MANIFEST_TOOL" >&6; }
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7928 $as_echo "no" >&6; }
7933 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7934 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7935 # Extract the first word of "mt", so it can be a program name with args.
7936 set dummy mt; ac_word=$2
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7938 $as_echo_n "checking for $ac_word... " >&6; }
7939 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7940 $as_echo_n "(cached) " >&6
7942 if test -n "$ac_ct_MANIFEST_TOOL"; then
7943 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949 test -z "$as_dir" && as_dir=.
7950 for ac_exec_ext in '' $ac_executable_extensions; do
7951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7952 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7962 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7963 if test -n "$ac_ct_MANIFEST_TOOL"; then
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7965 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968 $as_echo "no" >&6; }
7971 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7974 case $cross_compiling:$ac_tool_warned in
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7978 ac_tool_warned=yes ;;
7980 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7983 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7986 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7988 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7989 if ${lt_cv_path_mainfest_tool+:} false; then :
7990 $as_echo_n "(cached) " >&6
7992 lt_cv_path_mainfest_tool=no
7993 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7994 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7995 cat conftest.err >&5
7996 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7997 lt_cv_path_mainfest_tool=yes
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8002 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8003 if test yes != "$lt_cv_path_mainfest_tool"; then
8013 rhapsody* | darwin*)
8014 if test -n "$ac_tool_prefix"; then
8015 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8016 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018 $as_echo_n "checking for $ac_word... " >&6; }
8019 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8020 $as_echo_n "(cached) " >&6
8022 if test -n "$DSYMUTIL"; then
8023 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 test -z "$as_dir" && as_dir=.
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8032 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8042 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8043 if test -n "$DSYMUTIL"; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8045 $as_echo "$DSYMUTIL" >&6; }
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 $as_echo "no" >&6; }
8053 if test -z "$ac_cv_prog_DSYMUTIL"; then
8054 ac_ct_DSYMUTIL=$DSYMUTIL
8055 # Extract the first word of "dsymutil", so it can be a program name with args.
8056 set dummy dsymutil; ac_word=$2
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8058 $as_echo_n "checking for $ac_word... " >&6; }
8059 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8060 $as_echo_n "(cached) " >&6
8062 if test -n "$ac_ct_DSYMUTIL"; then
8063 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8069 test -z "$as_dir" && as_dir=.
8070 for ac_exec_ext in '' $ac_executable_extensions; do
8071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8072 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8082 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8083 if test -n "$ac_ct_DSYMUTIL"; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8085 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088 $as_echo "no" >&6; }
8091 if test "x$ac_ct_DSYMUTIL" = x; then
8094 case $cross_compiling:$ac_tool_warned in
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8098 ac_tool_warned=yes ;;
8100 DSYMUTIL=$ac_ct_DSYMUTIL
8103 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8106 if test -n "$ac_tool_prefix"; then
8107 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8108 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 $as_echo_n "checking for $ac_word... " >&6; }
8111 if ${ac_cv_prog_NMEDIT+:} false; then :
8112 $as_echo_n "(cached) " >&6
8114 if test -n "$NMEDIT"; then
8115 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8121 test -z "$as_dir" && as_dir=.
8122 for ac_exec_ext in '' $ac_executable_extensions; do
8123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8124 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8134 NMEDIT=$ac_cv_prog_NMEDIT
8135 if test -n "$NMEDIT"; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8137 $as_echo "$NMEDIT" >&6; }
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }
8145 if test -z "$ac_cv_prog_NMEDIT"; then
8146 ac_ct_NMEDIT=$NMEDIT
8147 # Extract the first word of "nmedit", so it can be a program name with args.
8148 set dummy nmedit; ac_word=$2
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8150 $as_echo_n "checking for $ac_word... " >&6; }
8151 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8152 $as_echo_n "(cached) " >&6
8154 if test -n "$ac_ct_NMEDIT"; then
8155 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8161 test -z "$as_dir" && as_dir=.
8162 for ac_exec_ext in '' $ac_executable_extensions; do
8163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8164 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8174 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8175 if test -n "$ac_ct_NMEDIT"; then
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8177 $as_echo "$ac_ct_NMEDIT" >&6; }
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8180 $as_echo "no" >&6; }
8183 if test "x$ac_ct_NMEDIT" = x; then
8186 case $cross_compiling:$ac_tool_warned in
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8190 ac_tool_warned=yes ;;
8192 NMEDIT=$ac_ct_NMEDIT
8195 NMEDIT="$ac_cv_prog_NMEDIT"
8198 if test -n "$ac_tool_prefix"; then
8199 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8200 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8202 $as_echo_n "checking for $ac_word... " >&6; }
8203 if ${ac_cv_prog_LIPO+:} false; then :
8204 $as_echo_n "(cached) " >&6
8206 if test -n "$LIPO"; then
8207 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213 test -z "$as_dir" && as_dir=.
8214 for ac_exec_ext in '' $ac_executable_extensions; do
8215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8216 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8226 LIPO=$ac_cv_prog_LIPO
8227 if test -n "$LIPO"; then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8229 $as_echo "$LIPO" >&6; }
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 $as_echo "no" >&6; }
8237 if test -z "$ac_cv_prog_LIPO"; then
8239 # Extract the first word of "lipo", so it can be a program name with args.
8240 set dummy lipo; ac_word=$2
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8242 $as_echo_n "checking for $ac_word... " >&6; }
8243 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8244 $as_echo_n "(cached) " >&6
8246 if test -n "$ac_ct_LIPO"; then
8247 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8253 test -z "$as_dir" && as_dir=.
8254 for ac_exec_ext in '' $ac_executable_extensions; do
8255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8256 ac_cv_prog_ac_ct_LIPO="lipo"
8257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8266 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8267 if test -n "$ac_ct_LIPO"; then
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8269 $as_echo "$ac_ct_LIPO" >&6; }
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272 $as_echo "no" >&6; }
8275 if test "x$ac_ct_LIPO" = x; then
8278 case $cross_compiling:$ac_tool_warned in
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8282 ac_tool_warned=yes ;;
8287 LIPO="$ac_cv_prog_LIPO"
8290 if test -n "$ac_tool_prefix"; then
8291 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8292 set dummy ${ac_tool_prefix}otool; ac_word=$2
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8294 $as_echo_n "checking for $ac_word... " >&6; }
8295 if ${ac_cv_prog_OTOOL+:} false; then :
8296 $as_echo_n "(cached) " >&6
8298 if test -n "$OTOOL"; then
8299 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 test -z "$as_dir" && as_dir=.
8306 for ac_exec_ext in '' $ac_executable_extensions; do
8307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8308 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8318 OTOOL=$ac_cv_prog_OTOOL
8319 if test -n "$OTOOL"; then
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8321 $as_echo "$OTOOL" >&6; }
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324 $as_echo "no" >&6; }
8329 if test -z "$ac_cv_prog_OTOOL"; then
8331 # Extract the first word of "otool", so it can be a program name with args.
8332 set dummy otool; ac_word=$2
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334 $as_echo_n "checking for $ac_word... " >&6; }
8335 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8336 $as_echo_n "(cached) " >&6
8338 if test -n "$ac_ct_OTOOL"; then
8339 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345 test -z "$as_dir" && as_dir=.
8346 for ac_exec_ext in '' $ac_executable_extensions; do
8347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8348 ac_cv_prog_ac_ct_OTOOL="otool"
8349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8358 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8359 if test -n "$ac_ct_OTOOL"; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8361 $as_echo "$ac_ct_OTOOL" >&6; }
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364 $as_echo "no" >&6; }
8367 if test "x$ac_ct_OTOOL" = x; then
8370 case $cross_compiling:$ac_tool_warned in
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8374 ac_tool_warned=yes ;;
8379 OTOOL="$ac_cv_prog_OTOOL"
8382 if test -n "$ac_tool_prefix"; then
8383 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8384 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8386 $as_echo_n "checking for $ac_word... " >&6; }
8387 if ${ac_cv_prog_OTOOL64+:} false; then :
8388 $as_echo_n "(cached) " >&6
8390 if test -n "$OTOOL64"; then
8391 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397 test -z "$as_dir" && as_dir=.
8398 for ac_exec_ext in '' $ac_executable_extensions; do
8399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8400 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8410 OTOOL64=$ac_cv_prog_OTOOL64
8411 if test -n "$OTOOL64"; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8413 $as_echo "$OTOOL64" >&6; }
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416 $as_echo "no" >&6; }
8421 if test -z "$ac_cv_prog_OTOOL64"; then
8422 ac_ct_OTOOL64=$OTOOL64
8423 # Extract the first word of "otool64", so it can be a program name with args.
8424 set dummy otool64; ac_word=$2
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8426 $as_echo_n "checking for $ac_word... " >&6; }
8427 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8428 $as_echo_n "(cached) " >&6
8430 if test -n "$ac_ct_OTOOL64"; then
8431 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437 test -z "$as_dir" && as_dir=.
8438 for ac_exec_ext in '' $ac_executable_extensions; do
8439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8440 ac_cv_prog_ac_ct_OTOOL64="otool64"
8441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8450 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8451 if test -n "$ac_ct_OTOOL64"; then
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8453 $as_echo "$ac_ct_OTOOL64" >&6; }
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8456 $as_echo "no" >&6; }
8459 if test "x$ac_ct_OTOOL64" = x; then
8462 case $cross_compiling:$ac_tool_warned in
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8466 ac_tool_warned=yes ;;
8468 OTOOL64=$ac_ct_OTOOL64
8471 OTOOL64="$ac_cv_prog_OTOOL64"
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8501 $as_echo_n "checking for -single_module linker flag... " >&6; }
8502 if ${lt_cv_apple_cc_single_mod+:} false; then :
8503 $as_echo_n "(cached) " >&6
8505 lt_cv_apple_cc_single_mod=no
8506 if test -z "$LT_MULTI_MODULE"; then
8507 # By default we will add the -single_module flag. You can override
8508 # by either setting the environment variable LT_MULTI_MODULE
8509 # non-empty at configure time, or by adding -multi_module to the
8511 rm -rf libconftest.dylib*
8512 echo "int foo(void){return 1;}" > conftest.c
8513 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8514 -dynamiclib -Wl,-single_module conftest.c" >&5
8515 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8516 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8518 # If there is a non-empty error log, and "single_module"
8519 # appears in it, assume the flag caused a linker warning
8520 if test -s conftest.err && $GREP single_module conftest.err; then
8521 cat conftest.err >&5
8522 # Otherwise, if the output was created with a 0 exit code from
8523 # the compiler, it worked.
8524 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8525 lt_cv_apple_cc_single_mod=yes
8527 cat conftest.err >&5
8529 rm -rf libconftest.dylib*
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8534 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8537 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8538 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8539 $as_echo_n "(cached) " >&6
8541 lt_cv_ld_exported_symbols_list=no
8542 save_LDFLAGS=$LDFLAGS
8543 echo "_main" > conftest.sym
8544 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8546 /* end confdefs.h. */
8556 if ac_fn_c_try_link "$LINENO"; then :
8557 lt_cv_ld_exported_symbols_list=yes
8559 lt_cv_ld_exported_symbols_list=no
8561 rm -f core conftest.err conftest.$ac_objext \
8562 conftest$ac_exeext conftest.$ac_ext
8563 LDFLAGS=$save_LDFLAGS
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8567 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8570 $as_echo_n "checking for -force_load linker flag... " >&6; }
8571 if ${lt_cv_ld_force_load+:} false; then :
8572 $as_echo_n "(cached) " >&6
8574 lt_cv_ld_force_load=no
8575 cat > conftest.c << _LT_EOF
8576 int forced_loaded() { return 2;}
8578 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8579 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8580 echo "$AR cru libconftest.a conftest.o" >&5
8581 $AR cru libconftest.a conftest.o 2>&5
8582 echo "$RANLIB libconftest.a" >&5
8583 $RANLIB libconftest.a 2>&5
8584 cat > conftest.c << _LT_EOF
8585 int main() { return 0;}
8587 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8588 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8590 if test -s conftest.err && $GREP force_load conftest.err; then
8591 cat conftest.err >&5
8592 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8593 lt_cv_ld_force_load=yes
8595 cat conftest.err >&5
8597 rm -f conftest.err libconftest.a conftest conftest.c
8598 rm -rf conftest.dSYM
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8602 $as_echo "$lt_cv_ld_force_load" >&6; }
8604 rhapsody* | darwin1.[012])
8605 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8607 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8608 darwin*) # darwin 5.x on
8609 # if running on 10.5 or later, the deployment target defaults
8610 # to the OS version, if on x86, and 10.4, the deployment
8611 # target defaults to 10.4. Don't you love it?
8612 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8613 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8614 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8616 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8618 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8622 if test yes = "$lt_cv_apple_cc_single_mod"; then
8623 _lt_dar_single_mod='$single_module'
8625 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8626 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8628 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8630 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8631 _lt_dsymutil='~$DSYMUTIL $lib || :'
8638 # func_munge_path_list VARIABLE PATH
8639 # -----------------------------------
8640 # VARIABLE is name of variable containing _space_ separated list of
8641 # directories to be munged by the contents of PATH, which is string
8644 # string "DIR[ DIR]" will be prepended to VARIABLE
8646 # string "DIR[ DIR]" will be appended to VARIABLE
8647 # "DIRP[:DIRP]::[DIRA:]DIRA"
8648 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8649 # "DIRA[ DIRA]" will be appended to VARIABLE
8651 # VARIABLE will be replaced by "DIR[ DIR]"
8652 func_munge_path_list ()
8658 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8661 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8664 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8665 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8668 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8673 for ac_header in dlfcn.h
8675 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8677 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8678 cat >>confdefs.h <<_ACEOF
8679 #define HAVE_DLFCN_H 1
8691 # Check whether --enable-static was given.
8692 if test "${enable_static+set}" = set; then :
8693 enableval=$enable_static; p=${PACKAGE-default}
8695 yes) enable_static=yes ;;
8696 no) enable_static=no ;;
8699 # Look at the argument we got. We use all the common list separators.
8700 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8701 for pkg in $enableval; do
8703 if test "X$pkg" = "X$p"; then
8720 enable_win32_dll=yes
8723 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8724 if test -n "$ac_tool_prefix"; then
8725 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8726 set dummy ${ac_tool_prefix}as; ac_word=$2
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8728 $as_echo_n "checking for $ac_word... " >&6; }
8729 if ${ac_cv_prog_AS+:} false; then :
8730 $as_echo_n "(cached) " >&6
8732 if test -n "$AS"; then
8733 ac_cv_prog_AS="$AS" # Let the user override the test.
8735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8739 test -z "$as_dir" && as_dir=.
8740 for ac_exec_ext in '' $ac_executable_extensions; do
8741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8742 ac_cv_prog_AS="${ac_tool_prefix}as"
8743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8753 if test -n "$AS"; then
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8755 $as_echo "$AS" >&6; }
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8758 $as_echo "no" >&6; }
8763 if test -z "$ac_cv_prog_AS"; then
8765 # Extract the first word of "as", so it can be a program name with args.
8766 set dummy as; ac_word=$2
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8768 $as_echo_n "checking for $ac_word... " >&6; }
8769 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8770 $as_echo_n "(cached) " >&6
8772 if test -n "$ac_ct_AS"; then
8773 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8779 test -z "$as_dir" && as_dir=.
8780 for ac_exec_ext in '' $ac_executable_extensions; do
8781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8782 ac_cv_prog_ac_ct_AS="as"
8783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8792 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8793 if test -n "$ac_ct_AS"; then
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8795 $as_echo "$ac_ct_AS" >&6; }
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8798 $as_echo "no" >&6; }
8801 if test "x$ac_ct_AS" = x; then
8804 case $cross_compiling:$ac_tool_warned in
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8808 ac_tool_warned=yes ;;
8816 if test -n "$ac_tool_prefix"; then
8817 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8818 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8820 $as_echo_n "checking for $ac_word... " >&6; }
8821 if ${ac_cv_prog_DLLTOOL+:} false; then :
8822 $as_echo_n "(cached) " >&6
8824 if test -n "$DLLTOOL"; then
8825 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8831 test -z "$as_dir" && as_dir=.
8832 for ac_exec_ext in '' $ac_executable_extensions; do
8833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8834 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8844 DLLTOOL=$ac_cv_prog_DLLTOOL
8845 if test -n "$DLLTOOL"; then
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8847 $as_echo "$DLLTOOL" >&6; }
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8850 $as_echo "no" >&6; }
8855 if test -z "$ac_cv_prog_DLLTOOL"; then
8856 ac_ct_DLLTOOL=$DLLTOOL
8857 # Extract the first word of "dlltool", so it can be a program name with args.
8858 set dummy dlltool; ac_word=$2
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8860 $as_echo_n "checking for $ac_word... " >&6; }
8861 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8862 $as_echo_n "(cached) " >&6
8864 if test -n "$ac_ct_DLLTOOL"; then
8865 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8871 test -z "$as_dir" && as_dir=.
8872 for ac_exec_ext in '' $ac_executable_extensions; do
8873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8874 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8884 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8885 if test -n "$ac_ct_DLLTOOL"; then
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8887 $as_echo "$ac_ct_DLLTOOL" >&6; }
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8890 $as_echo "no" >&6; }
8893 if test "x$ac_ct_DLLTOOL" = x; then
8896 case $cross_compiling:$ac_tool_warned in
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8900 ac_tool_warned=yes ;;
8902 DLLTOOL=$ac_ct_DLLTOOL
8905 DLLTOOL="$ac_cv_prog_DLLTOOL"
8908 if test -n "$ac_tool_prefix"; then
8909 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8910 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8912 $as_echo_n "checking for $ac_word... " >&6; }
8913 if ${ac_cv_prog_OBJDUMP+:} false; then :
8914 $as_echo_n "(cached) " >&6
8916 if test -n "$OBJDUMP"; then
8917 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8923 test -z "$as_dir" && as_dir=.
8924 for ac_exec_ext in '' $ac_executable_extensions; do
8925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8926 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8936 OBJDUMP=$ac_cv_prog_OBJDUMP
8937 if test -n "$OBJDUMP"; then
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8939 $as_echo "$OBJDUMP" >&6; }
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8942 $as_echo "no" >&6; }
8947 if test -z "$ac_cv_prog_OBJDUMP"; then
8948 ac_ct_OBJDUMP=$OBJDUMP
8949 # Extract the first word of "objdump", so it can be a program name with args.
8950 set dummy objdump; ac_word=$2
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8952 $as_echo_n "checking for $ac_word... " >&6; }
8953 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8954 $as_echo_n "(cached) " >&6
8956 if test -n "$ac_ct_OBJDUMP"; then
8957 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8963 test -z "$as_dir" && as_dir=.
8964 for ac_exec_ext in '' $ac_executable_extensions; do
8965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8966 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8976 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8977 if test -n "$ac_ct_OBJDUMP"; then
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8979 $as_echo "$ac_ct_OBJDUMP" >&6; }
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8982 $as_echo "no" >&6; }
8985 if test "x$ac_ct_OBJDUMP" = x; then
8988 case $cross_compiling:$ac_tool_warned in
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8992 ac_tool_warned=yes ;;
8994 OBJDUMP=$ac_ct_OBJDUMP
8997 OBJDUMP="$ac_cv_prog_OBJDUMP"
9003 test -z "$AS" && AS=as
9009 test -z "$DLLTOOL" && DLLTOOL=dlltool
9015 test -z "$OBJDUMP" && OBJDUMP=objdump
9027 # Check whether --enable-shared was given.
9028 if test "${enable_shared+set}" = set; then :
9029 enableval=$enable_shared; p=${PACKAGE-default}
9031 yes) enable_shared=yes ;;
9032 no) enable_shared=no ;;
9035 # Look at the argument we got. We use all the common list separators.
9036 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9037 for pkg in $enableval; do
9039 if test "X$pkg" = "X$p"; then
9060 # Check whether --with-pic was given.
9061 if test "${with_pic+set}" = set; then :
9062 withval=$with_pic; lt_p=${PACKAGE-default}
9064 yes|no) pic_mode=$withval ;;
9067 # Look at the argument we got. We use all the common list separators.
9068 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9069 for lt_pkg in $withval; do
9071 if test "X$lt_pkg" = "X$lt_p"; then
9089 # Check whether --enable-fast-install was given.
9090 if test "${enable_fast_install+set}" = set; then :
9091 enableval=$enable_fast_install; p=${PACKAGE-default}
9093 yes) enable_fast_install=yes ;;
9094 no) enable_fast_install=no ;;
9096 enable_fast_install=no
9097 # Look at the argument we got. We use all the common list separators.
9098 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9099 for pkg in $enableval; do
9101 if test "X$pkg" = "X$p"; then
9102 enable_fast_install=yes
9109 enable_fast_install=yes
9119 shared_archive_member_spec=
9120 case $host,$enable_shared in
9121 power*-*-aix[5-9]*,yes)
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9123 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9125 # Check whether --with-aix-soname was given.
9126 if test "${with_aix_soname+set}" = set; then :
9127 withval=$with_aix_soname; case $withval in
9131 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9134 lt_cv_with_aix_soname=$with_aix_soname
9136 if ${lt_cv_with_aix_soname+:} false; then :
9137 $as_echo_n "(cached) " >&6
9139 lt_cv_with_aix_soname=aix
9142 with_aix_soname=$lt_cv_with_aix_soname
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9146 $as_echo "$with_aix_soname" >&6; }
9147 if test aix != "$with_aix_soname"; then
9148 # For the AIX way of multilib, we name the shared archive member
9149 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9150 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9151 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9152 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9153 if test 64 = "${OBJECT_MODE-32}"; then
9154 shared_archive_member_spec=shr_64
9156 shared_archive_member_spec=shr
9174 # This can be used to rebuild libtool when needed
9175 LIBTOOL_DEPS=$ltmain
9177 # Always use our own libtool.
9178 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9209 test -z "$LN_S" && LN_S="ln -s"
9224 if test -n "${ZSH_VERSION+set}"; then
9225 setopt NO_GLOB_SUBST
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9229 $as_echo_n "checking for objdir... " >&6; }
9230 if ${lt_cv_objdir+:} false; then :
9231 $as_echo_n "(cached) " >&6
9233 rm -f .libs 2>/dev/null
9234 mkdir .libs 2>/dev/null
9235 if test -d .libs; then
9238 # MS-DOS does not allow filenames that begin with a dot.
9241 rmdir .libs 2>/dev/null
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9244 $as_echo "$lt_cv_objdir" >&6; }
9245 objdir=$lt_cv_objdir
9251 cat >>confdefs.h <<_ACEOF
9252 #define LT_OBJDIR "$lt_cv_objdir/"
9260 # AIX sometimes has problems with the GCC collect2 program. For some
9261 # reason, if we set the COLLECT_NAMES environment variable, the problems
9262 # vanish in a puff of smoke.
9263 if test set != "${COLLECT_NAMES+set}"; then
9265 export COLLECT_NAMES
9272 can_build_shared=yes
9274 # All known linkers require a '.a' archive for static linking (except MSVC,
9275 # which needs '.lib').
9278 with_gnu_ld=$lt_cv_prog_gnu_ld
9283 # Set sane defaults for various variables
9284 test -z "$CC" && CC=cc
9285 test -z "$LTCC" && LTCC=$CC
9286 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9287 test -z "$LD" && LD=ld
9288 test -z "$ac_objext" && ac_objext=o
9290 func_cc_basename $compiler
9291 cc_basename=$func_cc_basename_result
9294 # Only perform the check for file, if the check method requires it
9295 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9296 case $deplibs_check_method in
9298 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9300 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9301 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9302 $as_echo_n "(cached) " >&6
9306 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9309 lt_save_MAGIC_CMD=$MAGIC_CMD
9310 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9311 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9312 for ac_dir in $ac_dummy; do
9314 test -z "$ac_dir" && ac_dir=.
9315 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9316 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9317 if test -n "$file_magic_test_file"; then
9318 case $deplibs_check_method in
9320 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9321 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9322 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9323 $EGREP "$file_magic_regex" > /dev/null; then
9328 *** Warning: the command libtool uses to detect shared libraries,
9329 *** $file_magic_cmd, produces output that libtool cannot recognize.
9330 *** The result is that libtool may fail to recognize shared libraries
9331 *** as such. This will affect the creation of libtool libraries that
9332 *** depend on shared libraries, but programs linked with such libtool
9333 *** libraries will work regardless of this problem. Nevertheless, you
9334 *** may want to report the problem to your system manager and/or to
9335 *** bug-libtool@gnu.org
9345 MAGIC_CMD=$lt_save_MAGIC_CMD
9350 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9351 if test -n "$MAGIC_CMD"; then
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9353 $as_echo "$MAGIC_CMD" >&6; }
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9356 $as_echo "no" >&6; }
9363 if test -z "$lt_cv_path_MAGIC_CMD"; then
9364 if test -n "$ac_tool_prefix"; then
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9366 $as_echo_n "checking for file... " >&6; }
9367 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9368 $as_echo_n "(cached) " >&6
9372 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9375 lt_save_MAGIC_CMD=$MAGIC_CMD
9376 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9377 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9378 for ac_dir in $ac_dummy; do
9380 test -z "$ac_dir" && ac_dir=.
9381 if test -f "$ac_dir/file"; then
9382 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9383 if test -n "$file_magic_test_file"; then
9384 case $deplibs_check_method in
9386 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9387 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9388 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9389 $EGREP "$file_magic_regex" > /dev/null; then
9394 *** Warning: the command libtool uses to detect shared libraries,
9395 *** $file_magic_cmd, produces output that libtool cannot recognize.
9396 *** The result is that libtool may fail to recognize shared libraries
9397 *** as such. This will affect the creation of libtool libraries that
9398 *** depend on shared libraries, but programs linked with such libtool
9399 *** libraries will work regardless of this problem. Nevertheless, you
9400 *** may want to report the problem to your system manager and/or to
9401 *** bug-libtool@gnu.org
9411 MAGIC_CMD=$lt_save_MAGIC_CMD
9416 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9417 if test -n "$MAGIC_CMD"; then
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9419 $as_echo "$MAGIC_CMD" >&6; }
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9422 $as_echo "no" >&6; }
9435 # Use C for the default configuration in the libtool script
9439 ac_cpp='$CPP $CPPFLAGS'
9440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9445 # Source file extension for C test sources.
9448 # Object file extension for compiled C test sources.
9452 # Code to be used in simple compile tests
9453 lt_simple_compile_test_code="int some_variable = 0;"
9455 # Code to be used in simple link tests
9456 lt_simple_link_test_code='int main(){return(0);}'
9464 # If no C compiler was specified, use CC.
9467 # If no C compiler flags were specified, use CFLAGS.
9468 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9470 # Allow CC to be a program name with arguments.
9473 # Save the default compiler, since it gets overwritten when the other
9474 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9475 compiler_DEFAULT=$CC
9477 # save warnings/boilerplate of simple test code
9478 ac_outfile=conftest.$ac_objext
9479 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9480 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9481 _lt_compiler_boilerplate=`cat conftest.err`
9484 ac_outfile=conftest.$ac_objext
9485 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9486 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9487 _lt_linker_boilerplate=`cat conftest.err`
9492 ## There is no encapsulation within the following macros, do not change
9493 ## the running order or otherwise move them around unless you know exactly
9494 ## what you are doing...
9495 if test -n "$compiler"; then
9497 lt_prog_compiler_no_builtin_flag=
9499 if test yes = "$GCC"; then
9500 case $cc_basename in
9502 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9504 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9508 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9509 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9510 $as_echo_n "(cached) " >&6
9512 lt_cv_prog_compiler_rtti_exceptions=no
9513 ac_outfile=conftest.$ac_objext
9514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9515 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9516 # Insert the option either (1) after the last *FLAGS variable, or
9517 # (2) before a word containing "conftest.", or (3) at the end.
9518 # Note that $ac_compile itself does not contain backslashes and begins
9519 # with a dollar sign (not a hyphen), so the echo should work correctly.
9520 # The option is referenced via a variable to avoid confusing sed.
9521 lt_compile=`echo "$ac_compile" | $SED \
9522 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9523 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9524 -e 's:$: $lt_compiler_flag:'`
9525 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9526 (eval "$lt_compile" 2>conftest.err)
9528 cat conftest.err >&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 if (exit $ac_status) && test -s "$ac_outfile"; then
9531 # The compiler can only warn and ignore the option if not recognized
9532 # So say no if there are warnings other than the usual output.
9533 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9534 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9535 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9536 lt_cv_prog_compiler_rtti_exceptions=yes
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9543 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9545 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9546 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9558 lt_prog_compiler_wl=
9559 lt_prog_compiler_pic=
9560 lt_prog_compiler_static=
9563 if test yes = "$GCC"; then
9564 lt_prog_compiler_wl='-Wl,'
9565 lt_prog_compiler_static='-static'
9569 # All AIX code is PIC.
9570 if test ia64 = "$host_cpu"; then
9571 # AIX 5 now supports IA64 processor
9572 lt_prog_compiler_static='-Bstatic'
9574 lt_prog_compiler_pic='-fPIC'
9580 # see comment about AmigaOS4 .so support
9581 lt_prog_compiler_pic='-fPIC'
9584 # FIXME: we need at least 68020 code to build shared libraries, but
9585 # adding the '-m68020' flag to GCC prevents building anything better,
9587 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9592 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9593 # PIC is the default for these OSes.
9596 mingw* | cygwin* | pw32* | os2* | cegcc*)
9597 # This hack is so that the source file can tell whether it is being
9598 # built for inclusion in a dll (and should export symbols for example).
9599 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9600 # (--disable-auto-import) libraries
9601 lt_prog_compiler_pic='-DDLL_EXPORT'
9604 lt_prog_compiler_static='$wl-static'
9609 darwin* | rhapsody*)
9610 # PIC is the default on this platform
9611 # Common symbols not allowed in MH_DYLIB files
9612 lt_prog_compiler_pic='-fno-common'
9616 # PIC is the default for Haiku.
9617 # The "-static" flag exists, but is broken.
9618 lt_prog_compiler_static=
9622 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9623 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9624 # sets the default TLS model and affects inlining.
9630 lt_prog_compiler_pic='-fPIC'
9636 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9637 # Instead, we relocate shared libraries at runtime.
9641 # Just because we use GCC doesn't mean we suddenly get shared libraries
9642 # on systems that don't support them.
9643 lt_prog_compiler_can_build_shared=no
9648 # QNX uses GNU C++, but need to define -shared option too, otherwise
9650 lt_prog_compiler_pic='-fPIC -shared'
9654 if test -d /usr/nec; then
9655 lt_prog_compiler_pic=-Kconform_pic
9660 lt_prog_compiler_pic='-fPIC'
9664 case $cc_basename in
9665 nvcc*) # Cuda Compiler Driver 2.2
9666 lt_prog_compiler_wl='-Xlinker '
9667 if test -n "$lt_prog_compiler_pic"; then
9668 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9673 # PORTME Check for flag to pass linker flags through the system compiler.
9676 lt_prog_compiler_wl='-Wl,'
9677 if test ia64 = "$host_cpu"; then
9678 # AIX 5 now supports IA64 processor
9679 lt_prog_compiler_static='-Bstatic'
9681 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9685 darwin* | rhapsody*)
9686 # PIC is the default on this platform
9687 # Common symbols not allowed in MH_DYLIB files
9688 lt_prog_compiler_pic='-fno-common'
9689 case $cc_basename in
9691 # NAG Fortran compiler
9692 lt_prog_compiler_wl='-Wl,-Wl,,'
9693 lt_prog_compiler_pic='-PIC'
9694 lt_prog_compiler_static='-Bstatic'
9699 mingw* | cygwin* | pw32* | os2* | cegcc*)
9700 # This hack is so that the source file can tell whether it is being
9701 # built for inclusion in a dll (and should export symbols for example).
9702 lt_prog_compiler_pic='-DDLL_EXPORT'
9705 lt_prog_compiler_static='$wl-static'
9710 hpux9* | hpux10* | hpux11*)
9711 lt_prog_compiler_wl='-Wl,'
9712 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9719 lt_prog_compiler_pic='+Z'
9722 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9723 lt_prog_compiler_static='$wl-a ${wl}archive'
9726 irix5* | irix6* | nonstopux*)
9727 lt_prog_compiler_wl='-Wl,'
9728 # PIC (with -KPIC) is the default.
9729 lt_prog_compiler_static='-non_shared'
9732 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9733 case $cc_basename in
9734 # old Intel for x86_64, which still supported -KPIC.
9736 lt_prog_compiler_wl='-Wl,'
9737 lt_prog_compiler_pic='-KPIC'
9738 lt_prog_compiler_static='-static'
9740 # icc used to be incompatible with GCC.
9741 # ICC 10 doesn't accept -KPIC any more.
9743 lt_prog_compiler_wl='-Wl,'
9744 lt_prog_compiler_pic='-fPIC'
9745 lt_prog_compiler_static='-static'
9747 # Lahey Fortran 8.1.
9749 lt_prog_compiler_wl='-Wl,'
9750 lt_prog_compiler_pic='--shared'
9751 lt_prog_compiler_static='--static'
9754 # NAG Fortran compiler
9755 lt_prog_compiler_wl='-Wl,-Wl,,'
9756 lt_prog_compiler_pic='-PIC'
9757 lt_prog_compiler_static='-Bstatic'
9760 # Fabrice Bellard et al's Tiny C Compiler
9761 lt_prog_compiler_wl='-Wl,'
9762 lt_prog_compiler_pic='-fPIC'
9763 lt_prog_compiler_static='-static'
9765 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9766 # Portland Group compilers (*not* the Pentium gcc compiler,
9767 # which looks to be a dead project)
9768 lt_prog_compiler_wl='-Wl,'
9769 lt_prog_compiler_pic='-fpic'
9770 lt_prog_compiler_static='-Bstatic'
9773 lt_prog_compiler_wl='-Wl,'
9774 # All Alpha code is PIC.
9775 lt_prog_compiler_static='-non_shared'
9777 xl* | bgxl* | bgf* | mpixl*)
9778 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9779 lt_prog_compiler_wl='-Wl,'
9780 lt_prog_compiler_pic='-qpic'
9781 lt_prog_compiler_static='-qstaticlink'
9784 case `$CC -V 2>&1 | sed 5q` in
9785 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9786 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9787 lt_prog_compiler_pic='-KPIC'
9788 lt_prog_compiler_static='-Bstatic'
9789 lt_prog_compiler_wl=''
9791 *Sun\ F* | *Sun*Fortran*)
9792 lt_prog_compiler_pic='-KPIC'
9793 lt_prog_compiler_static='-Bstatic'
9794 lt_prog_compiler_wl='-Qoption ld '
9798 lt_prog_compiler_pic='-KPIC'
9799 lt_prog_compiler_static='-Bstatic'
9800 lt_prog_compiler_wl='-Wl,'
9802 *Intel*\ [CF]*Compiler*)
9803 lt_prog_compiler_wl='-Wl,'
9804 lt_prog_compiler_pic='-fPIC'
9805 lt_prog_compiler_static='-static'
9808 lt_prog_compiler_wl='-Wl,'
9809 lt_prog_compiler_pic='-fpic'
9810 lt_prog_compiler_static='-Bstatic'
9818 lt_prog_compiler_pic='-KPIC'
9819 lt_prog_compiler_static='-Bstatic'
9823 # QNX uses GNU C++, but need to define -shared option too, otherwise
9825 lt_prog_compiler_pic='-fPIC -shared'
9828 osf3* | osf4* | osf5*)
9829 lt_prog_compiler_wl='-Wl,'
9830 # All OSF/1 code is PIC.
9831 lt_prog_compiler_static='-non_shared'
9835 lt_prog_compiler_static='-non_shared'
9839 lt_prog_compiler_pic='-KPIC'
9840 lt_prog_compiler_static='-Bstatic'
9841 case $cc_basename in
9842 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9843 lt_prog_compiler_wl='-Qoption ld ';;
9845 lt_prog_compiler_wl='-Wl,';;
9850 lt_prog_compiler_wl='-Qoption ld '
9851 lt_prog_compiler_pic='-PIC'
9852 lt_prog_compiler_static='-Bstatic'
9855 sysv4 | sysv4.2uw2* | sysv4.3*)
9856 lt_prog_compiler_wl='-Wl,'
9857 lt_prog_compiler_pic='-KPIC'
9858 lt_prog_compiler_static='-Bstatic'
9862 if test -d /usr/nec; then
9863 lt_prog_compiler_pic='-Kconform_pic'
9864 lt_prog_compiler_static='-Bstatic'
9868 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9869 lt_prog_compiler_wl='-Wl,'
9870 lt_prog_compiler_pic='-KPIC'
9871 lt_prog_compiler_static='-Bstatic'
9875 lt_prog_compiler_wl='-Wl,'
9876 lt_prog_compiler_can_build_shared=no
9880 lt_prog_compiler_pic='-pic'
9881 lt_prog_compiler_static='-Bstatic'
9885 lt_prog_compiler_can_build_shared=no
9891 # For platforms that do not support PIC, -DPIC is meaningless:
9893 lt_prog_compiler_pic=
9896 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9901 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9902 if ${lt_cv_prog_compiler_pic+:} false; then :
9903 $as_echo_n "(cached) " >&6
9905 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9908 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9909 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9912 # Check to make sure the PIC flag actually works.
9914 if test -n "$lt_prog_compiler_pic"; then
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9916 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9917 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9918 $as_echo_n "(cached) " >&6
9920 lt_cv_prog_compiler_pic_works=no
9921 ac_outfile=conftest.$ac_objext
9922 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9923 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9924 # Insert the option either (1) after the last *FLAGS variable, or
9925 # (2) before a word containing "conftest.", or (3) at the end.
9926 # Note that $ac_compile itself does not contain backslashes and begins
9927 # with a dollar sign (not a hyphen), so the echo should work correctly.
9928 # The option is referenced via a variable to avoid confusing sed.
9929 lt_compile=`echo "$ac_compile" | $SED \
9930 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9931 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9932 -e 's:$: $lt_compiler_flag:'`
9933 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9934 (eval "$lt_compile" 2>conftest.err)
9936 cat conftest.err >&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 if (exit $ac_status) && test -s "$ac_outfile"; then
9939 # The compiler can only warn and ignore the option if not recognized
9940 # So say no if there are warnings other than the usual output.
9941 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9942 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9943 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9944 lt_cv_prog_compiler_pic_works=yes
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9951 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9953 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9954 case $lt_prog_compiler_pic in
9956 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9959 lt_prog_compiler_pic=
9960 lt_prog_compiler_can_build_shared=no
9976 # Check to make sure the static flag actually works.
9978 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9980 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9981 if ${lt_cv_prog_compiler_static_works+:} false; then :
9982 $as_echo_n "(cached) " >&6
9984 lt_cv_prog_compiler_static_works=no
9985 save_LDFLAGS=$LDFLAGS
9986 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9987 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9988 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9989 # The linker can only warn and ignore the option if not recognized
9990 # So say no if there are warnings
9991 if test -s conftest.err; then
9992 # Append any errors to the config.log.
9993 cat conftest.err 1>&5
9994 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9995 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9996 if diff conftest.exp conftest.er2 >/dev/null; then
9997 lt_cv_prog_compiler_static_works=yes
10000 lt_cv_prog_compiler_static_works=yes
10004 LDFLAGS=$save_LDFLAGS
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10008 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10010 if test yes = "$lt_cv_prog_compiler_static_works"; then
10013 lt_prog_compiler_static=
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10023 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10024 if ${lt_cv_prog_compiler_c_o+:} false; then :
10025 $as_echo_n "(cached) " >&6
10027 lt_cv_prog_compiler_c_o=no
10028 $RM -r conftest 2>/dev/null
10032 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10034 lt_compiler_flag="-o out/conftest2.$ac_objext"
10035 # Insert the option either (1) after the last *FLAGS variable, or
10036 # (2) before a word containing "conftest.", or (3) at the end.
10037 # Note that $ac_compile itself does not contain backslashes and begins
10038 # with a dollar sign (not a hyphen), so the echo should work correctly.
10039 lt_compile=`echo "$ac_compile" | $SED \
10040 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10041 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10042 -e 's:$: $lt_compiler_flag:'`
10043 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10044 (eval "$lt_compile" 2>out/conftest.err)
10046 cat out/conftest.err >&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10050 # The compiler can only warn and ignore the option if not recognized
10051 # So say no if there are warnings
10052 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10053 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10054 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10055 lt_cv_prog_compiler_c_o=yes
10060 # SGI C++ compiler will create directory out/ii_files/ for
10061 # template instantiation
10062 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10063 $RM out/* && rmdir out
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10070 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10078 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10079 if ${lt_cv_prog_compiler_c_o+:} false; then :
10080 $as_echo_n "(cached) " >&6
10082 lt_cv_prog_compiler_c_o=no
10083 $RM -r conftest 2>/dev/null
10087 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10089 lt_compiler_flag="-o out/conftest2.$ac_objext"
10090 # Insert the option either (1) after the last *FLAGS variable, or
10091 # (2) before a word containing "conftest.", or (3) at the end.
10092 # Note that $ac_compile itself does not contain backslashes and begins
10093 # with a dollar sign (not a hyphen), so the echo should work correctly.
10094 lt_compile=`echo "$ac_compile" | $SED \
10095 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10096 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10097 -e 's:$: $lt_compiler_flag:'`
10098 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10099 (eval "$lt_compile" 2>out/conftest.err)
10101 cat out/conftest.err >&5
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10105 # The compiler can only warn and ignore the option if not recognized
10106 # So say no if there are warnings
10107 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10108 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10109 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10110 lt_cv_prog_compiler_c_o=yes
10115 # SGI C++ compiler will create directory out/ii_files/ for
10116 # template instantiation
10117 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10118 $RM out/* && rmdir out
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10125 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10130 hard_links=nottested
10131 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10132 # do not overwrite the value of need_locks provided by the user
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10134 $as_echo_n "checking if we can lock with hard links... " >&6; }
10137 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10139 ln conftest.a conftest.b 2>&5 || hard_links=no
10140 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10142 $as_echo "$hard_links" >&6; }
10143 if test no = "$hard_links"; then
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10145 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10158 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10161 allow_undefined_flag=
10162 always_export_symbols=no
10164 archive_expsym_cmds=
10165 compiler_needs_object=no
10166 enable_shared_with_static_runtimes=no
10167 export_dynamic_flag_spec=
10168 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10169 hardcode_automatic=no
10171 hardcode_direct_absolute=no
10172 hardcode_libdir_flag_spec=
10173 hardcode_libdir_separator=
10174 hardcode_minus_L=no
10175 hardcode_shlibpath_var=unsupported
10177 link_all_deplibs=unknown
10179 module_expsym_cmds=
10180 old_archive_from_new_cmds=
10181 old_archive_from_expsyms_cmds=
10182 thread_safe_flag_spec=
10183 whole_archive_flag_spec=
10184 # include_expsyms should be a list of space-separated symbols to be *always*
10185 # included in the symbol list
10187 # exclude_expsyms can be an extended regexp of symbols to exclude
10188 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10189 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10190 # as well as any symbol that contains 'd'.
10191 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10192 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10193 # platforms (ab)use it in PIC code, but their linkers get confused if
10194 # the symbol is explicitly referenced. Since portable code cannot
10195 # rely on this symbol name, it's probably fine to never include it in
10196 # preloaded symbol tables.
10197 # Exclude shared library initialization/finalization symbols.
10198 extract_expsyms_cmds=
10201 cygwin* | mingw* | pw32* | cegcc*)
10202 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10203 # When not using gcc, we currently assume that we are using
10204 # Microsoft Visual C++.
10205 if test yes != "$GCC"; then
10210 # we just hope/assume this is gcc and not c89 (= MSVC++)
10213 openbsd* | bitrig*)
10220 # On some targets, GNU ld is compatible enough with the native linker
10221 # that we're better off using the native interface for both.
10222 lt_use_gnu_ld_interface=no
10223 if test yes = "$with_gnu_ld"; then
10226 # The AIX port of GNU ld has always aspired to compatibility
10227 # with the native linker. However, as the warning in the GNU ld
10228 # block says, versions before 2.19.5* couldn't really create working
10229 # shared libraries, regardless of the interface used.
10230 case `$LD -v 2>&1` in
10231 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10232 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10233 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10235 lt_use_gnu_ld_interface=yes
10240 lt_use_gnu_ld_interface=yes
10245 if test yes = "$lt_use_gnu_ld_interface"; then
10246 # If archive_cmds runs LD, not CC, wlarc should be empty
10249 # Set some defaults for GNU ld with shared library support. These
10250 # are reset later if shared libraries are not supported. Putting them
10251 # here allows them to be overridden if necessary.
10252 runpath_var=LD_RUN_PATH
10253 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10254 export_dynamic_flag_spec='$wl--export-dynamic'
10255 # ancient GNU ld didn't support --whole-archive et. al.
10256 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10257 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10259 whole_archive_flag_spec=
10261 supports_anon_versioning=no
10262 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10263 *GNU\ gold*) supports_anon_versioning=yes ;;
10264 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10265 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10266 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10267 *\ 2.11.*) ;; # other 2.11 versions
10268 *) supports_anon_versioning=yes ;;
10271 # See if GNU ld supports shared libraries.
10274 # On AIX/PPC, the GNU linker is very broken
10275 if test ia64 != "$host_cpu"; then
10279 *** Warning: the GNU linker, at least up to release 2.19, is reported
10280 *** to be unable to reliably create shared libraries on AIX.
10281 *** Therefore, libtool is disabling shared libraries support. If you
10282 *** really care for shared libraries, you may want to install binutils
10283 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10284 *** You will then need to restart the configuration process.
10293 # see comment about AmigaOS4 .so support
10294 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10295 archive_expsym_cmds=''
10298 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)'
10299 hardcode_libdir_flag_spec='-L$libdir'
10300 hardcode_minus_L=yes
10306 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10307 allow_undefined_flag=unsupported
10308 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10309 # support --undefined. This deserves some investigation. FIXME
10310 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10316 cygwin* | mingw* | pw32* | cegcc*)
10317 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10318 # as there is no search path for DLLs.
10319 hardcode_libdir_flag_spec='-L$libdir'
10320 export_dynamic_flag_spec='$wl--export-all-symbols'
10321 allow_undefined_flag=unsupported
10322 always_export_symbols=no
10323 enable_shared_with_static_runtimes=yes
10324 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'
10325 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10327 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10328 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10329 # If the export-symbols file already is a .def file, use it as
10330 # is; otherwise, prepend EXPORTS...
10331 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10332 cp $export_symbols $output_objdir/$soname.def;
10334 echo EXPORTS > $output_objdir/$soname.def;
10335 cat $export_symbols >> $output_objdir/$soname.def;
10337 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10344 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10345 link_all_deplibs=yes
10349 hardcode_libdir_flag_spec='-L$libdir'
10350 hardcode_minus_L=yes
10351 allow_undefined_flag=unsupported
10353 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10354 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10355 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10356 $ECHO EXPORTS >> $output_objdir/$libname.def~
10357 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10358 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10359 emximp -o $lib $output_objdir/$libname.def'
10360 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10361 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10362 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10363 $ECHO EXPORTS >> $output_objdir/$libname.def~
10364 prefix_cmds="$SED"~
10365 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10366 prefix_cmds="$prefix_cmds -e 1d";
10368 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10369 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10370 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10371 emximp -o $lib $output_objdir/$libname.def'
10372 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10373 enable_shared_with_static_runtimes=yes
10378 hardcode_shlibpath_var=no
10379 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10380 export_dynamic_flag_spec='$wl-E'
10381 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10382 # Instead, shared libraries are loaded at an image base (0x10000000 by
10383 # default) and relocated if they conflict, which is a slow very memory
10384 # consuming and fragmenting process. To avoid this, we pick a random,
10385 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10386 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10387 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10388 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'
10391 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10393 if test linux-dietlibc = "$host_os"; then
10394 case $cc_basename in
10395 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10398 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10399 && test no = "$tmp_diet"
10401 tmp_addflag=' $pic_flag'
10402 tmp_sharedflag='-shared'
10403 case $cc_basename,$host_cpu in
10404 pgcc*) # Portland Group C compiler
10405 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'
10406 tmp_addflag=' $pic_flag'
10408 pgf77* | pgf90* | pgf95* | pgfortran*)
10409 # Portland Group f77 and f90 compilers
10410 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'
10411 tmp_addflag=' $pic_flag -Mnomain' ;;
10412 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10413 tmp_addflag=' -i_dynamic' ;;
10414 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10415 tmp_addflag=' -i_dynamic -nofor_main' ;;
10416 ifc* | ifort*) # Intel Fortran compiler
10417 tmp_addflag=' -nofor_main' ;;
10418 lf95*) # Lahey Fortran 8.1
10419 whole_archive_flag_spec=
10420 tmp_sharedflag='--shared' ;;
10421 nagfor*) # NAGFOR 5.3
10422 tmp_sharedflag='-Wl,-shared' ;;
10423 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10424 tmp_sharedflag='-qmkshrobj'
10426 nvcc*) # Cuda Compiler Driver 2.2
10427 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'
10428 compiler_needs_object=yes
10431 case `$CC -V 2>&1 | sed 5q` in
10432 *Sun\ C*) # Sun C 5.9
10433 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'
10434 compiler_needs_object=yes
10435 tmp_sharedflag='-G' ;;
10436 *Sun\ F*) # Sun Fortran 8.3
10437 tmp_sharedflag='-G' ;;
10439 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10441 if test yes = "$supports_anon_versioning"; then
10442 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10443 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10444 echo "local: *; };" >> $output_objdir/$libname.ver~
10445 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10448 case $cc_basename in
10450 export_dynamic_flag_spec='-rdynamic'
10452 xlf* | bgf* | bgxlf* | mpixlf*)
10453 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10454 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10455 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10456 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10457 if test yes = "$supports_anon_versioning"; then
10458 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10459 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10460 echo "local: *; };" >> $output_objdir/$libname.ver~
10461 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10471 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10472 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10475 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10476 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10481 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10485 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10486 *** create shared libraries on Solaris systems. Therefore, libtool
10487 *** is disabling shared libraries support. We urge you to upgrade GNU
10488 *** binutils to release 2.9.1 or newer. Another option is to modify
10489 *** your PATH or compiler configuration so that the native linker is
10490 *** used, and then restart.
10493 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10494 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10495 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10501 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10502 case `$LD -v 2>&1` in
10503 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10507 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10508 *** reliably create shared libraries on SCO systems. Therefore, libtool
10509 *** is disabling shared libraries support. We urge you to upgrade GNU
10510 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10511 *** your PATH or compiler configuration so that the native linker is
10512 *** used, and then restart.
10517 # For security reasons, it is highly recommended that you always
10518 # use absolute paths for naming shared libraries, and exclude the
10519 # DT_RUNPATH tag from executables and libraries. But doing so
10520 # requires that you compile everything twice, which is a pain.
10521 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10522 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10523 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10524 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10533 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10535 hardcode_direct=yes
10536 hardcode_shlibpath_var=no
10540 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10541 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10542 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10549 if test no = "$ld_shlibs"; then
10551 hardcode_libdir_flag_spec=
10552 export_dynamic_flag_spec=
10553 whole_archive_flag_spec=
10556 # PORTME fill in a description of your system's linker (not GNU ld)
10559 allow_undefined_flag=unsupported
10560 always_export_symbols=yes
10561 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'
10562 # Note: this linker hardcodes the directories in LIBPATH if there
10563 # are no directories specified by -L.
10564 hardcode_minus_L=yes
10565 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10566 # Neither direct hardcoding nor static linking is supported with a
10568 hardcode_direct=unsupported
10573 if test ia64 = "$host_cpu"; then
10574 # On IA64, the linker does run time linking by default, so we don't
10575 # have to do anything special.
10576 aix_use_runtimelinking=no
10577 exp_sym_flag='-Bexport'
10580 # If we're using GNU nm, then we don't want the "-C" option.
10581 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10582 # Without the "-l" option, or with the "-B" option, AIX nm treats
10583 # weak defined symbols like other global defined symbols, whereas
10584 # GNU nm marks them as "W".
10585 # While the 'weak' keyword is ignored in the Export File, we need
10586 # it in the Import File for the 'aix-soname' feature, so we have
10587 # to replace the "-B" option with "-P" for AIX nm.
10588 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10589 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'
10591 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'
10593 aix_use_runtimelinking=no
10595 # Test if we are trying to use run time linking or normal
10596 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10597 # have runtime linking enabled, and use it for executables.
10598 # For shared libraries, we enable/disable runtime linking
10599 # depending on the kind of the shared library created -
10600 # when "with_aix_soname,aix_use_runtimelinking" is:
10601 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10602 # "aix,yes" lib.so shared, rtl:yes, for executables
10603 # lib.a static archive
10604 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10605 # lib.a(lib.so.V) shared, rtl:no, for executables
10606 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10607 # lib.a(lib.so.V) shared, rtl:no
10608 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10609 # lib.a static archive
10610 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10611 for ld_flag in $LDFLAGS; do
10612 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10613 aix_use_runtimelinking=yes
10617 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10618 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10619 # so we don't have lib.a shared libs to link our executables.
10620 # We have to force runtime linking in this case.
10621 aix_use_runtimelinking=yes
10622 LDFLAGS="$LDFLAGS -Wl,-brtl"
10627 exp_sym_flag='-bexport'
10628 no_entry_flag='-bnoentry'
10631 # When large executables or shared objects are built, AIX ld can
10632 # have problems creating the table of contents. If linking a library
10633 # or program results in "error TOC overflow" add -mminimal-toc to
10634 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10635 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10638 hardcode_direct=yes
10639 hardcode_direct_absolute=yes
10640 hardcode_libdir_separator=':'
10641 link_all_deplibs=yes
10642 file_list_spec='$wl-f,'
10643 case $with_aix_soname,$aix_use_runtimelinking in
10644 aix,*) ;; # traditional, no import file
10645 svr4,* | *,yes) # use import file
10646 # The Import File defines what to hardcode.
10648 hardcode_direct_absolute=no
10652 if test yes = "$GCC"; then
10653 case $host_os in aix4.[012]|aix4.[012].*)
10654 # We only want to do this on AIX 4.2 and lower, the check
10655 # below for broken collect2 doesn't work under 4.3+
10656 collect2name=`$CC -print-prog-name=collect2`
10657 if test -f "$collect2name" &&
10658 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10660 # We have reworked collect2
10663 # We have old collect2
10664 hardcode_direct=unsupported
10665 # It fails to find uninstalled libraries when the uninstalled
10666 # path is not listed in the libpath. Setting hardcode_minus_L
10667 # to unsupported forces relinking
10668 hardcode_minus_L=yes
10669 hardcode_libdir_flag_spec='-L$libdir'
10670 hardcode_libdir_separator=
10674 shared_flag='-shared'
10675 if test yes = "$aix_use_runtimelinking"; then
10676 shared_flag="$shared_flag "'$wl-G'
10678 # Need to ensure runtime linking is disabled for the traditional
10679 # shared library, or the linker may eventually find shared libraries
10680 # /with/ Import File - we do not want to mix them.
10681 shared_flag_aix='-shared'
10682 shared_flag_svr4='-shared $wl-G'
10685 if test ia64 = "$host_cpu"; then
10686 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10687 # chokes on -Wl,-G. The following line is correct:
10690 if test yes = "$aix_use_runtimelinking"; then
10691 shared_flag='$wl-G'
10693 shared_flag='$wl-bM:SRE'
10695 shared_flag_aix='$wl-bM:SRE'
10696 shared_flag_svr4='$wl-G'
10700 export_dynamic_flag_spec='$wl-bexpall'
10701 # It seems that -bexpall does not export symbols beginning with
10702 # underscore (_), so it is better to generate a list of symbols to export.
10703 always_export_symbols=yes
10704 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10705 # Warning - without using the other runtime loading flags (-brtl),
10706 # -berok will link without error, but may produce a broken library.
10707 allow_undefined_flag='-berok'
10708 # Determine the default libpath from the value encoded in an
10709 # empty executable.
10710 if test set = "${lt_cv_aix_libpath+set}"; then
10711 aix_libpath=$lt_cv_aix_libpath
10713 if ${lt_cv_aix_libpath_+:} false; then :
10714 $as_echo_n "(cached) " >&6
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10727 if ac_fn_c_try_link "$LINENO"; then :
10729 lt_aix_libpath_sed='
10730 /Import File Strings/,/^$/ {
10732 s/^0 *\([^ ]*\) *$/\1/
10736 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10737 # Check for a 64-bit object if we didn't find anything.
10738 if test -z "$lt_cv_aix_libpath_"; then
10739 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10742 rm -f core conftest.err conftest.$ac_objext \
10743 conftest$ac_exeext conftest.$ac_ext
10744 if test -z "$lt_cv_aix_libpath_"; then
10745 lt_cv_aix_libpath_=/usr/lib:/lib
10750 aix_libpath=$lt_cv_aix_libpath_
10753 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10754 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
10756 if test ia64 = "$host_cpu"; then
10757 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10758 allow_undefined_flag="-z nodefs"
10759 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"
10761 # Determine the default libpath from the value encoded in an
10762 # empty executable.
10763 if test set = "${lt_cv_aix_libpath+set}"; then
10764 aix_libpath=$lt_cv_aix_libpath
10766 if ${lt_cv_aix_libpath_+:} false; then :
10767 $as_echo_n "(cached) " >&6
10769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h. */
10780 if ac_fn_c_try_link "$LINENO"; then :
10782 lt_aix_libpath_sed='
10783 /Import File Strings/,/^$/ {
10785 s/^0 *\([^ ]*\) *$/\1/
10789 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10790 # Check for a 64-bit object if we didn't find anything.
10791 if test -z "$lt_cv_aix_libpath_"; then
10792 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10795 rm -f core conftest.err conftest.$ac_objext \
10796 conftest$ac_exeext conftest.$ac_ext
10797 if test -z "$lt_cv_aix_libpath_"; then
10798 lt_cv_aix_libpath_=/usr/lib:/lib
10803 aix_libpath=$lt_cv_aix_libpath_
10806 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10807 # Warning - without using the other run time loading flags,
10808 # -berok will link without error, but may produce a broken library.
10809 no_undefined_flag=' $wl-bernotok'
10810 allow_undefined_flag=' $wl-berok'
10811 if test yes = "$with_gnu_ld"; then
10812 # We only use this code for GNU lds that support --whole-archive.
10813 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10815 # Exported symbols can be pulled into shared objects from archives
10816 whole_archive_flag_spec='$convenience'
10818 archive_cmds_need_lc=yes
10819 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10820 # -brtl affects multiple linker settings, -berok does not and is overridden later
10821 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10822 if test svr4 != "$with_aix_soname"; then
10823 # This is similar to how AIX traditionally builds its shared libraries.
10824 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'
10826 if test aix != "$with_aix_soname"; then
10827 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'
10829 # used by -dlpreopen to get the symbols
10830 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10832 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10840 # see comment about AmigaOS4 .so support
10841 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10842 archive_expsym_cmds=''
10845 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)'
10846 hardcode_libdir_flag_spec='-L$libdir'
10847 hardcode_minus_L=yes
10853 export_dynamic_flag_spec=-rdynamic
10856 cygwin* | mingw* | pw32* | cegcc*)
10857 # When not using gcc, we currently assume that we are using
10858 # Microsoft Visual C++.
10859 # hardcode_libdir_flag_spec is actually meaningless, as there is
10860 # no search path for DLLs.
10861 case $cc_basename in
10864 hardcode_libdir_flag_spec=' '
10865 allow_undefined_flag=unsupported
10866 always_export_symbols=yes
10868 # Tell ltmain to make .lib files, not .a files.
10870 # Tell ltmain to make .dll files, not .so files.
10872 # FIXME: Setting linknames here is a bad hack.
10873 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10874 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10875 cp "$export_symbols" "$output_objdir/$soname.def";
10876 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10878 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10880 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10882 # The linker will not automatically build a static lib if we build a DLL.
10883 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10884 enable_shared_with_static_runtimes=yes
10885 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10886 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10888 old_postinstall_cmds='chmod 644 $oldlib'
10889 postlink_cmds='lt_outputfile="@OUTPUT@"~
10890 lt_tool_outputfile="@TOOL_OUTPUT@"~
10891 case $lt_outputfile in
10894 lt_outputfile=$lt_outputfile.exe
10895 lt_tool_outputfile=$lt_tool_outputfile.exe
10898 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10899 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10900 $RM "$lt_outputfile.manifest";
10904 # Assume MSVC wrapper
10905 hardcode_libdir_flag_spec=' '
10906 allow_undefined_flag=unsupported
10907 # Tell ltmain to make .lib files, not .a files.
10909 # Tell ltmain to make .dll files, not .so files.
10911 # FIXME: Setting linknames here is a bad hack.
10912 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10913 # The linker will automatically build a .lib file if we build a DLL.
10914 old_archive_from_new_cmds='true'
10915 # FIXME: Should let the user specify the lib program.
10916 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10917 enable_shared_with_static_runtimes=yes
10922 darwin* | rhapsody*)
10925 archive_cmds_need_lc=no
10927 hardcode_automatic=yes
10928 hardcode_shlibpath_var=unsupported
10929 if test yes = "$lt_cv_ld_force_load"; then
10930 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\"`'
10933 whole_archive_flag_spec=''
10935 link_all_deplibs=yes
10936 allow_undefined_flag=$_lt_dar_allow_undefined
10937 case $cc_basename in
10938 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10939 *) _lt_dar_can_shared=$GCC ;;
10941 if test yes = "$_lt_dar_can_shared"; then
10942 output_verbose_link_cmd=func_echo_all
10943 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10944 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10945 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"
10946 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"
10955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10956 hardcode_libdir_flag_spec='-L$libdir'
10957 hardcode_shlibpath_var=no
10960 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10961 # support. Future versions do this automatically, but an explicit c++rt0.o
10962 # does not break anything, and helps significantly (at the cost of a little
10965 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10966 hardcode_libdir_flag_spec='-R$libdir'
10967 hardcode_direct=yes
10968 hardcode_shlibpath_var=no
10971 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10973 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10974 hardcode_direct=yes
10975 hardcode_minus_L=yes
10976 hardcode_shlibpath_var=no
10979 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10980 freebsd* | dragonfly*)
10981 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10982 hardcode_libdir_flag_spec='-R$libdir'
10983 hardcode_direct=yes
10984 hardcode_shlibpath_var=no
10988 if test yes = "$GCC"; then
10989 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'
10991 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'
10993 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10994 hardcode_libdir_separator=:
10995 hardcode_direct=yes
10997 # hardcode_minus_L: Not really in the search PATH,
10998 # but as the default location of the library.
10999 hardcode_minus_L=yes
11000 export_dynamic_flag_spec='$wl-E'
11004 if test yes,no = "$GCC,$with_gnu_ld"; then
11005 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11007 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11009 if test no = "$with_gnu_ld"; then
11010 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11011 hardcode_libdir_separator=:
11012 hardcode_direct=yes
11013 hardcode_direct_absolute=yes
11014 export_dynamic_flag_spec='$wl-E'
11015 # hardcode_minus_L: Not really in the search PATH,
11016 # but as the default location of the library.
11017 hardcode_minus_L=yes
11022 if test yes,no = "$GCC,$with_gnu_ld"; then
11025 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11028 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11031 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11037 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11040 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11044 # Older versions of the 11.00 compiler do not understand -b yet
11045 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11047 $as_echo_n "checking if $CC understands -b... " >&6; }
11048 if ${lt_cv_prog_compiler__b+:} false; then :
11049 $as_echo_n "(cached) " >&6
11051 lt_cv_prog_compiler__b=no
11052 save_LDFLAGS=$LDFLAGS
11053 LDFLAGS="$LDFLAGS -b"
11054 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11055 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11056 # The linker can only warn and ignore the option if not recognized
11057 # So say no if there are warnings
11058 if test -s conftest.err; then
11059 # Append any errors to the config.log.
11060 cat conftest.err 1>&5
11061 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11062 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11063 if diff conftest.exp conftest.er2 >/dev/null; then
11064 lt_cv_prog_compiler__b=yes
11067 lt_cv_prog_compiler__b=yes
11071 LDFLAGS=$save_LDFLAGS
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11075 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11077 if test yes = "$lt_cv_prog_compiler__b"; then
11078 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11080 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11086 if test no = "$with_gnu_ld"; then
11087 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11088 hardcode_libdir_separator=:
11093 hardcode_shlibpath_var=no
11096 hardcode_direct=yes
11097 hardcode_direct_absolute=yes
11098 export_dynamic_flag_spec='$wl-E'
11100 # hardcode_minus_L: Not really in the search PATH,
11101 # but as the default location of the library.
11102 hardcode_minus_L=yes
11108 irix5* | irix6* | nonstopux*)
11109 if test yes = "$GCC"; then
11110 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'
11111 # Try to use the -exported_symbol ld option, if it does not
11112 # work, assume that -exports_file does not work either and
11113 # implicitly export all symbols.
11114 # This should be the same for all languages, so no per-tag cache variable.
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11116 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11117 if ${lt_cv_irix_exported_symbol+:} false; then :
11118 $as_echo_n "(cached) " >&6
11120 save_LDFLAGS=$LDFLAGS
11121 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11123 /* end confdefs.h. */
11124 int foo (void) { return 0; }
11126 if ac_fn_c_try_link "$LINENO"; then :
11127 lt_cv_irix_exported_symbol=yes
11129 lt_cv_irix_exported_symbol=no
11131 rm -f core conftest.err conftest.$ac_objext \
11132 conftest$ac_exeext conftest.$ac_ext
11133 LDFLAGS=$save_LDFLAGS
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11136 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11137 if test yes = "$lt_cv_irix_exported_symbol"; then
11138 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'
11141 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'
11142 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'
11144 archive_cmds_need_lc='no'
11145 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11146 hardcode_libdir_separator=:
11148 link_all_deplibs=yes
11152 case $cc_basename in
11154 # Fabrice Bellard et al's Tiny C Compiler
11156 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11162 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11163 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11165 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11167 hardcode_libdir_flag_spec='-R$libdir'
11168 hardcode_direct=yes
11169 hardcode_shlibpath_var=no
11173 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11174 hardcode_direct=yes
11175 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11176 hardcode_libdir_separator=:
11177 hardcode_shlibpath_var=no
11183 openbsd* | bitrig*)
11184 if test -f /usr/libexec/ld.so; then
11185 hardcode_direct=yes
11186 hardcode_shlibpath_var=no
11187 hardcode_direct_absolute=yes
11188 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11189 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11190 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11191 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11192 export_dynamic_flag_spec='$wl-E'
11194 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11195 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11203 hardcode_libdir_flag_spec='-L$libdir'
11204 hardcode_minus_L=yes
11205 allow_undefined_flag=unsupported
11207 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11208 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11209 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11210 $ECHO EXPORTS >> $output_objdir/$libname.def~
11211 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11212 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11213 emximp -o $lib $output_objdir/$libname.def'
11214 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11215 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11216 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11217 $ECHO EXPORTS >> $output_objdir/$libname.def~
11218 prefix_cmds="$SED"~
11219 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11220 prefix_cmds="$prefix_cmds -e 1d";
11222 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11223 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11224 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11225 emximp -o $lib $output_objdir/$libname.def'
11226 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11227 enable_shared_with_static_runtimes=yes
11231 if test yes = "$GCC"; then
11232 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11233 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'
11235 allow_undefined_flag=' -expect_unresolved \*'
11236 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'
11238 archive_cmds_need_lc='no'
11239 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11240 hardcode_libdir_separator=:
11243 osf4* | osf5*) # as osf3* with the addition of -msym flag
11244 if test yes = "$GCC"; then
11245 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11246 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'
11247 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11249 allow_undefined_flag=' -expect_unresolved \*'
11250 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'
11251 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~
11252 $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'
11254 # Both c and cxx compiler support -rpath directly
11255 hardcode_libdir_flag_spec='-rpath $libdir'
11257 archive_cmds_need_lc='no'
11258 hardcode_libdir_separator=:
11262 no_undefined_flag=' -z defs'
11263 if test yes = "$GCC"; then
11265 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11266 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11267 $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'
11269 case `$CC -V 2>&1` in
11272 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11273 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11274 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11278 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11279 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11280 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11284 hardcode_libdir_flag_spec='-R$libdir'
11285 hardcode_shlibpath_var=no
11287 solaris2.[0-5] | solaris2.[0-5].*) ;;
11289 # The compiler driver will combine and reorder linker options,
11290 # but understands '-z linker_flag'. GCC discards it without '$wl',
11291 # but is careful enough not to reorder.
11292 # Supported since Solaris 2.6 (maybe 2.5.1?)
11293 if test yes = "$GCC"; then
11294 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11296 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11300 link_all_deplibs=yes
11304 if test sequent = "$host_vendor"; then
11305 # Use $CC to link under sequent, because it throws in some extra .o
11306 # files that make .init and .fini sections work.
11307 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11309 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11311 hardcode_libdir_flag_spec='-L$libdir'
11312 hardcode_direct=yes
11313 hardcode_minus_L=yes
11314 hardcode_shlibpath_var=no
11318 case $host_vendor in
11320 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11321 hardcode_direct=yes # is this really true???
11324 ## LD is ld it makes a PLAMLIB
11325 ## CC just makes a GrossModule.
11326 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11327 reload_cmds='$CC -r -o $output$reload_objs'
11331 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11332 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11335 runpath_var='LD_RUN_PATH'
11336 hardcode_shlibpath_var=no
11340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11341 hardcode_shlibpath_var=no
11342 export_dynamic_flag_spec='-Bexport'
11346 if test -d /usr/nec; then
11347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11348 hardcode_shlibpath_var=no
11349 runpath_var=LD_RUN_PATH
11350 hardcode_runpath_var=yes
11355 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11356 no_undefined_flag='$wl-z,text'
11357 archive_cmds_need_lc=no
11358 hardcode_shlibpath_var=no
11359 runpath_var='LD_RUN_PATH'
11361 if test yes = "$GCC"; then
11362 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11363 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11365 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11366 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11370 sysv5* | sco3.2v5* | sco5v6*)
11371 # Note: We CANNOT use -z defs as we might desire, because we do not
11372 # link with -lc, and that would cause any symbols used from libc to
11373 # always be unresolved, which means just about no library would
11374 # ever link correctly. If we're not using GNU ld we use -z text
11375 # though, which does catch some bad symbols but isn't as heavy-handed
11377 no_undefined_flag='$wl-z,text'
11378 allow_undefined_flag='$wl-z,nodefs'
11379 archive_cmds_need_lc=no
11380 hardcode_shlibpath_var=no
11381 hardcode_libdir_flag_spec='$wl-R,$libdir'
11382 hardcode_libdir_separator=':'
11383 link_all_deplibs=yes
11384 export_dynamic_flag_spec='$wl-Bexport'
11385 runpath_var='LD_RUN_PATH'
11387 if test yes = "$GCC"; then
11388 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11389 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11391 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11392 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11398 hardcode_libdir_flag_spec='-L$libdir'
11399 hardcode_shlibpath_var=no
11407 if test sni = "$host_vendor"; then
11409 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11410 export_dynamic_flag_spec='$wl-Blargedynsym'
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11417 $as_echo "$ld_shlibs" >&6; }
11418 test no = "$ld_shlibs" && can_build_shared=no
11420 with_gnu_ld=$with_gnu_ld
11437 # Do we need to explicitly link libc?
11439 case "x$archive_cmds_need_lc" in
11441 # Assume -lc should be added
11442 archive_cmds_need_lc=yes
11444 if test yes,yes = "$GCC,$enable_shared"; then
11445 case $archive_cmds in
11447 # FIXME: we may have to deal with multi-command sequences.
11450 # Test whether the compiler implicitly links with -lc since on some
11451 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11452 # to ld, don't add -lc before -lgcc.
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11454 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11455 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11456 $as_echo_n "(cached) " >&6
11459 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11462 (eval $ac_compile) 2>&5
11464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11465 test $ac_status = 0; } 2>conftest.err; then
11468 libobjs=conftest.$ac_objext
11470 wl=$lt_prog_compiler_wl
11471 pic_flag=$lt_prog_compiler_pic
11477 lt_save_allow_undefined_flag=$allow_undefined_flag
11478 allow_undefined_flag=
11479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11480 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11483 test $ac_status = 0; }
11485 lt_cv_archive_cmds_need_lc=no
11487 lt_cv_archive_cmds_need_lc=yes
11489 allow_undefined_flag=$lt_save_allow_undefined_flag
11491 cat conftest.err 1>&5
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11497 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11498 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11657 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11659 if test yes = "$GCC"; then
11661 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11662 *) lt_awk_arg='/^libraries:/' ;;
11665 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11666 *) lt_sed_strip_eq='s|=/|/|g' ;;
11668 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11669 case $lt_search_path_spec in
11671 # if the path contains ";" then we assume it to be the separator
11672 # otherwise default to the standard path separator (i.e. ":") - it is
11673 # assumed that no part of a normal pathname contains ";" but that should
11674 # okay in the real world where ";" in dirpaths is itself problematic.
11675 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11678 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11681 # Ok, now we have the path, separated by spaces, we can step through it
11682 # and add multilib dir if necessary...
11683 lt_tmp_lt_search_path_spec=
11684 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11685 # ...but if some path component already ends with the multilib dir we assume
11686 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11687 case "$lt_multi_os_dir; $lt_search_path_spec " in
11688 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11692 for lt_sys_path in $lt_search_path_spec; do
11693 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11694 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11695 elif test -n "$lt_multi_os_dir"; then
11696 test -d "$lt_sys_path" && \
11697 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11700 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11701 BEGIN {RS = " "; FS = "/|\n";} {
11704 for (lt_i = NF; lt_i > 0; lt_i--) {
11705 if ($lt_i != "" && $lt_i != ".") {
11706 if ($lt_i == "..") {
11709 if (lt_count == 0) {
11710 lt_foo = "/" $lt_i lt_foo;
11717 if (lt_foo != "") { lt_freq[lt_foo]++; }
11718 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11720 # AWK program above erroneously prepends '/' to C:/dos/paths
11723 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11724 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11726 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11728 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11730 library_names_spec=
11731 libname_spec='lib$name'
11735 postuninstall_cmds=
11739 shlibpath_overrides_runpath=unknown
11741 dynamic_linker="$host_os ld.so"
11742 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11743 need_lib_prefix=unknown
11744 hardcode_into_libs=no
11746 # when you set need_version to no, make sure it does not cause -set_version
11747 # flags to be left without arguments
11748 need_version=unknown
11754 version_type=linux # correct to gnu/linux during the next big refactor
11755 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11756 shlibpath_var=LIBPATH
11758 # AIX 3 has no versioning support, so we append a major version to the name.
11759 soname_spec='$libname$release$shared_ext$major'
11763 version_type=linux # correct to gnu/linux during the next big refactor
11766 hardcode_into_libs=yes
11767 if test ia64 = "$host_cpu"; then
11768 # AIX 5 supports IA64
11769 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11770 shlibpath_var=LD_LIBRARY_PATH
11772 # With GCC up to 2.95.x, collect2 would create an import file
11773 # for dependence libraries. The import file would start with
11774 # the line '#! .'. This would cause the generated library to
11775 # depend on '.', always an invalid library. This was fixed in
11776 # development snapshots of GCC prior to 3.0.
11778 aix4 | aix4.[01] | aix4.[01].*)
11779 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11781 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11784 can_build_shared=no
11788 # Using Import Files as archive members, it is possible to support
11789 # filename-based versioning of shared library archives on AIX. While
11790 # this would work for both with and without runtime linking, it will
11791 # prevent static linking of such archives. So we do filename-based
11792 # shared library versioning with .so extension only, which is used
11793 # when both runtime linking and shared linking is enabled.
11794 # Unfortunately, runtime linking may impact performance, so we do
11795 # not want this to be the default eventually. Also, we use the
11796 # versioned .so libs for executables only if there is the -brtl
11797 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11798 # To allow for filename-based versioning support, we need to create
11799 # libNAME.so.V as an archive file, containing:
11800 # *) an Import File, referring to the versioned filename of the
11801 # archive as well as the shared archive member, telling the
11802 # bitwidth (32 or 64) of that shared object, and providing the
11803 # list of exported symbols of that shared object, eventually
11804 # decorated with the 'weak' keyword
11805 # *) the shared object with the F_LOADONLY flag set, to really avoid
11806 # it being seen by the linker.
11807 # At run time we better use the real file rather than another symlink,
11808 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11810 case $with_aix_soname,$aix_use_runtimelinking in
11811 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11812 # soname into executable. Probably we can add versioning support to
11813 # collect2, so additional links can be useful in future.
11814 aix,yes) # traditional libtool
11815 dynamic_linker='AIX unversionable lib.so'
11816 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11817 # instead of lib<name>.a to let people know that these are not
11818 # typical AIX shared libraries.
11819 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11821 aix,no) # traditional AIX only
11822 dynamic_linker='AIX lib.a(lib.so.V)'
11823 # We preserve .a as extension for shared libraries through AIX4.2
11824 # and later when we are not doing run time linking.
11825 library_names_spec='$libname$release.a $libname.a'
11826 soname_spec='$libname$release$shared_ext$major'
11828 svr4,*) # full svr4 only
11829 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11830 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11831 # We do not specify a path in Import Files, so LIBPATH fires.
11832 shlibpath_overrides_runpath=yes
11834 *,yes) # both, prefer svr4
11835 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11836 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11837 # unpreferred sharedlib libNAME.a needs extra handling
11838 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"'
11839 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"'
11840 # We do not specify a path in Import Files, so LIBPATH fires.
11841 shlibpath_overrides_runpath=yes
11843 *,no) # both, prefer aix
11844 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11845 library_names_spec='$libname$release.a $libname.a'
11846 soname_spec='$libname$release$shared_ext$major'
11847 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11848 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)'
11849 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"'
11852 shlibpath_var=LIBPATH
11859 # Since July 2007 AmigaOS4 officially supports .so libraries.
11860 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11861 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11864 library_names_spec='$libname.ixlibrary $libname.a'
11865 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11866 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'
11872 library_names_spec='$libname$shared_ext'
11873 dynamic_linker="$host_os ld.so"
11874 shlibpath_var=LIBRARY_PATH
11878 version_type=linux # correct to gnu/linux during the next big refactor
11880 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11881 soname_spec='$libname$release$shared_ext$major'
11882 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11883 shlibpath_var=LD_LIBRARY_PATH
11884 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11885 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11886 # the default ld.so.conf also contains /usr/contrib/lib and
11887 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11888 # libtool to hard-code these into programs
11891 cygwin* | mingw* | pw32* | cegcc*)
11892 version_type=windows
11897 case $GCC,$cc_basename in
11900 library_names_spec='$libname.dll.a'
11901 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11902 postinstall_cmds='base_file=`basename \$file`~
11903 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11904 dldir=$destdir/`dirname \$dlpath`~
11905 test -d \$dldir || mkdir -p \$dldir~
11906 $install_prog $dir/$dlname \$dldir/$dlname~
11907 chmod a+x \$dldir/$dlname~
11908 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11909 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11911 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11912 dlpath=$dir/\$dldll~
11914 shlibpath_overrides_runpath=yes
11918 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11919 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11921 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11924 # MinGW DLLs use traditional 'lib' prefix
11925 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11928 # pw32 DLLs use 'pw' prefix rather than 'lib'
11929 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11932 dynamic_linker='Win32 ld.exe'
11937 libname_spec='$name'
11938 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11939 library_names_spec='$libname.dll.lib'
11943 sys_lib_search_path_spec=
11946 for lt_path in $LIB
11949 # Let DOS variable expansion print the short 8.3 style file name.
11950 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11951 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11954 # Convert to MSYS style.
11955 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11958 # Convert to unix form, then to dos form, then back to unix form
11959 # but this time dos style (no spaces!) so that the unix form looks
11960 # like /cygdrive/c/PROGRA~1:/cygdr...
11961 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11962 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11963 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11966 sys_lib_search_path_spec=$LIB
11967 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11968 # It is most probably a Windows format PATH.
11969 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11971 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11973 # FIXME: find the short name or the path components, as spaces are
11974 # common. (e.g. "Program Files" -> "PROGRA~1")
11978 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11979 postinstall_cmds='base_file=`basename \$file`~
11980 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11981 dldir=$destdir/`dirname \$dlpath`~
11982 test -d \$dldir || mkdir -p \$dldir~
11983 $install_prog $dir/$dlname \$dldir/$dlname'
11984 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11985 dlpath=$dir/\$dldll~
11987 shlibpath_overrides_runpath=yes
11988 dynamic_linker='Win32 link.exe'
11992 # Assume MSVC wrapper
11993 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11994 dynamic_linker='Win32 ld.exe'
11997 # FIXME: first we should search . and the directory the executable is in
12001 darwin* | rhapsody*)
12002 dynamic_linker="$host_os dyld"
12003 version_type=darwin
12006 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12007 soname_spec='$libname$release$major$shared_ext'
12008 shlibpath_overrides_runpath=yes
12009 shlibpath_var=DYLD_LIBRARY_PATH
12010 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12012 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12013 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12017 version_type=linux # correct to gnu/linux during the next big refactor
12020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12021 soname_spec='$libname$release$shared_ext$major'
12022 shlibpath_var=LD_LIBRARY_PATH
12025 freebsd* | dragonfly*)
12026 # DragonFly does not have aout. When/if they implement a new
12027 # versioning mechanism, adjust this.
12028 if test -x /usr/bin/objformat; then
12029 objformat=`/usr/bin/objformat`
12032 freebsd[23].*) objformat=aout ;;
12033 *) objformat=elf ;;
12036 version_type=freebsd-$objformat
12037 case $version_type in
12039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12040 soname_spec='$libname$release$shared_ext$major'
12045 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12049 shlibpath_var=LD_LIBRARY_PATH
12052 shlibpath_overrides_runpath=yes
12054 freebsd3.[01]* | freebsdelf3.[01]*)
12055 shlibpath_overrides_runpath=yes
12056 hardcode_into_libs=yes
12058 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12059 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12060 shlibpath_overrides_runpath=no
12061 hardcode_into_libs=yes
12063 *) # from 4.6 on, and DragonFly
12064 shlibpath_overrides_runpath=yes
12065 hardcode_into_libs=yes
12071 version_type=linux # correct to gnu/linux during the next big refactor
12074 dynamic_linker="$host_os runtime_loader"
12075 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12076 soname_spec='$libname$release$shared_ext$major'
12077 shlibpath_var=LIBRARY_PATH
12078 shlibpath_overrides_runpath=no
12079 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12080 hardcode_into_libs=yes
12083 hpux9* | hpux10* | hpux11*)
12084 # Give a soname corresponding to the major version so that dld.sl refuses to
12085 # link against other versions.
12092 hardcode_into_libs=yes
12093 dynamic_linker="$host_os dld.so"
12094 shlibpath_var=LD_LIBRARY_PATH
12095 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12096 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12097 soname_spec='$libname$release$shared_ext$major'
12098 if test 32 = "$HPUX_IA64_MODE"; then
12099 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12100 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12102 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12103 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12108 hardcode_into_libs=yes
12109 dynamic_linker="$host_os dld.sl"
12110 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12111 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12113 soname_spec='$libname$release$shared_ext$major'
12114 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12115 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12119 dynamic_linker="$host_os dld.sl"
12120 shlibpath_var=SHLIB_PATH
12121 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12122 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12123 soname_spec='$libname$release$shared_ext$major'
12126 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12127 postinstall_cmds='chmod 555 $lib'
12128 # or fails outright, so override atomically:
12129 install_override_mode=555
12133 version_type=linux # correct to gnu/linux during the next big refactor
12136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12137 soname_spec='$libname$release$shared_ext$major'
12138 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12139 shlibpath_var=LD_LIBRARY_PATH
12140 shlibpath_overrides_runpath=no
12141 hardcode_into_libs=yes
12144 irix5* | irix6* | nonstopux*)
12146 nonstopux*) version_type=nonstopux ;;
12148 if test yes = "$lt_cv_prog_gnu_ld"; then
12149 version_type=linux # correct to gnu/linux during the next big refactor
12156 soname_spec='$libname$release$shared_ext$major'
12157 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12159 irix5* | nonstopux*)
12160 libsuff= shlibsuff=
12163 case $LD in # libtool.m4 will add one of these switches to LD
12164 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12165 libsuff= shlibsuff= libmagic=32-bit;;
12166 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12167 libsuff=32 shlibsuff=N32 libmagic=N32;;
12168 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12169 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12170 *) libsuff= shlibsuff= libmagic=never-match;;
12174 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12175 shlibpath_overrides_runpath=no
12176 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12177 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12178 hardcode_into_libs=yes
12181 # No shared lib support for Linux oldld, aout, or coff.
12182 linux*oldld* | linux*aout* | linux*coff*)
12187 version_type=none # Android doesn't support versioned libraries.
12190 library_names_spec='$libname$release$shared_ext'
12191 soname_spec='$libname$release$shared_ext'
12193 shlibpath_var=LD_LIBRARY_PATH
12194 shlibpath_overrides_runpath=yes
12196 # This implies no fast_install, which is unacceptable.
12197 # Some rework will be needed to allow for fast_install
12198 # before this can be enabled.
12199 hardcode_into_libs=yes
12201 dynamic_linker='Android linker'
12202 # Don't embed -rpath directories since the linker doesn't support them.
12203 hardcode_libdir_flag_spec='-L$libdir'
12206 # This must be glibc/ELF.
12207 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12208 version_type=linux # correct to gnu/linux during the next big refactor
12211 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12212 soname_spec='$libname$release$shared_ext$major'
12213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12214 shlibpath_var=LD_LIBRARY_PATH
12215 shlibpath_overrides_runpath=no
12217 # Some binutils ld are patched to set DT_RUNPATH
12218 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12219 $as_echo_n "(cached) " >&6
12221 lt_cv_shlibpath_overrides_runpath=no
12222 save_LDFLAGS=$LDFLAGS
12223 save_libdir=$libdir
12224 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12225 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12227 /* end confdefs.h. */
12237 if ac_fn_c_try_link "$LINENO"; then :
12238 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12239 lt_cv_shlibpath_overrides_runpath=yes
12242 rm -f core conftest.err conftest.$ac_objext \
12243 conftest$ac_exeext conftest.$ac_ext
12244 LDFLAGS=$save_LDFLAGS
12245 libdir=$save_libdir
12249 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12251 # This implies no fast_install, which is unacceptable.
12252 # Some rework will be needed to allow for fast_install
12253 # before this can be enabled.
12254 hardcode_into_libs=yes
12256 # Add ABI-specific directories to the system library path.
12257 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12259 # Ideally, we could use ldconfig to report *all* directores which are
12260 # searched for libraries, however this is still not possible. Aside from not
12261 # being certain /sbin/ldconfig is available, command
12262 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12263 # even though it is searched at run-time. Try to do the best guess by
12264 # appending ld.so.conf contents (and includes) to the search path.
12265 if test -f /etc/ld.so.conf; then
12266 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' ' '`
12267 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12270 # We used to test for /lib/ld.so.1 and disable shared libraries on
12271 # powerpc, because MkLinux only supported shared libraries with the
12272 # GNU dynamic linker. Since this was broken with cross compilers,
12273 # most powerpc-linux boxes support dynamic linking these days and
12274 # people can always --disable-shared, the test was removed, and we
12275 # assume the GNU/Linux dynamic linker is in use.
12276 dynamic_linker='GNU/Linux ld.so'
12283 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12284 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12285 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12286 dynamic_linker='NetBSD (a.out) ld.so'
12288 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12289 soname_spec='$libname$release$shared_ext$major'
12290 dynamic_linker='NetBSD ld.elf_so'
12292 shlibpath_var=LD_LIBRARY_PATH
12293 shlibpath_overrides_runpath=yes
12294 hardcode_into_libs=yes
12298 version_type=linux # correct to gnu/linux during the next big refactor
12299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12300 shlibpath_var=LD_LIBRARY_PATH
12301 shlibpath_overrides_runpath=yes
12308 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12309 soname_spec='$libname$release$shared_ext$major'
12310 shlibpath_var=LD_LIBRARY_PATH
12311 shlibpath_overrides_runpath=no
12312 hardcode_into_libs=yes
12313 dynamic_linker='ldqnx.so'
12316 openbsd* | bitrig*)
12318 sys_lib_dlsearch_path_spec=/usr/lib
12320 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12325 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12327 shlibpath_var=LD_LIBRARY_PATH
12328 shlibpath_overrides_runpath=yes
12332 libname_spec='$name'
12333 version_type=windows
12337 # OS/2 can only load a DLL with a base name of 8 characters or less.
12338 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12339 v=$($ECHO $release$versuffix | tr -d .-);
12340 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12341 $ECHO $n$v`$shared_ext'
12342 library_names_spec='${libname}_dll.$libext'
12343 dynamic_linker='OS/2 ld.exe'
12344 shlibpath_var=BEGINLIBPATH
12345 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12346 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12347 postinstall_cmds='base_file=`basename \$file`~
12348 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12349 dldir=$destdir/`dirname \$dlpath`~
12350 test -d \$dldir || mkdir -p \$dldir~
12351 $install_prog $dir/$dlname \$dldir/$dlname~
12352 chmod a+x \$dldir/$dlname~
12353 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12354 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12356 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12357 dlpath=$dir/\$dldll~
12361 osf3* | osf4* | osf5*)
12365 soname_spec='$libname$release$shared_ext$major'
12366 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12367 shlibpath_var=LD_LIBRARY_PATH
12368 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12369 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12377 version_type=linux # correct to gnu/linux during the next big refactor
12380 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12381 soname_spec='$libname$release$shared_ext$major'
12382 shlibpath_var=LD_LIBRARY_PATH
12383 shlibpath_overrides_runpath=yes
12384 hardcode_into_libs=yes
12385 # ldd complains unless libraries are executable
12386 postinstall_cmds='chmod +x $lib'
12391 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12392 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12393 shlibpath_var=LD_LIBRARY_PATH
12394 shlibpath_overrides_runpath=yes
12395 if test yes = "$with_gnu_ld"; then
12402 version_type=linux # correct to gnu/linux during the next big refactor
12403 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12404 soname_spec='$libname$release$shared_ext$major'
12405 shlibpath_var=LD_LIBRARY_PATH
12406 case $host_vendor in
12408 shlibpath_overrides_runpath=no
12410 runpath_var=LD_RUN_PATH
12418 shlibpath_overrides_runpath=no
12419 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12425 if test -d /usr/nec; then
12426 version_type=linux # correct to gnu/linux during the next big refactor
12427 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12428 soname_spec='$libname$shared_ext.$major'
12429 shlibpath_var=LD_LIBRARY_PATH
12433 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12437 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12438 soname_spec='$libname$release$shared_ext$major'
12439 shlibpath_var=LD_LIBRARY_PATH
12440 shlibpath_overrides_runpath=yes
12441 hardcode_into_libs=yes
12442 if test yes = "$with_gnu_ld"; then
12443 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12445 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12448 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12452 sys_lib_dlsearch_path_spec='/usr/lib'
12456 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12457 version_type=linux # correct to gnu/linux during the next big refactor
12460 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12461 shlibpath_var=LD_LIBRARY_PATH
12462 shlibpath_overrides_runpath=no
12463 hardcode_into_libs=yes
12467 version_type=linux # correct to gnu/linux during the next big refactor
12468 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12469 soname_spec='$libname$release$shared_ext$major'
12470 shlibpath_var=LD_LIBRARY_PATH
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12478 $as_echo "$dynamic_linker" >&6; }
12479 test no = "$dynamic_linker" && can_build_shared=no
12481 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12482 if test yes = "$GCC"; then
12483 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12486 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12487 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12490 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12491 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12494 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12495 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12497 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12498 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12500 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12501 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12600 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12602 if test -n "$hardcode_libdir_flag_spec" ||
12603 test -n "$runpath_var" ||
12604 test yes = "$hardcode_automatic"; then
12606 # We can hardcode non-existent directories.
12607 if test no != "$hardcode_direct" &&
12608 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12609 # have to relink, otherwise we might link with an installed library
12610 # when we should be linking with a yet-to-be-installed one
12611 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12612 test no != "$hardcode_minus_L"; then
12613 # Linking always hardcodes the temporary library directory.
12614 hardcode_action=relink
12616 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12617 hardcode_action=immediate
12620 # We cannot hardcode anything, or else we can only hardcode existing
12622 hardcode_action=unsupported
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12625 $as_echo "$hardcode_action" >&6; }
12627 if test relink = "$hardcode_action" ||
12628 test yes = "$inherit_rpath"; then
12629 # Fast installation is not supported
12630 enable_fast_install=no
12631 elif test yes = "$shlibpath_overrides_runpath" ||
12632 test no = "$enable_shared"; then
12633 # Fast installation is not necessary
12634 enable_fast_install=needless
12642 if test yes != "$enable_dlopen"; then
12643 enable_dlopen=unknown
12644 enable_dlopen_self=unknown
12645 enable_dlopen_self_static=unknown
12652 lt_cv_dlopen=load_add_on
12654 lt_cv_dlopen_self=yes
12657 mingw* | pw32* | cegcc*)
12658 lt_cv_dlopen=LoadLibrary
12663 lt_cv_dlopen=dlopen
12668 # if libdl is installed we need to link against it
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12670 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12671 if ${ac_cv_lib_dl_dlopen+:} false; then :
12672 $as_echo_n "(cached) " >&6
12674 ac_check_lib_save_LIBS=$LIBS
12676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h. */
12679 /* Override any GCC internal prototype to avoid an error.
12680 Use char because int might match the return type of a GCC
12681 builtin and then its argument prototype would still apply. */
12694 if ac_fn_c_try_link "$LINENO"; then :
12695 ac_cv_lib_dl_dlopen=yes
12697 ac_cv_lib_dl_dlopen=no
12699 rm -f core conftest.err conftest.$ac_objext \
12700 conftest$ac_exeext conftest.$ac_ext
12701 LIBS=$ac_check_lib_save_LIBS
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12704 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12705 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12706 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12711 lt_cv_dlopen_self=yes
12718 # Don't try to run any link tests for TPF. We know it's impossible
12719 # because TPF is a cross-compiler, and we know how we open DSOs.
12720 lt_cv_dlopen=dlopen
12722 lt_cv_dlopen_self=no
12726 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12727 if test "x$ac_cv_func_shl_load" = xyes; then :
12728 lt_cv_dlopen=shl_load
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12731 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12732 if ${ac_cv_lib_dld_shl_load+:} false; then :
12733 $as_echo_n "(cached) " >&6
12735 ac_check_lib_save_LIBS=$LIBS
12737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12738 /* end confdefs.h. */
12740 /* Override any GCC internal prototype to avoid an error.
12741 Use char because int might match the return type of a GCC
12742 builtin and then its argument prototype would still apply. */
12750 return shl_load ();
12755 if ac_fn_c_try_link "$LINENO"; then :
12756 ac_cv_lib_dld_shl_load=yes
12758 ac_cv_lib_dld_shl_load=no
12760 rm -f core conftest.err conftest.$ac_objext \
12761 conftest$ac_exeext conftest.$ac_ext
12762 LIBS=$ac_check_lib_save_LIBS
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12765 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12766 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12767 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12769 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12770 if test "x$ac_cv_func_dlopen" = xyes; then :
12771 lt_cv_dlopen=dlopen
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12774 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12775 if ${ac_cv_lib_dl_dlopen+:} false; then :
12776 $as_echo_n "(cached) " >&6
12778 ac_check_lib_save_LIBS=$LIBS
12780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12781 /* end confdefs.h. */
12783 /* Override any GCC internal prototype to avoid an error.
12784 Use char because int might match the return type of a GCC
12785 builtin and then its argument prototype would still apply. */
12798 if ac_fn_c_try_link "$LINENO"; then :
12799 ac_cv_lib_dl_dlopen=yes
12801 ac_cv_lib_dl_dlopen=no
12803 rm -f core conftest.err conftest.$ac_objext \
12804 conftest$ac_exeext conftest.$ac_ext
12805 LIBS=$ac_check_lib_save_LIBS
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12808 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12809 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12810 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12813 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12814 if ${ac_cv_lib_svld_dlopen+:} false; then :
12815 $as_echo_n "(cached) " >&6
12817 ac_check_lib_save_LIBS=$LIBS
12818 LIBS="-lsvld $LIBS"
12819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820 /* end confdefs.h. */
12822 /* Override any GCC internal prototype to avoid an error.
12823 Use char because int might match the return type of a GCC
12824 builtin and then its argument prototype would still apply. */
12837 if ac_fn_c_try_link "$LINENO"; then :
12838 ac_cv_lib_svld_dlopen=yes
12840 ac_cv_lib_svld_dlopen=no
12842 rm -f core conftest.err conftest.$ac_objext \
12843 conftest$ac_exeext conftest.$ac_ext
12844 LIBS=$ac_check_lib_save_LIBS
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12847 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12848 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12849 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12852 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12853 if ${ac_cv_lib_dld_dld_link+:} false; then :
12854 $as_echo_n "(cached) " >&6
12856 ac_check_lib_save_LIBS=$LIBS
12858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12859 /* end confdefs.h. */
12861 /* Override any GCC internal prototype to avoid an error.
12862 Use char because int might match the return type of a GCC
12863 builtin and then its argument prototype would still apply. */
12871 return dld_link ();
12876 if ac_fn_c_try_link "$LINENO"; then :
12877 ac_cv_lib_dld_dld_link=yes
12879 ac_cv_lib_dld_dld_link=no
12881 rm -f core conftest.err conftest.$ac_objext \
12882 conftest$ac_exeext conftest.$ac_ext
12883 LIBS=$ac_check_lib_save_LIBS
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12886 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12887 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12888 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12909 if test no = "$lt_cv_dlopen"; then
12915 case $lt_cv_dlopen in
12917 save_CPPFLAGS=$CPPFLAGS
12918 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12920 save_LDFLAGS=$LDFLAGS
12921 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12924 LIBS="$lt_cv_dlopen_libs $LIBS"
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12927 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12928 if ${lt_cv_dlopen_self+:} false; then :
12929 $as_echo_n "(cached) " >&6
12931 if test yes = "$cross_compiling"; then :
12932 lt_cv_dlopen_self=cross
12934 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12935 lt_status=$lt_dlunknown
12936 cat > conftest.$ac_ext <<_LT_EOF
12937 #line $LINENO "configure"
12938 #include "confdefs.h"
12947 # define LT_DLGLOBAL RTLD_GLOBAL
12950 # define LT_DLGLOBAL DL_GLOBAL
12952 # define LT_DLGLOBAL 0
12956 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12957 find out it does not work in some platform. */
12958 #ifndef LT_DLLAZY_OR_NOW
12960 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12963 # define LT_DLLAZY_OR_NOW DL_LAZY
12966 # define LT_DLLAZY_OR_NOW RTLD_NOW
12969 # define LT_DLLAZY_OR_NOW DL_NOW
12971 # define LT_DLLAZY_OR_NOW 0
12978 /* When -fvisibility=hidden is used, assume the code has been annotated
12979 correspondingly for the symbols needed. */
12980 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12981 int fnord () __attribute__((visibility("default")));
12984 int fnord () { return 42; }
12987 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12988 int status = $lt_dlunknown;
12992 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12995 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12996 else puts (dlerror ());
12998 /* dlclose (self); */
13006 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13007 (eval $ac_link) 2>&5
13009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13010 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13011 (./conftest; exit; ) >&5 2>/dev/null
13013 case x$lt_status in
13014 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13015 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13016 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13019 # compilation failed
13020 lt_cv_dlopen_self=no
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13028 $as_echo "$lt_cv_dlopen_self" >&6; }
13030 if test yes = "$lt_cv_dlopen_self"; then
13031 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13033 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13034 if ${lt_cv_dlopen_self_static+:} false; then :
13035 $as_echo_n "(cached) " >&6
13037 if test yes = "$cross_compiling"; then :
13038 lt_cv_dlopen_self_static=cross
13040 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13041 lt_status=$lt_dlunknown
13042 cat > conftest.$ac_ext <<_LT_EOF
13043 #line $LINENO "configure"
13044 #include "confdefs.h"
13053 # define LT_DLGLOBAL RTLD_GLOBAL
13056 # define LT_DLGLOBAL DL_GLOBAL
13058 # define LT_DLGLOBAL 0
13062 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13063 find out it does not work in some platform. */
13064 #ifndef LT_DLLAZY_OR_NOW
13066 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13069 # define LT_DLLAZY_OR_NOW DL_LAZY
13072 # define LT_DLLAZY_OR_NOW RTLD_NOW
13075 # define LT_DLLAZY_OR_NOW DL_NOW
13077 # define LT_DLLAZY_OR_NOW 0
13084 /* When -fvisibility=hidden is used, assume the code has been annotated
13085 correspondingly for the symbols needed. */
13086 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13087 int fnord () __attribute__((visibility("default")));
13090 int fnord () { return 42; }
13093 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13094 int status = $lt_dlunknown;
13098 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13101 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13102 else puts (dlerror ());
13104 /* dlclose (self); */
13112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13113 (eval $ac_link) 2>&5
13115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13116 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13117 (./conftest; exit; ) >&5 2>/dev/null
13119 case x$lt_status in
13120 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13121 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13122 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13125 # compilation failed
13126 lt_cv_dlopen_self_static=no
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13134 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13137 CPPFLAGS=$save_CPPFLAGS
13138 LDFLAGS=$save_LDFLAGS
13143 case $lt_cv_dlopen_self in
13144 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13145 *) enable_dlopen_self=unknown ;;
13148 case $lt_cv_dlopen_self_static in
13149 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13150 *) enable_dlopen_self_static=unknown ;;
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13173 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13174 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13175 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13176 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13178 $as_echo "yes" >&6; }
13180 # FIXME - insert some real tests, host_os isn't really good enough
13183 if test -n "$STRIP"; then
13184 striplib="$STRIP -x"
13185 old_striplib="$STRIP -S"
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13187 $as_echo "yes" >&6; }
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13190 $as_echo "no" >&6; }
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13195 $as_echo "no" >&6; }
13211 # Report what library types will actually be built
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13213 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13215 $as_echo "$can_build_shared" >&6; }
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13218 $as_echo_n "checking whether to build shared libraries... " >&6; }
13219 test no = "$can_build_shared" && enable_shared=no
13221 # On AIX, shared libraries and static libraries use the same namespace, and
13222 # are all built from PIC.
13225 test yes = "$enable_shared" && enable_static=no
13226 if test -n "$RANLIB"; then
13227 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13228 postinstall_cmds='$RANLIB $lib'
13233 if test ia64 != "$host_cpu"; then
13234 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13235 yes,aix,yes) ;; # shared object as lib.so file only
13236 yes,svr4,*) ;; # shared object as lib.so archive member only
13237 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13243 $as_echo "$enable_shared" >&6; }
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13246 $as_echo_n "checking whether to build static libraries... " >&6; }
13247 # Make sure either enable_shared or enable_static is yes.
13248 test yes = "$enable_shared" || enable_static=yes
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13250 $as_echo "$enable_static" >&6; }
13257 ac_cpp='$CPP $CPPFLAGS'
13258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13278 ac_config_commands="$ac_config_commands libtool"
13283 # Only expand once:
13294 LIBT_VERSION_INFO="$LIBT_CURRENT:$LIBT_REVISION:$LIBT_AGE"
13297 LIBT_CURRENT_MINUS_AGE=`expr $LIBT_CURRENT - $LIBT_AGE`
13300 PKGCONFIG_REQUIRES=
13301 PKGCONFIG_REQUIRES_PRIVATELY=
13310 if test "$os_win32" = "yes"; then
13319 GETTEXT_PACKAGE=$PACKAGE
13322 cat >>confdefs.h <<_ACEOF
13323 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13330 $as_echo_n "checking whether NLS is requested... " >&6; }
13331 # Check whether --enable-nls was given.
13332 if test "${enable_nls+set}" = set; then :
13333 enableval=$enable_nls; USE_NLS=$enableval
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13339 $as_echo "$USE_NLS" >&6; }
13344 GETTEXT_MACRO_VERSION=0.19
13349 # Prepare PATH_SEPARATOR.
13350 # The user is always right.
13351 if test "${PATH_SEPARATOR+set}" != set; then
13352 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13353 # contains only /bin. Note that ksh looks also at the FPATH variable,
13354 # so we have to set that as well for the test.
13356 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13357 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13358 || PATH_SEPARATOR=';'
13362 # Find out how to test for executable files. Don't use a zero-byte file,
13363 # as systems may use methods other than mode bits to determine executability.
13364 cat >conf$$.file <<_ASEOF
13368 chmod +x conf$$.file
13369 if test -x conf$$.file >/dev/null 2>&1; then
13370 ac_executable_p="test -x"
13372 ac_executable_p="test -f"
13376 # Extract the first word of "msgfmt", so it can be a program name with args.
13377 set dummy msgfmt; ac_word=$2
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13379 $as_echo_n "checking for $ac_word... " >&6; }
13380 if ${ac_cv_path_MSGFMT+:} false; then :
13381 $as_echo_n "(cached) " >&6
13385 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13388 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13389 for ac_dir in $PATH; do
13391 test -z "$ac_dir" && ac_dir=.
13392 for ac_exec_ext in '' $ac_executable_extensions; do
13393 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13394 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13395 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13396 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13397 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13404 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13408 MSGFMT="$ac_cv_path_MSGFMT"
13409 if test "$MSGFMT" != ":"; then
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13411 $as_echo "$MSGFMT" >&6; }
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13414 $as_echo "no" >&6; }
13417 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13418 set dummy gmsgfmt; ac_word=$2
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13420 $as_echo_n "checking for $ac_word... " >&6; }
13421 if ${ac_cv_path_GMSGFMT+:} false; then :
13422 $as_echo_n "(cached) " >&6
13426 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13430 for as_dir in $PATH
13433 test -z "$as_dir" && as_dir=.
13434 for ac_exec_ext in '' $ac_executable_extensions; do
13435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13436 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13444 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13448 GMSGFMT=$ac_cv_path_GMSGFMT
13449 if test -n "$GMSGFMT"; then
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13451 $as_echo "$GMSGFMT" >&6; }
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13454 $as_echo "no" >&6; }
13459 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13460 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
13461 *) MSGFMT_015=$MSGFMT ;;
13464 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13465 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13466 *) GMSGFMT_015=$GMSGFMT ;;
13471 # Prepare PATH_SEPARATOR.
13472 # The user is always right.
13473 if test "${PATH_SEPARATOR+set}" != set; then
13474 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13475 # contains only /bin. Note that ksh looks also at the FPATH variable,
13476 # so we have to set that as well for the test.
13478 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13479 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13480 || PATH_SEPARATOR=';'
13484 # Find out how to test for executable files. Don't use a zero-byte file,
13485 # as systems may use methods other than mode bits to determine executability.
13486 cat >conf$$.file <<_ASEOF
13490 chmod +x conf$$.file
13491 if test -x conf$$.file >/dev/null 2>&1; then
13492 ac_executable_p="test -x"
13494 ac_executable_p="test -f"
13498 # Extract the first word of "xgettext", so it can be a program name with args.
13499 set dummy xgettext; ac_word=$2
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13501 $as_echo_n "checking for $ac_word... " >&6; }
13502 if ${ac_cv_path_XGETTEXT+:} false; then :
13503 $as_echo_n "(cached) " >&6
13505 case "$XGETTEXT" in
13507 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13510 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13511 for ac_dir in $PATH; do
13513 test -z "$ac_dir" && ac_dir=.
13514 for ac_exec_ext in '' $ac_executable_extensions; do
13515 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13516 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13517 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
13518 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13519 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13526 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13530 XGETTEXT="$ac_cv_path_XGETTEXT"
13531 if test "$XGETTEXT" != ":"; then
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13533 $as_echo "$XGETTEXT" >&6; }
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13536 $as_echo "no" >&6; }
13541 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13542 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
13543 *) XGETTEXT_015=$XGETTEXT ;;
13548 # Prepare PATH_SEPARATOR.
13549 # The user is always right.
13550 if test "${PATH_SEPARATOR+set}" != set; then
13551 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13552 # contains only /bin. Note that ksh looks also at the FPATH variable,
13553 # so we have to set that as well for the test.
13555 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13556 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13557 || PATH_SEPARATOR=';'
13561 # Find out how to test for executable files. Don't use a zero-byte file,
13562 # as systems may use methods other than mode bits to determine executability.
13563 cat >conf$$.file <<_ASEOF
13567 chmod +x conf$$.file
13568 if test -x conf$$.file >/dev/null 2>&1; then
13569 ac_executable_p="test -x"
13571 ac_executable_p="test -f"
13575 # Extract the first word of "msgmerge", so it can be a program name with args.
13576 set dummy msgmerge; ac_word=$2
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13578 $as_echo_n "checking for $ac_word... " >&6; }
13579 if ${ac_cv_path_MSGMERGE+:} false; then :
13580 $as_echo_n "(cached) " >&6
13582 case "$MSGMERGE" in
13584 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13587 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13588 for ac_dir in $PATH; do
13590 test -z "$ac_dir" && ac_dir=.
13591 for ac_exec_ext in '' $ac_executable_extensions; do
13592 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13593 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13594 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
13595 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13602 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13606 MSGMERGE="$ac_cv_path_MSGMERGE"
13607 if test "$MSGMERGE" != ":"; then
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13609 $as_echo "$MSGMERGE" >&6; }
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13612 $as_echo "no" >&6; }
13616 test -n "$localedir" || localedir='${datadir}/locale'
13619 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
13622 ac_config_commands="$ac_config_commands po-directories"
13626 if test "X$prefix" = "XNONE"; then
13627 acl_final_prefix="$ac_default_prefix"
13629 acl_final_prefix="$prefix"
13631 if test "X$exec_prefix" = "XNONE"; then
13632 acl_final_exec_prefix='${prefix}'
13634 acl_final_exec_prefix="$exec_prefix"
13636 acl_save_prefix="$prefix"
13637 prefix="$acl_final_prefix"
13638 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13639 prefix="$acl_save_prefix"
13643 # Check whether --with-gnu-ld was given.
13644 if test "${with_gnu_ld+set}" = set; then :
13645 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13650 # Prepare PATH_SEPARATOR.
13651 # The user is always right.
13652 if test "${PATH_SEPARATOR+set}" != set; then
13653 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13654 # contains only /bin. Note that ksh looks also at the FPATH variable,
13655 # so we have to set that as well for the test.
13657 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13658 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13659 || PATH_SEPARATOR=';'
13664 if test "$GCC" = yes; then
13665 # Check if gcc -print-prog-name=ld gives a path.
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13667 $as_echo_n "checking for ld used by $CC... " >&6; }
13670 # gcc leaves a trailing carriage return which upsets mingw
13671 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13673 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13676 # Accept absolute paths.
13678 re_direlt='/[^/][^/]*/\.\./'
13679 # Canonicalize the pathname of ld
13680 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
13681 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
13682 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13684 test -z "$LD" && LD="$ac_prog"
13687 # If it fails, then pretend we aren't using GCC.
13691 # If it is relative, then search for the first ld in PATH.
13692 with_gnu_ld=unknown
13695 elif test "$with_gnu_ld" = yes; then
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13697 $as_echo_n "checking for GNU ld... " >&6; }
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13700 $as_echo_n "checking for non-GNU ld... " >&6; }
13702 if ${acl_cv_path_LD+:} false; then :
13703 $as_echo_n "(cached) " >&6
13705 if test -z "$LD"; then
13706 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13707 for ac_dir in $PATH; do
13708 IFS="$acl_save_ifs"
13709 test -z "$ac_dir" && ac_dir=.
13710 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13711 acl_cv_path_LD="$ac_dir/$ac_prog"
13712 # Check to see if the program is GNU ld. I'd rather use --version,
13713 # but apparently some variants of GNU ld only accept -v.
13714 # Break only if it was the GNU/non-GNU ld that we prefer.
13715 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
13716 *GNU* | *'with BFD'*)
13717 test "$with_gnu_ld" != no && break
13720 test "$with_gnu_ld" != yes && break
13725 IFS="$acl_save_ifs"
13727 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13731 LD="$acl_cv_path_LD"
13732 if test -n "$LD"; then
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13734 $as_echo "$LD" >&6; }
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13737 $as_echo "no" >&6; }
13739 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13741 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13742 if ${acl_cv_prog_gnu_ld+:} false; then :
13743 $as_echo_n "(cached) " >&6
13745 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13746 case `$LD -v 2>&1 </dev/null` in
13747 *GNU* | *'with BFD'*)
13748 acl_cv_prog_gnu_ld=yes
13751 acl_cv_prog_gnu_ld=no
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13756 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13757 with_gnu_ld=$acl_cv_prog_gnu_ld
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13763 $as_echo_n "checking for shared library run path origin... " >&6; }
13764 if ${acl_cv_rpath+:} false; then :
13765 $as_echo_n "(cached) " >&6
13768 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13769 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13771 rm -f ./conftest.sh
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13776 $as_echo "$acl_cv_rpath" >&6; }
13778 acl_libext="$acl_cv_libext"
13779 acl_shlibext="$acl_cv_shlibext"
13780 acl_libname_spec="$acl_cv_libname_spec"
13781 acl_library_names_spec="$acl_cv_library_names_spec"
13782 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13783 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13784 acl_hardcode_direct="$acl_cv_hardcode_direct"
13785 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13786 # Check whether --enable-rpath was given.
13787 if test "${enable_rpath+set}" = set; then :
13788 enableval=$enable_rpath; :
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
13801 $as_echo_n "checking for 64-bit host... " >&6; }
13802 if ${gl_cv_solaris_64bit+:} false; then :
13803 $as_echo_n "(cached) " >&6
13805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13806 /* end confdefs.h. */
13813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13814 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
13815 gl_cv_solaris_64bit=yes
13817 gl_cv_solaris_64bit=no
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
13824 $as_echo "$gl_cv_solaris_64bit" >&6; }
13825 if test $gl_cv_solaris_64bit = yes; then
13826 acl_libdirstem=lib/64
13827 case "$host_cpu" in
13828 sparc*) acl_libdirstem2=lib/sparcv9 ;;
13829 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
13834 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13835 if test -n "$searchpath"; then
13836 acl_save_IFS="${IFS= }"; IFS=":"
13837 for searchdir in $searchpath; do
13838 if test -d "$searchdir"; then
13839 case "$searchdir" in
13840 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13842 # Better ignore directories of this form. They are misleading.
13844 *) searchdir=`cd "$searchdir" && pwd`
13845 case "$searchdir" in
13846 */lib64 ) acl_libdirstem=lib64 ;;
13851 IFS="$acl_save_IFS"
13855 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
13870 acl_save_prefix="$prefix"
13871 prefix="$acl_final_prefix"
13872 acl_save_exec_prefix="$exec_prefix"
13873 exec_prefix="$acl_final_exec_prefix"
13875 eval additional_includedir=\"$includedir\"
13876 eval additional_libdir=\"$libdir\"
13878 exec_prefix="$acl_save_exec_prefix"
13879 prefix="$acl_save_prefix"
13882 # Check whether --with-libiconv-prefix was given.
13883 if test "${with_libiconv_prefix+set}" = set; then :
13884 withval=$with_libiconv_prefix;
13885 if test "X$withval" = "Xno"; then
13888 if test "X$withval" = "X"; then
13890 acl_save_prefix="$prefix"
13891 prefix="$acl_final_prefix"
13892 acl_save_exec_prefix="$exec_prefix"
13893 exec_prefix="$acl_final_exec_prefix"
13895 eval additional_includedir=\"$includedir\"
13896 eval additional_libdir=\"$libdir\"
13898 exec_prefix="$acl_save_exec_prefix"
13899 prefix="$acl_save_prefix"
13902 additional_includedir="$withval/include"
13903 additional_libdir="$withval/$acl_libdirstem"
13904 if test "$acl_libdirstem2" != "$acl_libdirstem" \
13905 && ! test -d "$withval/$acl_libdirstem"; then
13906 additional_libdir="$withval/$acl_libdirstem2"
13920 names_already_handled=
13921 names_next_round='iconv '
13922 while test -n "$names_next_round"; do
13923 names_this_round="$names_next_round"
13925 for name in $names_this_round; do
13927 for n in $names_already_handled; do
13928 if test "$n" = "$name"; then
13929 already_handled=yes
13933 if test -z "$already_handled"; then
13934 names_already_handled="$names_already_handled $name"
13935 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
13936 eval value=\"\$HAVE_LIB$uppername\"
13937 if test -n "$value"; then
13938 if test "$value" = yes; then
13939 eval value=\"\$LIB$uppername\"
13940 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13941 eval value=\"\$LTLIB$uppername\"
13942 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13951 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13952 if test -n "$acl_shlibext"; then
13953 shrext=".$acl_shlibext" # typically: shrext=.so
13957 if test $use_additional = yes; then
13958 dir="$additional_libdir"
13959 if test -n "$acl_shlibext"; then
13960 if test -f "$dir/$libname$shrext"; then
13962 found_so="$dir/$libname$shrext"
13964 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13965 ver=`(cd "$dir" && \
13966 for f in "$libname$shrext".*; do echo "$f"; done \
13967 | sed -e "s,^$libname$shrext\\\\.,," \
13968 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13969 | sed 1q ) 2>/dev/null`
13970 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13972 found_so="$dir/$libname$shrext.$ver"
13975 eval library_names=\"$acl_library_names_spec\"
13976 for f in $library_names; do
13977 if test -f "$dir/$f"; then
13986 if test "X$found_dir" = "X"; then
13987 if test -f "$dir/$libname.$acl_libext"; then
13989 found_a="$dir/$libname.$acl_libext"
13992 if test "X$found_dir" != "X"; then
13993 if test -f "$dir/$libname.la"; then
13994 found_la="$dir/$libname.la"
13998 if test "X$found_dir" = "X"; then
13999 for x in $LDFLAGS $LTLIBICONV; do
14001 acl_save_prefix="$prefix"
14002 prefix="$acl_final_prefix"
14003 acl_save_exec_prefix="$exec_prefix"
14004 exec_prefix="$acl_final_exec_prefix"
14006 exec_prefix="$acl_save_exec_prefix"
14007 prefix="$acl_save_prefix"
14011 dir=`echo "X$x" | sed -e 's/^X-L//'`
14012 if test -n "$acl_shlibext"; then
14013 if test -f "$dir/$libname$shrext"; then
14015 found_so="$dir/$libname$shrext"
14017 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14018 ver=`(cd "$dir" && \
14019 for f in "$libname$shrext".*; do echo "$f"; done \
14020 | sed -e "s,^$libname$shrext\\\\.,," \
14021 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14022 | sed 1q ) 2>/dev/null`
14023 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14025 found_so="$dir/$libname$shrext.$ver"
14028 eval library_names=\"$acl_library_names_spec\"
14029 for f in $library_names; do
14030 if test -f "$dir/$f"; then
14039 if test "X$found_dir" = "X"; then
14040 if test -f "$dir/$libname.$acl_libext"; then
14042 found_a="$dir/$libname.$acl_libext"
14045 if test "X$found_dir" != "X"; then
14046 if test -f "$dir/$libname.la"; then
14047 found_la="$dir/$libname.la"
14052 if test "X$found_dir" != "X"; then
14057 if test "X$found_dir" != "X"; then
14058 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14059 if test "X$found_so" != "X"; then
14060 if test "$enable_rpath" = no \
14061 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14062 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14063 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14066 for x in $ltrpathdirs; do
14067 if test "X$x" = "X$found_dir"; then
14072 if test -z "$haveit"; then
14073 ltrpathdirs="$ltrpathdirs $found_dir"
14075 if test "$acl_hardcode_direct" = yes; then
14076 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14078 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14079 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14081 for x in $rpathdirs; do
14082 if test "X$x" = "X$found_dir"; then
14087 if test -z "$haveit"; then
14088 rpathdirs="$rpathdirs $found_dir"
14092 for x in $LDFLAGS $LIBICONV; do
14094 acl_save_prefix="$prefix"
14095 prefix="$acl_final_prefix"
14096 acl_save_exec_prefix="$exec_prefix"
14097 exec_prefix="$acl_final_exec_prefix"
14099 exec_prefix="$acl_save_exec_prefix"
14100 prefix="$acl_save_prefix"
14102 if test "X$x" = "X-L$found_dir"; then
14107 if test -z "$haveit"; then
14108 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14110 if test "$acl_hardcode_minus_L" != no; then
14111 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14113 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14119 if test "X$found_a" != "X"; then
14120 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14122 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14125 additional_includedir=
14126 case "$found_dir" in
14127 */$acl_libdirstem | */$acl_libdirstem/)
14128 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14129 if test "$name" = 'iconv'; then
14130 LIBICONV_PREFIX="$basedir"
14132 additional_includedir="$basedir/include"
14134 */$acl_libdirstem2 | */$acl_libdirstem2/)
14135 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14136 if test "$name" = 'iconv'; then
14137 LIBICONV_PREFIX="$basedir"
14139 additional_includedir="$basedir/include"
14142 if test "X$additional_includedir" != "X"; then
14143 if test "X$additional_includedir" != "X/usr/include"; then
14145 if test "X$additional_includedir" = "X/usr/local/include"; then
14146 if test -n "$GCC"; then
14148 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14152 if test -z "$haveit"; then
14153 for x in $CPPFLAGS $INCICONV; do
14155 acl_save_prefix="$prefix"
14156 prefix="$acl_final_prefix"
14157 acl_save_exec_prefix="$exec_prefix"
14158 exec_prefix="$acl_final_exec_prefix"
14160 exec_prefix="$acl_save_exec_prefix"
14161 prefix="$acl_save_prefix"
14163 if test "X$x" = "X-I$additional_includedir"; then
14168 if test -z "$haveit"; then
14169 if test -d "$additional_includedir"; then
14170 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14176 if test -n "$found_la"; then
14177 save_libdir="$libdir"
14178 case "$found_la" in
14179 */* | *\\*) . "$found_la" ;;
14180 *) . "./$found_la" ;;
14182 libdir="$save_libdir"
14183 for dep in $dependency_libs; do
14186 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14187 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14188 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14190 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14191 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14192 if test -n "$GCC"; then
14194 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14198 if test -z "$haveit"; then
14200 for x in $LDFLAGS $LIBICONV; do
14202 acl_save_prefix="$prefix"
14203 prefix="$acl_final_prefix"
14204 acl_save_exec_prefix="$exec_prefix"
14205 exec_prefix="$acl_final_exec_prefix"
14207 exec_prefix="$acl_save_exec_prefix"
14208 prefix="$acl_save_prefix"
14210 if test "X$x" = "X-L$additional_libdir"; then
14215 if test -z "$haveit"; then
14216 if test -d "$additional_libdir"; then
14217 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14221 for x in $LDFLAGS $LTLIBICONV; do
14223 acl_save_prefix="$prefix"
14224 prefix="$acl_final_prefix"
14225 acl_save_exec_prefix="$exec_prefix"
14226 exec_prefix="$acl_final_exec_prefix"
14228 exec_prefix="$acl_save_exec_prefix"
14229 prefix="$acl_save_prefix"
14231 if test "X$x" = "X-L$additional_libdir"; then
14236 if test -z "$haveit"; then
14237 if test -d "$additional_libdir"; then
14238 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14245 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14246 if test "$enable_rpath" != no; then
14248 for x in $rpathdirs; do
14249 if test "X$x" = "X$dir"; then
14254 if test -z "$haveit"; then
14255 rpathdirs="$rpathdirs $dir"
14258 for x in $ltrpathdirs; do
14259 if test "X$x" = "X$dir"; then
14264 if test -z "$haveit"; then
14265 ltrpathdirs="$ltrpathdirs $dir"
14270 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14273 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14276 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14277 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14283 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14284 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14290 if test "X$rpathdirs" != "X"; then
14291 if test -n "$acl_hardcode_libdir_separator"; then
14293 for found_dir in $rpathdirs; do
14294 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14296 acl_save_libdir="$libdir"
14298 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14299 libdir="$acl_save_libdir"
14300 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14302 for found_dir in $rpathdirs; do
14303 acl_save_libdir="$libdir"
14304 libdir="$found_dir"
14305 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14306 libdir="$acl_save_libdir"
14307 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14311 if test "X$ltrpathdirs" != "X"; then
14312 for found_dir in $ltrpathdirs; do
14313 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14348 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14349 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
14350 $as_echo_n "(cached) " >&6
14352 gt_save_LIBS="$LIBS"
14353 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355 /* end confdefs.h. */
14356 #include <CoreFoundation/CFPreferences.h>
14360 CFPreferencesCopyAppValue(NULL, NULL)
14365 if ac_fn_c_try_link "$LINENO"; then :
14366 gt_cv_func_CFPreferencesCopyAppValue=yes
14368 gt_cv_func_CFPreferencesCopyAppValue=no
14370 rm -f core conftest.err conftest.$ac_objext \
14371 conftest$ac_exeext conftest.$ac_ext
14372 LIBS="$gt_save_LIBS"
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14375 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14376 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14378 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14382 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14383 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
14384 $as_echo_n "(cached) " >&6
14386 gt_save_LIBS="$LIBS"
14387 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h. */
14390 #include <CoreFoundation/CFLocale.h>
14394 CFLocaleCopyCurrent();
14399 if ac_fn_c_try_link "$LINENO"; then :
14400 gt_cv_func_CFLocaleCopyCurrent=yes
14402 gt_cv_func_CFLocaleCopyCurrent=no
14404 rm -f core conftest.err conftest.$ac_objext \
14405 conftest$ac_exeext conftest.$ac_ext
14406 LIBS="$gt_save_LIBS"
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14409 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14410 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14412 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14416 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14417 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14429 case " $gt_needs " in
14430 *" need-formatstring-macros "*) gt_api_version=3 ;;
14431 *" need-ngettext "*) gt_api_version=2 ;;
14432 *) gt_api_version=1 ;;
14434 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14435 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14437 if test "$USE_NLS" = "yes"; then
14438 gt_use_preinstalled_gnugettext=no
14441 if test $gt_api_version -ge 3; then
14442 gt_revision_test_code='
14443 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14444 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14446 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14449 gt_revision_test_code=
14451 if test $gt_api_version -ge 2; then
14452 gt_expression_test_code=' + * ngettext ("", "", 0)'
14454 gt_expression_test_code=
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14458 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14459 if eval \${$gt_func_gnugettext_libc+:} false; then :
14460 $as_echo_n "(cached) " >&6
14462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14463 /* end confdefs.h. */
14465 #include <libintl.h>
14466 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14467 extern int _nl_msg_cat_cntr;
14468 extern int *_nl_domain_bindings;
14469 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
14471 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14473 $gt_revision_test_code
14479 bindtextdomain ("", "");
14480 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14486 if ac_fn_c_try_link "$LINENO"; then :
14487 eval "$gt_func_gnugettext_libc=yes"
14489 eval "$gt_func_gnugettext_libc=no"
14491 rm -f core conftest.err conftest.$ac_objext \
14492 conftest$ac_exeext conftest.$ac_ext
14494 eval ac_res=\$$gt_func_gnugettext_libc
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14496 $as_echo "$ac_res" >&6; }
14498 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14504 am_save_CPPFLAGS="$CPPFLAGS"
14506 for element in $INCICONV; do
14508 for x in $CPPFLAGS; do
14510 acl_save_prefix="$prefix"
14511 prefix="$acl_final_prefix"
14512 acl_save_exec_prefix="$exec_prefix"
14513 exec_prefix="$acl_final_exec_prefix"
14515 exec_prefix="$acl_save_exec_prefix"
14516 prefix="$acl_save_prefix"
14518 if test "X$x" = "X$element"; then
14523 if test -z "$haveit"; then
14524 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14530 $as_echo_n "checking for iconv... " >&6; }
14531 if ${am_cv_func_iconv+:} false; then :
14532 $as_echo_n "(cached) " >&6
14535 am_cv_func_iconv="no, consider installing GNU libiconv"
14537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538 /* end confdefs.h. */
14540 #include <stdlib.h>
14546 iconv_t cd = iconv_open("","");
14547 iconv(cd,NULL,NULL,NULL,NULL);
14553 if ac_fn_c_try_link "$LINENO"; then :
14554 am_cv_func_iconv=yes
14556 rm -f core conftest.err conftest.$ac_objext \
14557 conftest$ac_exeext conftest.$ac_ext
14558 if test "$am_cv_func_iconv" != yes; then
14559 am_save_LIBS="$LIBS"
14560 LIBS="$LIBS $LIBICONV"
14561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14562 /* end confdefs.h. */
14564 #include <stdlib.h>
14570 iconv_t cd = iconv_open("","");
14571 iconv(cd,NULL,NULL,NULL,NULL);
14577 if ac_fn_c_try_link "$LINENO"; then :
14578 am_cv_lib_iconv=yes
14579 am_cv_func_iconv=yes
14581 rm -f core conftest.err conftest.$ac_objext \
14582 conftest$ac_exeext conftest.$ac_ext
14583 LIBS="$am_save_LIBS"
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14588 $as_echo "$am_cv_func_iconv" >&6; }
14589 if test "$am_cv_func_iconv" = yes; then
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14591 $as_echo_n "checking for working iconv... " >&6; }
14592 if ${am_cv_func_iconv_works+:} false; then :
14593 $as_echo_n "(cached) " >&6
14596 am_save_LIBS="$LIBS"
14597 if test $am_cv_lib_iconv = yes; then
14598 LIBS="$LIBS $LIBICONV"
14600 am_cv_func_iconv_works=no
14601 for ac_iconv_const in '' 'const'; do
14602 if test "$cross_compiling" = yes; then :
14604 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14605 *) am_cv_func_iconv_works="guessing yes" ;;
14608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14609 /* end confdefs.h. */
14612 #include <string.h>
14614 #ifndef ICONV_CONST
14615 # define ICONV_CONST $ac_iconv_const
14622 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
14625 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14626 if (cd_utf8_to_88591 != (iconv_t)(-1))
14628 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
14630 ICONV_CONST char *inptr = input;
14631 size_t inbytesleft = strlen (input);
14632 char *outptr = buf;
14633 size_t outbytesleft = sizeof (buf);
14634 size_t res = iconv (cd_utf8_to_88591,
14635 &inptr, &inbytesleft,
14636 &outptr, &outbytesleft);
14639 iconv_close (cd_utf8_to_88591);
14642 /* Test against Solaris 10 bug: Failures are not distinguishable from
14643 successful returns. */
14645 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14646 if (cd_ascii_to_88591 != (iconv_t)(-1))
14648 static ICONV_CONST char input[] = "\263";
14650 ICONV_CONST char *inptr = input;
14651 size_t inbytesleft = strlen (input);
14652 char *outptr = buf;
14653 size_t outbytesleft = sizeof (buf);
14654 size_t res = iconv (cd_ascii_to_88591,
14655 &inptr, &inbytesleft,
14656 &outptr, &outbytesleft);
14659 iconv_close (cd_ascii_to_88591);
14662 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
14664 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14665 if (cd_88591_to_utf8 != (iconv_t)(-1))
14667 static ICONV_CONST char input[] = "\304";
14668 static char buf[2] = { (char)0xDE, (char)0xAD };
14669 ICONV_CONST char *inptr = input;
14670 size_t inbytesleft = 1;
14671 char *outptr = buf;
14672 size_t outbytesleft = 1;
14673 size_t res = iconv (cd_88591_to_utf8,
14674 &inptr, &inbytesleft,
14675 &outptr, &outbytesleft);
14676 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14678 iconv_close (cd_88591_to_utf8);
14681 #if 0 /* This bug could be worked around by the caller. */
14682 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14684 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14685 if (cd_88591_to_utf8 != (iconv_t)(-1))
14687 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14689 ICONV_CONST char *inptr = input;
14690 size_t inbytesleft = strlen (input);
14691 char *outptr = buf;
14692 size_t outbytesleft = sizeof (buf);
14693 size_t res = iconv (cd_88591_to_utf8,
14694 &inptr, &inbytesleft,
14695 &outptr, &outbytesleft);
14698 iconv_close (cd_88591_to_utf8);
14702 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14704 if (/* Try standardized names. */
14705 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
14706 /* Try IRIX, OSF/1 names. */
14707 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
14708 /* Try AIX names. */
14709 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
14710 /* Try HP-UX names. */
14711 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
14719 if ac_fn_c_try_run "$LINENO"; then :
14720 am_cv_func_iconv_works=yes
14722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14723 conftest.$ac_objext conftest.beam conftest.$ac_ext
14726 test "$am_cv_func_iconv_works" = no || break
14728 LIBS="$am_save_LIBS"
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14732 $as_echo "$am_cv_func_iconv_works" >&6; }
14733 case "$am_cv_func_iconv_works" in
14734 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14735 *) am_func_iconv=yes ;;
14738 am_func_iconv=no am_cv_lib_iconv=no
14740 if test "$am_func_iconv" = yes; then
14742 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14745 if test "$am_cv_lib_iconv" = yes; then
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14747 $as_echo_n "checking how to link with libiconv... " >&6; }
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14749 $as_echo "$LIBICONV" >&6; }
14751 CPPFLAGS="$am_save_CPPFLAGS"
14768 acl_save_prefix="$prefix"
14769 prefix="$acl_final_prefix"
14770 acl_save_exec_prefix="$exec_prefix"
14771 exec_prefix="$acl_final_exec_prefix"
14773 eval additional_includedir=\"$includedir\"
14774 eval additional_libdir=\"$libdir\"
14776 exec_prefix="$acl_save_exec_prefix"
14777 prefix="$acl_save_prefix"
14780 # Check whether --with-libintl-prefix was given.
14781 if test "${with_libintl_prefix+set}" = set; then :
14782 withval=$with_libintl_prefix;
14783 if test "X$withval" = "Xno"; then
14786 if test "X$withval" = "X"; then
14788 acl_save_prefix="$prefix"
14789 prefix="$acl_final_prefix"
14790 acl_save_exec_prefix="$exec_prefix"
14791 exec_prefix="$acl_final_exec_prefix"
14793 eval additional_includedir=\"$includedir\"
14794 eval additional_libdir=\"$libdir\"
14796 exec_prefix="$acl_save_exec_prefix"
14797 prefix="$acl_save_prefix"
14800 additional_includedir="$withval/include"
14801 additional_libdir="$withval/$acl_libdirstem"
14802 if test "$acl_libdirstem2" != "$acl_libdirstem" \
14803 && ! test -d "$withval/$acl_libdirstem"; then
14804 additional_libdir="$withval/$acl_libdirstem2"
14818 names_already_handled=
14819 names_next_round='intl '
14820 while test -n "$names_next_round"; do
14821 names_this_round="$names_next_round"
14823 for name in $names_this_round; do
14825 for n in $names_already_handled; do
14826 if test "$n" = "$name"; then
14827 already_handled=yes
14831 if test -z "$already_handled"; then
14832 names_already_handled="$names_already_handled $name"
14833 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
14834 eval value=\"\$HAVE_LIB$uppername\"
14835 if test -n "$value"; then
14836 if test "$value" = yes; then
14837 eval value=\"\$LIB$uppername\"
14838 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14839 eval value=\"\$LTLIB$uppername\"
14840 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14849 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14850 if test -n "$acl_shlibext"; then
14851 shrext=".$acl_shlibext" # typically: shrext=.so
14855 if test $use_additional = yes; then
14856 dir="$additional_libdir"
14857 if test -n "$acl_shlibext"; then
14858 if test -f "$dir/$libname$shrext"; then
14860 found_so="$dir/$libname$shrext"
14862 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14863 ver=`(cd "$dir" && \
14864 for f in "$libname$shrext".*; do echo "$f"; done \
14865 | sed -e "s,^$libname$shrext\\\\.,," \
14866 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14867 | sed 1q ) 2>/dev/null`
14868 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14870 found_so="$dir/$libname$shrext.$ver"
14873 eval library_names=\"$acl_library_names_spec\"
14874 for f in $library_names; do
14875 if test -f "$dir/$f"; then
14884 if test "X$found_dir" = "X"; then
14885 if test -f "$dir/$libname.$acl_libext"; then
14887 found_a="$dir/$libname.$acl_libext"
14890 if test "X$found_dir" != "X"; then
14891 if test -f "$dir/$libname.la"; then
14892 found_la="$dir/$libname.la"
14896 if test "X$found_dir" = "X"; then
14897 for x in $LDFLAGS $LTLIBINTL; do
14899 acl_save_prefix="$prefix"
14900 prefix="$acl_final_prefix"
14901 acl_save_exec_prefix="$exec_prefix"
14902 exec_prefix="$acl_final_exec_prefix"
14904 exec_prefix="$acl_save_exec_prefix"
14905 prefix="$acl_save_prefix"
14909 dir=`echo "X$x" | sed -e 's/^X-L//'`
14910 if test -n "$acl_shlibext"; then
14911 if test -f "$dir/$libname$shrext"; then
14913 found_so="$dir/$libname$shrext"
14915 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14916 ver=`(cd "$dir" && \
14917 for f in "$libname$shrext".*; do echo "$f"; done \
14918 | sed -e "s,^$libname$shrext\\\\.,," \
14919 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14920 | sed 1q ) 2>/dev/null`
14921 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14923 found_so="$dir/$libname$shrext.$ver"
14926 eval library_names=\"$acl_library_names_spec\"
14927 for f in $library_names; do
14928 if test -f "$dir/$f"; then
14937 if test "X$found_dir" = "X"; then
14938 if test -f "$dir/$libname.$acl_libext"; then
14940 found_a="$dir/$libname.$acl_libext"
14943 if test "X$found_dir" != "X"; then
14944 if test -f "$dir/$libname.la"; then
14945 found_la="$dir/$libname.la"
14950 if test "X$found_dir" != "X"; then
14955 if test "X$found_dir" != "X"; then
14956 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14957 if test "X$found_so" != "X"; then
14958 if test "$enable_rpath" = no \
14959 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14960 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14961 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14964 for x in $ltrpathdirs; do
14965 if test "X$x" = "X$found_dir"; then
14970 if test -z "$haveit"; then
14971 ltrpathdirs="$ltrpathdirs $found_dir"
14973 if test "$acl_hardcode_direct" = yes; then
14974 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14976 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14977 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14979 for x in $rpathdirs; do
14980 if test "X$x" = "X$found_dir"; then
14985 if test -z "$haveit"; then
14986 rpathdirs="$rpathdirs $found_dir"
14990 for x in $LDFLAGS $LIBINTL; do
14992 acl_save_prefix="$prefix"
14993 prefix="$acl_final_prefix"
14994 acl_save_exec_prefix="$exec_prefix"
14995 exec_prefix="$acl_final_exec_prefix"
14997 exec_prefix="$acl_save_exec_prefix"
14998 prefix="$acl_save_prefix"
15000 if test "X$x" = "X-L$found_dir"; then
15005 if test -z "$haveit"; then
15006 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15008 if test "$acl_hardcode_minus_L" != no; then
15009 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15011 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15017 if test "X$found_a" != "X"; then
15018 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15020 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15023 additional_includedir=
15024 case "$found_dir" in
15025 */$acl_libdirstem | */$acl_libdirstem/)
15026 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15027 if test "$name" = 'intl'; then
15028 LIBINTL_PREFIX="$basedir"
15030 additional_includedir="$basedir/include"
15032 */$acl_libdirstem2 | */$acl_libdirstem2/)
15033 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15034 if test "$name" = 'intl'; then
15035 LIBINTL_PREFIX="$basedir"
15037 additional_includedir="$basedir/include"
15040 if test "X$additional_includedir" != "X"; then
15041 if test "X$additional_includedir" != "X/usr/include"; then
15043 if test "X$additional_includedir" = "X/usr/local/include"; then
15044 if test -n "$GCC"; then
15046 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15050 if test -z "$haveit"; then
15051 for x in $CPPFLAGS $INCINTL; do
15053 acl_save_prefix="$prefix"
15054 prefix="$acl_final_prefix"
15055 acl_save_exec_prefix="$exec_prefix"
15056 exec_prefix="$acl_final_exec_prefix"
15058 exec_prefix="$acl_save_exec_prefix"
15059 prefix="$acl_save_prefix"
15061 if test "X$x" = "X-I$additional_includedir"; then
15066 if test -z "$haveit"; then
15067 if test -d "$additional_includedir"; then
15068 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15074 if test -n "$found_la"; then
15075 save_libdir="$libdir"
15076 case "$found_la" in
15077 */* | *\\*) . "$found_la" ;;
15078 *) . "./$found_la" ;;
15080 libdir="$save_libdir"
15081 for dep in $dependency_libs; do
15084 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15085 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15086 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15088 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15089 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15090 if test -n "$GCC"; then
15092 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15096 if test -z "$haveit"; then
15098 for x in $LDFLAGS $LIBINTL; do
15100 acl_save_prefix="$prefix"
15101 prefix="$acl_final_prefix"
15102 acl_save_exec_prefix="$exec_prefix"
15103 exec_prefix="$acl_final_exec_prefix"
15105 exec_prefix="$acl_save_exec_prefix"
15106 prefix="$acl_save_prefix"
15108 if test "X$x" = "X-L$additional_libdir"; then
15113 if test -z "$haveit"; then
15114 if test -d "$additional_libdir"; then
15115 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15119 for x in $LDFLAGS $LTLIBINTL; do
15121 acl_save_prefix="$prefix"
15122 prefix="$acl_final_prefix"
15123 acl_save_exec_prefix="$exec_prefix"
15124 exec_prefix="$acl_final_exec_prefix"
15126 exec_prefix="$acl_save_exec_prefix"
15127 prefix="$acl_save_prefix"
15129 if test "X$x" = "X-L$additional_libdir"; then
15134 if test -z "$haveit"; then
15135 if test -d "$additional_libdir"; then
15136 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15143 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15144 if test "$enable_rpath" != no; then
15146 for x in $rpathdirs; do
15147 if test "X$x" = "X$dir"; then
15152 if test -z "$haveit"; then
15153 rpathdirs="$rpathdirs $dir"
15156 for x in $ltrpathdirs; do
15157 if test "X$x" = "X$dir"; then
15162 if test -z "$haveit"; then
15163 ltrpathdirs="$ltrpathdirs $dir"
15168 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15171 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15174 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15175 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15181 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15182 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15188 if test "X$rpathdirs" != "X"; then
15189 if test -n "$acl_hardcode_libdir_separator"; then
15191 for found_dir in $rpathdirs; do
15192 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15194 acl_save_libdir="$libdir"
15196 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15197 libdir="$acl_save_libdir"
15198 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15200 for found_dir in $rpathdirs; do
15201 acl_save_libdir="$libdir"
15202 libdir="$found_dir"
15203 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15204 libdir="$acl_save_libdir"
15205 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15209 if test "X$ltrpathdirs" != "X"; then
15210 for found_dir in $ltrpathdirs; do
15211 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15221 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
15222 if eval \${$gt_func_gnugettext_libintl+:} false; then :
15223 $as_echo_n "(cached) " >&6
15225 gt_save_CPPFLAGS="$CPPFLAGS"
15226 CPPFLAGS="$CPPFLAGS $INCINTL"
15227 gt_save_LIBS="$LIBS"
15228 LIBS="$LIBS $LIBINTL"
15229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15230 /* end confdefs.h. */
15232 #include <libintl.h>
15233 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15234 extern int _nl_msg_cat_cntr;
15239 const char *_nl_expand_alias (const char *);
15240 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
15242 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
15244 $gt_revision_test_code
15250 bindtextdomain ("", "");
15251 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
15257 if ac_fn_c_try_link "$LINENO"; then :
15258 eval "$gt_func_gnugettext_libintl=yes"
15260 eval "$gt_func_gnugettext_libintl=no"
15262 rm -f core conftest.err conftest.$ac_objext \
15263 conftest$ac_exeext conftest.$ac_ext
15264 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15265 LIBS="$LIBS $LIBICONV"
15266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15267 /* end confdefs.h. */
15269 #include <libintl.h>
15270 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15271 extern int _nl_msg_cat_cntr;
15276 const char *_nl_expand_alias (const char *);
15277 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
15279 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
15281 $gt_revision_test_code
15287 bindtextdomain ("", "");
15288 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
15294 if ac_fn_c_try_link "$LINENO"; then :
15295 LIBINTL="$LIBINTL $LIBICONV"
15296 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15297 eval "$gt_func_gnugettext_libintl=yes"
15300 rm -f core conftest.err conftest.$ac_objext \
15301 conftest$ac_exeext conftest.$ac_ext
15303 CPPFLAGS="$gt_save_CPPFLAGS"
15304 LIBS="$gt_save_LIBS"
15306 eval ac_res=\$$gt_func_gnugettext_libintl
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15308 $as_echo "$ac_res" >&6; }
15311 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15312 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15313 && test "$PACKAGE" != gettext-runtime \
15314 && test "$PACKAGE" != gettext-tools; }; then
15315 gt_use_preinstalled_gnugettext=yes
15324 if test -n "$INTL_MACOSX_LIBS"; then
15325 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15326 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15327 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15328 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15332 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15333 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15335 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15343 $as_echo_n "checking whether to use NLS... " >&6; }
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15345 $as_echo "$USE_NLS" >&6; }
15346 if test "$USE_NLS" = "yes"; then
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15348 $as_echo_n "checking where the gettext function comes from... " >&6; }
15349 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15350 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15351 gt_source="external libintl"
15356 gt_source="included intl directory"
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15359 $as_echo "$gt_source" >&6; }
15362 if test "$USE_NLS" = "yes"; then
15364 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15365 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15367 $as_echo_n "checking how to link with libintl... " >&6; }
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15369 $as_echo "$LIBINTL" >&6; }
15371 for element in $INCINTL; do
15373 for x in $CPPFLAGS; do
15375 acl_save_prefix="$prefix"
15376 prefix="$acl_final_prefix"
15377 acl_save_exec_prefix="$exec_prefix"
15378 exec_prefix="$acl_final_exec_prefix"
15380 exec_prefix="$acl_save_exec_prefix"
15381 prefix="$acl_save_prefix"
15383 if test "X$x" = "X$element"; then
15388 if test -z "$haveit"; then
15389 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15396 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15399 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15408 INTLLIBS="$LIBINTL"
15417 if test "$os_win32" = "yes"; then
15418 # Extract the first word of "lib.exe", so it can be a program name with args.
15419 set dummy lib.exe; ac_word=$2
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15421 $as_echo_n "checking for $ac_word... " >&6; }
15422 if ${ac_cv_prog_ms_librarian+:} false; then :
15423 $as_echo_n "(cached) " >&6
15425 if test -n "$ms_librarian"; then
15426 ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
15428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15429 for as_dir in $PATH
15432 test -z "$as_dir" && as_dir=.
15433 for ac_exec_ext in '' $ac_executable_extensions; do
15434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15435 ac_cv_prog_ms_librarian="yes"
15436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15443 test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
15446 ms_librarian=$ac_cv_prog_ms_librarian
15447 if test -n "$ms_librarian"; then
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5
15449 $as_echo "$ms_librarian" >&6; }
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15452 $as_echo "no" >&6; }
15457 if test x$ms_librarian = xyes; then
15458 MS_LIB_AVAILABLE_TRUE=
15459 MS_LIB_AVAILABLE_FALSE='#'
15461 MS_LIB_AVAILABLE_TRUE='#'
15462 MS_LIB_AVAILABLE_FALSE=
15466 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
15467 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
15474 WARNING_CPP_DIRECTIVE="no"
15475 if test "x$GCC" = "xyes"; then
15476 WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
15477 -Wmissing-prototypes -Wmissing-declarations \
15478 -Wnested-externs -fno-strict-aliasing"
15479 WARNING_CPP_DIRECTIVE="yes"
15480 elif test "x$SUNCC" = "xyes"; then
15481 WARN_CFLAGS="-v -fd"
15482 WARNING_CPP_DIRECTIVE="yes"
15484 if test "x$WARNING_CPP_DIRECTIVE" = "xyes"; then
15486 cat >>confdefs.h <<_ACEOF
15487 #define HAVE_WARNING_CPP_DIRECTIVE 1
15495 # Put a plausible default for CC_FOR_BUILD in Makefile.
15496 if test -z "$CC_FOR_BUILD"; then
15497 if test "x$cross_compiling" = "xno"; then
15498 CC_FOR_BUILD='$(CC)'
15504 # Also set EXEEXT_FOR_BUILD.
15505 if test "x$cross_compiling" = "xno"; then
15506 EXEEXT_FOR_BUILD='$(EXEEXT)'
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
15509 $as_echo_n "checking for build system executable suffix... " >&6; }
15510 if ${bfd_cv_build_exeext+:} false; then :
15511 $as_echo_n "(cached) " >&6
15514 echo 'int main () { return 0; }' > conftest.c
15515 bfd_cv_build_exeext=
15516 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
15517 for file in conftest.*; do
15519 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
15520 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
15524 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
15527 $as_echo "$bfd_cv_build_exeext" >&6; }
15528 EXEEXT_FOR_BUILD=""
15529 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
15533 if test $cross_compiling = yes; then
15534 CROSS_COMPILING_TRUE=
15535 CROSS_COMPILING_FALSE='#'
15537 CROSS_COMPILING_TRUE='#'
15538 CROSS_COMPILING_FALSE=
15541 if test "$enable_shared" = "yes"; then
15542 ENABLE_SHARED_TRUE=
15543 ENABLE_SHARED_FALSE='#'
15545 ENABLE_SHARED_TRUE='#'
15546 ENABLE_SHARED_FALSE=
15552 # Check whether --with-arch was given.
15553 if test "${with_arch+set}" = set; then :
15554 withval=$with_arch; arch="$withval"
15560 if test "x$arch" != xauto; then
15562 cat >>confdefs.h <<_ACEOF
15563 #define FC_ARCHITECTURE "$arch"
15570 # Checks for header files.
15571 ac_header_dirent=no
15572 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15573 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15575 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15576 if eval \${$as_ac_Header+:} false; then :
15577 $as_echo_n "(cached) " >&6
15579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15580 /* end confdefs.h. */
15581 #include <sys/types.h>
15593 if ac_fn_c_try_compile "$LINENO"; then :
15594 eval "$as_ac_Header=yes"
15596 eval "$as_ac_Header=no"
15598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15600 eval ac_res=\$$as_ac_Header
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15602 $as_echo "$ac_res" >&6; }
15603 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15604 cat >>confdefs.h <<_ACEOF
15605 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15608 ac_header_dirent=$ac_hdr; break
15612 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15613 if test $ac_header_dirent = dirent.h; then
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15615 $as_echo_n "checking for library containing opendir... " >&6; }
15616 if ${ac_cv_search_opendir+:} false; then :
15617 $as_echo_n "(cached) " >&6
15619 ac_func_search_save_LIBS=$LIBS
15620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15621 /* end confdefs.h. */
15623 /* Override any GCC internal prototype to avoid an error.
15624 Use char because int might match the return type of a GCC
15625 builtin and then its argument prototype would still apply. */
15638 for ac_lib in '' dir; do
15639 if test -z "$ac_lib"; then
15640 ac_res="none required"
15643 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15645 if ac_fn_c_try_link "$LINENO"; then :
15646 ac_cv_search_opendir=$ac_res
15648 rm -f core conftest.err conftest.$ac_objext \
15650 if ${ac_cv_search_opendir+:} false; then :
15654 if ${ac_cv_search_opendir+:} false; then :
15657 ac_cv_search_opendir=no
15659 rm conftest.$ac_ext
15660 LIBS=$ac_func_search_save_LIBS
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15663 $as_echo "$ac_cv_search_opendir" >&6; }
15664 ac_res=$ac_cv_search_opendir
15665 if test "$ac_res" != no; then :
15666 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15672 $as_echo_n "checking for library containing opendir... " >&6; }
15673 if ${ac_cv_search_opendir+:} false; then :
15674 $as_echo_n "(cached) " >&6
15676 ac_func_search_save_LIBS=$LIBS
15677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15678 /* end confdefs.h. */
15680 /* Override any GCC internal prototype to avoid an error.
15681 Use char because int might match the return type of a GCC
15682 builtin and then its argument prototype would still apply. */
15695 for ac_lib in '' x; do
15696 if test -z "$ac_lib"; then
15697 ac_res="none required"
15700 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15702 if ac_fn_c_try_link "$LINENO"; then :
15703 ac_cv_search_opendir=$ac_res
15705 rm -f core conftest.err conftest.$ac_objext \
15707 if ${ac_cv_search_opendir+:} false; then :
15711 if ${ac_cv_search_opendir+:} false; then :
15714 ac_cv_search_opendir=no
15716 rm conftest.$ac_ext
15717 LIBS=$ac_func_search_save_LIBS
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15720 $as_echo "$ac_cv_search_opendir" >&6; }
15721 ac_res=$ac_cv_search_opendir
15722 if test "$ac_res" != no; then :
15723 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15730 $as_echo_n "checking for ANSI C header files... " >&6; }
15731 if ${ac_cv_header_stdc+:} false; then :
15732 $as_echo_n "(cached) " >&6
15734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15735 /* end confdefs.h. */
15736 #include <stdlib.h>
15737 #include <stdarg.h>
15738 #include <string.h>
15749 if ac_fn_c_try_compile "$LINENO"; then :
15750 ac_cv_header_stdc=yes
15752 ac_cv_header_stdc=no
15754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15756 if test $ac_cv_header_stdc = yes; then
15757 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15759 /* end confdefs.h. */
15760 #include <string.h>
15763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15764 $EGREP "memchr" >/dev/null 2>&1; then :
15767 ac_cv_header_stdc=no
15773 if test $ac_cv_header_stdc = yes; then
15774 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15776 /* end confdefs.h. */
15777 #include <stdlib.h>
15780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15781 $EGREP "free" >/dev/null 2>&1; then :
15784 ac_cv_header_stdc=no
15790 if test $ac_cv_header_stdc = yes; then
15791 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15792 if test "$cross_compiling" = yes; then :
15795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15796 /* end confdefs.h. */
15798 #include <stdlib.h>
15799 #if ((' ' & 0x0FF) == 0x020)
15800 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15801 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15803 # define ISLOWER(c) \
15804 (('a' <= (c) && (c) <= 'i') \
15805 || ('j' <= (c) && (c) <= 'r') \
15806 || ('s' <= (c) && (c) <= 'z'))
15807 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15810 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15815 for (i = 0; i < 256; i++)
15816 if (XOR (islower (i), ISLOWER (i))
15817 || toupper (i) != TOUPPER (i))
15822 if ac_fn_c_try_run "$LINENO"; then :
15825 ac_cv_header_stdc=no
15827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15828 conftest.$ac_objext conftest.beam conftest.$ac_ext
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15834 $as_echo "$ac_cv_header_stdc" >&6; }
15835 if test $ac_cv_header_stdc = yes; then
15837 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15841 for ac_header in fcntl.h stdlib.h string.h unistd.h sys/statvfs.h sys/vfs.h sys/statfs.h sys/param.h sys/mount.h
15843 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15844 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15845 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15846 cat >>confdefs.h <<_ACEOF
15847 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15854 # ------ AX CREATE STDINT H -------------------------------------
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
15856 $as_echo_n "checking for stdint types... " >&6; }
15857 ac_stdint_h=`echo src/fcstdint.h`
15858 # try to shortcircuit - if the default include path of the compiler
15859 # can find a "stdint.h" header then we assume that all compilers can.
15860 if ${ac_cv_header_stdint_t+:} false; then :
15861 $as_echo_n "(cached) " >&6
15864 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
15865 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
15866 old_CFLAGS="$CFLAGS" ; CFLAGS=""
15867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15868 /* end confdefs.h. */
15869 #include <stdint.h>
15873 int_least32_t v = 0;
15878 if ac_fn_c_try_compile "$LINENO"; then :
15879 ac_cv_stdint_result="(assuming C99 compatible system)"
15880 ac_cv_header_stdint_t="stdint.h";
15882 ac_cv_header_stdint_t=""
15884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15885 if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
15887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15888 /* end confdefs.h. */
15889 #include <stdint.h>
15893 int_least32_t v = 0;
15898 if ac_fn_c_try_compile "$LINENO"; then :
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5
15900 $as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;}
15902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15904 CXXFLAGS="$old_CXXFLAGS"
15905 CPPFLAGS="$old_CPPFLAGS"
15906 CFLAGS="$old_CFLAGS"
15910 v="... $ac_cv_header_stdint_h"
15911 if test "$ac_stdint_h" = "stdint.h" ; then
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
15913 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
15914 elif test "$ac_stdint_h" = "inttypes.h" ; then
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
15916 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
15917 elif test "_$ac_cv_header_stdint_t" = "_" ; then
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
15919 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
15921 ac_cv_header_stdint="$ac_cv_header_stdint_t"
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
15923 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
15926 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
15929 inttype_headers=`echo | sed -e 's/,/ /g'`
15931 ac_cv_stdint_result="(no helpful system typedefs seen)"
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
15934 $as_echo_n "checking for stdint uintptr_t... " >&6; }
15935 if ${ac_cv_header_stdint_x+:} false; then :
15936 $as_echo_n "(cached) " >&6
15939 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
15941 $as_echo "(..)" >&6; }
15942 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers
15944 unset ac_cv_type_uintptr_t
15945 unset ac_cv_type_uint64_t
15946 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
15948 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15949 ac_cv_header_stdint_x=$i
15954 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
15956 if test "x$ac_cv_type_uint64_t" = xyes; then :
15962 ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
15966 $as_echo_n "checking for stdint uintptr_t... " >&6; }
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
15970 $as_echo "$ac_cv_header_stdint_x" >&6; }
15973 if test "_$ac_cv_header_stdint_x" = "_" ; then
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
15976 $as_echo_n "checking for stdint uint32_t... " >&6; }
15977 if ${ac_cv_header_stdint_o+:} false; then :
15978 $as_echo_n "(cached) " >&6
15981 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
15983 $as_echo "(..)" >&6; }
15984 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers
15986 unset ac_cv_type_uint32_t
15987 unset ac_cv_type_uint64_t
15988 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
15990 if test "x$ac_cv_type_uint32_t" = xyes; then :
15991 ac_cv_header_stdint_o=$i
15996 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
15998 if test "x$ac_cv_type_uint64_t" = xyes; then :
16004 ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
16009 $as_echo_n "checking for stdint uint32_t... " >&6; }
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
16013 $as_echo "$ac_cv_header_stdint_o" >&6; }
16017 if test "_$ac_cv_header_stdint_x" = "_" ; then
16018 if test "_$ac_cv_header_stdint_o" = "_" ; then
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
16021 $as_echo_n "checking for stdint u_int32_t... " >&6; }
16022 if ${ac_cv_header_stdint_u+:} false; then :
16023 $as_echo_n "(cached) " >&6
16026 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
16028 $as_echo "(..)" >&6; }
16029 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
16030 unset ac_cv_type_u_int32_t
16031 unset ac_cv_type_u_int64_t
16032 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
16034 if test "x$ac_cv_type_u_int32_t" = xyes; then :
16035 ac_cv_header_stdint_u=$i
16040 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
16042 if test "x$ac_cv_type_u_int64_t" = xyes; then :
16048 ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
16053 $as_echo_n "checking for stdint u_int32_t... " >&6; }
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
16057 $as_echo "$ac_cv_header_stdint_u" >&6; }
16061 if test "_$ac_cv_header_stdint_x" = "_" ; then
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
16063 $as_echo_n "checking for stdint datatype model... " >&6; }
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
16065 $as_echo "(..)" >&6; }
16067 # The cast to long int works around a bug in the HP C Compiler
16068 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16069 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16070 # This bug is HP SR number 8606223364.
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16072 $as_echo_n "checking size of char... " >&6; }
16073 if ${ac_cv_sizeof_char+:} false; then :
16074 $as_echo_n "(cached) " >&6
16076 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16079 if test "$ac_cv_type_char" = yes; then
16080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16082 as_fn_error 77 "cannot compute sizeof (char)
16083 See \`config.log' for more details" "$LINENO" 5; }
16085 ac_cv_sizeof_char=0
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16091 $as_echo "$ac_cv_sizeof_char" >&6; }
16095 cat >>confdefs.h <<_ACEOF
16096 #define SIZEOF_CHAR $ac_cv_sizeof_char
16100 # The cast to long int works around a bug in the HP C Compiler
16101 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16102 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16103 # This bug is HP SR number 8606223364.
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16105 $as_echo_n "checking size of short... " >&6; }
16106 if ${ac_cv_sizeof_short+:} false; then :
16107 $as_echo_n "(cached) " >&6
16109 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16112 if test "$ac_cv_type_short" = yes; then
16113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16115 as_fn_error 77 "cannot compute sizeof (short)
16116 See \`config.log' for more details" "$LINENO" 5; }
16118 ac_cv_sizeof_short=0
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16124 $as_echo "$ac_cv_sizeof_short" >&6; }
16128 cat >>confdefs.h <<_ACEOF
16129 #define SIZEOF_SHORT $ac_cv_sizeof_short
16133 # The cast to long int works around a bug in the HP C Compiler
16134 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16135 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16136 # This bug is HP SR number 8606223364.
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16138 $as_echo_n "checking size of int... " >&6; }
16139 if ${ac_cv_sizeof_int+:} false; then :
16140 $as_echo_n "(cached) " >&6
16142 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16145 if test "$ac_cv_type_int" = yes; then
16146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16148 as_fn_error 77 "cannot compute sizeof (int)
16149 See \`config.log' for more details" "$LINENO" 5; }
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16157 $as_echo "$ac_cv_sizeof_int" >&6; }
16161 cat >>confdefs.h <<_ACEOF
16162 #define SIZEOF_INT $ac_cv_sizeof_int
16166 # The cast to long int works around a bug in the HP C Compiler
16167 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16168 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16169 # This bug is HP SR number 8606223364.
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16171 $as_echo_n "checking size of long... " >&6; }
16172 if ${ac_cv_sizeof_long+:} false; then :
16173 $as_echo_n "(cached) " >&6
16175 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16178 if test "$ac_cv_type_long" = yes; then
16179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16181 as_fn_error 77 "cannot compute sizeof (long)
16182 See \`config.log' for more details" "$LINENO" 5; }
16184 ac_cv_sizeof_long=0
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16190 $as_echo "$ac_cv_sizeof_long" >&6; }
16194 cat >>confdefs.h <<_ACEOF
16195 #define SIZEOF_LONG $ac_cv_sizeof_long
16199 # The cast to long int works around a bug in the HP C Compiler
16200 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16201 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16202 # This bug is HP SR number 8606223364.
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
16204 $as_echo_n "checking size of void*... " >&6; }
16205 if ${ac_cv_sizeof_voidp+:} false; then :
16206 $as_echo_n "(cached) " >&6
16208 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
16211 if test "$ac_cv_type_voidp" = yes; then
16212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16214 as_fn_error 77 "cannot compute sizeof (void*)
16215 See \`config.log' for more details" "$LINENO" 5; }
16217 ac_cv_sizeof_voidp=0
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
16223 $as_echo "$ac_cv_sizeof_voidp" >&6; }
16227 cat >>confdefs.h <<_ACEOF
16228 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
16232 ac_cv_char_data_model=""
16233 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
16234 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
16235 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
16236 ac_cv_long_data_model=""
16237 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
16238 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
16239 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
16241 $as_echo_n "checking data model... " >&6; }
16242 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
16243 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
16244 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
16245 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
16246 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
16247 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
16248 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
16249 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
16250 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
16251 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
16252 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
16253 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
16254 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
16255 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
16256 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
16257 222/*|333/*|444/*|666/*|888/*) :
16258 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
16259 *) ac_cv_data_model="none" ; n="very unusual model" ;;
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
16262 $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
16266 if test "_$ac_cv_header_stdint_x" != "_" ; then
16267 ac_cv_header_stdint="$ac_cv_header_stdint_x"
16268 elif test "_$ac_cv_header_stdint_o" != "_" ; then
16269 ac_cv_header_stdint="$ac_cv_header_stdint_o"
16270 elif test "_$ac_cv_header_stdint_u" != "_" ; then
16271 ac_cv_header_stdint="$ac_cv_header_stdint_u"
16273 ac_cv_header_stdint="stddef.h"
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
16277 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
16279 $as_echo "($ac_cv_header_stdint)" >&6; }
16280 unset ac_cv_type_int_least32_t
16281 unset ac_cv_type_int_fast32_t
16282 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
16284 if test "x$ac_cv_type_int_least32_t" = xyes; then :
16288 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
16290 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
16294 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
16296 if test "x$ac_cv_type_intmax_t" = xyes; then :
16301 fi # shortcircut to system "stdint.h"
16302 # ------------------ PREPARE VARIABLES ------------------------------
16303 if test "$GCC" = "yes" ; then
16304 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
16306 ac_cv_stdint_message="using $CC"
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
16310 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
16312 # ----------------- DONE inttypes.h checks START header -------------
16313 ac_config_commands="$ac_config_commands $ac_stdint_h"
16317 # Checks for typedefs, structures, and compiler characteristics.
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16319 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16320 if ${ac_cv_c_const+:} false; then :
16321 $as_echo_n "(cached) " >&6
16323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16324 /* end confdefs.h. */
16330 #ifndef __cplusplus
16331 /* Ultrix mips cc rejects this sort of thing. */
16332 typedef int charset[2];
16333 const charset cs = { 0, 0 };
16334 /* SunOS 4.1.1 cc rejects this. */
16335 char const *const *pcpcc;
16337 /* NEC SVR4.0.2 mips cc rejects this. */
16338 struct point {int x, y;};
16339 static struct point const zero = {0,0};
16340 /* AIX XL C 1.02.0.0 rejects this.
16341 It does not let you subtract one const X* pointer from another in
16342 an arm of an if-expression whose if-part is not a constant
16344 const char *g = "string";
16345 pcpcc = &g + (g ? g-g : 0);
16346 /* HPUX 7.0 cc rejects these. */
16348 ppc = (char**) pcpcc;
16349 pcpcc = (char const *const *) ppc;
16350 { /* SCO 3.2v4 cc rejects this sort of thing. */
16353 char const *s = 0 ? (char *) 0 : (char const *) 0;
16358 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16359 int x[] = {25, 17};
16360 const int *foo = &x[0];
16363 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16364 typedef const int *iptr;
16368 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16369 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16370 struct s { int j; const int *ap[3]; } bx;
16371 struct s *b = &bx; b->j = 5;
16373 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16374 const int foo = 10;
16375 if (!foo) return 0;
16377 return !cs[0] && !zero.x;
16384 if ac_fn_c_try_compile "$LINENO"; then :
16389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16392 $as_echo "$ac_cv_c_const" >&6; }
16393 if test $ac_cv_c_const = no; then
16395 $as_echo "#define const /**/" >>confdefs.h
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16400 $as_echo_n "checking for inline... " >&6; }
16401 if ${ac_cv_c_inline+:} false; then :
16402 $as_echo_n "(cached) " >&6
16405 for ac_kw in inline __inline__ __inline; do
16406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16407 /* end confdefs.h. */
16408 #ifndef __cplusplus
16410 static $ac_kw foo_t static_foo () {return 0; }
16411 $ac_kw foo_t foo () {return 0; }
16415 if ac_fn_c_try_compile "$LINENO"; then :
16416 ac_cv_c_inline=$ac_kw
16418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16419 test "$ac_cv_c_inline" != no && break
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16424 $as_echo "$ac_cv_c_inline" >&6; }
16426 case $ac_cv_c_inline in
16429 case $ac_cv_c_inline in
16431 *) ac_val=$ac_cv_c_inline;;
16433 cat >>confdefs.h <<_ACEOF
16434 #ifndef __cplusplus
16435 #define inline $ac_val
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
16443 $as_echo_n "checking for flexible array members... " >&6; }
16444 if ${ac_cv_c_flexmember+:} false; then :
16445 $as_echo_n "(cached) " >&6
16447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16448 /* end confdefs.h. */
16449 #include <stdlib.h>
16451 #include <stddef.h>
16452 struct s { int n; double d[]; };
16456 int m = getchar ();
16457 struct s *p = malloc (offsetof (struct s, d)
16458 + m * sizeof (double));
16460 return p->d != (double *) NULL;
16465 if ac_fn_c_try_compile "$LINENO"; then :
16466 ac_cv_c_flexmember=yes
16468 ac_cv_c_flexmember=no
16470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
16473 $as_echo "$ac_cv_c_flexmember" >&6; }
16474 if test $ac_cv_c_flexmember = yes; then
16476 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
16479 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
16483 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16484 if test "x$ac_cv_type_pid_t" = xyes; then :
16488 cat >>confdefs.h <<_ACEOF
16495 # Checks for library functions.
16496 for ac_func in vprintf
16498 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
16499 if test "x$ac_cv_func_vprintf" = xyes; then :
16500 cat >>confdefs.h <<_ACEOF
16501 #define HAVE_VPRINTF 1
16504 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
16505 if test "x$ac_cv_func__doprnt" = xyes; then :
16507 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
16518 for ac_header in $ac_header_list
16520 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16521 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16523 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16524 cat >>confdefs.h <<_ACEOF
16525 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16539 for ac_func in getpagesize
16541 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16542 if test "x$ac_cv_func_getpagesize" = xyes; then :
16543 cat >>confdefs.h <<_ACEOF
16544 #define HAVE_GETPAGESIZE 1
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16551 $as_echo_n "checking for working mmap... " >&6; }
16552 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
16553 $as_echo_n "(cached) " >&6
16555 if test "$cross_compiling" = yes; then :
16556 ac_cv_func_mmap_fixed_mapped=no
16558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16559 /* end confdefs.h. */
16560 $ac_includes_default
16561 /* malloc might have been renamed as rpl_malloc. */
16564 /* Thanks to Mike Haertel and Jim Avera for this test.
16565 Here is a matrix of mmap possibilities:
16566 mmap private not fixed
16567 mmap private fixed at somewhere currently unmapped
16568 mmap private fixed at somewhere already mapped
16569 mmap shared not fixed
16570 mmap shared fixed at somewhere currently unmapped
16571 mmap shared fixed at somewhere already mapped
16572 For private mappings, we should verify that changes cannot be read()
16573 back from the file, nor mmap's back from the file at a different
16574 address. (There have been systems where private was not correctly
16575 implemented like the infamous i386 svr4.0, and systems where the
16576 VM page cache was not coherent with the file system buffer cache
16577 like early versions of FreeBSD and possibly contemporary NetBSD.)
16578 For shared mappings, we should conversely verify that changes get
16579 propagated back to all the places they're supposed to be.
16581 Grep wants private fixed already mapped.
16582 The main things grep needs to know about mmap are:
16583 * does it exist and is it safe to write into the mmap'd area
16584 * how to use it (BSD variants) */
16587 #include <sys/mman.h>
16589 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16593 /* This mess was copied from the GNU getpagesize.h. */
16594 #ifndef HAVE_GETPAGESIZE
16595 # ifdef _SC_PAGESIZE
16596 # define getpagesize() sysconf(_SC_PAGESIZE)
16597 # else /* no _SC_PAGESIZE */
16598 # ifdef HAVE_SYS_PARAM_H
16599 # include <sys/param.h>
16600 # ifdef EXEC_PAGESIZE
16601 # define getpagesize() EXEC_PAGESIZE
16602 # else /* no EXEC_PAGESIZE */
16604 # define getpagesize() NBPG * CLSIZE
16607 # endif /* no CLSIZE */
16608 # else /* no NBPG */
16610 # define getpagesize() NBPC
16611 # else /* no NBPC */
16613 # define getpagesize() PAGESIZE
16614 # endif /* PAGESIZE */
16615 # endif /* no NBPC */
16616 # endif /* no NBPG */
16617 # endif /* no EXEC_PAGESIZE */
16618 # else /* no HAVE_SYS_PARAM_H */
16619 # define getpagesize() 8192 /* punt totally */
16620 # endif /* no HAVE_SYS_PARAM_H */
16621 # endif /* no _SC_PAGESIZE */
16623 #endif /* no HAVE_GETPAGESIZE */
16628 char *data, *data2, *data3;
16629 const char *cdata2;
16633 pagesize = getpagesize ();
16635 /* First, make a file with some known garbage in it. */
16636 data = (char *) malloc (pagesize);
16639 for (i = 0; i < pagesize; ++i)
16640 *(data + i) = rand ();
16642 fd = creat ("conftest.mmap", 0600);
16645 if (write (fd, data, pagesize) != pagesize)
16649 /* Next, check that the tail of a page is zero-filled. File must have
16650 non-zero length, otherwise we risk SIGBUS for entire page. */
16651 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16655 if (write (fd2, cdata2, 1) != 1)
16657 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16658 if (data2 == MAP_FAILED)
16660 for (i = 0; i < pagesize; ++i)
16664 if (munmap (data2, pagesize))
16667 /* Next, try to mmap the file at a fixed address which already has
16668 something else allocated at it. If we can, also make sure that
16669 we see the same garbage. */
16670 fd = open ("conftest.mmap", O_RDWR);
16673 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16674 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16676 for (i = 0; i < pagesize; ++i)
16677 if (*(data + i) != *(data2 + i))
16680 /* Finally, make sure that changes to the mapped area do not
16681 percolate back to the file as seen by read(). (This is a bug on
16682 some variants of i386 svr4.0.) */
16683 for (i = 0; i < pagesize; ++i)
16684 *(data2 + i) = *(data2 + i) + 1;
16685 data3 = (char *) malloc (pagesize);
16688 if (read (fd, data3, pagesize) != pagesize)
16690 for (i = 0; i < pagesize; ++i)
16691 if (*(data + i) != *(data3 + i))
16697 if ac_fn_c_try_run "$LINENO"; then :
16698 ac_cv_func_mmap_fixed_mapped=yes
16700 ac_cv_func_mmap_fixed_mapped=no
16702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16703 conftest.$ac_objext conftest.beam conftest.$ac_ext
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16708 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16709 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16711 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16714 rm -f conftest.mmap conftest.txt
16716 for ac_func in link mkstemp mkostemp _mktemp_s mkdtemp getopt getopt_long getprogname getexecname rand random lrand48 random_r rand_r readlink fstatvfs fstatfs lstat strerror strerror_r
16718 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16719 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16720 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16721 cat >>confdefs.h <<_ACEOF
16722 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise in fcntl.h" >&5
16730 $as_echo_n "checking for posix_fadvise in fcntl.h... " >&6; }
16731 if ${ac_cv_func_posix_fadvise+:} false; then :
16732 $as_echo_n "(cached) " >&6
16734 symbol="[^a-zA-Z_0-9]posix_fadvise[^a-zA-Z_0-9]"
16736 for ac_header in fcntl.h ; do
16737 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%' `
16738 if test $ac_found != "yes" ; then
16739 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16741 /* end confdefs.h. */
16742 #include <$ac_header>
16745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16746 $EGREP "$symbol" >/dev/null 2>&1; then :
16747 ac_found="$ac_header"
16754 if test "$ac_found" != "no" ; then
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_found" >&5
16756 $as_echo "$ac_found" >&6; }
16757 fc_func_posix_fadvise=1
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16760 $as_echo "no" >&6; }
16761 fc_func_posix_fadvise=0
16767 cat >>confdefs.h <<_ACEOF
16768 #define HAVE_POSIX_FADVISE $fc_func_posix_fadvise
16773 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "#include <sys/stat.h>
16775 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
16777 cat >>confdefs.h <<_ACEOF
16778 #define HAVE_STRUCT_STAT_ST_MTIM 1
16786 if test "x$ac_cv_func_fstatvfs" = "xyes"; then
16787 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "#include <sys/statvfs.h>
16789 if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes; then :
16791 cat >>confdefs.h <<_ACEOF
16792 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
16797 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "#include <sys/statvfs.h>
16799 if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes; then :
16801 cat >>confdefs.h <<_ACEOF
16802 #define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1
16809 if test "x$ac_cv_func_fstatfs" = "xyes"; then
16810 ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" "
16811 #ifdef HAVE_SYS_VFS_H
16812 #include <sys/vfs.h>
16814 #ifdef HAVE_SYS_STATFS_H
16815 #include <sys/statfs.h>
16817 #ifdef HAVE_SYS_PARAM_H
16818 #include <sys/param.h>
16820 #ifdef HAVE_SYS_MOUNT_H
16821 #include <sys/mount.h>
16824 if test "x$ac_cv_member_struct_statfs_f_flags" = xyes; then :
16826 cat >>confdefs.h <<_ACEOF
16827 #define HAVE_STRUCT_STATFS_F_FLAGS 1
16832 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "
16833 #ifdef HAVE_SYS_VFS_H
16834 #include <sys/vfs.h>
16836 #ifdef HAVE_SYS_STATFS_H
16837 #include <sys/statfs.h>
16839 #ifdef HAVE_SYS_PARAM_H
16840 #include <sys/param.h>
16842 #ifdef HAVE_SYS_MOUNT_H
16843 #include <sys/mount.h>
16846 if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then :
16848 cat >>confdefs.h <<_ACEOF
16849 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
16856 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "#include <dirent.h>
16858 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
16860 cat >>confdefs.h <<_ACEOF
16861 #define HAVE_STRUCT_DIRENT_D_TYPE 1
16868 # Check the argument type of the gperf hash/lookup function
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking The type of len parameter of gperf hash/lookup function" >&5
16870 $as_echo_n "checking The type of len parameter of gperf hash/lookup function... " >&6; }
16871 fc_gperf_test="$(echo 'foo' | gperf -L ANSI-C)"
16872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16873 /* end confdefs.h. */
16875 #include <string.h>
16877 const char *in_word_set(register const char *, register size_t);
16888 if ac_fn_c_try_compile "$LINENO"; then :
16889 FC_GPERF_SIZE_T=size_t
16891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16892 /* end confdefs.h. */
16894 #include <string.h>
16896 const char *in_word_set(register const char *, register unsigned int);
16907 if ac_fn_c_try_compile "$LINENO"; then :
16908 FC_GPERF_SIZE_T="unsigned int"
16910 as_fn_error $? "Unable to determine the type of the len parameter of the gperf hash/lookup function" "$LINENO" 5
16913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16917 cat >>confdefs.h <<_ACEOF
16918 #define FC_GPERF_SIZE_T $FC_GPERF_SIZE_T
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC_GPERF_SIZE_T" >&5
16922 $as_echo "$FC_GPERF_SIZE_T" >&6; }
16927 # Check whether --enable-iconv was given.
16928 if test "${enable_iconv+set}" = set; then :
16929 enableval=$enable_iconv;
16935 # Check whether --with-libiconv was given.
16936 if test "${with_libiconv+set}" = set; then :
16937 withval=$with_libiconv; if test "x$withval" = "xyes"; then
16938 libiconv_prefix=$prefix
16940 libiconv_prefix=$withval
16943 libiconv_prefix=auto
16947 # Check whether --with-libiconv-includes was given.
16948 if test "${with_libiconv_includes+set}" = set; then :
16949 withval=$with_libiconv_includes; libiconv_includes=$withval
16951 libiconv_includes=auto
16955 # Check whether --with-libiconv-lib was given.
16956 if test "${with_libiconv_lib+set}" = set; then :
16957 withval=$with_libiconv_lib; libiconv_lib=$withval
16963 # if no libiconv,libiconv-includes,libiconv-lib are specified,
16964 # libc's iconv has a priority.
16965 if test "$libiconv_includes" != "auto" -a -r ${libiconv_includes}/iconv.h; then
16966 libiconv_cflags="-I${libiconv_includes}"
16967 elif test "$libiconv_prefix" != "auto" -a -r ${libiconv_prefix}/include/iconv.h; then
16968 libiconv_cflags="-I${libiconv_prefix}/include"
16973 if test "x$libiconv_cflags" != "x"; then
16974 if test "$libiconv_lib" != "auto" -a -d ${libiconv_lib}; then
16975 libiconv_libs="-L${libiconv_lib} -liconv"
16976 elif test "$libiconv_prefix" != "auto" -a -d ${libiconv_prefix}/lib; then
16977 libiconv_libs="-L${libiconv_prefix}/lib -liconv"
16979 libiconv_libs="-liconv"
16984 if test "x$enable_iconv" != "xno"; then
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a usable iconv" >&5
16986 $as_echo_n "checking for a usable iconv... " >&6; }
16987 if test "x$libiconv_cflags" != "x" -o "x$libiconv_libs" != "x"; then
16988 iconvsaved_CFLAGS="$CFLAGS"
16989 iconvsaved_LIBS="$LIBS"
16990 CFLAGS="$CFLAGS $libiconv_cflags"
16991 LIBS="$LIBS $libiconv_libs"
16993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16994 /* end confdefs.h. */
16999 iconv_open ("from", "to");
17004 if ac_fn_c_try_link "$LINENO"; then :
17005 iconv_type="libiconv"
17007 ICONV_CFLAGS="$libiconv_cflags"
17008 ICONV_LIBS="$libiconv_libs"
17013 rm -f core conftest.err conftest.$ac_objext \
17014 conftest$ac_exeext conftest.$ac_ext
17016 CFLAGS="$iconvsaved_CFLAGS"
17017 LIBS="$iconvsaved_LIBS"
17019 if test "x$use_iconv" = "x0"; then
17020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17021 /* end confdefs.h. */
17026 iconv_open ("from", "to");
17031 if ac_fn_c_try_link "$LINENO"; then :
17035 iconv_type="not found"
17038 rm -f core conftest.err conftest.$ac_objext \
17039 conftest$ac_exeext conftest.$ac_ext
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iconv_type" >&5
17043 $as_echo "$iconv_type" >&6; }
17048 cat >>confdefs.h <<_ACEOF
17049 #define USE_ICONV $use_iconv
17053 # Checks for FreeType
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
17058 $as_echo_n "checking for FREETYPE... " >&6; }
17060 if test -n "$FREETYPE_CFLAGS"; then
17061 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
17062 elif test -n "$PKG_CONFIG"; then
17063 if test -n "$PKG_CONFIG" && \
17064 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 21.0.15\""; } >&5
17065 ($PKG_CONFIG --exists --print-errors "freetype2 >= 21.0.15") 2>&5
17067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17068 test $ac_status = 0; }; then
17069 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 21.0.15" 2>/dev/null`
17070 test "x$?" != "x0" && pkg_failed=yes
17077 if test -n "$FREETYPE_LIBS"; then
17078 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
17079 elif test -n "$PKG_CONFIG"; then
17080 if test -n "$PKG_CONFIG" && \
17081 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 21.0.15\""; } >&5
17082 ($PKG_CONFIG --exists --print-errors "freetype2 >= 21.0.15") 2>&5
17084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17085 test $ac_status = 0; }; then
17086 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 21.0.15" 2>/dev/null`
17087 test "x$?" != "x0" && pkg_failed=yes
17097 if test $pkg_failed = yes; then
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17099 $as_echo "no" >&6; }
17101 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17102 _pkg_short_errors_supported=yes
17104 _pkg_short_errors_supported=no
17106 if test $_pkg_short_errors_supported = yes; then
17107 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2 >= 21.0.15" 2>&1`
17109 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2 >= 21.0.15" 2>&1`
17111 # Put the nasty error message in config.log where it belongs
17112 echo "$FREETYPE_PKG_ERRORS" >&5
17114 as_fn_error $? "Package requirements (freetype2 >= 21.0.15) were not met:
17116 $FREETYPE_PKG_ERRORS
17118 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17119 installed software in a non-standard prefix.
17121 Alternatively, you may set the environment variables FREETYPE_CFLAGS
17122 and FREETYPE_LIBS to avoid the need to call pkg-config.
17123 See the pkg-config man page for more details." "$LINENO" 5
17124 elif test $pkg_failed = untried; then
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17126 $as_echo "no" >&6; }
17127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17129 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17130 is in your PATH or set the PKG_CONFIG environment variable to the full
17131 path to pkg-config.
17133 Alternatively, you may set the environment variables FREETYPE_CFLAGS
17134 and FREETYPE_LIBS to avoid the need to call pkg-config.
17135 See the pkg-config man page for more details.
17137 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17138 See \`config.log' for more details" "$LINENO" 5; }
17140 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
17141 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17143 $as_echo "yes" >&6; }
17146 PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES freetype2 >= 21.0.15"
17151 fontconfig_save_libs="$LIBS"
17152 fontconfig_save_cflags="$CFLAGS"
17153 LIBS="$LIBS $FREETYPE_LIBS"
17154 CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
17155 for ac_func in FT_Get_BDF_Property FT_Get_PS_Font_Info FT_Has_PS_Glyph_Names FT_Get_X11_Font_Format FT_Done_MM_Var
17157 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17158 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17159 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17160 cat >>confdefs.h <<_ACEOF
17161 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17169 /* end confdefs.h. */
17171 #include <ft2build.h>
17172 #include FT_CONFIG_OPTIONS_H
17173 #ifndef PCF_CONFIG_OPTION_LONG_FAMILY_NAMES
17174 # error "No pcf long family names support"
17178 if ac_fn_c_try_compile "$LINENO"; then :
17179 have_pcf_long_family_names=yes
17181 have_pcf_long_family_names=no
17183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17184 if test "x$have_pcf_long_family_names" = xyes; then
17185 FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE=
17186 FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE='#'
17188 FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE='#'
17189 FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE=
17193 LIBS="$fontconfig_save_libs"
17194 CFLAGS="$fontconfig_save_cflags"
17199 if test "$os_win32" != "yes"; then
17200 use_pkgconfig_for_uuid=yes
17201 if test -n "${UUID_LIBS}"; then
17202 save_UUID_LIBS=$UUID_LIBS
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UUID" >&5
17207 $as_echo_n "checking for UUID... " >&6; }
17209 if test -n "$UUID_CFLAGS"; then
17210 pkg_cv_UUID_CFLAGS="$UUID_CFLAGS"
17211 elif test -n "$PKG_CONFIG"; then
17212 if test -n "$PKG_CONFIG" && \
17213 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
17214 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
17216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17217 test $ac_status = 0; }; then
17218 pkg_cv_UUID_CFLAGS=`$PKG_CONFIG --cflags "uuid" 2>/dev/null`
17219 test "x$?" != "x0" && pkg_failed=yes
17226 if test -n "$UUID_LIBS"; then
17227 pkg_cv_UUID_LIBS="$UUID_LIBS"
17228 elif test -n "$PKG_CONFIG"; then
17229 if test -n "$PKG_CONFIG" && \
17230 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
17231 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
17233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17234 test $ac_status = 0; }; then
17235 pkg_cv_UUID_LIBS=`$PKG_CONFIG --libs "uuid" 2>/dev/null`
17236 test "x$?" != "x0" && pkg_failed=yes
17246 if test $pkg_failed = yes; then
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17248 $as_echo "no" >&6; }
17250 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17251 _pkg_short_errors_supported=yes
17253 _pkg_short_errors_supported=no
17255 if test $_pkg_short_errors_supported = yes; then
17256 UUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid" 2>&1`
17258 UUID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid" 2>&1`
17260 # Put the nasty error message in config.log where it belongs
17261 echo "$UUID_PKG_ERRORS" >&5
17263 use_pkgconfig_for_uuid=no
17264 elif test $pkg_failed = untried; then
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17266 $as_echo "no" >&6; }
17267 use_pkgconfig_for_uuid=no
17269 UUID_CFLAGS=$pkg_cv_UUID_CFLAGS
17270 UUID_LIBS=$pkg_cv_UUID_LIBS
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17272 $as_echo "yes" >&6; }
17273 use_pkgconfig_for_uuid=yes
17275 if test "x$use_pkgconfig_for_uuid" = "xno"; then
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where uuid functions comes from" >&5
17277 $as_echo_n "checking where uuid functions comes from... " >&6; }
17278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17279 /* end confdefs.h. */
17280 #include <uuid/uuid.h>
17284 uuid_t a; uuid_generate(a);
17289 if ac_fn_c_try_link "$LINENO"; then :
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: builtin" >&5
17291 $as_echo "builtin" >&6; }
17297 *** uuid is required. install util-linux.
17300 rm -f core conftest.err conftest.$ac_objext \
17301 conftest$ac_exeext conftest.$ac_ext
17303 if test -z "${save_UUID_LIBS+x}" && test "x${UUID_LIBS}" != "x"; then
17304 PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY uuid"
17315 # Check expat configuration
17318 # Check whether --with-expat was given.
17319 if test "${with_expat+set}" = set; then :
17320 withval=$with_expat; expat_prefix=$withval
17326 # Check whether --with-expat-includes was given.
17327 if test "${with_expat_includes+set}" = set; then :
17328 withval=$with_expat_includes; expat_includes=$withval
17330 expat_includes=auto
17334 # Check whether --with-expat-lib was given.
17335 if test "${with_expat_lib+set}" = set; then :
17336 withval=$with_expat_lib; expat_lib=$withval
17342 if test "$enable_libxml2" != "yes"; then
17343 use_pkgconfig_for_expat=yes
17344 if test "$expat_prefix" = "auto" -a "$expat_includes" = "auto" -a "$expat_lib" = "auto"; then
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPAT" >&5
17348 $as_echo_n "checking for EXPAT... " >&6; }
17350 if test -n "$EXPAT_CFLAGS"; then
17351 pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS"
17352 elif test -n "$PKG_CONFIG"; then
17353 if test -n "$PKG_CONFIG" && \
17354 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
17355 ($PKG_CONFIG --exists --print-errors "expat") 2>&5
17357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17358 test $ac_status = 0; }; then
17359 pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null`
17360 test "x$?" != "x0" && pkg_failed=yes
17367 if test -n "$EXPAT_LIBS"; then
17368 pkg_cv_EXPAT_LIBS="$EXPAT_LIBS"
17369 elif test -n "$PKG_CONFIG"; then
17370 if test -n "$PKG_CONFIG" && \
17371 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
17372 ($PKG_CONFIG --exists --print-errors "expat") 2>&5
17374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17375 test $ac_status = 0; }; then
17376 pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null`
17377 test "x$?" != "x0" && pkg_failed=yes
17387 if test $pkg_failed = yes; then
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17389 $as_echo "no" >&6; }
17391 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17392 _pkg_short_errors_supported=yes
17394 _pkg_short_errors_supported=no
17396 if test $_pkg_short_errors_supported = yes; then
17397 EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "expat" 2>&1`
17399 EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "expat" 2>&1`
17401 # Put the nasty error message in config.log where it belongs
17402 echo "$EXPAT_PKG_ERRORS" >&5
17404 use_pkgconfig_for_expat=no
17405 elif test $pkg_failed = untried; then
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17407 $as_echo "no" >&6; }
17408 use_pkgconfig_for_expat=no
17410 EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS
17411 EXPAT_LIBS=$pkg_cv_EXPAT_LIBS
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17413 $as_echo "yes" >&6; }
17417 use_pkgconfig_for_expat=no
17419 if test "x$use_pkgconfig_for_expat" = "xno"; then
17420 if test "$expat_includes" != "auto" -a -r ${expat_includes}/expat.h; then
17421 EXPAT_CFLAGS="-I${expat_includes}"
17422 elif test "$expat_prefix" != "auto" -a -r ${expat_prefix}/include/expat.h; then
17423 EXPAT_CFLAGS="-I${expat_prefix}/include"
17427 if test "$expat_lib" != "auto"; then
17428 EXPAT_LIBS="-L${expat_lib} -lexpat"
17429 elif test "$expat_prefix" != "auto"; then
17430 EXPAT_LIBS="-L${expat_prefix}/lib -lexpat"
17432 EXPAT_LIBS="-lexpat"
17434 PKG_EXPAT_CFLAGS=$EXPAT_CFLAGS
17435 PKG_EXPAT_LIBS=$EXPAT_LIBS
17437 PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY expat"
17442 expatsaved_CPPFLAGS="$CPPFLAGS"
17443 expatsaved_LIBS="$LIBS"
17444 CPPFLAGS="$CPPFLAGS $EXPAT_CFLAGS"
17445 LIBS="$LIBS $EXPAT_LIBS"
17447 ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
17448 if test "x$ac_cv_header_expat_h" = xyes; then :
17453 if test "$ac_cv_header_expat_h" = "no"; then
17454 ac_fn_c_check_header_mongrel "$LINENO" "xmlparse.h" "ac_cv_header_xmlparse_h" "$ac_includes_default"
17455 if test "x$ac_cv_header_xmlparse_h" = xyes; then :
17460 if test "$ac_cv_header_xmlparse_h" = "yes"; then
17464 cat >>confdefs.h <<_ACEOF
17465 #define HAVE_XMLPARSE_H $HAVE_XMLPARSE_H
17470 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
17473 for ac_func in XML_SetDoctypeDeclHandler
17475 ac_fn_c_check_func "$LINENO" "XML_SetDoctypeDeclHandler" "ac_cv_func_XML_SetDoctypeDeclHandler"
17476 if test "x$ac_cv_func_XML_SetDoctypeDeclHandler" = xyes; then :
17477 cat >>confdefs.h <<_ACEOF
17478 #define HAVE_XML_SETDOCTYPEDECLHANDLER 1
17484 if test "$ac_cv_func_XML_SetDoctypeDeclHandler" = "no"; then
17486 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
17488 CPPFLAGS="$expatsaved_CPPFLAGS"
17489 LIBS="$expatsaved_LIBS"
17498 # Check libxml2 configuration
17500 # Check whether --enable-libxml2 was given.
17501 if test "${enable_libxml2+set}" = set; then :
17502 enableval=$enable_libxml2;
17506 if test "$enable_libxml2" = "yes"; then
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
17510 $as_echo_n "checking for LIBXML2... " >&6; }
17512 if test -n "$LIBXML2_CFLAGS"; then
17513 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
17514 elif test -n "$PKG_CONFIG"; then
17515 if test -n "$PKG_CONFIG" && \
17516 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
17517 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
17519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17520 test $ac_status = 0; }; then
17521 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6" 2>/dev/null`
17522 test "x$?" != "x0" && pkg_failed=yes
17529 if test -n "$LIBXML2_LIBS"; then
17530 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
17531 elif test -n "$PKG_CONFIG"; then
17532 if test -n "$PKG_CONFIG" && \
17533 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
17534 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
17536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17537 test $ac_status = 0; }; then
17538 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6" 2>/dev/null`
17539 test "x$?" != "x0" && pkg_failed=yes
17549 if test $pkg_failed = yes; then
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17551 $as_echo "no" >&6; }
17553 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17554 _pkg_short_errors_supported=yes
17556 _pkg_short_errors_supported=no
17558 if test $_pkg_short_errors_supported = yes; then
17559 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
17561 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
17563 # Put the nasty error message in config.log where it belongs
17564 echo "$LIBXML2_PKG_ERRORS" >&5
17566 as_fn_error $? "Package requirements (libxml-2.0 >= 2.6) were not met:
17568 $LIBXML2_PKG_ERRORS
17570 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17571 installed software in a non-standard prefix.
17573 Alternatively, you may set the environment variables LIBXML2_CFLAGS
17574 and LIBXML2_LIBS to avoid the need to call pkg-config.
17575 See the pkg-config man page for more details." "$LINENO" 5
17576 elif test $pkg_failed = untried; then
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17578 $as_echo "no" >&6; }
17579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17581 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17582 is in your PATH or set the PKG_CONFIG environment variable to the full
17583 path to pkg-config.
17585 Alternatively, you may set the environment variables LIBXML2_CFLAGS
17586 and LIBXML2_LIBS to avoid the need to call pkg-config.
17587 See the pkg-config man page for more details.
17589 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17590 See \`config.log' for more details" "$LINENO" 5; }
17592 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
17593 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17595 $as_echo "yes" >&6; }
17598 PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY libxml-2.0 >= 2.6"
17600 cat >>confdefs.h <<_ACEOF
17601 #define ENABLE_LIBXML2 1
17608 fc_saved_CFLAGS="$CFLAGS"
17609 CFLAGS="$CFLAGS $LIBXML2_CFLAGS"
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SAX1 support in libxml2" >&5
17611 $as_echo_n "checking SAX1 support in libxml2... " >&6; }
17612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17613 /* end confdefs.h. */
17615 #include <libxml/xmlversion.h>
17616 #if !defined(LIBXML_SAX1_ENABLED)
17617 # include "error: No SAX1 support in libxml2"
17621 if ac_fn_c_try_compile "$LINENO"; then :
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
17623 $as_echo "found" >&6; }
17626 *** SAX1 support in libxml2 is required. enable it or use expat instead." "$LINENO" 5
17628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17629 CFLAGS="$fc_saved_CFLAGS"
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSONC" >&5
17638 $as_echo_n "checking for JSONC... " >&6; }
17640 if test -n "$JSONC_CFLAGS"; then
17641 pkg_cv_JSONC_CFLAGS="$JSONC_CFLAGS"
17642 elif test -n "$PKG_CONFIG"; then
17643 if test -n "$PKG_CONFIG" && \
17644 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
17645 ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
17647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17648 test $ac_status = 0; }; then
17649 pkg_cv_JSONC_CFLAGS=`$PKG_CONFIG --cflags "json-c" 2>/dev/null`
17650 test "x$?" != "x0" && pkg_failed=yes
17657 if test -n "$JSONC_LIBS"; then
17658 pkg_cv_JSONC_LIBS="$JSONC_LIBS"
17659 elif test -n "$PKG_CONFIG"; then
17660 if test -n "$PKG_CONFIG" && \
17661 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
17662 ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
17664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17665 test $ac_status = 0; }; then
17666 pkg_cv_JSONC_LIBS=`$PKG_CONFIG --libs "json-c" 2>/dev/null`
17667 test "x$?" != "x0" && pkg_failed=yes
17677 if test $pkg_failed = yes; then
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17679 $as_echo "no" >&6; }
17681 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17682 _pkg_short_errors_supported=yes
17684 _pkg_short_errors_supported=no
17686 if test $_pkg_short_errors_supported = yes; then
17687 JSONC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c" 2>&1`
17689 JSONC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c" 2>&1`
17691 # Put the nasty error message in config.log where it belongs
17692 echo "$JSONC_PKG_ERRORS" >&5
17695 elif test $pkg_failed = untried; then
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17697 $as_echo "no" >&6; }
17700 JSONC_CFLAGS=$pkg_cv_JSONC_CFLAGS
17701 JSONC_LIBS=$pkg_cv_JSONC_LIBS
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17703 $as_echo "yes" >&6; }
17707 if test "x$use_jsonc" = "xyes"; then
17709 ENABLE_JSONC_FALSE='#'
17711 ENABLE_JSONC_TRUE='#'
17712 ENABLE_JSONC_FALSE=
17719 # Set default hinting
17723 # Check whether --with-default-hinting was given.
17724 if test "${with_default_hinting+set}" = set; then :
17725 withval=$with_default_hinting; preferred_hinting="$withval"
17727 preferred_hinting=slight
17731 case "$preferred_hinting" in
17732 none|slight|medium|full)
17733 PREFERRED_HINTING="$preferred_hinting"
17737 as_fn_error $? "Invalid hinting. please choose one of none, slight, medium, or full" "$LINENO" 5
17742 # Set default font directory
17746 # Check whether --with-default-fonts was given.
17747 if test "${with_default_fonts+set}" = set; then :
17748 withval=$with_default_fonts; default_fonts="$withval"
17754 case "$default_fonts" in
17756 if test "$os_win32" = "yes"; then
17757 FC_DEFAULT_FONTS="WINDOWSFONTDIR"
17759 cat >>confdefs.h <<_ACEOF
17760 #define FC_DEFAULT_FONTS "WINDOWSFONTDIR"
17764 FC_DEFAULT_FONTS="/usr/share/fonts"
17766 cat >>confdefs.h <<_ACEOF
17767 #define FC_DEFAULT_FONTS "/usr/share/fonts"
17773 FC_DEFAULT_FONTS="$default_fonts"
17775 cat >>confdefs.h <<_ACEOF
17776 #define FC_DEFAULT_FONTS "$default_fonts"
17785 # Add more fonts if available. By default, add only the directories
17786 # with outline fonts; those with bitmaps can be added as desired in
17787 # local.conf or ~/.fonts.conf
17790 # Check whether --with-add-fonts was given.
17791 if test "${with_add_fonts+set}" = set; then :
17792 withval=$with_add_fonts; add_fonts="$withval"
17798 case "$add_fonts" in
17801 for dir in /usr/X11R6/lib/X11 /usr/X11/lib/X11 /usr/lib/X11; do
17802 case x"$FC_ADD_FONTS" in
17805 if test -d "$sub"; then
17806 case x$FC_ADD_FONTS in
17808 FC_ADD_FONTS="$sub"
17811 FC_ADD_FONTS="$FC_ADD_FONTS,$sub"
17819 cat >>confdefs.h <<_ACEOF
17820 #define FC_ADD_FONTS "$add_fonts"
17828 FC_ADD_FONTS="$add_fonts"
17830 cat >>confdefs.h <<_ACEOF
17831 #define FC_ADD_FONTS "$add_fonts"
17841 case "$FC_ADD_FONTS" in
17845 FC_FONTPATH=`echo $FC_ADD_FONTS |
17846 sed -e 's/^/<dir>/' -e 's/$/<\/dir>/' -e 's/,/<\/dir> <dir>/g'`
17853 # Set default cache directory path
17856 # Check whether --with-cache-dir was given.
17857 if test "${with_cache_dir+set}" = set; then :
17858 withval=$with_cache_dir; fc_cachedir="$withval"
17864 case $fc_cachedir in
17866 if test "$os_win32" = "yes"; then
17867 fc_cachedir="LOCAL_APPDATA_FONTCONFIG_CACHE"
17869 fc_cachedir='${localstatedir}/cache/${PACKAGE}'
17876 FC_CACHEDIR=${fc_cachedir}
17879 FC_FONTDATE=`LC_ALL=C date`
17884 # Set configuration paths
17888 # Check whether --with-templatedir was given.
17889 if test "${with_templatedir+set}" = set; then :
17890 withval=$with_templatedir; templatedir="$withval"
17896 # Check whether --with-baseconfigdir was given.
17897 if test "${with_baseconfigdir+set}" = set; then :
17898 withval=$with_baseconfigdir; baseconfigdir="$withval"
17904 # Check whether --with-configdir was given.
17905 if test "${with_configdir+set}" = set; then :
17906 withval=$with_configdir; configdir="$withval"
17912 # Check whether --with-xmldir was given.
17913 if test "${with_xmldir+set}" = set; then :
17914 withval=$with_xmldir; xmldir="$withval"
17920 case "$templatedir" in
17922 templatedir='${datadir}'/fontconfig/conf.avail
17927 case "$baseconfigdir" in
17929 baseconfigdir='${sysconfdir}'/fonts
17934 case "$configdir" in
17936 configdir='${BASECONFIGDIR}'/conf.d
17943 xmldir='${datadir}'/xml/fontconfig
17949 TEMPLATEDIR=${templatedir}
17950 BASECONFIGDIR=${baseconfigdir}
17951 CONFIGDIR=${configdir}
17961 # Thread-safety primitives
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
17965 $as_echo_n "checking for Intel atomic primitives... " >&6; }
17966 if ${fc_cv_have_intel_atomic_primitives+:} false; then :
17967 $as_echo_n "(cached) " >&6
17970 fc_cv_have_intel_atomic_primitives=false
17971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17972 /* end confdefs.h. */
17974 void memory_barrier (void) { __sync_synchronize (); }
17975 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
17976 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
17977 void mutex_unlock (int *m) { __sync_lock_release (m); }
17987 if ac_fn_c_try_link "$LINENO"; then :
17988 fc_cv_have_intel_atomic_primitives=true
17991 rm -f core conftest.err conftest.$ac_objext \
17992 conftest$ac_exeext conftest.$ac_ext
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_intel_atomic_primitives" >&5
17996 $as_echo "$fc_cv_have_intel_atomic_primitives" >&6; }
17997 if $fc_cv_have_intel_atomic_primitives; then
17999 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
18004 $as_echo_n "checking for Solaris atomic operations... " >&6; }
18005 if ${fc_cv_have_solaris_atomic_ops+:} false; then :
18006 $as_echo_n "(cached) " >&6
18009 fc_cv_have_solaris_atomic_ops=false
18010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18011 /* end confdefs.h. */
18013 #include <atomic.h>
18014 /* This requires Solaris Studio 12.2 or newer: */
18015 #include <mbarrier.h>
18016 void memory_barrier (void) { __machine_rw_barrier (); }
18017 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
18018 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
18028 if ac_fn_c_try_link "$LINENO"; then :
18029 fc_cv_have_solaris_atomic_ops=true
18032 rm -f core conftest.err conftest.$ac_objext \
18033 conftest$ac_exeext conftest.$ac_ext
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_solaris_atomic_ops" >&5
18037 $as_echo "$fc_cv_have_solaris_atomic_ops" >&6; }
18038 if $fc_cv_have_solaris_atomic_ops; then
18040 $as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
18044 if test "$os_win32" = no && ! $have_pthread; then
18045 for ac_header in sched.h
18047 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
18048 if test "x$ac_cv_header_sched_h" = xyes; then :
18049 cat >>confdefs.h <<_ACEOF
18050 #define HAVE_SCHED_H 1
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
18058 $as_echo_n "checking for library containing sched_yield... " >&6; }
18059 if ${ac_cv_search_sched_yield+:} false; then :
18060 $as_echo_n "(cached) " >&6
18062 ac_func_search_save_LIBS=$LIBS
18063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18064 /* end confdefs.h. */
18066 /* Override any GCC internal prototype to avoid an error.
18067 Use char because int might match the return type of a GCC
18068 builtin and then its argument prototype would still apply. */
18072 char sched_yield ();
18076 return sched_yield ();
18081 for ac_lib in '' rt; do
18082 if test -z "$ac_lib"; then
18083 ac_res="none required"
18086 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18088 if ac_fn_c_try_link "$LINENO"; then :
18089 ac_cv_search_sched_yield=$ac_res
18091 rm -f core conftest.err conftest.$ac_objext \
18093 if ${ac_cv_search_sched_yield+:} false; then :
18097 if ${ac_cv_search_sched_yield+:} false; then :
18100 ac_cv_search_sched_yield=no
18102 rm conftest.$ac_ext
18103 LIBS=$ac_func_search_save_LIBS
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
18106 $as_echo "$ac_cv_search_sched_yield" >&6; }
18107 ac_res=$ac_cv_search_sched_yield
18108 if test "$ac_res" != no; then :
18109 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18111 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
18118 if test "$os_win32" = no; then
18122 ac_cpp='$CPP $CPPFLAGS'
18123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18129 # We used to check for pthread.h first, but this fails if pthread.h
18130 # requires special compiler flags (e.g. on True64 or Sequent).
18131 # It gets checked for in the link test anyway.
18133 # First of all, check if the user has set any of the PTHREAD_LIBS,
18134 # etcetera environment variables, and if threads linking works using
18136 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18137 save_CFLAGS="$CFLAGS"
18138 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18140 LIBS="$PTHREAD_LIBS $LIBS"
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18142 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
18143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18144 /* end confdefs.h. */
18146 /* Override any GCC internal prototype to avoid an error.
18147 Use char because int might match the return type of a GCC
18148 builtin and then its argument prototype would still apply. */
18152 char pthread_join ();
18156 return pthread_join ();
18161 if ac_fn_c_try_link "$LINENO"; then :
18164 rm -f core conftest.err conftest.$ac_objext \
18165 conftest$ac_exeext conftest.$ac_ext
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18167 $as_echo "$ax_pthread_ok" >&6; }
18168 if test x"$ax_pthread_ok" = xno; then
18173 CFLAGS="$save_CFLAGS"
18176 # We must check for the threads library under a number of different
18177 # names; the ordering is very important because some systems
18178 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18179 # libraries is broken (non-POSIX).
18181 # Create a list of thread flags to try. Items starting with a "-" are
18182 # C compiler flags, and other items are library names, except for "none"
18183 # which indicates that we try without any flags at all, and "pthread-config"
18184 # which is a program returning the flags for the Pth emulation library.
18186 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
18188 # The ordering *is* (sometimes) important. Some notes on the
18189 # individual items follow:
18191 # pthreads: AIX (must check this before -lpthread)
18192 # none: in case threads are in libc; should be tried before -Kthread and
18193 # other compiler flags to prevent continual compiler warnings
18194 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18195 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18196 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18197 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18198 # -pthreads: Solaris/gcc
18199 # -mthreads: Mingw32/gcc, Lynx/gcc
18200 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18201 # doesn't hurt to check since this sometimes defines pthreads too;
18202 # also defines -D_REENTRANT)
18203 # ... -mt is also the pthreads flag for HP/aCC
18204 # pthread: Linux, etcetera
18205 # --thread-safe: KAI C++
18206 # pthread-config: use pthread-config program (for GNU Pth library)
18211 # On Solaris (at least, for some versions), libc contains stubbed
18212 # (non-functional) versions of the pthreads routines, so link-based
18213 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
18214 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18215 # a function called by this macro, so we could check for that, but
18216 # who knows whether they'll stub that too in a future libc.) So,
18217 # we'll just look for -pthreads and -lpthread first:
18219 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
18223 ax_pthread_flags="-pthread $ax_pthread_flags"
18226 # use libc stubs, don't link against libpthread, to allow
18228 ax_pthread_flags=""
18232 # Clang doesn't consider unrecognized options an error unless we specify
18233 # -Werror. We throw in some extra Clang-specific options to ensure that
18234 # this doesn't happen for GCC, which also accepts -Werror.
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
18237 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
18238 save_CFLAGS="$CFLAGS"
18239 ax_pthread_extra_flags="-Werror"
18240 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
18241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18242 /* end confdefs.h. */
18252 if ac_fn_c_try_compile "$LINENO"; then :
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18254 $as_echo "yes" >&6; }
18256 ax_pthread_extra_flags=
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18258 $as_echo "no" >&6; }
18260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18261 CFLAGS="$save_CFLAGS"
18263 if test x"$ax_pthread_ok" = xno; then
18264 for flag in $ax_pthread_flags; do
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18269 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
18274 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
18275 PTHREAD_CFLAGS="$flag"
18279 # Extract the first word of "pthread-config", so it can be a program name with args.
18280 set dummy pthread-config; ac_word=$2
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18282 $as_echo_n "checking for $ac_word... " >&6; }
18283 if ${ac_cv_prog_ax_pthread_config+:} false; then :
18284 $as_echo_n "(cached) " >&6
18286 if test -n "$ax_pthread_config"; then
18287 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
18289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18290 for as_dir in $PATH
18293 test -z "$as_dir" && as_dir=.
18294 for ac_exec_ext in '' $ac_executable_extensions; do
18295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18296 ac_cv_prog_ax_pthread_config="yes"
18297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18304 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
18307 ax_pthread_config=$ac_cv_prog_ax_pthread_config
18308 if test -n "$ax_pthread_config"; then
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
18310 $as_echo "$ax_pthread_config" >&6; }
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18313 $as_echo "no" >&6; }
18317 if test x"$ax_pthread_config" = xno; then continue; fi
18318 PTHREAD_CFLAGS="`pthread-config --cflags`"
18319 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
18324 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
18325 PTHREAD_LIBS="-l$flag"
18330 save_CFLAGS="$CFLAGS"
18331 LIBS="$PTHREAD_LIBS $LIBS"
18332 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
18334 # Check for various functions. We must include pthread.h,
18335 # since some functions may be macros. (On the Sequent, we
18336 # need a special flag -Kthread to make this header compile.)
18337 # We check for pthread_join because it is in -lpthread on IRIX
18338 # while pthread_create is in libc. We check for pthread_attr_init
18339 # due to DEC craziness with -lpthreads. We check for
18340 # pthread_cleanup_push because it is one of the few pthread
18341 # functions on Solaris that doesn't have a non-functional libc stub.
18342 # We try pthread_create on general principles.
18343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18344 /* end confdefs.h. */
18345 #include <pthread.h>
18346 static void routine(void *a) { a = 0; }
18347 static void *start_routine(void *a) { return a; }
18351 pthread_t th; pthread_attr_t attr;
18352 pthread_create(&th, 0, start_routine, 0);
18353 pthread_join(th, 0);
18354 pthread_attr_init(&attr);
18355 pthread_cleanup_push(routine, 0);
18356 pthread_cleanup_pop(0) /* ; */
18361 if ac_fn_c_try_link "$LINENO"; then :
18364 rm -f core conftest.err conftest.$ac_objext \
18365 conftest$ac_exeext conftest.$ac_ext
18368 CFLAGS="$save_CFLAGS"
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18371 $as_echo "$ax_pthread_ok" >&6; }
18372 if test "x$ax_pthread_ok" = xyes; then
18381 # Various other checks:
18382 if test "x$ax_pthread_ok" = xyes; then
18384 LIBS="$PTHREAD_LIBS $LIBS"
18385 save_CFLAGS="$CFLAGS"
18386 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18388 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
18390 $as_echo_n "checking for joinable pthread attribute... " >&6; }
18392 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
18393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18394 /* end confdefs.h. */
18395 #include <pthread.h>
18399 int attr = $attr; return attr /* ; */
18404 if ac_fn_c_try_link "$LINENO"; then :
18405 attr_name=$attr; break
18407 rm -f core conftest.err conftest.$ac_objext \
18408 conftest$ac_exeext conftest.$ac_ext
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
18411 $as_echo "$attr_name" >&6; }
18412 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
18414 cat >>confdefs.h <<_ACEOF
18415 #define PTHREAD_CREATE_JOINABLE $attr_name
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
18421 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
18424 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
18425 osf* | hpux*) flag="-D_REENTRANT";;
18427 if test "$GCC" = "yes"; then
18428 flag="-D_REENTRANT"
18430 # TODO: What about Clang on Solaris?
18431 flag="-mt -D_REENTRANT"
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
18436 $as_echo "$flag" >&6; }
18437 if test "x$flag" != xno; then
18438 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
18442 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
18443 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
18444 $as_echo_n "(cached) " >&6
18447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18448 /* end confdefs.h. */
18449 #include <pthread.h>
18453 int i = PTHREAD_PRIO_INHERIT;
18458 if ac_fn_c_try_link "$LINENO"; then :
18459 ax_cv_PTHREAD_PRIO_INHERIT=yes
18461 ax_cv_PTHREAD_PRIO_INHERIT=no
18463 rm -f core conftest.err conftest.$ac_objext \
18464 conftest$ac_exeext conftest.$ac_ext
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
18468 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
18469 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
18471 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
18476 CFLAGS="$save_CFLAGS"
18478 # More AIX lossage: compile with *_r variant
18479 if test "x$GCC" != xyes; then
18483 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
18484 #handle absolute path differently from PATH based program lookup
18487 if as_fn_executable_p ${CC}_r; then :
18488 PTHREAD_CC="${CC}_r"
18491 for ac_prog in ${CC}_r
18493 # Extract the first word of "$ac_prog", so it can be a program name with args.
18494 set dummy $ac_prog; ac_word=$2
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18496 $as_echo_n "checking for $ac_word... " >&6; }
18497 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
18498 $as_echo_n "(cached) " >&6
18500 if test -n "$PTHREAD_CC"; then
18501 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18504 for as_dir in $PATH
18507 test -z "$as_dir" && as_dir=.
18508 for ac_exec_ext in '' $ac_executable_extensions; do
18509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18510 ac_cv_prog_PTHREAD_CC="$ac_prog"
18511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18520 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18521 if test -n "$PTHREAD_CC"; then
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
18523 $as_echo "$PTHREAD_CC" >&6; }
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18526 $as_echo "no" >&6; }
18530 test -n "$PTHREAD_CC" && break
18532 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
18543 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
18549 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18550 if test x"$ax_pthread_ok" = xyes; then
18558 ac_cpp='$CPP $CPPFLAGS'
18559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18565 if $have_pthread; then
18566 LIBS="$PTHREAD_LIBS $LIBS"
18567 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18570 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
18573 if $have_pthread; then
18575 HAVE_PTHREAD_FALSE='#'
18577 HAVE_PTHREAD_TRUE='#'
18578 HAVE_PTHREAD_FALSE=
18585 # Let people not build/install docs if they don't have docbook
18588 # Extract the first word of "docbook2html", so it can be a program name with args.
18589 set dummy docbook2html; ac_word=$2
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18591 $as_echo_n "checking for $ac_word... " >&6; }
18592 if ${ac_cv_prog_HASDOCBOOK+:} false; then :
18593 $as_echo_n "(cached) " >&6
18595 if test -n "$HASDOCBOOK"; then
18596 ac_cv_prog_HASDOCBOOK="$HASDOCBOOK" # Let the user override the test.
18598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18599 for as_dir in $PATH
18602 test -z "$as_dir" && as_dir=.
18603 for ac_exec_ext in '' $ac_executable_extensions; do
18604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18605 ac_cv_prog_HASDOCBOOK="yes"
18606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18613 test -z "$ac_cv_prog_HASDOCBOOK" && ac_cv_prog_HASDOCBOOK="no"
18616 HASDOCBOOK=$ac_cv_prog_HASDOCBOOK
18617 if test -n "$HASDOCBOOK"; then
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HASDOCBOOK" >&5
18619 $as_echo "$HASDOCBOOK" >&6; }
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18622 $as_echo "no" >&6; }
18627 if test "x$HASDOCBOOK" = xyes; then
18629 USEDOCBOOK_FALSE='#'
18631 USEDOCBOOK_TRUE='#'
18638 # Check if docs exist or can be created
18640 if test x$HASDOCBOOK = xno; then
18641 if test -f $srcdir/doc/fonts-conf.5; then
18648 # Check whether --enable-docs was given.
18649 if test "${enable_docs+set}" = set; then :
18650 enableval=$enable_docs;
18652 enable_docs=$default_docs
18656 if test "x$enable_docs" = xyes; then
18658 ENABLE_DOCS_FALSE='#'
18660 ENABLE_DOCS_TRUE='#'
18665 if test "x$enable_docs" = xyes; then
18667 cat $srcdir/doc/*.fncs | awk '
18668 /^@TITLE@/ { if (!done) { printf ("%s\n", $2); done = 1; } }
18669 /^@FUNC@/ { if (!done) { printf ("%s\n", $2); done = 1; } }
18670 /^@@/ { done = 0; }' > $tmp
18671 DOCMAN3=`cat $tmp | awk '{ printf ("%s.3 ", $1); }'`
18672 echo DOCMAN3 $DOCMAN3
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18681 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18682 if ${ac_cv_c_bigendian+:} false; then :
18683 $as_echo_n "(cached) " >&6
18685 ac_cv_c_bigendian=unknown
18686 # See if we're dealing with a universal compiler.
18687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18688 /* end confdefs.h. */
18689 #ifndef __APPLE_CC__
18690 not a universal capable compiler
18695 if ac_fn_c_try_compile "$LINENO"; then :
18697 # Check for potential -arch flags. It is not universal unless
18698 # there are at least two -arch flags with different values.
18701 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18702 if test -n "$ac_prev"; then
18704 i?86 | x86_64 | ppc | ppc64)
18705 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
18708 ac_cv_c_bigendian=universal
18714 elif test "x$ac_word" = "x-arch"; then
18719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18720 if test $ac_cv_c_bigendian = unknown; then
18721 # See if sys/param.h defines the BYTE_ORDER macro.
18722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18723 /* end confdefs.h. */
18724 #include <sys/types.h>
18725 #include <sys/param.h>
18730 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18731 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18733 bogus endian macros
18740 if ac_fn_c_try_compile "$LINENO"; then :
18741 # It does; now see whether it defined to BIG_ENDIAN or not.
18742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18743 /* end confdefs.h. */
18744 #include <sys/types.h>
18745 #include <sys/param.h>
18750 #if BYTE_ORDER != BIG_ENDIAN
18758 if ac_fn_c_try_compile "$LINENO"; then :
18759 ac_cv_c_bigendian=yes
18761 ac_cv_c_bigendian=no
18763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18767 if test $ac_cv_c_bigendian = unknown; then
18768 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18770 /* end confdefs.h. */
18771 #include <limits.h>
18776 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18777 bogus endian macros
18784 if ac_fn_c_try_compile "$LINENO"; then :
18785 # It does; now see whether it defined to _BIG_ENDIAN or not.
18786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18787 /* end confdefs.h. */
18788 #include <limits.h>
18793 #ifndef _BIG_ENDIAN
18801 if ac_fn_c_try_compile "$LINENO"; then :
18802 ac_cv_c_bigendian=yes
18804 ac_cv_c_bigendian=no
18806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18810 if test $ac_cv_c_bigendian = unknown; then
18811 # Compile a test program.
18812 if test "$cross_compiling" = yes; then :
18813 # Try to guess by grepping values from an object file.
18814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18815 /* end confdefs.h. */
18816 short int ascii_mm[] =
18817 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18818 short int ascii_ii[] =
18819 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18820 int use_ascii (int i) {
18821 return ascii_mm[i] + ascii_ii[i];
18823 short int ebcdic_ii[] =
18824 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18825 short int ebcdic_mm[] =
18826 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18827 int use_ebcdic (int i) {
18828 return ebcdic_mm[i] + ebcdic_ii[i];
18835 return use_ascii (foo) == use_ebcdic (foo);
18840 if ac_fn_c_try_compile "$LINENO"; then :
18841 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18842 ac_cv_c_bigendian=yes
18844 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18845 if test "$ac_cv_c_bigendian" = unknown; then
18846 ac_cv_c_bigendian=no
18848 # finding both strings is unlikely to happen, but who knows?
18849 ac_cv_c_bigendian=unknown
18853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18856 /* end confdefs.h. */
18857 $ac_includes_default
18862 /* Are we little or big endian? From Harbison&Steele. */
18866 char c[sizeof (long int)];
18869 return u.c[sizeof (long int) - 1] == 1;
18875 if ac_fn_c_try_run "$LINENO"; then :
18876 ac_cv_c_bigendian=no
18878 ac_cv_c_bigendian=yes
18880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18881 conftest.$ac_objext conftest.beam conftest.$ac_ext
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18887 $as_echo "$ac_cv_c_bigendian" >&6; }
18888 case $ac_cv_c_bigendian in #(
18890 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
18896 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18900 as_fn_error $? "unknown endianness
18901 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18904 # The cast to long int works around a bug in the HP C Compiler
18905 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18906 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18907 # This bug is HP SR number 8606223364.
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
18909 $as_echo_n "checking size of void *... " >&6; }
18910 if ${ac_cv_sizeof_void_p+:} false; then :
18911 $as_echo_n "(cached) " >&6
18913 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
18916 if test "$ac_cv_type_void_p" = yes; then
18917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18919 as_fn_error 77 "cannot compute sizeof (void *)
18920 See \`config.log' for more details" "$LINENO" 5; }
18922 ac_cv_sizeof_void_p=0
18927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
18928 $as_echo "$ac_cv_sizeof_void_p" >&6; }
18932 cat >>confdefs.h <<_ACEOF
18933 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18937 # The cast to long int works around a bug in the HP C Compiler,
18938 # see AC_CHECK_SIZEOF for more information.
18939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
18940 $as_echo_n "checking alignment of double... " >&6; }
18941 if ${ac_cv_alignof_double+:} false; then :
18942 $as_echo_n "(cached) " >&6
18944 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
18946 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
18948 typedef struct { char x; double y; } ac__type_alignof_;"; then :
18951 if test "$ac_cv_type_double" = yes; then
18952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18954 as_fn_error 77 "cannot compute alignment of double
18955 See \`config.log' for more details" "$LINENO" 5; }
18957 ac_cv_alignof_double=0
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
18963 $as_echo "$ac_cv_alignof_double" >&6; }
18967 cat >>confdefs.h <<_ACEOF
18968 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
18972 # The cast to long int works around a bug in the HP C Compiler,
18973 # see AC_CHECK_SIZEOF for more information.
18974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of void *" >&5
18975 $as_echo_n "checking alignment of void *... " >&6; }
18976 if ${ac_cv_alignof_void_p+:} false; then :
18977 $as_echo_n "(cached) " >&6
18979 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_void_p" "$ac_includes_default
18981 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
18983 typedef struct { char x; void * y; } ac__type_alignof_;"; then :
18986 if test "$ac_cv_type_void_p" = yes; then
18987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18989 as_fn_error 77 "cannot compute alignment of void *
18990 See \`config.log' for more details" "$LINENO" 5; }
18992 ac_cv_alignof_void_p=0
18997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_void_p" >&5
18998 $as_echo "$ac_cv_alignof_void_p" >&6; }
19002 cat >>confdefs.h <<_ACEOF
19003 #define ALIGNOF_VOID_P $ac_cv_alignof_void_p
19013 ac_config_files="$ac_config_files Makefile fontconfig/Makefile fc-lang/Makefile fc-case/Makefile src/Makefile conf.d/Makefile fc-cache/Makefile fc-cat/Makefile fc-conflist/Makefile fc-list/Makefile fc-match/Makefile fc-pattern/Makefile fc-query/Makefile fc-scan/Makefile fc-validate/Makefile doc/Makefile doc/version.sgml its/Makefile po/Makefile.in po-conf/Makefile.in test/Makefile fontconfig.spec fontconfig.pc fontconfig-zip"
19015 cat >confcache <<\_ACEOF
19016 # This file is a shell script that caches the results of configure
19017 # tests run on this system so they can be shared between configure
19018 # scripts and configure runs, see configure's option --config-cache.
19019 # It is not useful on other systems. If it contains results you don't
19020 # want to keep, you may remove or edit it.
19022 # config.status only pays attention to the cache file if you give it
19023 # the --recheck option to rerun configure.
19025 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19026 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19027 # following values.
19031 # The following way of writing the cache mishandles newlines in values,
19032 # but we know of no workaround that is simple, portable, and efficient.
19033 # So, we kill variables containing newlines.
19034 # Ultrix sh set writes to stderr and can't be redirected directly,
19035 # and sets the high bit in the cache file unless we assign to the vars.
19037 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19038 eval ac_val=\$$ac_var
19042 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19043 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19046 _ | IFS | as_nl) ;; #(
19047 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19048 *) { eval $ac_var=; unset $ac_var;} ;;
19054 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19055 *${as_nl}ac_space=\ *)
19056 # `set' does not quote correctly, so add quotes: double-quote
19057 # substitution turns \\\\ into \\, and sed turns \\ into \.
19060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19063 # `set' quotes correctly as required by POSIX, so do not add quotes.
19064 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19073 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19075 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19077 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19078 if test -w "$cache_file"; then
19079 if test "x$cache_file" != "x/dev/null"; then
19080 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19081 $as_echo "$as_me: updating cache $cache_file" >&6;}
19082 if test ! -f "$cache_file" || test -h "$cache_file"; then
19083 cat confcache >"$cache_file"
19085 case $cache_file in #(
19087 mv -f confcache "$cache_file"$$ &&
19088 mv -f "$cache_file"$$ "$cache_file" ;; #(
19090 mv -f confcache "$cache_file" ;;
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19096 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19101 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19102 # Let make expand exec_prefix.
19103 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19105 DEFS=-DHAVE_CONFIG_H
19110 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19111 # 1. Remove the extension, and $U if already installed.
19112 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19113 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19114 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19115 # will be set to the directory where LIBOBJS objects are built.
19116 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19117 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19119 LIBOBJS=$ac_libobjs
19121 LTLIBOBJS=$ac_ltlibobjs
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19125 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19126 if test -n "$am_sleep_pid"; then
19127 # Hide warnings about reused PIDs.
19128 wait $am_sleep_pid 2>/dev/null
19130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19131 $as_echo "done" >&6; }
19132 if test -n "$EXEEXT"; then
19134 am__EXEEXT_FALSE='#'
19136 am__EXEEXT_TRUE='#'
19140 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19141 as_fn_error $? "conditional \"AMDEP\" was never defined.
19142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19144 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19145 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19148 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
19149 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
19150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19152 if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
19153 as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined.
19154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19156 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
19157 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
19158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19160 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
19161 as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined.
19162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19164 if test -z "${FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE}" && test -z "${FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE}"; then
19165 as_fn_error $? "conditional \"FREETYPE_PCF_LONG_FAMILY_NAMES\" was never defined.
19166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19168 if test -z "${ENABLE_JSONC_TRUE}" && test -z "${ENABLE_JSONC_FALSE}"; then
19169 as_fn_error $? "conditional \"ENABLE_JSONC\" was never defined.
19170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19172 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
19173 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
19174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19176 if test -z "${USEDOCBOOK_TRUE}" && test -z "${USEDOCBOOK_FALSE}"; then
19177 as_fn_error $? "conditional \"USEDOCBOOK\" was never defined.
19178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19180 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
19181 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
19182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19186 : "${CONFIG_STATUS=./config.status}"
19188 ac_clean_files_save=$ac_clean_files
19189 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19190 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19191 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19193 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19195 # Generated by $as_me.
19196 # Run this file to recreate the current configuration.
19197 # Compiler output produced by configure, useful for debugging
19198 # configure, is in config.log if it exists.
19201 ac_cs_recheck=false
19204 SHELL=\${CONFIG_SHELL-$SHELL}
19207 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19208 ## -------------------- ##
19209 ## M4sh Initialization. ##
19210 ## -------------------- ##
19212 # Be more Bourne compatible
19213 DUALCASE=1; export DUALCASE # for MKS sh
19214 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19217 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19218 # is contrary to our usage. Disable this feature.
19219 alias -g '${1+"$@"}'='"$@"'
19220 setopt NO_GLOB_SUBST
19222 case `(set -o) 2>/dev/null` in #(
19234 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19235 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19236 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19237 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19238 # Prefer a ksh shell builtin over an external printf program on Solaris,
19239 # but without wasting forks for bash or zsh.
19240 if test -z "$BASH_VERSION$ZSH_VERSION" \
19241 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19242 as_echo='print -r --'
19243 as_echo_n='print -rn --'
19244 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19245 as_echo='printf %s\n'
19246 as_echo_n='printf %s'
19248 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19249 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19250 as_echo_n='/usr/ucb/echo -n'
19252 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19253 as_echo_n_body='eval
19257 expr "X$arg" : "X\\(.*\\)$as_nl";
19258 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19260 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19262 export as_echo_n_body
19263 as_echo_n='sh -c $as_echo_n_body as_echo'
19265 export as_echo_body
19266 as_echo='sh -c $as_echo_body as_echo'
19269 # The user is always right.
19270 if test "${PATH_SEPARATOR+set}" != set; then
19272 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19273 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19280 # We need space, tab and new line, in precisely that order. Quoting is
19281 # there to prevent editors from complaining about space-tab.
19282 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19283 # splitting by setting IFS to empty value.)
19286 # Find who we are. Look in the path if we contain no directory separator.
19289 *[\\/]* ) as_myself=$0 ;;
19290 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19291 for as_dir in $PATH
19294 test -z "$as_dir" && as_dir=.
19295 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19301 # We did not find ourselves, most probably we were run as `sh COMMAND'
19302 # in which case we are not to be found in the path.
19303 if test "x$as_myself" = x; then
19306 if test ! -f "$as_myself"; then
19307 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19311 # Unset variables that we do not need and which cause bugs (e.g. in
19312 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19313 # suppresses any "Segmentation fault" message there. '((' could
19314 # trigger a bug in pdksh 5.2.14.
19315 for as_var in BASH_ENV ENV MAIL MAILPATH
19316 do eval test x\${$as_var+set} = xset \
19317 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19330 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19333 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19334 # ----------------------------------------
19335 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19336 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19337 # script with STATUS, using 1 if that was 0.
19340 as_status=$1; test $as_status -eq 0 && as_status=1
19342 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19343 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19345 $as_echo "$as_me: error: $2" >&2
19346 as_fn_exit $as_status
19350 # as_fn_set_status STATUS
19351 # -----------------------
19352 # Set $? to STATUS, without forking.
19353 as_fn_set_status ()
19356 } # as_fn_set_status
19358 # as_fn_exit STATUS
19359 # -----------------
19360 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19364 as_fn_set_status $1
19370 # Portably unset VAR.
19373 { eval $1=; unset $1;}
19375 as_unset=as_fn_unset
19376 # as_fn_append VAR VALUE
19377 # ----------------------
19378 # Append the text in VALUE to the end of the definition contained in VAR. Take
19379 # advantage of any shell optimizations that allow amortized linear growth over
19380 # repeated appends, instead of the typical quadratic growth present in naive
19382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19383 eval 'as_fn_append ()
19394 # as_fn_arith ARG...
19395 # ------------------
19396 # Perform arithmetic evaluation on the ARGs, and store the result in the
19397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19398 # must be portable across $(()) and expr.
19399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19400 eval 'as_fn_arith ()
19407 as_val=`expr "$@" || test $? -eq 1`
19412 if expr a : '\(a\)' >/dev/null 2>&1 &&
19413 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19419 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19420 as_basename=basename
19425 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19431 as_me=`$as_basename -- "$0" ||
19432 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19433 X"$0" : 'X\(//\)$' \| \
19434 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19436 sed '/^.*\/\([^/][^/]*\)\/*$/{
19450 # Avoid depending upon Character Ranges.
19451 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19452 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19453 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19454 as_cr_digits='0123456789'
19455 as_cr_alnum=$as_cr_Letters$as_cr_digits
19457 ECHO_C= ECHO_N= ECHO_T=
19458 case `echo -n x` in #(((((
19460 case `echo 'xy\c'` in
19461 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19463 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19470 rm -f conf$$ conf$$.exe conf$$.file
19471 if test -d conf$$.dir; then
19472 rm -f conf$$.dir/conf$$.file
19475 mkdir conf$$.dir 2>/dev/null
19477 if (echo >conf$$.file) 2>/dev/null; then
19478 if ln -s conf$$.file conf$$ 2>/dev/null; then
19480 # ... but there are two gotchas:
19481 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19482 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19483 # In both cases, we have to default to `cp -pR'.
19484 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19486 elif ln conf$$.file conf$$ 2>/dev/null; then
19494 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19495 rmdir conf$$.dir 2>/dev/null
19500 # Create "$as_dir" as a directory, including parents if necessary.
19505 -*) as_dir=./$as_dir;;
19507 test -d "$as_dir" || eval $as_mkdir_p || {
19511 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19512 *) as_qdir=$as_dir;;
19514 as_dirs="'$as_qdir' $as_dirs"
19515 as_dir=`$as_dirname -- "$as_dir" ||
19516 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19517 X"$as_dir" : 'X\(//\)[^/]' \| \
19518 X"$as_dir" : 'X\(//\)$' \| \
19519 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19520 $as_echo X"$as_dir" |
19521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19525 /^X\(\/\/\)[^/].*/{
19538 test -d "$as_dir" && break
19540 test -z "$as_dirs" || eval "mkdir $as_dirs"
19541 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19545 if mkdir -p . 2>/dev/null; then
19546 as_mkdir_p='mkdir -p "$as_dir"'
19548 test -d ./-p && rmdir ./-p
19553 # as_fn_executable_p FILE
19554 # -----------------------
19555 # Test if FILE is an executable regular file.
19556 as_fn_executable_p ()
19558 test -f "$1" && test -x "$1"
19559 } # as_fn_executable_p
19560 as_test_x='test -x'
19561 as_executable_p=as_fn_executable_p
19563 # Sed expression to map a string onto a valid CPP name.
19564 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19566 # Sed expression to map a string onto a valid variable name.
19567 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19571 ## ----------------------------------- ##
19572 ## Main body of $CONFIG_STATUS script. ##
19573 ## ----------------------------------- ##
19575 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19578 # Save the log message, to keep $0 and so on meaningful, and to
19579 # report actual input values of CONFIG_FILES etc. instead of their
19580 # values after options handling.
19582 This file was extended by fontconfig $as_me 2.13.1, which was
19583 generated by GNU Autoconf 2.69. Invocation command line was
19585 CONFIG_FILES = $CONFIG_FILES
19586 CONFIG_HEADERS = $CONFIG_HEADERS
19587 CONFIG_LINKS = $CONFIG_LINKS
19588 CONFIG_COMMANDS = $CONFIG_COMMANDS
19591 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19596 case $ac_config_files in *"
19597 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19600 case $ac_config_headers in *"
19601 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19606 # Files that config.status was made for.
19607 config_files="$ac_config_files"
19608 config_headers="$ac_config_headers"
19609 config_commands="$ac_config_commands"
19613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19615 \`$as_me' instantiates files and other configuration actions
19616 from templates according to the current configuration. Unless the files
19617 and actions are specified as TAGs, all are instantiated by default.
19619 Usage: $0 [OPTION]... [TAG]...
19621 -h, --help print this help, then exit
19622 -V, --version print version number and configuration settings, then exit
19623 --config print configuration, then exit
19624 -q, --quiet, --silent
19625 do not print progress messages
19626 -d, --debug don't remove temporary files
19627 --recheck update $as_me by reconfiguring in the same conditions
19628 --file=FILE[:TEMPLATE]
19629 instantiate the configuration file FILE
19630 --header=FILE[:TEMPLATE]
19631 instantiate the configuration header FILE
19633 Configuration files:
19636 Configuration headers:
19639 Configuration commands:
19642 Report bugs to <https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new>."
19645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19646 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19648 fontconfig config.status 2.13.1
19649 configured by $0, generated by GNU Autoconf 2.69,
19650 with options \\"\$ac_cs_config\\"
19652 Copyright (C) 2012 Free Software Foundation, Inc.
19653 This config.status script is free software; the Free Software Foundation
19654 gives unlimited permission to copy, distribute and modify it."
19661 test -n "\$AWK" || AWK=awk
19664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19665 # The default lists apply if the user does not specify any file.
19671 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19672 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19676 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19688 # Handling of the options.
19689 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19691 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19692 $as_echo "$ac_cs_version"; exit ;;
19693 --config | --confi | --conf | --con | --co | --c )
19694 $as_echo "$ac_cs_config"; exit ;;
19695 --debug | --debu | --deb | --de | --d | -d )
19697 --file | --fil | --fi | --f )
19700 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19701 '') as_fn_error $? "missing file argument" ;;
19703 as_fn_append CONFIG_FILES " '$ac_optarg'"
19704 ac_need_defaults=false;;
19705 --header | --heade | --head | --hea )
19708 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19710 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19711 ac_need_defaults=false;;
19713 # Conflict between --help and --header
19714 as_fn_error $? "ambiguous option: \`$1'
19715 Try \`$0 --help' for more information.";;
19716 --help | --hel | -h )
19717 $as_echo "$ac_cs_usage"; exit ;;
19718 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19719 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19722 # This is an error.
19723 -*) as_fn_error $? "unrecognized option: \`$1'
19724 Try \`$0 --help' for more information." ;;
19726 *) as_fn_append ac_config_targets " $1"
19727 ac_need_defaults=false ;;
19733 ac_configure_extra_args=
19735 if $ac_cs_silent; then
19737 ac_configure_extra_args="$ac_configure_extra_args --silent"
19741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19742 if \$ac_cs_recheck; then
19743 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19745 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19746 CONFIG_SHELL='$SHELL'
19747 export CONFIG_SHELL
19752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19756 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19757 ## Running $as_me. ##
19763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19767 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19770 # The HP-UX ksh and POSIX shell print the target directory to stdout
19771 # if CDPATH is set.
19772 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19774 sed_quote_subst='$sed_quote_subst'
19775 double_quote_subst='$double_quote_subst'
19776 delay_variable_subst='$delay_variable_subst'
19777 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19778 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19779 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19780 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19781 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19782 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19783 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19784 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19785 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19786 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19787 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19788 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19789 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19790 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19791 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19792 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19793 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19794 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19795 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19796 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19797 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19798 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19799 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19800 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19801 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19802 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19803 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19804 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19805 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19806 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19807 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19808 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19809 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19810 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19811 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19812 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19813 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19814 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19815 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19816 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19817 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19818 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19819 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19820 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19821 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19822 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19823 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19824 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19825 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19826 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19827 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19828 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19829 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19830 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19831 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19832 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19833 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19834 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19835 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19836 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"`'
19837 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19838 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19839 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19840 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19841 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19842 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19843 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19844 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19845 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19846 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19847 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19848 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19849 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19850 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19851 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19852 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19853 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19854 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19855 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19856 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19857 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19858 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19859 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19860 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19861 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19862 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19863 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19864 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19865 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19866 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19867 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19868 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19869 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19870 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19871 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19872 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19873 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19874 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19875 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19876 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19877 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19878 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19879 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19880 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19881 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19882 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19883 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19884 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19885 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19886 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19887 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19888 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19889 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19890 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19891 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19892 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19893 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19894 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19895 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19896 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19897 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19898 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19899 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19900 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19901 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19902 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19903 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19904 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19905 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19906 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19907 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19908 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19909 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19910 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19911 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19912 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19915 LTCFLAGS='$LTCFLAGS'
19916 compiler='$compiler_DEFAULT'
19918 # A function that is used when there is no print builtin or printf.
19919 func_fallback_echo ()
19921 eval 'cat <<_LTECHO_EOF
19926 # Quote evaled strings.
19943 deplibs_check_method \
19947 sharedlib_from_linklib_cmd \
19950 archiver_list_spec \
19956 lt_cv_sys_global_symbol_pipe \
19957 lt_cv_sys_global_symbol_to_cdecl \
19958 lt_cv_sys_global_symbol_to_import \
19959 lt_cv_sys_global_symbol_to_c_name_address \
19960 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19961 lt_cv_nm_interface \
19962 nm_file_list_spec \
19963 lt_cv_truncate_bin \
19964 lt_prog_compiler_no_builtin_flag \
19965 lt_prog_compiler_pic \
19966 lt_prog_compiler_wl \
19967 lt_prog_compiler_static \
19968 lt_cv_prog_compiler_c_o \
19977 export_dynamic_flag_spec \
19978 whole_archive_flag_spec \
19979 compiler_needs_object \
19981 allow_undefined_flag \
19982 no_undefined_flag \
19983 hardcode_libdir_flag_spec \
19984 hardcode_libdir_separator \
19988 variables_saved_for_relink \
19990 library_names_spec \
19992 install_override_mode \
19996 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19997 *[\\\\\\\`\\"\\\$]*)
19998 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20001 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20006 # Double-quote double-evaled strings.
20007 for var in reload_cmds \
20008 old_postinstall_cmds \
20009 old_postuninstall_cmds \
20011 extract_expsyms_cmds \
20012 old_archive_from_new_cmds \
20013 old_archive_from_expsyms_cmds \
20015 archive_expsym_cmds \
20017 module_expsym_cmds \
20018 export_symbols_cmds \
20022 postuninstall_cmds \
20024 sys_lib_search_path_spec \
20025 configure_time_dlsearch_path \
20026 configure_time_lt_sys_library_path; do
20027 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20028 *[\\\\\\\`\\"\\\$]*)
20029 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20032 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20037 ac_aux_dir='$ac_aux_dir'
20039 # See if we are running on zsh, and set the options that allow our
20040 # commands through without removal of \ escapes INIT.
20041 if test -n "\${ZSH_VERSION+set}"; then
20042 setopt NO_GLOB_SUBST
20053 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20054 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
20055 # from automake < 1.5.
20056 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20057 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20058 LINGUAS="${LINGUAS-%UNSET%}"
20060 # variables for create stdint.h replacement
20063 ac_stdint_h="$ac_stdint_h"
20064 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
20065 ac_cv_stdint_message="$ac_cv_stdint_message"
20066 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
20067 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
20068 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
20069 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
20070 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
20071 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
20072 ac_cv_char_data_model="$ac_cv_char_data_model"
20073 ac_cv_long_data_model="$ac_cv_long_data_model"
20074 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
20075 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
20076 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
20081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20083 # Handling of arguments.
20084 for ac_config_target in $ac_config_targets
20086 case $ac_config_target in
20087 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20088 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20089 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20090 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
20091 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
20092 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20093 "fontconfig/Makefile") CONFIG_FILES="$CONFIG_FILES fontconfig/Makefile" ;;
20094 "fc-lang/Makefile") CONFIG_FILES="$CONFIG_FILES fc-lang/Makefile" ;;
20095 "fc-case/Makefile") CONFIG_FILES="$CONFIG_FILES fc-case/Makefile" ;;
20096 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20097 "conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES conf.d/Makefile" ;;
20098 "fc-cache/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cache/Makefile" ;;
20099 "fc-cat/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cat/Makefile" ;;
20100 "fc-conflist/Makefile") CONFIG_FILES="$CONFIG_FILES fc-conflist/Makefile" ;;
20101 "fc-list/Makefile") CONFIG_FILES="$CONFIG_FILES fc-list/Makefile" ;;
20102 "fc-match/Makefile") CONFIG_FILES="$CONFIG_FILES fc-match/Makefile" ;;
20103 "fc-pattern/Makefile") CONFIG_FILES="$CONFIG_FILES fc-pattern/Makefile" ;;
20104 "fc-query/Makefile") CONFIG_FILES="$CONFIG_FILES fc-query/Makefile" ;;
20105 "fc-scan/Makefile") CONFIG_FILES="$CONFIG_FILES fc-scan/Makefile" ;;
20106 "fc-validate/Makefile") CONFIG_FILES="$CONFIG_FILES fc-validate/Makefile" ;;
20107 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20108 "doc/version.sgml") CONFIG_FILES="$CONFIG_FILES doc/version.sgml" ;;
20109 "its/Makefile") CONFIG_FILES="$CONFIG_FILES its/Makefile" ;;
20110 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20111 "po-conf/Makefile.in") CONFIG_FILES="$CONFIG_FILES po-conf/Makefile.in" ;;
20112 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
20113 "fontconfig.spec") CONFIG_FILES="$CONFIG_FILES fontconfig.spec" ;;
20114 "fontconfig.pc") CONFIG_FILES="$CONFIG_FILES fontconfig.pc" ;;
20115 "fontconfig-zip") CONFIG_FILES="$CONFIG_FILES fontconfig-zip" ;;
20117 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20122 # If the user did not use the arguments to specify the items to instantiate,
20123 # then the envvar interface is used. Set only those that are not.
20124 # We use the long form for the default assignment because of an extremely
20125 # bizarre bug on SunOS 4.1.3.
20126 if $ac_need_defaults; then
20127 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20128 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20129 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20132 # Have a temporary directory for convenience. Make it in the build tree
20133 # simply because there is no reason against having it here, and in addition,
20134 # creating and moving files from /tmp can sometimes cause problems.
20135 # Hook for its removal unless debugging.
20136 # Note that there is a small window in which the directory will not be cleaned:
20137 # after its creation but before its name has been assigned to `$tmp'.
20141 trap 'exit_status=$?
20142 : "${ac_tmp:=$tmp}"
20143 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20145 trap 'as_fn_exit 1' 1 2 13 15
20147 # Create a (secure) tmp directory for tmp files.
20150 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20154 tmp=./conf$$-$RANDOM
20155 (umask 077 && mkdir "$tmp")
20156 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20159 # Set up the scripts for CONFIG_FILES section.
20160 # No need to generate them if there are no CONFIG_FILES.
20161 # This happens for instance with `./config.status config.h'.
20162 if test -n "$CONFIG_FILES"; then
20165 ac_cr=`echo X | tr X '\015'`
20166 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20167 # But we know of no other shell where ac_cr would be empty at this
20168 # point, so we can use a bashism as a fallback.
20169 if test "x$ac_cr" = x; then
20170 eval ac_cr=\$\'\\r\'
20172 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20173 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20176 ac_cs_awk_cr=$ac_cr
20179 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20184 echo "cat >conf$$subs.awk <<_ACEOF" &&
20185 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20187 } >conf$$subs.sh ||
20188 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20189 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20191 for ac_last_try in false false false false false :; do
20192 . ./conf$$subs.sh ||
20193 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20195 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20196 if test $ac_delim_n = $ac_delim_num; then
20198 elif $ac_last_try; then
20199 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20201 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20204 rm -f conf$$subs.sh
20206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20207 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20211 s/^/S["/; s/!.*/"]=/
20221 s/\(.\{148\}\)..*/\1/
20223 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20228 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20235 s/\(.\{148\}\)..*/\1/
20237 s/["\\]/\\&/g; s/^/"/; s/$/"/
20241 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20246 ' <conf$$subs.awk | sed '
20251 ' >>$CONFIG_STATUS || ac_write_fail=1
20252 rm -f conf$$subs.awk
20253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20255 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20256 for (key in S) S_is_set[key] = 1
20262 nfields = split(line, field, "@")
20264 len = length(field[1])
20265 for (i = 2; i < nfields; i++) {
20267 keylen = length(key)
20268 if (S_is_set[key]) {
20270 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20271 len += length(value) + length(field[++i])
20282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20283 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20284 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20287 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20288 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20291 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20292 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20293 # trailing colons and then remove the whole line if VPATH becomes empty
20294 # (actually we leave an empty line to preserve line numbers).
20295 if test "x$srcdir" = x.; then
20296 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20315 fi # test -n "$CONFIG_FILES"
20317 # Set up the scripts for CONFIG_HEADERS section.
20318 # No need to generate them if there are no CONFIG_HEADERS.
20319 # This happens for instance with `./config.status Makefile'.
20320 if test -n "$CONFIG_HEADERS"; then
20321 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20325 # Transform confdefs.h into an awk script `defines.awk', embedded as
20326 # here-document in config.status, that substitutes the proper values into
20327 # config.h.in to produce config.h.
20329 # Create a delimiter string that does not exist in confdefs.h, to ease
20330 # handling of long lines.
20332 for ac_last_try in false false :; do
20333 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20334 if test -z "$ac_tt"; then
20336 elif $ac_last_try; then
20337 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20339 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20343 # For the awk script, D is an array of macro values keyed by name,
20344 # likewise P contains macro parameters if any. Preserve backslash
20345 # newline sequences.
20347 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20349 s/.\{148\}/&'"$ac_delim"'/g
20352 s/^[ ]*#[ ]*define[ ][ ]*/ /
20359 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20361 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20365 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20366 D["\1"]=" \3\\\\\\n"\\/p
20368 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20373 s/.\{148\}/&'"$ac_delim"'/g
20378 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20381 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20383 ' <confdefs.h | sed '
20384 s/'"$ac_delim"'/"\\\
20385 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20388 for (key in D) D_is_set[key] = 1
20391 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20393 split(line, arg, " ")
20394 if (arg[1] == "#") {
20398 defundef = substr(arg[1], 2)
20401 split(mac1, mac2, "(") #)
20403 prefix = substr(line, 1, index(line, defundef) - 1)
20404 if (D_is_set[macro]) {
20405 # Preserve the white space surrounding the "#".
20406 print prefix "define", macro P[macro] D[macro]
20409 # Replace #undef with comments. This is necessary, for example,
20410 # in the case of _POSIX_SOURCE, which is predefined and required
20411 # on some systems where configure will not decide to define it.
20412 if (defundef == "undef") {
20413 print "/*", prefix defundef, macro, "*/"
20421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20422 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20423 fi # test -n "$CONFIG_HEADERS"
20426 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20431 :[FHLC]) ac_mode=$ac_tag; continue;;
20433 case $ac_mode$ac_tag in
20435 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20436 :[FH]-) ac_tag=-:-;;
20437 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20454 -) ac_f="$ac_tmp/stdin";;
20455 *) # Look for the file first in the build tree, then in the source tree
20456 # (if the path is not absolute). The absolute path cannot be DOS-style,
20457 # because $ac_f cannot contain `:'.
20461 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20463 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20465 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20466 as_fn_append ac_file_inputs " '$ac_f'"
20469 # Let's still pretend it is `configure' which instantiates (i.e., don't
20470 # use $as_me), people would be surprised to read:
20471 # /* config.h. Generated by config.status. */
20472 configure_input='Generated from '`
20473 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20475 if test x"$ac_file" != x-; then
20476 configure_input="$ac_file. $configure_input"
20477 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20478 $as_echo "$as_me: creating $ac_file" >&6;}
20480 # Neutralize special characters interpreted by sed in replacement strings.
20481 case $configure_input in #(
20482 *\&* | *\|* | *\\* )
20483 ac_sed_conf_input=`$as_echo "$configure_input" |
20484 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20485 *) ac_sed_conf_input=$configure_input;;
20489 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20490 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20495 ac_dir=`$as_dirname -- "$ac_file" ||
20496 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20497 X"$ac_file" : 'X\(//\)[^/]' \| \
20498 X"$ac_file" : 'X\(//\)$' \| \
20499 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20500 $as_echo X"$ac_file" |
20501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20505 /^X\(\/\/\)[^/].*/{
20518 as_dir="$ac_dir"; as_fn_mkdir_p
20522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20524 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20525 # A ".." for each directory in $ac_dir_suffix.
20526 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20527 case $ac_top_builddir_sub in
20528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20532 ac_abs_top_builddir=$ac_pwd
20533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20534 # for backward compatibility:
20535 ac_top_builddir=$ac_top_build_prefix
20538 .) # We are building in place.
20540 ac_top_srcdir=$ac_top_builddir_sub
20541 ac_abs_top_srcdir=$ac_pwd ;;
20542 [\\/]* | ?:[\\/]* ) # Absolute name.
20543 ac_srcdir=$srcdir$ac_dir_suffix;
20544 ac_top_srcdir=$srcdir
20545 ac_abs_top_srcdir=$srcdir ;;
20546 *) # Relative name.
20547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20548 ac_top_srcdir=$ac_top_build_prefix$srcdir
20549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20561 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20562 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20564 ac_MKDIR_P=$MKDIR_P
20566 [\\/$]* | ?:[\\/]* ) ;;
20567 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20572 # If the template does not know about datarootdir, expand it.
20573 # FIXME: This hack should be removed a few years after 2.60.
20574 ac_datarootdir_hack=; ac_datarootdir_seen=
20585 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20586 *datarootdir*) ac_datarootdir_seen=yes;;
20587 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20589 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20592 ac_datarootdir_hack='
20593 s&@datadir@&$datadir&g
20594 s&@docdir@&$docdir&g
20595 s&@infodir@&$infodir&g
20596 s&@localedir@&$localedir&g
20597 s&@mandir@&$mandir&g
20598 s&\\\${datarootdir}&$datarootdir&g' ;;
20602 # Neutralize VPATH when `$srcdir' = `.'.
20603 # Shell code in configure.ac might set extrasub.
20604 # FIXME: do we really want to maintain this feature?
20605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20606 ac_sed_extra="$ac_vpsub
20609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20611 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20612 s|@configure_input@|$ac_sed_conf_input|;t t
20613 s&@top_builddir@&$ac_top_builddir_sub&;t t
20614 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20615 s&@srcdir@&$ac_srcdir&;t t
20616 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20617 s&@top_srcdir@&$ac_top_srcdir&;t t
20618 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20619 s&@builddir@&$ac_builddir&;t t
20620 s&@abs_builddir@&$ac_abs_builddir&;t t
20621 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20622 s&@INSTALL@&$ac_INSTALL&;t t
20623 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20624 $ac_datarootdir_hack
20626 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20627 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20629 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20630 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20631 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20632 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20634 which seems to be undefined. Please make sure it is defined" >&5
20635 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20636 which seems to be undefined. Please make sure it is defined" >&2;}
20638 rm -f "$ac_tmp/stdin"
20640 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20641 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20643 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20649 if test x"$ac_file" != x-; then
20651 $as_echo "/* $configure_input */" \
20652 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20653 } >"$ac_tmp/config.h" \
20654 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20655 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20656 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20657 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20660 mv "$ac_tmp/config.h" "$ac_file" \
20661 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20664 $as_echo "/* $configure_input */" \
20665 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20666 || as_fn_error $? "could not create -" "$LINENO" 5
20668 # Compute "$ac_file"'s index in $config_headers.
20671 for _am_header in $config_headers :; do
20672 case $_am_header in
20673 $_am_arg | $_am_arg:* )
20676 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20679 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20680 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20681 X"$_am_arg" : 'X\(//\)[^/]' \| \
20682 X"$_am_arg" : 'X\(//\)$' \| \
20683 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20684 $as_echo X"$_am_arg" |
20685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20689 /^X\(\/\/\)[^/].*/{
20701 s/.*/./; q'`/stamp-h$_am_stamp_count
20704 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20705 $as_echo "$as_me: executing $ac_file commands" >&6;}
20710 case $ac_file$ac_mode in
20711 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20712 # Older Autoconf quotes --file arguments for eval, but not when files
20713 # are listed without --file. Let's play safe and only enable the eval
20714 # if we detect the quoting.
20715 # TODO: see whether this extra hack can be removed once we start
20716 # requiring Autoconf 2.70 or later.
20717 case $CONFIG_FILES in #(
20719 eval set x "$CONFIG_FILES" ;; #(
20721 set x $CONFIG_FILES ;; #(
20726 # Used to flag and report bootstrapping failures.
20730 # Strip MF so we end up with the name of the file.
20731 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
20732 # Check whether this is an Automake generated Makefile which includes
20733 # dependency-tracking related rules and includes.
20734 # Grep'ing the whole file directly is not great: AIX grep has a line
20735 # limit of 2048, but all sed's we know have understand at least 4000.
20736 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20738 am_dirpart=`$as_dirname -- "$am_mf" ||
20739 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20740 X"$am_mf" : 'X\(//\)[^/]' \| \
20741 X"$am_mf" : 'X\(//\)$' \| \
20742 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20743 $as_echo X"$am_mf" |
20744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20748 /^X\(\/\/\)[^/].*/{
20761 am_filepart=`$as_basename -- "$am_mf" ||
20762 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20763 X"$am_mf" : 'X\(//\)$' \| \
20764 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20765 $as_echo X/"$am_mf" |
20766 sed '/^.*\/\([^/][^/]*\)\/*$/{
20779 { echo "$as_me:$LINENO: cd "$am_dirpart" \
20780 && sed -e '/# am--include-marker/d' "$am_filepart" \
20781 | $MAKE -f - am--depfiles" >&5
20782 (cd "$am_dirpart" \
20783 && sed -e '/# am--include-marker/d' "$am_filepart" \
20784 | $MAKE -f - am--depfiles) >&5 2>&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } || am_rc=$?
20789 if test $am_rc -ne 0; then
20790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20792 as_fn_error $? "Something went wrong bootstrapping makefile fragments
20793 for automatic dependency tracking. Try re-running configure with the
20794 '--disable-dependency-tracking' option to at least be able to build
20795 the package (albeit without support for automatic dependency tracking).
20796 See \`config.log' for more details" "$LINENO" 5; }
20798 { am_dirpart=; unset am_dirpart;}
20799 { am_filepart=; unset am_filepart;}
20800 { am_mf=; unset am_mf;}
20801 { am_rc=; unset am_rc;}
20802 rm -f conftest-deps.mk
20807 # See if we are running on zsh, and set the options that allow our
20808 # commands through without removal of \ escapes.
20809 if test -n "${ZSH_VERSION+set}"; then
20810 setopt NO_GLOB_SUBST
20814 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20817 cat <<_LT_EOF >> "$cfgfile"
20819 # Generated automatically by $as_me ($PACKAGE) $VERSION
20820 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20821 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20823 # Provide generalized library-building support services.
20824 # Written by Gordon Matzigkeit, 1996
20826 # Copyright (C) 2014 Free Software Foundation, Inc.
20827 # This is free software; see the source for copying conditions. There is NO
20828 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20830 # GNU Libtool is free software; you can redistribute it and/or modify
20831 # it under the terms of the GNU General Public License as published by
20832 # the Free Software Foundation; either version 2 of of the License, or
20833 # (at your option) any later version.
20835 # As a special exception to the GNU General Public License, if you
20836 # distribute this file as part of a program or library that is built
20837 # using GNU Libtool, you may include this file under the same
20838 # distribution terms that you use for the rest of that program.
20840 # GNU Libtool is distributed in the hope that it will be useful, but
20841 # WITHOUT ANY WARRANTY; without even the implied warranty of
20842 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20843 # GNU General Public License for more details.
20845 # You should have received a copy of the GNU General Public License
20846 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20849 # The names of the tagged configurations supported by this script.
20852 # Configured defaults for sys_lib_dlsearch_path munging.
20853 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20855 # ### BEGIN LIBTOOL CONFIG
20857 # Which release of libtool.m4 was used?
20858 macro_version=$macro_version
20859 macro_revision=$macro_revision
20861 # Whether or not to build static libraries.
20862 build_old_libs=$enable_static
20864 # Assembler program.
20867 # DLL creation program.
20868 DLLTOOL=$lt_DLLTOOL
20870 # Object dumper program.
20871 OBJDUMP=$lt_OBJDUMP
20873 # Whether or not to build shared libraries.
20874 build_libtool_libs=$enable_shared
20876 # What type of objects to build.
20879 # Whether or not to optimize for fast installation.
20880 fast_install=$enable_fast_install
20882 # Shared archive member basename,for filename based shared library versioning on AIX.
20883 shared_archive_member_spec=$shared_archive_member_spec
20885 # Shell to use when invoking shell scripts.
20888 # An echo program that protects backslashes.
20891 # The PATH separator for the build system.
20892 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20895 host_alias=$host_alias
20899 # The build system.
20900 build_alias=$build_alias
20904 # A sed program that does not truncate output.
20907 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20908 Xsed="\$SED -e 1s/^X//"
20910 # A grep program that handles long lines.
20916 # A literal string matcher.
20919 # A BSD- or MS-compatible name lister.
20922 # Whether we need soft or hard links.
20925 # What is the maximum length of a command?
20926 max_cmd_len=$max_cmd_len
20928 # Object file suffix (normally "o").
20931 # Executable file suffix (normally "").
20934 # whether the shell understands "unset".
20937 # turn spaces into newlines.
20940 # turn newlines into spaces.
20943 # convert \$build file names to \$host format.
20944 to_host_file_cmd=$lt_cv_to_host_file_cmd
20946 # convert \$build files to toolchain format.
20947 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20949 # Method to check whether dependent libraries are shared objects.
20950 deplibs_check_method=$lt_deplibs_check_method
20952 # Command to use when deplibs_check_method = "file_magic".
20953 file_magic_cmd=$lt_file_magic_cmd
20955 # How to find potential files when deplibs_check_method = "file_magic".
20956 file_magic_glob=$lt_file_magic_glob
20958 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20959 want_nocaseglob=$lt_want_nocaseglob
20961 # Command to associate shared and link libraries.
20962 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20967 # Flags to create an archive.
20968 AR_FLAGS=$lt_AR_FLAGS
20970 # How to feed a file listing to the archiver.
20971 archiver_list_spec=$lt_archiver_list_spec
20973 # A symbol stripping program.
20976 # Commands used to install an old-style archive.
20978 old_postinstall_cmds=$lt_old_postinstall_cmds
20979 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20981 # Whether to use a lock for old archive extraction.
20982 lock_old_archive_extraction=$lock_old_archive_extraction
20987 # LTCC compiler flags.
20988 LTCFLAGS=$lt_CFLAGS
20990 # Take the output of nm and produce a listing of raw symbols and C names.
20991 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20993 # Transform the output of nm in a proper C declaration.
20994 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20996 # Transform the output of nm into a list of symbols to manually relocate.
20997 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20999 # Transform the output of nm in a C name address pair.
21000 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21002 # Transform the output of nm in a C name address pair when lib prefix is needed.
21003 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21005 # The name lister interface.
21006 nm_interface=$lt_lt_cv_nm_interface
21008 # Specify filename containing input files for \$NM.
21009 nm_file_list_spec=$lt_nm_file_list_spec
21011 # The root where to search for dependent libraries,and where our libraries should be installed.
21012 lt_sysroot=$lt_sysroot
21014 # Command to truncate a binary pipe.
21015 lt_truncate_bin=$lt_lt_cv_truncate_bin
21017 # The name of the directory that contains temporary libtool files.
21020 # Used to examine libraries when file_magic_cmd begins with "file".
21021 MAGIC_CMD=$MAGIC_CMD
21023 # Must we lock files when doing compilation?
21024 need_locks=$lt_need_locks
21027 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21029 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21030 DSYMUTIL=$lt_DSYMUTIL
21032 # Tool to change global to local symbols on Mac OS X.
21035 # Tool to manipulate fat objects and archives on Mac OS X.
21038 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21041 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21042 OTOOL64=$lt_OTOOL64
21044 # Old archive suffix (normally "a").
21047 # Shared library suffix (normally ".so").
21048 shrext_cmds=$lt_shrext_cmds
21050 # The commands to extract the exported symbol list from a shared archive.
21051 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21053 # Variables whose values should be saved in libtool wrapper scripts and
21054 # restored at link time.
21055 variables_saved_for_relink=$lt_variables_saved_for_relink
21057 # Do we need the "lib" prefix for modules?
21058 need_lib_prefix=$need_lib_prefix
21060 # Do we need a version for libraries?
21061 need_version=$need_version
21063 # Library versioning type.
21064 version_type=$version_type
21066 # Shared library runtime path variable.
21067 runpath_var=$runpath_var
21069 # Shared library path variable.
21070 shlibpath_var=$shlibpath_var
21072 # Is shlibpath searched before the hard-coded library search path?
21073 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21075 # Format of library name prefix.
21076 libname_spec=$lt_libname_spec
21078 # List of archive names. First name is the real one, the rest are links.
21079 # The last name is the one that the linker finds with -lNAME
21080 library_names_spec=$lt_library_names_spec
21082 # The coded name of the library, if different from the real name.
21083 soname_spec=$lt_soname_spec
21085 # Permission mode override for installation of shared libraries.
21086 install_override_mode=$lt_install_override_mode
21088 # Command to use after installation of a shared archive.
21089 postinstall_cmds=$lt_postinstall_cmds
21091 # Command to use after uninstallation of a shared archive.
21092 postuninstall_cmds=$lt_postuninstall_cmds
21094 # Commands used to finish a libtool library installation in a directory.
21095 finish_cmds=$lt_finish_cmds
21097 # As "finish_cmds", except a single script fragment to be evaled but
21099 finish_eval=$lt_finish_eval
21101 # Whether we should hardcode library paths into libraries.
21102 hardcode_into_libs=$hardcode_into_libs
21104 # Compile-time system search path for libraries.
21105 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21107 # Detected run-time system search path for libraries.
21108 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21110 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21111 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21113 # Whether dlopen is supported.
21114 dlopen_support=$enable_dlopen
21116 # Whether dlopen of programs is supported.
21117 dlopen_self=$enable_dlopen_self
21119 # Whether dlopen of statically linked programs is supported.
21120 dlopen_self_static=$enable_dlopen_self_static
21122 # Commands to strip libraries.
21123 old_striplib=$lt_old_striplib
21124 striplib=$lt_striplib
21127 # The linker used to build libraries.
21130 # How to create reloadable object files.
21131 reload_flag=$lt_reload_flag
21132 reload_cmds=$lt_reload_cmds
21134 # Commands used to build an old-style archive.
21135 old_archive_cmds=$lt_old_archive_cmds
21137 # A language specific compiler.
21140 # Is the compiler the GNU compiler?
21143 # Compiler flag to turn off builtin functions.
21144 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21146 # Additional compiler flags for building library objects.
21147 pic_flag=$lt_lt_prog_compiler_pic
21149 # How to pass a linker flag through the compiler.
21150 wl=$lt_lt_prog_compiler_wl
21152 # Compiler flag to prevent dynamic linking.
21153 link_static_flag=$lt_lt_prog_compiler_static
21155 # Does compiler simultaneously support -c and -o options?
21156 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21158 # Whether or not to add -lc for building shared libraries.
21159 build_libtool_need_lc=$archive_cmds_need_lc
21161 # Whether or not to disallow shared libs when runtime libs are static.
21162 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21164 # Compiler flag to allow reflexive dlopens.
21165 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21167 # Compiler flag to generate shared objects directly from archives.
21168 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21170 # Whether the compiler copes with passing no objects directly.
21171 compiler_needs_object=$lt_compiler_needs_object
21173 # Create an old-style archive from a shared archive.
21174 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21176 # Create a temporary old-style archive to link instead of a shared archive.
21177 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21179 # Commands used to build a shared archive.
21180 archive_cmds=$lt_archive_cmds
21181 archive_expsym_cmds=$lt_archive_expsym_cmds
21183 # Commands used to build a loadable module if different from building
21184 # a shared archive.
21185 module_cmds=$lt_module_cmds
21186 module_expsym_cmds=$lt_module_expsym_cmds
21188 # Whether we are building with GNU ld or not.
21189 with_gnu_ld=$lt_with_gnu_ld
21191 # Flag that allows shared libraries with undefined symbols to be built.
21192 allow_undefined_flag=$lt_allow_undefined_flag
21194 # Flag that enforces no undefined symbols.
21195 no_undefined_flag=$lt_no_undefined_flag
21197 # Flag to hardcode \$libdir into a binary during linking.
21198 # This must work even if \$libdir does not exist
21199 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21201 # Whether we need a single "-rpath" flag with a separated argument.
21202 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21204 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21205 # DIR into the resulting binary.
21206 hardcode_direct=$hardcode_direct
21208 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21209 # DIR into the resulting binary and the resulting library dependency is
21210 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21211 # library is relocated.
21212 hardcode_direct_absolute=$hardcode_direct_absolute
21214 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21215 # into the resulting binary.
21216 hardcode_minus_L=$hardcode_minus_L
21218 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21219 # into the resulting binary.
21220 hardcode_shlibpath_var=$hardcode_shlibpath_var
21222 # Set to "yes" if building a shared library automatically hardcodes DIR
21223 # into the library and all subsequent libraries and executables linked
21225 hardcode_automatic=$hardcode_automatic
21227 # Set to yes if linker adds runtime paths of dependent libraries
21228 # to runtime path list.
21229 inherit_rpath=$inherit_rpath
21231 # Whether libtool must link a program against all its dependency libraries.
21232 link_all_deplibs=$link_all_deplibs
21234 # Set to "yes" if exported symbols are required.
21235 always_export_symbols=$always_export_symbols
21237 # The commands to list exported symbols.
21238 export_symbols_cmds=$lt_export_symbols_cmds
21240 # Symbols that should not be listed in the preloaded symbols.
21241 exclude_expsyms=$lt_exclude_expsyms
21243 # Symbols that must always be exported.
21244 include_expsyms=$lt_include_expsyms
21246 # Commands necessary for linking programs (against libraries) with templates.
21247 prelink_cmds=$lt_prelink_cmds
21249 # Commands necessary for finishing linking programs.
21250 postlink_cmds=$lt_postlink_cmds
21252 # Specify filename containing input files.
21253 file_list_spec=$lt_file_list_spec
21255 # How to hardcode a shared library path into an executable.
21256 hardcode_action=$hardcode_action
21258 # ### END LIBTOOL CONFIG
21262 cat <<'_LT_EOF' >> "$cfgfile"
21264 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21266 # func_munge_path_list VARIABLE PATH
21267 # -----------------------------------
21268 # VARIABLE is name of variable containing _space_ separated list of
21269 # directories to be munged by the contents of PATH, which is string
21272 # string "DIR[ DIR]" will be prepended to VARIABLE
21274 # string "DIR[ DIR]" will be appended to VARIABLE
21275 # "DIRP[:DIRP]::[DIRA:]DIRA"
21276 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21277 # "DIRA[ DIRA]" will be appended to VARIABLE
21279 # VARIABLE will be replaced by "DIR[ DIR]"
21280 func_munge_path_list ()
21286 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21289 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21292 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21293 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21296 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21302 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21303 func_cc_basename ()
21305 for cc_temp in $*""; do
21307 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21308 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21313 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21317 # ### END FUNCTIONS SHARED WITH CONFIGURE
21323 cat <<\_LT_EOF >> "$cfgfile"
21324 # AIX sometimes has problems with the GCC collect2 program. For some
21325 # reason, if we set the COLLECT_NAMES environment variable, the problems
21326 # vanish in a puff of smoke.
21327 if test set != "${COLLECT_NAMES+set}"; then
21329 export COLLECT_NAMES
21336 ltmain=$ac_aux_dir/ltmain.sh
21339 # We use sed instead of cat because bash on DJGPP gets confused if
21340 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21341 # text mode, it properly converts lines to CR/LF. This bash problem
21342 # is reportedly fixed, but why not run on old versions too?
21343 sed '$q' "$ltmain" >> "$cfgfile" \
21344 || (rm -f "$cfgfile"; exit 1)
21346 mv -f "$cfgfile" "$ofile" ||
21347 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21351 "po-directories":C)
21352 for ac_file in $CONFIG_FILES; do
21353 # Support "outfile[:infile[:infile...]]"
21355 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21357 # PO directories have a Makefile.in generated from Makefile.in.in.
21358 case "$ac_file" in */Makefile.in)
21359 # Adjust a relative srcdir.
21360 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21361 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
21362 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21363 # In autoconf-2.13 it is called $ac_given_srcdir.
21364 # In autoconf-2.50 it is called $srcdir.
21365 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21366 case "$ac_given_srcdir" in
21367 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21368 /*) top_srcdir="$ac_given_srcdir" ;;
21369 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
21371 # Treat a directory as a PO directory if and only if it has a
21372 # POTFILES.in file. This allows packages to have multiple PO
21373 # directories under different names or in different locations.
21374 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21375 rm -f "$ac_dir/POTFILES"
21376 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21377 gt_tab=`printf '\t'`
21378 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21379 POMAKEFILEDEPS="POTFILES.in"
21380 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
21381 # on $ac_dir but don't depend on user-specified configuration
21383 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21384 # The LINGUAS file contains the set of available languages.
21385 if test -n "$OBSOLETE_ALL_LINGUAS"; then
21386 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
21388 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21389 # Hide the ALL_LINGUAS assignment from automake < 1.5.
21390 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21391 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
21393 # The set of available languages was given in configure.in.
21394 # Hide the ALL_LINGUAS assignment from automake < 1.5.
21395 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
21398 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
21399 # Compute UPDATEPOFILES
21400 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
21401 # Compute DUMMYPOFILES
21402 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
21404 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
21405 case "$ac_given_srcdir" in
21407 *) srcdirpre='$(srcdir)/' ;;
21413 for lang in $ALL_LINGUAS; do
21414 POFILES="$POFILES $srcdirpre$lang.po"
21415 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
21416 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
21417 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
21419 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21420 # environment variable.
21422 if test -n "$ALL_LINGUAS"; then
21423 for presentlang in $ALL_LINGUAS; do
21425 if test "%UNSET%" != "$LINGUAS"; then
21426 desiredlanguages="$LINGUAS"
21428 desiredlanguages="$ALL_LINGUAS"
21430 for desiredlang in $desiredlanguages; do
21431 # Use the presentlang catalog if desiredlang is
21432 # a. equal to presentlang, or
21433 # b. a variant of presentlang (because in this case,
21434 # presentlang can be used as a fallback for messages
21435 # which are not translated in the desiredlang catalog).
21436 case "$desiredlang" in
21437 "$presentlang"*) useit=yes;;
21440 if test $useit = yes; then
21441 INST_LINGUAS="$INST_LINGUAS $presentlang"
21446 if test -n "$INST_LINGUAS"; then
21447 for lang in $INST_LINGUAS; do
21448 CATALOGS="$CATALOGS $lang.gmo"
21451 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21452 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
21453 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
21454 if test -f "$f"; then
21456 *.orig | *.bak | *~) ;;
21457 *) cat "$f" >> "$ac_dir/Makefile" ;;
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
21467 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
21468 ac_stdint=$tmp/_stdint.h
21470 echo "#ifndef" $_ac_stdint_h >$ac_stdint
21471 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
21472 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
21473 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
21474 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
21475 if test "_$ac_cv_header_stdint_t" != "_" ; then
21476 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
21477 echo "#include <stdint.h>" >>$ac_stdint
21478 echo "#endif" >>$ac_stdint
21479 echo "#endif" >>$ac_stdint
21482 cat >>$ac_stdint <<STDINT_EOF
21484 /* ................... shortcircuit part ........................... */
21486 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
21487 #include <stdint.h>
21489 #include <stddef.h>
21491 /* .................... configured part ............................ */
21495 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
21496 if test "_$ac_cv_header_stdint_x" != "_" ; then
21497 ac_header="$ac_cv_header_stdint_x"
21498 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
21500 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
21503 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
21504 if test "_$ac_cv_header_stdint_o" != "_" ; then
21505 ac_header="$ac_cv_header_stdint_o"
21506 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
21508 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
21511 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
21512 if test "_$ac_cv_header_stdint_u" != "_" ; then
21513 ac_header="$ac_cv_header_stdint_u"
21514 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
21516 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
21519 echo "" >>$ac_stdint
21521 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
21522 echo "#include <$ac_header>" >>$ac_stdint
21523 echo "" >>$ac_stdint
21526 echo "/* which 64bit typedef has been found */" >>$ac_stdint
21527 if test "$ac_cv_type_uint64_t" = "yes" ; then
21528 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
21530 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
21532 if test "$ac_cv_type_u_int64_t" = "yes" ; then
21533 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
21535 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
21537 echo "" >>$ac_stdint
21539 echo "/* which type model has been detected */" >>$ac_stdint
21540 if test "_$ac_cv_char_data_model" != "_" ; then
21541 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
21542 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
21544 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
21545 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
21547 echo "" >>$ac_stdint
21549 echo "/* whether int_least types were detected */" >>$ac_stdint
21550 if test "$ac_cv_type_int_least32_t" = "yes"; then
21551 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
21553 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
21555 echo "/* whether int_fast types were detected */" >>$ac_stdint
21556 if test "$ac_cv_type_int_fast32_t" = "yes"; then
21557 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
21559 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
21561 echo "/* whether intmax_t type was detected */" >>$ac_stdint
21562 if test "$ac_cv_type_intmax_t" = "yes"; then
21563 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
21565 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
21567 echo "" >>$ac_stdint
21569 cat >>$ac_stdint <<STDINT_EOF
21570 /* .................... detections part ............................ */
21572 /* whether we need to define bitspecific types from compiler base types */
21573 #ifndef _STDINT_HEADER_INTPTR
21574 #ifndef _STDINT_HEADER_UINT32
21575 #ifndef _STDINT_HEADER_U_INT32
21576 #define _STDINT_NEED_INT_MODEL_T
21578 #define _STDINT_HAVE_U_INT_TYPES
21583 #ifdef _STDINT_HAVE_U_INT_TYPES
21584 #undef _STDINT_NEED_INT_MODEL_T
21587 #ifdef _STDINT_CHAR_MODEL
21588 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
21589 #ifndef _STDINT_BYTE_MODEL
21590 #define _STDINT_BYTE_MODEL 12
21595 #ifndef _STDINT_HAVE_INT_LEAST32_T
21596 #define _STDINT_NEED_INT_LEAST_T
21599 #ifndef _STDINT_HAVE_INT_FAST32_T
21600 #define _STDINT_NEED_INT_FAST_T
21603 #ifndef _STDINT_HEADER_INTPTR
21604 #define _STDINT_NEED_INTPTR_T
21605 #ifndef _STDINT_HAVE_INTMAX_T
21606 #define _STDINT_NEED_INTMAX_T
21611 /* .................... definition part ............................ */
21613 /* some system headers have good uint64_t */
21614 #ifndef _HAVE_UINT64_T
21615 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
21616 #define _HAVE_UINT64_T
21617 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
21618 #define _HAVE_UINT64_T
21619 typedef u_int64_t uint64_t;
21623 #ifndef _HAVE_UINT64_T
21624 /* .. here are some common heuristics using compiler runtime specifics */
21625 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
21626 #define _HAVE_UINT64_T
21627 #define _HAVE_LONGLONG_UINT64_T
21628 typedef long long int64_t;
21629 typedef unsigned long long uint64_t;
21631 #elif !defined __STRICT_ANSI__
21632 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
21633 #define _HAVE_UINT64_T
21634 typedef __int64 int64_t;
21635 typedef unsigned __int64 uint64_t;
21637 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
21638 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
21639 #if !defined _NO_LONGLONG
21640 #define _HAVE_UINT64_T
21641 #define _HAVE_LONGLONG_UINT64_T
21642 typedef long long int64_t;
21643 typedef unsigned long long uint64_t;
21646 #elif defined __alpha || (defined __mips && defined _ABIN32)
21647 #if !defined _NO_LONGLONG
21648 typedef long int64_t;
21649 typedef unsigned long uint64_t;
21651 /* compiler/cpu type to define int64_t */
21656 #if defined _STDINT_HAVE_U_INT_TYPES
21657 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
21658 typedef u_int8_t uint8_t;
21659 typedef u_int16_t uint16_t;
21660 typedef u_int32_t uint32_t;
21662 /* glibc compatibility */
21663 #ifndef __int8_t_defined
21664 #define __int8_t_defined
21668 #ifdef _STDINT_NEED_INT_MODEL_T
21669 /* we must guess all the basic types. Apart from byte-adressable system, */
21670 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
21671 /* (btw, those nibble-addressable systems are way off, or so we assume) */
21674 #if defined _STDINT_BYTE_MODEL
21675 #if _STDINT_LONG_MODEL+0 == 242
21676 /* 2:4:2 = IP16 = a normal 16-bit system */
21677 typedef unsigned char uint8_t;
21678 typedef unsigned short uint16_t;
21679 typedef unsigned long uint32_t;
21680 #ifndef __int8_t_defined
21681 #define __int8_t_defined
21682 typedef char int8_t;
21683 typedef short int16_t;
21684 typedef long int32_t;
21686 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
21687 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
21688 /* 4:4:4 = ILP32 = a normal 32-bit system */
21689 typedef unsigned char uint8_t;
21690 typedef unsigned short uint16_t;
21691 typedef unsigned int uint32_t;
21692 #ifndef __int8_t_defined
21693 #define __int8_t_defined
21694 typedef char int8_t;
21695 typedef short int16_t;
21696 typedef int int32_t;
21698 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
21699 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
21700 /* 4:8:8 = LP64 = a normal 64-bit system */
21701 typedef unsigned char uint8_t;
21702 typedef unsigned short uint16_t;
21703 typedef unsigned int uint32_t;
21704 #ifndef __int8_t_defined
21705 #define __int8_t_defined
21706 typedef char int8_t;
21707 typedef short int16_t;
21708 typedef int int32_t;
21710 /* this system has a "long" of 64bit */
21711 #ifndef _HAVE_UINT64_T
21712 #define _HAVE_UINT64_T
21713 typedef unsigned long uint64_t;
21714 typedef long int64_t;
21716 #elif _STDINT_LONG_MODEL+0 == 448
21717 /* LLP64 a 64-bit system derived from a 32-bit system */
21718 typedef unsigned char uint8_t;
21719 typedef unsigned short uint16_t;
21720 typedef unsigned int uint32_t;
21721 #ifndef __int8_t_defined
21722 #define __int8_t_defined
21723 typedef char int8_t;
21724 typedef short int16_t;
21725 typedef int int32_t;
21727 /* assuming the system has a "long long" */
21728 #ifndef _HAVE_UINT64_T
21729 #define _HAVE_UINT64_T
21730 #define _HAVE_LONGLONG_UINT64_T
21731 typedef unsigned long long uint64_t;
21732 typedef long long int64_t;
21735 #define _STDINT_NO_INT32_T
21738 #define _STDINT_NO_INT8_T
21739 #define _STDINT_NO_INT32_T
21744 * quote from SunOS-5.8 sys/inttypes.h:
21745 * Use at your own risk. As of February 1996, the committee is squarely
21746 * behind the fixed sized types; the "least" and "fast" types are still being
21747 * discussed. The probability that the "fast" types may be removed before
21748 * the standard is finalized is high enough that they are not currently
21752 #if defined _STDINT_NEED_INT_LEAST_T
21753 typedef int8_t int_least8_t;
21754 typedef int16_t int_least16_t;
21755 typedef int32_t int_least32_t;
21756 #ifdef _HAVE_UINT64_T
21757 typedef int64_t int_least64_t;
21760 typedef uint8_t uint_least8_t;
21761 typedef uint16_t uint_least16_t;
21762 typedef uint32_t uint_least32_t;
21763 #ifdef _HAVE_UINT64_T
21764 typedef uint64_t uint_least64_t;
21769 #if defined _STDINT_NEED_INT_FAST_T
21770 typedef int8_t int_fast8_t;
21771 typedef int int_fast16_t;
21772 typedef int32_t int_fast32_t;
21773 #ifdef _HAVE_UINT64_T
21774 typedef int64_t int_fast64_t;
21777 typedef uint8_t uint_fast8_t;
21778 typedef unsigned uint_fast16_t;
21779 typedef uint32_t uint_fast32_t;
21780 #ifdef _HAVE_UINT64_T
21781 typedef uint64_t uint_fast64_t;
21786 #ifdef _STDINT_NEED_INTMAX_T
21787 #ifdef _HAVE_UINT64_T
21788 typedef int64_t intmax_t;
21789 typedef uint64_t uintmax_t;
21791 typedef long intmax_t;
21792 typedef unsigned long uintmax_t;
21796 #ifdef _STDINT_NEED_INTPTR_T
21797 #ifndef __intptr_t_defined
21798 #define __intptr_t_defined
21799 /* we encourage using "long" to store pointer values, never use "int" ! */
21800 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
21801 typedef unsigned int uintptr_t;
21802 typedef int intptr_t;
21803 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
21804 typedef unsigned long uintptr_t;
21805 typedef long intptr_t;
21806 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
21807 typedef uint64_t uintptr_t;
21808 typedef int64_t intptr_t;
21809 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
21810 typedef unsigned long uintptr_t;
21811 typedef long intptr_t;
21816 /* The ISO C99 standard specifies that in C++ implementations these
21817 should only be defined if explicitly requested. */
21818 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
21822 # define INT8_C(c) c
21823 # define INT16_C(c) c
21824 # define INT32_C(c) c
21825 # ifdef _HAVE_LONGLONG_UINT64_T
21826 # define INT64_C(c) c ## L
21828 # define INT64_C(c) c ## LL
21832 # define UINT8_C(c) c ## U
21833 # define UINT16_C(c) c ## U
21834 # define UINT32_C(c) c ## U
21835 # ifdef _HAVE_LONGLONG_UINT64_T
21836 # define UINT64_C(c) c ## UL
21838 # define UINT64_C(c) c ## ULL
21841 /* Maximal type. */
21842 # ifdef _HAVE_LONGLONG_UINT64_T
21843 # define INTMAX_C(c) c ## L
21844 # define UINTMAX_C(c) c ## UL
21846 # define INTMAX_C(c) c ## LL
21847 # define UINTMAX_C(c) c ## ULL
21850 /* literalnumbers */
21854 /* These limits are merily those of a two complement byte-oriented system */
21856 /* Minimum of signed integral types. */
21857 # define INT8_MIN (-128)
21858 # define INT16_MIN (-32767-1)
21859 # define INT32_MIN (-2147483647-1)
21860 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
21861 /* Maximum of signed integral types. */
21862 # define INT8_MAX (127)
21863 # define INT16_MAX (32767)
21864 # define INT32_MAX (2147483647)
21865 # define INT64_MAX (__INT64_C(9223372036854775807))
21867 /* Maximum of unsigned integral types. */
21868 # define UINT8_MAX (255)
21869 # define UINT16_MAX (65535)
21870 # define UINT32_MAX (4294967295U)
21871 # define UINT64_MAX (__UINT64_C(18446744073709551615))
21873 /* Minimum of signed integral types having a minimum size. */
21874 # define INT_LEAST8_MIN INT8_MIN
21875 # define INT_LEAST16_MIN INT16_MIN
21876 # define INT_LEAST32_MIN INT32_MIN
21877 # define INT_LEAST64_MIN INT64_MIN
21878 /* Maximum of signed integral types having a minimum size. */
21879 # define INT_LEAST8_MAX INT8_MAX
21880 # define INT_LEAST16_MAX INT16_MAX
21881 # define INT_LEAST32_MAX INT32_MAX
21882 # define INT_LEAST64_MAX INT64_MAX
21884 /* Maximum of unsigned integral types having a minimum size. */
21885 # define UINT_LEAST8_MAX UINT8_MAX
21886 # define UINT_LEAST16_MAX UINT16_MAX
21887 # define UINT_LEAST32_MAX UINT32_MAX
21888 # define UINT_LEAST64_MAX UINT64_MAX
21897 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
21898 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
21899 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
21901 ac_dir=`$as_dirname -- "$ac_stdint_h" ||
21902 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21903 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
21904 X"$ac_stdint_h" : 'X\(//\)$' \| \
21905 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
21906 $as_echo X"$ac_stdint_h" |
21907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21911 /^X\(\/\/\)[^/].*/{
21924 as_dir="$ac_dir"; as_fn_mkdir_p
21926 mv $ac_stdint $ac_stdint_h
21936 ac_clean_files=$ac_clean_files_save
21938 test $ac_write_fail = 0 ||
21939 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21942 # configure is writing to config.log, and then calls config.status.
21943 # config.status does its own redirection, appending to config.log.
21944 # Unfortunately, on DOS this fails, as config.log is still kept open
21945 # by configure, so config.status won't be able to write to it; its
21946 # output is simply discarded. So we exec the FD to /dev/null,
21947 # effectively closing config.log, so it can be properly (re)opened and
21948 # appended to by config.status. When coming back to configure, we
21949 # need to make the FD available again.
21950 if test "$no_create" != yes; then
21952 ac_config_status_args=
21953 test "$silent" = yes &&
21954 ac_config_status_args="$ac_config_status_args --quiet"
21956 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21958 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21959 # would make configure fail if this is the last instruction.
21960 $ac_cs_success || as_fn_exit 1
21962 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21964 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}