2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for fontconfig 2.13.0.
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig>.
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://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig
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.0'
595 PACKAGE_STRING='fontconfig 2.13.0'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig'
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
675 FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE
676 FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE
683 CROSS_COMPILING_FALSE
688 MS_LIB_AVAILABLE_FALSE
689 MS_LIB_AVAILABLE_TRUE
698 XGETTEXT_EXTRA_OPTIONS
706 GETTEXT_MACRO_VERSION
711 LIBT_CURRENT_MINUS_AGE
783 INSTALL_STRIP_PROGRAM
825 program_transform_name
838 enable_option_checking
840 enable_dependency_tracking
858 with_libiconv_includes
874 ac_precious_vars='build_alias
898 # Initialize some variables set by options.
900 ac_init_version=false
901 ac_unrecognized_opts=
903 # The variables have the same names as the options, with
904 # dashes changed to underlines.
912 program_transform_name=s,x,x,
920 # Installation directory options.
921 # These are left unexpanded so users can "make install exec_prefix=/foo"
922 # and all the variables that are supposed to be based on exec_prefix
923 # by default will actually change.
924 # Use braces instead of parens because sh, perl, etc. also accept them.
925 # (The list follows the same order as the GNU Coding Standards.)
926 bindir='${exec_prefix}/bin'
927 sbindir='${exec_prefix}/sbin'
928 libexecdir='${exec_prefix}/libexec'
929 datarootdir='${prefix}/share'
930 datadir='${datarootdir}'
931 sysconfdir='${prefix}/etc'
932 sharedstatedir='${prefix}/com'
933 localstatedir='${prefix}/var'
934 includedir='${prefix}/include'
935 oldincludedir='/usr/include'
936 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
937 infodir='${datarootdir}/info'
942 libdir='${exec_prefix}/lib'
943 localedir='${datarootdir}/locale'
944 mandir='${datarootdir}/man'
950 # If the previous option needs an argument, assign it.
951 if test -n "$ac_prev"; then
952 eval $ac_prev=\$ac_option
958 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
963 # Accept the important Cygnus configure options, so we can diagnose typos.
965 case $ac_dashdash$ac_option in
969 -bindir | --bindir | --bindi | --bind | --bin | --bi)
971 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
974 -build | --build | --buil | --bui | --bu)
975 ac_prev=build_alias ;;
976 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
977 build_alias=$ac_optarg ;;
979 -cache-file | --cache-file | --cache-fil | --cache-fi \
980 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
981 ac_prev=cache_file ;;
982 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
983 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
984 cache_file=$ac_optarg ;;
987 cache_file=config.cache ;;
989 -datadir | --datadir | --datadi | --datad)
991 -datadir=* | --datadir=* | --datadi=* | --datad=*)
992 datadir=$ac_optarg ;;
994 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
995 | --dataroo | --dataro | --datar)
996 ac_prev=datarootdir ;;
997 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
998 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
999 datarootdir=$ac_optarg ;;
1001 -disable-* | --disable-*)
1002 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1003 # Reject names that are not valid shell variable names.
1004 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1005 as_fn_error $? "invalid feature name: $ac_useropt"
1006 ac_useropt_orig=$ac_useropt
1007 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1008 case $ac_user_opts in
1010 "enable_$ac_useropt"
1012 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1013 ac_unrecognized_sep=', ';;
1015 eval enable_$ac_useropt=no ;;
1017 -docdir | --docdir | --docdi | --doc | --do)
1019 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1020 docdir=$ac_optarg ;;
1022 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1024 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1025 dvidir=$ac_optarg ;;
1027 -enable-* | --enable-*)
1028 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1029 # Reject names that are not valid shell variable names.
1030 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1031 as_fn_error $? "invalid feature name: $ac_useropt"
1032 ac_useropt_orig=$ac_useropt
1033 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1034 case $ac_user_opts in
1036 "enable_$ac_useropt"
1038 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1039 ac_unrecognized_sep=', ';;
1041 eval enable_$ac_useropt=\$ac_optarg ;;
1043 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1044 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1045 | --exec | --exe | --ex)
1046 ac_prev=exec_prefix ;;
1047 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1048 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1049 | --exec=* | --exe=* | --ex=*)
1050 exec_prefix=$ac_optarg ;;
1052 -gas | --gas | --ga | --g)
1053 # Obsolete; use --with-gas.
1056 -help | --help | --hel | --he | -h)
1057 ac_init_help=long ;;
1058 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1059 ac_init_help=recursive ;;
1060 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1061 ac_init_help=short ;;
1063 -host | --host | --hos | --ho)
1064 ac_prev=host_alias ;;
1065 -host=* | --host=* | --hos=* | --ho=*)
1066 host_alias=$ac_optarg ;;
1068 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1070 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1072 htmldir=$ac_optarg ;;
1074 -includedir | --includedir | --includedi | --included | --include \
1075 | --includ | --inclu | --incl | --inc)
1076 ac_prev=includedir ;;
1077 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1078 | --includ=* | --inclu=* | --incl=* | --inc=*)
1079 includedir=$ac_optarg ;;
1081 -infodir | --infodir | --infodi | --infod | --info | --inf)
1083 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1084 infodir=$ac_optarg ;;
1086 -libdir | --libdir | --libdi | --libd)
1088 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1089 libdir=$ac_optarg ;;
1091 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1092 | --libexe | --libex | --libe)
1093 ac_prev=libexecdir ;;
1094 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1095 | --libexe=* | --libex=* | --libe=*)
1096 libexecdir=$ac_optarg ;;
1098 -localedir | --localedir | --localedi | --localed | --locale)
1099 ac_prev=localedir ;;
1100 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1101 localedir=$ac_optarg ;;
1103 -localstatedir | --localstatedir | --localstatedi | --localstated \
1104 | --localstate | --localstat | --localsta | --localst | --locals)
1105 ac_prev=localstatedir ;;
1106 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1107 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1108 localstatedir=$ac_optarg ;;
1110 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1112 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1113 mandir=$ac_optarg ;;
1115 -nfp | --nfp | --nf)
1116 # Obsolete; use --without-fp.
1119 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1120 | --no-cr | --no-c | -n)
1123 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1124 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1127 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1128 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1129 | --oldin | --oldi | --old | --ol | --o)
1130 ac_prev=oldincludedir ;;
1131 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1132 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1133 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1134 oldincludedir=$ac_optarg ;;
1136 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1138 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1139 prefix=$ac_optarg ;;
1141 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1142 | --program-pre | --program-pr | --program-p)
1143 ac_prev=program_prefix ;;
1144 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1145 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1146 program_prefix=$ac_optarg ;;
1148 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1149 | --program-suf | --program-su | --program-s)
1150 ac_prev=program_suffix ;;
1151 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1152 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1153 program_suffix=$ac_optarg ;;
1155 -program-transform-name | --program-transform-name \
1156 | --program-transform-nam | --program-transform-na \
1157 | --program-transform-n | --program-transform- \
1158 | --program-transform | --program-transfor \
1159 | --program-transfo | --program-transf \
1160 | --program-trans | --program-tran \
1161 | --progr-tra | --program-tr | --program-t)
1162 ac_prev=program_transform_name ;;
1163 -program-transform-name=* | --program-transform-name=* \
1164 | --program-transform-nam=* | --program-transform-na=* \
1165 | --program-transform-n=* | --program-transform-=* \
1166 | --program-transform=* | --program-transfor=* \
1167 | --program-transfo=* | --program-transf=* \
1168 | --program-trans=* | --program-tran=* \
1169 | --progr-tra=* | --program-tr=* | --program-t=*)
1170 program_transform_name=$ac_optarg ;;
1172 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1174 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1175 pdfdir=$ac_optarg ;;
1177 -psdir | --psdir | --psdi | --psd | --ps)
1179 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1182 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1183 | -silent | --silent | --silen | --sile | --sil)
1186 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1188 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1190 sbindir=$ac_optarg ;;
1192 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1193 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1194 | --sharedst | --shareds | --shared | --share | --shar \
1196 ac_prev=sharedstatedir ;;
1197 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1198 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1199 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1201 sharedstatedir=$ac_optarg ;;
1203 -site | --site | --sit)
1205 -site=* | --site=* | --sit=*)
1208 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1210 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1211 srcdir=$ac_optarg ;;
1213 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1214 | --syscon | --sysco | --sysc | --sys | --sy)
1215 ac_prev=sysconfdir ;;
1216 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1217 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1218 sysconfdir=$ac_optarg ;;
1220 -target | --target | --targe | --targ | --tar | --ta | --t)
1221 ac_prev=target_alias ;;
1222 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1223 target_alias=$ac_optarg ;;
1225 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1228 -version | --version | --versio | --versi | --vers | -V)
1229 ac_init_version=: ;;
1232 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1235 as_fn_error $? "invalid package name: $ac_useropt"
1236 ac_useropt_orig=$ac_useropt
1237 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1238 case $ac_user_opts in
1242 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1243 ac_unrecognized_sep=', ';;
1245 eval with_$ac_useropt=\$ac_optarg ;;
1247 -without-* | --without-*)
1248 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251 as_fn_error $? "invalid package name: $ac_useropt"
1252 ac_useropt_orig=$ac_useropt
1253 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254 case $ac_user_opts in
1258 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1259 ac_unrecognized_sep=', ';;
1261 eval with_$ac_useropt=no ;;
1264 # Obsolete; use --with-x.
1267 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1268 | --x-incl | --x-inc | --x-in | --x-i)
1269 ac_prev=x_includes ;;
1270 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1271 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1272 x_includes=$ac_optarg ;;
1274 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1275 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1276 ac_prev=x_libraries ;;
1277 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1278 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1279 x_libraries=$ac_optarg ;;
1281 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1282 Try \`$0 --help' for more information"
1286 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1287 # Reject names that are not valid shell variable names.
1288 case $ac_envvar in #(
1289 '' | [0-9]* | *[!_$as_cr_alnum]* )
1290 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1292 eval $ac_envvar=\$ac_optarg
1293 export $ac_envvar ;;
1296 # FIXME: should be removed in autoconf 3.0.
1297 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1298 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1299 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1300 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1306 if test -n "$ac_prev"; then
1307 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1308 as_fn_error $? "missing argument to $ac_option"
1311 if test -n "$ac_unrecognized_opts"; then
1312 case $enable_option_checking in
1314 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1315 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1319 # Check all directory arguments for consistency.
1320 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1321 datadir sysconfdir sharedstatedir localstatedir includedir \
1322 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1323 libdir localedir mandir
1325 eval ac_val=\$$ac_var
1326 # Remove trailing slashes.
1329 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1330 eval $ac_var=\$ac_val;;
1332 # Be sure to have absolute directory names.
1334 [\\/$]* | ?:[\\/]* ) continue;;
1335 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1337 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1340 # There might be people who depend on the old broken behavior: `$host'
1341 # used to hold the argument of --host etc.
1342 # FIXME: To remove some day.
1345 target=$target_alias
1347 # FIXME: To remove some day.
1348 if test "x$host_alias" != x; then
1349 if test "x$build_alias" = x; then
1350 cross_compiling=maybe
1351 elif test "x$build_alias" != "x$host_alias"; then
1357 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1359 test "$silent" = yes && exec 6>/dev/null
1362 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1363 ac_ls_di=`ls -di .` &&
1364 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1365 as_fn_error $? "working directory cannot be determined"
1366 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1367 as_fn_error $? "pwd does not report name of working directory"
1370 # Find the source files, if location was not specified.
1371 if test -z "$srcdir"; then
1372 ac_srcdir_defaulted=yes
1373 # Try the directory containing this script, then the parent directory.
1374 ac_confdir=`$as_dirname -- "$as_myself" ||
1375 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1376 X"$as_myself" : 'X\(//\)[^/]' \| \
1377 X"$as_myself" : 'X\(//\)$' \| \
1378 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1379 $as_echo X"$as_myself" |
1380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1402 ac_srcdir_defaulted=no
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1405 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1406 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1408 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1410 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1412 # When building in place, set srcdir=.
1413 if test "$ac_abs_confdir" = "$ac_pwd"; then
1416 # Remove unnecessary trailing slashes from srcdir.
1417 # Double slashes in file names in object file debugging info
1418 # mess up M-x gdb in Emacs.
1420 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1422 for ac_var in $ac_precious_vars; do
1423 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_env_${ac_var}_value=\$${ac_var}
1425 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1426 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1430 # Report the --help message.
1432 if test "$ac_init_help" = "long"; then
1433 # Omit some internal or obsolete options to make the list less imposing.
1434 # This message is too long to be a string in the A/UX 3.1 sh.
1436 \`configure' configures fontconfig 2.13.0 to adapt to many kinds of systems.
1438 Usage: $0 [OPTION]... [VAR=VALUE]...
1440 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1441 VAR=VALUE. See below for descriptions of some of the useful variables.
1443 Defaults for the options are specified in brackets.
1446 -h, --help display this help and exit
1447 --help=short display options specific to this package
1448 --help=recursive display the short help of all the included packages
1449 -V, --version display version information and exit
1450 -q, --quiet, --silent do not print \`checking ...' messages
1451 --cache-file=FILE cache test results in FILE [disabled]
1452 -C, --config-cache alias for \`--cache-file=config.cache'
1453 -n, --no-create do not create output files
1454 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1456 Installation directories:
1457 --prefix=PREFIX install architecture-independent files in PREFIX
1458 [$ac_default_prefix]
1459 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1462 By default, \`make install' will install all the files in
1463 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1464 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1465 for instance \`--prefix=\$HOME'.
1467 For better control, use the options below.
1469 Fine tuning of the installation directories:
1470 --bindir=DIR user executables [EPREFIX/bin]
1471 --sbindir=DIR system admin executables [EPREFIX/sbin]
1472 --libexecdir=DIR program executables [EPREFIX/libexec]
1473 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1474 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1475 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1476 --libdir=DIR object code libraries [EPREFIX/lib]
1477 --includedir=DIR C header files [PREFIX/include]
1478 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1479 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1480 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1481 --infodir=DIR info documentation [DATAROOTDIR/info]
1482 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1483 --mandir=DIR man documentation [DATAROOTDIR/man]
1484 --docdir=DIR documentation root [DATAROOTDIR/doc/fontconfig]
1485 --htmldir=DIR html documentation [DOCDIR]
1486 --dvidir=DIR dvi documentation [DOCDIR]
1487 --pdfdir=DIR pdf documentation [DOCDIR]
1488 --psdir=DIR ps documentation [DOCDIR]
1494 --program-prefix=PREFIX prepend PREFIX to installed program names
1495 --program-suffix=SUFFIX append SUFFIX to installed program names
1496 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1499 --build=BUILD configure for building on BUILD [guessed]
1500 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1504 if test -n "$ac_init_help"; then
1505 case $ac_init_help in
1506 short | recursive ) echo "Configuration of fontconfig 2.13.0:";;
1511 --disable-option-checking ignore unrecognized --enable/--with options
1512 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1513 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1514 --enable-silent-rules less verbose build output (undo: "make V=1")
1515 --disable-silent-rules verbose build output (undo: "make V=0")
1516 --enable-dependency-tracking
1517 do not reject slow dependency extractors
1518 --disable-dependency-tracking
1519 speeds up one-time build
1520 --disable-largefile omit support for large files
1521 --enable-static[=PKGS] build static libraries [default=no]
1522 --enable-shared[=PKGS] build shared libraries [default=yes]
1523 --enable-fast-install[=PKGS]
1524 optimize for fast installation [default=yes]
1525 --disable-libtool-lock avoid locking (might break parallel builds)
1526 --disable-nls do not use Native Language Support
1527 --disable-rpath do not hardcode runtime library paths
1528 --enable-iconv Use iconv to support non-Unicode SFNT name
1529 --enable-libxml2 Use libxml2 instead of Expat
1530 --disable-docs Don't build and install documentation
1533 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1534 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1535 --with-pkgconfigdir pkg-config installation directory
1536 ['${libdir}/pkgconfig']
1537 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1539 --with-aix-soname=aix|svr4|both
1540 shared library versioning (aka "SONAME") variant to
1541 provide on AIX, [default=aix].
1542 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1543 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1544 compiler's sysroot if not specified).
1545 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1546 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1547 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1548 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1549 --without-libintl-prefix don't search for libintl in includedir and libdir
1550 --with-arch=ARCH Force architecture to ARCH
1551 --with-libiconv=DIR Use libiconv in DIR
1552 --with-libiconv-includes=DIR
1553 Use libiconv includes in DIR
1554 --with-libiconv-lib=DIR Use libiconv library in DIR
1555 --with-expat=DIR Use Expat in DIR
1556 --with-expat-includes=DIR
1557 Use Expat includes in DIR
1558 --with-expat-lib=DIR
1559 --with-default-hinting=NAME
1560 Enable your preferred hinting configuration
1561 (none/slight/medium/full) [default=slight]
1562 --with-default-fonts=DIR
1563 Use fonts from DIR when config is busted
1564 --with-add-fonts=DIR1,DIR2,...
1565 Find additional fonts in DIR1,DIR2,...
1566 --with-cache-dir=DIR Use DIR to store cache files
1567 [default=LOCALSTATEDIR/cache/fontconfig]
1568 --with-templatedir=DIR Use DIR to store the configuration template files
1569 [default=DATADIR/fontconfig/conf.avail]
1570 --with-baseconfigdir=DIR
1571 Use DIR to store the base configuration files
1572 [default=SYSCONFDIR/fonts]
1573 --with-configdir=DIR Use DIR to store active configuration files
1574 [default=BASECONFIGDIR/conf.d]
1575 --with-xmldir=DIR Use DIR to store XML schema files
1576 [default=DATADIR/xml/fontconfig]
1578 Some influential environment variables:
1579 CC C compiler command
1580 CFLAGS C compiler flags
1581 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1582 nonstandard directory <lib dir>
1583 LIBS libraries to pass to the linker, e.g. -l<library>
1584 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1585 you have headers in a nonstandard directory <include dir>
1587 PKG_CONFIG path to pkg-config utility
1589 directories to add to pkg-config's search path
1591 path overriding pkg-config's built-in search path
1593 User-defined run-time library search path.
1595 build system C compiler
1597 C compiler flags for FREETYPE, overriding pkg-config
1599 linker flags for FREETYPE, overriding pkg-config
1600 UUID_CFLAGS C compiler flags for UUID, overriding pkg-config
1601 UUID_LIBS linker flags for UUID, overriding pkg-config
1603 C compiler flags for EXPAT, overriding pkg-config
1604 EXPAT_LIBS linker flags for EXPAT, overriding pkg-config
1606 C compiler flags for LIBXML2, overriding pkg-config
1608 linker flags for LIBXML2, overriding pkg-config
1610 Use these variables to override the choices made by `configure' or to help
1611 it to find libraries and programs with nonstandard names/locations.
1613 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig>.
1618 if test "$ac_init_help" = "recursive"; then
1619 # If there are subdirs, report their specific --help.
1620 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1621 test -d "$ac_dir" ||
1622 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1627 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1630 # A ".." for each directory in $ac_dir_suffix.
1631 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1632 case $ac_top_builddir_sub in
1633 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1634 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1637 ac_abs_top_builddir=$ac_pwd
1638 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1639 # for backward compatibility:
1640 ac_top_builddir=$ac_top_build_prefix
1643 .) # We are building in place.
1645 ac_top_srcdir=$ac_top_builddir_sub
1646 ac_abs_top_srcdir=$ac_pwd ;;
1647 [\\/]* | ?:[\\/]* ) # Absolute name.
1648 ac_srcdir=$srcdir$ac_dir_suffix;
1649 ac_top_srcdir=$srcdir
1650 ac_abs_top_srcdir=$srcdir ;;
1652 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1653 ac_top_srcdir=$ac_top_build_prefix$srcdir
1654 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1656 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1658 cd "$ac_dir" || { ac_status=$?; continue; }
1659 # Check for guested configure.
1660 if test -f "$ac_srcdir/configure.gnu"; then
1662 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1663 elif test -f "$ac_srcdir/configure"; then
1665 $SHELL "$ac_srcdir/configure" --help=recursive
1667 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1669 cd "$ac_pwd" || { ac_status=$?; break; }
1673 test -n "$ac_init_help" && exit $ac_status
1674 if $ac_init_version; then
1676 fontconfig configure 2.13.0
1677 generated by GNU Autoconf 2.69
1679 Copyright (C) 2012 Free Software Foundation, Inc.
1680 This configure script is free software; the Free Software Foundation
1681 gives unlimited permission to copy, distribute and modify it.
1686 ## ------------------------ ##
1687 ## Autoconf initialization. ##
1688 ## ------------------------ ##
1690 # ac_fn_c_try_compile LINENO
1691 # --------------------------
1692 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1693 ac_fn_c_try_compile ()
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 rm -f conftest.$ac_objext
1697 if { { ac_try="$ac_compile"
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_compile") 2>conftest.err
1706 if test -s conftest.err; then
1707 grep -v '^ *+' conftest.err >conftest.er1
1708 cat conftest.er1 >&5
1709 mv -f conftest.er1 conftest.err
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && {
1713 test -z "$ac_c_werror_flag" ||
1714 test ! -s conftest.err
1715 } && test -s conftest.$ac_objext; then :
1718 $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 as_fn_set_status $ac_retval
1726 } # ac_fn_c_try_compile
1728 # ac_fn_c_try_cpp LINENO
1729 # ----------------------
1730 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 if { { ac_try="$ac_cpp conftest.$ac_ext"
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1743 if test -s conftest.err; then
1744 grep -v '^ *+' conftest.err >conftest.er1
1745 cat conftest.er1 >&5
1746 mv -f conftest.er1 conftest.err
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } > conftest.i && {
1750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1751 test ! -s conftest.err
1755 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 as_fn_set_status $ac_retval
1765 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1766 # -------------------------------------------------------
1767 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1768 # the include files in INCLUDES and setting the cache variable VAR
1770 ac_fn_c_check_header_mongrel ()
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 if eval \${$3+:} false; then :
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if eval \${$3+:} false; then :
1777 $as_echo_n "(cached) " >&6
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1783 # Is the header compilable?
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1785 $as_echo_n "checking $2 usability... " >&6; }
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h. */
1791 if ac_fn_c_try_compile "$LINENO"; then :
1792 ac_header_compiler=yes
1794 ac_header_compiler=no
1796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1798 $as_echo "$ac_header_compiler" >&6; }
1800 # Is the header present?
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1802 $as_echo_n "checking $2 presence... " >&6; }
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1807 if ac_fn_c_try_cpp "$LINENO"; then :
1808 ac_header_preproc=yes
1810 ac_header_preproc=no
1812 rm -f conftest.err conftest.i conftest.$ac_ext
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1814 $as_echo "$ac_header_preproc" >&6; }
1816 # So? What about this header?
1817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1820 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1822 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1826 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1828 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1830 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1832 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1834 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1835 ( $as_echo "## ---------------------------------------------------------------------------- ##
1836 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig ##
1837 ## ---------------------------------------------------------------------------- ##"
1838 ) | sed "s/^/$as_me: WARNING: /" >&2
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1846 eval "$3=\$ac_header_compiler"
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 $as_echo "$ac_res" >&6; }
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 } # ac_fn_c_check_header_mongrel
1856 # ac_fn_c_try_run LINENO
1857 # ----------------------
1858 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1859 # that executables *can* be run.
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 if { { ac_try="$ac_link"
1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_link") 2>&5
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1874 { { case "(($ac_try" in
1875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876 *) ac_try_echo=$ac_try;;
1878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879 $as_echo "$ac_try_echo"; } >&5
1880 (eval "$ac_try") 2>&5
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; }; }; then :
1886 $as_echo "$as_me: program exited with status $ac_status" >&5
1887 $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1890 ac_retval=$ac_status
1892 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894 as_fn_set_status $ac_retval
1898 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1899 # -------------------------------------------------------
1900 # Tests whether HEADER exists and can be compiled using the include files in
1901 # INCLUDES, setting the cache variable VAR accordingly.
1902 ac_fn_c_check_header_compile ()
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906 $as_echo_n "checking for $2... " >&6; }
1907 if eval \${$3+:} false; then :
1908 $as_echo_n "(cached) " >&6
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1915 if ac_fn_c_try_compile "$LINENO"; then :
1920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 } # ac_fn_c_check_header_compile
1929 # ac_fn_c_try_link LINENO
1930 # -----------------------
1931 # Try to link conftest.$ac_ext, and return whether this succeeded.
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 rm -f conftest.$ac_objext conftest$ac_exeext
1936 if { { ac_try="$ac_link"
1938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939 *) ac_try_echo=$ac_try;;
1941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942 $as_echo "$ac_try_echo"; } >&5
1943 (eval "$ac_link") 2>conftest.err
1945 if test -s conftest.err; then
1946 grep -v '^ *+' conftest.err >conftest.er1
1947 cat conftest.er1 >&5
1948 mv -f conftest.er1 conftest.err
1950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951 test $ac_status = 0; } && {
1952 test -z "$ac_c_werror_flag" ||
1953 test ! -s conftest.err
1954 } && test -s conftest$ac_exeext && {
1955 test "$cross_compiling" = yes ||
1956 test -x conftest$ac_exeext
1960 $as_echo "$as_me: failed program was:" >&5
1961 sed 's/^/| /' conftest.$ac_ext >&5
1965 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1966 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1967 # interfere with the next link command; also delete a directory that is
1968 # left behind by Apple's compiler. We do this before executing the actions.
1969 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 as_fn_set_status $ac_retval
1973 } # ac_fn_c_try_link
1975 # ac_fn_c_check_func LINENO FUNC VAR
1976 # ----------------------------------
1977 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1978 ac_fn_c_check_func ()
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982 $as_echo_n "checking for $2... " >&6; }
1983 if eval \${$3+:} false; then :
1984 $as_echo_n "(cached) " >&6
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1988 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1990 #define $2 innocuous_$2
1992 /* System header to define __stub macros and hopefully few prototypes,
1993 which can conflict with char $2 (); below.
1994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1995 <limits.h> exists even on freestanding compilers. */
1998 # include <limits.h>
2000 # include <assert.h>
2005 /* Override any GCC internal prototype to avoid an error.
2006 Use char because int might match the return type of a GCC
2007 builtin and then its argument prototype would still apply. */
2012 /* The GNU C library defines this for functions which it implements
2013 to always fail with ENOSYS. Some functions are actually named
2014 something starting with __ and the normal name is an alias. */
2015 #if defined __stub_$2 || defined __stub___$2
2027 if ac_fn_c_try_link "$LINENO"; then :
2032 rm -f core conftest.err conftest.$ac_objext \
2033 conftest$ac_exeext conftest.$ac_ext
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037 $as_echo "$ac_res" >&6; }
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040 } # ac_fn_c_check_func
2042 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2043 # ---------------------------------------------
2044 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2046 ac_fn_c_check_decl ()
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 as_decl_name=`echo $2|sed 's/ *(.*//'`
2050 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2052 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2053 if eval \${$3+:} false; then :
2054 $as_echo_n "(cached) " >&6
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2062 #ifndef $as_decl_name
2064 (void) $as_decl_use;
2066 (void) $as_decl_name;
2074 if ac_fn_c_try_compile "$LINENO"; then :
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2084 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086 } # ac_fn_c_check_decl
2088 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2089 # -------------------------------------------
2090 # Tests whether TYPE exists after having included INCLUDES, setting cache
2091 # variable VAR accordingly.
2092 ac_fn_c_check_type ()
2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2096 $as_echo_n "checking for $2... " >&6; }
2097 if eval \${$3+:} false; then :
2098 $as_echo_n "(cached) " >&6
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2126 if ac_fn_c_try_compile "$LINENO"; then :
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2137 $as_echo "$ac_res" >&6; }
2138 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2140 } # ac_fn_c_check_type
2142 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2143 # --------------------------------------------
2144 # Tries to find the compile-time value of EXPR in a program that includes
2145 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2147 ac_fn_c_compute_int ()
2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150 if test "$cross_compiling" = yes; then
2151 # Depending upon the size, compute the lo and hi bounds.
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2158 static int test_array [1 - 2 * !(($2) >= 0)];
2160 return test_array [0];
2166 if ac_fn_c_try_compile "$LINENO"; then :
2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h. */
2175 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2177 return test_array [0];
2183 if ac_fn_c_try_compile "$LINENO"; then :
2184 ac_hi=$ac_mid; break
2186 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2187 if test $ac_lo -le $ac_mid; then
2191 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2202 static int test_array [1 - 2 * !(($2) < 0)];
2204 return test_array [0];
2210 if ac_fn_c_try_compile "$LINENO"; then :
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h. */
2219 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2221 return test_array [0];
2227 if ac_fn_c_try_compile "$LINENO"; then :
2228 ac_lo=$ac_mid; break
2230 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2231 if test $ac_mid -le $ac_hi; then
2235 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 # Binary search between lo and hi bounds.
2246 while test "x$ac_lo" != "x$ac_hi"; do
2247 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2254 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2256 return test_array [0];
2262 if ac_fn_c_try_compile "$LINENO"; then :
2265 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h. */
2277 static long int longval () { return $2; }
2278 static unsigned long int ulongval () { return $2; }
2285 FILE *f = fopen ("conftest.val", "w");
2290 long int i = longval ();
2293 fprintf (f, "%ld", i);
2297 unsigned long int i = ulongval ();
2300 fprintf (f, "%lu", i);
2302 /* Do not output a trailing newline, as this causes \r\n confusion
2303 on some platforms. */
2304 return ferror (f) || fclose (f) != 0;
2310 if ac_fn_c_try_run "$LINENO"; then :
2311 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2316 conftest.$ac_objext conftest.beam conftest.$ac_ext
2320 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2321 as_fn_set_status $ac_retval
2323 } # ac_fn_c_compute_int
2325 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2326 # ----------------------------------------------------
2327 # Tries to find if the field MEMBER exists in type AGGR, after including
2328 # INCLUDES, setting cache variable VAR accordingly.
2329 ac_fn_c_check_member ()
2331 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2333 $as_echo_n "checking for $2.$3... " >&6; }
2334 if eval \${$4+:} false; then :
2335 $as_echo_n "(cached) " >&6
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h. */
2350 if ac_fn_c_try_compile "$LINENO"; then :
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h. */
2360 if (sizeof ac_aggr.$3)
2366 if ac_fn_c_try_compile "$LINENO"; then :
2371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2377 $as_echo "$ac_res" >&6; }
2378 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2380 } # ac_fn_c_check_member
2381 cat >config.log <<_ACEOF
2382 This file contains any messages produced by compilers while
2383 running configure, to aid debugging if configure makes a mistake.
2385 It was created by fontconfig $as_me 2.13.0, which was
2386 generated by GNU Autoconf 2.69. Invocation command line was
2398 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2399 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2400 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2401 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2402 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2404 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2405 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2407 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2408 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2409 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2410 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2411 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2412 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2413 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 test -z "$as_dir" && as_dir=.
2422 $as_echo "PATH: $as_dir"
2438 # Keep a trace of the command line.
2439 # Strip out --no-create and --no-recursion so they do not pile up.
2440 # Strip out --silent because we don't want to record it for future runs.
2441 # Also quote any args containing shell meta-characters.
2442 # Make two passes to allow for proper duplicate-argument suppression.
2446 ac_must_keep_next=false
2452 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2453 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2454 | -silent | --silent | --silen | --sile | --sil)
2457 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2460 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2462 as_fn_append ac_configure_args1 " '$ac_arg'"
2463 if test $ac_must_keep_next = true; then
2464 ac_must_keep_next=false # Got value, back to normal.
2467 *=* | --config-cache | -C | -disable-* | --disable-* \
2468 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2469 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2470 | -with-* | --with-* | -without-* | --without-* | --x)
2471 case "$ac_configure_args0 " in
2472 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2475 -* ) ac_must_keep_next=true ;;
2478 as_fn_append ac_configure_args " '$ac_arg'"
2483 { ac_configure_args0=; unset ac_configure_args0;}
2484 { ac_configure_args1=; unset ac_configure_args1;}
2486 # When interrupted or exit'd, cleanup temporary files, and complete
2487 # config.log. We remove comments because anyway the quotes in there
2488 # would cause problems or look ugly.
2489 # WARNING: Use '\'' to represent an apostrophe within the trap.
2490 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2491 trap 'exit_status=$?
2492 # Save into config.log some information that might help in debugging.
2496 $as_echo "## ---------------- ##
2497 ## Cache variables. ##
2498 ## ---------------- ##"
2500 # The following way of writing the cache mishandles newlines in values,
2502 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2503 eval ac_val=\$$ac_var
2507 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2508 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2511 _ | IFS | as_nl) ;; #(
2512 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2513 *) { eval $ac_var=; unset $ac_var;} ;;
2518 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2519 *${as_nl}ac_space=\ *)
2521 "s/'\''/'\''\\\\'\'''\''/g;
2522 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2525 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2532 $as_echo "## ----------------- ##
2533 ## Output variables. ##
2534 ## ----------------- ##"
2536 for ac_var in $ac_subst_vars
2538 eval ac_val=\$$ac_var
2540 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2542 $as_echo "$ac_var='\''$ac_val'\''"
2546 if test -n "$ac_subst_files"; then
2547 $as_echo "## ------------------- ##
2548 ## File substitutions. ##
2549 ## ------------------- ##"
2551 for ac_var in $ac_subst_files
2553 eval ac_val=\$$ac_var
2555 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2557 $as_echo "$ac_var='\''$ac_val'\''"
2562 if test -s confdefs.h; then
2563 $as_echo "## ----------- ##
2570 test "$ac_signal" != 0 &&
2571 $as_echo "$as_me: caught signal $ac_signal"
2572 $as_echo "$as_me: exit $exit_status"
2574 rm -f core *.core core.conftest.* &&
2575 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2578 for ac_signal in 1 2 13 15; do
2579 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2583 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2584 rm -f -r conftest* confdefs.h
2586 $as_echo "/* confdefs.h */" > confdefs.h
2588 # Predefined preprocessor variables.
2590 cat >>confdefs.h <<_ACEOF
2591 #define PACKAGE_NAME "$PACKAGE_NAME"
2594 cat >>confdefs.h <<_ACEOF
2595 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2598 cat >>confdefs.h <<_ACEOF
2599 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2602 cat >>confdefs.h <<_ACEOF
2603 #define PACKAGE_STRING "$PACKAGE_STRING"
2606 cat >>confdefs.h <<_ACEOF
2607 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2610 cat >>confdefs.h <<_ACEOF
2611 #define PACKAGE_URL "$PACKAGE_URL"
2615 # Let the site file select an alternate cache file if it wants to.
2616 # Prefer an explicitly selected file to automatically selected ones.
2619 if test -n "$CONFIG_SITE"; then
2620 # We do not want a PATH search for config.site.
2621 case $CONFIG_SITE in #((
2622 -*) ac_site_file1=./$CONFIG_SITE;;
2623 */*) ac_site_file1=$CONFIG_SITE;;
2624 *) ac_site_file1=./$CONFIG_SITE;;
2626 elif test "x$prefix" != xNONE; then
2627 ac_site_file1=$prefix/share/config.site
2628 ac_site_file2=$prefix/etc/config.site
2630 ac_site_file1=$ac_default_prefix/share/config.site
2631 ac_site_file2=$ac_default_prefix/etc/config.site
2633 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2635 test "x$ac_site_file" = xNONE && continue
2636 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2638 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2639 sed 's/^/| /' "$ac_site_file" >&5
2641 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2643 as_fn_error $? "failed to load site script $ac_site_file
2644 See \`config.log' for more details" "$LINENO" 5; }
2648 if test -r "$cache_file"; then
2649 # Some versions of bash will fail to source /dev/null (special files
2650 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2651 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2653 $as_echo "$as_me: loading cache $cache_file" >&6;}
2655 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2656 *) . "./$cache_file";;
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2661 $as_echo "$as_me: creating cache $cache_file" >&6;}
2665 gt_needs="$gt_needs "
2666 as_fn_append ac_header_list " stdlib.h"
2667 as_fn_append ac_header_list " unistd.h"
2668 as_fn_append ac_header_list " sys/param.h"
2669 # Check that the precious variables saved in the cache have kept the same
2671 ac_cache_corrupted=false
2672 for ac_var in $ac_precious_vars; do
2673 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2674 eval ac_new_set=\$ac_env_${ac_var}_set
2675 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2676 eval ac_new_val=\$ac_env_${ac_var}_value
2677 case $ac_old_set,$ac_new_set in
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2680 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2681 ac_cache_corrupted=: ;;
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2684 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2685 ac_cache_corrupted=: ;;
2688 if test "x$ac_old_val" != "x$ac_new_val"; then
2689 # differences in whitespace do not lead to failure.
2690 ac_old_val_w=`echo x $ac_old_val`
2691 ac_new_val_w=`echo x $ac_new_val`
2692 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2694 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2695 ac_cache_corrupted=:
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2698 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2699 eval $ac_var=\$ac_old_val
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2702 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2704 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2707 # Pass precious variables to config.status.
2708 if test "$ac_new_set" = set; then
2710 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2711 *) ac_arg=$ac_var=$ac_new_val ;;
2713 case " $ac_configure_args " in
2714 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2715 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2719 if $ac_cache_corrupted; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2723 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2724 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2726 ## -------------------- ##
2727 ## Main body of script. ##
2728 ## -------------------- ##
2731 ac_cpp='$CPP $CPPFLAGS'
2732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2737 am__api_version='1.15'
2740 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2741 if test -f "$ac_dir/install-sh"; then
2743 ac_install_sh="$ac_aux_dir/install-sh -c"
2745 elif test -f "$ac_dir/install.sh"; then
2747 ac_install_sh="$ac_aux_dir/install.sh -c"
2749 elif test -f "$ac_dir/shtool"; then
2751 ac_install_sh="$ac_aux_dir/shtool install -c"
2755 if test -z "$ac_aux_dir"; then
2756 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2759 # These three variables are undocumented and unsupported,
2760 # and are intended to be withdrawn in a future Autoconf release.
2761 # They can cause serious problems if a builder's source tree is in a directory
2762 # whose full name contains unusual characters.
2763 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2764 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2765 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2768 # Find a good install program. We prefer a C program (faster),
2769 # so one script is as good as another. But avoid the broken or
2770 # incompatible versions:
2771 # SysV /etc/install, /usr/sbin/install
2772 # SunOS /usr/etc/install
2773 # IRIX /sbin/install
2775 # AmigaOS /C/install, which installs bootblocks on floppy discs
2776 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2777 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2778 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2779 # OS/2's system install, which has a completely different semantic
2780 # ./install, which can be erroneously created by make from ./install.sh.
2781 # Reject install programs that cannot install multiple files.
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2783 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2784 if test -z "$INSTALL"; then
2785 if ${ac_cv_path_install+:} false; then :
2786 $as_echo_n "(cached) " >&6
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 test -z "$as_dir" && as_dir=.
2793 # Account for people who put trailing slashes in PATH elements.
2794 case $as_dir/ in #((
2795 ./ | .// | /[cC]/* | \
2796 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2797 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2800 # OSF1 and SCO ODT 3.0 have their own names for install.
2801 # Don't use installbsd from OSF since it installs stuff as root
2803 for ac_prog in ginstall scoinst install; do
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2806 if test $ac_prog = install &&
2807 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2808 # AIX install. It has an incompatible calling convention.
2810 elif test $ac_prog = install &&
2811 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2812 # program-specific install script used by HP pwplus--don't use.
2815 rm -rf conftest.one conftest.two conftest.dir
2816 echo one > conftest.one
2817 echo two > conftest.two
2819 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2820 test -s conftest.one && test -s conftest.two &&
2821 test -s conftest.dir/conftest.one &&
2822 test -s conftest.dir/conftest.two
2824 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2837 rm -rf conftest.one conftest.two conftest.dir
2840 if test "${ac_cv_path_install+set}" = set; then
2841 INSTALL=$ac_cv_path_install
2843 # As a last resort, use the slow shell script. Don't cache a
2844 # value for INSTALL within a source directory, because that will
2845 # break other packages using the cache if that directory is
2846 # removed, or if the value is a relative name.
2847 INSTALL=$ac_install_sh
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2851 $as_echo "$INSTALL" >&6; }
2853 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2854 # It thinks the first close brace ends the variable substitution.
2855 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2857 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2859 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2862 $as_echo_n "checking whether build environment is sane... " >&6; }
2863 # Reject unsafe characters in $srcdir or the absolute working directory
2864 # name. Accept space and tab only in the latter.
2868 *[\\\"\#\$\&\'\`$am_lf]*)
2869 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2872 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2873 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2876 # Do 'set' in a subshell so we don't clobber the current shell's
2877 # arguments. Must try -L first in case configure is actually a
2878 # symlink; some systems play weird games with the mod time of symlinks
2879 # (eg FreeBSD returns the mod time of the symlink's containing
2883 for am_try in 1 2; do
2884 echo "timestamp, slept: $am_has_slept" > conftest.file
2885 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2886 if test "$*" = "X"; then
2888 set X `ls -t "$srcdir/configure" conftest.file`
2890 if test "$*" != "X $srcdir/configure conftest.file" \
2891 && test "$*" != "X conftest.file $srcdir/configure"; then
2893 # If neither matched, then we have a broken ls. This can happen
2894 # if, for instance, CONFIG_SHELL is bash and it inherits a
2895 # broken ls alias from the environment. This has actually
2896 # happened. Such a system could not be considered "sane".
2897 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2898 alias in your environment" "$LINENO" 5
2900 if test "$2" = conftest.file || test $am_try -eq 2; then
2907 test "$2" = conftest.file
2913 as_fn_error $? "newly created file is older than distributed files!
2914 Check your system clock" "$LINENO" 5
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2917 $as_echo "yes" >&6; }
2918 # If we didn't sleep, we still need to ensure time stamps of config.status and
2919 # generated files are strictly newer.
2921 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2928 test "$program_prefix" != NONE &&
2929 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2930 # Use a double $ so make ignores it.
2931 test "$program_suffix" != NONE &&
2932 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2933 # Double any \ or $.
2934 # By default was `s,x,x', remove it if useless.
2935 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2936 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2938 # Expand $ac_aux_dir to an absolute path.
2939 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2941 if test x"${MISSING+set}" != xset; then
2944 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2946 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2949 # Use eval to expand $SHELL
2950 if eval "$MISSING --is-lightweight"; then
2951 am_missing_run="$MISSING "
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2955 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2958 if test x"${install_sh+set}" != xset; then
2961 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2963 install_sh="\${SHELL} $am_aux_dir/install-sh"
2967 # Installed binaries are usually stripped using 'strip' when the user
2968 # run "make install-strip". However 'strip' might not be the right
2969 # tool to use in cross-compilation environments, therefore Automake
2970 # will honor the 'STRIP' environment variable to overrule this program.
2971 if test "$cross_compiling" != no; then
2972 if test -n "$ac_tool_prefix"; then
2973 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2974 set dummy ${ac_tool_prefix}strip; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if ${ac_cv_prog_STRIP+:} false; then :
2978 $as_echo_n "(cached) " >&6
2980 if test -n "$STRIP"; then
2981 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 STRIP=$ac_cv_prog_STRIP
3001 if test -n "$STRIP"; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3003 $as_echo "$STRIP" >&6; }
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3011 if test -z "$ac_cv_prog_STRIP"; then
3013 # Extract the first word of "strip", so it can be a program name with args.
3014 set dummy strip; ac_word=$2
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016 $as_echo_n "checking for $ac_word... " >&6; }
3017 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3018 $as_echo_n "(cached) " >&6
3020 if test -n "$ac_ct_STRIP"; then
3021 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 test -z "$as_dir" && as_dir=.
3028 for ac_exec_ext in '' $ac_executable_extensions; do
3029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3030 ac_cv_prog_ac_ct_STRIP="strip"
3031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3041 if test -n "$ac_ct_STRIP"; then
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3043 $as_echo "$ac_ct_STRIP" >&6; }
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 $as_echo "no" >&6; }
3049 if test "x$ac_ct_STRIP" = x; then
3052 case $cross_compiling:$ac_tool_warned in
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3056 ac_tool_warned=yes ;;
3061 STRIP="$ac_cv_prog_STRIP"
3065 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3068 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3069 if test -z "$MKDIR_P"; then
3070 if ${ac_cv_path_mkdir+:} false; then :
3071 $as_echo_n "(cached) " >&6
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3077 test -z "$as_dir" && as_dir=.
3078 for ac_prog in mkdir gmkdir; do
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3081 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3082 'mkdir (GNU coreutils) '* | \
3083 'mkdir (coreutils) '* | \
3084 'mkdir (fileutils) '4.1*)
3085 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3095 test -d ./--version && rmdir ./--version
3096 if test "${ac_cv_path_mkdir+set}" = set; then
3097 MKDIR_P="$ac_cv_path_mkdir -p"
3099 # As a last resort, use the slow shell script. Don't cache a
3100 # value for MKDIR_P within a source directory, because that will
3101 # break other packages using the cache if that directory is
3102 # removed, or if the value is a relative name.
3103 MKDIR_P="$ac_install_sh -d"
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3107 $as_echo "$MKDIR_P" >&6; }
3109 for ac_prog in gawk mawk nawk awk
3111 # Extract the first word of "$ac_prog", so it can be a program name with args.
3112 set dummy $ac_prog; ac_word=$2
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 $as_echo_n "checking for $ac_word... " >&6; }
3115 if ${ac_cv_prog_AWK+:} false; then :
3116 $as_echo_n "(cached) " >&6
3118 if test -n "$AWK"; then
3119 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 test -z "$as_dir" && as_dir=.
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3128 ac_cv_prog_AWK="$ac_prog"
3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 if test -n "$AWK"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3141 $as_echo "$AWK" >&6; }
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3148 test -n "$AWK" && break
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3152 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3154 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3155 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3156 $as_echo_n "(cached) " >&6
3158 cat >conftest.make <<\_ACEOF
3161 @echo '@@@%%%=$(MAKE)=@@@%%%'
3163 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3164 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3166 eval ac_cv_prog_make_${ac_make}_set=yes;;
3168 eval ac_cv_prog_make_${ac_make}_set=no;;
3172 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3174 $as_echo "yes" >&6; }
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3179 SET_MAKE="MAKE=${MAKE-make}"
3182 rm -rf .tst 2>/dev/null
3183 mkdir .tst 2>/dev/null
3184 if test -d .tst; then
3189 rmdir .tst 2>/dev/null
3191 # Check whether --enable-silent-rules was given.
3192 if test "${enable_silent_rules+set}" = set; then :
3193 enableval=$enable_silent_rules;
3196 case $enable_silent_rules in # (((
3197 yes) AM_DEFAULT_VERBOSITY=0;;
3198 no) AM_DEFAULT_VERBOSITY=1;;
3199 *) AM_DEFAULT_VERBOSITY=1;;
3201 am_make=${MAKE-make}
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3203 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3204 if ${am_cv_make_support_nested_variables+:} false; then :
3205 $as_echo_n "(cached) " >&6
3207 if $as_echo 'TRUE=$(BAR$(V))
3213 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3214 am_cv_make_support_nested_variables=yes
3216 am_cv_make_support_nested_variables=no
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3220 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3221 if test $am_cv_make_support_nested_variables = yes; then
3223 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3225 AM_V=$AM_DEFAULT_VERBOSITY
3226 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3230 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3231 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3232 # is not polluted with repeated "-I."
3233 am__isrc=' -I$(srcdir)'
3234 # test to see if srcdir already configured
3235 if test -f $srcdir/config.status; then
3236 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3240 # test whether we have cygpath
3241 if test -z "$CYGPATH_W"; then
3242 if (cygpath --version) >/dev/null 2>/dev/null; then
3243 CYGPATH_W='cygpath -w'
3250 # Define the identity of the package.
3251 PACKAGE='fontconfig'
3255 cat >>confdefs.h <<_ACEOF
3256 #define PACKAGE "$PACKAGE"
3260 cat >>confdefs.h <<_ACEOF
3261 #define VERSION "$VERSION"
3264 # Some tools Automake needs.
3266 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3269 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3272 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3275 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3278 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3280 # For better backward compatibility. To be removed once Automake 1.9.x
3281 # dies out for good. For more background, see:
3282 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3283 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3284 mkdir_p='$(MKDIR_P)'
3286 # We need awk for the "check" target (and possibly the TAP driver). The
3287 # system "awk" is bad on some platforms.
3288 # Always define AMTAR for backward compatibility. Yes, it's still used
3289 # in the wild :-( We should find a proper way to deprecate it ...
3293 # We'll loop over all known methods to create a tar archive until one works.
3294 _am_tools='gnutar pax cpio none'
3296 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3303 # POSIX will say in a future version that running "rm -f" with no argument
3304 # is OK; and we want to be able to make that assumption in our Makefile
3305 # recipes. So use an aggressive probe to check that the usage we want is
3306 # actually supported "in the wild" to an acceptable degree.
3307 # See automake bug#10828.
3308 # To make any issue more visible, cause the running configure to be aborted
3309 # by default if the 'rm' program in use doesn't match our expectations; the
3310 # user can still override this though.
3311 if rm -f && rm -fr && rm -rf; then : OK; else
3315 Your 'rm' program seems unable to run without file operands specified
3316 on the command line, even when the '-f' option is present. This is contrary
3317 to the behaviour of most rm programs out there, and not conforming with
3318 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3320 Please tell bug-automake@gnu.org about your system, including the value
3321 of your $PATH and any error possibly output before this message. This
3322 can help us improve future automake versions.
3325 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3326 echo 'Configuration will proceed anyway, since you have set the' >&2
3327 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3331 Aborting the configuration process, to ensure you take notice of the issue.
3333 You can download and install GNU coreutils to get an 'rm' implementation
3334 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3336 If you want to complete the configuration process using your problematic
3337 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3338 to "yes", and re-run configure.
3341 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3345 # Check whether --enable-silent-rules was given.
3346 if test "${enable_silent_rules+set}" = set; then :
3347 enableval=$enable_silent_rules;
3350 case $enable_silent_rules in # (((
3351 yes) AM_DEFAULT_VERBOSITY=0;;
3352 no) AM_DEFAULT_VERBOSITY=1;;
3353 *) AM_DEFAULT_VERBOSITY=0;;
3355 am_make=${MAKE-make}
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3357 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3358 if ${am_cv_make_support_nested_variables+:} false; then :
3359 $as_echo_n "(cached) " >&6
3361 if $as_echo 'TRUE=$(BAR$(V))
3367 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3368 am_cv_make_support_nested_variables=yes
3370 am_cv_make_support_nested_variables=no
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3374 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3375 if test $am_cv_make_support_nested_variables = yes; then
3377 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3379 AM_V=$AM_DEFAULT_VERBOSITY
3380 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3386 ac_config_headers="$ac_config_headers config.h"
3391 ac_cpp='$CPP $CPPFLAGS'
3392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395 if test -n "$ac_tool_prefix"; then
3396 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3397 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399 $as_echo_n "checking for $ac_word... " >&6; }
3400 if ${ac_cv_prog_CC+:} false; then :
3401 $as_echo_n "(cached) " >&6
3403 if test -n "$CC"; then
3404 ac_cv_prog_CC="$CC" # Let the user override the test.
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 test -z "$as_dir" && as_dir=.
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3413 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3424 if test -n "$CC"; then
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3426 $as_echo "$CC" >&6; }
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 $as_echo "no" >&6; }
3434 if test -z "$ac_cv_prog_CC"; then
3436 # Extract the first word of "gcc", so it can be a program name with args.
3437 set dummy gcc; ac_word=$2
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439 $as_echo_n "checking for $ac_word... " >&6; }
3440 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3441 $as_echo_n "(cached) " >&6
3443 if test -n "$ac_ct_CC"; then
3444 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 test -z "$as_dir" && as_dir=.
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3453 ac_cv_prog_ac_ct_CC="gcc"
3454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3463 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3464 if test -n "$ac_ct_CC"; then
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3466 $as_echo "$ac_ct_CC" >&6; }
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469 $as_echo "no" >&6; }
3472 if test "x$ac_ct_CC" = x; then
3475 case $cross_compiling:$ac_tool_warned in
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3479 ac_tool_warned=yes ;;
3487 if test -z "$CC"; then
3488 if test -n "$ac_tool_prefix"; then
3489 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3490 set dummy ${ac_tool_prefix}cc; ac_word=$2
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3492 $as_echo_n "checking for $ac_word... " >&6; }
3493 if ${ac_cv_prog_CC+:} false; then :
3494 $as_echo_n "(cached) " >&6
3496 if test -n "$CC"; then
3497 ac_cv_prog_CC="$CC" # Let the user override the test.
3499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 test -z "$as_dir" && as_dir=.
3504 for ac_exec_ext in '' $ac_executable_extensions; do
3505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3506 ac_cv_prog_CC="${ac_tool_prefix}cc"
3507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517 if test -n "$CC"; then
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3519 $as_echo "$CC" >&6; }
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522 $as_echo "no" >&6; }
3528 if test -z "$CC"; then
3529 # Extract the first word of "cc", so it can be a program name with args.
3530 set dummy cc; ac_word=$2
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3532 $as_echo_n "checking for $ac_word... " >&6; }
3533 if ${ac_cv_prog_CC+:} false; then :
3534 $as_echo_n "(cached) " >&6
3536 if test -n "$CC"; then
3537 ac_cv_prog_CC="$CC" # Let the user override the test.
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 test -z "$as_dir" && as_dir=.
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3547 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3548 ac_prog_rejected=yes
3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 if test $ac_prog_rejected = yes; then
3560 # We found a bogon in the path, so make sure we never use it.
3561 set dummy $ac_cv_prog_CC
3563 if test $# != 0; then
3564 # We chose a different compiler from the bogus one.
3565 # However, it has the same basename, so the bogon will be chosen
3566 # first if we set CC to just the basename; use the full file name.
3568 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3574 if test -n "$CC"; then
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3576 $as_echo "$CC" >&6; }
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 $as_echo "no" >&6; }
3584 if test -z "$CC"; then
3585 if test -n "$ac_tool_prefix"; then
3586 for ac_prog in cl.exe
3588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3589 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if ${ac_cv_prog_CC+:} false; then :
3593 $as_echo_n "(cached) " >&6
3595 if test -n "$CC"; then
3596 ac_cv_prog_CC="$CC" # Let the user override the test.
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3605 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 if test -n "$CC"; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618 $as_echo "$CC" >&6; }
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3625 test -n "$CC" && break
3628 if test -z "$CC"; then
3630 for ac_prog in cl.exe
3632 # Extract the first word of "$ac_prog", so it can be a program name with args.
3633 set dummy $ac_prog; ac_word=$2
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635 $as_echo_n "checking for $ac_word... " >&6; }
3636 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3637 $as_echo_n "(cached) " >&6
3639 if test -n "$ac_ct_CC"; then
3640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 test -z "$as_dir" && as_dir=.
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3649 ac_cv_prog_ac_ct_CC="$ac_prog"
3650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3660 if test -n "$ac_ct_CC"; then
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3662 $as_echo "$ac_ct_CC" >&6; }
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 $as_echo "no" >&6; }
3669 test -n "$ac_ct_CC" && break
3672 if test "x$ac_ct_CC" = x; then
3675 case $cross_compiling:$ac_tool_warned in
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3679 ac_tool_warned=yes ;;
3688 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3690 as_fn_error $? "no acceptable C compiler found in \$PATH
3691 See \`config.log' for more details" "$LINENO" 5; }
3693 # Provide some information about the compiler.
3694 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3697 for ac_option in --version -v -V -qversion; do
3698 { { ac_try="$ac_compiler $ac_option >&5"
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3704 $as_echo "$ac_try_echo"; } >&5
3705 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3707 if test -s conftest.err; then
3709 ... rest of stderr output deleted ...
3710 10q' conftest.err >conftest.er1
3711 cat conftest.er1 >&5
3713 rm -f conftest.er1 conftest.err
3714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715 test $ac_status = 0; }
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3729 ac_clean_files_save=$ac_clean_files
3730 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3731 # Try to create an executable without -o first, disregard a.out.
3732 # It will help us diagnose broken compilers, and finding out an intuition
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3735 $as_echo_n "checking whether the C compiler works... " >&6; }
3736 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3738 # The possible output files:
3739 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3742 for ac_file in $ac_files
3745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3746 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3751 if { { ac_try="$ac_link_default"
3753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754 *) ac_try_echo=$ac_try;;
3756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3757 $as_echo "$ac_try_echo"; } >&5
3758 (eval "$ac_link_default") 2>&5
3760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3761 test $ac_status = 0; }; then :
3762 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3763 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3764 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3765 # so that the user can short-circuit this test for compilers unknown to
3767 for ac_file in $ac_files ''
3769 test -f "$ac_file" || continue
3771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3774 # We found the default executable, but exeext='' is most
3778 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3780 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3782 # We set ac_cv_exeext here because the later test for it is not
3783 # safe: cross compilers may not add the suffix if given an `-o'
3784 # argument, so we may need to know it at that point already.
3785 # Even if this section looks crufty: it has the advantage of
3792 test "$ac_cv_exeext" = no && ac_cv_exeext=
3797 if test -z "$ac_file"; then :
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799 $as_echo "no" >&6; }
3800 $as_echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3803 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3805 as_fn_error 77 "C compiler cannot create executables
3806 See \`config.log' for more details" "$LINENO" 5; }
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3809 $as_echo "yes" >&6; }
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3812 $as_echo_n "checking for C compiler default output file name... " >&6; }
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3814 $as_echo "$ac_file" >&6; }
3815 ac_exeext=$ac_cv_exeext
3817 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3818 ac_clean_files=$ac_clean_files_save
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3820 $as_echo_n "checking for suffix of executables... " >&6; }
3821 if { { ac_try="$ac_link"
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3827 $as_echo "$ac_try_echo"; } >&5
3828 (eval "$ac_link") 2>&5
3830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3831 test $ac_status = 0; }; then :
3832 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3833 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3834 # work properly (i.e., refer to `conftest.exe'), while it won't with
3836 for ac_file in conftest.exe conftest conftest.*; do
3837 test -f "$ac_file" || continue
3839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3840 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3848 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3849 See \`config.log' for more details" "$LINENO" 5; }
3851 rm -f conftest conftest$ac_cv_exeext
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3853 $as_echo "$ac_cv_exeext" >&6; }
3855 rm -f conftest.$ac_ext
3856 EXEEXT=$ac_cv_exeext
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3864 FILE *f = fopen ("conftest.out", "w");
3865 return ferror (f) || fclose (f) != 0;
3871 ac_clean_files="$ac_clean_files conftest.out"
3872 # Check that the compiler produces executables we can run. If not, either
3873 # the compiler is broken, or we cross compile.
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3875 $as_echo_n "checking whether we are cross compiling... " >&6; }
3876 if test "$cross_compiling" != yes; then
3877 { { ac_try="$ac_link"
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3883 $as_echo "$ac_try_echo"; } >&5
3884 (eval "$ac_link") 2>&5
3886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3887 test $ac_status = 0; }
3888 if { ac_try='./conftest$ac_cv_exeext'
3889 { { case "(($ac_try" in
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3894 $as_echo "$ac_try_echo"; } >&5
3895 (eval "$ac_try") 2>&5
3897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3898 test $ac_status = 0; }; }; then
3901 if test "$cross_compiling" = maybe; then
3904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3906 as_fn_error $? "cannot run C compiled programs.
3907 If you meant to cross compile, use \`--host'.
3908 See \`config.log' for more details" "$LINENO" 5; }
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3913 $as_echo "$cross_compiling" >&6; }
3915 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3916 ac_clean_files=$ac_clean_files_save
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3918 $as_echo_n "checking for suffix of object files... " >&6; }
3919 if ${ac_cv_objext+:} false; then :
3920 $as_echo_n "(cached) " >&6
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h. */
3933 rm -f conftest.o conftest.obj
3934 if { { ac_try="$ac_compile"
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3940 $as_echo "$ac_try_echo"; } >&5
3941 (eval "$ac_compile") 2>&5
3943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3944 test $ac_status = 0; }; then :
3945 for ac_file in conftest.o conftest.obj conftest.*; do
3946 test -f "$ac_file" || continue;
3948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3949 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3954 $as_echo "$as_me: failed program was:" >&5
3955 sed 's/^/| /' conftest.$ac_ext >&5
3957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3959 as_fn_error $? "cannot compute suffix of object files: cannot compile
3960 See \`config.log' for more details" "$LINENO" 5; }
3962 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3965 $as_echo "$ac_cv_objext" >&6; }
3966 OBJEXT=$ac_cv_objext
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3969 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3970 if ${ac_cv_c_compiler_gnu+:} false; then :
3971 $as_echo_n "(cached) " >&6
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3987 if ac_fn_c_try_compile "$LINENO"; then :
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3997 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3998 if test $ac_compiler_gnu = yes; then
4003 ac_test_CFLAGS=${CFLAGS+set}
4004 ac_save_CFLAGS=$CFLAGS
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4006 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4007 if ${ac_cv_prog_cc_g+:} false; then :
4008 $as_echo_n "(cached) " >&6
4010 ac_save_c_werror_flag=$ac_c_werror_flag
4011 ac_c_werror_flag=yes
4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015 /* end confdefs.h. */
4025 if ac_fn_c_try_compile "$LINENO"; then :
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4040 if ac_fn_c_try_compile "$LINENO"; then :
4043 ac_c_werror_flag=$ac_save_c_werror_flag
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4056 if ac_fn_c_try_compile "$LINENO"; then :
4059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064 ac_c_werror_flag=$ac_save_c_werror_flag
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4067 $as_echo "$ac_cv_prog_cc_g" >&6; }
4068 if test "$ac_test_CFLAGS" = set; then
4069 CFLAGS=$ac_save_CFLAGS
4070 elif test $ac_cv_prog_cc_g = yes; then
4071 if test "$GCC" = yes; then
4077 if test "$GCC" = yes; then
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4084 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4085 if ${ac_cv_prog_cc_c89+:} false; then :
4086 $as_echo_n "(cached) " >&6
4088 ac_cv_prog_cc_c89=no
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4095 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4096 struct buf { int x; };
4097 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4098 static char *e (p, i)
4104 static char *f (char * (*g) (char **, int), char **p, ...)
4109 s = g (p, va_arg (v,int));
4114 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4115 function prototypes and stuff, but not '\xHH' hex character constants.
4116 These don't provoke an error unfortunately, instead are silently treated
4117 as 'x'. The following induces an error, until -std is added to get
4118 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4119 array size at least. It's necessary to write '\x00'==0 to get something
4120 that's true only with -std. */
4121 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4123 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4124 inside strings and character constants. */
4126 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4128 int test (int i, double x);
4129 struct s1 {int (*f) (int a);};
4130 struct s2 {int (*f) (double a);};
4131 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4137 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4142 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4143 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4145 CC="$ac_save_CC $ac_arg"
4146 if ac_fn_c_try_compile "$LINENO"; then :
4147 ac_cv_prog_cc_c89=$ac_arg
4149 rm -f core conftest.err conftest.$ac_objext
4150 test "x$ac_cv_prog_cc_c89" != "xno" && break
4152 rm -f conftest.$ac_ext
4157 case "x$ac_cv_prog_cc_c89" in
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4160 $as_echo "none needed" >&6; } ;;
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4163 $as_echo "unsupported" >&6; } ;;
4165 CC="$CC $ac_cv_prog_cc_c89"
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4167 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4169 if test "x$ac_cv_prog_cc_c89" != xno; then :
4174 ac_cpp='$CPP $CPPFLAGS'
4175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4180 ac_cpp='$CPP $CPPFLAGS'
4181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4185 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4186 if ${am_cv_prog_cc_c_o+:} false; then :
4187 $as_echo_n "(cached) " >&6
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4200 # Make sure it works both with $CC and with simple cc.
4201 # Following AC_PROG_CC_C_O, we do the test twice because some
4202 # compilers refuse to overwrite an existing .o file with -o,
4203 # though they will create one.
4204 am_cv_prog_cc_c_o=yes
4206 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4207 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } \
4211 && test -f conftest2.$ac_objext; then
4214 am_cv_prog_cc_c_o=no
4218 rm -f core conftest*
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4222 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4223 if test "$am_cv_prog_cc_c_o" != yes; then
4224 # Losing compiler, so override with the script.
4225 # FIXME: It is wrong to rewrite CC.
4226 # But if we don't then we get into trouble of one sort or another.
4227 # A longer-term fix would be to have automake use am__CC in this case,
4228 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4229 CC="$am_aux_dir/compile $CC"
4232 ac_cpp='$CPP $CPPFLAGS'
4233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4237 DEPDIR="${am__leading_dot}deps"
4239 ac_config_commands="$ac_config_commands depfiles"
4242 am_make=${MAKE-make}
4243 cat > confinc << 'END'
4245 @echo this is the am__doit target
4248 # If we don't find an include directive, just comment out the code.
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4250 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4254 # First try GNU make style include.
4255 echo "include confinc" > confmf
4256 # Ignore all kinds of additional output from 'make'.
4257 case `$am_make -s -f confmf 2> /dev/null` in #(
4258 *the\ am__doit\ target*)
4264 # Now try BSD make style include.
4265 if test "$am__include" = "#"; then
4266 echo '.include "confinc"' > confmf
4267 case `$am_make -s -f confmf 2> /dev/null` in #(
4268 *the\ am__doit\ target*)
4269 am__include=.include
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4278 $as_echo "$_am_result" >&6; }
4279 rm -f confinc confmf
4281 # Check whether --enable-dependency-tracking was given.
4282 if test "${enable_dependency_tracking+set}" = set; then :
4283 enableval=$enable_dependency_tracking;
4286 if test "x$enable_dependency_tracking" != xno; then
4287 am_depcomp="$ac_aux_dir/depcomp"
4291 if test "x$enable_dependency_tracking" != xno; then
4301 depcc="$CC" am_compiler_list=
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4304 $as_echo_n "checking dependency style of $depcc... " >&6; }
4305 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4306 $as_echo_n "(cached) " >&6
4308 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4309 # We make a subdir and do the tests there. Otherwise we can end up
4310 # making bogus files that we don't know about and never remove. For
4311 # instance it was reported that on HP-UX the gcc test will end up
4312 # making a dummy file named 'D' -- because '-MD' means "put the output
4316 # Copy depcomp to subdir because otherwise we won't find it if we're
4317 # using a relative directory.
4318 cp "$am_depcomp" conftest.dir
4320 # We will build objects and dependencies in a subdirectory because
4321 # it helps to detect inapplicable dependency modes. For instance
4322 # both Tru64's cc and ICC support -MD to output dependencies as a
4323 # side effect of compilation, but ICC will put the dependencies in
4324 # the current directory while Tru64 will put them in the object
4328 am_cv_CC_dependencies_compiler_type=none
4329 if test "$am_compiler_list" = ""; then
4330 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4333 case " $depcc " in #(
4334 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4337 for depmode in $am_compiler_list; do
4338 # Setup a source with many dependencies, because some compilers
4339 # like to wrap large dependency lists on column 80 (with \), and
4340 # we should not choose a depcomp mode which is confused by this.
4342 # We need to recreate these files for each test, as the compiler may
4343 # overwrite some of them when testing with obscure command lines.
4344 # This happens at least with the AIX C compiler.
4346 for i in 1 2 3 4 5 6; do
4347 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4348 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4349 # Solaris 10 /bin/sh.
4350 echo '/* dummy */' > sub/conftst$i.h
4352 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4354 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4355 # mode. It turns out that the SunPro C++ compiler does not properly
4356 # handle '-M -o', and we need to detect this. Also, some Intel
4357 # versions had trouble with output in subdirs.
4358 am__obj=sub/conftest.${OBJEXT-o}
4359 am__minus_obj="-o $am__obj"
4362 # This depmode causes a compiler race in universal mode.
4363 test "$am__universal" = false || continue
4366 # After this tag, mechanisms are not by side-effect, so they'll
4367 # only be used when explicitly requested.
4368 if test "x$enable_dependency_tracking" = xyes; then
4374 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4375 # This compiler won't grok '-c -o', but also, the minuso test has
4376 # not run yet. These depmodes are late enough in the game, and
4377 # so weak that their functioning should not be impacted.
4378 am__obj=conftest.${OBJEXT-o}
4383 if depmode=$depmode \
4384 source=sub/conftest.c object=$am__obj \
4385 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4386 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4387 >/dev/null 2>conftest.err &&
4388 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4389 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4390 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4391 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4392 # icc doesn't choke on unknown options, it will just issue warnings
4393 # or remarks (even with -Werror). So we grep stderr for any message
4394 # that says an option was ignored or not supported.
4395 # When given -MP, icc 7.0 and 7.1 complain thusly:
4396 # icc: Command line warning: ignoring option '-M'; no argument required
4397 # The diagnosis changed in icc 8.0:
4398 # icc: Command line remark: option '-MP' not supported
4399 if (grep 'ignoring option' conftest.err ||
4400 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4401 am_cv_CC_dependencies_compiler_type=$depmode
4410 am_cv_CC_dependencies_compiler_type=none
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4415 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4416 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4419 test "x$enable_dependency_tracking" != xno \
4420 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4422 am__fastdepCC_FALSE='#'
4424 am__fastdepCC_TRUE='#'
4425 am__fastdepCC_FALSE=
4431 ac_cpp='$CPP $CPPFLAGS'
4432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4436 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4437 # On Suns, sometimes $CPP names a directory.
4438 if test -n "$CPP" && test -d "$CPP"; then
4441 if test -z "$CPP"; then
4442 if ${ac_cv_prog_CPP+:} false; then :
4443 $as_echo_n "(cached) " >&6
4445 # Double quotes because CPP needs to be expanded
4446 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4449 for ac_c_preproc_warn_flag in '' yes
4451 # Use a header file that comes with gcc, so configuring glibc
4452 # with a fresh cross-compiler works.
4453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4454 # <limits.h> exists even on freestanding compilers.
4455 # On the NeXT, cc -E runs the code through the compiler's parser,
4456 # not just through cpp. "Syntax error" is here to catch this case.
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4460 # include <limits.h>
4462 # include <assert.h>
4466 if ac_fn_c_try_cpp "$LINENO"; then :
4469 # Broken: fails on valid input.
4472 rm -f conftest.err conftest.i conftest.$ac_ext
4474 # OK, works on sane cases. Now check whether nonexistent headers
4475 # can be detected and how.
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4478 #include <ac_nonexistent.h>
4480 if ac_fn_c_try_cpp "$LINENO"; then :
4481 # Broken: success on invalid input.
4484 # Passes both tests.
4488 rm -f conftest.err conftest.i conftest.$ac_ext
4491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4492 rm -f conftest.i conftest.err conftest.$ac_ext
4493 if $ac_preproc_ok; then :
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4506 $as_echo "$CPP" >&6; }
4508 for ac_c_preproc_warn_flag in '' yes
4510 # Use a header file that comes with gcc, so configuring glibc
4511 # with a fresh cross-compiler works.
4512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4513 # <limits.h> exists even on freestanding compilers.
4514 # On the NeXT, cc -E runs the code through the compiler's parser,
4515 # not just through cpp. "Syntax error" is here to catch this case.
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4519 # include <limits.h>
4521 # include <assert.h>
4525 if ac_fn_c_try_cpp "$LINENO"; then :
4528 # Broken: fails on valid input.
4531 rm -f conftest.err conftest.i conftest.$ac_ext
4533 # OK, works on sane cases. Now check whether nonexistent headers
4534 # can be detected and how.
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4537 #include <ac_nonexistent.h>
4539 if ac_fn_c_try_cpp "$LINENO"; then :
4540 # Broken: success on invalid input.
4543 # Passes both tests.
4547 rm -f conftest.err conftest.i conftest.$ac_ext
4550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4551 rm -f conftest.i conftest.err conftest.$ac_ext
4552 if $ac_preproc_ok; then :
4555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4557 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4558 See \`config.log' for more details" "$LINENO" 5; }
4562 ac_cpp='$CPP $CPPFLAGS'
4563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4569 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4570 if ${ac_cv_path_GREP+:} false; then :
4571 $as_echo_n "(cached) " >&6
4573 if test -z "$GREP"; then
4574 ac_path_GREP_found=false
4575 # Loop through the user's path and test for each of PROGNAME-LIST
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4580 test -z "$as_dir" && as_dir=.
4581 for ac_prog in grep ggrep; do
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4584 as_fn_executable_p "$ac_path_GREP" || continue
4585 # Check for GNU ac_path_GREP and select it if it is found.
4586 # Check for GNU $ac_path_GREP
4587 case `"$ac_path_GREP" --version 2>&1` in
4589 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4592 $as_echo_n 0123456789 >"conftest.in"
4595 cat "conftest.in" "conftest.in" >"conftest.tmp"
4596 mv "conftest.tmp" "conftest.in"
4597 cp "conftest.in" "conftest.nl"
4598 $as_echo 'GREP' >> "conftest.nl"
4599 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4600 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4601 as_fn_arith $ac_count + 1 && ac_count=$as_val
4602 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4603 # Best one so far, save it but keep looking for a better one
4604 ac_cv_path_GREP="$ac_path_GREP"
4605 ac_path_GREP_max=$ac_count
4607 # 10*(2^10) chars as input seems more than enough
4608 test $ac_count -gt 10 && break
4610 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4613 $ac_path_GREP_found && break 3
4618 if test -z "$ac_cv_path_GREP"; then
4619 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4622 ac_cv_path_GREP=$GREP
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4627 $as_echo "$ac_cv_path_GREP" >&6; }
4628 GREP="$ac_cv_path_GREP"
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4632 $as_echo_n "checking for egrep... " >&6; }
4633 if ${ac_cv_path_EGREP+:} false; then :
4634 $as_echo_n "(cached) " >&6
4636 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4637 then ac_cv_path_EGREP="$GREP -E"
4639 if test -z "$EGREP"; then
4640 ac_path_EGREP_found=false
4641 # Loop through the user's path and test for each of PROGNAME-LIST
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4646 test -z "$as_dir" && as_dir=.
4647 for ac_prog in egrep; do
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4650 as_fn_executable_p "$ac_path_EGREP" || continue
4651 # Check for GNU ac_path_EGREP and select it if it is found.
4652 # Check for GNU $ac_path_EGREP
4653 case `"$ac_path_EGREP" --version 2>&1` in
4655 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4658 $as_echo_n 0123456789 >"conftest.in"
4661 cat "conftest.in" "conftest.in" >"conftest.tmp"
4662 mv "conftest.tmp" "conftest.in"
4663 cp "conftest.in" "conftest.nl"
4664 $as_echo 'EGREP' >> "conftest.nl"
4665 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4666 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4667 as_fn_arith $ac_count + 1 && ac_count=$as_val
4668 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4669 # Best one so far, save it but keep looking for a better one
4670 ac_cv_path_EGREP="$ac_path_EGREP"
4671 ac_path_EGREP_max=$ac_count
4673 # 10*(2^10) chars as input seems more than enough
4674 test $ac_count -gt 10 && break
4676 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4679 $ac_path_EGREP_found && break 3
4684 if test -z "$ac_cv_path_EGREP"; then
4685 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4688 ac_cv_path_EGREP=$EGREP
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4694 $as_echo "$ac_cv_path_EGREP" >&6; }
4695 EGREP="$ac_cv_path_EGREP"
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4699 $as_echo_n "checking for ANSI C header files... " >&6; }
4700 if ${ac_cv_header_stdc+:} false; then :
4701 $as_echo_n "(cached) " >&6
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4718 if ac_fn_c_try_compile "$LINENO"; then :
4719 ac_cv_header_stdc=yes
4721 ac_cv_header_stdc=no
4723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4725 if test $ac_cv_header_stdc = yes; then
4726 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4733 $EGREP "memchr" >/dev/null 2>&1; then :
4736 ac_cv_header_stdc=no
4742 if test $ac_cv_header_stdc = yes; then
4743 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4750 $EGREP "free" >/dev/null 2>&1; then :
4753 ac_cv_header_stdc=no
4759 if test $ac_cv_header_stdc = yes; then
4760 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4761 if test "$cross_compiling" = yes; then :
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4768 #if ((' ' & 0x0FF) == 0x020)
4769 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4770 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4772 # define ISLOWER(c) \
4773 (('a' <= (c) && (c) <= 'i') \
4774 || ('j' <= (c) && (c) <= 'r') \
4775 || ('s' <= (c) && (c) <= 'z'))
4776 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4779 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4784 for (i = 0; i < 256; i++)
4785 if (XOR (islower (i), ISLOWER (i))
4786 || toupper (i) != TOUPPER (i))
4791 if ac_fn_c_try_run "$LINENO"; then :
4794 ac_cv_header_stdc=no
4796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4797 conftest.$ac_objext conftest.beam conftest.$ac_ext
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4803 $as_echo "$ac_cv_header_stdc" >&6; }
4804 if test $ac_cv_header_stdc = yes; then
4806 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4810 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4811 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4812 inttypes.h stdint.h unistd.h
4814 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4815 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4817 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4818 cat >>confdefs.h <<_ACEOF
4819 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4828 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4829 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4836 if test "$MINIX" = yes; then
4838 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4841 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4844 $as_echo "#define _MINIX 1" >>confdefs.h
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4850 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4851 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4852 $as_echo_n "(cached) " >&6
4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h. */
4857 # define __EXTENSIONS__ 1
4858 $ac_includes_default
4867 if ac_fn_c_try_compile "$LINENO"; then :
4868 ac_cv_safe_to_define___extensions__=yes
4870 ac_cv_safe_to_define___extensions__=no
4872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4875 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4876 test $ac_cv_safe_to_define___extensions__ = yes &&
4877 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4879 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4881 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4883 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4885 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4888 # Check whether --enable-largefile was given.
4889 if test "${enable_largefile+set}" = set; then :
4890 enableval=$enable_largefile;
4893 if test "$enable_largefile" != no; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4896 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4897 if ${ac_cv_sys_largefile_CC+:} false; then :
4898 $as_echo_n "(cached) " >&6
4900 ac_cv_sys_largefile_CC=no
4901 if test "$GCC" != yes; then
4904 # IRIX 6.2 and later do not support large files by default,
4905 # so use the C compiler's -n32 option if that helps.
4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907 /* end confdefs.h. */
4908 #include <sys/types.h>
4909 /* Check that off_t can represent 2**63 - 1 correctly.
4910 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4911 since some C++ compilers masquerading as C compilers
4912 incorrectly reject 9223372036854775807. */
4913 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4914 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4915 && LARGE_OFF_T % 2147483647 == 1)
4925 if ac_fn_c_try_compile "$LINENO"; then :
4928 rm -f core conftest.err conftest.$ac_objext
4930 if ac_fn_c_try_compile "$LINENO"; then :
4931 ac_cv_sys_largefile_CC=' -n32'; break
4933 rm -f core conftest.err conftest.$ac_objext
4937 rm -f conftest.$ac_ext
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4941 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4942 if test "$ac_cv_sys_largefile_CC" != no; then
4943 CC=$CC$ac_cv_sys_largefile_CC
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4947 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4948 if ${ac_cv_sys_file_offset_bits+:} false; then :
4949 $as_echo_n "(cached) " >&6
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h. */
4954 #include <sys/types.h>
4955 /* Check that off_t can represent 2**63 - 1 correctly.
4956 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4957 since some C++ compilers masquerading as C compilers
4958 incorrectly reject 9223372036854775807. */
4959 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4960 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4961 && LARGE_OFF_T % 2147483647 == 1)
4971 if ac_fn_c_try_compile "$LINENO"; then :
4972 ac_cv_sys_file_offset_bits=no; break
4974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4977 #define _FILE_OFFSET_BITS 64
4978 #include <sys/types.h>
4979 /* Check that off_t can represent 2**63 - 1 correctly.
4980 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4981 since some C++ compilers masquerading as C compilers
4982 incorrectly reject 9223372036854775807. */
4983 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4984 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4985 && LARGE_OFF_T % 2147483647 == 1)
4995 if ac_fn_c_try_compile "$LINENO"; then :
4996 ac_cv_sys_file_offset_bits=64; break
4998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4999 ac_cv_sys_file_offset_bits=unknown
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5004 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5005 case $ac_cv_sys_file_offset_bits in #(
5008 cat >>confdefs.h <<_ACEOF
5009 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5014 if test $ac_cv_sys_file_offset_bits = unknown; then
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5016 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5017 if ${ac_cv_sys_large_files+:} false; then :
5018 $as_echo_n "(cached) " >&6
5021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5022 /* end confdefs.h. */
5023 #include <sys/types.h>
5024 /* Check that off_t can represent 2**63 - 1 correctly.
5025 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5026 since some C++ compilers masquerading as C compilers
5027 incorrectly reject 9223372036854775807. */
5028 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5029 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5030 && LARGE_OFF_T % 2147483647 == 1)
5040 if ac_fn_c_try_compile "$LINENO"; then :
5041 ac_cv_sys_large_files=no; break
5043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045 /* end confdefs.h. */
5046 #define _LARGE_FILES 1
5047 #include <sys/types.h>
5048 /* Check that off_t can represent 2**63 - 1 correctly.
5049 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5050 since some C++ compilers masquerading as C compilers
5051 incorrectly reject 9223372036854775807. */
5052 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5053 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5054 && LARGE_OFF_T % 2147483647 == 1)
5064 if ac_fn_c_try_compile "$LINENO"; then :
5065 ac_cv_sys_large_files=1; break
5067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5068 ac_cv_sys_large_files=unknown
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5073 $as_echo "$ac_cv_sys_large_files" >&6; }
5074 case $ac_cv_sys_large_files in #(
5077 cat >>confdefs.h <<_ACEOF
5078 #define _LARGE_FILES $ac_cv_sys_large_files
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5090 $as_echo_n "checking whether ln -s works... " >&6; }
5092 if test "$LN_S" = "ln -s"; then
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5094 $as_echo "yes" >&6; }
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5097 $as_echo "no, using $LN_S" >&6; }
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5101 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5103 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5104 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5105 $as_echo_n "(cached) " >&6
5107 cat >conftest.make <<\_ACEOF
5110 @echo '@@@%%%=$(MAKE)=@@@%%%'
5112 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5113 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5115 eval ac_cv_prog_make_${ac_make}_set=yes;;
5117 eval ac_cv_prog_make_${ac_make}_set=no;;
5121 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5123 $as_echo "yes" >&6; }
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5128 SET_MAKE="MAKE=${MAKE-make}"
5138 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5139 if test -n "$ac_tool_prefix"; then
5140 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5141 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143 $as_echo_n "checking for $ac_word... " >&6; }
5144 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5145 $as_echo_n "(cached) " >&6
5149 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5159 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5171 if test -n "$PKG_CONFIG"; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5173 $as_echo "$PKG_CONFIG" >&6; }
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5181 if test -z "$ac_cv_path_PKG_CONFIG"; then
5182 ac_pt_PKG_CONFIG=$PKG_CONFIG
5183 # Extract the first word of "pkg-config", so it can be a program name with args.
5184 set dummy pkg-config; ac_word=$2
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 $as_echo_n "checking for $ac_word... " >&6; }
5187 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5188 $as_echo_n "(cached) " >&6
5190 case $ac_pt_PKG_CONFIG in
5192 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5213 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5214 if test -n "$ac_pt_PKG_CONFIG"; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5216 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5222 if test "x$ac_pt_PKG_CONFIG" = x; then
5225 case $cross_compiling:$ac_tool_warned in
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5229 ac_tool_warned=yes ;;
5231 PKG_CONFIG=$ac_pt_PKG_CONFIG
5234 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5238 if test -n "$PKG_CONFIG"; then
5239 _pkg_min_version=0.9.0
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5241 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5242 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5244 $as_echo "yes" >&6; }
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5247 $as_echo "no" >&6; }
5254 # Check whether --with-pkgconfigdir was given.
5255 if test "${with_pkgconfigdir+set}" = set; then :
5256 withval=$with_pkgconfigdir;
5258 with_pkgconfigdir='${libdir}/pkgconfig'
5261 pkgconfigdir=$with_pkgconfigdir
5268 GIT=${GIT-"${am_missing_run}git"}
5271 GPERF=${GPERF-"${am_missing_run}gperf"}
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM macro" >&5
5275 $as_echo_n "checking for RM macro... " >&6; }
5276 _predefined_rm=`make -p -f /dev/null 2>/dev/null|grep '^RM ='|sed -e 's/^RM = //'`
5277 if test "x$_predefined_rm" = "x"; then
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no predefined RM" >&5
5279 $as_echo "no predefined RM" >&6; }
5280 # Extract the first word of "rm", so it can be a program name with args.
5281 set dummy rm; ac_word=$2
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5283 $as_echo_n "checking for $ac_word... " >&6; }
5284 if ${ac_cv_prog_RM+:} false; then :
5285 $as_echo_n "(cached) " >&6
5287 if test -n "$RM"; then
5288 ac_cv_prog_RM="$RM" # Let the user override the test.
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 test -z "$as_dir" && as_dir=.
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5297 ac_cv_prog_RM="rm -f"
5298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 if test -n "$RM"; then
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5310 $as_echo "$RM" >&6; }
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313 $as_echo "no" >&6; }
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_predefined_rm" >&5
5319 $as_echo "$_predefined_rm" >&6; }
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5326 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5331 macro_version='2.4.6'
5332 macro_revision='2.4.6'
5346 ltmain=$ac_aux_dir/ltmain.sh
5348 # Make sure we can run config.sub.
5349 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5350 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5353 $as_echo_n "checking build system type... " >&6; }
5354 if ${ac_cv_build+:} false; then :
5355 $as_echo_n "(cached) " >&6
5357 ac_build_alias=$build_alias
5358 test "x$ac_build_alias" = x &&
5359 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5360 test "x$ac_build_alias" = x &&
5361 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5362 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5363 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5367 $as_echo "$ac_cv_build" >&6; }
5368 case $ac_cv_build in
5370 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5373 ac_save_IFS=$IFS; IFS='-'
5379 # Remember, the first character of IFS is used to create $*,
5380 # except with old shells:
5383 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5387 $as_echo_n "checking host system type... " >&6; }
5388 if ${ac_cv_host+:} false; then :
5389 $as_echo_n "(cached) " >&6
5391 if test "x$host_alias" = x; then
5392 ac_cv_host=$ac_cv_build
5394 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5395 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5400 $as_echo "$ac_cv_host" >&6; }
5403 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5406 ac_save_IFS=$IFS; IFS='-'
5412 # Remember, the first character of IFS is used to create $*,
5413 # except with old shells:
5416 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5419 # Backslashify metacharacters that are still active within
5420 # double-quoted strings.
5421 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5423 # Same as above, but do not quote variable references.
5424 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5426 # Sed substitution to delay expansion of an escaped shell variable in a
5427 # double_quote_subst'ed string.
5428 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5430 # Sed substitution to delay expansion of an escaped single quote.
5431 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5433 # Sed substitution to avoid accidental globbing in evaled expressions
5434 no_glob_subst='s/\*/\\\*/g'
5436 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5437 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5438 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5441 $as_echo_n "checking how to print strings... " >&6; }
5442 # Test print first, because it will be a builtin if present.
5443 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5444 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5446 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5449 # Use this function as a fallback that always works.
5450 func_fallback_echo ()
5452 eval 'cat <<_LTECHO_EOF
5456 ECHO='func_fallback_echo'
5459 # func_echo_all arg...
5460 # Invoke $ECHO with all args, space-separated.
5467 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5468 $as_echo "printf" >&6; } ;;
5469 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5470 $as_echo "print -r" >&6; } ;;
5471 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5472 $as_echo "cat" >&6; } ;;
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5489 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5490 if ${ac_cv_path_SED+:} false; then :
5491 $as_echo_n "(cached) " >&6
5493 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5494 for ac_i in 1 2 3 4 5 6 7; do
5495 ac_script="$ac_script$as_nl$ac_script"
5497 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5498 { ac_script=; unset ac_script;}
5499 if test -z "$SED"; then
5500 ac_path_SED_found=false
5501 # Loop through the user's path and test for each of PROGNAME-LIST
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 test -z "$as_dir" && as_dir=.
5507 for ac_prog in sed gsed; do
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5510 as_fn_executable_p "$ac_path_SED" || continue
5511 # Check for GNU ac_path_SED and select it if it is found.
5512 # Check for GNU $ac_path_SED
5513 case `"$ac_path_SED" --version 2>&1` in
5515 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5518 $as_echo_n 0123456789 >"conftest.in"
5521 cat "conftest.in" "conftest.in" >"conftest.tmp"
5522 mv "conftest.tmp" "conftest.in"
5523 cp "conftest.in" "conftest.nl"
5524 $as_echo '' >> "conftest.nl"
5525 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5526 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5527 as_fn_arith $ac_count + 1 && ac_count=$as_val
5528 if test $ac_count -gt ${ac_path_SED_max-0}; then
5529 # Best one so far, save it but keep looking for a better one
5530 ac_cv_path_SED="$ac_path_SED"
5531 ac_path_SED_max=$ac_count
5533 # 10*(2^10) chars as input seems more than enough
5534 test $ac_count -gt 10 && break
5536 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5539 $ac_path_SED_found && break 3
5544 if test -z "$ac_cv_path_SED"; then
5545 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5553 $as_echo "$ac_cv_path_SED" >&6; }
5554 SED="$ac_cv_path_SED"
5557 test -z "$SED" && SED=sed
5558 Xsed="$SED -e 1s/^X//"
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5571 $as_echo_n "checking for fgrep... " >&6; }
5572 if ${ac_cv_path_FGREP+:} false; then :
5573 $as_echo_n "(cached) " >&6
5575 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5576 then ac_cv_path_FGREP="$GREP -F"
5578 if test -z "$FGREP"; then
5579 ac_path_FGREP_found=false
5580 # Loop through the user's path and test for each of PROGNAME-LIST
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5585 test -z "$as_dir" && as_dir=.
5586 for ac_prog in fgrep; do
5587 for ac_exec_ext in '' $ac_executable_extensions; do
5588 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5589 as_fn_executable_p "$ac_path_FGREP" || continue
5590 # Check for GNU ac_path_FGREP and select it if it is found.
5591 # Check for GNU $ac_path_FGREP
5592 case `"$ac_path_FGREP" --version 2>&1` in
5594 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5597 $as_echo_n 0123456789 >"conftest.in"
5600 cat "conftest.in" "conftest.in" >"conftest.tmp"
5601 mv "conftest.tmp" "conftest.in"
5602 cp "conftest.in" "conftest.nl"
5603 $as_echo 'FGREP' >> "conftest.nl"
5604 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5605 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5606 as_fn_arith $ac_count + 1 && ac_count=$as_val
5607 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5608 # Best one so far, save it but keep looking for a better one
5609 ac_cv_path_FGREP="$ac_path_FGREP"
5610 ac_path_FGREP_max=$ac_count
5612 # 10*(2^10) chars as input seems more than enough
5613 test $ac_count -gt 10 && break
5615 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5618 $ac_path_FGREP_found && break 3
5623 if test -z "$ac_cv_path_FGREP"; then
5624 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5627 ac_cv_path_FGREP=$FGREP
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5633 $as_echo "$ac_cv_path_FGREP" >&6; }
5634 FGREP="$ac_cv_path_FGREP"
5637 test -z "$GREP" && GREP=grep
5657 # Check whether --with-gnu-ld was given.
5658 if test "${with_gnu_ld+set}" = set; then :
5659 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5665 if test yes = "$GCC"; then
5666 # Check if gcc -print-prog-name=ld gives a path.
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5668 $as_echo_n "checking for ld used by $CC... " >&6; }
5671 # gcc leaves a trailing carriage return, which upsets mingw
5672 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5674 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5677 # Accept absolute paths.
5679 re_direlt='/[^/][^/]*/\.\./'
5680 # Canonicalize the pathname of ld
5681 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5682 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5683 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5685 test -z "$LD" && LD=$ac_prog
5688 # If it fails, then pretend we aren't using GCC.
5692 # If it is relative, then search for the first ld in PATH.
5696 elif test yes = "$with_gnu_ld"; then
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5698 $as_echo_n "checking for GNU ld... " >&6; }
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5701 $as_echo_n "checking for non-GNU ld... " >&6; }
5703 if ${lt_cv_path_LD+:} false; then :
5704 $as_echo_n "(cached) " >&6
5706 if test -z "$LD"; then
5707 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5708 for ac_dir in $PATH; do
5710 test -z "$ac_dir" && ac_dir=.
5711 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5712 lt_cv_path_LD=$ac_dir/$ac_prog
5713 # Check to see if the program is GNU ld. I'd rather use --version,
5714 # but apparently some variants of GNU ld only accept -v.
5715 # Break only if it was the GNU/non-GNU ld that we prefer.
5716 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5717 *GNU* | *'with BFD'*)
5718 test no != "$with_gnu_ld" && break
5721 test yes != "$with_gnu_ld" && break
5728 lt_cv_path_LD=$LD # Let the user override the test with a path.
5733 if test -n "$LD"; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5735 $as_echo "$LD" >&6; }
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }
5740 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5742 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5743 if ${lt_cv_prog_gnu_ld+:} false; then :
5744 $as_echo_n "(cached) " >&6
5746 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5747 case `$LD -v 2>&1 </dev/null` in
5748 *GNU* | *'with BFD'*)
5749 lt_cv_prog_gnu_ld=yes
5752 lt_cv_prog_gnu_ld=no
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5757 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5758 with_gnu_ld=$lt_cv_prog_gnu_ld
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5769 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5770 if ${lt_cv_path_NM+:} false; then :
5771 $as_echo_n "(cached) " >&6
5773 if test -n "$NM"; then
5774 # Let the user override the test.
5777 lt_nm_to_check=${ac_tool_prefix}nm
5778 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5779 lt_nm_to_check="$lt_nm_to_check nm"
5781 for lt_tmp_nm in $lt_nm_to_check; do
5782 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5783 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5785 test -z "$ac_dir" && ac_dir=.
5786 tmp_nm=$ac_dir/$lt_tmp_nm
5787 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5788 # Check to see if the nm accepts a BSD-compat flag.
5789 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5790 # nm: unknown option "B" ignored
5791 # Tru64's nm complains that /dev/null is an invalid object file
5792 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5794 mingw*) lt_bad_file=conftest.nm/nofile ;;
5795 *) lt_bad_file=/dev/null ;;
5797 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5798 *$lt_bad_file* | *'Invalid file or object type'*)
5799 lt_cv_path_NM="$tmp_nm -B"
5803 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5805 lt_cv_path_NM="$tmp_nm -p"
5809 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5810 continue # so that we can try to find one that supports BSD flags
5819 : ${lt_cv_path_NM=no}
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5823 $as_echo "$lt_cv_path_NM" >&6; }
5824 if test no != "$lt_cv_path_NM"; then
5827 # Didn't find any BSD compatible name lister, look for dumpbin.
5828 if test -n "$DUMPBIN"; then :
5829 # Let the user override the test.
5831 if test -n "$ac_tool_prefix"; then
5832 for ac_prog in dumpbin "link -dump"
5834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5835 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5837 $as_echo_n "checking for $ac_word... " >&6; }
5838 if ${ac_cv_prog_DUMPBIN+:} false; then :
5839 $as_echo_n "(cached) " >&6
5841 if test -n "$DUMPBIN"; then
5842 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 test -z "$as_dir" && as_dir=.
5849 for ac_exec_ext in '' $ac_executable_extensions; do
5850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5851 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5861 DUMPBIN=$ac_cv_prog_DUMPBIN
5862 if test -n "$DUMPBIN"; then
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5864 $as_echo "$DUMPBIN" >&6; }
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5867 $as_echo "no" >&6; }
5871 test -n "$DUMPBIN" && break
5874 if test -z "$DUMPBIN"; then
5875 ac_ct_DUMPBIN=$DUMPBIN
5876 for ac_prog in dumpbin "link -dump"
5878 # Extract the first word of "$ac_prog", so it can be a program name with args.
5879 set dummy $ac_prog; ac_word=$2
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881 $as_echo_n "checking for $ac_word... " >&6; }
5882 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5883 $as_echo_n "(cached) " >&6
5885 if test -n "$ac_ct_DUMPBIN"; then
5886 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 test -z "$as_dir" && as_dir=.
5893 for ac_exec_ext in '' $ac_executable_extensions; do
5894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5895 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5906 if test -n "$ac_ct_DUMPBIN"; then
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5908 $as_echo "$ac_ct_DUMPBIN" >&6; }
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911 $as_echo "no" >&6; }
5915 test -n "$ac_ct_DUMPBIN" && break
5918 if test "x$ac_ct_DUMPBIN" = x; then
5921 case $cross_compiling:$ac_tool_warned in
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5925 ac_tool_warned=yes ;;
5927 DUMPBIN=$ac_ct_DUMPBIN
5931 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5933 DUMPBIN="$DUMPBIN -symbols -headers"
5941 if test : != "$DUMPBIN"; then
5945 test -z "$NM" && NM=nm
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5953 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5954 if ${lt_cv_nm_interface+:} false; then :
5955 $as_echo_n "(cached) " >&6
5957 lt_cv_nm_interface="BSD nm"
5958 echo "int some_variable = 0;" > conftest.$ac_ext
5959 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5960 (eval "$ac_compile" 2>conftest.err)
5961 cat conftest.err >&5
5962 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5963 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5964 cat conftest.err >&5
5965 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5966 cat conftest.out >&5
5967 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5968 lt_cv_nm_interface="MS dumpbin"
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5973 $as_echo "$lt_cv_nm_interface" >&6; }
5975 # find the maximum length of command line arguments
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5977 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5978 if ${lt_cv_sys_max_cmd_len+:} false; then :
5979 $as_echo_n "(cached) " >&6
5986 # On DJGPP, this test can blow up pretty badly due to problems in libc
5987 # (any single argument exceeding 2000 bytes causes a buffer overrun
5988 # during glob expansion). Even if it were fixed, the result of this
5989 # check would be larger than it should be.
5990 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5994 # Under GNU Hurd, this test is not required because there is
5995 # no limit to the length of command line arguments.
5996 # Libtool will interpret -1 as no limit whatsoever
5997 lt_cv_sys_max_cmd_len=-1;
6000 cygwin* | mingw* | cegcc*)
6001 # On Win9x/ME, this test blows up -- it succeeds, but takes
6002 # about 5 minutes as the teststring grows exponentially.
6003 # Worse, since 9x/ME are not pre-emptively multitasking,
6004 # you end up with a "frozen" computer, even though with patience
6005 # the test eventually succeeds (with a max line length of 256k).
6006 # Instead, let's just punt: use the minimum linelength reported by
6007 # all of the supported platforms: 8192 (on NT/2K/XP).
6008 lt_cv_sys_max_cmd_len=8192;
6012 # On MiNT this can take a long time and run out of memory.
6013 lt_cv_sys_max_cmd_len=8192;
6017 # On AmigaOS with pdksh, this test takes hours, literally.
6018 # So we just punt and use a minimum line length of 8192.
6019 lt_cv_sys_max_cmd_len=8192;
6022 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6023 # This has been around since 386BSD, at least. Likely further.
6024 if test -x /sbin/sysctl; then
6025 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6026 elif test -x /usr/sbin/sysctl; then
6027 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6029 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6031 # And add a safety zone
6032 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6033 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6037 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6038 lt_cv_sys_max_cmd_len=196608
6042 # The test takes a long time on OS/2.
6043 lt_cv_sys_max_cmd_len=8192
6047 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6048 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6049 # nice to cause kernel panics so lets avoid the loop below.
6050 # First set a reasonable default.
6051 lt_cv_sys_max_cmd_len=16384
6053 if test -x /sbin/sysconfig; then
6054 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6055 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6060 lt_cv_sys_max_cmd_len=102400
6062 sysv5* | sco5v6* | sysv4.2uw2*)
6063 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6064 if test -n "$kargmax"; then
6065 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6067 lt_cv_sys_max_cmd_len=32768
6071 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6072 if test -n "$lt_cv_sys_max_cmd_len" && \
6073 test undefined != "$lt_cv_sys_max_cmd_len"; then
6074 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6075 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6077 # Make teststring a little bigger before we do anything with it.
6078 # a 1K string should be a reasonable start.
6079 for i in 1 2 3 4 5 6 7 8; do
6080 teststring=$teststring$teststring
6082 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6083 # If test is not a shell built-in, we'll probably end up computing a
6084 # maximum length that is only half of the actual maximum length, but
6086 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6087 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6088 test 17 != "$i" # 1/2 MB should be enough
6091 teststring=$teststring$teststring
6093 # Only check the string length outside the loop.
6094 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6096 # Add a significant safety factor because C++ compilers can tack on
6097 # massive amounts of additional arguments before passing them to the
6098 # linker. It appears as though 1/2 is a usable value.
6099 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6106 if test -n "$lt_cv_sys_max_cmd_len"; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6108 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6111 $as_echo "none" >&6; }
6113 max_cmd_len=$lt_cv_sys_max_cmd_len
6124 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6134 # test EBCDIC or ASCII
6135 case `echo X|tr X '\101'` in
6136 A) # ASCII based system
6137 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6138 lt_SP2NL='tr \040 \012'
6139 lt_NL2SP='tr \015\012 \040\040'
6141 *) # EBCDIC based system
6142 lt_SP2NL='tr \100 \n'
6143 lt_NL2SP='tr \r\n \100\100'
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6156 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6157 if ${lt_cv_to_host_file_cmd+:} false; then :
6158 $as_echo_n "(cached) " >&6
6163 *-*-mingw* ) # actually msys
6164 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6167 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6169 * ) # otherwise, assume *nix
6170 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6176 *-*-mingw* ) # actually msys
6177 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6180 lt_cv_to_host_file_cmd=func_convert_file_noop
6182 * ) # otherwise, assume *nix
6183 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6187 * ) # unhandled hosts (and "normal" native builds)
6188 lt_cv_to_host_file_cmd=func_convert_file_noop
6194 to_host_file_cmd=$lt_cv_to_host_file_cmd
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6196 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6203 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6204 if ${lt_cv_to_tool_file_cmd+:} false; then :
6205 $as_echo_n "(cached) " >&6
6207 #assume ordinary cross tools, or native build.
6208 lt_cv_to_tool_file_cmd=func_convert_file_noop
6212 *-*-mingw* ) # actually msys
6213 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6221 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6223 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6230 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6231 if ${lt_cv_ld_reload_flag+:} false; then :
6232 $as_echo_n "(cached) " >&6
6234 lt_cv_ld_reload_flag='-r'
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6237 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6238 reload_flag=$lt_cv_ld_reload_flag
6239 case $reload_flag in
6241 *) reload_flag=" $reload_flag" ;;
6243 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6245 cygwin* | mingw* | pw32* | cegcc*)
6246 if test yes != "$GCC"; then
6251 if test yes = "$GCC"; then
6252 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6254 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6267 if test -n "$ac_tool_prefix"; then
6268 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6269 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6271 $as_echo_n "checking for $ac_word... " >&6; }
6272 if ${ac_cv_prog_OBJDUMP+:} false; then :
6273 $as_echo_n "(cached) " >&6
6275 if test -n "$OBJDUMP"; then
6276 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 test -z "$as_dir" && as_dir=.
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6285 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6295 OBJDUMP=$ac_cv_prog_OBJDUMP
6296 if test -n "$OBJDUMP"; then
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6298 $as_echo "$OBJDUMP" >&6; }
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6301 $as_echo "no" >&6; }
6306 if test -z "$ac_cv_prog_OBJDUMP"; then
6307 ac_ct_OBJDUMP=$OBJDUMP
6308 # Extract the first word of "objdump", so it can be a program name with args.
6309 set dummy objdump; ac_word=$2
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6311 $as_echo_n "checking for $ac_word... " >&6; }
6312 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6313 $as_echo_n "(cached) " >&6
6315 if test -n "$ac_ct_OBJDUMP"; then
6316 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 test -z "$as_dir" && as_dir=.
6323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6325 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6336 if test -n "$ac_ct_OBJDUMP"; then
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6338 $as_echo "$ac_ct_OBJDUMP" >&6; }
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341 $as_echo "no" >&6; }
6344 if test "x$ac_ct_OBJDUMP" = x; then
6347 case $cross_compiling:$ac_tool_warned in
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6351 ac_tool_warned=yes ;;
6353 OBJDUMP=$ac_ct_OBJDUMP
6356 OBJDUMP="$ac_cv_prog_OBJDUMP"
6359 test -z "$OBJDUMP" && OBJDUMP=objdump
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6367 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6368 if ${lt_cv_deplibs_check_method+:} false; then :
6369 $as_echo_n "(cached) " >&6
6371 lt_cv_file_magic_cmd='$MAGIC_CMD'
6372 lt_cv_file_magic_test_file=
6373 lt_cv_deplibs_check_method='unknown'
6374 # Need to set the preceding variable on all platforms that support
6375 # interlibrary dependencies.
6376 # 'none' -- dependencies not supported.
6377 # 'unknown' -- same as none, but documents that we really don't know.
6378 # 'pass_all' -- all dependencies passed with no checks.
6379 # 'test_compile' -- check by making test program.
6380 # 'file_magic [[regex]]' -- check by looking for files in library path
6381 # that responds to the $file_magic_cmd with a given extended regex.
6382 # If you have 'file' or equivalent on your system and you're not sure
6383 # whether 'pass_all' will *always* work, you probably want this one.
6387 lt_cv_deplibs_check_method=pass_all
6391 lt_cv_deplibs_check_method=pass_all
6395 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6396 lt_cv_file_magic_cmd='/usr/bin/file -L'
6397 lt_cv_file_magic_test_file=/shlib/libc.so
6401 # func_win32_libid is a shell function defined in ltmain.sh
6402 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6403 lt_cv_file_magic_cmd='func_win32_libid'
6407 # Base MSYS/MinGW do not provide the 'file' command needed by
6408 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6409 # unless we find 'file', for example because we are cross-compiling.
6410 if ( file / ) >/dev/null 2>&1; then
6411 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6412 lt_cv_file_magic_cmd='func_win32_libid'
6414 # Keep this pattern in sync with the one in func_win32_libid.
6415 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6416 lt_cv_file_magic_cmd='$OBJDUMP -f'
6421 # use the weaker test based on 'objdump'. See mingw*.
6422 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6423 lt_cv_file_magic_cmd='$OBJDUMP -f'
6426 darwin* | rhapsody*)
6427 lt_cv_deplibs_check_method=pass_all
6430 freebsd* | dragonfly*)
6431 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6434 # Not sure whether the presence of OpenBSD here was a mistake.
6435 # Let's accept both of them until this is cleared up.
6436 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6437 lt_cv_file_magic_cmd=/usr/bin/file
6438 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6442 lt_cv_deplibs_check_method=pass_all
6447 lt_cv_deplibs_check_method=pass_all
6450 hpux10.20* | hpux11*)
6451 lt_cv_file_magic_cmd=/usr/bin/file
6454 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6455 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6458 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]'
6459 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6462 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6463 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6469 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6470 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6473 irix5* | irix6* | nonstopux*)
6475 *-32|*"-32 ") libmagic=32-bit;;
6476 *-n32|*"-n32 ") libmagic=N32;;
6477 *-64|*"-64 ") libmagic=64-bit;;
6478 *) libmagic=never-match;;
6480 lt_cv_deplibs_check_method=pass_all
6483 # This must be glibc/ELF.
6484 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6485 lt_cv_deplibs_check_method=pass_all
6489 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6490 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6497 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6498 lt_cv_file_magic_cmd=/usr/bin/file
6499 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6503 lt_cv_deplibs_check_method=pass_all
6507 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6508 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6510 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6514 osf3* | osf4* | osf5*)
6515 lt_cv_deplibs_check_method=pass_all
6519 lt_cv_deplibs_check_method=pass_all
6523 lt_cv_deplibs_check_method=pass_all
6526 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6527 lt_cv_deplibs_check_method=pass_all
6531 case $host_vendor in
6533 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]'
6534 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6537 lt_cv_deplibs_check_method=pass_all
6540 lt_cv_file_magic_cmd='/bin/file'
6541 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6544 lt_cv_file_magic_cmd='/bin/file'
6545 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6546 lt_cv_file_magic_test_file=/lib/libc.so
6549 lt_cv_deplibs_check_method=pass_all
6552 lt_cv_deplibs_check_method=pass_all
6558 lt_cv_deplibs_check_method=pass_all
6561 lt_cv_deplibs_check_method=pass_all
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6567 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6571 if test "$build" = "$host"; then
6574 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6577 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6583 file_magic_cmd=$lt_cv_file_magic_cmd
6584 deplibs_check_method=$lt_cv_deplibs_check_method
6585 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6608 if test -n "$ac_tool_prefix"; then
6609 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6610 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 $as_echo_n "checking for $ac_word... " >&6; }
6613 if ${ac_cv_prog_DLLTOOL+:} false; then :
6614 $as_echo_n "(cached) " >&6
6616 if test -n "$DLLTOOL"; then
6617 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 test -z "$as_dir" && as_dir=.
6624 for ac_exec_ext in '' $ac_executable_extensions; do
6625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6626 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6636 DLLTOOL=$ac_cv_prog_DLLTOOL
6637 if test -n "$DLLTOOL"; then
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6639 $as_echo "$DLLTOOL" >&6; }
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6647 if test -z "$ac_cv_prog_DLLTOOL"; then
6648 ac_ct_DLLTOOL=$DLLTOOL
6649 # Extract the first word of "dlltool", so it can be a program name with args.
6650 set dummy dlltool; ac_word=$2
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6652 $as_echo_n "checking for $ac_word... " >&6; }
6653 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6654 $as_echo_n "(cached) " >&6
6656 if test -n "$ac_ct_DLLTOOL"; then
6657 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 test -z "$as_dir" && as_dir=.
6664 for ac_exec_ext in '' $ac_executable_extensions; do
6665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6666 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6676 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6677 if test -n "$ac_ct_DLLTOOL"; then
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6679 $as_echo "$ac_ct_DLLTOOL" >&6; }
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682 $as_echo "no" >&6; }
6685 if test "x$ac_ct_DLLTOOL" = x; then
6688 case $cross_compiling:$ac_tool_warned in
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6692 ac_tool_warned=yes ;;
6694 DLLTOOL=$ac_ct_DLLTOOL
6697 DLLTOOL="$ac_cv_prog_DLLTOOL"
6700 test -z "$DLLTOOL" && DLLTOOL=dlltool
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6709 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6710 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6711 $as_echo_n "(cached) " >&6
6713 lt_cv_sharedlib_from_linklib_cmd='unknown'
6716 cygwin* | mingw* | pw32* | cegcc*)
6717 # two different shell functions defined in ltmain.sh;
6718 # decide which one to use based on capabilities of $DLLTOOL
6719 case `$DLLTOOL --help 2>&1` in
6720 *--identify-strict*)
6721 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6724 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6729 # fallback: assume linklib IS sharedlib
6730 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6736 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6737 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6738 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6746 if test -n "$ac_tool_prefix"; then
6749 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6750 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6752 $as_echo_n "checking for $ac_word... " >&6; }
6753 if ${ac_cv_prog_AR+:} false; then :
6754 $as_echo_n "(cached) " >&6
6756 if test -n "$AR"; then
6757 ac_cv_prog_AR="$AR" # Let the user override the test.
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 test -z "$as_dir" && as_dir=.
6764 for ac_exec_ext in '' $ac_executable_extensions; do
6765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6766 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 if test -n "$AR"; then
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6779 $as_echo "$AR" >&6; }
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782 $as_echo "no" >&6; }
6786 test -n "$AR" && break
6789 if test -z "$AR"; then
6793 # Extract the first word of "$ac_prog", so it can be a program name with args.
6794 set dummy $ac_prog; ac_word=$2
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796 $as_echo_n "checking for $ac_word... " >&6; }
6797 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6798 $as_echo_n "(cached) " >&6
6800 if test -n "$ac_ct_AR"; then
6801 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 test -z "$as_dir" && as_dir=.
6808 for ac_exec_ext in '' $ac_executable_extensions; do
6809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6810 ac_cv_prog_ac_ct_AR="$ac_prog"
6811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6820 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6821 if test -n "$ac_ct_AR"; then
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6823 $as_echo "$ac_ct_AR" >&6; }
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 $as_echo "no" >&6; }
6830 test -n "$ac_ct_AR" && break
6833 if test "x$ac_ct_AR" = x; then
6836 case $cross_compiling:$ac_tool_warned in
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6840 ac_tool_warned=yes ;;
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6860 $as_echo_n "checking for archiver @FILE support... " >&6; }
6861 if ${lt_cv_ar_at_file+:} false; then :
6862 $as_echo_n "(cached) " >&6
6865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866 /* end confdefs.h. */
6876 if ac_fn_c_try_compile "$LINENO"; then :
6877 echo conftest.$ac_objext > conftest.lst
6878 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6880 (eval $lt_ar_try) 2>&5
6882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6883 test $ac_status = 0; }
6884 if test 0 -eq "$ac_status"; then
6885 # Ensure the archiver fails upon bogus file names.
6886 rm -f conftest.$ac_objext libconftest.a
6887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6888 (eval $lt_ar_try) 2>&5
6890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6891 test $ac_status = 0; }
6892 if test 0 -ne "$ac_status"; then
6896 rm -f conftest.* libconftest.a
6899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6903 $as_echo "$lt_cv_ar_at_file" >&6; }
6905 if test no = "$lt_cv_ar_at_file"; then
6908 archiver_list_spec=$lt_cv_ar_at_file
6917 if test -n "$ac_tool_prefix"; then
6918 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6919 set dummy ${ac_tool_prefix}strip; ac_word=$2
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921 $as_echo_n "checking for $ac_word... " >&6; }
6922 if ${ac_cv_prog_STRIP+:} false; then :
6923 $as_echo_n "(cached) " >&6
6925 if test -n "$STRIP"; then
6926 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 test -z "$as_dir" && as_dir=.
6933 for ac_exec_ext in '' $ac_executable_extensions; do
6934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6935 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6945 STRIP=$ac_cv_prog_STRIP
6946 if test -n "$STRIP"; then
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6948 $as_echo "$STRIP" >&6; }
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6956 if test -z "$ac_cv_prog_STRIP"; then
6958 # Extract the first word of "strip", so it can be a program name with args.
6959 set dummy strip; ac_word=$2
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6961 $as_echo_n "checking for $ac_word... " >&6; }
6962 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6963 $as_echo_n "(cached) " >&6
6965 if test -n "$ac_ct_STRIP"; then
6966 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 test -z "$as_dir" && as_dir=.
6973 for ac_exec_ext in '' $ac_executable_extensions; do
6974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6975 ac_cv_prog_ac_ct_STRIP="strip"
6976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6986 if test -n "$ac_ct_STRIP"; then
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6988 $as_echo "$ac_ct_STRIP" >&6; }
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991 $as_echo "no" >&6; }
6994 if test "x$ac_ct_STRIP" = x; then
6997 case $cross_compiling:$ac_tool_warned in
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7001 ac_tool_warned=yes ;;
7006 STRIP="$ac_cv_prog_STRIP"
7009 test -z "$STRIP" && STRIP=:
7016 if test -n "$ac_tool_prefix"; then
7017 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7018 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020 $as_echo_n "checking for $ac_word... " >&6; }
7021 if ${ac_cv_prog_RANLIB+:} false; then :
7022 $as_echo_n "(cached) " >&6
7024 if test -n "$RANLIB"; then
7025 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 test -z "$as_dir" && as_dir=.
7032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7034 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 RANLIB=$ac_cv_prog_RANLIB
7045 if test -n "$RANLIB"; then
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7047 $as_echo "$RANLIB" >&6; }
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050 $as_echo "no" >&6; }
7055 if test -z "$ac_cv_prog_RANLIB"; then
7056 ac_ct_RANLIB=$RANLIB
7057 # Extract the first word of "ranlib", so it can be a program name with args.
7058 set dummy ranlib; ac_word=$2
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7060 $as_echo_n "checking for $ac_word... " >&6; }
7061 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7062 $as_echo_n "(cached) " >&6
7064 if test -n "$ac_ct_RANLIB"; then
7065 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 test -z "$as_dir" && as_dir=.
7072 for ac_exec_ext in '' $ac_executable_extensions; do
7073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7074 ac_cv_prog_ac_ct_RANLIB="ranlib"
7075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7084 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7085 if test -n "$ac_ct_RANLIB"; then
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7087 $as_echo "$ac_ct_RANLIB" >&6; }
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090 $as_echo "no" >&6; }
7093 if test "x$ac_ct_RANLIB" = x; then
7096 case $cross_compiling:$ac_tool_warned in
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7100 ac_tool_warned=yes ;;
7102 RANLIB=$ac_ct_RANLIB
7105 RANLIB="$ac_cv_prog_RANLIB"
7108 test -z "$RANLIB" && RANLIB=:
7115 # Determine commands to create old-style static archives.
7116 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7117 old_postinstall_cmds='chmod 644 $oldlib'
7118 old_postuninstall_cmds=
7120 if test -n "$RANLIB"; then
7123 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7126 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7129 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7134 lock_old_archive_extraction=yes ;;
7136 lock_old_archive_extraction=no ;;
7177 # If no C compiler was specified, use CC.
7180 # If no C compiler flags were specified, use CFLAGS.
7181 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7183 # Allow CC to be a program name with arguments.
7187 # Check for command to grab the raw symbol name followed by C symbol from nm.
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7189 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7190 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7191 $as_echo_n "(cached) " >&6
7194 # These are sane defaults that work on at least a few old systems.
7195 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7197 # Character class describing NM global symbol codes.
7198 symcode='[BCDEGRST]'
7200 # Regexp to match symbols that can be accessed directly from C.
7201 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7203 # Define system-specific variables.
7208 cygwin* | mingw* | pw32* | cegcc*)
7209 symcode='[ABCDGISTW]'
7212 if test ia64 = "$host_cpu"; then
7213 symcode='[ABCDEGRST]'
7217 symcode='[BCDEGRST]'
7220 symcode='[BCDEGQRST]'
7231 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7239 # If we're using GNU nm, then use its standard symbol codes.
7240 case `$NM -V 2>&1` in
7241 *GNU* | *'with BFD'*)
7242 symcode='[ABCDGIRSTW]' ;;
7245 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7246 # Gets list of data symbols to import.
7247 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7248 # Adjust the below global symbol transforms to fixup imported variables.
7249 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7250 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7251 lt_c_name_lib_hook="\
7252 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7253 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7255 # Disable hooks by default.
7256 lt_cv_sys_global_symbol_to_import=
7262 # Transform an extracted symbol line into a proper C declaration.
7263 # Some systems (esp. on ia64) link data and code symbols differently,
7264 # so use this general approach.
7265 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7267 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7268 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7270 # Transform an extracted symbol line into symbol name and symbol address
7271 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7273 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7274 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7276 # Transform an extracted symbol line into symbol name with lib prefix and
7278 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7279 $lt_c_name_lib_hook\
7280 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7281 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7282 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7284 # Handle CRLF in mingw tool chain
7288 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7292 # Try without a prefix underscore, then with it.
7293 for ac_symprfx in "" "_"; do
7295 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7296 symxfrm="\\1 $ac_symprfx\\2 \\2"
7298 # Write the raw and C identifiers.
7299 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7300 # Fake it for dumpbin and say T for any non-static function,
7301 # D for any global variable and I for any imported variable.
7302 # Also find C++ and __fastcall symbols from MSVC++,
7303 # which start with @ or ?.
7304 lt_cv_sys_global_symbol_pipe="$AWK '"\
7305 " {last_section=section; section=\$ 3};"\
7306 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7307 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7308 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7309 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7310 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7311 " \$ 0!~/External *\|/{next};"\
7312 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7313 " {if(hide[section]) next};"\
7314 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7315 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7316 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7317 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7318 " ' prfx=^$ac_symprfx"
7320 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7322 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7324 # Check to see that the pipe works correctly.
7328 cat > conftest.$ac_ext <<_LT_EOF
7333 void nm_test_func(void);
7334 void nm_test_func(void){}
7338 int main(){nm_test_var='a';nm_test_func();return(0);}
7341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7342 (eval $ac_compile) 2>&5
7344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7345 test $ac_status = 0; }; then
7346 # Now try to grab the symbols.
7348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7349 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7352 test $ac_status = 0; } && test -s "$nlist"; then
7353 # Try sorting and uniquifying the output.
7354 if sort "$nlist" | uniq > "$nlist"T; then
7355 mv -f "$nlist"T "$nlist"
7360 # Make sure that we snagged all the symbols we need.
7361 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7362 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7363 cat <<_LT_EOF > conftest.$ac_ext
7364 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7365 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7366 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7367 relocations are performed -- see ld's documentation on pseudo-relocs. */
7368 # define LT_DLSYM_CONST
7369 #elif defined __osf__
7370 /* This system does not cope well with relocations in const data. */
7371 # define LT_DLSYM_CONST
7373 # define LT_DLSYM_CONST const
7381 # Now generate the symbol file.
7382 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7384 cat <<_LT_EOF >> conftest.$ac_ext
7386 /* The mapping between symbol names and symbols. */
7387 LT_DLSYM_CONST struct {
7391 lt__PROGRAM__LTX_preloaded_symbols[] =
7393 { "@PROGRAM@", (void *) 0 },
7395 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7396 cat <<\_LT_EOF >> conftest.$ac_ext
7400 /* This works around a problem in FreeBSD linker */
7401 #ifdef FREEBSD_WORKAROUND
7402 static const void *lt_preloaded_setup() {
7403 return lt__PROGRAM__LTX_preloaded_symbols;
7411 # Now try linking the two files.
7412 mv conftest.$ac_objext conftstm.$ac_objext
7413 lt_globsym_save_LIBS=$LIBS
7414 lt_globsym_save_CFLAGS=$CFLAGS
7415 LIBS=conftstm.$ac_objext
7416 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7418 (eval $ac_link) 2>&5
7420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7421 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7424 LIBS=$lt_globsym_save_LIBS
7425 CFLAGS=$lt_globsym_save_CFLAGS
7427 echo "cannot find nm_test_func in $nlist" >&5
7430 echo "cannot find nm_test_var in $nlist" >&5
7433 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7436 echo "$progname: failed program was:" >&5
7437 cat conftest.$ac_ext >&5
7439 rm -rf conftest* conftst*
7441 # Do not use the global_symbol_pipe unless it works.
7442 if test yes = "$pipe_works"; then
7445 lt_cv_sys_global_symbol_pipe=
7451 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7452 lt_cv_sys_global_symbol_to_cdecl=
7454 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7456 $as_echo "failed" >&6; }
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7459 $as_echo "ok" >&6; }
7462 # Response file support.
7463 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7464 nm_file_list_spec='@'
7465 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7466 nm_file_list_spec='@'
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7506 $as_echo_n "checking for sysroot... " >&6; }
7508 # Check whether --with-sysroot was given.
7509 if test "${with_sysroot+set}" = set; then :
7510 withval=$with_sysroot;
7517 case $with_sysroot in #(
7519 if test yes = "$GCC"; then
7520 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7524 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7530 $as_echo "$with_sysroot" >&6; }
7531 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7536 $as_echo "${lt_sysroot:-no}" >&6; }
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7543 $as_echo_n "checking for a working dd... " >&6; }
7544 if ${ac_cv_path_lt_DD+:} false; then :
7545 $as_echo_n "(cached) " >&6
7547 printf 0123456789abcdef0123456789abcdef >conftest.i
7548 cat conftest.i conftest.i >conftest2.i
7550 if test -z "$lt_DD"; then
7551 ac_path_lt_DD_found=false
7552 # Loop through the user's path and test for each of PROGNAME-LIST
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 test -z "$as_dir" && as_dir=.
7558 for ac_prog in dd; do
7559 for ac_exec_ext in '' $ac_executable_extensions; do
7560 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7561 as_fn_executable_p "$ac_path_lt_DD" || continue
7562 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7563 cmp -s conftest.i conftest.out \
7564 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7566 $ac_path_lt_DD_found && break 3
7571 if test -z "$ac_cv_path_lt_DD"; then
7575 ac_cv_path_lt_DD=$lt_DD
7578 rm -f conftest.i conftest2.i conftest.out
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7581 $as_echo "$ac_cv_path_lt_DD" >&6; }
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7585 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7586 if ${lt_cv_truncate_bin+:} false; then :
7587 $as_echo_n "(cached) " >&6
7589 printf 0123456789abcdef0123456789abcdef >conftest.i
7590 cat conftest.i conftest.i >conftest2.i
7592 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7593 cmp -s conftest.i conftest.out \
7594 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7596 rm -f conftest.i conftest2.i conftest.out
7597 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7600 $as_echo "$lt_cv_truncate_bin" >&6; }
7608 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7611 for cc_temp in $*""; do
7613 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7614 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7619 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7622 # Check whether --enable-libtool-lock was given.
7623 if test "${enable_libtool_lock+set}" = set; then :
7624 enableval=$enable_libtool_lock;
7627 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7629 # Some flags need to be propagated to the compiler or linker for good
7633 # Find out what ABI is being produced by ac_compile, and set mode
7634 # options accordingly.
7635 echo 'int i;' > conftest.$ac_ext
7636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7637 (eval $ac_compile) 2>&5
7639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7640 test $ac_status = 0; }; then
7641 case `/usr/bin/file conftest.$ac_objext` in
7653 # Find out what ABI is being produced by ac_compile, and set linker
7654 # options accordingly.
7655 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7657 (eval $ac_compile) 2>&5
7659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7660 test $ac_status = 0; }; then
7661 if test yes = "$lt_cv_prog_gnu_ld"; then
7662 case `/usr/bin/file conftest.$ac_objext` in
7664 LD="${LD-ld} -melf32bsmip"
7667 LD="${LD-ld} -melf32bmipn32"
7670 LD="${LD-ld} -melf64bmip"
7674 case `/usr/bin/file conftest.$ac_objext` in
7691 # Find out what ABI is being produced by ac_compile, and set linker
7692 # options accordingly.
7693 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7695 (eval $ac_compile) 2>&5
7697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7698 test $ac_status = 0; }; then
7700 case `/usr/bin/file conftest.$ac_objext` in
7708 case `/usr/bin/file conftest.$ac_objext` in
7710 emul="${emul}btsmip"
7713 emul="${emul}ltsmip"
7716 case `/usr/bin/file conftest.$ac_objext` in
7721 LD="${LD-ld} -m $emul"
7726 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7727 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7728 # Find out what ABI is being produced by ac_compile, and set linker
7729 # options accordingly. Note that the listed cases only cover the
7730 # situations where additional linker options are needed (such as when
7731 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7732 # vice versa); the common cases where no linker options are needed do
7733 # not appear in the list.
7734 echo 'int i;' > conftest.$ac_ext
7735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7736 (eval $ac_compile) 2>&5
7738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7739 test $ac_status = 0; }; then
7740 case `/usr/bin/file conftest.o` in
7743 x86_64-*kfreebsd*-gnu)
7744 LD="${LD-ld} -m elf_i386_fbsd"
7747 case `/usr/bin/file conftest.o` in
7749 LD="${LD-ld} -m elf32_x86_64"
7752 LD="${LD-ld} -m elf_i386"
7756 powerpc64le-*linux*)
7757 LD="${LD-ld} -m elf32lppclinux"
7760 LD="${LD-ld} -m elf32ppclinux"
7763 LD="${LD-ld} -m elf_s390"
7766 LD="${LD-ld} -m elf32_sparc"
7772 x86_64-*kfreebsd*-gnu)
7773 LD="${LD-ld} -m elf_x86_64_fbsd"
7776 LD="${LD-ld} -m elf_x86_64"
7779 LD="${LD-ld} -m elf64lppc"
7782 LD="${LD-ld} -m elf64ppc"
7784 s390*-*linux*|s390*-*tpf*)
7785 LD="${LD-ld} -m elf64_s390"
7788 LD="${LD-ld} -m elf64_sparc"
7798 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7800 CFLAGS="$CFLAGS -belf"
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7802 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7803 if ${lt_cv_cc_needs_belf+:} false; then :
7804 $as_echo_n "(cached) " >&6
7807 ac_cpp='$CPP $CPPFLAGS'
7808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813 /* end confdefs.h. */
7823 if ac_fn_c_try_link "$LINENO"; then :
7824 lt_cv_cc_needs_belf=yes
7826 lt_cv_cc_needs_belf=no
7828 rm -f core conftest.err conftest.$ac_objext \
7829 conftest$ac_exeext conftest.$ac_ext
7831 ac_cpp='$CPP $CPPFLAGS'
7832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7838 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7839 if test yes != "$lt_cv_cc_needs_belf"; then
7840 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7845 # Find out what ABI is being produced by ac_compile, and set linker
7846 # options accordingly.
7847 echo 'int i;' > conftest.$ac_ext
7848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7849 (eval $ac_compile) 2>&5
7851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7852 test $ac_status = 0; }; then
7853 case `/usr/bin/file conftest.o` in
7855 case $lt_cv_prog_gnu_ld in
7858 i?86-*-solaris*|x86_64-*-solaris*)
7859 LD="${LD-ld} -m elf_x86_64"
7862 LD="${LD-ld} -m elf64_sparc"
7865 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7866 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7871 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7883 need_locks=$enable_libtool_lock
7885 if test -n "$ac_tool_prefix"; then
7886 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7887 set dummy ${ac_tool_prefix}mt; ac_word=$2
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7889 $as_echo_n "checking for $ac_word... " >&6; }
7890 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7891 $as_echo_n "(cached) " >&6
7893 if test -n "$MANIFEST_TOOL"; then
7894 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900 test -z "$as_dir" && as_dir=.
7901 for ac_exec_ext in '' $ac_executable_extensions; do
7902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7903 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7913 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7914 if test -n "$MANIFEST_TOOL"; then
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7916 $as_echo "$MANIFEST_TOOL" >&6; }
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919 $as_echo "no" >&6; }
7924 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7925 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7926 # Extract the first word of "mt", so it can be a program name with args.
7927 set dummy mt; ac_word=$2
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7929 $as_echo_n "checking for $ac_word... " >&6; }
7930 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7931 $as_echo_n "(cached) " >&6
7933 if test -n "$ac_ct_MANIFEST_TOOL"; then
7934 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940 test -z "$as_dir" && as_dir=.
7941 for ac_exec_ext in '' $ac_executable_extensions; do
7942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7943 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7953 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7954 if test -n "$ac_ct_MANIFEST_TOOL"; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7956 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959 $as_echo "no" >&6; }
7962 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7965 case $cross_compiling:$ac_tool_warned in
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7969 ac_tool_warned=yes ;;
7971 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7974 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7977 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7979 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7980 if ${lt_cv_path_mainfest_tool+:} false; then :
7981 $as_echo_n "(cached) " >&6
7983 lt_cv_path_mainfest_tool=no
7984 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7985 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7986 cat conftest.err >&5
7987 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7988 lt_cv_path_mainfest_tool=yes
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7993 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7994 if test yes != "$lt_cv_path_mainfest_tool"; then
8004 rhapsody* | darwin*)
8005 if test -n "$ac_tool_prefix"; then
8006 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8007 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8009 $as_echo_n "checking for $ac_word... " >&6; }
8010 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8011 $as_echo_n "(cached) " >&6
8013 if test -n "$DSYMUTIL"; then
8014 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 test -z "$as_dir" && as_dir=.
8021 for ac_exec_ext in '' $ac_executable_extensions; do
8022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8023 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8034 if test -n "$DSYMUTIL"; then
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8036 $as_echo "$DSYMUTIL" >&6; }
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039 $as_echo "no" >&6; }
8044 if test -z "$ac_cv_prog_DSYMUTIL"; then
8045 ac_ct_DSYMUTIL=$DSYMUTIL
8046 # Extract the first word of "dsymutil", so it can be a program name with args.
8047 set dummy dsymutil; ac_word=$2
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8049 $as_echo_n "checking for $ac_word... " >&6; }
8050 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8051 $as_echo_n "(cached) " >&6
8053 if test -n "$ac_ct_DSYMUTIL"; then
8054 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 test -z "$as_dir" && as_dir=.
8061 for ac_exec_ext in '' $ac_executable_extensions; do
8062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8063 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8073 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8074 if test -n "$ac_ct_DSYMUTIL"; then
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8076 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8079 $as_echo "no" >&6; }
8082 if test "x$ac_ct_DSYMUTIL" = x; then
8085 case $cross_compiling:$ac_tool_warned in
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8089 ac_tool_warned=yes ;;
8091 DSYMUTIL=$ac_ct_DSYMUTIL
8094 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8097 if test -n "$ac_tool_prefix"; then
8098 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8099 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8101 $as_echo_n "checking for $ac_word... " >&6; }
8102 if ${ac_cv_prog_NMEDIT+:} false; then :
8103 $as_echo_n "(cached) " >&6
8105 if test -n "$NMEDIT"; then
8106 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112 test -z "$as_dir" && as_dir=.
8113 for ac_exec_ext in '' $ac_executable_extensions; do
8114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8115 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8125 NMEDIT=$ac_cv_prog_NMEDIT
8126 if test -n "$NMEDIT"; then
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8128 $as_echo "$NMEDIT" >&6; }
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8131 $as_echo "no" >&6; }
8136 if test -z "$ac_cv_prog_NMEDIT"; then
8137 ac_ct_NMEDIT=$NMEDIT
8138 # Extract the first word of "nmedit", so it can be a program name with args.
8139 set dummy nmedit; ac_word=$2
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8141 $as_echo_n "checking for $ac_word... " >&6; }
8142 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8143 $as_echo_n "(cached) " >&6
8145 if test -n "$ac_ct_NMEDIT"; then
8146 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152 test -z "$as_dir" && as_dir=.
8153 for ac_exec_ext in '' $ac_executable_extensions; do
8154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8155 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8165 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8166 if test -n "$ac_ct_NMEDIT"; then
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8168 $as_echo "$ac_ct_NMEDIT" >&6; }
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8171 $as_echo "no" >&6; }
8174 if test "x$ac_ct_NMEDIT" = x; then
8177 case $cross_compiling:$ac_tool_warned in
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8181 ac_tool_warned=yes ;;
8183 NMEDIT=$ac_ct_NMEDIT
8186 NMEDIT="$ac_cv_prog_NMEDIT"
8189 if test -n "$ac_tool_prefix"; then
8190 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8191 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8193 $as_echo_n "checking for $ac_word... " >&6; }
8194 if ${ac_cv_prog_LIPO+:} false; then :
8195 $as_echo_n "(cached) " >&6
8197 if test -n "$LIPO"; then
8198 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204 test -z "$as_dir" && as_dir=.
8205 for ac_exec_ext in '' $ac_executable_extensions; do
8206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8207 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8217 LIPO=$ac_cv_prog_LIPO
8218 if test -n "$LIPO"; then
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8220 $as_echo "$LIPO" >&6; }
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8223 $as_echo "no" >&6; }
8228 if test -z "$ac_cv_prog_LIPO"; then
8230 # Extract the first word of "lipo", so it can be a program name with args.
8231 set dummy lipo; ac_word=$2
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8233 $as_echo_n "checking for $ac_word... " >&6; }
8234 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8235 $as_echo_n "(cached) " >&6
8237 if test -n "$ac_ct_LIPO"; then
8238 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8244 test -z "$as_dir" && as_dir=.
8245 for ac_exec_ext in '' $ac_executable_extensions; do
8246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8247 ac_cv_prog_ac_ct_LIPO="lipo"
8248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8257 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8258 if test -n "$ac_ct_LIPO"; then
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8260 $as_echo "$ac_ct_LIPO" >&6; }
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263 $as_echo "no" >&6; }
8266 if test "x$ac_ct_LIPO" = x; then
8269 case $cross_compiling:$ac_tool_warned in
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8273 ac_tool_warned=yes ;;
8278 LIPO="$ac_cv_prog_LIPO"
8281 if test -n "$ac_tool_prefix"; then
8282 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8283 set dummy ${ac_tool_prefix}otool; ac_word=$2
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8285 $as_echo_n "checking for $ac_word... " >&6; }
8286 if ${ac_cv_prog_OTOOL+:} false; then :
8287 $as_echo_n "(cached) " >&6
8289 if test -n "$OTOOL"; then
8290 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296 test -z "$as_dir" && as_dir=.
8297 for ac_exec_ext in '' $ac_executable_extensions; do
8298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8299 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8309 OTOOL=$ac_cv_prog_OTOOL
8310 if test -n "$OTOOL"; then
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8312 $as_echo "$OTOOL" >&6; }
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8315 $as_echo "no" >&6; }
8320 if test -z "$ac_cv_prog_OTOOL"; then
8322 # Extract the first word of "otool", so it can be a program name with args.
8323 set dummy otool; ac_word=$2
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8325 $as_echo_n "checking for $ac_word... " >&6; }
8326 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8327 $as_echo_n "(cached) " >&6
8329 if test -n "$ac_ct_OTOOL"; then
8330 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336 test -z "$as_dir" && as_dir=.
8337 for ac_exec_ext in '' $ac_executable_extensions; do
8338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8339 ac_cv_prog_ac_ct_OTOOL="otool"
8340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8349 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8350 if test -n "$ac_ct_OTOOL"; then
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8352 $as_echo "$ac_ct_OTOOL" >&6; }
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355 $as_echo "no" >&6; }
8358 if test "x$ac_ct_OTOOL" = x; then
8361 case $cross_compiling:$ac_tool_warned in
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8365 ac_tool_warned=yes ;;
8370 OTOOL="$ac_cv_prog_OTOOL"
8373 if test -n "$ac_tool_prefix"; then
8374 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8375 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8377 $as_echo_n "checking for $ac_word... " >&6; }
8378 if ${ac_cv_prog_OTOOL64+:} false; then :
8379 $as_echo_n "(cached) " >&6
8381 if test -n "$OTOOL64"; then
8382 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388 test -z "$as_dir" && as_dir=.
8389 for ac_exec_ext in '' $ac_executable_extensions; do
8390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8391 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8401 OTOOL64=$ac_cv_prog_OTOOL64
8402 if test -n "$OTOOL64"; then
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8404 $as_echo "$OTOOL64" >&6; }
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8407 $as_echo "no" >&6; }
8412 if test -z "$ac_cv_prog_OTOOL64"; then
8413 ac_ct_OTOOL64=$OTOOL64
8414 # Extract the first word of "otool64", so it can be a program name with args.
8415 set dummy otool64; ac_word=$2
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8417 $as_echo_n "checking for $ac_word... " >&6; }
8418 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8419 $as_echo_n "(cached) " >&6
8421 if test -n "$ac_ct_OTOOL64"; then
8422 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8428 test -z "$as_dir" && as_dir=.
8429 for ac_exec_ext in '' $ac_executable_extensions; do
8430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8431 ac_cv_prog_ac_ct_OTOOL64="otool64"
8432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8441 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8442 if test -n "$ac_ct_OTOOL64"; then
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8444 $as_echo "$ac_ct_OTOOL64" >&6; }
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8447 $as_echo "no" >&6; }
8450 if test "x$ac_ct_OTOOL64" = x; then
8453 case $cross_compiling:$ac_tool_warned in
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8457 ac_tool_warned=yes ;;
8459 OTOOL64=$ac_ct_OTOOL64
8462 OTOOL64="$ac_cv_prog_OTOOL64"
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8492 $as_echo_n "checking for -single_module linker flag... " >&6; }
8493 if ${lt_cv_apple_cc_single_mod+:} false; then :
8494 $as_echo_n "(cached) " >&6
8496 lt_cv_apple_cc_single_mod=no
8497 if test -z "$LT_MULTI_MODULE"; then
8498 # By default we will add the -single_module flag. You can override
8499 # by either setting the environment variable LT_MULTI_MODULE
8500 # non-empty at configure time, or by adding -multi_module to the
8502 rm -rf libconftest.dylib*
8503 echo "int foo(void){return 1;}" > conftest.c
8504 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8505 -dynamiclib -Wl,-single_module conftest.c" >&5
8506 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8507 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8509 # If there is a non-empty error log, and "single_module"
8510 # appears in it, assume the flag caused a linker warning
8511 if test -s conftest.err && $GREP single_module conftest.err; then
8512 cat conftest.err >&5
8513 # Otherwise, if the output was created with a 0 exit code from
8514 # the compiler, it worked.
8515 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8516 lt_cv_apple_cc_single_mod=yes
8518 cat conftest.err >&5
8520 rm -rf libconftest.dylib*
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8525 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8528 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8529 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8530 $as_echo_n "(cached) " >&6
8532 lt_cv_ld_exported_symbols_list=no
8533 save_LDFLAGS=$LDFLAGS
8534 echo "_main" > conftest.sym
8535 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8537 /* end confdefs.h. */
8547 if ac_fn_c_try_link "$LINENO"; then :
8548 lt_cv_ld_exported_symbols_list=yes
8550 lt_cv_ld_exported_symbols_list=no
8552 rm -f core conftest.err conftest.$ac_objext \
8553 conftest$ac_exeext conftest.$ac_ext
8554 LDFLAGS=$save_LDFLAGS
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8558 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8561 $as_echo_n "checking for -force_load linker flag... " >&6; }
8562 if ${lt_cv_ld_force_load+:} false; then :
8563 $as_echo_n "(cached) " >&6
8565 lt_cv_ld_force_load=no
8566 cat > conftest.c << _LT_EOF
8567 int forced_loaded() { return 2;}
8569 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8570 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8571 echo "$AR cru libconftest.a conftest.o" >&5
8572 $AR cru libconftest.a conftest.o 2>&5
8573 echo "$RANLIB libconftest.a" >&5
8574 $RANLIB libconftest.a 2>&5
8575 cat > conftest.c << _LT_EOF
8576 int main() { return 0;}
8578 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8579 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8581 if test -s conftest.err && $GREP force_load conftest.err; then
8582 cat conftest.err >&5
8583 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8584 lt_cv_ld_force_load=yes
8586 cat conftest.err >&5
8588 rm -f conftest.err libconftest.a conftest conftest.c
8589 rm -rf conftest.dSYM
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8593 $as_echo "$lt_cv_ld_force_load" >&6; }
8595 rhapsody* | darwin1.[012])
8596 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8598 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8599 darwin*) # darwin 5.x on
8600 # if running on 10.5 or later, the deployment target defaults
8601 # to the OS version, if on x86, and 10.4, the deployment
8602 # target defaults to 10.4. Don't you love it?
8603 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8604 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8605 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8607 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8609 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8613 if test yes = "$lt_cv_apple_cc_single_mod"; then
8614 _lt_dar_single_mod='$single_module'
8616 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8617 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8619 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8621 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8622 _lt_dsymutil='~$DSYMUTIL $lib || :'
8629 # func_munge_path_list VARIABLE PATH
8630 # -----------------------------------
8631 # VARIABLE is name of variable containing _space_ separated list of
8632 # directories to be munged by the contents of PATH, which is string
8635 # string "DIR[ DIR]" will be prepended to VARIABLE
8637 # string "DIR[ DIR]" will be appended to VARIABLE
8638 # "DIRP[:DIRP]::[DIRA:]DIRA"
8639 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8640 # "DIRA[ DIRA]" will be appended to VARIABLE
8642 # VARIABLE will be replaced by "DIR[ DIR]"
8643 func_munge_path_list ()
8649 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8652 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8655 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8656 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8659 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8664 for ac_header in dlfcn.h
8666 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8668 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8669 cat >>confdefs.h <<_ACEOF
8670 #define HAVE_DLFCN_H 1
8682 # Check whether --enable-static was given.
8683 if test "${enable_static+set}" = set; then :
8684 enableval=$enable_static; p=${PACKAGE-default}
8686 yes) enable_static=yes ;;
8687 no) enable_static=no ;;
8690 # Look at the argument we got. We use all the common list separators.
8691 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8692 for pkg in $enableval; do
8694 if test "X$pkg" = "X$p"; then
8711 enable_win32_dll=yes
8714 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8715 if test -n "$ac_tool_prefix"; then
8716 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8717 set dummy ${ac_tool_prefix}as; ac_word=$2
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8719 $as_echo_n "checking for $ac_word... " >&6; }
8720 if ${ac_cv_prog_AS+:} false; then :
8721 $as_echo_n "(cached) " >&6
8723 if test -n "$AS"; then
8724 ac_cv_prog_AS="$AS" # Let the user override the test.
8726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8730 test -z "$as_dir" && as_dir=.
8731 for ac_exec_ext in '' $ac_executable_extensions; do
8732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8733 ac_cv_prog_AS="${ac_tool_prefix}as"
8734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8744 if test -n "$AS"; then
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8746 $as_echo "$AS" >&6; }
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8749 $as_echo "no" >&6; }
8754 if test -z "$ac_cv_prog_AS"; then
8756 # Extract the first word of "as", so it can be a program name with args.
8757 set dummy as; ac_word=$2
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8759 $as_echo_n "checking for $ac_word... " >&6; }
8760 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8761 $as_echo_n "(cached) " >&6
8763 if test -n "$ac_ct_AS"; then
8764 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8770 test -z "$as_dir" && as_dir=.
8771 for ac_exec_ext in '' $ac_executable_extensions; do
8772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8773 ac_cv_prog_ac_ct_AS="as"
8774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8783 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8784 if test -n "$ac_ct_AS"; then
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8786 $as_echo "$ac_ct_AS" >&6; }
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8789 $as_echo "no" >&6; }
8792 if test "x$ac_ct_AS" = x; then
8795 case $cross_compiling:$ac_tool_warned in
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8799 ac_tool_warned=yes ;;
8807 if test -n "$ac_tool_prefix"; then
8808 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8809 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8811 $as_echo_n "checking for $ac_word... " >&6; }
8812 if ${ac_cv_prog_DLLTOOL+:} false; then :
8813 $as_echo_n "(cached) " >&6
8815 if test -n "$DLLTOOL"; then
8816 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8822 test -z "$as_dir" && as_dir=.
8823 for ac_exec_ext in '' $ac_executable_extensions; do
8824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8825 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8835 DLLTOOL=$ac_cv_prog_DLLTOOL
8836 if test -n "$DLLTOOL"; then
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8838 $as_echo "$DLLTOOL" >&6; }
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8841 $as_echo "no" >&6; }
8846 if test -z "$ac_cv_prog_DLLTOOL"; then
8847 ac_ct_DLLTOOL=$DLLTOOL
8848 # Extract the first word of "dlltool", so it can be a program name with args.
8849 set dummy dlltool; ac_word=$2
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8851 $as_echo_n "checking for $ac_word... " >&6; }
8852 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8853 $as_echo_n "(cached) " >&6
8855 if test -n "$ac_ct_DLLTOOL"; then
8856 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8862 test -z "$as_dir" && as_dir=.
8863 for ac_exec_ext in '' $ac_executable_extensions; do
8864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8865 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8875 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8876 if test -n "$ac_ct_DLLTOOL"; then
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8878 $as_echo "$ac_ct_DLLTOOL" >&6; }
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8881 $as_echo "no" >&6; }
8884 if test "x$ac_ct_DLLTOOL" = x; then
8887 case $cross_compiling:$ac_tool_warned in
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8891 ac_tool_warned=yes ;;
8893 DLLTOOL=$ac_ct_DLLTOOL
8896 DLLTOOL="$ac_cv_prog_DLLTOOL"
8899 if test -n "$ac_tool_prefix"; then
8900 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8901 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8903 $as_echo_n "checking for $ac_word... " >&6; }
8904 if ${ac_cv_prog_OBJDUMP+:} false; then :
8905 $as_echo_n "(cached) " >&6
8907 if test -n "$OBJDUMP"; then
8908 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8914 test -z "$as_dir" && as_dir=.
8915 for ac_exec_ext in '' $ac_executable_extensions; do
8916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8917 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8927 OBJDUMP=$ac_cv_prog_OBJDUMP
8928 if test -n "$OBJDUMP"; then
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8930 $as_echo "$OBJDUMP" >&6; }
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933 $as_echo "no" >&6; }
8938 if test -z "$ac_cv_prog_OBJDUMP"; then
8939 ac_ct_OBJDUMP=$OBJDUMP
8940 # Extract the first word of "objdump", so it can be a program name with args.
8941 set dummy objdump; ac_word=$2
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8943 $as_echo_n "checking for $ac_word... " >&6; }
8944 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8945 $as_echo_n "(cached) " >&6
8947 if test -n "$ac_ct_OBJDUMP"; then
8948 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8954 test -z "$as_dir" && as_dir=.
8955 for ac_exec_ext in '' $ac_executable_extensions; do
8956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8957 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8967 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8968 if test -n "$ac_ct_OBJDUMP"; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8970 $as_echo "$ac_ct_OBJDUMP" >&6; }
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973 $as_echo "no" >&6; }
8976 if test "x$ac_ct_OBJDUMP" = x; then
8979 case $cross_compiling:$ac_tool_warned in
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8983 ac_tool_warned=yes ;;
8985 OBJDUMP=$ac_ct_OBJDUMP
8988 OBJDUMP="$ac_cv_prog_OBJDUMP"
8994 test -z "$AS" && AS=as
9000 test -z "$DLLTOOL" && DLLTOOL=dlltool
9006 test -z "$OBJDUMP" && OBJDUMP=objdump
9018 # Check whether --enable-shared was given.
9019 if test "${enable_shared+set}" = set; then :
9020 enableval=$enable_shared; p=${PACKAGE-default}
9022 yes) enable_shared=yes ;;
9023 no) enable_shared=no ;;
9026 # Look at the argument we got. We use all the common list separators.
9027 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9028 for pkg in $enableval; do
9030 if test "X$pkg" = "X$p"; then
9051 # Check whether --with-pic was given.
9052 if test "${with_pic+set}" = set; then :
9053 withval=$with_pic; lt_p=${PACKAGE-default}
9055 yes|no) pic_mode=$withval ;;
9058 # Look at the argument we got. We use all the common list separators.
9059 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9060 for lt_pkg in $withval; do
9062 if test "X$lt_pkg" = "X$lt_p"; then
9080 # Check whether --enable-fast-install was given.
9081 if test "${enable_fast_install+set}" = set; then :
9082 enableval=$enable_fast_install; p=${PACKAGE-default}
9084 yes) enable_fast_install=yes ;;
9085 no) enable_fast_install=no ;;
9087 enable_fast_install=no
9088 # Look at the argument we got. We use all the common list separators.
9089 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9090 for pkg in $enableval; do
9092 if test "X$pkg" = "X$p"; then
9093 enable_fast_install=yes
9100 enable_fast_install=yes
9110 shared_archive_member_spec=
9111 case $host,$enable_shared in
9112 power*-*-aix[5-9]*,yes)
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9114 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9116 # Check whether --with-aix-soname was given.
9117 if test "${with_aix_soname+set}" = set; then :
9118 withval=$with_aix_soname; case $withval in
9122 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9125 lt_cv_with_aix_soname=$with_aix_soname
9127 if ${lt_cv_with_aix_soname+:} false; then :
9128 $as_echo_n "(cached) " >&6
9130 lt_cv_with_aix_soname=aix
9133 with_aix_soname=$lt_cv_with_aix_soname
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9137 $as_echo "$with_aix_soname" >&6; }
9138 if test aix != "$with_aix_soname"; then
9139 # For the AIX way of multilib, we name the shared archive member
9140 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9141 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9142 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9143 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9144 if test 64 = "${OBJECT_MODE-32}"; then
9145 shared_archive_member_spec=shr_64
9147 shared_archive_member_spec=shr
9165 # This can be used to rebuild libtool when needed
9166 LIBTOOL_DEPS=$ltmain
9168 # Always use our own libtool.
9169 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9200 test -z "$LN_S" && LN_S="ln -s"
9215 if test -n "${ZSH_VERSION+set}"; then
9216 setopt NO_GLOB_SUBST
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9220 $as_echo_n "checking for objdir... " >&6; }
9221 if ${lt_cv_objdir+:} false; then :
9222 $as_echo_n "(cached) " >&6
9224 rm -f .libs 2>/dev/null
9225 mkdir .libs 2>/dev/null
9226 if test -d .libs; then
9229 # MS-DOS does not allow filenames that begin with a dot.
9232 rmdir .libs 2>/dev/null
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9235 $as_echo "$lt_cv_objdir" >&6; }
9236 objdir=$lt_cv_objdir
9242 cat >>confdefs.h <<_ACEOF
9243 #define LT_OBJDIR "$lt_cv_objdir/"
9251 # AIX sometimes has problems with the GCC collect2 program. For some
9252 # reason, if we set the COLLECT_NAMES environment variable, the problems
9253 # vanish in a puff of smoke.
9254 if test set != "${COLLECT_NAMES+set}"; then
9256 export COLLECT_NAMES
9263 can_build_shared=yes
9265 # All known linkers require a '.a' archive for static linking (except MSVC,
9266 # which needs '.lib').
9269 with_gnu_ld=$lt_cv_prog_gnu_ld
9274 # Set sane defaults for various variables
9275 test -z "$CC" && CC=cc
9276 test -z "$LTCC" && LTCC=$CC
9277 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9278 test -z "$LD" && LD=ld
9279 test -z "$ac_objext" && ac_objext=o
9281 func_cc_basename $compiler
9282 cc_basename=$func_cc_basename_result
9285 # Only perform the check for file, if the check method requires it
9286 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9287 case $deplibs_check_method in
9289 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9291 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9292 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9293 $as_echo_n "(cached) " >&6
9297 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9300 lt_save_MAGIC_CMD=$MAGIC_CMD
9301 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9302 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9303 for ac_dir in $ac_dummy; do
9305 test -z "$ac_dir" && ac_dir=.
9306 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9307 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9308 if test -n "$file_magic_test_file"; then
9309 case $deplibs_check_method in
9311 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9312 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9313 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9314 $EGREP "$file_magic_regex" > /dev/null; then
9319 *** Warning: the command libtool uses to detect shared libraries,
9320 *** $file_magic_cmd, produces output that libtool cannot recognize.
9321 *** The result is that libtool may fail to recognize shared libraries
9322 *** as such. This will affect the creation of libtool libraries that
9323 *** depend on shared libraries, but programs linked with such libtool
9324 *** libraries will work regardless of this problem. Nevertheless, you
9325 *** may want to report the problem to your system manager and/or to
9326 *** bug-libtool@gnu.org
9336 MAGIC_CMD=$lt_save_MAGIC_CMD
9341 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9342 if test -n "$MAGIC_CMD"; then
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9344 $as_echo "$MAGIC_CMD" >&6; }
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9347 $as_echo "no" >&6; }
9354 if test -z "$lt_cv_path_MAGIC_CMD"; then
9355 if test -n "$ac_tool_prefix"; then
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9357 $as_echo_n "checking for file... " >&6; }
9358 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9359 $as_echo_n "(cached) " >&6
9363 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9366 lt_save_MAGIC_CMD=$MAGIC_CMD
9367 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9368 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9369 for ac_dir in $ac_dummy; do
9371 test -z "$ac_dir" && ac_dir=.
9372 if test -f "$ac_dir/file"; then
9373 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9374 if test -n "$file_magic_test_file"; then
9375 case $deplibs_check_method in
9377 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9378 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9379 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9380 $EGREP "$file_magic_regex" > /dev/null; then
9385 *** Warning: the command libtool uses to detect shared libraries,
9386 *** $file_magic_cmd, produces output that libtool cannot recognize.
9387 *** The result is that libtool may fail to recognize shared libraries
9388 *** as such. This will affect the creation of libtool libraries that
9389 *** depend on shared libraries, but programs linked with such libtool
9390 *** libraries will work regardless of this problem. Nevertheless, you
9391 *** may want to report the problem to your system manager and/or to
9392 *** bug-libtool@gnu.org
9402 MAGIC_CMD=$lt_save_MAGIC_CMD
9407 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9408 if test -n "$MAGIC_CMD"; then
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9410 $as_echo "$MAGIC_CMD" >&6; }
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9413 $as_echo "no" >&6; }
9426 # Use C for the default configuration in the libtool script
9430 ac_cpp='$CPP $CPPFLAGS'
9431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9436 # Source file extension for C test sources.
9439 # Object file extension for compiled C test sources.
9443 # Code to be used in simple compile tests
9444 lt_simple_compile_test_code="int some_variable = 0;"
9446 # Code to be used in simple link tests
9447 lt_simple_link_test_code='int main(){return(0);}'
9455 # If no C compiler was specified, use CC.
9458 # If no C compiler flags were specified, use CFLAGS.
9459 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9461 # Allow CC to be a program name with arguments.
9464 # Save the default compiler, since it gets overwritten when the other
9465 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9466 compiler_DEFAULT=$CC
9468 # save warnings/boilerplate of simple test code
9469 ac_outfile=conftest.$ac_objext
9470 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9471 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9472 _lt_compiler_boilerplate=`cat conftest.err`
9475 ac_outfile=conftest.$ac_objext
9476 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9477 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9478 _lt_linker_boilerplate=`cat conftest.err`
9483 ## There is no encapsulation within the following macros, do not change
9484 ## the running order or otherwise move them around unless you know exactly
9485 ## what you are doing...
9486 if test -n "$compiler"; then
9488 lt_prog_compiler_no_builtin_flag=
9490 if test yes = "$GCC"; then
9491 case $cc_basename in
9493 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9495 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9499 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9500 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9501 $as_echo_n "(cached) " >&6
9503 lt_cv_prog_compiler_rtti_exceptions=no
9504 ac_outfile=conftest.$ac_objext
9505 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9506 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9507 # Insert the option either (1) after the last *FLAGS variable, or
9508 # (2) before a word containing "conftest.", or (3) at the end.
9509 # Note that $ac_compile itself does not contain backslashes and begins
9510 # with a dollar sign (not a hyphen), so the echo should work correctly.
9511 # The option is referenced via a variable to avoid confusing sed.
9512 lt_compile=`echo "$ac_compile" | $SED \
9513 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9515 -e 's:$: $lt_compiler_flag:'`
9516 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9517 (eval "$lt_compile" 2>conftest.err)
9519 cat conftest.err >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 if (exit $ac_status) && test -s "$ac_outfile"; then
9522 # The compiler can only warn and ignore the option if not recognized
9523 # So say no if there are warnings other than the usual output.
9524 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9525 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9526 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9527 lt_cv_prog_compiler_rtti_exceptions=yes
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9534 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9536 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9537 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9549 lt_prog_compiler_wl=
9550 lt_prog_compiler_pic=
9551 lt_prog_compiler_static=
9554 if test yes = "$GCC"; then
9555 lt_prog_compiler_wl='-Wl,'
9556 lt_prog_compiler_static='-static'
9560 # All AIX code is PIC.
9561 if test ia64 = "$host_cpu"; then
9562 # AIX 5 now supports IA64 processor
9563 lt_prog_compiler_static='-Bstatic'
9565 lt_prog_compiler_pic='-fPIC'
9571 # see comment about AmigaOS4 .so support
9572 lt_prog_compiler_pic='-fPIC'
9575 # FIXME: we need at least 68020 code to build shared libraries, but
9576 # adding the '-m68020' flag to GCC prevents building anything better,
9578 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9583 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9584 # PIC is the default for these OSes.
9587 mingw* | cygwin* | pw32* | os2* | cegcc*)
9588 # This hack is so that the source file can tell whether it is being
9589 # built for inclusion in a dll (and should export symbols for example).
9590 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9591 # (--disable-auto-import) libraries
9592 lt_prog_compiler_pic='-DDLL_EXPORT'
9595 lt_prog_compiler_static='$wl-static'
9600 darwin* | rhapsody*)
9601 # PIC is the default on this platform
9602 # Common symbols not allowed in MH_DYLIB files
9603 lt_prog_compiler_pic='-fno-common'
9607 # PIC is the default for Haiku.
9608 # The "-static" flag exists, but is broken.
9609 lt_prog_compiler_static=
9613 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9614 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9615 # sets the default TLS model and affects inlining.
9621 lt_prog_compiler_pic='-fPIC'
9627 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9628 # Instead, we relocate shared libraries at runtime.
9632 # Just because we use GCC doesn't mean we suddenly get shared libraries
9633 # on systems that don't support them.
9634 lt_prog_compiler_can_build_shared=no
9639 # QNX uses GNU C++, but need to define -shared option too, otherwise
9641 lt_prog_compiler_pic='-fPIC -shared'
9645 if test -d /usr/nec; then
9646 lt_prog_compiler_pic=-Kconform_pic
9651 lt_prog_compiler_pic='-fPIC'
9655 case $cc_basename in
9656 nvcc*) # Cuda Compiler Driver 2.2
9657 lt_prog_compiler_wl='-Xlinker '
9658 if test -n "$lt_prog_compiler_pic"; then
9659 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9664 # PORTME Check for flag to pass linker flags through the system compiler.
9667 lt_prog_compiler_wl='-Wl,'
9668 if test ia64 = "$host_cpu"; then
9669 # AIX 5 now supports IA64 processor
9670 lt_prog_compiler_static='-Bstatic'
9672 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9676 darwin* | rhapsody*)
9677 # PIC is the default on this platform
9678 # Common symbols not allowed in MH_DYLIB files
9679 lt_prog_compiler_pic='-fno-common'
9680 case $cc_basename in
9682 # NAG Fortran compiler
9683 lt_prog_compiler_wl='-Wl,-Wl,,'
9684 lt_prog_compiler_pic='-PIC'
9685 lt_prog_compiler_static='-Bstatic'
9690 mingw* | cygwin* | pw32* | os2* | cegcc*)
9691 # This hack is so that the source file can tell whether it is being
9692 # built for inclusion in a dll (and should export symbols for example).
9693 lt_prog_compiler_pic='-DDLL_EXPORT'
9696 lt_prog_compiler_static='$wl-static'
9701 hpux9* | hpux10* | hpux11*)
9702 lt_prog_compiler_wl='-Wl,'
9703 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9710 lt_prog_compiler_pic='+Z'
9713 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9714 lt_prog_compiler_static='$wl-a ${wl}archive'
9717 irix5* | irix6* | nonstopux*)
9718 lt_prog_compiler_wl='-Wl,'
9719 # PIC (with -KPIC) is the default.
9720 lt_prog_compiler_static='-non_shared'
9723 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9724 case $cc_basename in
9725 # old Intel for x86_64, which still supported -KPIC.
9727 lt_prog_compiler_wl='-Wl,'
9728 lt_prog_compiler_pic='-KPIC'
9729 lt_prog_compiler_static='-static'
9731 # icc used to be incompatible with GCC.
9732 # ICC 10 doesn't accept -KPIC any more.
9734 lt_prog_compiler_wl='-Wl,'
9735 lt_prog_compiler_pic='-fPIC'
9736 lt_prog_compiler_static='-static'
9738 # Lahey Fortran 8.1.
9740 lt_prog_compiler_wl='-Wl,'
9741 lt_prog_compiler_pic='--shared'
9742 lt_prog_compiler_static='--static'
9745 # NAG Fortran compiler
9746 lt_prog_compiler_wl='-Wl,-Wl,,'
9747 lt_prog_compiler_pic='-PIC'
9748 lt_prog_compiler_static='-Bstatic'
9751 # Fabrice Bellard et al's Tiny C Compiler
9752 lt_prog_compiler_wl='-Wl,'
9753 lt_prog_compiler_pic='-fPIC'
9754 lt_prog_compiler_static='-static'
9756 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9757 # Portland Group compilers (*not* the Pentium gcc compiler,
9758 # which looks to be a dead project)
9759 lt_prog_compiler_wl='-Wl,'
9760 lt_prog_compiler_pic='-fpic'
9761 lt_prog_compiler_static='-Bstatic'
9764 lt_prog_compiler_wl='-Wl,'
9765 # All Alpha code is PIC.
9766 lt_prog_compiler_static='-non_shared'
9768 xl* | bgxl* | bgf* | mpixl*)
9769 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9770 lt_prog_compiler_wl='-Wl,'
9771 lt_prog_compiler_pic='-qpic'
9772 lt_prog_compiler_static='-qstaticlink'
9775 case `$CC -V 2>&1 | sed 5q` in
9776 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9777 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9778 lt_prog_compiler_pic='-KPIC'
9779 lt_prog_compiler_static='-Bstatic'
9780 lt_prog_compiler_wl=''
9782 *Sun\ F* | *Sun*Fortran*)
9783 lt_prog_compiler_pic='-KPIC'
9784 lt_prog_compiler_static='-Bstatic'
9785 lt_prog_compiler_wl='-Qoption ld '
9789 lt_prog_compiler_pic='-KPIC'
9790 lt_prog_compiler_static='-Bstatic'
9791 lt_prog_compiler_wl='-Wl,'
9793 *Intel*\ [CF]*Compiler*)
9794 lt_prog_compiler_wl='-Wl,'
9795 lt_prog_compiler_pic='-fPIC'
9796 lt_prog_compiler_static='-static'
9799 lt_prog_compiler_wl='-Wl,'
9800 lt_prog_compiler_pic='-fpic'
9801 lt_prog_compiler_static='-Bstatic'
9809 lt_prog_compiler_pic='-KPIC'
9810 lt_prog_compiler_static='-Bstatic'
9814 # QNX uses GNU C++, but need to define -shared option too, otherwise
9816 lt_prog_compiler_pic='-fPIC -shared'
9819 osf3* | osf4* | osf5*)
9820 lt_prog_compiler_wl='-Wl,'
9821 # All OSF/1 code is PIC.
9822 lt_prog_compiler_static='-non_shared'
9826 lt_prog_compiler_static='-non_shared'
9830 lt_prog_compiler_pic='-KPIC'
9831 lt_prog_compiler_static='-Bstatic'
9832 case $cc_basename in
9833 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9834 lt_prog_compiler_wl='-Qoption ld ';;
9836 lt_prog_compiler_wl='-Wl,';;
9841 lt_prog_compiler_wl='-Qoption ld '
9842 lt_prog_compiler_pic='-PIC'
9843 lt_prog_compiler_static='-Bstatic'
9846 sysv4 | sysv4.2uw2* | sysv4.3*)
9847 lt_prog_compiler_wl='-Wl,'
9848 lt_prog_compiler_pic='-KPIC'
9849 lt_prog_compiler_static='-Bstatic'
9853 if test -d /usr/nec; then
9854 lt_prog_compiler_pic='-Kconform_pic'
9855 lt_prog_compiler_static='-Bstatic'
9859 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9860 lt_prog_compiler_wl='-Wl,'
9861 lt_prog_compiler_pic='-KPIC'
9862 lt_prog_compiler_static='-Bstatic'
9866 lt_prog_compiler_wl='-Wl,'
9867 lt_prog_compiler_can_build_shared=no
9871 lt_prog_compiler_pic='-pic'
9872 lt_prog_compiler_static='-Bstatic'
9876 lt_prog_compiler_can_build_shared=no
9882 # For platforms that do not support PIC, -DPIC is meaningless:
9884 lt_prog_compiler_pic=
9887 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9892 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9893 if ${lt_cv_prog_compiler_pic+:} false; then :
9894 $as_echo_n "(cached) " >&6
9896 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9899 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9900 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9903 # Check to make sure the PIC flag actually works.
9905 if test -n "$lt_prog_compiler_pic"; then
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9907 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9908 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9909 $as_echo_n "(cached) " >&6
9911 lt_cv_prog_compiler_pic_works=no
9912 ac_outfile=conftest.$ac_objext
9913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9914 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9915 # Insert the option either (1) after the last *FLAGS variable, or
9916 # (2) before a word containing "conftest.", or (3) at the end.
9917 # Note that $ac_compile itself does not contain backslashes and begins
9918 # with a dollar sign (not a hyphen), so the echo should work correctly.
9919 # The option is referenced via a variable to avoid confusing sed.
9920 lt_compile=`echo "$ac_compile" | $SED \
9921 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9922 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9923 -e 's:$: $lt_compiler_flag:'`
9924 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9925 (eval "$lt_compile" 2>conftest.err)
9927 cat conftest.err >&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 if (exit $ac_status) && test -s "$ac_outfile"; then
9930 # The compiler can only warn and ignore the option if not recognized
9931 # So say no if there are warnings other than the usual output.
9932 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9933 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9934 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9935 lt_cv_prog_compiler_pic_works=yes
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9942 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9944 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9945 case $lt_prog_compiler_pic in
9947 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9950 lt_prog_compiler_pic=
9951 lt_prog_compiler_can_build_shared=no
9967 # Check to make sure the static flag actually works.
9969 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9971 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9972 if ${lt_cv_prog_compiler_static_works+:} false; then :
9973 $as_echo_n "(cached) " >&6
9975 lt_cv_prog_compiler_static_works=no
9976 save_LDFLAGS=$LDFLAGS
9977 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9978 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9979 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9980 # The linker can only warn and ignore the option if not recognized
9981 # So say no if there are warnings
9982 if test -s conftest.err; then
9983 # Append any errors to the config.log.
9984 cat conftest.err 1>&5
9985 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9986 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9987 if diff conftest.exp conftest.er2 >/dev/null; then
9988 lt_cv_prog_compiler_static_works=yes
9991 lt_cv_prog_compiler_static_works=yes
9995 LDFLAGS=$save_LDFLAGS
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9999 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10001 if test yes = "$lt_cv_prog_compiler_static_works"; then
10004 lt_prog_compiler_static=
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10014 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10015 if ${lt_cv_prog_compiler_c_o+:} false; then :
10016 $as_echo_n "(cached) " >&6
10018 lt_cv_prog_compiler_c_o=no
10019 $RM -r conftest 2>/dev/null
10023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10025 lt_compiler_flag="-o out/conftest2.$ac_objext"
10026 # Insert the option either (1) after the last *FLAGS variable, or
10027 # (2) before a word containing "conftest.", or (3) at the end.
10028 # Note that $ac_compile itself does not contain backslashes and begins
10029 # with a dollar sign (not a hyphen), so the echo should work correctly.
10030 lt_compile=`echo "$ac_compile" | $SED \
10031 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10033 -e 's:$: $lt_compiler_flag:'`
10034 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10035 (eval "$lt_compile" 2>out/conftest.err)
10037 cat out/conftest.err >&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10041 # The compiler can only warn and ignore the option if not recognized
10042 # So say no if there are warnings
10043 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10044 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10045 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10046 lt_cv_prog_compiler_c_o=yes
10051 # SGI C++ compiler will create directory out/ii_files/ for
10052 # template instantiation
10053 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10054 $RM out/* && rmdir out
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10061 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10069 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10070 if ${lt_cv_prog_compiler_c_o+:} false; then :
10071 $as_echo_n "(cached) " >&6
10073 lt_cv_prog_compiler_c_o=no
10074 $RM -r conftest 2>/dev/null
10078 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10080 lt_compiler_flag="-o out/conftest2.$ac_objext"
10081 # Insert the option either (1) after the last *FLAGS variable, or
10082 # (2) before a word containing "conftest.", or (3) at the end.
10083 # Note that $ac_compile itself does not contain backslashes and begins
10084 # with a dollar sign (not a hyphen), so the echo should work correctly.
10085 lt_compile=`echo "$ac_compile" | $SED \
10086 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10087 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10088 -e 's:$: $lt_compiler_flag:'`
10089 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10090 (eval "$lt_compile" 2>out/conftest.err)
10092 cat out/conftest.err >&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10096 # The compiler can only warn and ignore the option if not recognized
10097 # So say no if there are warnings
10098 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10099 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10100 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10101 lt_cv_prog_compiler_c_o=yes
10106 # SGI C++ compiler will create directory out/ii_files/ for
10107 # template instantiation
10108 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10109 $RM out/* && rmdir out
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10116 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10121 hard_links=nottested
10122 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10123 # do not overwrite the value of need_locks provided by the user
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10125 $as_echo_n "checking if we can lock with hard links... " >&6; }
10128 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10130 ln conftest.a conftest.b 2>&5 || hard_links=no
10131 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10133 $as_echo "$hard_links" >&6; }
10134 if test no = "$hard_links"; then
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10136 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10149 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10152 allow_undefined_flag=
10153 always_export_symbols=no
10155 archive_expsym_cmds=
10156 compiler_needs_object=no
10157 enable_shared_with_static_runtimes=no
10158 export_dynamic_flag_spec=
10159 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10160 hardcode_automatic=no
10162 hardcode_direct_absolute=no
10163 hardcode_libdir_flag_spec=
10164 hardcode_libdir_separator=
10165 hardcode_minus_L=no
10166 hardcode_shlibpath_var=unsupported
10168 link_all_deplibs=unknown
10170 module_expsym_cmds=
10171 old_archive_from_new_cmds=
10172 old_archive_from_expsyms_cmds=
10173 thread_safe_flag_spec=
10174 whole_archive_flag_spec=
10175 # include_expsyms should be a list of space-separated symbols to be *always*
10176 # included in the symbol list
10178 # exclude_expsyms can be an extended regexp of symbols to exclude
10179 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10180 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10181 # as well as any symbol that contains 'd'.
10182 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10183 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10184 # platforms (ab)use it in PIC code, but their linkers get confused if
10185 # the symbol is explicitly referenced. Since portable code cannot
10186 # rely on this symbol name, it's probably fine to never include it in
10187 # preloaded symbol tables.
10188 # Exclude shared library initialization/finalization symbols.
10189 extract_expsyms_cmds=
10192 cygwin* | mingw* | pw32* | cegcc*)
10193 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10194 # When not using gcc, we currently assume that we are using
10195 # Microsoft Visual C++.
10196 if test yes != "$GCC"; then
10201 # we just hope/assume this is gcc and not c89 (= MSVC++)
10204 openbsd* | bitrig*)
10211 # On some targets, GNU ld is compatible enough with the native linker
10212 # that we're better off using the native interface for both.
10213 lt_use_gnu_ld_interface=no
10214 if test yes = "$with_gnu_ld"; then
10217 # The AIX port of GNU ld has always aspired to compatibility
10218 # with the native linker. However, as the warning in the GNU ld
10219 # block says, versions before 2.19.5* couldn't really create working
10220 # shared libraries, regardless of the interface used.
10221 case `$LD -v 2>&1` in
10222 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10223 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10224 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10226 lt_use_gnu_ld_interface=yes
10231 lt_use_gnu_ld_interface=yes
10236 if test yes = "$lt_use_gnu_ld_interface"; then
10237 # If archive_cmds runs LD, not CC, wlarc should be empty
10240 # Set some defaults for GNU ld with shared library support. These
10241 # are reset later if shared libraries are not supported. Putting them
10242 # here allows them to be overridden if necessary.
10243 runpath_var=LD_RUN_PATH
10244 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10245 export_dynamic_flag_spec='$wl--export-dynamic'
10246 # ancient GNU ld didn't support --whole-archive et. al.
10247 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10248 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10250 whole_archive_flag_spec=
10252 supports_anon_versioning=no
10253 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10254 *GNU\ gold*) supports_anon_versioning=yes ;;
10255 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10256 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10257 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10258 *\ 2.11.*) ;; # other 2.11 versions
10259 *) supports_anon_versioning=yes ;;
10262 # See if GNU ld supports shared libraries.
10265 # On AIX/PPC, the GNU linker is very broken
10266 if test ia64 != "$host_cpu"; then
10270 *** Warning: the GNU linker, at least up to release 2.19, is reported
10271 *** to be unable to reliably create shared libraries on AIX.
10272 *** Therefore, libtool is disabling shared libraries support. If you
10273 *** really care for shared libraries, you may want to install binutils
10274 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10275 *** You will then need to restart the configuration process.
10284 # see comment about AmigaOS4 .so support
10285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10286 archive_expsym_cmds=''
10289 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)'
10290 hardcode_libdir_flag_spec='-L$libdir'
10291 hardcode_minus_L=yes
10297 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10298 allow_undefined_flag=unsupported
10299 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10300 # support --undefined. This deserves some investigation. FIXME
10301 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10307 cygwin* | mingw* | pw32* | cegcc*)
10308 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10309 # as there is no search path for DLLs.
10310 hardcode_libdir_flag_spec='-L$libdir'
10311 export_dynamic_flag_spec='$wl--export-all-symbols'
10312 allow_undefined_flag=unsupported
10313 always_export_symbols=no
10314 enable_shared_with_static_runtimes=yes
10315 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'
10316 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10318 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10320 # If the export-symbols file already is a .def file, use it as
10321 # is; otherwise, prepend EXPORTS...
10322 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10323 cp $export_symbols $output_objdir/$soname.def;
10325 echo EXPORTS > $output_objdir/$soname.def;
10326 cat $export_symbols >> $output_objdir/$soname.def;
10328 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10336 link_all_deplibs=yes
10340 hardcode_libdir_flag_spec='-L$libdir'
10341 hardcode_minus_L=yes
10342 allow_undefined_flag=unsupported
10344 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10345 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10346 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10347 $ECHO EXPORTS >> $output_objdir/$libname.def~
10348 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10349 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10350 emximp -o $lib $output_objdir/$libname.def'
10351 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10352 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10353 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10354 $ECHO EXPORTS >> $output_objdir/$libname.def~
10355 prefix_cmds="$SED"~
10356 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10357 prefix_cmds="$prefix_cmds -e 1d";
10359 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10360 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10361 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10362 emximp -o $lib $output_objdir/$libname.def'
10363 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10364 enable_shared_with_static_runtimes=yes
10369 hardcode_shlibpath_var=no
10370 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10371 export_dynamic_flag_spec='$wl-E'
10372 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10373 # Instead, shared libraries are loaded at an image base (0x10000000 by
10374 # default) and relocated if they conflict, which is a slow very memory
10375 # consuming and fragmenting process. To avoid this, we pick a random,
10376 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10377 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10378 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10379 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'
10382 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10384 if test linux-dietlibc = "$host_os"; then
10385 case $cc_basename in
10386 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10389 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10390 && test no = "$tmp_diet"
10392 tmp_addflag=' $pic_flag'
10393 tmp_sharedflag='-shared'
10394 case $cc_basename,$host_cpu in
10395 pgcc*) # Portland Group C compiler
10396 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'
10397 tmp_addflag=' $pic_flag'
10399 pgf77* | pgf90* | pgf95* | pgfortran*)
10400 # Portland Group f77 and f90 compilers
10401 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'
10402 tmp_addflag=' $pic_flag -Mnomain' ;;
10403 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10404 tmp_addflag=' -i_dynamic' ;;
10405 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10406 tmp_addflag=' -i_dynamic -nofor_main' ;;
10407 ifc* | ifort*) # Intel Fortran compiler
10408 tmp_addflag=' -nofor_main' ;;
10409 lf95*) # Lahey Fortran 8.1
10410 whole_archive_flag_spec=
10411 tmp_sharedflag='--shared' ;;
10412 nagfor*) # NAGFOR 5.3
10413 tmp_sharedflag='-Wl,-shared' ;;
10414 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10415 tmp_sharedflag='-qmkshrobj'
10417 nvcc*) # Cuda Compiler Driver 2.2
10418 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'
10419 compiler_needs_object=yes
10422 case `$CC -V 2>&1 | sed 5q` in
10423 *Sun\ C*) # Sun C 5.9
10424 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'
10425 compiler_needs_object=yes
10426 tmp_sharedflag='-G' ;;
10427 *Sun\ F*) # Sun Fortran 8.3
10428 tmp_sharedflag='-G' ;;
10430 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10432 if test yes = "$supports_anon_versioning"; then
10433 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10434 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10435 echo "local: *; };" >> $output_objdir/$libname.ver~
10436 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10439 case $cc_basename in
10441 export_dynamic_flag_spec='-rdynamic'
10443 xlf* | bgf* | bgxlf* | mpixlf*)
10444 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10445 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10446 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10447 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10448 if test yes = "$supports_anon_versioning"; then
10449 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10450 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10451 echo "local: *; };" >> $output_objdir/$libname.ver~
10452 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10462 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10463 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10466 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10467 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10472 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10476 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10477 *** create shared libraries on Solaris systems. Therefore, libtool
10478 *** is disabling shared libraries support. We urge you to upgrade GNU
10479 *** binutils to release 2.9.1 or newer. Another option is to modify
10480 *** your PATH or compiler configuration so that the native linker is
10481 *** used, and then restart.
10484 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10485 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10486 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10492 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10493 case `$LD -v 2>&1` in
10494 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10498 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10499 *** reliably create shared libraries on SCO systems. Therefore, libtool
10500 *** is disabling shared libraries support. We urge you to upgrade GNU
10501 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10502 *** your PATH or compiler configuration so that the native linker is
10503 *** used, and then restart.
10508 # For security reasons, it is highly recommended that you always
10509 # use absolute paths for naming shared libraries, and exclude the
10510 # DT_RUNPATH tag from executables and libraries. But doing so
10511 # requires that you compile everything twice, which is a pain.
10512 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10513 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10514 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10515 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10524 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10526 hardcode_direct=yes
10527 hardcode_shlibpath_var=no
10531 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10532 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10533 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10540 if test no = "$ld_shlibs"; then
10542 hardcode_libdir_flag_spec=
10543 export_dynamic_flag_spec=
10544 whole_archive_flag_spec=
10547 # PORTME fill in a description of your system's linker (not GNU ld)
10550 allow_undefined_flag=unsupported
10551 always_export_symbols=yes
10552 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'
10553 # Note: this linker hardcodes the directories in LIBPATH if there
10554 # are no directories specified by -L.
10555 hardcode_minus_L=yes
10556 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10557 # Neither direct hardcoding nor static linking is supported with a
10559 hardcode_direct=unsupported
10564 if test ia64 = "$host_cpu"; then
10565 # On IA64, the linker does run time linking by default, so we don't
10566 # have to do anything special.
10567 aix_use_runtimelinking=no
10568 exp_sym_flag='-Bexport'
10571 # If we're using GNU nm, then we don't want the "-C" option.
10572 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10573 # Without the "-l" option, or with the "-B" option, AIX nm treats
10574 # weak defined symbols like other global defined symbols, whereas
10575 # GNU nm marks them as "W".
10576 # While the 'weak' keyword is ignored in the Export File, we need
10577 # it in the Import File for the 'aix-soname' feature, so we have
10578 # to replace the "-B" option with "-P" for AIX nm.
10579 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10580 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'
10582 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'
10584 aix_use_runtimelinking=no
10586 # Test if we are trying to use run time linking or normal
10587 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10588 # have runtime linking enabled, and use it for executables.
10589 # For shared libraries, we enable/disable runtime linking
10590 # depending on the kind of the shared library created -
10591 # when "with_aix_soname,aix_use_runtimelinking" is:
10592 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10593 # "aix,yes" lib.so shared, rtl:yes, for executables
10594 # lib.a static archive
10595 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10596 # lib.a(lib.so.V) shared, rtl:no, for executables
10597 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10598 # lib.a(lib.so.V) shared, rtl:no
10599 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10600 # lib.a static archive
10601 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10602 for ld_flag in $LDFLAGS; do
10603 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10604 aix_use_runtimelinking=yes
10608 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10609 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10610 # so we don't have lib.a shared libs to link our executables.
10611 # We have to force runtime linking in this case.
10612 aix_use_runtimelinking=yes
10613 LDFLAGS="$LDFLAGS -Wl,-brtl"
10618 exp_sym_flag='-bexport'
10619 no_entry_flag='-bnoentry'
10622 # When large executables or shared objects are built, AIX ld can
10623 # have problems creating the table of contents. If linking a library
10624 # or program results in "error TOC overflow" add -mminimal-toc to
10625 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10626 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10629 hardcode_direct=yes
10630 hardcode_direct_absolute=yes
10631 hardcode_libdir_separator=':'
10632 link_all_deplibs=yes
10633 file_list_spec='$wl-f,'
10634 case $with_aix_soname,$aix_use_runtimelinking in
10635 aix,*) ;; # traditional, no import file
10636 svr4,* | *,yes) # use import file
10637 # The Import File defines what to hardcode.
10639 hardcode_direct_absolute=no
10643 if test yes = "$GCC"; then
10644 case $host_os in aix4.[012]|aix4.[012].*)
10645 # We only want to do this on AIX 4.2 and lower, the check
10646 # below for broken collect2 doesn't work under 4.3+
10647 collect2name=`$CC -print-prog-name=collect2`
10648 if test -f "$collect2name" &&
10649 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10651 # We have reworked collect2
10654 # We have old collect2
10655 hardcode_direct=unsupported
10656 # It fails to find uninstalled libraries when the uninstalled
10657 # path is not listed in the libpath. Setting hardcode_minus_L
10658 # to unsupported forces relinking
10659 hardcode_minus_L=yes
10660 hardcode_libdir_flag_spec='-L$libdir'
10661 hardcode_libdir_separator=
10665 shared_flag='-shared'
10666 if test yes = "$aix_use_runtimelinking"; then
10667 shared_flag="$shared_flag "'$wl-G'
10669 # Need to ensure runtime linking is disabled for the traditional
10670 # shared library, or the linker may eventually find shared libraries
10671 # /with/ Import File - we do not want to mix them.
10672 shared_flag_aix='-shared'
10673 shared_flag_svr4='-shared $wl-G'
10676 if test ia64 = "$host_cpu"; then
10677 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10678 # chokes on -Wl,-G. The following line is correct:
10681 if test yes = "$aix_use_runtimelinking"; then
10682 shared_flag='$wl-G'
10684 shared_flag='$wl-bM:SRE'
10686 shared_flag_aix='$wl-bM:SRE'
10687 shared_flag_svr4='$wl-G'
10691 export_dynamic_flag_spec='$wl-bexpall'
10692 # It seems that -bexpall does not export symbols beginning with
10693 # underscore (_), so it is better to generate a list of symbols to export.
10694 always_export_symbols=yes
10695 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10696 # Warning - without using the other runtime loading flags (-brtl),
10697 # -berok will link without error, but may produce a broken library.
10698 allow_undefined_flag='-berok'
10699 # Determine the default libpath from the value encoded in an
10700 # empty executable.
10701 if test set = "${lt_cv_aix_libpath+set}"; then
10702 aix_libpath=$lt_cv_aix_libpath
10704 if ${lt_cv_aix_libpath_+:} false; then :
10705 $as_echo_n "(cached) " >&6
10707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10708 /* end confdefs.h. */
10718 if ac_fn_c_try_link "$LINENO"; then :
10720 lt_aix_libpath_sed='
10721 /Import File Strings/,/^$/ {
10723 s/^0 *\([^ ]*\) *$/\1/
10727 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10728 # Check for a 64-bit object if we didn't find anything.
10729 if test -z "$lt_cv_aix_libpath_"; then
10730 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10733 rm -f core conftest.err conftest.$ac_objext \
10734 conftest$ac_exeext conftest.$ac_ext
10735 if test -z "$lt_cv_aix_libpath_"; then
10736 lt_cv_aix_libpath_=/usr/lib:/lib
10741 aix_libpath=$lt_cv_aix_libpath_
10744 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10745 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
10747 if test ia64 = "$host_cpu"; then
10748 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10749 allow_undefined_flag="-z nodefs"
10750 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"
10752 # Determine the default libpath from the value encoded in an
10753 # empty executable.
10754 if test set = "${lt_cv_aix_libpath+set}"; then
10755 aix_libpath=$lt_cv_aix_libpath
10757 if ${lt_cv_aix_libpath_+:} false; then :
10758 $as_echo_n "(cached) " >&6
10760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h. */
10771 if ac_fn_c_try_link "$LINENO"; then :
10773 lt_aix_libpath_sed='
10774 /Import File Strings/,/^$/ {
10776 s/^0 *\([^ ]*\) *$/\1/
10780 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10781 # Check for a 64-bit object if we didn't find anything.
10782 if test -z "$lt_cv_aix_libpath_"; then
10783 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10786 rm -f core conftest.err conftest.$ac_objext \
10787 conftest$ac_exeext conftest.$ac_ext
10788 if test -z "$lt_cv_aix_libpath_"; then
10789 lt_cv_aix_libpath_=/usr/lib:/lib
10794 aix_libpath=$lt_cv_aix_libpath_
10797 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10798 # Warning - without using the other run time loading flags,
10799 # -berok will link without error, but may produce a broken library.
10800 no_undefined_flag=' $wl-bernotok'
10801 allow_undefined_flag=' $wl-berok'
10802 if test yes = "$with_gnu_ld"; then
10803 # We only use this code for GNU lds that support --whole-archive.
10804 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10806 # Exported symbols can be pulled into shared objects from archives
10807 whole_archive_flag_spec='$convenience'
10809 archive_cmds_need_lc=yes
10810 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10811 # -brtl affects multiple linker settings, -berok does not and is overridden later
10812 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10813 if test svr4 != "$with_aix_soname"; then
10814 # This is similar to how AIX traditionally builds its shared libraries.
10815 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'
10817 if test aix != "$with_aix_soname"; then
10818 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'
10820 # used by -dlpreopen to get the symbols
10821 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10823 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10831 # see comment about AmigaOS4 .so support
10832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10833 archive_expsym_cmds=''
10836 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)'
10837 hardcode_libdir_flag_spec='-L$libdir'
10838 hardcode_minus_L=yes
10844 export_dynamic_flag_spec=-rdynamic
10847 cygwin* | mingw* | pw32* | cegcc*)
10848 # When not using gcc, we currently assume that we are using
10849 # Microsoft Visual C++.
10850 # hardcode_libdir_flag_spec is actually meaningless, as there is
10851 # no search path for DLLs.
10852 case $cc_basename in
10855 hardcode_libdir_flag_spec=' '
10856 allow_undefined_flag=unsupported
10857 always_export_symbols=yes
10859 # Tell ltmain to make .lib files, not .a files.
10861 # Tell ltmain to make .dll files, not .so files.
10863 # FIXME: Setting linknames here is a bad hack.
10864 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10865 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10866 cp "$export_symbols" "$output_objdir/$soname.def";
10867 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10869 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10871 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10873 # The linker will not automatically build a static lib if we build a DLL.
10874 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10875 enable_shared_with_static_runtimes=yes
10876 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10877 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10879 old_postinstall_cmds='chmod 644 $oldlib'
10880 postlink_cmds='lt_outputfile="@OUTPUT@"~
10881 lt_tool_outputfile="@TOOL_OUTPUT@"~
10882 case $lt_outputfile in
10885 lt_outputfile=$lt_outputfile.exe
10886 lt_tool_outputfile=$lt_tool_outputfile.exe
10889 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10890 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10891 $RM "$lt_outputfile.manifest";
10895 # Assume MSVC wrapper
10896 hardcode_libdir_flag_spec=' '
10897 allow_undefined_flag=unsupported
10898 # Tell ltmain to make .lib files, not .a files.
10900 # Tell ltmain to make .dll files, not .so files.
10902 # FIXME: Setting linknames here is a bad hack.
10903 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10904 # The linker will automatically build a .lib file if we build a DLL.
10905 old_archive_from_new_cmds='true'
10906 # FIXME: Should let the user specify the lib program.
10907 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10908 enable_shared_with_static_runtimes=yes
10913 darwin* | rhapsody*)
10916 archive_cmds_need_lc=no
10918 hardcode_automatic=yes
10919 hardcode_shlibpath_var=unsupported
10920 if test yes = "$lt_cv_ld_force_load"; then
10921 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\"`'
10924 whole_archive_flag_spec=''
10926 link_all_deplibs=yes
10927 allow_undefined_flag=$_lt_dar_allow_undefined
10928 case $cc_basename in
10929 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10930 *) _lt_dar_can_shared=$GCC ;;
10932 if test yes = "$_lt_dar_can_shared"; then
10933 output_verbose_link_cmd=func_echo_all
10934 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10935 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10936 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"
10937 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"
10946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10947 hardcode_libdir_flag_spec='-L$libdir'
10948 hardcode_shlibpath_var=no
10951 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10952 # support. Future versions do this automatically, but an explicit c++rt0.o
10953 # does not break anything, and helps significantly (at the cost of a little
10956 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10957 hardcode_libdir_flag_spec='-R$libdir'
10958 hardcode_direct=yes
10959 hardcode_shlibpath_var=no
10962 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10964 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10965 hardcode_direct=yes
10966 hardcode_minus_L=yes
10967 hardcode_shlibpath_var=no
10970 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10971 freebsd* | dragonfly*)
10972 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10973 hardcode_libdir_flag_spec='-R$libdir'
10974 hardcode_direct=yes
10975 hardcode_shlibpath_var=no
10979 if test yes = "$GCC"; then
10980 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'
10982 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'
10984 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10985 hardcode_libdir_separator=:
10986 hardcode_direct=yes
10988 # hardcode_minus_L: Not really in the search PATH,
10989 # but as the default location of the library.
10990 hardcode_minus_L=yes
10991 export_dynamic_flag_spec='$wl-E'
10995 if test yes,no = "$GCC,$with_gnu_ld"; then
10996 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10998 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11000 if test no = "$with_gnu_ld"; then
11001 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11002 hardcode_libdir_separator=:
11003 hardcode_direct=yes
11004 hardcode_direct_absolute=yes
11005 export_dynamic_flag_spec='$wl-E'
11006 # hardcode_minus_L: Not really in the search PATH,
11007 # but as the default location of the library.
11008 hardcode_minus_L=yes
11013 if test yes,no = "$GCC,$with_gnu_ld"; then
11016 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11019 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11022 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11028 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11031 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11035 # Older versions of the 11.00 compiler do not understand -b yet
11036 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11038 $as_echo_n "checking if $CC understands -b... " >&6; }
11039 if ${lt_cv_prog_compiler__b+:} false; then :
11040 $as_echo_n "(cached) " >&6
11042 lt_cv_prog_compiler__b=no
11043 save_LDFLAGS=$LDFLAGS
11044 LDFLAGS="$LDFLAGS -b"
11045 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11046 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11047 # The linker can only warn and ignore the option if not recognized
11048 # So say no if there are warnings
11049 if test -s conftest.err; then
11050 # Append any errors to the config.log.
11051 cat conftest.err 1>&5
11052 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11053 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11054 if diff conftest.exp conftest.er2 >/dev/null; then
11055 lt_cv_prog_compiler__b=yes
11058 lt_cv_prog_compiler__b=yes
11062 LDFLAGS=$save_LDFLAGS
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11066 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11068 if test yes = "$lt_cv_prog_compiler__b"; then
11069 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11071 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11077 if test no = "$with_gnu_ld"; then
11078 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11079 hardcode_libdir_separator=:
11084 hardcode_shlibpath_var=no
11087 hardcode_direct=yes
11088 hardcode_direct_absolute=yes
11089 export_dynamic_flag_spec='$wl-E'
11091 # hardcode_minus_L: Not really in the search PATH,
11092 # but as the default location of the library.
11093 hardcode_minus_L=yes
11099 irix5* | irix6* | nonstopux*)
11100 if test yes = "$GCC"; then
11101 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'
11102 # Try to use the -exported_symbol ld option, if it does not
11103 # work, assume that -exports_file does not work either and
11104 # implicitly export all symbols.
11105 # This should be the same for all languages, so no per-tag cache variable.
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11107 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11108 if ${lt_cv_irix_exported_symbol+:} false; then :
11109 $as_echo_n "(cached) " >&6
11111 save_LDFLAGS=$LDFLAGS
11112 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11114 /* end confdefs.h. */
11115 int foo (void) { return 0; }
11117 if ac_fn_c_try_link "$LINENO"; then :
11118 lt_cv_irix_exported_symbol=yes
11120 lt_cv_irix_exported_symbol=no
11122 rm -f core conftest.err conftest.$ac_objext \
11123 conftest$ac_exeext conftest.$ac_ext
11124 LDFLAGS=$save_LDFLAGS
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11127 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11128 if test yes = "$lt_cv_irix_exported_symbol"; then
11129 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'
11132 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'
11133 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'
11135 archive_cmds_need_lc='no'
11136 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11137 hardcode_libdir_separator=:
11139 link_all_deplibs=yes
11143 case $cc_basename in
11145 # Fabrice Bellard et al's Tiny C Compiler
11147 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11153 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11154 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11156 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11158 hardcode_libdir_flag_spec='-R$libdir'
11159 hardcode_direct=yes
11160 hardcode_shlibpath_var=no
11164 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11165 hardcode_direct=yes
11166 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11167 hardcode_libdir_separator=:
11168 hardcode_shlibpath_var=no
11174 openbsd* | bitrig*)
11175 if test -f /usr/libexec/ld.so; then
11176 hardcode_direct=yes
11177 hardcode_shlibpath_var=no
11178 hardcode_direct_absolute=yes
11179 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11180 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11181 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11182 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11183 export_dynamic_flag_spec='$wl-E'
11185 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11186 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11194 hardcode_libdir_flag_spec='-L$libdir'
11195 hardcode_minus_L=yes
11196 allow_undefined_flag=unsupported
11198 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11199 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11200 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11201 $ECHO EXPORTS >> $output_objdir/$libname.def~
11202 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11203 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11204 emximp -o $lib $output_objdir/$libname.def'
11205 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11206 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11207 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11208 $ECHO EXPORTS >> $output_objdir/$libname.def~
11209 prefix_cmds="$SED"~
11210 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11211 prefix_cmds="$prefix_cmds -e 1d";
11213 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11214 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11215 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11216 emximp -o $lib $output_objdir/$libname.def'
11217 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11218 enable_shared_with_static_runtimes=yes
11222 if test yes = "$GCC"; then
11223 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11224 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'
11226 allow_undefined_flag=' -expect_unresolved \*'
11227 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'
11229 archive_cmds_need_lc='no'
11230 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11231 hardcode_libdir_separator=:
11234 osf4* | osf5*) # as osf3* with the addition of -msym flag
11235 if test yes = "$GCC"; then
11236 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11237 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'
11238 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11240 allow_undefined_flag=' -expect_unresolved \*'
11241 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'
11242 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~
11243 $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'
11245 # Both c and cxx compiler support -rpath directly
11246 hardcode_libdir_flag_spec='-rpath $libdir'
11248 archive_cmds_need_lc='no'
11249 hardcode_libdir_separator=:
11253 no_undefined_flag=' -z defs'
11254 if test yes = "$GCC"; then
11256 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11257 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11258 $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'
11260 case `$CC -V 2>&1` in
11263 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11264 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11265 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11269 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11270 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11271 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11275 hardcode_libdir_flag_spec='-R$libdir'
11276 hardcode_shlibpath_var=no
11278 solaris2.[0-5] | solaris2.[0-5].*) ;;
11280 # The compiler driver will combine and reorder linker options,
11281 # but understands '-z linker_flag'. GCC discards it without '$wl',
11282 # but is careful enough not to reorder.
11283 # Supported since Solaris 2.6 (maybe 2.5.1?)
11284 if test yes = "$GCC"; then
11285 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11287 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11291 link_all_deplibs=yes
11295 if test sequent = "$host_vendor"; then
11296 # Use $CC to link under sequent, because it throws in some extra .o
11297 # files that make .init and .fini sections work.
11298 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11300 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11302 hardcode_libdir_flag_spec='-L$libdir'
11303 hardcode_direct=yes
11304 hardcode_minus_L=yes
11305 hardcode_shlibpath_var=no
11309 case $host_vendor in
11311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11312 hardcode_direct=yes # is this really true???
11315 ## LD is ld it makes a PLAMLIB
11316 ## CC just makes a GrossModule.
11317 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11318 reload_cmds='$CC -r -o $output$reload_objs'
11322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11323 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11326 runpath_var='LD_RUN_PATH'
11327 hardcode_shlibpath_var=no
11331 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11332 hardcode_shlibpath_var=no
11333 export_dynamic_flag_spec='-Bexport'
11337 if test -d /usr/nec; then
11338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11339 hardcode_shlibpath_var=no
11340 runpath_var=LD_RUN_PATH
11341 hardcode_runpath_var=yes
11346 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11347 no_undefined_flag='$wl-z,text'
11348 archive_cmds_need_lc=no
11349 hardcode_shlibpath_var=no
11350 runpath_var='LD_RUN_PATH'
11352 if test yes = "$GCC"; then
11353 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11354 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11356 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11357 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11361 sysv5* | sco3.2v5* | sco5v6*)
11362 # Note: We CANNOT use -z defs as we might desire, because we do not
11363 # link with -lc, and that would cause any symbols used from libc to
11364 # always be unresolved, which means just about no library would
11365 # ever link correctly. If we're not using GNU ld we use -z text
11366 # though, which does catch some bad symbols but isn't as heavy-handed
11368 no_undefined_flag='$wl-z,text'
11369 allow_undefined_flag='$wl-z,nodefs'
11370 archive_cmds_need_lc=no
11371 hardcode_shlibpath_var=no
11372 hardcode_libdir_flag_spec='$wl-R,$libdir'
11373 hardcode_libdir_separator=':'
11374 link_all_deplibs=yes
11375 export_dynamic_flag_spec='$wl-Bexport'
11376 runpath_var='LD_RUN_PATH'
11378 if test yes = "$GCC"; then
11379 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11380 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11382 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11383 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11389 hardcode_libdir_flag_spec='-L$libdir'
11390 hardcode_shlibpath_var=no
11398 if test sni = "$host_vendor"; then
11400 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11401 export_dynamic_flag_spec='$wl-Blargedynsym'
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11408 $as_echo "$ld_shlibs" >&6; }
11409 test no = "$ld_shlibs" && can_build_shared=no
11411 with_gnu_ld=$with_gnu_ld
11428 # Do we need to explicitly link libc?
11430 case "x$archive_cmds_need_lc" in
11432 # Assume -lc should be added
11433 archive_cmds_need_lc=yes
11435 if test yes,yes = "$GCC,$enable_shared"; then
11436 case $archive_cmds in
11438 # FIXME: we may have to deal with multi-command sequences.
11441 # Test whether the compiler implicitly links with -lc since on some
11442 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11443 # to ld, don't add -lc before -lgcc.
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11445 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11446 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11447 $as_echo_n "(cached) " >&6
11450 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11452 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11453 (eval $ac_compile) 2>&5
11455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11456 test $ac_status = 0; } 2>conftest.err; then
11459 libobjs=conftest.$ac_objext
11461 wl=$lt_prog_compiler_wl
11462 pic_flag=$lt_prog_compiler_pic
11468 lt_save_allow_undefined_flag=$allow_undefined_flag
11469 allow_undefined_flag=
11470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11471 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11474 test $ac_status = 0; }
11476 lt_cv_archive_cmds_need_lc=no
11478 lt_cv_archive_cmds_need_lc=yes
11480 allow_undefined_flag=$lt_save_allow_undefined_flag
11482 cat conftest.err 1>&5
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11488 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11489 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11648 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11650 if test yes = "$GCC"; then
11652 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11653 *) lt_awk_arg='/^libraries:/' ;;
11656 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11657 *) lt_sed_strip_eq='s|=/|/|g' ;;
11659 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11660 case $lt_search_path_spec in
11662 # if the path contains ";" then we assume it to be the separator
11663 # otherwise default to the standard path separator (i.e. ":") - it is
11664 # assumed that no part of a normal pathname contains ";" but that should
11665 # okay in the real world where ";" in dirpaths is itself problematic.
11666 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11669 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11672 # Ok, now we have the path, separated by spaces, we can step through it
11673 # and add multilib dir if necessary...
11674 lt_tmp_lt_search_path_spec=
11675 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11676 # ...but if some path component already ends with the multilib dir we assume
11677 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11678 case "$lt_multi_os_dir; $lt_search_path_spec " in
11679 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11683 for lt_sys_path in $lt_search_path_spec; do
11684 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11685 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11686 elif test -n "$lt_multi_os_dir"; then
11687 test -d "$lt_sys_path" && \
11688 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11691 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11692 BEGIN {RS = " "; FS = "/|\n";} {
11695 for (lt_i = NF; lt_i > 0; lt_i--) {
11696 if ($lt_i != "" && $lt_i != ".") {
11697 if ($lt_i == "..") {
11700 if (lt_count == 0) {
11701 lt_foo = "/" $lt_i lt_foo;
11708 if (lt_foo != "") { lt_freq[lt_foo]++; }
11709 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11711 # AWK program above erroneously prepends '/' to C:/dos/paths
11714 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11715 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11717 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11719 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11721 library_names_spec=
11722 libname_spec='lib$name'
11726 postuninstall_cmds=
11730 shlibpath_overrides_runpath=unknown
11732 dynamic_linker="$host_os ld.so"
11733 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11734 need_lib_prefix=unknown
11735 hardcode_into_libs=no
11737 # when you set need_version to no, make sure it does not cause -set_version
11738 # flags to be left without arguments
11739 need_version=unknown
11745 version_type=linux # correct to gnu/linux during the next big refactor
11746 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11747 shlibpath_var=LIBPATH
11749 # AIX 3 has no versioning support, so we append a major version to the name.
11750 soname_spec='$libname$release$shared_ext$major'
11754 version_type=linux # correct to gnu/linux during the next big refactor
11757 hardcode_into_libs=yes
11758 if test ia64 = "$host_cpu"; then
11759 # AIX 5 supports IA64
11760 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11761 shlibpath_var=LD_LIBRARY_PATH
11763 # With GCC up to 2.95.x, collect2 would create an import file
11764 # for dependence libraries. The import file would start with
11765 # the line '#! .'. This would cause the generated library to
11766 # depend on '.', always an invalid library. This was fixed in
11767 # development snapshots of GCC prior to 3.0.
11769 aix4 | aix4.[01] | aix4.[01].*)
11770 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11772 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11775 can_build_shared=no
11779 # Using Import Files as archive members, it is possible to support
11780 # filename-based versioning of shared library archives on AIX. While
11781 # this would work for both with and without runtime linking, it will
11782 # prevent static linking of such archives. So we do filename-based
11783 # shared library versioning with .so extension only, which is used
11784 # when both runtime linking and shared linking is enabled.
11785 # Unfortunately, runtime linking may impact performance, so we do
11786 # not want this to be the default eventually. Also, we use the
11787 # versioned .so libs for executables only if there is the -brtl
11788 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11789 # To allow for filename-based versioning support, we need to create
11790 # libNAME.so.V as an archive file, containing:
11791 # *) an Import File, referring to the versioned filename of the
11792 # archive as well as the shared archive member, telling the
11793 # bitwidth (32 or 64) of that shared object, and providing the
11794 # list of exported symbols of that shared object, eventually
11795 # decorated with the 'weak' keyword
11796 # *) the shared object with the F_LOADONLY flag set, to really avoid
11797 # it being seen by the linker.
11798 # At run time we better use the real file rather than another symlink,
11799 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11801 case $with_aix_soname,$aix_use_runtimelinking in
11802 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11803 # soname into executable. Probably we can add versioning support to
11804 # collect2, so additional links can be useful in future.
11805 aix,yes) # traditional libtool
11806 dynamic_linker='AIX unversionable lib.so'
11807 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11808 # instead of lib<name>.a to let people know that these are not
11809 # typical AIX shared libraries.
11810 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11812 aix,no) # traditional AIX only
11813 dynamic_linker='AIX lib.a(lib.so.V)'
11814 # We preserve .a as extension for shared libraries through AIX4.2
11815 # and later when we are not doing run time linking.
11816 library_names_spec='$libname$release.a $libname.a'
11817 soname_spec='$libname$release$shared_ext$major'
11819 svr4,*) # full svr4 only
11820 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11821 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11822 # We do not specify a path in Import Files, so LIBPATH fires.
11823 shlibpath_overrides_runpath=yes
11825 *,yes) # both, prefer svr4
11826 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11827 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11828 # unpreferred sharedlib libNAME.a needs extra handling
11829 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"'
11830 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"'
11831 # We do not specify a path in Import Files, so LIBPATH fires.
11832 shlibpath_overrides_runpath=yes
11834 *,no) # both, prefer aix
11835 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11836 library_names_spec='$libname$release.a $libname.a'
11837 soname_spec='$libname$release$shared_ext$major'
11838 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11839 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)'
11840 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"'
11843 shlibpath_var=LIBPATH
11850 # Since July 2007 AmigaOS4 officially supports .so libraries.
11851 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11852 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11855 library_names_spec='$libname.ixlibrary $libname.a'
11856 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11857 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'
11863 library_names_spec='$libname$shared_ext'
11864 dynamic_linker="$host_os ld.so"
11865 shlibpath_var=LIBRARY_PATH
11869 version_type=linux # correct to gnu/linux during the next big refactor
11871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11872 soname_spec='$libname$release$shared_ext$major'
11873 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11874 shlibpath_var=LD_LIBRARY_PATH
11875 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11876 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11877 # the default ld.so.conf also contains /usr/contrib/lib and
11878 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11879 # libtool to hard-code these into programs
11882 cygwin* | mingw* | pw32* | cegcc*)
11883 version_type=windows
11888 case $GCC,$cc_basename in
11891 library_names_spec='$libname.dll.a'
11892 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11893 postinstall_cmds='base_file=`basename \$file`~
11894 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11895 dldir=$destdir/`dirname \$dlpath`~
11896 test -d \$dldir || mkdir -p \$dldir~
11897 $install_prog $dir/$dlname \$dldir/$dlname~
11898 chmod a+x \$dldir/$dlname~
11899 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11900 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11902 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11903 dlpath=$dir/\$dldll~
11905 shlibpath_overrides_runpath=yes
11909 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11910 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11912 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11915 # MinGW DLLs use traditional 'lib' prefix
11916 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11919 # pw32 DLLs use 'pw' prefix rather than 'lib'
11920 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11923 dynamic_linker='Win32 ld.exe'
11928 libname_spec='$name'
11929 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11930 library_names_spec='$libname.dll.lib'
11934 sys_lib_search_path_spec=
11937 for lt_path in $LIB
11940 # Let DOS variable expansion print the short 8.3 style file name.
11941 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11942 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11945 # Convert to MSYS style.
11946 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11949 # Convert to unix form, then to dos form, then back to unix form
11950 # but this time dos style (no spaces!) so that the unix form looks
11951 # like /cygdrive/c/PROGRA~1:/cygdr...
11952 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11953 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11954 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11957 sys_lib_search_path_spec=$LIB
11958 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11959 # It is most probably a Windows format PATH.
11960 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11962 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11964 # FIXME: find the short name or the path components, as spaces are
11965 # common. (e.g. "Program Files" -> "PROGRA~1")
11969 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11970 postinstall_cmds='base_file=`basename \$file`~
11971 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11972 dldir=$destdir/`dirname \$dlpath`~
11973 test -d \$dldir || mkdir -p \$dldir~
11974 $install_prog $dir/$dlname \$dldir/$dlname'
11975 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11976 dlpath=$dir/\$dldll~
11978 shlibpath_overrides_runpath=yes
11979 dynamic_linker='Win32 link.exe'
11983 # Assume MSVC wrapper
11984 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11985 dynamic_linker='Win32 ld.exe'
11988 # FIXME: first we should search . and the directory the executable is in
11992 darwin* | rhapsody*)
11993 dynamic_linker="$host_os dyld"
11994 version_type=darwin
11997 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11998 soname_spec='$libname$release$major$shared_ext'
11999 shlibpath_overrides_runpath=yes
12000 shlibpath_var=DYLD_LIBRARY_PATH
12001 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12003 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12004 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12008 version_type=linux # correct to gnu/linux during the next big refactor
12011 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12012 soname_spec='$libname$release$shared_ext$major'
12013 shlibpath_var=LD_LIBRARY_PATH
12016 freebsd* | dragonfly*)
12017 # DragonFly does not have aout. When/if they implement a new
12018 # versioning mechanism, adjust this.
12019 if test -x /usr/bin/objformat; then
12020 objformat=`/usr/bin/objformat`
12023 freebsd[23].*) objformat=aout ;;
12024 *) objformat=elf ;;
12027 version_type=freebsd-$objformat
12028 case $version_type in
12030 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12031 soname_spec='$libname$release$shared_ext$major'
12036 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12040 shlibpath_var=LD_LIBRARY_PATH
12043 shlibpath_overrides_runpath=yes
12045 freebsd3.[01]* | freebsdelf3.[01]*)
12046 shlibpath_overrides_runpath=yes
12047 hardcode_into_libs=yes
12049 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12050 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12051 shlibpath_overrides_runpath=no
12052 hardcode_into_libs=yes
12054 *) # from 4.6 on, and DragonFly
12055 shlibpath_overrides_runpath=yes
12056 hardcode_into_libs=yes
12062 version_type=linux # correct to gnu/linux during the next big refactor
12065 dynamic_linker="$host_os runtime_loader"
12066 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12067 soname_spec='$libname$release$shared_ext$major'
12068 shlibpath_var=LIBRARY_PATH
12069 shlibpath_overrides_runpath=no
12070 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12071 hardcode_into_libs=yes
12074 hpux9* | hpux10* | hpux11*)
12075 # Give a soname corresponding to the major version so that dld.sl refuses to
12076 # link against other versions.
12083 hardcode_into_libs=yes
12084 dynamic_linker="$host_os dld.so"
12085 shlibpath_var=LD_LIBRARY_PATH
12086 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12087 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12088 soname_spec='$libname$release$shared_ext$major'
12089 if test 32 = "$HPUX_IA64_MODE"; then
12090 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12091 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12093 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12094 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12099 hardcode_into_libs=yes
12100 dynamic_linker="$host_os dld.sl"
12101 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12102 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12103 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12104 soname_spec='$libname$release$shared_ext$major'
12105 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12106 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12110 dynamic_linker="$host_os dld.sl"
12111 shlibpath_var=SHLIB_PATH
12112 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12113 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12114 soname_spec='$libname$release$shared_ext$major'
12117 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12118 postinstall_cmds='chmod 555 $lib'
12119 # or fails outright, so override atomically:
12120 install_override_mode=555
12124 version_type=linux # correct to gnu/linux during the next big refactor
12127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12128 soname_spec='$libname$release$shared_ext$major'
12129 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12130 shlibpath_var=LD_LIBRARY_PATH
12131 shlibpath_overrides_runpath=no
12132 hardcode_into_libs=yes
12135 irix5* | irix6* | nonstopux*)
12137 nonstopux*) version_type=nonstopux ;;
12139 if test yes = "$lt_cv_prog_gnu_ld"; then
12140 version_type=linux # correct to gnu/linux during the next big refactor
12147 soname_spec='$libname$release$shared_ext$major'
12148 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12150 irix5* | nonstopux*)
12151 libsuff= shlibsuff=
12154 case $LD in # libtool.m4 will add one of these switches to LD
12155 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12156 libsuff= shlibsuff= libmagic=32-bit;;
12157 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12158 libsuff=32 shlibsuff=N32 libmagic=N32;;
12159 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12160 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12161 *) libsuff= shlibsuff= libmagic=never-match;;
12165 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12166 shlibpath_overrides_runpath=no
12167 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12168 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12169 hardcode_into_libs=yes
12172 # No shared lib support for Linux oldld, aout, or coff.
12173 linux*oldld* | linux*aout* | linux*coff*)
12178 version_type=none # Android doesn't support versioned libraries.
12181 library_names_spec='$libname$release$shared_ext'
12182 soname_spec='$libname$release$shared_ext'
12184 shlibpath_var=LD_LIBRARY_PATH
12185 shlibpath_overrides_runpath=yes
12187 # This implies no fast_install, which is unacceptable.
12188 # Some rework will be needed to allow for fast_install
12189 # before this can be enabled.
12190 hardcode_into_libs=yes
12192 dynamic_linker='Android linker'
12193 # Don't embed -rpath directories since the linker doesn't support them.
12194 hardcode_libdir_flag_spec='-L$libdir'
12197 # This must be glibc/ELF.
12198 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12199 version_type=linux # correct to gnu/linux during the next big refactor
12202 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12203 soname_spec='$libname$release$shared_ext$major'
12204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12205 shlibpath_var=LD_LIBRARY_PATH
12206 shlibpath_overrides_runpath=no
12208 # Some binutils ld are patched to set DT_RUNPATH
12209 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12210 $as_echo_n "(cached) " >&6
12212 lt_cv_shlibpath_overrides_runpath=no
12213 save_LDFLAGS=$LDFLAGS
12214 save_libdir=$libdir
12215 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12216 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12218 /* end confdefs.h. */
12228 if ac_fn_c_try_link "$LINENO"; then :
12229 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12230 lt_cv_shlibpath_overrides_runpath=yes
12233 rm -f core conftest.err conftest.$ac_objext \
12234 conftest$ac_exeext conftest.$ac_ext
12235 LDFLAGS=$save_LDFLAGS
12236 libdir=$save_libdir
12240 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12242 # This implies no fast_install, which is unacceptable.
12243 # Some rework will be needed to allow for fast_install
12244 # before this can be enabled.
12245 hardcode_into_libs=yes
12247 # Add ABI-specific directories to the system library path.
12248 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12250 # Ideally, we could use ldconfig to report *all* directores which are
12251 # searched for libraries, however this is still not possible. Aside from not
12252 # being certain /sbin/ldconfig is available, command
12253 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12254 # even though it is searched at run-time. Try to do the best guess by
12255 # appending ld.so.conf contents (and includes) to the search path.
12256 if test -f /etc/ld.so.conf; then
12257 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' ' '`
12258 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12261 # We used to test for /lib/ld.so.1 and disable shared libraries on
12262 # powerpc, because MkLinux only supported shared libraries with the
12263 # GNU dynamic linker. Since this was broken with cross compilers,
12264 # most powerpc-linux boxes support dynamic linking these days and
12265 # people can always --disable-shared, the test was removed, and we
12266 # assume the GNU/Linux dynamic linker is in use.
12267 dynamic_linker='GNU/Linux ld.so'
12274 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12275 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12277 dynamic_linker='NetBSD (a.out) ld.so'
12279 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12280 soname_spec='$libname$release$shared_ext$major'
12281 dynamic_linker='NetBSD ld.elf_so'
12283 shlibpath_var=LD_LIBRARY_PATH
12284 shlibpath_overrides_runpath=yes
12285 hardcode_into_libs=yes
12289 version_type=linux # correct to gnu/linux during the next big refactor
12290 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12291 shlibpath_var=LD_LIBRARY_PATH
12292 shlibpath_overrides_runpath=yes
12299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12300 soname_spec='$libname$release$shared_ext$major'
12301 shlibpath_var=LD_LIBRARY_PATH
12302 shlibpath_overrides_runpath=no
12303 hardcode_into_libs=yes
12304 dynamic_linker='ldqnx.so'
12307 openbsd* | bitrig*)
12309 sys_lib_dlsearch_path_spec=/usr/lib
12311 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12316 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12318 shlibpath_var=LD_LIBRARY_PATH
12319 shlibpath_overrides_runpath=yes
12323 libname_spec='$name'
12324 version_type=windows
12328 # OS/2 can only load a DLL with a base name of 8 characters or less.
12329 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12330 v=$($ECHO $release$versuffix | tr -d .-);
12331 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12332 $ECHO $n$v`$shared_ext'
12333 library_names_spec='${libname}_dll.$libext'
12334 dynamic_linker='OS/2 ld.exe'
12335 shlibpath_var=BEGINLIBPATH
12336 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12337 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12338 postinstall_cmds='base_file=`basename \$file`~
12339 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12340 dldir=$destdir/`dirname \$dlpath`~
12341 test -d \$dldir || mkdir -p \$dldir~
12342 $install_prog $dir/$dlname \$dldir/$dlname~
12343 chmod a+x \$dldir/$dlname~
12344 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12345 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12347 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12348 dlpath=$dir/\$dldll~
12352 osf3* | osf4* | osf5*)
12356 soname_spec='$libname$release$shared_ext$major'
12357 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12358 shlibpath_var=LD_LIBRARY_PATH
12359 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12368 version_type=linux # correct to gnu/linux during the next big refactor
12371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12372 soname_spec='$libname$release$shared_ext$major'
12373 shlibpath_var=LD_LIBRARY_PATH
12374 shlibpath_overrides_runpath=yes
12375 hardcode_into_libs=yes
12376 # ldd complains unless libraries are executable
12377 postinstall_cmds='chmod +x $lib'
12382 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12383 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12384 shlibpath_var=LD_LIBRARY_PATH
12385 shlibpath_overrides_runpath=yes
12386 if test yes = "$with_gnu_ld"; then
12393 version_type=linux # correct to gnu/linux during the next big refactor
12394 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12395 soname_spec='$libname$release$shared_ext$major'
12396 shlibpath_var=LD_LIBRARY_PATH
12397 case $host_vendor in
12399 shlibpath_overrides_runpath=no
12401 runpath_var=LD_RUN_PATH
12409 shlibpath_overrides_runpath=no
12410 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12416 if test -d /usr/nec; then
12417 version_type=linux # correct to gnu/linux during the next big refactor
12418 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12419 soname_spec='$libname$shared_ext.$major'
12420 shlibpath_var=LD_LIBRARY_PATH
12424 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12428 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12429 soname_spec='$libname$release$shared_ext$major'
12430 shlibpath_var=LD_LIBRARY_PATH
12431 shlibpath_overrides_runpath=yes
12432 hardcode_into_libs=yes
12433 if test yes = "$with_gnu_ld"; then
12434 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12436 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12439 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12443 sys_lib_dlsearch_path_spec='/usr/lib'
12447 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12448 version_type=linux # correct to gnu/linux during the next big refactor
12451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12452 shlibpath_var=LD_LIBRARY_PATH
12453 shlibpath_overrides_runpath=no
12454 hardcode_into_libs=yes
12458 version_type=linux # correct to gnu/linux during the next big refactor
12459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12460 soname_spec='$libname$release$shared_ext$major'
12461 shlibpath_var=LD_LIBRARY_PATH
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12469 $as_echo "$dynamic_linker" >&6; }
12470 test no = "$dynamic_linker" && can_build_shared=no
12472 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12473 if test yes = "$GCC"; then
12474 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12477 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12478 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12481 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12482 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12485 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12486 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12488 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12489 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12491 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12492 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12591 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12593 if test -n "$hardcode_libdir_flag_spec" ||
12594 test -n "$runpath_var" ||
12595 test yes = "$hardcode_automatic"; then
12597 # We can hardcode non-existent directories.
12598 if test no != "$hardcode_direct" &&
12599 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12600 # have to relink, otherwise we might link with an installed library
12601 # when we should be linking with a yet-to-be-installed one
12602 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12603 test no != "$hardcode_minus_L"; then
12604 # Linking always hardcodes the temporary library directory.
12605 hardcode_action=relink
12607 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12608 hardcode_action=immediate
12611 # We cannot hardcode anything, or else we can only hardcode existing
12613 hardcode_action=unsupported
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12616 $as_echo "$hardcode_action" >&6; }
12618 if test relink = "$hardcode_action" ||
12619 test yes = "$inherit_rpath"; then
12620 # Fast installation is not supported
12621 enable_fast_install=no
12622 elif test yes = "$shlibpath_overrides_runpath" ||
12623 test no = "$enable_shared"; then
12624 # Fast installation is not necessary
12625 enable_fast_install=needless
12633 if test yes != "$enable_dlopen"; then
12634 enable_dlopen=unknown
12635 enable_dlopen_self=unknown
12636 enable_dlopen_self_static=unknown
12643 lt_cv_dlopen=load_add_on
12645 lt_cv_dlopen_self=yes
12648 mingw* | pw32* | cegcc*)
12649 lt_cv_dlopen=LoadLibrary
12654 lt_cv_dlopen=dlopen
12659 # if libdl is installed we need to link against it
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12661 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12662 if ${ac_cv_lib_dl_dlopen+:} false; then :
12663 $as_echo_n "(cached) " >&6
12665 ac_check_lib_save_LIBS=$LIBS
12667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668 /* end confdefs.h. */
12670 /* Override any GCC internal prototype to avoid an error.
12671 Use char because int might match the return type of a GCC
12672 builtin and then its argument prototype would still apply. */
12685 if ac_fn_c_try_link "$LINENO"; then :
12686 ac_cv_lib_dl_dlopen=yes
12688 ac_cv_lib_dl_dlopen=no
12690 rm -f core conftest.err conftest.$ac_objext \
12691 conftest$ac_exeext conftest.$ac_ext
12692 LIBS=$ac_check_lib_save_LIBS
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12695 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12696 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12697 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12702 lt_cv_dlopen_self=yes
12709 # Don't try to run any link tests for TPF. We know it's impossible
12710 # because TPF is a cross-compiler, and we know how we open DSOs.
12711 lt_cv_dlopen=dlopen
12713 lt_cv_dlopen_self=no
12717 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12718 if test "x$ac_cv_func_shl_load" = xyes; then :
12719 lt_cv_dlopen=shl_load
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12722 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12723 if ${ac_cv_lib_dld_shl_load+:} false; then :
12724 $as_echo_n "(cached) " >&6
12726 ac_check_lib_save_LIBS=$LIBS
12728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12729 /* end confdefs.h. */
12731 /* Override any GCC internal prototype to avoid an error.
12732 Use char because int might match the return type of a GCC
12733 builtin and then its argument prototype would still apply. */
12741 return shl_load ();
12746 if ac_fn_c_try_link "$LINENO"; then :
12747 ac_cv_lib_dld_shl_load=yes
12749 ac_cv_lib_dld_shl_load=no
12751 rm -f core conftest.err conftest.$ac_objext \
12752 conftest$ac_exeext conftest.$ac_ext
12753 LIBS=$ac_check_lib_save_LIBS
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12756 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12757 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12758 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12760 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12761 if test "x$ac_cv_func_dlopen" = xyes; then :
12762 lt_cv_dlopen=dlopen
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12765 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12766 if ${ac_cv_lib_dl_dlopen+:} false; then :
12767 $as_echo_n "(cached) " >&6
12769 ac_check_lib_save_LIBS=$LIBS
12771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12772 /* end confdefs.h. */
12774 /* Override any GCC internal prototype to avoid an error.
12775 Use char because int might match the return type of a GCC
12776 builtin and then its argument prototype would still apply. */
12789 if ac_fn_c_try_link "$LINENO"; then :
12790 ac_cv_lib_dl_dlopen=yes
12792 ac_cv_lib_dl_dlopen=no
12794 rm -f core conftest.err conftest.$ac_objext \
12795 conftest$ac_exeext conftest.$ac_ext
12796 LIBS=$ac_check_lib_save_LIBS
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12799 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12800 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12801 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12804 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12805 if ${ac_cv_lib_svld_dlopen+:} false; then :
12806 $as_echo_n "(cached) " >&6
12808 ac_check_lib_save_LIBS=$LIBS
12809 LIBS="-lsvld $LIBS"
12810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12811 /* end confdefs.h. */
12813 /* Override any GCC internal prototype to avoid an error.
12814 Use char because int might match the return type of a GCC
12815 builtin and then its argument prototype would still apply. */
12828 if ac_fn_c_try_link "$LINENO"; then :
12829 ac_cv_lib_svld_dlopen=yes
12831 ac_cv_lib_svld_dlopen=no
12833 rm -f core conftest.err conftest.$ac_objext \
12834 conftest$ac_exeext conftest.$ac_ext
12835 LIBS=$ac_check_lib_save_LIBS
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12838 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12839 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12840 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12843 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12844 if ${ac_cv_lib_dld_dld_link+:} false; then :
12845 $as_echo_n "(cached) " >&6
12847 ac_check_lib_save_LIBS=$LIBS
12849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850 /* end confdefs.h. */
12852 /* Override any GCC internal prototype to avoid an error.
12853 Use char because int might match the return type of a GCC
12854 builtin and then its argument prototype would still apply. */
12862 return dld_link ();
12867 if ac_fn_c_try_link "$LINENO"; then :
12868 ac_cv_lib_dld_dld_link=yes
12870 ac_cv_lib_dld_dld_link=no
12872 rm -f core conftest.err conftest.$ac_objext \
12873 conftest$ac_exeext conftest.$ac_ext
12874 LIBS=$ac_check_lib_save_LIBS
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12877 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12878 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12879 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12900 if test no = "$lt_cv_dlopen"; then
12906 case $lt_cv_dlopen in
12908 save_CPPFLAGS=$CPPFLAGS
12909 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12911 save_LDFLAGS=$LDFLAGS
12912 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12915 LIBS="$lt_cv_dlopen_libs $LIBS"
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12918 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12919 if ${lt_cv_dlopen_self+:} false; then :
12920 $as_echo_n "(cached) " >&6
12922 if test yes = "$cross_compiling"; then :
12923 lt_cv_dlopen_self=cross
12925 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12926 lt_status=$lt_dlunknown
12927 cat > conftest.$ac_ext <<_LT_EOF
12928 #line $LINENO "configure"
12929 #include "confdefs.h"
12938 # define LT_DLGLOBAL RTLD_GLOBAL
12941 # define LT_DLGLOBAL DL_GLOBAL
12943 # define LT_DLGLOBAL 0
12947 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12948 find out it does not work in some platform. */
12949 #ifndef LT_DLLAZY_OR_NOW
12951 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12954 # define LT_DLLAZY_OR_NOW DL_LAZY
12957 # define LT_DLLAZY_OR_NOW RTLD_NOW
12960 # define LT_DLLAZY_OR_NOW DL_NOW
12962 # define LT_DLLAZY_OR_NOW 0
12969 /* When -fvisibility=hidden is used, assume the code has been annotated
12970 correspondingly for the symbols needed. */
12971 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12972 int fnord () __attribute__((visibility("default")));
12975 int fnord () { return 42; }
12978 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12979 int status = $lt_dlunknown;
12983 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12986 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12987 else puts (dlerror ());
12989 /* dlclose (self); */
12997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12998 (eval $ac_link) 2>&5
13000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13001 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13002 (./conftest; exit; ) >&5 2>/dev/null
13004 case x$lt_status in
13005 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13006 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13007 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13010 # compilation failed
13011 lt_cv_dlopen_self=no
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13019 $as_echo "$lt_cv_dlopen_self" >&6; }
13021 if test yes = "$lt_cv_dlopen_self"; then
13022 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13024 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13025 if ${lt_cv_dlopen_self_static+:} false; then :
13026 $as_echo_n "(cached) " >&6
13028 if test yes = "$cross_compiling"; then :
13029 lt_cv_dlopen_self_static=cross
13031 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13032 lt_status=$lt_dlunknown
13033 cat > conftest.$ac_ext <<_LT_EOF
13034 #line $LINENO "configure"
13035 #include "confdefs.h"
13044 # define LT_DLGLOBAL RTLD_GLOBAL
13047 # define LT_DLGLOBAL DL_GLOBAL
13049 # define LT_DLGLOBAL 0
13053 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13054 find out it does not work in some platform. */
13055 #ifndef LT_DLLAZY_OR_NOW
13057 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13060 # define LT_DLLAZY_OR_NOW DL_LAZY
13063 # define LT_DLLAZY_OR_NOW RTLD_NOW
13066 # define LT_DLLAZY_OR_NOW DL_NOW
13068 # define LT_DLLAZY_OR_NOW 0
13075 /* When -fvisibility=hidden is used, assume the code has been annotated
13076 correspondingly for the symbols needed. */
13077 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13078 int fnord () __attribute__((visibility("default")));
13081 int fnord () { return 42; }
13084 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13085 int status = $lt_dlunknown;
13089 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13092 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13093 else puts (dlerror ());
13095 /* dlclose (self); */
13103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13104 (eval $ac_link) 2>&5
13106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13107 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13108 (./conftest; exit; ) >&5 2>/dev/null
13110 case x$lt_status in
13111 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13112 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13113 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13116 # compilation failed
13117 lt_cv_dlopen_self_static=no
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13125 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13128 CPPFLAGS=$save_CPPFLAGS
13129 LDFLAGS=$save_LDFLAGS
13134 case $lt_cv_dlopen_self in
13135 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13136 *) enable_dlopen_self=unknown ;;
13139 case $lt_cv_dlopen_self_static in
13140 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13141 *) enable_dlopen_self_static=unknown ;;
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13164 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13165 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13166 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13167 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13169 $as_echo "yes" >&6; }
13171 # FIXME - insert some real tests, host_os isn't really good enough
13174 if test -n "$STRIP"; then
13175 striplib="$STRIP -x"
13176 old_striplib="$STRIP -S"
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13178 $as_echo "yes" >&6; }
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13181 $as_echo "no" >&6; }
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13186 $as_echo "no" >&6; }
13202 # Report what library types will actually be built
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13204 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13206 $as_echo "$can_build_shared" >&6; }
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13209 $as_echo_n "checking whether to build shared libraries... " >&6; }
13210 test no = "$can_build_shared" && enable_shared=no
13212 # On AIX, shared libraries and static libraries use the same namespace, and
13213 # are all built from PIC.
13216 test yes = "$enable_shared" && enable_static=no
13217 if test -n "$RANLIB"; then
13218 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13219 postinstall_cmds='$RANLIB $lib'
13224 if test ia64 != "$host_cpu"; then
13225 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13226 yes,aix,yes) ;; # shared object as lib.so file only
13227 yes,svr4,*) ;; # shared object as lib.so archive member only
13228 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13234 $as_echo "$enable_shared" >&6; }
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13237 $as_echo_n "checking whether to build static libraries... " >&6; }
13238 # Make sure either enable_shared or enable_static is yes.
13239 test yes = "$enable_shared" || enable_static=yes
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13241 $as_echo "$enable_static" >&6; }
13248 ac_cpp='$CPP $CPPFLAGS'
13249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13269 ac_config_commands="$ac_config_commands libtool"
13274 # Only expand once:
13285 LIBT_VERSION_INFO="$LIBT_CURRENT:$LIBT_REVISION:$LIBT_AGE"
13288 LIBT_CURRENT_MINUS_AGE=`expr $LIBT_CURRENT - $LIBT_AGE`
13291 PKGCONFIG_REQUIRES=
13292 PKGCONFIG_REQUIRES_PRIVATELY=
13301 if test "$os_win32" = "yes"; then
13310 GETTEXT_PACKAGE=$PACKAGE
13313 cat >>confdefs.h <<_ACEOF
13314 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13321 $as_echo_n "checking whether NLS is requested... " >&6; }
13322 # Check whether --enable-nls was given.
13323 if test "${enable_nls+set}" = set; then :
13324 enableval=$enable_nls; USE_NLS=$enableval
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13330 $as_echo "$USE_NLS" >&6; }
13335 GETTEXT_MACRO_VERSION=0.19
13340 # Prepare PATH_SEPARATOR.
13341 # The user is always right.
13342 if test "${PATH_SEPARATOR+set}" != set; then
13343 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13344 # contains only /bin. Note that ksh looks also at the FPATH variable,
13345 # so we have to set that as well for the test.
13347 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13348 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13349 || PATH_SEPARATOR=';'
13353 # Find out how to test for executable files. Don't use a zero-byte file,
13354 # as systems may use methods other than mode bits to determine executability.
13355 cat >conf$$.file <<_ASEOF
13359 chmod +x conf$$.file
13360 if test -x conf$$.file >/dev/null 2>&1; then
13361 ac_executable_p="test -x"
13363 ac_executable_p="test -f"
13367 # Extract the first word of "msgfmt", so it can be a program name with args.
13368 set dummy msgfmt; ac_word=$2
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13370 $as_echo_n "checking for $ac_word... " >&6; }
13371 if ${ac_cv_path_MSGFMT+:} false; then :
13372 $as_echo_n "(cached) " >&6
13376 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13379 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13380 for ac_dir in $PATH; do
13382 test -z "$ac_dir" && ac_dir=.
13383 for ac_exec_ext in '' $ac_executable_extensions; do
13384 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13385 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13386 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13387 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13388 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13395 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13399 MSGFMT="$ac_cv_path_MSGFMT"
13400 if test "$MSGFMT" != ":"; then
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13402 $as_echo "$MSGFMT" >&6; }
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13405 $as_echo "no" >&6; }
13408 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13409 set dummy gmsgfmt; ac_word=$2
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13411 $as_echo_n "checking for $ac_word... " >&6; }
13412 if ${ac_cv_path_GMSGFMT+:} false; then :
13413 $as_echo_n "(cached) " >&6
13417 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13421 for as_dir in $PATH
13424 test -z "$as_dir" && as_dir=.
13425 for ac_exec_ext in '' $ac_executable_extensions; do
13426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13427 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13435 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13439 GMSGFMT=$ac_cv_path_GMSGFMT
13440 if test -n "$GMSGFMT"; then
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13442 $as_echo "$GMSGFMT" >&6; }
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13445 $as_echo "no" >&6; }
13450 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13451 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
13452 *) MSGFMT_015=$MSGFMT ;;
13455 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13456 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13457 *) GMSGFMT_015=$GMSGFMT ;;
13462 # Prepare PATH_SEPARATOR.
13463 # The user is always right.
13464 if test "${PATH_SEPARATOR+set}" != set; then
13465 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13466 # contains only /bin. Note that ksh looks also at the FPATH variable,
13467 # so we have to set that as well for the test.
13469 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13470 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13471 || PATH_SEPARATOR=';'
13475 # Find out how to test for executable files. Don't use a zero-byte file,
13476 # as systems may use methods other than mode bits to determine executability.
13477 cat >conf$$.file <<_ASEOF
13481 chmod +x conf$$.file
13482 if test -x conf$$.file >/dev/null 2>&1; then
13483 ac_executable_p="test -x"
13485 ac_executable_p="test -f"
13489 # Extract the first word of "xgettext", so it can be a program name with args.
13490 set dummy xgettext; ac_word=$2
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13492 $as_echo_n "checking for $ac_word... " >&6; }
13493 if ${ac_cv_path_XGETTEXT+:} false; then :
13494 $as_echo_n "(cached) " >&6
13496 case "$XGETTEXT" in
13498 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13501 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13502 for ac_dir in $PATH; do
13504 test -z "$ac_dir" && ac_dir=.
13505 for ac_exec_ext in '' $ac_executable_extensions; do
13506 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13507 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13508 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
13509 (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
13510 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13517 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13521 XGETTEXT="$ac_cv_path_XGETTEXT"
13522 if test "$XGETTEXT" != ":"; then
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13524 $as_echo "$XGETTEXT" >&6; }
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13527 $as_echo "no" >&6; }
13532 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13533 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
13534 *) XGETTEXT_015=$XGETTEXT ;;
13539 # Prepare PATH_SEPARATOR.
13540 # The user is always right.
13541 if test "${PATH_SEPARATOR+set}" != set; then
13542 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13543 # contains only /bin. Note that ksh looks also at the FPATH variable,
13544 # so we have to set that as well for the test.
13546 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13547 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13548 || PATH_SEPARATOR=';'
13552 # Find out how to test for executable files. Don't use a zero-byte file,
13553 # as systems may use methods other than mode bits to determine executability.
13554 cat >conf$$.file <<_ASEOF
13558 chmod +x conf$$.file
13559 if test -x conf$$.file >/dev/null 2>&1; then
13560 ac_executable_p="test -x"
13562 ac_executable_p="test -f"
13566 # Extract the first word of "msgmerge", so it can be a program name with args.
13567 set dummy msgmerge; ac_word=$2
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13569 $as_echo_n "checking for $ac_word... " >&6; }
13570 if ${ac_cv_path_MSGMERGE+:} false; then :
13571 $as_echo_n "(cached) " >&6
13573 case "$MSGMERGE" in
13575 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13578 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13579 for ac_dir in $PATH; do
13581 test -z "$ac_dir" && ac_dir=.
13582 for ac_exec_ext in '' $ac_executable_extensions; do
13583 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13584 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13585 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
13586 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13593 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13597 MSGMERGE="$ac_cv_path_MSGMERGE"
13598 if test "$MSGMERGE" != ":"; then
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13600 $as_echo "$MSGMERGE" >&6; }
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13603 $as_echo "no" >&6; }
13607 test -n "$localedir" || localedir='${datadir}/locale'
13610 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
13613 ac_config_commands="$ac_config_commands po-directories"
13617 if test "X$prefix" = "XNONE"; then
13618 acl_final_prefix="$ac_default_prefix"
13620 acl_final_prefix="$prefix"
13622 if test "X$exec_prefix" = "XNONE"; then
13623 acl_final_exec_prefix='${prefix}'
13625 acl_final_exec_prefix="$exec_prefix"
13627 acl_save_prefix="$prefix"
13628 prefix="$acl_final_prefix"
13629 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13630 prefix="$acl_save_prefix"
13634 # Check whether --with-gnu-ld was given.
13635 if test "${with_gnu_ld+set}" = set; then :
13636 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13641 # Prepare PATH_SEPARATOR.
13642 # The user is always right.
13643 if test "${PATH_SEPARATOR+set}" != set; then
13644 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13645 # contains only /bin. Note that ksh looks also at the FPATH variable,
13646 # so we have to set that as well for the test.
13648 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13649 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13650 || PATH_SEPARATOR=';'
13655 if test "$GCC" = yes; then
13656 # Check if gcc -print-prog-name=ld gives a path.
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13658 $as_echo_n "checking for ld used by $CC... " >&6; }
13661 # gcc leaves a trailing carriage return which upsets mingw
13662 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13664 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13667 # Accept absolute paths.
13669 re_direlt='/[^/][^/]*/\.\./'
13670 # Canonicalize the pathname of ld
13671 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
13672 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
13673 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13675 test -z "$LD" && LD="$ac_prog"
13678 # If it fails, then pretend we aren't using GCC.
13682 # If it is relative, then search for the first ld in PATH.
13683 with_gnu_ld=unknown
13686 elif test "$with_gnu_ld" = yes; then
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13688 $as_echo_n "checking for GNU ld... " >&6; }
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13691 $as_echo_n "checking for non-GNU ld... " >&6; }
13693 if ${acl_cv_path_LD+:} false; then :
13694 $as_echo_n "(cached) " >&6
13696 if test -z "$LD"; then
13697 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13698 for ac_dir in $PATH; do
13699 IFS="$acl_save_ifs"
13700 test -z "$ac_dir" && ac_dir=.
13701 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13702 acl_cv_path_LD="$ac_dir/$ac_prog"
13703 # Check to see if the program is GNU ld. I'd rather use --version,
13704 # but apparently some variants of GNU ld only accept -v.
13705 # Break only if it was the GNU/non-GNU ld that we prefer.
13706 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
13707 *GNU* | *'with BFD'*)
13708 test "$with_gnu_ld" != no && break
13711 test "$with_gnu_ld" != yes && break
13716 IFS="$acl_save_ifs"
13718 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13722 LD="$acl_cv_path_LD"
13723 if test -n "$LD"; then
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13725 $as_echo "$LD" >&6; }
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13728 $as_echo "no" >&6; }
13730 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13732 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13733 if ${acl_cv_prog_gnu_ld+:} false; then :
13734 $as_echo_n "(cached) " >&6
13736 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13737 case `$LD -v 2>&1 </dev/null` in
13738 *GNU* | *'with BFD'*)
13739 acl_cv_prog_gnu_ld=yes
13742 acl_cv_prog_gnu_ld=no
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13747 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13748 with_gnu_ld=$acl_cv_prog_gnu_ld
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13754 $as_echo_n "checking for shared library run path origin... " >&6; }
13755 if ${acl_cv_rpath+:} false; then :
13756 $as_echo_n "(cached) " >&6
13759 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13760 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13762 rm -f ./conftest.sh
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13767 $as_echo "$acl_cv_rpath" >&6; }
13769 acl_libext="$acl_cv_libext"
13770 acl_shlibext="$acl_cv_shlibext"
13771 acl_libname_spec="$acl_cv_libname_spec"
13772 acl_library_names_spec="$acl_cv_library_names_spec"
13773 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13774 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13775 acl_hardcode_direct="$acl_cv_hardcode_direct"
13776 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13777 # Check whether --enable-rpath was given.
13778 if test "${enable_rpath+set}" = set; then :
13779 enableval=$enable_rpath; :
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
13792 $as_echo_n "checking for 64-bit host... " >&6; }
13793 if ${gl_cv_solaris_64bit+:} false; then :
13794 $as_echo_n "(cached) " >&6
13796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13797 /* end confdefs.h. */
13804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13805 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
13806 gl_cv_solaris_64bit=yes
13808 gl_cv_solaris_64bit=no
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
13815 $as_echo "$gl_cv_solaris_64bit" >&6; }
13816 if test $gl_cv_solaris_64bit = yes; then
13817 acl_libdirstem=lib/64
13818 case "$host_cpu" in
13819 sparc*) acl_libdirstem2=lib/sparcv9 ;;
13820 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
13825 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13826 if test -n "$searchpath"; then
13827 acl_save_IFS="${IFS= }"; IFS=":"
13828 for searchdir in $searchpath; do
13829 if test -d "$searchdir"; then
13830 case "$searchdir" in
13831 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13833 # Better ignore directories of this form. They are misleading.
13835 *) searchdir=`cd "$searchdir" && pwd`
13836 case "$searchdir" in
13837 */lib64 ) acl_libdirstem=lib64 ;;
13842 IFS="$acl_save_IFS"
13846 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
13861 acl_save_prefix="$prefix"
13862 prefix="$acl_final_prefix"
13863 acl_save_exec_prefix="$exec_prefix"
13864 exec_prefix="$acl_final_exec_prefix"
13866 eval additional_includedir=\"$includedir\"
13867 eval additional_libdir=\"$libdir\"
13869 exec_prefix="$acl_save_exec_prefix"
13870 prefix="$acl_save_prefix"
13873 # Check whether --with-libiconv-prefix was given.
13874 if test "${with_libiconv_prefix+set}" = set; then :
13875 withval=$with_libiconv_prefix;
13876 if test "X$withval" = "Xno"; then
13879 if test "X$withval" = "X"; then
13881 acl_save_prefix="$prefix"
13882 prefix="$acl_final_prefix"
13883 acl_save_exec_prefix="$exec_prefix"
13884 exec_prefix="$acl_final_exec_prefix"
13886 eval additional_includedir=\"$includedir\"
13887 eval additional_libdir=\"$libdir\"
13889 exec_prefix="$acl_save_exec_prefix"
13890 prefix="$acl_save_prefix"
13893 additional_includedir="$withval/include"
13894 additional_libdir="$withval/$acl_libdirstem"
13895 if test "$acl_libdirstem2" != "$acl_libdirstem" \
13896 && ! test -d "$withval/$acl_libdirstem"; then
13897 additional_libdir="$withval/$acl_libdirstem2"
13911 names_already_handled=
13912 names_next_round='iconv '
13913 while test -n "$names_next_round"; do
13914 names_this_round="$names_next_round"
13916 for name in $names_this_round; do
13918 for n in $names_already_handled; do
13919 if test "$n" = "$name"; then
13920 already_handled=yes
13924 if test -z "$already_handled"; then
13925 names_already_handled="$names_already_handled $name"
13926 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
13927 eval value=\"\$HAVE_LIB$uppername\"
13928 if test -n "$value"; then
13929 if test "$value" = yes; then
13930 eval value=\"\$LIB$uppername\"
13931 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13932 eval value=\"\$LTLIB$uppername\"
13933 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13942 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13943 if test -n "$acl_shlibext"; then
13944 shrext=".$acl_shlibext" # typically: shrext=.so
13948 if test $use_additional = yes; then
13949 dir="$additional_libdir"
13950 if test -n "$acl_shlibext"; then
13951 if test -f "$dir/$libname$shrext"; then
13953 found_so="$dir/$libname$shrext"
13955 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13956 ver=`(cd "$dir" && \
13957 for f in "$libname$shrext".*; do echo "$f"; done \
13958 | sed -e "s,^$libname$shrext\\\\.,," \
13959 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13960 | sed 1q ) 2>/dev/null`
13961 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13963 found_so="$dir/$libname$shrext.$ver"
13966 eval library_names=\"$acl_library_names_spec\"
13967 for f in $library_names; do
13968 if test -f "$dir/$f"; then
13977 if test "X$found_dir" = "X"; then
13978 if test -f "$dir/$libname.$acl_libext"; then
13980 found_a="$dir/$libname.$acl_libext"
13983 if test "X$found_dir" != "X"; then
13984 if test -f "$dir/$libname.la"; then
13985 found_la="$dir/$libname.la"
13989 if test "X$found_dir" = "X"; then
13990 for x in $LDFLAGS $LTLIBICONV; do
13992 acl_save_prefix="$prefix"
13993 prefix="$acl_final_prefix"
13994 acl_save_exec_prefix="$exec_prefix"
13995 exec_prefix="$acl_final_exec_prefix"
13997 exec_prefix="$acl_save_exec_prefix"
13998 prefix="$acl_save_prefix"
14002 dir=`echo "X$x" | sed -e 's/^X-L//'`
14003 if test -n "$acl_shlibext"; then
14004 if test -f "$dir/$libname$shrext"; then
14006 found_so="$dir/$libname$shrext"
14008 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14009 ver=`(cd "$dir" && \
14010 for f in "$libname$shrext".*; do echo "$f"; done \
14011 | sed -e "s,^$libname$shrext\\\\.,," \
14012 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14013 | sed 1q ) 2>/dev/null`
14014 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14016 found_so="$dir/$libname$shrext.$ver"
14019 eval library_names=\"$acl_library_names_spec\"
14020 for f in $library_names; do
14021 if test -f "$dir/$f"; then
14030 if test "X$found_dir" = "X"; then
14031 if test -f "$dir/$libname.$acl_libext"; then
14033 found_a="$dir/$libname.$acl_libext"
14036 if test "X$found_dir" != "X"; then
14037 if test -f "$dir/$libname.la"; then
14038 found_la="$dir/$libname.la"
14043 if test "X$found_dir" != "X"; then
14048 if test "X$found_dir" != "X"; then
14049 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14050 if test "X$found_so" != "X"; then
14051 if test "$enable_rpath" = no \
14052 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14053 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14054 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14057 for x in $ltrpathdirs; do
14058 if test "X$x" = "X$found_dir"; then
14063 if test -z "$haveit"; then
14064 ltrpathdirs="$ltrpathdirs $found_dir"
14066 if test "$acl_hardcode_direct" = yes; then
14067 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14069 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14070 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14072 for x in $rpathdirs; do
14073 if test "X$x" = "X$found_dir"; then
14078 if test -z "$haveit"; then
14079 rpathdirs="$rpathdirs $found_dir"
14083 for x in $LDFLAGS $LIBICONV; do
14085 acl_save_prefix="$prefix"
14086 prefix="$acl_final_prefix"
14087 acl_save_exec_prefix="$exec_prefix"
14088 exec_prefix="$acl_final_exec_prefix"
14090 exec_prefix="$acl_save_exec_prefix"
14091 prefix="$acl_save_prefix"
14093 if test "X$x" = "X-L$found_dir"; then
14098 if test -z "$haveit"; then
14099 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14101 if test "$acl_hardcode_minus_L" != no; then
14102 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14104 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14110 if test "X$found_a" != "X"; then
14111 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14113 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14116 additional_includedir=
14117 case "$found_dir" in
14118 */$acl_libdirstem | */$acl_libdirstem/)
14119 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14120 if test "$name" = 'iconv'; then
14121 LIBICONV_PREFIX="$basedir"
14123 additional_includedir="$basedir/include"
14125 */$acl_libdirstem2 | */$acl_libdirstem2/)
14126 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14127 if test "$name" = 'iconv'; then
14128 LIBICONV_PREFIX="$basedir"
14130 additional_includedir="$basedir/include"
14133 if test "X$additional_includedir" != "X"; then
14134 if test "X$additional_includedir" != "X/usr/include"; then
14136 if test "X$additional_includedir" = "X/usr/local/include"; then
14137 if test -n "$GCC"; then
14139 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14143 if test -z "$haveit"; then
14144 for x in $CPPFLAGS $INCICONV; do
14146 acl_save_prefix="$prefix"
14147 prefix="$acl_final_prefix"
14148 acl_save_exec_prefix="$exec_prefix"
14149 exec_prefix="$acl_final_exec_prefix"
14151 exec_prefix="$acl_save_exec_prefix"
14152 prefix="$acl_save_prefix"
14154 if test "X$x" = "X-I$additional_includedir"; then
14159 if test -z "$haveit"; then
14160 if test -d "$additional_includedir"; then
14161 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14167 if test -n "$found_la"; then
14168 save_libdir="$libdir"
14169 case "$found_la" in
14170 */* | *\\*) . "$found_la" ;;
14171 *) . "./$found_la" ;;
14173 libdir="$save_libdir"
14174 for dep in $dependency_libs; do
14177 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14178 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14179 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14181 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14182 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14183 if test -n "$GCC"; then
14185 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14189 if test -z "$haveit"; then
14191 for x in $LDFLAGS $LIBICONV; do
14193 acl_save_prefix="$prefix"
14194 prefix="$acl_final_prefix"
14195 acl_save_exec_prefix="$exec_prefix"
14196 exec_prefix="$acl_final_exec_prefix"
14198 exec_prefix="$acl_save_exec_prefix"
14199 prefix="$acl_save_prefix"
14201 if test "X$x" = "X-L$additional_libdir"; then
14206 if test -z "$haveit"; then
14207 if test -d "$additional_libdir"; then
14208 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14212 for x in $LDFLAGS $LTLIBICONV; do
14214 acl_save_prefix="$prefix"
14215 prefix="$acl_final_prefix"
14216 acl_save_exec_prefix="$exec_prefix"
14217 exec_prefix="$acl_final_exec_prefix"
14219 exec_prefix="$acl_save_exec_prefix"
14220 prefix="$acl_save_prefix"
14222 if test "X$x" = "X-L$additional_libdir"; then
14227 if test -z "$haveit"; then
14228 if test -d "$additional_libdir"; then
14229 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14236 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14237 if test "$enable_rpath" != no; then
14239 for x in $rpathdirs; do
14240 if test "X$x" = "X$dir"; then
14245 if test -z "$haveit"; then
14246 rpathdirs="$rpathdirs $dir"
14249 for x in $ltrpathdirs; do
14250 if test "X$x" = "X$dir"; then
14255 if test -z "$haveit"; then
14256 ltrpathdirs="$ltrpathdirs $dir"
14261 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14264 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14267 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14268 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14274 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14275 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14281 if test "X$rpathdirs" != "X"; then
14282 if test -n "$acl_hardcode_libdir_separator"; then
14284 for found_dir in $rpathdirs; do
14285 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14287 acl_save_libdir="$libdir"
14289 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14290 libdir="$acl_save_libdir"
14291 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14293 for found_dir in $rpathdirs; do
14294 acl_save_libdir="$libdir"
14295 libdir="$found_dir"
14296 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14297 libdir="$acl_save_libdir"
14298 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14302 if test "X$ltrpathdirs" != "X"; then
14303 for found_dir in $ltrpathdirs; do
14304 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14339 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14340 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
14341 $as_echo_n "(cached) " >&6
14343 gt_save_LIBS="$LIBS"
14344 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14346 /* end confdefs.h. */
14347 #include <CoreFoundation/CFPreferences.h>
14351 CFPreferencesCopyAppValue(NULL, NULL)
14356 if ac_fn_c_try_link "$LINENO"; then :
14357 gt_cv_func_CFPreferencesCopyAppValue=yes
14359 gt_cv_func_CFPreferencesCopyAppValue=no
14361 rm -f core conftest.err conftest.$ac_objext \
14362 conftest$ac_exeext conftest.$ac_ext
14363 LIBS="$gt_save_LIBS"
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14366 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14367 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14369 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14373 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14374 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
14375 $as_echo_n "(cached) " >&6
14377 gt_save_LIBS="$LIBS"
14378 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14380 /* end confdefs.h. */
14381 #include <CoreFoundation/CFLocale.h>
14385 CFLocaleCopyCurrent();
14390 if ac_fn_c_try_link "$LINENO"; then :
14391 gt_cv_func_CFLocaleCopyCurrent=yes
14393 gt_cv_func_CFLocaleCopyCurrent=no
14395 rm -f core conftest.err conftest.$ac_objext \
14396 conftest$ac_exeext conftest.$ac_ext
14397 LIBS="$gt_save_LIBS"
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14400 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14401 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14403 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14407 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14408 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14420 case " $gt_needs " in
14421 *" need-formatstring-macros "*) gt_api_version=3 ;;
14422 *" need-ngettext "*) gt_api_version=2 ;;
14423 *) gt_api_version=1 ;;
14425 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14426 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14428 if test "$USE_NLS" = "yes"; then
14429 gt_use_preinstalled_gnugettext=no
14432 if test $gt_api_version -ge 3; then
14433 gt_revision_test_code='
14434 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14435 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14437 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14440 gt_revision_test_code=
14442 if test $gt_api_version -ge 2; then
14443 gt_expression_test_code=' + * ngettext ("", "", 0)'
14445 gt_expression_test_code=
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14449 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14450 if eval \${$gt_func_gnugettext_libc+:} false; then :
14451 $as_echo_n "(cached) " >&6
14453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14454 /* end confdefs.h. */
14456 #include <libintl.h>
14457 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14458 extern int _nl_msg_cat_cntr;
14459 extern int *_nl_domain_bindings;
14460 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
14462 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14464 $gt_revision_test_code
14470 bindtextdomain ("", "");
14471 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14477 if ac_fn_c_try_link "$LINENO"; then :
14478 eval "$gt_func_gnugettext_libc=yes"
14480 eval "$gt_func_gnugettext_libc=no"
14482 rm -f core conftest.err conftest.$ac_objext \
14483 conftest$ac_exeext conftest.$ac_ext
14485 eval ac_res=\$$gt_func_gnugettext_libc
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14487 $as_echo "$ac_res" >&6; }
14489 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14495 am_save_CPPFLAGS="$CPPFLAGS"
14497 for element in $INCICONV; do
14499 for x in $CPPFLAGS; do
14501 acl_save_prefix="$prefix"
14502 prefix="$acl_final_prefix"
14503 acl_save_exec_prefix="$exec_prefix"
14504 exec_prefix="$acl_final_exec_prefix"
14506 exec_prefix="$acl_save_exec_prefix"
14507 prefix="$acl_save_prefix"
14509 if test "X$x" = "X$element"; then
14514 if test -z "$haveit"; then
14515 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14521 $as_echo_n "checking for iconv... " >&6; }
14522 if ${am_cv_func_iconv+:} false; then :
14523 $as_echo_n "(cached) " >&6
14526 am_cv_func_iconv="no, consider installing GNU libiconv"
14528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529 /* end confdefs.h. */
14531 #include <stdlib.h>
14537 iconv_t cd = iconv_open("","");
14538 iconv(cd,NULL,NULL,NULL,NULL);
14544 if ac_fn_c_try_link "$LINENO"; then :
14545 am_cv_func_iconv=yes
14547 rm -f core conftest.err conftest.$ac_objext \
14548 conftest$ac_exeext conftest.$ac_ext
14549 if test "$am_cv_func_iconv" != yes; then
14550 am_save_LIBS="$LIBS"
14551 LIBS="$LIBS $LIBICONV"
14552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14553 /* end confdefs.h. */
14555 #include <stdlib.h>
14561 iconv_t cd = iconv_open("","");
14562 iconv(cd,NULL,NULL,NULL,NULL);
14568 if ac_fn_c_try_link "$LINENO"; then :
14569 am_cv_lib_iconv=yes
14570 am_cv_func_iconv=yes
14572 rm -f core conftest.err conftest.$ac_objext \
14573 conftest$ac_exeext conftest.$ac_ext
14574 LIBS="$am_save_LIBS"
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14579 $as_echo "$am_cv_func_iconv" >&6; }
14580 if test "$am_cv_func_iconv" = yes; then
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14582 $as_echo_n "checking for working iconv... " >&6; }
14583 if ${am_cv_func_iconv_works+:} false; then :
14584 $as_echo_n "(cached) " >&6
14587 am_save_LIBS="$LIBS"
14588 if test $am_cv_lib_iconv = yes; then
14589 LIBS="$LIBS $LIBICONV"
14591 am_cv_func_iconv_works=no
14592 for ac_iconv_const in '' 'const'; do
14593 if test "$cross_compiling" = yes; then :
14595 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14596 *) am_cv_func_iconv_works="guessing yes" ;;
14599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600 /* end confdefs.h. */
14603 #include <string.h>
14605 #ifndef ICONV_CONST
14606 # define ICONV_CONST $ac_iconv_const
14613 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
14616 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14617 if (cd_utf8_to_88591 != (iconv_t)(-1))
14619 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
14621 ICONV_CONST char *inptr = input;
14622 size_t inbytesleft = strlen (input);
14623 char *outptr = buf;
14624 size_t outbytesleft = sizeof (buf);
14625 size_t res = iconv (cd_utf8_to_88591,
14626 &inptr, &inbytesleft,
14627 &outptr, &outbytesleft);
14630 iconv_close (cd_utf8_to_88591);
14633 /* Test against Solaris 10 bug: Failures are not distinguishable from
14634 successful returns. */
14636 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14637 if (cd_ascii_to_88591 != (iconv_t)(-1))
14639 static ICONV_CONST char input[] = "\263";
14641 ICONV_CONST char *inptr = input;
14642 size_t inbytesleft = strlen (input);
14643 char *outptr = buf;
14644 size_t outbytesleft = sizeof (buf);
14645 size_t res = iconv (cd_ascii_to_88591,
14646 &inptr, &inbytesleft,
14647 &outptr, &outbytesleft);
14650 iconv_close (cd_ascii_to_88591);
14653 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
14655 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14656 if (cd_88591_to_utf8 != (iconv_t)(-1))
14658 static ICONV_CONST char input[] = "\304";
14659 static char buf[2] = { (char)0xDE, (char)0xAD };
14660 ICONV_CONST char *inptr = input;
14661 size_t inbytesleft = 1;
14662 char *outptr = buf;
14663 size_t outbytesleft = 1;
14664 size_t res = iconv (cd_88591_to_utf8,
14665 &inptr, &inbytesleft,
14666 &outptr, &outbytesleft);
14667 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14669 iconv_close (cd_88591_to_utf8);
14672 #if 0 /* This bug could be worked around by the caller. */
14673 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14675 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14676 if (cd_88591_to_utf8 != (iconv_t)(-1))
14678 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14680 ICONV_CONST char *inptr = input;
14681 size_t inbytesleft = strlen (input);
14682 char *outptr = buf;
14683 size_t outbytesleft = sizeof (buf);
14684 size_t res = iconv (cd_88591_to_utf8,
14685 &inptr, &inbytesleft,
14686 &outptr, &outbytesleft);
14689 iconv_close (cd_88591_to_utf8);
14693 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14695 if (/* Try standardized names. */
14696 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
14697 /* Try IRIX, OSF/1 names. */
14698 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
14699 /* Try AIX names. */
14700 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
14701 /* Try HP-UX names. */
14702 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
14710 if ac_fn_c_try_run "$LINENO"; then :
14711 am_cv_func_iconv_works=yes
14713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14714 conftest.$ac_objext conftest.beam conftest.$ac_ext
14717 test "$am_cv_func_iconv_works" = no || break
14719 LIBS="$am_save_LIBS"
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14723 $as_echo "$am_cv_func_iconv_works" >&6; }
14724 case "$am_cv_func_iconv_works" in
14725 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14726 *) am_func_iconv=yes ;;
14729 am_func_iconv=no am_cv_lib_iconv=no
14731 if test "$am_func_iconv" = yes; then
14733 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14736 if test "$am_cv_lib_iconv" = yes; then
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14738 $as_echo_n "checking how to link with libiconv... " >&6; }
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14740 $as_echo "$LIBICONV" >&6; }
14742 CPPFLAGS="$am_save_CPPFLAGS"
14759 acl_save_prefix="$prefix"
14760 prefix="$acl_final_prefix"
14761 acl_save_exec_prefix="$exec_prefix"
14762 exec_prefix="$acl_final_exec_prefix"
14764 eval additional_includedir=\"$includedir\"
14765 eval additional_libdir=\"$libdir\"
14767 exec_prefix="$acl_save_exec_prefix"
14768 prefix="$acl_save_prefix"
14771 # Check whether --with-libintl-prefix was given.
14772 if test "${with_libintl_prefix+set}" = set; then :
14773 withval=$with_libintl_prefix;
14774 if test "X$withval" = "Xno"; then
14777 if test "X$withval" = "X"; then
14779 acl_save_prefix="$prefix"
14780 prefix="$acl_final_prefix"
14781 acl_save_exec_prefix="$exec_prefix"
14782 exec_prefix="$acl_final_exec_prefix"
14784 eval additional_includedir=\"$includedir\"
14785 eval additional_libdir=\"$libdir\"
14787 exec_prefix="$acl_save_exec_prefix"
14788 prefix="$acl_save_prefix"
14791 additional_includedir="$withval/include"
14792 additional_libdir="$withval/$acl_libdirstem"
14793 if test "$acl_libdirstem2" != "$acl_libdirstem" \
14794 && ! test -d "$withval/$acl_libdirstem"; then
14795 additional_libdir="$withval/$acl_libdirstem2"
14809 names_already_handled=
14810 names_next_round='intl '
14811 while test -n "$names_next_round"; do
14812 names_this_round="$names_next_round"
14814 for name in $names_this_round; do
14816 for n in $names_already_handled; do
14817 if test "$n" = "$name"; then
14818 already_handled=yes
14822 if test -z "$already_handled"; then
14823 names_already_handled="$names_already_handled $name"
14824 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
14825 eval value=\"\$HAVE_LIB$uppername\"
14826 if test -n "$value"; then
14827 if test "$value" = yes; then
14828 eval value=\"\$LIB$uppername\"
14829 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14830 eval value=\"\$LTLIB$uppername\"
14831 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14840 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14841 if test -n "$acl_shlibext"; then
14842 shrext=".$acl_shlibext" # typically: shrext=.so
14846 if test $use_additional = yes; then
14847 dir="$additional_libdir"
14848 if test -n "$acl_shlibext"; then
14849 if test -f "$dir/$libname$shrext"; then
14851 found_so="$dir/$libname$shrext"
14853 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14854 ver=`(cd "$dir" && \
14855 for f in "$libname$shrext".*; do echo "$f"; done \
14856 | sed -e "s,^$libname$shrext\\\\.,," \
14857 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14858 | sed 1q ) 2>/dev/null`
14859 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14861 found_so="$dir/$libname$shrext.$ver"
14864 eval library_names=\"$acl_library_names_spec\"
14865 for f in $library_names; do
14866 if test -f "$dir/$f"; then
14875 if test "X$found_dir" = "X"; then
14876 if test -f "$dir/$libname.$acl_libext"; then
14878 found_a="$dir/$libname.$acl_libext"
14881 if test "X$found_dir" != "X"; then
14882 if test -f "$dir/$libname.la"; then
14883 found_la="$dir/$libname.la"
14887 if test "X$found_dir" = "X"; then
14888 for x in $LDFLAGS $LTLIBINTL; do
14890 acl_save_prefix="$prefix"
14891 prefix="$acl_final_prefix"
14892 acl_save_exec_prefix="$exec_prefix"
14893 exec_prefix="$acl_final_exec_prefix"
14895 exec_prefix="$acl_save_exec_prefix"
14896 prefix="$acl_save_prefix"
14900 dir=`echo "X$x" | sed -e 's/^X-L//'`
14901 if test -n "$acl_shlibext"; then
14902 if test -f "$dir/$libname$shrext"; then
14904 found_so="$dir/$libname$shrext"
14906 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14907 ver=`(cd "$dir" && \
14908 for f in "$libname$shrext".*; do echo "$f"; done \
14909 | sed -e "s,^$libname$shrext\\\\.,," \
14910 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14911 | sed 1q ) 2>/dev/null`
14912 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14914 found_so="$dir/$libname$shrext.$ver"
14917 eval library_names=\"$acl_library_names_spec\"
14918 for f in $library_names; do
14919 if test -f "$dir/$f"; then
14928 if test "X$found_dir" = "X"; then
14929 if test -f "$dir/$libname.$acl_libext"; then
14931 found_a="$dir/$libname.$acl_libext"
14934 if test "X$found_dir" != "X"; then
14935 if test -f "$dir/$libname.la"; then
14936 found_la="$dir/$libname.la"
14941 if test "X$found_dir" != "X"; then
14946 if test "X$found_dir" != "X"; then
14947 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14948 if test "X$found_so" != "X"; then
14949 if test "$enable_rpath" = no \
14950 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14951 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14952 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14955 for x in $ltrpathdirs; do
14956 if test "X$x" = "X$found_dir"; then
14961 if test -z "$haveit"; then
14962 ltrpathdirs="$ltrpathdirs $found_dir"
14964 if test "$acl_hardcode_direct" = yes; then
14965 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14967 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14968 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14970 for x in $rpathdirs; do
14971 if test "X$x" = "X$found_dir"; then
14976 if test -z "$haveit"; then
14977 rpathdirs="$rpathdirs $found_dir"
14981 for x in $LDFLAGS $LIBINTL; do
14983 acl_save_prefix="$prefix"
14984 prefix="$acl_final_prefix"
14985 acl_save_exec_prefix="$exec_prefix"
14986 exec_prefix="$acl_final_exec_prefix"
14988 exec_prefix="$acl_save_exec_prefix"
14989 prefix="$acl_save_prefix"
14991 if test "X$x" = "X-L$found_dir"; then
14996 if test -z "$haveit"; then
14997 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14999 if test "$acl_hardcode_minus_L" != no; then
15000 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15002 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15008 if test "X$found_a" != "X"; then
15009 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15011 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15014 additional_includedir=
15015 case "$found_dir" in
15016 */$acl_libdirstem | */$acl_libdirstem/)
15017 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15018 if test "$name" = 'intl'; then
15019 LIBINTL_PREFIX="$basedir"
15021 additional_includedir="$basedir/include"
15023 */$acl_libdirstem2 | */$acl_libdirstem2/)
15024 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15025 if test "$name" = 'intl'; then
15026 LIBINTL_PREFIX="$basedir"
15028 additional_includedir="$basedir/include"
15031 if test "X$additional_includedir" != "X"; then
15032 if test "X$additional_includedir" != "X/usr/include"; then
15034 if test "X$additional_includedir" = "X/usr/local/include"; then
15035 if test -n "$GCC"; then
15037 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15041 if test -z "$haveit"; then
15042 for x in $CPPFLAGS $INCINTL; do
15044 acl_save_prefix="$prefix"
15045 prefix="$acl_final_prefix"
15046 acl_save_exec_prefix="$exec_prefix"
15047 exec_prefix="$acl_final_exec_prefix"
15049 exec_prefix="$acl_save_exec_prefix"
15050 prefix="$acl_save_prefix"
15052 if test "X$x" = "X-I$additional_includedir"; then
15057 if test -z "$haveit"; then
15058 if test -d "$additional_includedir"; then
15059 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15065 if test -n "$found_la"; then
15066 save_libdir="$libdir"
15067 case "$found_la" in
15068 */* | *\\*) . "$found_la" ;;
15069 *) . "./$found_la" ;;
15071 libdir="$save_libdir"
15072 for dep in $dependency_libs; do
15075 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15076 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15077 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15079 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15080 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15081 if test -n "$GCC"; then
15083 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15087 if test -z "$haveit"; then
15089 for x in $LDFLAGS $LIBINTL; do
15091 acl_save_prefix="$prefix"
15092 prefix="$acl_final_prefix"
15093 acl_save_exec_prefix="$exec_prefix"
15094 exec_prefix="$acl_final_exec_prefix"
15096 exec_prefix="$acl_save_exec_prefix"
15097 prefix="$acl_save_prefix"
15099 if test "X$x" = "X-L$additional_libdir"; then
15104 if test -z "$haveit"; then
15105 if test -d "$additional_libdir"; then
15106 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15110 for x in $LDFLAGS $LTLIBINTL; do
15112 acl_save_prefix="$prefix"
15113 prefix="$acl_final_prefix"
15114 acl_save_exec_prefix="$exec_prefix"
15115 exec_prefix="$acl_final_exec_prefix"
15117 exec_prefix="$acl_save_exec_prefix"
15118 prefix="$acl_save_prefix"
15120 if test "X$x" = "X-L$additional_libdir"; then
15125 if test -z "$haveit"; then
15126 if test -d "$additional_libdir"; then
15127 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15134 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15135 if test "$enable_rpath" != no; then
15137 for x in $rpathdirs; do
15138 if test "X$x" = "X$dir"; then
15143 if test -z "$haveit"; then
15144 rpathdirs="$rpathdirs $dir"
15147 for x in $ltrpathdirs; do
15148 if test "X$x" = "X$dir"; then
15153 if test -z "$haveit"; then
15154 ltrpathdirs="$ltrpathdirs $dir"
15159 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15162 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15165 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15166 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15172 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15173 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15179 if test "X$rpathdirs" != "X"; then
15180 if test -n "$acl_hardcode_libdir_separator"; then
15182 for found_dir in $rpathdirs; do
15183 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15185 acl_save_libdir="$libdir"
15187 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15188 libdir="$acl_save_libdir"
15189 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15191 for found_dir in $rpathdirs; do
15192 acl_save_libdir="$libdir"
15193 libdir="$found_dir"
15194 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15195 libdir="$acl_save_libdir"
15196 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15200 if test "X$ltrpathdirs" != "X"; then
15201 for found_dir in $ltrpathdirs; do
15202 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15212 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
15213 if eval \${$gt_func_gnugettext_libintl+:} false; then :
15214 $as_echo_n "(cached) " >&6
15216 gt_save_CPPFLAGS="$CPPFLAGS"
15217 CPPFLAGS="$CPPFLAGS $INCINTL"
15218 gt_save_LIBS="$LIBS"
15219 LIBS="$LIBS $LIBINTL"
15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221 /* end confdefs.h. */
15223 #include <libintl.h>
15224 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15225 extern int _nl_msg_cat_cntr;
15230 const char *_nl_expand_alias (const char *);
15231 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
15233 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
15235 $gt_revision_test_code
15241 bindtextdomain ("", "");
15242 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
15248 if ac_fn_c_try_link "$LINENO"; then :
15249 eval "$gt_func_gnugettext_libintl=yes"
15251 eval "$gt_func_gnugettext_libintl=no"
15253 rm -f core conftest.err conftest.$ac_objext \
15254 conftest$ac_exeext conftest.$ac_ext
15255 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15256 LIBS="$LIBS $LIBICONV"
15257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15258 /* end confdefs.h. */
15260 #include <libintl.h>
15261 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15262 extern int _nl_msg_cat_cntr;
15267 const char *_nl_expand_alias (const char *);
15268 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
15270 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
15272 $gt_revision_test_code
15278 bindtextdomain ("", "");
15279 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
15285 if ac_fn_c_try_link "$LINENO"; then :
15286 LIBINTL="$LIBINTL $LIBICONV"
15287 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15288 eval "$gt_func_gnugettext_libintl=yes"
15291 rm -f core conftest.err conftest.$ac_objext \
15292 conftest$ac_exeext conftest.$ac_ext
15294 CPPFLAGS="$gt_save_CPPFLAGS"
15295 LIBS="$gt_save_LIBS"
15297 eval ac_res=\$$gt_func_gnugettext_libintl
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15299 $as_echo "$ac_res" >&6; }
15302 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15303 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15304 && test "$PACKAGE" != gettext-runtime \
15305 && test "$PACKAGE" != gettext-tools; }; then
15306 gt_use_preinstalled_gnugettext=yes
15315 if test -n "$INTL_MACOSX_LIBS"; then
15316 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15317 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15318 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15319 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15323 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15324 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15326 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15334 $as_echo_n "checking whether to use NLS... " >&6; }
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15336 $as_echo "$USE_NLS" >&6; }
15337 if test "$USE_NLS" = "yes"; then
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15339 $as_echo_n "checking where the gettext function comes from... " >&6; }
15340 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15341 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15342 gt_source="external libintl"
15347 gt_source="included intl directory"
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15350 $as_echo "$gt_source" >&6; }
15353 if test "$USE_NLS" = "yes"; then
15355 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15356 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15358 $as_echo_n "checking how to link with libintl... " >&6; }
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15360 $as_echo "$LIBINTL" >&6; }
15362 for element in $INCINTL; do
15364 for x in $CPPFLAGS; do
15366 acl_save_prefix="$prefix"
15367 prefix="$acl_final_prefix"
15368 acl_save_exec_prefix="$exec_prefix"
15369 exec_prefix="$acl_final_exec_prefix"
15371 exec_prefix="$acl_save_exec_prefix"
15372 prefix="$acl_save_prefix"
15374 if test "X$x" = "X$element"; then
15379 if test -z "$haveit"; then
15380 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15387 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15390 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15399 INTLLIBS="$LIBINTL"
15408 if test "$os_win32" = "yes"; then
15409 # Extract the first word of "lib.exe", so it can be a program name with args.
15410 set dummy lib.exe; ac_word=$2
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15412 $as_echo_n "checking for $ac_word... " >&6; }
15413 if ${ac_cv_prog_ms_librarian+:} false; then :
15414 $as_echo_n "(cached) " >&6
15416 if test -n "$ms_librarian"; then
15417 ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
15419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15420 for as_dir in $PATH
15423 test -z "$as_dir" && as_dir=.
15424 for ac_exec_ext in '' $ac_executable_extensions; do
15425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15426 ac_cv_prog_ms_librarian="yes"
15427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15434 test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
15437 ms_librarian=$ac_cv_prog_ms_librarian
15438 if test -n "$ms_librarian"; then
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5
15440 $as_echo "$ms_librarian" >&6; }
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15443 $as_echo "no" >&6; }
15448 if test x$ms_librarian = xyes; then
15449 MS_LIB_AVAILABLE_TRUE=
15450 MS_LIB_AVAILABLE_FALSE='#'
15452 MS_LIB_AVAILABLE_TRUE='#'
15453 MS_LIB_AVAILABLE_FALSE=
15457 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
15458 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
15465 WARNING_CPP_DIRECTIVE="no"
15466 if test "x$GCC" = "xyes"; then
15467 WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
15468 -Wmissing-prototypes -Wmissing-declarations \
15469 -Wnested-externs -fno-strict-aliasing"
15470 WARNING_CPP_DIRECTIVE="yes"
15471 elif test "x$SUNCC" = "xyes"; then
15472 WARN_CFLAGS="-v -fd"
15473 WARNING_CPP_DIRECTIVE="yes"
15475 if test "x$WARNING_CPP_DIRECTIVE" = "xyes"; then
15477 cat >>confdefs.h <<_ACEOF
15478 #define HAVE_WARNING_CPP_DIRECTIVE 1
15486 # Put a plausible default for CC_FOR_BUILD in Makefile.
15487 if test -z "$CC_FOR_BUILD"; then
15488 if test "x$cross_compiling" = "xno"; then
15489 CC_FOR_BUILD='$(CC)'
15495 # Also set EXEEXT_FOR_BUILD.
15496 if test "x$cross_compiling" = "xno"; then
15497 EXEEXT_FOR_BUILD='$(EXEEXT)'
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
15500 $as_echo_n "checking for build system executable suffix... " >&6; }
15501 if ${bfd_cv_build_exeext+:} false; then :
15502 $as_echo_n "(cached) " >&6
15505 echo 'int main () { return 0; }' > conftest.c
15506 bfd_cv_build_exeext=
15507 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
15508 for file in conftest.*; do
15510 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
15511 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
15515 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
15518 $as_echo "$bfd_cv_build_exeext" >&6; }
15519 EXEEXT_FOR_BUILD=""
15520 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
15524 if test $cross_compiling = yes; then
15525 CROSS_COMPILING_TRUE=
15526 CROSS_COMPILING_FALSE='#'
15528 CROSS_COMPILING_TRUE='#'
15529 CROSS_COMPILING_FALSE=
15532 if test "$enable_shared" = "yes"; then
15533 ENABLE_SHARED_TRUE=
15534 ENABLE_SHARED_FALSE='#'
15536 ENABLE_SHARED_TRUE='#'
15537 ENABLE_SHARED_FALSE=
15543 # Check whether --with-arch was given.
15544 if test "${with_arch+set}" = set; then :
15545 withval=$with_arch; arch="$withval"
15551 if test "x$arch" != xauto; then
15553 cat >>confdefs.h <<_ACEOF
15554 #define FC_ARCHITECTURE "$arch"
15561 # Checks for header files.
15562 ac_header_dirent=no
15563 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15564 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15566 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15567 if eval \${$as_ac_Header+:} false; then :
15568 $as_echo_n "(cached) " >&6
15570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15571 /* end confdefs.h. */
15572 #include <sys/types.h>
15584 if ac_fn_c_try_compile "$LINENO"; then :
15585 eval "$as_ac_Header=yes"
15587 eval "$as_ac_Header=no"
15589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15591 eval ac_res=\$$as_ac_Header
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15593 $as_echo "$ac_res" >&6; }
15594 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15595 cat >>confdefs.h <<_ACEOF
15596 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15599 ac_header_dirent=$ac_hdr; break
15603 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15604 if test $ac_header_dirent = dirent.h; then
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15606 $as_echo_n "checking for library containing opendir... " >&6; }
15607 if ${ac_cv_search_opendir+:} false; then :
15608 $as_echo_n "(cached) " >&6
15610 ac_func_search_save_LIBS=$LIBS
15611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15612 /* end confdefs.h. */
15614 /* Override any GCC internal prototype to avoid an error.
15615 Use char because int might match the return type of a GCC
15616 builtin and then its argument prototype would still apply. */
15629 for ac_lib in '' dir; do
15630 if test -z "$ac_lib"; then
15631 ac_res="none required"
15634 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15636 if ac_fn_c_try_link "$LINENO"; then :
15637 ac_cv_search_opendir=$ac_res
15639 rm -f core conftest.err conftest.$ac_objext \
15641 if ${ac_cv_search_opendir+:} false; then :
15645 if ${ac_cv_search_opendir+:} false; then :
15648 ac_cv_search_opendir=no
15650 rm conftest.$ac_ext
15651 LIBS=$ac_func_search_save_LIBS
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15654 $as_echo "$ac_cv_search_opendir" >&6; }
15655 ac_res=$ac_cv_search_opendir
15656 if test "$ac_res" != no; then :
15657 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15663 $as_echo_n "checking for library containing opendir... " >&6; }
15664 if ${ac_cv_search_opendir+:} false; then :
15665 $as_echo_n "(cached) " >&6
15667 ac_func_search_save_LIBS=$LIBS
15668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15669 /* end confdefs.h. */
15671 /* Override any GCC internal prototype to avoid an error.
15672 Use char because int might match the return type of a GCC
15673 builtin and then its argument prototype would still apply. */
15686 for ac_lib in '' x; do
15687 if test -z "$ac_lib"; then
15688 ac_res="none required"
15691 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15693 if ac_fn_c_try_link "$LINENO"; then :
15694 ac_cv_search_opendir=$ac_res
15696 rm -f core conftest.err conftest.$ac_objext \
15698 if ${ac_cv_search_opendir+:} false; then :
15702 if ${ac_cv_search_opendir+:} false; then :
15705 ac_cv_search_opendir=no
15707 rm conftest.$ac_ext
15708 LIBS=$ac_func_search_save_LIBS
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15711 $as_echo "$ac_cv_search_opendir" >&6; }
15712 ac_res=$ac_cv_search_opendir
15713 if test "$ac_res" != no; then :
15714 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15721 $as_echo_n "checking for ANSI C header files... " >&6; }
15722 if ${ac_cv_header_stdc+:} false; then :
15723 $as_echo_n "(cached) " >&6
15725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15726 /* end confdefs.h. */
15727 #include <stdlib.h>
15728 #include <stdarg.h>
15729 #include <string.h>
15740 if ac_fn_c_try_compile "$LINENO"; then :
15741 ac_cv_header_stdc=yes
15743 ac_cv_header_stdc=no
15745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15747 if test $ac_cv_header_stdc = yes; then
15748 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15750 /* end confdefs.h. */
15751 #include <string.h>
15754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15755 $EGREP "memchr" >/dev/null 2>&1; then :
15758 ac_cv_header_stdc=no
15764 if test $ac_cv_header_stdc = yes; then
15765 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15767 /* end confdefs.h. */
15768 #include <stdlib.h>
15771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15772 $EGREP "free" >/dev/null 2>&1; then :
15775 ac_cv_header_stdc=no
15781 if test $ac_cv_header_stdc = yes; then
15782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15783 if test "$cross_compiling" = yes; then :
15786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15787 /* end confdefs.h. */
15789 #include <stdlib.h>
15790 #if ((' ' & 0x0FF) == 0x020)
15791 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15792 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15794 # define ISLOWER(c) \
15795 (('a' <= (c) && (c) <= 'i') \
15796 || ('j' <= (c) && (c) <= 'r') \
15797 || ('s' <= (c) && (c) <= 'z'))
15798 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15801 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15806 for (i = 0; i < 256; i++)
15807 if (XOR (islower (i), ISLOWER (i))
15808 || toupper (i) != TOUPPER (i))
15813 if ac_fn_c_try_run "$LINENO"; then :
15816 ac_cv_header_stdc=no
15818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15819 conftest.$ac_objext conftest.beam conftest.$ac_ext
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15825 $as_echo "$ac_cv_header_stdc" >&6; }
15826 if test $ac_cv_header_stdc = yes; then
15828 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15832 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
15834 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15835 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15836 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15837 cat >>confdefs.h <<_ACEOF
15838 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15845 # ------ AX CREATE STDINT H -------------------------------------
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
15847 $as_echo_n "checking for stdint types... " >&6; }
15848 ac_stdint_h=`echo src/fcstdint.h`
15849 # try to shortcircuit - if the default include path of the compiler
15850 # can find a "stdint.h" header then we assume that all compilers can.
15851 if ${ac_cv_header_stdint_t+:} false; then :
15852 $as_echo_n "(cached) " >&6
15855 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
15856 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
15857 old_CFLAGS="$CFLAGS" ; CFLAGS=""
15858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15859 /* end confdefs.h. */
15860 #include <stdint.h>
15864 int_least32_t v = 0;
15869 if ac_fn_c_try_compile "$LINENO"; then :
15870 ac_cv_stdint_result="(assuming C99 compatible system)"
15871 ac_cv_header_stdint_t="stdint.h";
15873 ac_cv_header_stdint_t=""
15875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15876 if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
15878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h. */
15880 #include <stdint.h>
15884 int_least32_t v = 0;
15889 if ac_fn_c_try_compile "$LINENO"; then :
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5
15891 $as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;}
15893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15895 CXXFLAGS="$old_CXXFLAGS"
15896 CPPFLAGS="$old_CPPFLAGS"
15897 CFLAGS="$old_CFLAGS"
15901 v="... $ac_cv_header_stdint_h"
15902 if test "$ac_stdint_h" = "stdint.h" ; then
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
15904 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
15905 elif test "$ac_stdint_h" = "inttypes.h" ; then
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
15907 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
15908 elif test "_$ac_cv_header_stdint_t" = "_" ; then
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
15910 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
15912 ac_cv_header_stdint="$ac_cv_header_stdint_t"
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
15914 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
15917 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
15920 inttype_headers=`echo | sed -e 's/,/ /g'`
15922 ac_cv_stdint_result="(no helpful system typedefs seen)"
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
15925 $as_echo_n "checking for stdint uintptr_t... " >&6; }
15926 if ${ac_cv_header_stdint_x+:} false; then :
15927 $as_echo_n "(cached) " >&6
15930 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
15932 $as_echo "(..)" >&6; }
15933 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers
15935 unset ac_cv_type_uintptr_t
15936 unset ac_cv_type_uint64_t
15937 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
15939 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15940 ac_cv_header_stdint_x=$i
15945 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
15947 if test "x$ac_cv_type_uint64_t" = xyes; then :
15953 ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
15957 $as_echo_n "checking for stdint uintptr_t... " >&6; }
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
15961 $as_echo "$ac_cv_header_stdint_x" >&6; }
15964 if test "_$ac_cv_header_stdint_x" = "_" ; then
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
15967 $as_echo_n "checking for stdint uint32_t... " >&6; }
15968 if ${ac_cv_header_stdint_o+:} false; then :
15969 $as_echo_n "(cached) " >&6
15972 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
15974 $as_echo "(..)" >&6; }
15975 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers
15977 unset ac_cv_type_uint32_t
15978 unset ac_cv_type_uint64_t
15979 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
15981 if test "x$ac_cv_type_uint32_t" = xyes; then :
15982 ac_cv_header_stdint_o=$i
15987 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
15989 if test "x$ac_cv_type_uint64_t" = xyes; then :
15995 ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
16000 $as_echo_n "checking for stdint uint32_t... " >&6; }
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
16004 $as_echo "$ac_cv_header_stdint_o" >&6; }
16008 if test "_$ac_cv_header_stdint_x" = "_" ; then
16009 if test "_$ac_cv_header_stdint_o" = "_" ; then
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
16012 $as_echo_n "checking for stdint u_int32_t... " >&6; }
16013 if ${ac_cv_header_stdint_u+:} false; then :
16014 $as_echo_n "(cached) " >&6
16017 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
16019 $as_echo "(..)" >&6; }
16020 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
16021 unset ac_cv_type_u_int32_t
16022 unset ac_cv_type_u_int64_t
16023 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
16025 if test "x$ac_cv_type_u_int32_t" = xyes; then :
16026 ac_cv_header_stdint_u=$i
16031 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
16033 if test "x$ac_cv_type_u_int64_t" = xyes; then :
16039 ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
16044 $as_echo_n "checking for stdint u_int32_t... " >&6; }
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
16048 $as_echo "$ac_cv_header_stdint_u" >&6; }
16052 if test "_$ac_cv_header_stdint_x" = "_" ; then
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
16054 $as_echo_n "checking for stdint datatype model... " >&6; }
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
16056 $as_echo "(..)" >&6; }
16058 # The cast to long int works around a bug in the HP C Compiler
16059 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16060 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16061 # This bug is HP SR number 8606223364.
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16063 $as_echo_n "checking size of char... " >&6; }
16064 if ${ac_cv_sizeof_char+:} false; then :
16065 $as_echo_n "(cached) " >&6
16067 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16070 if test "$ac_cv_type_char" = yes; then
16071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16073 as_fn_error 77 "cannot compute sizeof (char)
16074 See \`config.log' for more details" "$LINENO" 5; }
16076 ac_cv_sizeof_char=0
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16082 $as_echo "$ac_cv_sizeof_char" >&6; }
16086 cat >>confdefs.h <<_ACEOF
16087 #define SIZEOF_CHAR $ac_cv_sizeof_char
16091 # The cast to long int works around a bug in the HP C Compiler
16092 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16093 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16094 # This bug is HP SR number 8606223364.
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16096 $as_echo_n "checking size of short... " >&6; }
16097 if ${ac_cv_sizeof_short+:} false; then :
16098 $as_echo_n "(cached) " >&6
16100 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16103 if test "$ac_cv_type_short" = yes; then
16104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16106 as_fn_error 77 "cannot compute sizeof (short)
16107 See \`config.log' for more details" "$LINENO" 5; }
16109 ac_cv_sizeof_short=0
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16115 $as_echo "$ac_cv_sizeof_short" >&6; }
16119 cat >>confdefs.h <<_ACEOF
16120 #define SIZEOF_SHORT $ac_cv_sizeof_short
16124 # The cast to long int works around a bug in the HP C Compiler
16125 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16126 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16127 # This bug is HP SR number 8606223364.
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16129 $as_echo_n "checking size of int... " >&6; }
16130 if ${ac_cv_sizeof_int+:} false; then :
16131 $as_echo_n "(cached) " >&6
16133 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16136 if test "$ac_cv_type_int" = yes; then
16137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16139 as_fn_error 77 "cannot compute sizeof (int)
16140 See \`config.log' for more details" "$LINENO" 5; }
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16148 $as_echo "$ac_cv_sizeof_int" >&6; }
16152 cat >>confdefs.h <<_ACEOF
16153 #define SIZEOF_INT $ac_cv_sizeof_int
16157 # The cast to long int works around a bug in the HP C Compiler
16158 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16159 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16160 # This bug is HP SR number 8606223364.
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16162 $as_echo_n "checking size of long... " >&6; }
16163 if ${ac_cv_sizeof_long+:} false; then :
16164 $as_echo_n "(cached) " >&6
16166 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16169 if test "$ac_cv_type_long" = yes; then
16170 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16172 as_fn_error 77 "cannot compute sizeof (long)
16173 See \`config.log' for more details" "$LINENO" 5; }
16175 ac_cv_sizeof_long=0
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16181 $as_echo "$ac_cv_sizeof_long" >&6; }
16185 cat >>confdefs.h <<_ACEOF
16186 #define SIZEOF_LONG $ac_cv_sizeof_long
16190 # The cast to long int works around a bug in the HP C Compiler
16191 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16192 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16193 # This bug is HP SR number 8606223364.
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
16195 $as_echo_n "checking size of void*... " >&6; }
16196 if ${ac_cv_sizeof_voidp+:} false; then :
16197 $as_echo_n "(cached) " >&6
16199 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
16202 if test "$ac_cv_type_voidp" = yes; then
16203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16205 as_fn_error 77 "cannot compute sizeof (void*)
16206 See \`config.log' for more details" "$LINENO" 5; }
16208 ac_cv_sizeof_voidp=0
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
16214 $as_echo "$ac_cv_sizeof_voidp" >&6; }
16218 cat >>confdefs.h <<_ACEOF
16219 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
16223 ac_cv_char_data_model=""
16224 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
16225 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
16226 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
16227 ac_cv_long_data_model=""
16228 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
16229 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
16230 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
16232 $as_echo_n "checking data model... " >&6; }
16233 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
16234 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
16235 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
16236 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
16237 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
16238 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
16239 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
16240 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
16241 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
16242 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
16243 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
16244 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
16245 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
16246 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
16247 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
16248 222/*|333/*|444/*|666/*|888/*) :
16249 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
16250 *) ac_cv_data_model="none" ; n="very unusual model" ;;
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
16253 $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
16257 if test "_$ac_cv_header_stdint_x" != "_" ; then
16258 ac_cv_header_stdint="$ac_cv_header_stdint_x"
16259 elif test "_$ac_cv_header_stdint_o" != "_" ; then
16260 ac_cv_header_stdint="$ac_cv_header_stdint_o"
16261 elif test "_$ac_cv_header_stdint_u" != "_" ; then
16262 ac_cv_header_stdint="$ac_cv_header_stdint_u"
16264 ac_cv_header_stdint="stddef.h"
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
16268 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
16270 $as_echo "($ac_cv_header_stdint)" >&6; }
16271 unset ac_cv_type_int_least32_t
16272 unset ac_cv_type_int_fast32_t
16273 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
16275 if test "x$ac_cv_type_int_least32_t" = xyes; then :
16279 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
16281 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
16285 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
16287 if test "x$ac_cv_type_intmax_t" = xyes; then :
16292 fi # shortcircut to system "stdint.h"
16293 # ------------------ PREPARE VARIABLES ------------------------------
16294 if test "$GCC" = "yes" ; then
16295 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
16297 ac_cv_stdint_message="using $CC"
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
16301 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
16303 # ----------------- DONE inttypes.h checks START header -------------
16304 ac_config_commands="$ac_config_commands $ac_stdint_h"
16308 # Checks for typedefs, structures, and compiler characteristics.
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16310 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16311 if ${ac_cv_c_const+:} false; then :
16312 $as_echo_n "(cached) " >&6
16314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16315 /* end confdefs.h. */
16321 #ifndef __cplusplus
16322 /* Ultrix mips cc rejects this sort of thing. */
16323 typedef int charset[2];
16324 const charset cs = { 0, 0 };
16325 /* SunOS 4.1.1 cc rejects this. */
16326 char const *const *pcpcc;
16328 /* NEC SVR4.0.2 mips cc rejects this. */
16329 struct point {int x, y;};
16330 static struct point const zero = {0,0};
16331 /* AIX XL C 1.02.0.0 rejects this.
16332 It does not let you subtract one const X* pointer from another in
16333 an arm of an if-expression whose if-part is not a constant
16335 const char *g = "string";
16336 pcpcc = &g + (g ? g-g : 0);
16337 /* HPUX 7.0 cc rejects these. */
16339 ppc = (char**) pcpcc;
16340 pcpcc = (char const *const *) ppc;
16341 { /* SCO 3.2v4 cc rejects this sort of thing. */
16344 char const *s = 0 ? (char *) 0 : (char const *) 0;
16349 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16350 int x[] = {25, 17};
16351 const int *foo = &x[0];
16354 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16355 typedef const int *iptr;
16359 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16360 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16361 struct s { int j; const int *ap[3]; } bx;
16362 struct s *b = &bx; b->j = 5;
16364 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16365 const int foo = 10;
16366 if (!foo) return 0;
16368 return !cs[0] && !zero.x;
16375 if ac_fn_c_try_compile "$LINENO"; then :
16380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16383 $as_echo "$ac_cv_c_const" >&6; }
16384 if test $ac_cv_c_const = no; then
16386 $as_echo "#define const /**/" >>confdefs.h
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16391 $as_echo_n "checking for inline... " >&6; }
16392 if ${ac_cv_c_inline+:} false; then :
16393 $as_echo_n "(cached) " >&6
16396 for ac_kw in inline __inline__ __inline; do
16397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16398 /* end confdefs.h. */
16399 #ifndef __cplusplus
16401 static $ac_kw foo_t static_foo () {return 0; }
16402 $ac_kw foo_t foo () {return 0; }
16406 if ac_fn_c_try_compile "$LINENO"; then :
16407 ac_cv_c_inline=$ac_kw
16409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16410 test "$ac_cv_c_inline" != no && break
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16415 $as_echo "$ac_cv_c_inline" >&6; }
16417 case $ac_cv_c_inline in
16420 case $ac_cv_c_inline in
16422 *) ac_val=$ac_cv_c_inline;;
16424 cat >>confdefs.h <<_ACEOF
16425 #ifndef __cplusplus
16426 #define inline $ac_val
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
16434 $as_echo_n "checking for flexible array members... " >&6; }
16435 if ${ac_cv_c_flexmember+:} false; then :
16436 $as_echo_n "(cached) " >&6
16438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16439 /* end confdefs.h. */
16440 #include <stdlib.h>
16442 #include <stddef.h>
16443 struct s { int n; double d[]; };
16447 int m = getchar ();
16448 struct s *p = malloc (offsetof (struct s, d)
16449 + m * sizeof (double));
16451 return p->d != (double *) NULL;
16456 if ac_fn_c_try_compile "$LINENO"; then :
16457 ac_cv_c_flexmember=yes
16459 ac_cv_c_flexmember=no
16461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
16464 $as_echo "$ac_cv_c_flexmember" >&6; }
16465 if test $ac_cv_c_flexmember = yes; then
16467 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
16470 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
16474 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16475 if test "x$ac_cv_type_pid_t" = xyes; then :
16479 cat >>confdefs.h <<_ACEOF
16486 # Checks for library functions.
16487 for ac_func in vprintf
16489 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
16490 if test "x$ac_cv_func_vprintf" = xyes; then :
16491 cat >>confdefs.h <<_ACEOF
16492 #define HAVE_VPRINTF 1
16495 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
16496 if test "x$ac_cv_func__doprnt" = xyes; then :
16498 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
16509 for ac_header in $ac_header_list
16511 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16512 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16514 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16515 cat >>confdefs.h <<_ACEOF
16516 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16530 for ac_func in getpagesize
16532 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16533 if test "x$ac_cv_func_getpagesize" = xyes; then :
16534 cat >>confdefs.h <<_ACEOF
16535 #define HAVE_GETPAGESIZE 1
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16542 $as_echo_n "checking for working mmap... " >&6; }
16543 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
16544 $as_echo_n "(cached) " >&6
16546 if test "$cross_compiling" = yes; then :
16547 ac_cv_func_mmap_fixed_mapped=no
16549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16550 /* end confdefs.h. */
16551 $ac_includes_default
16552 /* malloc might have been renamed as rpl_malloc. */
16555 /* Thanks to Mike Haertel and Jim Avera for this test.
16556 Here is a matrix of mmap possibilities:
16557 mmap private not fixed
16558 mmap private fixed at somewhere currently unmapped
16559 mmap private fixed at somewhere already mapped
16560 mmap shared not fixed
16561 mmap shared fixed at somewhere currently unmapped
16562 mmap shared fixed at somewhere already mapped
16563 For private mappings, we should verify that changes cannot be read()
16564 back from the file, nor mmap's back from the file at a different
16565 address. (There have been systems where private was not correctly
16566 implemented like the infamous i386 svr4.0, and systems where the
16567 VM page cache was not coherent with the file system buffer cache
16568 like early versions of FreeBSD and possibly contemporary NetBSD.)
16569 For shared mappings, we should conversely verify that changes get
16570 propagated back to all the places they're supposed to be.
16572 Grep wants private fixed already mapped.
16573 The main things grep needs to know about mmap are:
16574 * does it exist and is it safe to write into the mmap'd area
16575 * how to use it (BSD variants) */
16578 #include <sys/mman.h>
16580 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16584 /* This mess was copied from the GNU getpagesize.h. */
16585 #ifndef HAVE_GETPAGESIZE
16586 # ifdef _SC_PAGESIZE
16587 # define getpagesize() sysconf(_SC_PAGESIZE)
16588 # else /* no _SC_PAGESIZE */
16589 # ifdef HAVE_SYS_PARAM_H
16590 # include <sys/param.h>
16591 # ifdef EXEC_PAGESIZE
16592 # define getpagesize() EXEC_PAGESIZE
16593 # else /* no EXEC_PAGESIZE */
16595 # define getpagesize() NBPG * CLSIZE
16598 # endif /* no CLSIZE */
16599 # else /* no NBPG */
16601 # define getpagesize() NBPC
16602 # else /* no NBPC */
16604 # define getpagesize() PAGESIZE
16605 # endif /* PAGESIZE */
16606 # endif /* no NBPC */
16607 # endif /* no NBPG */
16608 # endif /* no EXEC_PAGESIZE */
16609 # else /* no HAVE_SYS_PARAM_H */
16610 # define getpagesize() 8192 /* punt totally */
16611 # endif /* no HAVE_SYS_PARAM_H */
16612 # endif /* no _SC_PAGESIZE */
16614 #endif /* no HAVE_GETPAGESIZE */
16619 char *data, *data2, *data3;
16620 const char *cdata2;
16624 pagesize = getpagesize ();
16626 /* First, make a file with some known garbage in it. */
16627 data = (char *) malloc (pagesize);
16630 for (i = 0; i < pagesize; ++i)
16631 *(data + i) = rand ();
16633 fd = creat ("conftest.mmap", 0600);
16636 if (write (fd, data, pagesize) != pagesize)
16640 /* Next, check that the tail of a page is zero-filled. File must have
16641 non-zero length, otherwise we risk SIGBUS for entire page. */
16642 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16646 if (write (fd2, cdata2, 1) != 1)
16648 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16649 if (data2 == MAP_FAILED)
16651 for (i = 0; i < pagesize; ++i)
16655 if (munmap (data2, pagesize))
16658 /* Next, try to mmap the file at a fixed address which already has
16659 something else allocated at it. If we can, also make sure that
16660 we see the same garbage. */
16661 fd = open ("conftest.mmap", O_RDWR);
16664 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16665 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16667 for (i = 0; i < pagesize; ++i)
16668 if (*(data + i) != *(data2 + i))
16671 /* Finally, make sure that changes to the mapped area do not
16672 percolate back to the file as seen by read(). (This is a bug on
16673 some variants of i386 svr4.0.) */
16674 for (i = 0; i < pagesize; ++i)
16675 *(data2 + i) = *(data2 + i) + 1;
16676 data3 = (char *) malloc (pagesize);
16679 if (read (fd, data3, pagesize) != pagesize)
16681 for (i = 0; i < pagesize; ++i)
16682 if (*(data + i) != *(data3 + i))
16688 if ac_fn_c_try_run "$LINENO"; then :
16689 ac_cv_func_mmap_fixed_mapped=yes
16691 ac_cv_func_mmap_fixed_mapped=no
16693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16694 conftest.$ac_objext conftest.beam conftest.$ac_ext
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16699 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16700 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16702 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16705 rm -f conftest.mmap conftest.txt
16707 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
16709 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16710 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16711 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16712 cat >>confdefs.h <<_ACEOF
16713 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise in fcntl.h" >&5
16721 $as_echo_n "checking for posix_fadvise in fcntl.h... " >&6; }
16722 if ${ac_cv_func_posix_fadvise+:} false; then :
16723 $as_echo_n "(cached) " >&6
16725 symbol="[^a-zA-Z_0-9]posix_fadvise[^a-zA-Z_0-9]"
16727 for ac_header in fcntl.h ; do
16728 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%' `
16729 if test $ac_found != "yes" ; then
16730 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732 /* end confdefs.h. */
16733 #include <$ac_header>
16736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16737 $EGREP "$symbol" >/dev/null 2>&1; then :
16738 ac_found="$ac_header"
16745 if test "$ac_found" != "no" ; then
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_found" >&5
16747 $as_echo "$ac_found" >&6; }
16748 fc_func_posix_fadvise=1
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16751 $as_echo "no" >&6; }
16752 fc_func_posix_fadvise=0
16758 cat >>confdefs.h <<_ACEOF
16759 #define HAVE_POSIX_FADVISE $fc_func_posix_fadvise
16764 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "#include <sys/stat.h>
16766 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
16768 cat >>confdefs.h <<_ACEOF
16769 #define HAVE_STRUCT_STAT_ST_MTIM 1
16777 if test "x$ac_cv_func_fstatvfs" = "xyes"; then
16778 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "#include <sys/statvfs.h>
16780 if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes; then :
16782 cat >>confdefs.h <<_ACEOF
16783 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
16788 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "#include <sys/statvfs.h>
16790 if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes; then :
16792 cat >>confdefs.h <<_ACEOF
16793 #define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1
16800 if test "x$ac_cv_func_fstatfs" = "xyes"; then
16801 ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" "
16802 #ifdef HAVE_SYS_VFS_H
16803 #include <sys/vfs.h>
16805 #ifdef HAVE_SYS_STATFS_H
16806 #include <sys/statfs.h>
16808 #ifdef HAVE_SYS_PARAM_H
16809 #include <sys/param.h>
16811 #ifdef HAVE_SYS_MOUNT_H
16812 #include <sys/mount.h>
16815 if test "x$ac_cv_member_struct_statfs_f_flags" = xyes; then :
16817 cat >>confdefs.h <<_ACEOF
16818 #define HAVE_STRUCT_STATFS_F_FLAGS 1
16823 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "
16824 #ifdef HAVE_SYS_VFS_H
16825 #include <sys/vfs.h>
16827 #ifdef HAVE_SYS_STATFS_H
16828 #include <sys/statfs.h>
16830 #ifdef HAVE_SYS_PARAM_H
16831 #include <sys/param.h>
16833 #ifdef HAVE_SYS_MOUNT_H
16834 #include <sys/mount.h>
16837 if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then :
16839 cat >>confdefs.h <<_ACEOF
16840 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
16847 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "#include <dirent.h>
16849 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
16851 cat >>confdefs.h <<_ACEOF
16852 #define HAVE_STRUCT_DIRENT_D_TYPE 1
16859 # Check the argument type of the gperf hash/lookup function
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking The type of len parameter of gperf hash/lookup function" >&5
16861 $as_echo_n "checking The type of len parameter of gperf hash/lookup function... " >&6; }
16862 fc_gperf_test="$(echo 'foo' | gperf -L ANSI-C)"
16863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16864 /* end confdefs.h. */
16866 #include <string.h>
16868 const char *in_word_set(register const char *, register size_t);
16879 if ac_fn_c_try_compile "$LINENO"; then :
16880 FC_GPERF_SIZE_T=size_t
16882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16883 /* end confdefs.h. */
16885 #include <string.h>
16887 const char *in_word_set(register const char *, register unsigned int);
16898 if ac_fn_c_try_compile "$LINENO"; then :
16899 FC_GPERF_SIZE_T="unsigned int"
16901 as_fn_error $? "Unable to determine the type of the len parameter of the gperf hash/lookup function" "$LINENO" 5
16904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16908 cat >>confdefs.h <<_ACEOF
16909 #define FC_GPERF_SIZE_T $FC_GPERF_SIZE_T
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC_GPERF_SIZE_T" >&5
16913 $as_echo "$FC_GPERF_SIZE_T" >&6; }
16918 # Check whether --enable-iconv was given.
16919 if test "${enable_iconv+set}" = set; then :
16920 enableval=$enable_iconv;
16926 # Check whether --with-libiconv was given.
16927 if test "${with_libiconv+set}" = set; then :
16928 withval=$with_libiconv; if test "x$withval" = "xyes"; then
16929 libiconv_prefix=$prefix
16931 libiconv_prefix=$withval
16934 libiconv_prefix=auto
16938 # Check whether --with-libiconv-includes was given.
16939 if test "${with_libiconv_includes+set}" = set; then :
16940 withval=$with_libiconv_includes; libiconv_includes=$withval
16942 libiconv_includes=auto
16946 # Check whether --with-libiconv-lib was given.
16947 if test "${with_libiconv_lib+set}" = set; then :
16948 withval=$with_libiconv_lib; libiconv_lib=$withval
16954 # if no libiconv,libiconv-includes,libiconv-lib are specified,
16955 # libc's iconv has a priority.
16956 if test "$libiconv_includes" != "auto" -a -r ${libiconv_includes}/iconv.h; then
16957 libiconv_cflags="-I${libiconv_includes}"
16958 elif test "$libiconv_prefix" != "auto" -a -r ${libiconv_prefix}/include/iconv.h; then
16959 libiconv_cflags="-I${libiconv_prefix}/include"
16964 if test "x$libiconv_cflags" != "x"; then
16965 if test "$libiconv_lib" != "auto" -a -d ${libiconv_lib}; then
16966 libiconv_libs="-L${libiconv_lib} -liconv"
16967 elif test "$libiconv_prefix" != "auto" -a -d ${libiconv_prefix}/lib; then
16968 libiconv_libs="-L${libiconv_prefix}/lib -liconv"
16970 libiconv_libs="-liconv"
16975 if test "x$enable_iconv" != "xno"; then
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a usable iconv" >&5
16977 $as_echo_n "checking for a usable iconv... " >&6; }
16978 if test "x$libiconv_cflags" != "x" -o "x$libiconv_libs" != "x"; then
16979 iconvsaved_CFLAGS="$CFLAGS"
16980 iconvsaved_LIBS="$LIBS"
16981 CFLAGS="$CFLAGS $libiconv_cflags"
16982 LIBS="$LIBS $libiconv_libs"
16984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16985 /* end confdefs.h. */
16990 iconv_open ("from", "to");
16995 if ac_fn_c_try_link "$LINENO"; then :
16996 iconv_type="libiconv"
16998 ICONV_CFLAGS="$libiconv_cflags"
16999 ICONV_LIBS="$libiconv_libs"
17004 rm -f core conftest.err conftest.$ac_objext \
17005 conftest$ac_exeext conftest.$ac_ext
17007 CFLAGS="$iconvsaved_CFLAGS"
17008 LIBS="$iconvsaved_LIBS"
17010 if test "x$use_iconv" = "x0"; then
17011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17012 /* end confdefs.h. */
17017 iconv_open ("from", "to");
17022 if ac_fn_c_try_link "$LINENO"; then :
17026 iconv_type="not found"
17029 rm -f core conftest.err conftest.$ac_objext \
17030 conftest$ac_exeext conftest.$ac_ext
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iconv_type" >&5
17034 $as_echo "$iconv_type" >&6; }
17039 cat >>confdefs.h <<_ACEOF
17040 #define USE_ICONV $use_iconv
17044 # Checks for FreeType
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
17049 $as_echo_n "checking for FREETYPE... " >&6; }
17051 if test -n "$FREETYPE_CFLAGS"; then
17052 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
17053 elif test -n "$PKG_CONFIG"; then
17054 if test -n "$PKG_CONFIG" && \
17055 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 21.0.15\""; } >&5
17056 ($PKG_CONFIG --exists --print-errors "freetype2 >= 21.0.15") 2>&5
17058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17059 test $ac_status = 0; }; then
17060 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 21.0.15" 2>/dev/null`
17061 test "x$?" != "x0" && pkg_failed=yes
17068 if test -n "$FREETYPE_LIBS"; then
17069 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
17070 elif test -n "$PKG_CONFIG"; then
17071 if test -n "$PKG_CONFIG" && \
17072 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 21.0.15\""; } >&5
17073 ($PKG_CONFIG --exists --print-errors "freetype2 >= 21.0.15") 2>&5
17075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17076 test $ac_status = 0; }; then
17077 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 21.0.15" 2>/dev/null`
17078 test "x$?" != "x0" && pkg_failed=yes
17088 if test $pkg_failed = yes; then
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17090 $as_echo "no" >&6; }
17092 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17093 _pkg_short_errors_supported=yes
17095 _pkg_short_errors_supported=no
17097 if test $_pkg_short_errors_supported = yes; then
17098 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2 >= 21.0.15" 2>&1`
17100 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2 >= 21.0.15" 2>&1`
17102 # Put the nasty error message in config.log where it belongs
17103 echo "$FREETYPE_PKG_ERRORS" >&5
17105 as_fn_error $? "Package requirements (freetype2 >= 21.0.15) were not met:
17107 $FREETYPE_PKG_ERRORS
17109 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17110 installed software in a non-standard prefix.
17112 Alternatively, you may set the environment variables FREETYPE_CFLAGS
17113 and FREETYPE_LIBS to avoid the need to call pkg-config.
17114 See the pkg-config man page for more details." "$LINENO" 5
17115 elif test $pkg_failed = untried; then
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17117 $as_echo "no" >&6; }
17118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17120 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17121 is in your PATH or set the PKG_CONFIG environment variable to the full
17122 path to pkg-config.
17124 Alternatively, you may set the environment variables FREETYPE_CFLAGS
17125 and FREETYPE_LIBS to avoid the need to call pkg-config.
17126 See the pkg-config man page for more details.
17128 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17129 See \`config.log' for more details" "$LINENO" 5; }
17131 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
17132 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17134 $as_echo "yes" >&6; }
17137 PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES freetype2 >= 21.0.15"
17142 fontconfig_save_libs="$LIBS"
17143 fontconfig_save_cflags="$CFLAGS"
17144 LIBS="$LIBS $FREETYPE_LIBS"
17145 CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
17146 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
17148 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17149 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17150 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17151 cat >>confdefs.h <<_ACEOF
17152 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17160 /* end confdefs.h. */
17162 #include <ft2build.h>
17163 #include FT_CONFIG_OPTIONS_H
17164 #ifndef PCF_CONFIG_OPTION_LONG_FAMILY_NAMES
17165 # error "No pcf long family names support"
17169 if ac_fn_c_try_compile "$LINENO"; then :
17170 have_pcf_long_family_names=yes
17172 have_pcf_long_family_names=no
17174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17175 if test "x$have_pcf_long_family_names" = xyes; then
17176 FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE=
17177 FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE='#'
17179 FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE='#'
17180 FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE=
17184 LIBS="$fontconfig_save_libs"
17185 CFLAGS="$fontconfig_save_cflags"
17190 if test "$os_win32" != "yes"; then
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UUID" >&5
17194 $as_echo_n "checking for UUID... " >&6; }
17196 if test -n "$UUID_CFLAGS"; then
17197 pkg_cv_UUID_CFLAGS="$UUID_CFLAGS"
17198 elif test -n "$PKG_CONFIG"; then
17199 if test -n "$PKG_CONFIG" && \
17200 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
17201 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
17203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17204 test $ac_status = 0; }; then
17205 pkg_cv_UUID_CFLAGS=`$PKG_CONFIG --cflags "uuid" 2>/dev/null`
17206 test "x$?" != "x0" && pkg_failed=yes
17213 if test -n "$UUID_LIBS"; then
17214 pkg_cv_UUID_LIBS="$UUID_LIBS"
17215 elif test -n "$PKG_CONFIG"; then
17216 if test -n "$PKG_CONFIG" && \
17217 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
17218 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
17220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17221 test $ac_status = 0; }; then
17222 pkg_cv_UUID_LIBS=`$PKG_CONFIG --libs "uuid" 2>/dev/null`
17223 test "x$?" != "x0" && pkg_failed=yes
17233 if test $pkg_failed = yes; then
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17235 $as_echo "no" >&6; }
17237 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17238 _pkg_short_errors_supported=yes
17240 _pkg_short_errors_supported=no
17242 if test $_pkg_short_errors_supported = yes; then
17243 UUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid" 2>&1`
17245 UUID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid" 2>&1`
17247 # Put the nasty error message in config.log where it belongs
17248 echo "$UUID_PKG_ERRORS" >&5
17250 as_fn_error $? "Package requirements (uuid) were not met:
17254 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17255 installed software in a non-standard prefix.
17257 Alternatively, you may set the environment variables UUID_CFLAGS
17258 and UUID_LIBS to avoid the need to call pkg-config.
17259 See the pkg-config man page for more details." "$LINENO" 5
17260 elif test $pkg_failed = untried; then
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17262 $as_echo "no" >&6; }
17263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17265 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17266 is in your PATH or set the PKG_CONFIG environment variable to the full
17267 path to pkg-config.
17269 Alternatively, you may set the environment variables UUID_CFLAGS
17270 and UUID_LIBS to avoid the need to call pkg-config.
17271 See the pkg-config man page for more details.
17273 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17274 See \`config.log' for more details" "$LINENO" 5; }
17276 UUID_CFLAGS=$pkg_cv_UUID_CFLAGS
17277 UUID_LIBS=$pkg_cv_UUID_LIBS
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17279 $as_echo "yes" >&6; }
17282 PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY uuid"
17291 # Check expat configuration
17294 # Check whether --with-expat was given.
17295 if test "${with_expat+set}" = set; then :
17296 withval=$with_expat; expat_prefix=$withval
17302 # Check whether --with-expat-includes was given.
17303 if test "${with_expat_includes+set}" = set; then :
17304 withval=$with_expat_includes; expat_includes=$withval
17306 expat_includes=auto
17310 # Check whether --with-expat-lib was given.
17311 if test "${with_expat_lib+set}" = set; then :
17312 withval=$with_expat_lib; expat_lib=$withval
17318 if test "$enable_libxml2" != "yes"; then
17319 use_pkgconfig_for_expat=yes
17320 if test "$expat_prefix" = "auto" -a "$expat_includes" = "auto" -a "$expat_lib" = "auto"; then
17323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPAT" >&5
17324 $as_echo_n "checking for EXPAT... " >&6; }
17326 if test -n "$EXPAT_CFLAGS"; then
17327 pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS"
17328 elif test -n "$PKG_CONFIG"; then
17329 if test -n "$PKG_CONFIG" && \
17330 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
17331 ($PKG_CONFIG --exists --print-errors "expat") 2>&5
17333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17334 test $ac_status = 0; }; then
17335 pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null`
17336 test "x$?" != "x0" && pkg_failed=yes
17343 if test -n "$EXPAT_LIBS"; then
17344 pkg_cv_EXPAT_LIBS="$EXPAT_LIBS"
17345 elif test -n "$PKG_CONFIG"; then
17346 if test -n "$PKG_CONFIG" && \
17347 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
17348 ($PKG_CONFIG --exists --print-errors "expat") 2>&5
17350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17351 test $ac_status = 0; }; then
17352 pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null`
17353 test "x$?" != "x0" && pkg_failed=yes
17363 if test $pkg_failed = yes; then
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17365 $as_echo "no" >&6; }
17367 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17368 _pkg_short_errors_supported=yes
17370 _pkg_short_errors_supported=no
17372 if test $_pkg_short_errors_supported = yes; then
17373 EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "expat" 2>&1`
17375 EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "expat" 2>&1`
17377 # Put the nasty error message in config.log where it belongs
17378 echo "$EXPAT_PKG_ERRORS" >&5
17380 use_pkgconfig_for_expat=no
17381 elif test $pkg_failed = untried; then
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17383 $as_echo "no" >&6; }
17384 use_pkgconfig_for_expat=no
17386 EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS
17387 EXPAT_LIBS=$pkg_cv_EXPAT_LIBS
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17389 $as_echo "yes" >&6; }
17393 use_pkgconfig_for_expat=no
17395 if test "x$use_pkgconfig_for_expat" = "xno"; then
17396 if test "$expat_includes" != "auto" -a -r ${expat_includes}/expat.h; then
17397 EXPAT_CFLAGS="-I${expat_includes}"
17398 elif test "$expat_prefix" != "auto" -a -r ${expat_prefix}/include/expat.h; then
17399 EXPAT_CFLAGS="-I${expat_prefix}/include"
17403 if test "$expat_lib" != "auto"; then
17404 EXPAT_LIBS="-L${expat_lib} -lexpat"
17405 elif test "$expat_prefix" != "auto"; then
17406 EXPAT_LIBS="-L${expat_prefix}/lib -lexpat"
17408 EXPAT_LIBS="-lexpat"
17410 PKG_EXPAT_CFLAGS=$EXPAT_CFLAGS
17411 PKG_EXPAT_LIBS=$EXPAT_LIBS
17413 PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY expat"
17418 expatsaved_CPPFLAGS="$CPPFLAGS"
17419 expatsaved_LIBS="$LIBS"
17420 CPPFLAGS="$CPPFLAGS $EXPAT_CFLAGS"
17421 LIBS="$LIBS $EXPAT_LIBS"
17423 ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
17424 if test "x$ac_cv_header_expat_h" = xyes; then :
17429 if test "$ac_cv_header_expat_h" = "no"; then
17430 ac_fn_c_check_header_mongrel "$LINENO" "xmlparse.h" "ac_cv_header_xmlparse_h" "$ac_includes_default"
17431 if test "x$ac_cv_header_xmlparse_h" = xyes; then :
17436 if test "$ac_cv_header_xmlparse_h" = "yes"; then
17440 cat >>confdefs.h <<_ACEOF
17441 #define HAVE_XMLPARSE_H $HAVE_XMLPARSE_H
17446 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
17449 for ac_func in XML_SetDoctypeDeclHandler
17451 ac_fn_c_check_func "$LINENO" "XML_SetDoctypeDeclHandler" "ac_cv_func_XML_SetDoctypeDeclHandler"
17452 if test "x$ac_cv_func_XML_SetDoctypeDeclHandler" = xyes; then :
17453 cat >>confdefs.h <<_ACEOF
17454 #define HAVE_XML_SETDOCTYPEDECLHANDLER 1
17460 if test "$ac_cv_func_XML_SetDoctypeDeclHandler" = "no"; then
17462 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
17464 CPPFLAGS="$expatsaved_CPPFLAGS"
17465 LIBS="$expatsaved_LIBS"
17474 # Check libxml2 configuration
17476 # Check whether --enable-libxml2 was given.
17477 if test "${enable_libxml2+set}" = set; then :
17478 enableval=$enable_libxml2;
17482 if test "$enable_libxml2" = "yes"; then
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
17486 $as_echo_n "checking for LIBXML2... " >&6; }
17488 if test -n "$LIBXML2_CFLAGS"; then
17489 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
17490 elif test -n "$PKG_CONFIG"; then
17491 if test -n "$PKG_CONFIG" && \
17492 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
17493 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
17495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17496 test $ac_status = 0; }; then
17497 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6" 2>/dev/null`
17498 test "x$?" != "x0" && pkg_failed=yes
17505 if test -n "$LIBXML2_LIBS"; then
17506 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
17507 elif test -n "$PKG_CONFIG"; then
17508 if test -n "$PKG_CONFIG" && \
17509 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
17510 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
17512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17513 test $ac_status = 0; }; then
17514 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6" 2>/dev/null`
17515 test "x$?" != "x0" && pkg_failed=yes
17525 if test $pkg_failed = yes; then
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17527 $as_echo "no" >&6; }
17529 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17530 _pkg_short_errors_supported=yes
17532 _pkg_short_errors_supported=no
17534 if test $_pkg_short_errors_supported = yes; then
17535 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
17537 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
17539 # Put the nasty error message in config.log where it belongs
17540 echo "$LIBXML2_PKG_ERRORS" >&5
17542 as_fn_error $? "Package requirements (libxml-2.0 >= 2.6) were not met:
17544 $LIBXML2_PKG_ERRORS
17546 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17547 installed software in a non-standard prefix.
17549 Alternatively, you may set the environment variables LIBXML2_CFLAGS
17550 and LIBXML2_LIBS to avoid the need to call pkg-config.
17551 See the pkg-config man page for more details." "$LINENO" 5
17552 elif test $pkg_failed = untried; then
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17554 $as_echo "no" >&6; }
17555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17557 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17558 is in your PATH or set the PKG_CONFIG environment variable to the full
17559 path to pkg-config.
17561 Alternatively, you may set the environment variables LIBXML2_CFLAGS
17562 and LIBXML2_LIBS to avoid the need to call pkg-config.
17563 See the pkg-config man page for more details.
17565 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17566 See \`config.log' for more details" "$LINENO" 5; }
17568 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
17569 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17571 $as_echo "yes" >&6; }
17574 PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY libxml-2.0 >= 2.6"
17576 cat >>confdefs.h <<_ACEOF
17577 #define ENABLE_LIBXML2 1
17584 fc_saved_CFLAGS="$CFLAGS"
17585 CFLAGS="$CFLAGS $LIBXML2_CFLAGS"
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SAX1 support in libxml2" >&5
17587 $as_echo_n "checking SAX1 support in libxml2... " >&6; }
17588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17589 /* end confdefs.h. */
17591 #include <libxml/xmlversion.h>
17592 #if !defined(LIBXML_SAX1_ENABLED)
17593 # include "error: No SAX1 support in libxml2"
17597 if ac_fn_c_try_compile "$LINENO"; then :
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
17599 $as_echo "found" >&6; }
17602 *** SAX1 support in libxml2 is required. enable it or use expat instead." "$LINENO" 5
17604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17605 CFLAGS="$fc_saved_CFLAGS"
17609 # Set default hinting
17613 # Check whether --with-default-hinting was given.
17614 if test "${with_default_hinting+set}" = set; then :
17615 withval=$with_default_hinting; preferred_hinting="$withval"
17617 preferred_hinting=slight
17621 case "$preferred_hinting" in
17622 none|slight|medium|full)
17623 PREFERRED_HINTING="$preferred_hinting"
17627 as_fn_error $? "Invalid hinting. please choose one of none, slight, medium, or full" "$LINENO" 5
17632 # Set default font directory
17636 # Check whether --with-default-fonts was given.
17637 if test "${with_default_fonts+set}" = set; then :
17638 withval=$with_default_fonts; default_fonts="$withval"
17644 case "$default_fonts" in
17646 if test "$os_win32" = "yes"; then
17647 FC_DEFAULT_FONTS="WINDOWSFONTDIR"
17649 cat >>confdefs.h <<_ACEOF
17650 #define FC_DEFAULT_FONTS "WINDOWSFONTDIR"
17654 FC_DEFAULT_FONTS="/usr/share/fonts"
17656 cat >>confdefs.h <<_ACEOF
17657 #define FC_DEFAULT_FONTS "/usr/share/fonts"
17663 FC_DEFAULT_FONTS="$default_fonts"
17665 cat >>confdefs.h <<_ACEOF
17666 #define FC_DEFAULT_FONTS "$default_fonts"
17675 # Add more fonts if available. By default, add only the directories
17676 # with outline fonts; those with bitmaps can be added as desired in
17677 # local.conf or ~/.fonts.conf
17680 # Check whether --with-add-fonts was given.
17681 if test "${with_add_fonts+set}" = set; then :
17682 withval=$with_add_fonts; add_fonts="$withval"
17688 case "$add_fonts" in
17691 for dir in /usr/X11R6/lib/X11 /usr/X11/lib/X11 /usr/lib/X11; do
17692 case x"$FC_ADD_FONTS" in
17695 if test -d "$sub"; then
17696 case x$FC_ADD_FONTS in
17698 FC_ADD_FONTS="$sub"
17701 FC_ADD_FONTS="$FC_ADD_FONTS,$sub"
17709 cat >>confdefs.h <<_ACEOF
17710 #define FC_ADD_FONTS "$add_fonts"
17718 FC_ADD_FONTS="$add_fonts"
17720 cat >>confdefs.h <<_ACEOF
17721 #define FC_ADD_FONTS "$add_fonts"
17731 case "$FC_ADD_FONTS" in
17735 FC_FONTPATH=`echo $FC_ADD_FONTS |
17736 sed -e 's/^/<dir>/' -e 's/$/<\/dir>/' -e 's/,/<\/dir> <dir>/g'`
17743 # Set default cache directory path
17746 # Check whether --with-cache-dir was given.
17747 if test "${with_cache_dir+set}" = set; then :
17748 withval=$with_cache_dir; fc_cachedir="$withval"
17754 case $fc_cachedir in
17756 if test "$os_win32" = "yes"; then
17757 fc_cachedir="LOCAL_APPDATA_FONTCONFIG_CACHE"
17759 fc_cachedir='${localstatedir}/cache/${PACKAGE}'
17766 FC_CACHEDIR=${fc_cachedir}
17769 FC_FONTDATE=`LC_ALL=C date`
17774 # Set configuration paths
17778 # Check whether --with-templatedir was given.
17779 if test "${with_templatedir+set}" = set; then :
17780 withval=$with_templatedir; templatedir="$withval"
17786 # Check whether --with-baseconfigdir was given.
17787 if test "${with_baseconfigdir+set}" = set; then :
17788 withval=$with_baseconfigdir; baseconfigdir="$withval"
17794 # Check whether --with-configdir was given.
17795 if test "${with_configdir+set}" = set; then :
17796 withval=$with_configdir; configdir="$withval"
17802 # Check whether --with-xmldir was given.
17803 if test "${with_xmldir+set}" = set; then :
17804 withval=$with_xmldir; xmldir="$withval"
17810 case "$templatedir" in
17812 templatedir='${datadir}'/fontconfig/conf.avail
17817 case "$baseconfigdir" in
17819 baseconfigdir='${sysconfdir}'/fonts
17824 case "$configdir" in
17826 configdir='${BASECONFIGDIR}'/conf.d
17833 xmldir='${datadir}'/xml/fontconfig
17839 TEMPLATEDIR=${templatedir}
17840 BASECONFIGDIR=${baseconfigdir}
17841 CONFIGDIR=${configdir}
17851 # Thread-safety primitives
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
17855 $as_echo_n "checking for Intel atomic primitives... " >&6; }
17856 if ${fc_cv_have_intel_atomic_primitives+:} false; then :
17857 $as_echo_n "(cached) " >&6
17860 fc_cv_have_intel_atomic_primitives=false
17861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17862 /* end confdefs.h. */
17864 void memory_barrier (void) { __sync_synchronize (); }
17865 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
17866 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
17867 void mutex_unlock (int *m) { __sync_lock_release (m); }
17877 if ac_fn_c_try_link "$LINENO"; then :
17878 fc_cv_have_intel_atomic_primitives=true
17881 rm -f core conftest.err conftest.$ac_objext \
17882 conftest$ac_exeext conftest.$ac_ext
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_intel_atomic_primitives" >&5
17886 $as_echo "$fc_cv_have_intel_atomic_primitives" >&6; }
17887 if $fc_cv_have_intel_atomic_primitives; then
17889 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
17894 $as_echo_n "checking for Solaris atomic operations... " >&6; }
17895 if ${fc_cv_have_solaris_atomic_ops+:} false; then :
17896 $as_echo_n "(cached) " >&6
17899 fc_cv_have_solaris_atomic_ops=false
17900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17901 /* end confdefs.h. */
17903 #include <atomic.h>
17904 /* This requires Solaris Studio 12.2 or newer: */
17905 #include <mbarrier.h>
17906 void memory_barrier (void) { __machine_rw_barrier (); }
17907 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
17908 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
17918 if ac_fn_c_try_link "$LINENO"; then :
17919 fc_cv_have_solaris_atomic_ops=true
17922 rm -f core conftest.err conftest.$ac_objext \
17923 conftest$ac_exeext conftest.$ac_ext
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_solaris_atomic_ops" >&5
17927 $as_echo "$fc_cv_have_solaris_atomic_ops" >&6; }
17928 if $fc_cv_have_solaris_atomic_ops; then
17930 $as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
17934 if test "$os_win32" = no && ! $have_pthread; then
17935 for ac_header in sched.h
17937 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
17938 if test "x$ac_cv_header_sched_h" = xyes; then :
17939 cat >>confdefs.h <<_ACEOF
17940 #define HAVE_SCHED_H 1
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
17948 $as_echo_n "checking for library containing sched_yield... " >&6; }
17949 if ${ac_cv_search_sched_yield+:} false; then :
17950 $as_echo_n "(cached) " >&6
17952 ac_func_search_save_LIBS=$LIBS
17953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17954 /* end confdefs.h. */
17956 /* Override any GCC internal prototype to avoid an error.
17957 Use char because int might match the return type of a GCC
17958 builtin and then its argument prototype would still apply. */
17962 char sched_yield ();
17966 return sched_yield ();
17971 for ac_lib in '' rt; do
17972 if test -z "$ac_lib"; then
17973 ac_res="none required"
17976 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17978 if ac_fn_c_try_link "$LINENO"; then :
17979 ac_cv_search_sched_yield=$ac_res
17981 rm -f core conftest.err conftest.$ac_objext \
17983 if ${ac_cv_search_sched_yield+:} false; then :
17987 if ${ac_cv_search_sched_yield+:} false; then :
17990 ac_cv_search_sched_yield=no
17992 rm conftest.$ac_ext
17993 LIBS=$ac_func_search_save_LIBS
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
17996 $as_echo "$ac_cv_search_sched_yield" >&6; }
17997 ac_res=$ac_cv_search_sched_yield
17998 if test "$ac_res" != no; then :
17999 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18001 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
18008 if test "$os_win32" = no; then
18012 ac_cpp='$CPP $CPPFLAGS'
18013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18019 # We used to check for pthread.h first, but this fails if pthread.h
18020 # requires special compiler flags (e.g. on True64 or Sequent).
18021 # It gets checked for in the link test anyway.
18023 # First of all, check if the user has set any of the PTHREAD_LIBS,
18024 # etcetera environment variables, and if threads linking works using
18026 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18027 save_CFLAGS="$CFLAGS"
18028 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18030 LIBS="$PTHREAD_LIBS $LIBS"
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18032 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
18033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18034 /* end confdefs.h. */
18036 /* Override any GCC internal prototype to avoid an error.
18037 Use char because int might match the return type of a GCC
18038 builtin and then its argument prototype would still apply. */
18042 char pthread_join ();
18046 return pthread_join ();
18051 if ac_fn_c_try_link "$LINENO"; then :
18054 rm -f core conftest.err conftest.$ac_objext \
18055 conftest$ac_exeext conftest.$ac_ext
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18057 $as_echo "$ax_pthread_ok" >&6; }
18058 if test x"$ax_pthread_ok" = xno; then
18063 CFLAGS="$save_CFLAGS"
18066 # We must check for the threads library under a number of different
18067 # names; the ordering is very important because some systems
18068 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18069 # libraries is broken (non-POSIX).
18071 # Create a list of thread flags to try. Items starting with a "-" are
18072 # C compiler flags, and other items are library names, except for "none"
18073 # which indicates that we try without any flags at all, and "pthread-config"
18074 # which is a program returning the flags for the Pth emulation library.
18076 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
18078 # The ordering *is* (sometimes) important. Some notes on the
18079 # individual items follow:
18081 # pthreads: AIX (must check this before -lpthread)
18082 # none: in case threads are in libc; should be tried before -Kthread and
18083 # other compiler flags to prevent continual compiler warnings
18084 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18085 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18086 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18087 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18088 # -pthreads: Solaris/gcc
18089 # -mthreads: Mingw32/gcc, Lynx/gcc
18090 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18091 # doesn't hurt to check since this sometimes defines pthreads too;
18092 # also defines -D_REENTRANT)
18093 # ... -mt is also the pthreads flag for HP/aCC
18094 # pthread: Linux, etcetera
18095 # --thread-safe: KAI C++
18096 # pthread-config: use pthread-config program (for GNU Pth library)
18101 # On Solaris (at least, for some versions), libc contains stubbed
18102 # (non-functional) versions of the pthreads routines, so link-based
18103 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
18104 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18105 # a function called by this macro, so we could check for that, but
18106 # who knows whether they'll stub that too in a future libc.) So,
18107 # we'll just look for -pthreads and -lpthread first:
18109 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
18113 ax_pthread_flags="-pthread $ax_pthread_flags"
18116 # use libc stubs, don't link against libpthread, to allow
18118 ax_pthread_flags=""
18122 # Clang doesn't consider unrecognized options an error unless we specify
18123 # -Werror. We throw in some extra Clang-specific options to ensure that
18124 # this doesn't happen for GCC, which also accepts -Werror.
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
18127 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
18128 save_CFLAGS="$CFLAGS"
18129 ax_pthread_extra_flags="-Werror"
18130 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
18131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18132 /* end confdefs.h. */
18142 if ac_fn_c_try_compile "$LINENO"; then :
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18144 $as_echo "yes" >&6; }
18146 ax_pthread_extra_flags=
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18148 $as_echo "no" >&6; }
18150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18151 CFLAGS="$save_CFLAGS"
18153 if test x"$ax_pthread_ok" = xno; then
18154 for flag in $ax_pthread_flags; do
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18159 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
18164 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
18165 PTHREAD_CFLAGS="$flag"
18169 # Extract the first word of "pthread-config", so it can be a program name with args.
18170 set dummy pthread-config; ac_word=$2
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18172 $as_echo_n "checking for $ac_word... " >&6; }
18173 if ${ac_cv_prog_ax_pthread_config+:} false; then :
18174 $as_echo_n "(cached) " >&6
18176 if test -n "$ax_pthread_config"; then
18177 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
18179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18180 for as_dir in $PATH
18183 test -z "$as_dir" && as_dir=.
18184 for ac_exec_ext in '' $ac_executable_extensions; do
18185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18186 ac_cv_prog_ax_pthread_config="yes"
18187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18194 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
18197 ax_pthread_config=$ac_cv_prog_ax_pthread_config
18198 if test -n "$ax_pthread_config"; then
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
18200 $as_echo "$ax_pthread_config" >&6; }
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18203 $as_echo "no" >&6; }
18207 if test x"$ax_pthread_config" = xno; then continue; fi
18208 PTHREAD_CFLAGS="`pthread-config --cflags`"
18209 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
18214 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
18215 PTHREAD_LIBS="-l$flag"
18220 save_CFLAGS="$CFLAGS"
18221 LIBS="$PTHREAD_LIBS $LIBS"
18222 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
18224 # Check for various functions. We must include pthread.h,
18225 # since some functions may be macros. (On the Sequent, we
18226 # need a special flag -Kthread to make this header compile.)
18227 # We check for pthread_join because it is in -lpthread on IRIX
18228 # while pthread_create is in libc. We check for pthread_attr_init
18229 # due to DEC craziness with -lpthreads. We check for
18230 # pthread_cleanup_push because it is one of the few pthread
18231 # functions on Solaris that doesn't have a non-functional libc stub.
18232 # We try pthread_create on general principles.
18233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18234 /* end confdefs.h. */
18235 #include <pthread.h>
18236 static void routine(void *a) { a = 0; }
18237 static void *start_routine(void *a) { return a; }
18241 pthread_t th; pthread_attr_t attr;
18242 pthread_create(&th, 0, start_routine, 0);
18243 pthread_join(th, 0);
18244 pthread_attr_init(&attr);
18245 pthread_cleanup_push(routine, 0);
18246 pthread_cleanup_pop(0) /* ; */
18251 if ac_fn_c_try_link "$LINENO"; then :
18254 rm -f core conftest.err conftest.$ac_objext \
18255 conftest$ac_exeext conftest.$ac_ext
18258 CFLAGS="$save_CFLAGS"
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18261 $as_echo "$ax_pthread_ok" >&6; }
18262 if test "x$ax_pthread_ok" = xyes; then
18271 # Various other checks:
18272 if test "x$ax_pthread_ok" = xyes; then
18274 LIBS="$PTHREAD_LIBS $LIBS"
18275 save_CFLAGS="$CFLAGS"
18276 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18278 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
18280 $as_echo_n "checking for joinable pthread attribute... " >&6; }
18282 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
18283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18284 /* end confdefs.h. */
18285 #include <pthread.h>
18289 int attr = $attr; return attr /* ; */
18294 if ac_fn_c_try_link "$LINENO"; then :
18295 attr_name=$attr; break
18297 rm -f core conftest.err conftest.$ac_objext \
18298 conftest$ac_exeext conftest.$ac_ext
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
18301 $as_echo "$attr_name" >&6; }
18302 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
18304 cat >>confdefs.h <<_ACEOF
18305 #define PTHREAD_CREATE_JOINABLE $attr_name
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
18311 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
18314 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
18315 osf* | hpux*) flag="-D_REENTRANT";;
18317 if test "$GCC" = "yes"; then
18318 flag="-D_REENTRANT"
18320 # TODO: What about Clang on Solaris?
18321 flag="-mt -D_REENTRANT"
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
18326 $as_echo "$flag" >&6; }
18327 if test "x$flag" != xno; then
18328 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
18332 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
18333 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
18334 $as_echo_n "(cached) " >&6
18337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18338 /* end confdefs.h. */
18339 #include <pthread.h>
18343 int i = PTHREAD_PRIO_INHERIT;
18348 if ac_fn_c_try_link "$LINENO"; then :
18349 ax_cv_PTHREAD_PRIO_INHERIT=yes
18351 ax_cv_PTHREAD_PRIO_INHERIT=no
18353 rm -f core conftest.err conftest.$ac_objext \
18354 conftest$ac_exeext conftest.$ac_ext
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
18358 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
18359 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
18361 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
18366 CFLAGS="$save_CFLAGS"
18368 # More AIX lossage: compile with *_r variant
18369 if test "x$GCC" != xyes; then
18373 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
18374 #handle absolute path differently from PATH based program lookup
18377 if as_fn_executable_p ${CC}_r; then :
18378 PTHREAD_CC="${CC}_r"
18381 for ac_prog in ${CC}_r
18383 # Extract the first word of "$ac_prog", so it can be a program name with args.
18384 set dummy $ac_prog; ac_word=$2
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18386 $as_echo_n "checking for $ac_word... " >&6; }
18387 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
18388 $as_echo_n "(cached) " >&6
18390 if test -n "$PTHREAD_CC"; then
18391 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18394 for as_dir in $PATH
18397 test -z "$as_dir" && as_dir=.
18398 for ac_exec_ext in '' $ac_executable_extensions; do
18399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18400 ac_cv_prog_PTHREAD_CC="$ac_prog"
18401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18410 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18411 if test -n "$PTHREAD_CC"; then
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
18413 $as_echo "$PTHREAD_CC" >&6; }
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18416 $as_echo "no" >&6; }
18420 test -n "$PTHREAD_CC" && break
18422 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
18433 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
18439 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18440 if test x"$ax_pthread_ok" = xyes; then
18448 ac_cpp='$CPP $CPPFLAGS'
18449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18455 if $have_pthread; then
18456 LIBS="$PTHREAD_LIBS $LIBS"
18457 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18460 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
18463 if $have_pthread; then
18465 HAVE_PTHREAD_FALSE='#'
18467 HAVE_PTHREAD_TRUE='#'
18468 HAVE_PTHREAD_FALSE=
18475 # Let people not build/install docs if they don't have docbook
18478 # Extract the first word of "docbook2html", so it can be a program name with args.
18479 set dummy docbook2html; ac_word=$2
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18481 $as_echo_n "checking for $ac_word... " >&6; }
18482 if ${ac_cv_prog_HASDOCBOOK+:} false; then :
18483 $as_echo_n "(cached) " >&6
18485 if test -n "$HASDOCBOOK"; then
18486 ac_cv_prog_HASDOCBOOK="$HASDOCBOOK" # Let the user override the test.
18488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18489 for as_dir in $PATH
18492 test -z "$as_dir" && as_dir=.
18493 for ac_exec_ext in '' $ac_executable_extensions; do
18494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18495 ac_cv_prog_HASDOCBOOK="yes"
18496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18503 test -z "$ac_cv_prog_HASDOCBOOK" && ac_cv_prog_HASDOCBOOK="no"
18506 HASDOCBOOK=$ac_cv_prog_HASDOCBOOK
18507 if test -n "$HASDOCBOOK"; then
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HASDOCBOOK" >&5
18509 $as_echo "$HASDOCBOOK" >&6; }
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18512 $as_echo "no" >&6; }
18517 if test "x$HASDOCBOOK" = xyes; then
18519 USEDOCBOOK_FALSE='#'
18521 USEDOCBOOK_TRUE='#'
18528 # Check if docs exist or can be created
18530 if test x$HASDOCBOOK = xno; then
18531 if test -f $srcdir/doc/fonts-conf.5; then
18538 # Check whether --enable-docs was given.
18539 if test "${enable_docs+set}" = set; then :
18540 enableval=$enable_docs;
18542 enable_docs=$default_docs
18546 if test "x$enable_docs" = xyes; then
18548 ENABLE_DOCS_FALSE='#'
18550 ENABLE_DOCS_TRUE='#'
18555 if test "x$enable_docs" = xyes; then
18557 cat $srcdir/doc/*.fncs | awk '
18558 /^@TITLE@/ { if (!done) { printf ("%s\n", $2); done = 1; } }
18559 /^@FUNC@/ { if (!done) { printf ("%s\n", $2); done = 1; } }
18560 /^@@/ { done = 0; }' > $tmp
18561 DOCMAN3=`cat $tmp | awk '{ printf ("%s.3 ", $1); }'`
18562 echo DOCMAN3 $DOCMAN3
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18571 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18572 if ${ac_cv_c_bigendian+:} false; then :
18573 $as_echo_n "(cached) " >&6
18575 ac_cv_c_bigendian=unknown
18576 # See if we're dealing with a universal compiler.
18577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18578 /* end confdefs.h. */
18579 #ifndef __APPLE_CC__
18580 not a universal capable compiler
18585 if ac_fn_c_try_compile "$LINENO"; then :
18587 # Check for potential -arch flags. It is not universal unless
18588 # there are at least two -arch flags with different values.
18591 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18592 if test -n "$ac_prev"; then
18594 i?86 | x86_64 | ppc | ppc64)
18595 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
18598 ac_cv_c_bigendian=universal
18604 elif test "x$ac_word" = "x-arch"; then
18609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18610 if test $ac_cv_c_bigendian = unknown; then
18611 # See if sys/param.h defines the BYTE_ORDER macro.
18612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18613 /* end confdefs.h. */
18614 #include <sys/types.h>
18615 #include <sys/param.h>
18620 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18621 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18623 bogus endian macros
18630 if ac_fn_c_try_compile "$LINENO"; then :
18631 # It does; now see whether it defined to BIG_ENDIAN or not.
18632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18633 /* end confdefs.h. */
18634 #include <sys/types.h>
18635 #include <sys/param.h>
18640 #if BYTE_ORDER != BIG_ENDIAN
18648 if ac_fn_c_try_compile "$LINENO"; then :
18649 ac_cv_c_bigendian=yes
18651 ac_cv_c_bigendian=no
18653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18657 if test $ac_cv_c_bigendian = unknown; then
18658 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18660 /* end confdefs.h. */
18661 #include <limits.h>
18666 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18667 bogus endian macros
18674 if ac_fn_c_try_compile "$LINENO"; then :
18675 # It does; now see whether it defined to _BIG_ENDIAN or not.
18676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18677 /* end confdefs.h. */
18678 #include <limits.h>
18683 #ifndef _BIG_ENDIAN
18691 if ac_fn_c_try_compile "$LINENO"; then :
18692 ac_cv_c_bigendian=yes
18694 ac_cv_c_bigendian=no
18696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18700 if test $ac_cv_c_bigendian = unknown; then
18701 # Compile a test program.
18702 if test "$cross_compiling" = yes; then :
18703 # Try to guess by grepping values from an object file.
18704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18705 /* end confdefs.h. */
18706 short int ascii_mm[] =
18707 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18708 short int ascii_ii[] =
18709 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18710 int use_ascii (int i) {
18711 return ascii_mm[i] + ascii_ii[i];
18713 short int ebcdic_ii[] =
18714 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18715 short int ebcdic_mm[] =
18716 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18717 int use_ebcdic (int i) {
18718 return ebcdic_mm[i] + ebcdic_ii[i];
18725 return use_ascii (foo) == use_ebcdic (foo);
18730 if ac_fn_c_try_compile "$LINENO"; then :
18731 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18732 ac_cv_c_bigendian=yes
18734 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18735 if test "$ac_cv_c_bigendian" = unknown; then
18736 ac_cv_c_bigendian=no
18738 # finding both strings is unlikely to happen, but who knows?
18739 ac_cv_c_bigendian=unknown
18743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18746 /* end confdefs.h. */
18747 $ac_includes_default
18752 /* Are we little or big endian? From Harbison&Steele. */
18756 char c[sizeof (long int)];
18759 return u.c[sizeof (long int) - 1] == 1;
18765 if ac_fn_c_try_run "$LINENO"; then :
18766 ac_cv_c_bigendian=no
18768 ac_cv_c_bigendian=yes
18770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18771 conftest.$ac_objext conftest.beam conftest.$ac_ext
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18777 $as_echo "$ac_cv_c_bigendian" >&6; }
18778 case $ac_cv_c_bigendian in #(
18780 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
18786 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18790 as_fn_error $? "unknown endianness
18791 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18794 # The cast to long int works around a bug in the HP C Compiler
18795 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18796 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18797 # This bug is HP SR number 8606223364.
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
18799 $as_echo_n "checking size of void *... " >&6; }
18800 if ${ac_cv_sizeof_void_p+:} false; then :
18801 $as_echo_n "(cached) " >&6
18803 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
18806 if test "$ac_cv_type_void_p" = yes; then
18807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18809 as_fn_error 77 "cannot compute sizeof (void *)
18810 See \`config.log' for more details" "$LINENO" 5; }
18812 ac_cv_sizeof_void_p=0
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
18818 $as_echo "$ac_cv_sizeof_void_p" >&6; }
18822 cat >>confdefs.h <<_ACEOF
18823 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18827 # The cast to long int works around a bug in the HP C Compiler,
18828 # see AC_CHECK_SIZEOF for more information.
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
18830 $as_echo_n "checking alignment of double... " >&6; }
18831 if ${ac_cv_alignof_double+:} false; then :
18832 $as_echo_n "(cached) " >&6
18834 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
18836 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
18838 typedef struct { char x; double y; } ac__type_alignof_;"; then :
18841 if test "$ac_cv_type_double" = yes; then
18842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18844 as_fn_error 77 "cannot compute alignment of double
18845 See \`config.log' for more details" "$LINENO" 5; }
18847 ac_cv_alignof_double=0
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
18853 $as_echo "$ac_cv_alignof_double" >&6; }
18857 cat >>confdefs.h <<_ACEOF
18858 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
18862 # The cast to long int works around a bug in the HP C Compiler,
18863 # see AC_CHECK_SIZEOF for more information.
18864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of void *" >&5
18865 $as_echo_n "checking alignment of void *... " >&6; }
18866 if ${ac_cv_alignof_void_p+:} false; then :
18867 $as_echo_n "(cached) " >&6
18869 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_void_p" "$ac_includes_default
18871 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
18873 typedef struct { char x; void * y; } ac__type_alignof_;"; then :
18876 if test "$ac_cv_type_void_p" = yes; then
18877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18879 as_fn_error 77 "cannot compute alignment of void *
18880 See \`config.log' for more details" "$LINENO" 5; }
18882 ac_cv_alignof_void_p=0
18887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_void_p" >&5
18888 $as_echo "$ac_cv_alignof_void_p" >&6; }
18892 cat >>confdefs.h <<_ACEOF
18893 #define ALIGNOF_VOID_P $ac_cv_alignof_void_p
18903 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"
18905 cat >confcache <<\_ACEOF
18906 # This file is a shell script that caches the results of configure
18907 # tests run on this system so they can be shared between configure
18908 # scripts and configure runs, see configure's option --config-cache.
18909 # It is not useful on other systems. If it contains results you don't
18910 # want to keep, you may remove or edit it.
18912 # config.status only pays attention to the cache file if you give it
18913 # the --recheck option to rerun configure.
18915 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18916 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18917 # following values.
18921 # The following way of writing the cache mishandles newlines in values,
18922 # but we know of no workaround that is simple, portable, and efficient.
18923 # So, we kill variables containing newlines.
18924 # Ultrix sh set writes to stderr and can't be redirected directly,
18925 # and sets the high bit in the cache file unless we assign to the vars.
18927 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18928 eval ac_val=\$$ac_var
18932 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18933 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18936 _ | IFS | as_nl) ;; #(
18937 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18938 *) { eval $ac_var=; unset $ac_var;} ;;
18944 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18945 *${as_nl}ac_space=\ *)
18946 # `set' does not quote correctly, so add quotes: double-quote
18947 # substitution turns \\\\ into \\, and sed turns \\ into \.
18950 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18953 # `set' quotes correctly as required by POSIX, so do not add quotes.
18954 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18963 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18965 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18967 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18968 if test -w "$cache_file"; then
18969 if test "x$cache_file" != "x/dev/null"; then
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18971 $as_echo "$as_me: updating cache $cache_file" >&6;}
18972 if test ! -f "$cache_file" || test -h "$cache_file"; then
18973 cat confcache >"$cache_file"
18975 case $cache_file in #(
18977 mv -f confcache "$cache_file"$$ &&
18978 mv -f "$cache_file"$$ "$cache_file" ;; #(
18980 mv -f confcache "$cache_file" ;;
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18986 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18991 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18992 # Let make expand exec_prefix.
18993 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18995 DEFS=-DHAVE_CONFIG_H
19000 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19001 # 1. Remove the extension, and $U if already installed.
19002 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19003 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19004 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19005 # will be set to the directory where LIBOBJS objects are built.
19006 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19007 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19009 LIBOBJS=$ac_libobjs
19011 LTLIBOBJS=$ac_ltlibobjs
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19015 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19016 if test -n "$am_sleep_pid"; then
19017 # Hide warnings about reused PIDs.
19018 wait $am_sleep_pid 2>/dev/null
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19021 $as_echo "done" >&6; }
19022 if test -n "$EXEEXT"; then
19024 am__EXEEXT_FALSE='#'
19026 am__EXEEXT_TRUE='#'
19030 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19031 as_fn_error $? "conditional \"AMDEP\" was never defined.
19032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19034 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19035 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19038 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
19039 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
19040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19042 if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
19043 as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined.
19044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19046 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
19047 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
19048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19050 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
19051 as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined.
19052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19054 if test -z "${FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE}" && test -z "${FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE}"; then
19055 as_fn_error $? "conditional \"FREETYPE_PCF_LONG_FAMILY_NAMES\" was never defined.
19056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19058 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
19059 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
19060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19062 if test -z "${USEDOCBOOK_TRUE}" && test -z "${USEDOCBOOK_FALSE}"; then
19063 as_fn_error $? "conditional \"USEDOCBOOK\" was never defined.
19064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19066 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
19067 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
19068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19072 : "${CONFIG_STATUS=./config.status}"
19074 ac_clean_files_save=$ac_clean_files
19075 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19077 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19079 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19081 # Generated by $as_me.
19082 # Run this file to recreate the current configuration.
19083 # Compiler output produced by configure, useful for debugging
19084 # configure, is in config.log if it exists.
19087 ac_cs_recheck=false
19090 SHELL=\${CONFIG_SHELL-$SHELL}
19093 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19094 ## -------------------- ##
19095 ## M4sh Initialization. ##
19096 ## -------------------- ##
19098 # Be more Bourne compatible
19099 DUALCASE=1; export DUALCASE # for MKS sh
19100 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19103 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19104 # is contrary to our usage. Disable this feature.
19105 alias -g '${1+"$@"}'='"$@"'
19106 setopt NO_GLOB_SUBST
19108 case `(set -o) 2>/dev/null` in #(
19120 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19121 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19122 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19123 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19124 # Prefer a ksh shell builtin over an external printf program on Solaris,
19125 # but without wasting forks for bash or zsh.
19126 if test -z "$BASH_VERSION$ZSH_VERSION" \
19127 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19128 as_echo='print -r --'
19129 as_echo_n='print -rn --'
19130 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19131 as_echo='printf %s\n'
19132 as_echo_n='printf %s'
19134 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19135 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19136 as_echo_n='/usr/ucb/echo -n'
19138 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19139 as_echo_n_body='eval
19143 expr "X$arg" : "X\\(.*\\)$as_nl";
19144 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19146 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19148 export as_echo_n_body
19149 as_echo_n='sh -c $as_echo_n_body as_echo'
19151 export as_echo_body
19152 as_echo='sh -c $as_echo_body as_echo'
19155 # The user is always right.
19156 if test "${PATH_SEPARATOR+set}" != set; then
19158 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19159 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19166 # We need space, tab and new line, in precisely that order. Quoting is
19167 # there to prevent editors from complaining about space-tab.
19168 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19169 # splitting by setting IFS to empty value.)
19172 # Find who we are. Look in the path if we contain no directory separator.
19175 *[\\/]* ) as_myself=$0 ;;
19176 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19177 for as_dir in $PATH
19180 test -z "$as_dir" && as_dir=.
19181 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19187 # We did not find ourselves, most probably we were run as `sh COMMAND'
19188 # in which case we are not to be found in the path.
19189 if test "x$as_myself" = x; then
19192 if test ! -f "$as_myself"; then
19193 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19197 # Unset variables that we do not need and which cause bugs (e.g. in
19198 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19199 # suppresses any "Segmentation fault" message there. '((' could
19200 # trigger a bug in pdksh 5.2.14.
19201 for as_var in BASH_ENV ENV MAIL MAILPATH
19202 do eval test x\${$as_var+set} = xset \
19203 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19216 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19219 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19220 # ----------------------------------------
19221 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19222 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19223 # script with STATUS, using 1 if that was 0.
19226 as_status=$1; test $as_status -eq 0 && as_status=1
19228 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19229 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19231 $as_echo "$as_me: error: $2" >&2
19232 as_fn_exit $as_status
19236 # as_fn_set_status STATUS
19237 # -----------------------
19238 # Set $? to STATUS, without forking.
19239 as_fn_set_status ()
19242 } # as_fn_set_status
19244 # as_fn_exit STATUS
19245 # -----------------
19246 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19250 as_fn_set_status $1
19256 # Portably unset VAR.
19259 { eval $1=; unset $1;}
19261 as_unset=as_fn_unset
19262 # as_fn_append VAR VALUE
19263 # ----------------------
19264 # Append the text in VALUE to the end of the definition contained in VAR. Take
19265 # advantage of any shell optimizations that allow amortized linear growth over
19266 # repeated appends, instead of the typical quadratic growth present in naive
19268 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19269 eval 'as_fn_append ()
19280 # as_fn_arith ARG...
19281 # ------------------
19282 # Perform arithmetic evaluation on the ARGs, and store the result in the
19283 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19284 # must be portable across $(()) and expr.
19285 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19286 eval 'as_fn_arith ()
19293 as_val=`expr "$@" || test $? -eq 1`
19298 if expr a : '\(a\)' >/dev/null 2>&1 &&
19299 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19305 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19306 as_basename=basename
19311 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19317 as_me=`$as_basename -- "$0" ||
19318 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19319 X"$0" : 'X\(//\)$' \| \
19320 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19322 sed '/^.*\/\([^/][^/]*\)\/*$/{
19336 # Avoid depending upon Character Ranges.
19337 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19338 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19339 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19340 as_cr_digits='0123456789'
19341 as_cr_alnum=$as_cr_Letters$as_cr_digits
19343 ECHO_C= ECHO_N= ECHO_T=
19344 case `echo -n x` in #(((((
19346 case `echo 'xy\c'` in
19347 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19349 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19356 rm -f conf$$ conf$$.exe conf$$.file
19357 if test -d conf$$.dir; then
19358 rm -f conf$$.dir/conf$$.file
19361 mkdir conf$$.dir 2>/dev/null
19363 if (echo >conf$$.file) 2>/dev/null; then
19364 if ln -s conf$$.file conf$$ 2>/dev/null; then
19366 # ... but there are two gotchas:
19367 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19368 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19369 # In both cases, we have to default to `cp -pR'.
19370 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19372 elif ln conf$$.file conf$$ 2>/dev/null; then
19380 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19381 rmdir conf$$.dir 2>/dev/null
19386 # Create "$as_dir" as a directory, including parents if necessary.
19391 -*) as_dir=./$as_dir;;
19393 test -d "$as_dir" || eval $as_mkdir_p || {
19397 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19398 *) as_qdir=$as_dir;;
19400 as_dirs="'$as_qdir' $as_dirs"
19401 as_dir=`$as_dirname -- "$as_dir" ||
19402 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19403 X"$as_dir" : 'X\(//\)[^/]' \| \
19404 X"$as_dir" : 'X\(//\)$' \| \
19405 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19406 $as_echo X"$as_dir" |
19407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19411 /^X\(\/\/\)[^/].*/{
19424 test -d "$as_dir" && break
19426 test -z "$as_dirs" || eval "mkdir $as_dirs"
19427 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19431 if mkdir -p . 2>/dev/null; then
19432 as_mkdir_p='mkdir -p "$as_dir"'
19434 test -d ./-p && rmdir ./-p
19439 # as_fn_executable_p FILE
19440 # -----------------------
19441 # Test if FILE is an executable regular file.
19442 as_fn_executable_p ()
19444 test -f "$1" && test -x "$1"
19445 } # as_fn_executable_p
19446 as_test_x='test -x'
19447 as_executable_p=as_fn_executable_p
19449 # Sed expression to map a string onto a valid CPP name.
19450 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19452 # Sed expression to map a string onto a valid variable name.
19453 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19457 ## ----------------------------------- ##
19458 ## Main body of $CONFIG_STATUS script. ##
19459 ## ----------------------------------- ##
19461 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19464 # Save the log message, to keep $0 and so on meaningful, and to
19465 # report actual input values of CONFIG_FILES etc. instead of their
19466 # values after options handling.
19468 This file was extended by fontconfig $as_me 2.13.0, which was
19469 generated by GNU Autoconf 2.69. Invocation command line was
19471 CONFIG_FILES = $CONFIG_FILES
19472 CONFIG_HEADERS = $CONFIG_HEADERS
19473 CONFIG_LINKS = $CONFIG_LINKS
19474 CONFIG_COMMANDS = $CONFIG_COMMANDS
19477 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19482 case $ac_config_files in *"
19483 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19486 case $ac_config_headers in *"
19487 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19492 # Files that config.status was made for.
19493 config_files="$ac_config_files"
19494 config_headers="$ac_config_headers"
19495 config_commands="$ac_config_commands"
19499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19501 \`$as_me' instantiates files and other configuration actions
19502 from templates according to the current configuration. Unless the files
19503 and actions are specified as TAGs, all are instantiated by default.
19505 Usage: $0 [OPTION]... [TAG]...
19507 -h, --help print this help, then exit
19508 -V, --version print version number and configuration settings, then exit
19509 --config print configuration, then exit
19510 -q, --quiet, --silent
19511 do not print progress messages
19512 -d, --debug don't remove temporary files
19513 --recheck update $as_me by reconfiguring in the same conditions
19514 --file=FILE[:TEMPLATE]
19515 instantiate the configuration file FILE
19516 --header=FILE[:TEMPLATE]
19517 instantiate the configuration header FILE
19519 Configuration files:
19522 Configuration headers:
19525 Configuration commands:
19528 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig>."
19531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19532 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19534 fontconfig config.status 2.13.0
19535 configured by $0, generated by GNU Autoconf 2.69,
19536 with options \\"\$ac_cs_config\\"
19538 Copyright (C) 2012 Free Software Foundation, Inc.
19539 This config.status script is free software; the Free Software Foundation
19540 gives unlimited permission to copy, distribute and modify it."
19547 test -n "\$AWK" || AWK=awk
19550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19551 # The default lists apply if the user does not specify any file.
19557 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19558 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19562 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19574 # Handling of the options.
19575 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19577 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19578 $as_echo "$ac_cs_version"; exit ;;
19579 --config | --confi | --conf | --con | --co | --c )
19580 $as_echo "$ac_cs_config"; exit ;;
19581 --debug | --debu | --deb | --de | --d | -d )
19583 --file | --fil | --fi | --f )
19586 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19587 '') as_fn_error $? "missing file argument" ;;
19589 as_fn_append CONFIG_FILES " '$ac_optarg'"
19590 ac_need_defaults=false;;
19591 --header | --heade | --head | --hea )
19594 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19596 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19597 ac_need_defaults=false;;
19599 # Conflict between --help and --header
19600 as_fn_error $? "ambiguous option: \`$1'
19601 Try \`$0 --help' for more information.";;
19602 --help | --hel | -h )
19603 $as_echo "$ac_cs_usage"; exit ;;
19604 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19605 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19608 # This is an error.
19609 -*) as_fn_error $? "unrecognized option: \`$1'
19610 Try \`$0 --help' for more information." ;;
19612 *) as_fn_append ac_config_targets " $1"
19613 ac_need_defaults=false ;;
19619 ac_configure_extra_args=
19621 if $ac_cs_silent; then
19623 ac_configure_extra_args="$ac_configure_extra_args --silent"
19627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19628 if \$ac_cs_recheck; then
19629 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19631 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19632 CONFIG_SHELL='$SHELL'
19633 export CONFIG_SHELL
19638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19642 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19643 ## Running $as_me. ##
19649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19653 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19656 # The HP-UX ksh and POSIX shell print the target directory to stdout
19657 # if CDPATH is set.
19658 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19660 sed_quote_subst='$sed_quote_subst'
19661 double_quote_subst='$double_quote_subst'
19662 delay_variable_subst='$delay_variable_subst'
19663 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19664 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19665 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19666 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19667 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19668 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19669 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19670 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19671 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19672 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19673 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19674 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19675 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19676 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19677 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19678 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19679 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19680 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19681 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19682 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19683 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19684 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19685 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19686 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19687 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19688 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19689 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19690 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19691 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19692 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19693 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19694 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19695 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19696 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19697 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19698 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19699 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19700 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19701 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19702 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19703 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19704 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19705 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19706 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19707 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19708 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19709 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19710 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19711 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19712 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19713 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19714 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19715 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19716 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19717 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19718 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19719 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19720 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19721 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19722 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"`'
19723 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19724 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19725 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19726 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19727 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19728 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19729 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19730 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19731 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19732 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19733 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19734 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19735 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19736 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19737 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19738 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19739 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19740 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19741 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19742 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19743 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19744 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19745 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19746 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19747 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19748 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19749 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19750 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19751 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19752 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19753 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19754 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19755 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19756 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19757 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19758 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19759 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19760 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19761 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19762 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19763 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19764 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19765 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19766 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19767 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19768 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19769 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19770 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19771 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19772 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19773 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19774 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19775 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19776 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19777 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19778 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19779 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19780 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19781 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19782 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19783 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19784 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19785 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19786 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19787 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19788 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19789 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19790 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19791 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19792 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19793 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19794 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19795 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19796 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19797 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19798 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19801 LTCFLAGS='$LTCFLAGS'
19802 compiler='$compiler_DEFAULT'
19804 # A function that is used when there is no print builtin or printf.
19805 func_fallback_echo ()
19807 eval 'cat <<_LTECHO_EOF
19812 # Quote evaled strings.
19829 deplibs_check_method \
19833 sharedlib_from_linklib_cmd \
19836 archiver_list_spec \
19842 lt_cv_sys_global_symbol_pipe \
19843 lt_cv_sys_global_symbol_to_cdecl \
19844 lt_cv_sys_global_symbol_to_import \
19845 lt_cv_sys_global_symbol_to_c_name_address \
19846 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19847 lt_cv_nm_interface \
19848 nm_file_list_spec \
19849 lt_cv_truncate_bin \
19850 lt_prog_compiler_no_builtin_flag \
19851 lt_prog_compiler_pic \
19852 lt_prog_compiler_wl \
19853 lt_prog_compiler_static \
19854 lt_cv_prog_compiler_c_o \
19863 export_dynamic_flag_spec \
19864 whole_archive_flag_spec \
19865 compiler_needs_object \
19867 allow_undefined_flag \
19868 no_undefined_flag \
19869 hardcode_libdir_flag_spec \
19870 hardcode_libdir_separator \
19874 variables_saved_for_relink \
19876 library_names_spec \
19878 install_override_mode \
19882 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19883 *[\\\\\\\`\\"\\\$]*)
19884 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19887 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19892 # Double-quote double-evaled strings.
19893 for var in reload_cmds \
19894 old_postinstall_cmds \
19895 old_postuninstall_cmds \
19897 extract_expsyms_cmds \
19898 old_archive_from_new_cmds \
19899 old_archive_from_expsyms_cmds \
19901 archive_expsym_cmds \
19903 module_expsym_cmds \
19904 export_symbols_cmds \
19908 postuninstall_cmds \
19910 sys_lib_search_path_spec \
19911 configure_time_dlsearch_path \
19912 configure_time_lt_sys_library_path; do
19913 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19914 *[\\\\\\\`\\"\\\$]*)
19915 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19918 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19923 ac_aux_dir='$ac_aux_dir'
19925 # See if we are running on zsh, and set the options that allow our
19926 # commands through without removal of \ escapes INIT.
19927 if test -n "\${ZSH_VERSION+set}"; then
19928 setopt NO_GLOB_SUBST
19939 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19940 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
19941 # from automake < 1.5.
19942 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
19943 # Capture the value of LINGUAS because we need it to compute CATALOGS.
19944 LINGUAS="${LINGUAS-%UNSET%}"
19946 # variables for create stdint.h replacement
19949 ac_stdint_h="$ac_stdint_h"
19950 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
19951 ac_cv_stdint_message="$ac_cv_stdint_message"
19952 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
19953 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
19954 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
19955 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
19956 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
19957 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
19958 ac_cv_char_data_model="$ac_cv_char_data_model"
19959 ac_cv_long_data_model="$ac_cv_long_data_model"
19960 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
19961 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
19962 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
19967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19969 # Handling of arguments.
19970 for ac_config_target in $ac_config_targets
19972 case $ac_config_target in
19973 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19974 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19975 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19976 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
19977 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
19978 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19979 "fontconfig/Makefile") CONFIG_FILES="$CONFIG_FILES fontconfig/Makefile" ;;
19980 "fc-lang/Makefile") CONFIG_FILES="$CONFIG_FILES fc-lang/Makefile" ;;
19981 "fc-case/Makefile") CONFIG_FILES="$CONFIG_FILES fc-case/Makefile" ;;
19982 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19983 "conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES conf.d/Makefile" ;;
19984 "fc-cache/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cache/Makefile" ;;
19985 "fc-cat/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cat/Makefile" ;;
19986 "fc-conflist/Makefile") CONFIG_FILES="$CONFIG_FILES fc-conflist/Makefile" ;;
19987 "fc-list/Makefile") CONFIG_FILES="$CONFIG_FILES fc-list/Makefile" ;;
19988 "fc-match/Makefile") CONFIG_FILES="$CONFIG_FILES fc-match/Makefile" ;;
19989 "fc-pattern/Makefile") CONFIG_FILES="$CONFIG_FILES fc-pattern/Makefile" ;;
19990 "fc-query/Makefile") CONFIG_FILES="$CONFIG_FILES fc-query/Makefile" ;;
19991 "fc-scan/Makefile") CONFIG_FILES="$CONFIG_FILES fc-scan/Makefile" ;;
19992 "fc-validate/Makefile") CONFIG_FILES="$CONFIG_FILES fc-validate/Makefile" ;;
19993 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19994 "doc/version.sgml") CONFIG_FILES="$CONFIG_FILES doc/version.sgml" ;;
19995 "its/Makefile") CONFIG_FILES="$CONFIG_FILES its/Makefile" ;;
19996 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19997 "po-conf/Makefile.in") CONFIG_FILES="$CONFIG_FILES po-conf/Makefile.in" ;;
19998 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
19999 "fontconfig.spec") CONFIG_FILES="$CONFIG_FILES fontconfig.spec" ;;
20000 "fontconfig.pc") CONFIG_FILES="$CONFIG_FILES fontconfig.pc" ;;
20001 "fontconfig-zip") CONFIG_FILES="$CONFIG_FILES fontconfig-zip" ;;
20003 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20008 # If the user did not use the arguments to specify the items to instantiate,
20009 # then the envvar interface is used. Set only those that are not.
20010 # We use the long form for the default assignment because of an extremely
20011 # bizarre bug on SunOS 4.1.3.
20012 if $ac_need_defaults; then
20013 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20014 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20015 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20018 # Have a temporary directory for convenience. Make it in the build tree
20019 # simply because there is no reason against having it here, and in addition,
20020 # creating and moving files from /tmp can sometimes cause problems.
20021 # Hook for its removal unless debugging.
20022 # Note that there is a small window in which the directory will not be cleaned:
20023 # after its creation but before its name has been assigned to `$tmp'.
20027 trap 'exit_status=$?
20028 : "${ac_tmp:=$tmp}"
20029 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20031 trap 'as_fn_exit 1' 1 2 13 15
20033 # Create a (secure) tmp directory for tmp files.
20036 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20040 tmp=./conf$$-$RANDOM
20041 (umask 077 && mkdir "$tmp")
20042 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20045 # Set up the scripts for CONFIG_FILES section.
20046 # No need to generate them if there are no CONFIG_FILES.
20047 # This happens for instance with `./config.status config.h'.
20048 if test -n "$CONFIG_FILES"; then
20051 ac_cr=`echo X | tr X '\015'`
20052 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20053 # But we know of no other shell where ac_cr would be empty at this
20054 # point, so we can use a bashism as a fallback.
20055 if test "x$ac_cr" = x; then
20056 eval ac_cr=\$\'\\r\'
20058 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20059 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20062 ac_cs_awk_cr=$ac_cr
20065 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20070 echo "cat >conf$$subs.awk <<_ACEOF" &&
20071 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20073 } >conf$$subs.sh ||
20074 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20075 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20077 for ac_last_try in false false false false false :; do
20078 . ./conf$$subs.sh ||
20079 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20081 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20082 if test $ac_delim_n = $ac_delim_num; then
20084 elif $ac_last_try; then
20085 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20087 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20090 rm -f conf$$subs.sh
20092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20093 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20097 s/^/S["/; s/!.*/"]=/
20107 s/\(.\{148\}\)..*/\1/
20109 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20114 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20121 s/\(.\{148\}\)..*/\1/
20123 s/["\\]/\\&/g; s/^/"/; s/$/"/
20127 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20132 ' <conf$$subs.awk | sed '
20137 ' >>$CONFIG_STATUS || ac_write_fail=1
20138 rm -f conf$$subs.awk
20139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20141 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20142 for (key in S) S_is_set[key] = 1
20148 nfields = split(line, field, "@")
20150 len = length(field[1])
20151 for (i = 2; i < nfields; i++) {
20153 keylen = length(key)
20154 if (S_is_set[key]) {
20156 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20157 len += length(value) + length(field[++i])
20168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20169 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20170 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20173 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20174 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20177 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20178 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20179 # trailing colons and then remove the whole line if VPATH becomes empty
20180 # (actually we leave an empty line to preserve line numbers).
20181 if test "x$srcdir" = x.; then
20182 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20201 fi # test -n "$CONFIG_FILES"
20203 # Set up the scripts for CONFIG_HEADERS section.
20204 # No need to generate them if there are no CONFIG_HEADERS.
20205 # This happens for instance with `./config.status Makefile'.
20206 if test -n "$CONFIG_HEADERS"; then
20207 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20211 # Transform confdefs.h into an awk script `defines.awk', embedded as
20212 # here-document in config.status, that substitutes the proper values into
20213 # config.h.in to produce config.h.
20215 # Create a delimiter string that does not exist in confdefs.h, to ease
20216 # handling of long lines.
20218 for ac_last_try in false false :; do
20219 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20220 if test -z "$ac_tt"; then
20222 elif $ac_last_try; then
20223 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20225 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20229 # For the awk script, D is an array of macro values keyed by name,
20230 # likewise P contains macro parameters if any. Preserve backslash
20231 # newline sequences.
20233 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20235 s/.\{148\}/&'"$ac_delim"'/g
20238 s/^[ ]*#[ ]*define[ ][ ]*/ /
20245 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20247 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20251 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20252 D["\1"]=" \3\\\\\\n"\\/p
20254 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20259 s/.\{148\}/&'"$ac_delim"'/g
20264 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20267 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20269 ' <confdefs.h | sed '
20270 s/'"$ac_delim"'/"\\\
20271 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20274 for (key in D) D_is_set[key] = 1
20277 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20279 split(line, arg, " ")
20280 if (arg[1] == "#") {
20284 defundef = substr(arg[1], 2)
20287 split(mac1, mac2, "(") #)
20289 prefix = substr(line, 1, index(line, defundef) - 1)
20290 if (D_is_set[macro]) {
20291 # Preserve the white space surrounding the "#".
20292 print prefix "define", macro P[macro] D[macro]
20295 # Replace #undef with comments. This is necessary, for example,
20296 # in the case of _POSIX_SOURCE, which is predefined and required
20297 # on some systems where configure will not decide to define it.
20298 if (defundef == "undef") {
20299 print "/*", prefix defundef, macro, "*/"
20307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20308 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20309 fi # test -n "$CONFIG_HEADERS"
20312 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20317 :[FHLC]) ac_mode=$ac_tag; continue;;
20319 case $ac_mode$ac_tag in
20321 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20322 :[FH]-) ac_tag=-:-;;
20323 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20340 -) ac_f="$ac_tmp/stdin";;
20341 *) # Look for the file first in the build tree, then in the source tree
20342 # (if the path is not absolute). The absolute path cannot be DOS-style,
20343 # because $ac_f cannot contain `:'.
20347 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20349 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20351 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20352 as_fn_append ac_file_inputs " '$ac_f'"
20355 # Let's still pretend it is `configure' which instantiates (i.e., don't
20356 # use $as_me), people would be surprised to read:
20357 # /* config.h. Generated by config.status. */
20358 configure_input='Generated from '`
20359 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20361 if test x"$ac_file" != x-; then
20362 configure_input="$ac_file. $configure_input"
20363 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20364 $as_echo "$as_me: creating $ac_file" >&6;}
20366 # Neutralize special characters interpreted by sed in replacement strings.
20367 case $configure_input in #(
20368 *\&* | *\|* | *\\* )
20369 ac_sed_conf_input=`$as_echo "$configure_input" |
20370 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20371 *) ac_sed_conf_input=$configure_input;;
20375 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20376 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20381 ac_dir=`$as_dirname -- "$ac_file" ||
20382 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20383 X"$ac_file" : 'X\(//\)[^/]' \| \
20384 X"$ac_file" : 'X\(//\)$' \| \
20385 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20386 $as_echo X"$ac_file" |
20387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20391 /^X\(\/\/\)[^/].*/{
20404 as_dir="$ac_dir"; as_fn_mkdir_p
20408 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20410 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20411 # A ".." for each directory in $ac_dir_suffix.
20412 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20413 case $ac_top_builddir_sub in
20414 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20415 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20418 ac_abs_top_builddir=$ac_pwd
20419 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20420 # for backward compatibility:
20421 ac_top_builddir=$ac_top_build_prefix
20424 .) # We are building in place.
20426 ac_top_srcdir=$ac_top_builddir_sub
20427 ac_abs_top_srcdir=$ac_pwd ;;
20428 [\\/]* | ?:[\\/]* ) # Absolute name.
20429 ac_srcdir=$srcdir$ac_dir_suffix;
20430 ac_top_srcdir=$srcdir
20431 ac_abs_top_srcdir=$srcdir ;;
20432 *) # Relative name.
20433 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20434 ac_top_srcdir=$ac_top_build_prefix$srcdir
20435 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20437 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20447 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20448 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20450 ac_MKDIR_P=$MKDIR_P
20452 [\\/$]* | ?:[\\/]* ) ;;
20453 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20458 # If the template does not know about datarootdir, expand it.
20459 # FIXME: This hack should be removed a few years after 2.60.
20460 ac_datarootdir_hack=; ac_datarootdir_seen=
20471 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20472 *datarootdir*) ac_datarootdir_seen=yes;;
20473 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20475 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20478 ac_datarootdir_hack='
20479 s&@datadir@&$datadir&g
20480 s&@docdir@&$docdir&g
20481 s&@infodir@&$infodir&g
20482 s&@localedir@&$localedir&g
20483 s&@mandir@&$mandir&g
20484 s&\\\${datarootdir}&$datarootdir&g' ;;
20488 # Neutralize VPATH when `$srcdir' = `.'.
20489 # Shell code in configure.ac might set extrasub.
20490 # FIXME: do we really want to maintain this feature?
20491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20492 ac_sed_extra="$ac_vpsub
20495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20497 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20498 s|@configure_input@|$ac_sed_conf_input|;t t
20499 s&@top_builddir@&$ac_top_builddir_sub&;t t
20500 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20501 s&@srcdir@&$ac_srcdir&;t t
20502 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20503 s&@top_srcdir@&$ac_top_srcdir&;t t
20504 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20505 s&@builddir@&$ac_builddir&;t t
20506 s&@abs_builddir@&$ac_abs_builddir&;t t
20507 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20508 s&@INSTALL@&$ac_INSTALL&;t t
20509 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20510 $ac_datarootdir_hack
20512 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20513 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20515 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20516 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20517 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20518 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20520 which seems to be undefined. Please make sure it is defined" >&5
20521 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20522 which seems to be undefined. Please make sure it is defined" >&2;}
20524 rm -f "$ac_tmp/stdin"
20526 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20527 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20529 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20535 if test x"$ac_file" != x-; then
20537 $as_echo "/* $configure_input */" \
20538 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20539 } >"$ac_tmp/config.h" \
20540 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20541 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20542 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20543 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20546 mv "$ac_tmp/config.h" "$ac_file" \
20547 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20550 $as_echo "/* $configure_input */" \
20551 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20552 || as_fn_error $? "could not create -" "$LINENO" 5
20554 # Compute "$ac_file"'s index in $config_headers.
20557 for _am_header in $config_headers :; do
20558 case $_am_header in
20559 $_am_arg | $_am_arg:* )
20562 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20565 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20566 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20567 X"$_am_arg" : 'X\(//\)[^/]' \| \
20568 X"$_am_arg" : 'X\(//\)$' \| \
20569 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20570 $as_echo X"$_am_arg" |
20571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20575 /^X\(\/\/\)[^/].*/{
20587 s/.*/./; q'`/stamp-h$_am_stamp_count
20590 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20591 $as_echo "$as_me: executing $ac_file commands" >&6;}
20596 case $ac_file$ac_mode in
20597 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20598 # Older Autoconf quotes --file arguments for eval, but not when files
20599 # are listed without --file. Let's play safe and only enable the eval
20600 # if we detect the quoting.
20601 case $CONFIG_FILES in
20602 *\'*) eval set x "$CONFIG_FILES" ;;
20603 *) set x $CONFIG_FILES ;;
20608 # Strip MF so we end up with the name of the file.
20609 mf=`echo "$mf" | sed -e 's/:.*$//'`
20610 # Check whether this is an Automake generated Makefile or not.
20611 # We used to match only the files named 'Makefile.in', but
20612 # some people rename them; so instead we look at the file content.
20613 # Grep'ing the first line is not enough: some people post-process
20614 # each Makefile.in and add a new line on top of each file to say so.
20615 # Grep'ing the whole file is not good either: AIX grep has a line
20616 # limit of 2048, but all sed's we know have understand at least 4000.
20617 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20618 dirpart=`$as_dirname -- "$mf" ||
20619 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20620 X"$mf" : 'X\(//\)[^/]' \| \
20621 X"$mf" : 'X\(//\)$' \| \
20622 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20628 /^X\(\/\/\)[^/].*/{
20644 # Extract the definition of DEPDIR, am__include, and am__quote
20645 # from the Makefile without running 'make'.
20646 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20647 test -z "$DEPDIR" && continue
20648 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20649 test -z "$am__include" && continue
20650 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20651 # Find all dependency output files, they are included files with
20652 # $(DEPDIR) in their names. We invoke sed twice because it is the
20653 # simplest approach to changing $(DEPDIR) to its actual value in the
20655 for file in `sed -n "
20656 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20657 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20658 # Make sure the directory exists.
20659 test -f "$dirpart/$file" && continue
20660 fdir=`$as_dirname -- "$file" ||
20661 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20662 X"$file" : 'X\(//\)[^/]' \| \
20663 X"$file" : 'X\(//\)$' \| \
20664 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20665 $as_echo X"$file" |
20666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20670 /^X\(\/\/\)[^/].*/{
20683 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20684 # echo "creating $dirpart/$file"
20685 echo '# dummy' > "$dirpart/$file"
20692 # See if we are running on zsh, and set the options that allow our
20693 # commands through without removal of \ escapes.
20694 if test -n "${ZSH_VERSION+set}"; then
20695 setopt NO_GLOB_SUBST
20699 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20702 cat <<_LT_EOF >> "$cfgfile"
20704 # Generated automatically by $as_me ($PACKAGE) $VERSION
20705 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20706 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20708 # Provide generalized library-building support services.
20709 # Written by Gordon Matzigkeit, 1996
20711 # Copyright (C) 2014 Free Software Foundation, Inc.
20712 # This is free software; see the source for copying conditions. There is NO
20713 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20715 # GNU Libtool is free software; you can redistribute it and/or modify
20716 # it under the terms of the GNU General Public License as published by
20717 # the Free Software Foundation; either version 2 of of the License, or
20718 # (at your option) any later version.
20720 # As a special exception to the GNU General Public License, if you
20721 # distribute this file as part of a program or library that is built
20722 # using GNU Libtool, you may include this file under the same
20723 # distribution terms that you use for the rest of that program.
20725 # GNU Libtool is distributed in the hope that it will be useful, but
20726 # WITHOUT ANY WARRANTY; without even the implied warranty of
20727 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20728 # GNU General Public License for more details.
20730 # You should have received a copy of the GNU General Public License
20731 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20734 # The names of the tagged configurations supported by this script.
20737 # Configured defaults for sys_lib_dlsearch_path munging.
20738 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20740 # ### BEGIN LIBTOOL CONFIG
20742 # Which release of libtool.m4 was used?
20743 macro_version=$macro_version
20744 macro_revision=$macro_revision
20746 # Whether or not to build static libraries.
20747 build_old_libs=$enable_static
20749 # Assembler program.
20752 # DLL creation program.
20753 DLLTOOL=$lt_DLLTOOL
20755 # Object dumper program.
20756 OBJDUMP=$lt_OBJDUMP
20758 # Whether or not to build shared libraries.
20759 build_libtool_libs=$enable_shared
20761 # What type of objects to build.
20764 # Whether or not to optimize for fast installation.
20765 fast_install=$enable_fast_install
20767 # Shared archive member basename,for filename based shared library versioning on AIX.
20768 shared_archive_member_spec=$shared_archive_member_spec
20770 # Shell to use when invoking shell scripts.
20773 # An echo program that protects backslashes.
20776 # The PATH separator for the build system.
20777 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20780 host_alias=$host_alias
20784 # The build system.
20785 build_alias=$build_alias
20789 # A sed program that does not truncate output.
20792 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20793 Xsed="\$SED -e 1s/^X//"
20795 # A grep program that handles long lines.
20801 # A literal string matcher.
20804 # A BSD- or MS-compatible name lister.
20807 # Whether we need soft or hard links.
20810 # What is the maximum length of a command?
20811 max_cmd_len=$max_cmd_len
20813 # Object file suffix (normally "o").
20816 # Executable file suffix (normally "").
20819 # whether the shell understands "unset".
20822 # turn spaces into newlines.
20825 # turn newlines into spaces.
20828 # convert \$build file names to \$host format.
20829 to_host_file_cmd=$lt_cv_to_host_file_cmd
20831 # convert \$build files to toolchain format.
20832 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20834 # Method to check whether dependent libraries are shared objects.
20835 deplibs_check_method=$lt_deplibs_check_method
20837 # Command to use when deplibs_check_method = "file_magic".
20838 file_magic_cmd=$lt_file_magic_cmd
20840 # How to find potential files when deplibs_check_method = "file_magic".
20841 file_magic_glob=$lt_file_magic_glob
20843 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20844 want_nocaseglob=$lt_want_nocaseglob
20846 # Command to associate shared and link libraries.
20847 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20852 # Flags to create an archive.
20853 AR_FLAGS=$lt_AR_FLAGS
20855 # How to feed a file listing to the archiver.
20856 archiver_list_spec=$lt_archiver_list_spec
20858 # A symbol stripping program.
20861 # Commands used to install an old-style archive.
20863 old_postinstall_cmds=$lt_old_postinstall_cmds
20864 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20866 # Whether to use a lock for old archive extraction.
20867 lock_old_archive_extraction=$lock_old_archive_extraction
20872 # LTCC compiler flags.
20873 LTCFLAGS=$lt_CFLAGS
20875 # Take the output of nm and produce a listing of raw symbols and C names.
20876 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20878 # Transform the output of nm in a proper C declaration.
20879 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20881 # Transform the output of nm into a list of symbols to manually relocate.
20882 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20884 # Transform the output of nm in a C name address pair.
20885 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20887 # Transform the output of nm in a C name address pair when lib prefix is needed.
20888 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20890 # The name lister interface.
20891 nm_interface=$lt_lt_cv_nm_interface
20893 # Specify filename containing input files for \$NM.
20894 nm_file_list_spec=$lt_nm_file_list_spec
20896 # The root where to search for dependent libraries,and where our libraries should be installed.
20897 lt_sysroot=$lt_sysroot
20899 # Command to truncate a binary pipe.
20900 lt_truncate_bin=$lt_lt_cv_truncate_bin
20902 # The name of the directory that contains temporary libtool files.
20905 # Used to examine libraries when file_magic_cmd begins with "file".
20906 MAGIC_CMD=$MAGIC_CMD
20908 # Must we lock files when doing compilation?
20909 need_locks=$lt_need_locks
20912 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20914 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20915 DSYMUTIL=$lt_DSYMUTIL
20917 # Tool to change global to local symbols on Mac OS X.
20920 # Tool to manipulate fat objects and archives on Mac OS X.
20923 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20926 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20927 OTOOL64=$lt_OTOOL64
20929 # Old archive suffix (normally "a").
20932 # Shared library suffix (normally ".so").
20933 shrext_cmds=$lt_shrext_cmds
20935 # The commands to extract the exported symbol list from a shared archive.
20936 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20938 # Variables whose values should be saved in libtool wrapper scripts and
20939 # restored at link time.
20940 variables_saved_for_relink=$lt_variables_saved_for_relink
20942 # Do we need the "lib" prefix for modules?
20943 need_lib_prefix=$need_lib_prefix
20945 # Do we need a version for libraries?
20946 need_version=$need_version
20948 # Library versioning type.
20949 version_type=$version_type
20951 # Shared library runtime path variable.
20952 runpath_var=$runpath_var
20954 # Shared library path variable.
20955 shlibpath_var=$shlibpath_var
20957 # Is shlibpath searched before the hard-coded library search path?
20958 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20960 # Format of library name prefix.
20961 libname_spec=$lt_libname_spec
20963 # List of archive names. First name is the real one, the rest are links.
20964 # The last name is the one that the linker finds with -lNAME
20965 library_names_spec=$lt_library_names_spec
20967 # The coded name of the library, if different from the real name.
20968 soname_spec=$lt_soname_spec
20970 # Permission mode override for installation of shared libraries.
20971 install_override_mode=$lt_install_override_mode
20973 # Command to use after installation of a shared archive.
20974 postinstall_cmds=$lt_postinstall_cmds
20976 # Command to use after uninstallation of a shared archive.
20977 postuninstall_cmds=$lt_postuninstall_cmds
20979 # Commands used to finish a libtool library installation in a directory.
20980 finish_cmds=$lt_finish_cmds
20982 # As "finish_cmds", except a single script fragment to be evaled but
20984 finish_eval=$lt_finish_eval
20986 # Whether we should hardcode library paths into libraries.
20987 hardcode_into_libs=$hardcode_into_libs
20989 # Compile-time system search path for libraries.
20990 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20992 # Detected run-time system search path for libraries.
20993 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20995 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20996 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20998 # Whether dlopen is supported.
20999 dlopen_support=$enable_dlopen
21001 # Whether dlopen of programs is supported.
21002 dlopen_self=$enable_dlopen_self
21004 # Whether dlopen of statically linked programs is supported.
21005 dlopen_self_static=$enable_dlopen_self_static
21007 # Commands to strip libraries.
21008 old_striplib=$lt_old_striplib
21009 striplib=$lt_striplib
21012 # The linker used to build libraries.
21015 # How to create reloadable object files.
21016 reload_flag=$lt_reload_flag
21017 reload_cmds=$lt_reload_cmds
21019 # Commands used to build an old-style archive.
21020 old_archive_cmds=$lt_old_archive_cmds
21022 # A language specific compiler.
21025 # Is the compiler the GNU compiler?
21028 # Compiler flag to turn off builtin functions.
21029 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21031 # Additional compiler flags for building library objects.
21032 pic_flag=$lt_lt_prog_compiler_pic
21034 # How to pass a linker flag through the compiler.
21035 wl=$lt_lt_prog_compiler_wl
21037 # Compiler flag to prevent dynamic linking.
21038 link_static_flag=$lt_lt_prog_compiler_static
21040 # Does compiler simultaneously support -c and -o options?
21041 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21043 # Whether or not to add -lc for building shared libraries.
21044 build_libtool_need_lc=$archive_cmds_need_lc
21046 # Whether or not to disallow shared libs when runtime libs are static.
21047 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21049 # Compiler flag to allow reflexive dlopens.
21050 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21052 # Compiler flag to generate shared objects directly from archives.
21053 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21055 # Whether the compiler copes with passing no objects directly.
21056 compiler_needs_object=$lt_compiler_needs_object
21058 # Create an old-style archive from a shared archive.
21059 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21061 # Create a temporary old-style archive to link instead of a shared archive.
21062 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21064 # Commands used to build a shared archive.
21065 archive_cmds=$lt_archive_cmds
21066 archive_expsym_cmds=$lt_archive_expsym_cmds
21068 # Commands used to build a loadable module if different from building
21069 # a shared archive.
21070 module_cmds=$lt_module_cmds
21071 module_expsym_cmds=$lt_module_expsym_cmds
21073 # Whether we are building with GNU ld or not.
21074 with_gnu_ld=$lt_with_gnu_ld
21076 # Flag that allows shared libraries with undefined symbols to be built.
21077 allow_undefined_flag=$lt_allow_undefined_flag
21079 # Flag that enforces no undefined symbols.
21080 no_undefined_flag=$lt_no_undefined_flag
21082 # Flag to hardcode \$libdir into a binary during linking.
21083 # This must work even if \$libdir does not exist
21084 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21086 # Whether we need a single "-rpath" flag with a separated argument.
21087 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21089 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21090 # DIR into the resulting binary.
21091 hardcode_direct=$hardcode_direct
21093 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21094 # DIR into the resulting binary and the resulting library dependency is
21095 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21096 # library is relocated.
21097 hardcode_direct_absolute=$hardcode_direct_absolute
21099 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21100 # into the resulting binary.
21101 hardcode_minus_L=$hardcode_minus_L
21103 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21104 # into the resulting binary.
21105 hardcode_shlibpath_var=$hardcode_shlibpath_var
21107 # Set to "yes" if building a shared library automatically hardcodes DIR
21108 # into the library and all subsequent libraries and executables linked
21110 hardcode_automatic=$hardcode_automatic
21112 # Set to yes if linker adds runtime paths of dependent libraries
21113 # to runtime path list.
21114 inherit_rpath=$inherit_rpath
21116 # Whether libtool must link a program against all its dependency libraries.
21117 link_all_deplibs=$link_all_deplibs
21119 # Set to "yes" if exported symbols are required.
21120 always_export_symbols=$always_export_symbols
21122 # The commands to list exported symbols.
21123 export_symbols_cmds=$lt_export_symbols_cmds
21125 # Symbols that should not be listed in the preloaded symbols.
21126 exclude_expsyms=$lt_exclude_expsyms
21128 # Symbols that must always be exported.
21129 include_expsyms=$lt_include_expsyms
21131 # Commands necessary for linking programs (against libraries) with templates.
21132 prelink_cmds=$lt_prelink_cmds
21134 # Commands necessary for finishing linking programs.
21135 postlink_cmds=$lt_postlink_cmds
21137 # Specify filename containing input files.
21138 file_list_spec=$lt_file_list_spec
21140 # How to hardcode a shared library path into an executable.
21141 hardcode_action=$hardcode_action
21143 # ### END LIBTOOL CONFIG
21147 cat <<'_LT_EOF' >> "$cfgfile"
21149 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21151 # func_munge_path_list VARIABLE PATH
21152 # -----------------------------------
21153 # VARIABLE is name of variable containing _space_ separated list of
21154 # directories to be munged by the contents of PATH, which is string
21157 # string "DIR[ DIR]" will be prepended to VARIABLE
21159 # string "DIR[ DIR]" will be appended to VARIABLE
21160 # "DIRP[:DIRP]::[DIRA:]DIRA"
21161 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21162 # "DIRA[ DIRA]" will be appended to VARIABLE
21164 # VARIABLE will be replaced by "DIR[ DIR]"
21165 func_munge_path_list ()
21171 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21174 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21177 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21178 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21181 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21187 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21188 func_cc_basename ()
21190 for cc_temp in $*""; do
21192 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21193 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21198 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21202 # ### END FUNCTIONS SHARED WITH CONFIGURE
21208 cat <<\_LT_EOF >> "$cfgfile"
21209 # AIX sometimes has problems with the GCC collect2 program. For some
21210 # reason, if we set the COLLECT_NAMES environment variable, the problems
21211 # vanish in a puff of smoke.
21212 if test set != "${COLLECT_NAMES+set}"; then
21214 export COLLECT_NAMES
21221 ltmain=$ac_aux_dir/ltmain.sh
21224 # We use sed instead of cat because bash on DJGPP gets confused if
21225 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21226 # text mode, it properly converts lines to CR/LF. This bash problem
21227 # is reportedly fixed, but why not run on old versions too?
21228 sed '$q' "$ltmain" >> "$cfgfile" \
21229 || (rm -f "$cfgfile"; exit 1)
21231 mv -f "$cfgfile" "$ofile" ||
21232 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21236 "po-directories":C)
21237 for ac_file in $CONFIG_FILES; do
21238 # Support "outfile[:infile[:infile...]]"
21240 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21242 # PO directories have a Makefile.in generated from Makefile.in.in.
21243 case "$ac_file" in */Makefile.in)
21244 # Adjust a relative srcdir.
21245 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21246 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
21247 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21248 # In autoconf-2.13 it is called $ac_given_srcdir.
21249 # In autoconf-2.50 it is called $srcdir.
21250 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21251 case "$ac_given_srcdir" in
21252 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21253 /*) top_srcdir="$ac_given_srcdir" ;;
21254 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
21256 # Treat a directory as a PO directory if and only if it has a
21257 # POTFILES.in file. This allows packages to have multiple PO
21258 # directories under different names or in different locations.
21259 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21260 rm -f "$ac_dir/POTFILES"
21261 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21262 gt_tab=`printf '\t'`
21263 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"
21264 POMAKEFILEDEPS="POTFILES.in"
21265 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
21266 # on $ac_dir but don't depend on user-specified configuration
21268 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21269 # The LINGUAS file contains the set of available languages.
21270 if test -n "$OBSOLETE_ALL_LINGUAS"; then
21271 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
21273 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21274 # Hide the ALL_LINGUAS assignment from automake < 1.5.
21275 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21276 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
21278 # The set of available languages was given in configure.in.
21279 # Hide the ALL_LINGUAS assignment from automake < 1.5.
21280 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
21283 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
21284 # Compute UPDATEPOFILES
21285 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
21286 # Compute DUMMYPOFILES
21287 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
21289 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
21290 case "$ac_given_srcdir" in
21292 *) srcdirpre='$(srcdir)/' ;;
21298 for lang in $ALL_LINGUAS; do
21299 POFILES="$POFILES $srcdirpre$lang.po"
21300 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
21301 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
21302 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
21304 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21305 # environment variable.
21307 if test -n "$ALL_LINGUAS"; then
21308 for presentlang in $ALL_LINGUAS; do
21310 if test "%UNSET%" != "$LINGUAS"; then
21311 desiredlanguages="$LINGUAS"
21313 desiredlanguages="$ALL_LINGUAS"
21315 for desiredlang in $desiredlanguages; do
21316 # Use the presentlang catalog if desiredlang is
21317 # a. equal to presentlang, or
21318 # b. a variant of presentlang (because in this case,
21319 # presentlang can be used as a fallback for messages
21320 # which are not translated in the desiredlang catalog).
21321 case "$desiredlang" in
21322 "$presentlang"*) useit=yes;;
21325 if test $useit = yes; then
21326 INST_LINGUAS="$INST_LINGUAS $presentlang"
21331 if test -n "$INST_LINGUAS"; then
21332 for lang in $INST_LINGUAS; do
21333 CATALOGS="$CATALOGS $lang.gmo"
21336 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21337 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"
21338 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
21339 if test -f "$f"; then
21341 *.orig | *.bak | *~) ;;
21342 *) cat "$f" >> "$ac_dir/Makefile" ;;
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
21352 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
21353 ac_stdint=$tmp/_stdint.h
21355 echo "#ifndef" $_ac_stdint_h >$ac_stdint
21356 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
21357 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
21358 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
21359 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
21360 if test "_$ac_cv_header_stdint_t" != "_" ; then
21361 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
21362 echo "#include <stdint.h>" >>$ac_stdint
21363 echo "#endif" >>$ac_stdint
21364 echo "#endif" >>$ac_stdint
21367 cat >>$ac_stdint <<STDINT_EOF
21369 /* ................... shortcircuit part ........................... */
21371 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
21372 #include <stdint.h>
21374 #include <stddef.h>
21376 /* .................... configured part ............................ */
21380 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
21381 if test "_$ac_cv_header_stdint_x" != "_" ; then
21382 ac_header="$ac_cv_header_stdint_x"
21383 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
21385 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
21388 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
21389 if test "_$ac_cv_header_stdint_o" != "_" ; then
21390 ac_header="$ac_cv_header_stdint_o"
21391 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
21393 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
21396 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
21397 if test "_$ac_cv_header_stdint_u" != "_" ; then
21398 ac_header="$ac_cv_header_stdint_u"
21399 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
21401 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
21404 echo "" >>$ac_stdint
21406 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
21407 echo "#include <$ac_header>" >>$ac_stdint
21408 echo "" >>$ac_stdint
21411 echo "/* which 64bit typedef has been found */" >>$ac_stdint
21412 if test "$ac_cv_type_uint64_t" = "yes" ; then
21413 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
21415 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
21417 if test "$ac_cv_type_u_int64_t" = "yes" ; then
21418 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
21420 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
21422 echo "" >>$ac_stdint
21424 echo "/* which type model has been detected */" >>$ac_stdint
21425 if test "_$ac_cv_char_data_model" != "_" ; then
21426 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
21427 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
21429 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
21430 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
21432 echo "" >>$ac_stdint
21434 echo "/* whether int_least types were detected */" >>$ac_stdint
21435 if test "$ac_cv_type_int_least32_t" = "yes"; then
21436 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
21438 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
21440 echo "/* whether int_fast types were detected */" >>$ac_stdint
21441 if test "$ac_cv_type_int_fast32_t" = "yes"; then
21442 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
21444 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
21446 echo "/* whether intmax_t type was detected */" >>$ac_stdint
21447 if test "$ac_cv_type_intmax_t" = "yes"; then
21448 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
21450 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
21452 echo "" >>$ac_stdint
21454 cat >>$ac_stdint <<STDINT_EOF
21455 /* .................... detections part ............................ */
21457 /* whether we need to define bitspecific types from compiler base types */
21458 #ifndef _STDINT_HEADER_INTPTR
21459 #ifndef _STDINT_HEADER_UINT32
21460 #ifndef _STDINT_HEADER_U_INT32
21461 #define _STDINT_NEED_INT_MODEL_T
21463 #define _STDINT_HAVE_U_INT_TYPES
21468 #ifdef _STDINT_HAVE_U_INT_TYPES
21469 #undef _STDINT_NEED_INT_MODEL_T
21472 #ifdef _STDINT_CHAR_MODEL
21473 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
21474 #ifndef _STDINT_BYTE_MODEL
21475 #define _STDINT_BYTE_MODEL 12
21480 #ifndef _STDINT_HAVE_INT_LEAST32_T
21481 #define _STDINT_NEED_INT_LEAST_T
21484 #ifndef _STDINT_HAVE_INT_FAST32_T
21485 #define _STDINT_NEED_INT_FAST_T
21488 #ifndef _STDINT_HEADER_INTPTR
21489 #define _STDINT_NEED_INTPTR_T
21490 #ifndef _STDINT_HAVE_INTMAX_T
21491 #define _STDINT_NEED_INTMAX_T
21496 /* .................... definition part ............................ */
21498 /* some system headers have good uint64_t */
21499 #ifndef _HAVE_UINT64_T
21500 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
21501 #define _HAVE_UINT64_T
21502 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
21503 #define _HAVE_UINT64_T
21504 typedef u_int64_t uint64_t;
21508 #ifndef _HAVE_UINT64_T
21509 /* .. here are some common heuristics using compiler runtime specifics */
21510 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
21511 #define _HAVE_UINT64_T
21512 #define _HAVE_LONGLONG_UINT64_T
21513 typedef long long int64_t;
21514 typedef unsigned long long uint64_t;
21516 #elif !defined __STRICT_ANSI__
21517 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
21518 #define _HAVE_UINT64_T
21519 typedef __int64 int64_t;
21520 typedef unsigned __int64 uint64_t;
21522 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
21523 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
21524 #if !defined _NO_LONGLONG
21525 #define _HAVE_UINT64_T
21526 #define _HAVE_LONGLONG_UINT64_T
21527 typedef long long int64_t;
21528 typedef unsigned long long uint64_t;
21531 #elif defined __alpha || (defined __mips && defined _ABIN32)
21532 #if !defined _NO_LONGLONG
21533 typedef long int64_t;
21534 typedef unsigned long uint64_t;
21536 /* compiler/cpu type to define int64_t */
21541 #if defined _STDINT_HAVE_U_INT_TYPES
21542 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
21543 typedef u_int8_t uint8_t;
21544 typedef u_int16_t uint16_t;
21545 typedef u_int32_t uint32_t;
21547 /* glibc compatibility */
21548 #ifndef __int8_t_defined
21549 #define __int8_t_defined
21553 #ifdef _STDINT_NEED_INT_MODEL_T
21554 /* we must guess all the basic types. Apart from byte-adressable system, */
21555 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
21556 /* (btw, those nibble-addressable systems are way off, or so we assume) */
21559 #if defined _STDINT_BYTE_MODEL
21560 #if _STDINT_LONG_MODEL+0 == 242
21561 /* 2:4:2 = IP16 = a normal 16-bit system */
21562 typedef unsigned char uint8_t;
21563 typedef unsigned short uint16_t;
21564 typedef unsigned long uint32_t;
21565 #ifndef __int8_t_defined
21566 #define __int8_t_defined
21567 typedef char int8_t;
21568 typedef short int16_t;
21569 typedef long int32_t;
21571 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
21572 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
21573 /* 4:4:4 = ILP32 = a normal 32-bit system */
21574 typedef unsigned char uint8_t;
21575 typedef unsigned short uint16_t;
21576 typedef unsigned int uint32_t;
21577 #ifndef __int8_t_defined
21578 #define __int8_t_defined
21579 typedef char int8_t;
21580 typedef short int16_t;
21581 typedef int int32_t;
21583 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
21584 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
21585 /* 4:8:8 = LP64 = a normal 64-bit system */
21586 typedef unsigned char uint8_t;
21587 typedef unsigned short uint16_t;
21588 typedef unsigned int uint32_t;
21589 #ifndef __int8_t_defined
21590 #define __int8_t_defined
21591 typedef char int8_t;
21592 typedef short int16_t;
21593 typedef int int32_t;
21595 /* this system has a "long" of 64bit */
21596 #ifndef _HAVE_UINT64_T
21597 #define _HAVE_UINT64_T
21598 typedef unsigned long uint64_t;
21599 typedef long int64_t;
21601 #elif _STDINT_LONG_MODEL+0 == 448
21602 /* LLP64 a 64-bit system derived from a 32-bit system */
21603 typedef unsigned char uint8_t;
21604 typedef unsigned short uint16_t;
21605 typedef unsigned int uint32_t;
21606 #ifndef __int8_t_defined
21607 #define __int8_t_defined
21608 typedef char int8_t;
21609 typedef short int16_t;
21610 typedef int int32_t;
21612 /* assuming the system has a "long long" */
21613 #ifndef _HAVE_UINT64_T
21614 #define _HAVE_UINT64_T
21615 #define _HAVE_LONGLONG_UINT64_T
21616 typedef unsigned long long uint64_t;
21617 typedef long long int64_t;
21620 #define _STDINT_NO_INT32_T
21623 #define _STDINT_NO_INT8_T
21624 #define _STDINT_NO_INT32_T
21629 * quote from SunOS-5.8 sys/inttypes.h:
21630 * Use at your own risk. As of February 1996, the committee is squarely
21631 * behind the fixed sized types; the "least" and "fast" types are still being
21632 * discussed. The probability that the "fast" types may be removed before
21633 * the standard is finalized is high enough that they are not currently
21637 #if defined _STDINT_NEED_INT_LEAST_T
21638 typedef int8_t int_least8_t;
21639 typedef int16_t int_least16_t;
21640 typedef int32_t int_least32_t;
21641 #ifdef _HAVE_UINT64_T
21642 typedef int64_t int_least64_t;
21645 typedef uint8_t uint_least8_t;
21646 typedef uint16_t uint_least16_t;
21647 typedef uint32_t uint_least32_t;
21648 #ifdef _HAVE_UINT64_T
21649 typedef uint64_t uint_least64_t;
21654 #if defined _STDINT_NEED_INT_FAST_T
21655 typedef int8_t int_fast8_t;
21656 typedef int int_fast16_t;
21657 typedef int32_t int_fast32_t;
21658 #ifdef _HAVE_UINT64_T
21659 typedef int64_t int_fast64_t;
21662 typedef uint8_t uint_fast8_t;
21663 typedef unsigned uint_fast16_t;
21664 typedef uint32_t uint_fast32_t;
21665 #ifdef _HAVE_UINT64_T
21666 typedef uint64_t uint_fast64_t;
21671 #ifdef _STDINT_NEED_INTMAX_T
21672 #ifdef _HAVE_UINT64_T
21673 typedef int64_t intmax_t;
21674 typedef uint64_t uintmax_t;
21676 typedef long intmax_t;
21677 typedef unsigned long uintmax_t;
21681 #ifdef _STDINT_NEED_INTPTR_T
21682 #ifndef __intptr_t_defined
21683 #define __intptr_t_defined
21684 /* we encourage using "long" to store pointer values, never use "int" ! */
21685 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
21686 typedef unsigned int uintptr_t;
21687 typedef int intptr_t;
21688 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
21689 typedef unsigned long uintptr_t;
21690 typedef long intptr_t;
21691 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
21692 typedef uint64_t uintptr_t;
21693 typedef int64_t intptr_t;
21694 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
21695 typedef unsigned long uintptr_t;
21696 typedef long intptr_t;
21701 /* The ISO C99 standard specifies that in C++ implementations these
21702 should only be defined if explicitly requested. */
21703 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
21707 # define INT8_C(c) c
21708 # define INT16_C(c) c
21709 # define INT32_C(c) c
21710 # ifdef _HAVE_LONGLONG_UINT64_T
21711 # define INT64_C(c) c ## L
21713 # define INT64_C(c) c ## LL
21717 # define UINT8_C(c) c ## U
21718 # define UINT16_C(c) c ## U
21719 # define UINT32_C(c) c ## U
21720 # ifdef _HAVE_LONGLONG_UINT64_T
21721 # define UINT64_C(c) c ## UL
21723 # define UINT64_C(c) c ## ULL
21726 /* Maximal type. */
21727 # ifdef _HAVE_LONGLONG_UINT64_T
21728 # define INTMAX_C(c) c ## L
21729 # define UINTMAX_C(c) c ## UL
21731 # define INTMAX_C(c) c ## LL
21732 # define UINTMAX_C(c) c ## ULL
21735 /* literalnumbers */
21739 /* These limits are merily those of a two complement byte-oriented system */
21741 /* Minimum of signed integral types. */
21742 # define INT8_MIN (-128)
21743 # define INT16_MIN (-32767-1)
21744 # define INT32_MIN (-2147483647-1)
21745 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
21746 /* Maximum of signed integral types. */
21747 # define INT8_MAX (127)
21748 # define INT16_MAX (32767)
21749 # define INT32_MAX (2147483647)
21750 # define INT64_MAX (__INT64_C(9223372036854775807))
21752 /* Maximum of unsigned integral types. */
21753 # define UINT8_MAX (255)
21754 # define UINT16_MAX (65535)
21755 # define UINT32_MAX (4294967295U)
21756 # define UINT64_MAX (__UINT64_C(18446744073709551615))
21758 /* Minimum of signed integral types having a minimum size. */
21759 # define INT_LEAST8_MIN INT8_MIN
21760 # define INT_LEAST16_MIN INT16_MIN
21761 # define INT_LEAST32_MIN INT32_MIN
21762 # define INT_LEAST64_MIN INT64_MIN
21763 /* Maximum of signed integral types having a minimum size. */
21764 # define INT_LEAST8_MAX INT8_MAX
21765 # define INT_LEAST16_MAX INT16_MAX
21766 # define INT_LEAST32_MAX INT32_MAX
21767 # define INT_LEAST64_MAX INT64_MAX
21769 /* Maximum of unsigned integral types having a minimum size. */
21770 # define UINT_LEAST8_MAX UINT8_MAX
21771 # define UINT_LEAST16_MAX UINT16_MAX
21772 # define UINT_LEAST32_MAX UINT32_MAX
21773 # define UINT_LEAST64_MAX UINT64_MAX
21782 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
21784 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
21786 ac_dir=`$as_dirname -- "$ac_stdint_h" ||
21787 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21788 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
21789 X"$ac_stdint_h" : 'X\(//\)$' \| \
21790 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
21791 $as_echo X"$ac_stdint_h" |
21792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21796 /^X\(\/\/\)[^/].*/{
21809 as_dir="$ac_dir"; as_fn_mkdir_p
21811 mv $ac_stdint $ac_stdint_h
21821 ac_clean_files=$ac_clean_files_save
21823 test $ac_write_fail = 0 ||
21824 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21827 # configure is writing to config.log, and then calls config.status.
21828 # config.status does its own redirection, appending to config.log.
21829 # Unfortunately, on DOS this fails, as config.log is still kept open
21830 # by configure, so config.status won't be able to write to it; its
21831 # output is simply discarded. So we exec the FD to /dev/null,
21832 # effectively closing config.log, so it can be properly (re)opened and
21833 # appended to by config.status. When coming back to configure, we
21834 # need to make the FD available again.
21835 if test "$no_create" != yes; then
21837 ac_config_status_args=
21838 test "$silent" = yes &&
21839 ac_config_status_args="$ac_config_status_args --quiet"
21841 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21843 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21844 # would make configure fail if this is the last instruction.
21845 $ac_cs_success || as_fn_exit 1
21847 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21849 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}