2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for fontconfig 2.12.1.
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.12.1'
595 PACKAGE_STRING='fontconfig 2.12.1'
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>
636 ac_subst_vars='am__EXEEXT_FALSE
640 PKGCONFIG_REQUIRES_PRIVATELY
676 CROSS_COMPILING_FALSE
681 MS_LIB_AVAILABLE_FALSE
682 MS_LIB_AVAILABLE_TRUE
686 LIBT_CURRENT_MINUS_AGE
769 INSTALL_STRIP_PROGRAM
811 program_transform_name
824 enable_option_checking
826 enable_dependency_tracking
840 with_libiconv_includes
856 ac_precious_vars='build_alias
879 # Initialize some variables set by options.
881 ac_init_version=false
882 ac_unrecognized_opts=
884 # The variables have the same names as the options, with
885 # dashes changed to underlines.
893 program_transform_name=s,x,x,
901 # Installation directory options.
902 # These are left unexpanded so users can "make install exec_prefix=/foo"
903 # and all the variables that are supposed to be based on exec_prefix
904 # by default will actually change.
905 # Use braces instead of parens because sh, perl, etc. also accept them.
906 # (The list follows the same order as the GNU Coding Standards.)
907 bindir='${exec_prefix}/bin'
908 sbindir='${exec_prefix}/sbin'
909 libexecdir='${exec_prefix}/libexec'
910 datarootdir='${prefix}/share'
911 datadir='${datarootdir}'
912 sysconfdir='${prefix}/etc'
913 sharedstatedir='${prefix}/com'
914 localstatedir='${prefix}/var'
915 includedir='${prefix}/include'
916 oldincludedir='/usr/include'
917 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
918 infodir='${datarootdir}/info'
923 libdir='${exec_prefix}/lib'
924 localedir='${datarootdir}/locale'
925 mandir='${datarootdir}/man'
931 # If the previous option needs an argument, assign it.
932 if test -n "$ac_prev"; then
933 eval $ac_prev=\$ac_option
939 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
944 # Accept the important Cygnus configure options, so we can diagnose typos.
946 case $ac_dashdash$ac_option in
950 -bindir | --bindir | --bindi | --bind | --bin | --bi)
952 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
955 -build | --build | --buil | --bui | --bu)
956 ac_prev=build_alias ;;
957 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
958 build_alias=$ac_optarg ;;
960 -cache-file | --cache-file | --cache-fil | --cache-fi \
961 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
962 ac_prev=cache_file ;;
963 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
964 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
965 cache_file=$ac_optarg ;;
968 cache_file=config.cache ;;
970 -datadir | --datadir | --datadi | --datad)
972 -datadir=* | --datadir=* | --datadi=* | --datad=*)
973 datadir=$ac_optarg ;;
975 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
976 | --dataroo | --dataro | --datar)
977 ac_prev=datarootdir ;;
978 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
979 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
980 datarootdir=$ac_optarg ;;
982 -disable-* | --disable-*)
983 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986 as_fn_error $? "invalid feature name: $ac_useropt"
987 ac_useropt_orig=$ac_useropt
988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
994 ac_unrecognized_sep=', ';;
996 eval enable_$ac_useropt=no ;;
998 -docdir | --docdir | --docdi | --doc | --do)
1000 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001 docdir=$ac_optarg ;;
1003 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1005 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006 dvidir=$ac_optarg ;;
1008 -enable-* | --enable-*)
1009 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 as_fn_error $? "invalid feature name: $ac_useropt"
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1017 "enable_$ac_useropt"
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1022 eval enable_$ac_useropt=\$ac_optarg ;;
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
1031 exec_prefix=$ac_optarg ;;
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
1044 -host | --host | --hos | --ho)
1045 ac_prev=host_alias ;;
1046 -host=* | --host=* | --hos=* | --ho=*)
1047 host_alias=$ac_optarg ;;
1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053 htmldir=$ac_optarg ;;
1055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
1060 includedir=$ac_optarg ;;
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065 infodir=$ac_optarg ;;
1067 -libdir | --libdir | --libdi | --libd)
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070 libdir=$ac_optarg ;;
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
1077 libexecdir=$ac_optarg ;;
1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1084 -localstatedir | --localstatedir | --localstatedi | --localstated \
1085 | --localstate | --localstat | --localsta | --localst | --locals)
1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089 localstatedir=$ac_optarg ;;
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094 mandir=$ac_optarg ;;
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101 | --no-cr | --no-c | -n)
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115 oldincludedir=$ac_optarg ;;
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120 prefix=$ac_optarg ;;
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127 program_prefix=$ac_optarg ;;
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134 program_suffix=$ac_optarg ;;
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
1151 program_transform_name=$ac_optarg ;;
1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1158 -psdir | --psdir | --psdi | --psd | --ps)
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171 sbindir=$ac_optarg ;;
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182 sharedstatedir=$ac_optarg ;;
1184 -site | --site | --sit)
1186 -site=* | --site=* | --sit=*)
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192 srcdir=$ac_optarg ;;
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199 sysconfdir=$ac_optarg ;;
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
1202 ac_prev=target_alias ;;
1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204 target_alias=$ac_optarg ;;
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
1213 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 as_fn_error $? "invalid package name: $ac_useropt"
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1226 eval with_$ac_useropt=\$ac_optarg ;;
1228 -without-* | --without-*)
1229 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 as_fn_error $? "invalid package name: $ac_useropt"
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1242 eval with_$ac_useropt=no ;;
1245 # Obsolete; use --with-x.
1248 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249 | --x-incl | --x-inc | --x-in | --x-i)
1250 ac_prev=x_includes ;;
1251 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253 x_includes=$ac_optarg ;;
1255 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257 ac_prev=x_libraries ;;
1258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260 x_libraries=$ac_optarg ;;
1262 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1263 Try \`$0 --help' for more information"
1267 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268 # Reject names that are not valid shell variable names.
1269 case $ac_envvar in #(
1270 '' | [0-9]* | *[!_$as_cr_alnum]* )
1271 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1273 eval $ac_envvar=\$ac_optarg
1274 export $ac_envvar ;;
1277 # FIXME: should be removed in autoconf 3.0.
1278 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1287 if test -n "$ac_prev"; then
1288 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289 as_fn_error $? "missing argument to $ac_option"
1292 if test -n "$ac_unrecognized_opts"; then
1293 case $enable_option_checking in
1295 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1296 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1300 # Check all directory arguments for consistency.
1301 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302 datadir sysconfdir sharedstatedir localstatedir includedir \
1303 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304 libdir localedir mandir
1306 eval ac_val=\$$ac_var
1307 # Remove trailing slashes.
1310 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1311 eval $ac_var=\$ac_val;;
1313 # Be sure to have absolute directory names.
1315 [\\/$]* | ?:[\\/]* ) continue;;
1316 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1318 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1321 # There might be people who depend on the old broken behavior: `$host'
1322 # used to hold the argument of --host etc.
1323 # FIXME: To remove some day.
1326 target=$target_alias
1328 # FIXME: To remove some day.
1329 if test "x$host_alias" != x; then
1330 if test "x$build_alias" = x; then
1331 cross_compiling=maybe
1332 elif test "x$build_alias" != "x$host_alias"; then
1338 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1340 test "$silent" = yes && exec 6>/dev/null
1343 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1344 ac_ls_di=`ls -di .` &&
1345 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1346 as_fn_error $? "working directory cannot be determined"
1347 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1348 as_fn_error $? "pwd does not report name of working directory"
1351 # Find the source files, if location was not specified.
1352 if test -z "$srcdir"; then
1353 ac_srcdir_defaulted=yes
1354 # Try the directory containing this script, then the parent directory.
1355 ac_confdir=`$as_dirname -- "$as_myself" ||
1356 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357 X"$as_myself" : 'X\(//\)[^/]' \| \
1358 X"$as_myself" : 'X\(//\)$' \| \
1359 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1360 $as_echo X"$as_myself" |
1361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1383 ac_srcdir_defaulted=no
1385 if test ! -r "$srcdir/$ac_unique_file"; then
1386 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1387 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1389 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1391 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1393 # When building in place, set srcdir=.
1394 if test "$ac_abs_confdir" = "$ac_pwd"; then
1397 # Remove unnecessary trailing slashes from srcdir.
1398 # Double slashes in file names in object file debugging info
1399 # mess up M-x gdb in Emacs.
1401 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403 for ac_var in $ac_precious_vars; do
1404 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_env_${ac_var}_value=\$${ac_var}
1406 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1411 # Report the --help message.
1413 if test "$ac_init_help" = "long"; then
1414 # Omit some internal or obsolete options to make the list less imposing.
1415 # This message is too long to be a string in the A/UX 3.1 sh.
1417 \`configure' configures fontconfig 2.12.1 to adapt to many kinds of systems.
1419 Usage: $0 [OPTION]... [VAR=VALUE]...
1421 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422 VAR=VALUE. See below for descriptions of some of the useful variables.
1424 Defaults for the options are specified in brackets.
1427 -h, --help display this help and exit
1428 --help=short display options specific to this package
1429 --help=recursive display the short help of all the included packages
1430 -V, --version display version information and exit
1431 -q, --quiet, --silent do not print \`checking ...' messages
1432 --cache-file=FILE cache test results in FILE [disabled]
1433 -C, --config-cache alias for \`--cache-file=config.cache'
1434 -n, --no-create do not create output files
1435 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1437 Installation directories:
1438 --prefix=PREFIX install architecture-independent files in PREFIX
1439 [$ac_default_prefix]
1440 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1443 By default, \`make install' will install all the files in
1444 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1445 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446 for instance \`--prefix=\$HOME'.
1448 For better control, use the options below.
1450 Fine tuning of the installation directories:
1451 --bindir=DIR user executables [EPREFIX/bin]
1452 --sbindir=DIR system admin executables [EPREFIX/sbin]
1453 --libexecdir=DIR program executables [EPREFIX/libexec]
1454 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1455 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1456 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1457 --libdir=DIR object code libraries [EPREFIX/lib]
1458 --includedir=DIR C header files [PREFIX/include]
1459 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1462 --infodir=DIR info documentation [DATAROOTDIR/info]
1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1464 --mandir=DIR man documentation [DATAROOTDIR/man]
1465 --docdir=DIR documentation root [DATAROOTDIR/doc/fontconfig]
1466 --htmldir=DIR html documentation [DOCDIR]
1467 --dvidir=DIR dvi documentation [DOCDIR]
1468 --pdfdir=DIR pdf documentation [DOCDIR]
1469 --psdir=DIR ps documentation [DOCDIR]
1475 --program-prefix=PREFIX prepend PREFIX to installed program names
1476 --program-suffix=SUFFIX append SUFFIX to installed program names
1477 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1480 --build=BUILD configure for building on BUILD [guessed]
1481 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1485 if test -n "$ac_init_help"; then
1486 case $ac_init_help in
1487 short | recursive ) echo "Configuration of fontconfig 2.12.1:";;
1492 --disable-option-checking ignore unrecognized --enable/--with options
1493 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1494 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1495 --enable-silent-rules less verbose build output (undo: "make V=1")
1496 --disable-silent-rules verbose build output (undo: "make V=0")
1497 --enable-dependency-tracking
1498 do not reject slow dependency extractors
1499 --disable-dependency-tracking
1500 speeds up one-time build
1501 --disable-largefile omit support for large files
1502 --enable-static[=PKGS] build static libraries [default=no]
1503 --enable-shared[=PKGS] build shared libraries [default=yes]
1504 --enable-fast-install[=PKGS]
1505 optimize for fast installation [default=yes]
1506 --disable-libtool-lock avoid locking (might break parallel builds)
1507 --enable-iconv Use iconv to support non-Unicode SFNT name
1508 --enable-libxml2 Use libxml2 instead of Expat
1509 --disable-docs Don't build and install documentation
1512 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1513 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1514 --with-pkgconfigdir pkg-config installation directory
1515 ['${libdir}/pkgconfig']
1516 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1518 --with-aix-soname=aix|svr4|both
1519 shared library versioning (aka "SONAME") variant to
1520 provide on AIX, [default=aix].
1521 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1522 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1523 compiler's sysroot if not specified).
1524 --with-arch=ARCH Force architecture to ARCH
1525 --with-libiconv=DIR Use libiconv in DIR
1526 --with-libiconv-includes=DIR
1527 Use libiconv includes in DIR
1528 --with-libiconv-lib=DIR Use libiconv library in DIR
1529 --with-expat=DIR Use Expat in DIR
1530 --with-expat-includes=DIR
1531 Use Expat includes in DIR
1532 --with-expat-lib=DIR
1533 --with-default-hinting=NAME
1534 Enable your preferred hinting configuration
1535 (none/slight/medium/full) [default=slight]
1536 --with-default-fonts=DIR
1537 Use fonts from DIR when config is busted
1538 --with-add-fonts=DIR1,DIR2,...
1539 Find additional fonts in DIR1,DIR2,...
1540 --with-cache-dir=DIR Use DIR to store cache files
1541 [default=LOCALSTATEDIR/cache/fontconfig]
1542 --with-templatedir=DIR Use DIR to store the configuration template files
1543 [default=DATADIR/fontconfig/conf.avail]
1544 --with-baseconfigdir=DIR
1545 Use DIR to store the base configuration files
1546 [default=SYSCONFDIR/fonts]
1547 --with-configdir=DIR Use DIR to store active configuration files
1548 [default=BASECONFIGDIR/conf.d]
1549 --with-xmldir=DIR Use DIR to store XML schema files
1550 [default=DATADIR/xml/fontconfig]
1552 Some influential environment variables:
1553 CC C compiler command
1554 CFLAGS C compiler flags
1555 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1556 nonstandard directory <lib dir>
1557 LIBS libraries to pass to the linker, e.g. -l<library>
1558 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1559 you have headers in a nonstandard directory <include dir>
1561 PKG_CONFIG path to pkg-config utility
1563 directories to add to pkg-config's search path
1565 path overriding pkg-config's built-in search path
1566 PYTHON the Python interpreter
1568 User-defined run-time library search path.
1570 build system C compiler
1572 C compiler flags for FREETYPE, overriding pkg-config
1574 linker flags for FREETYPE, overriding pkg-config
1576 C compiler flags for EXPAT, overriding pkg-config
1577 EXPAT_LIBS linker flags for EXPAT, overriding pkg-config
1579 C compiler flags for LIBXML2, overriding pkg-config
1581 linker flags for LIBXML2, overriding pkg-config
1583 Use these variables to override the choices made by `configure' or to help
1584 it to find libraries and programs with nonstandard names/locations.
1586 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig>.
1591 if test "$ac_init_help" = "recursive"; then
1592 # If there are subdirs, report their specific --help.
1593 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1594 test -d "$ac_dir" ||
1595 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1600 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1603 # A ".." for each directory in $ac_dir_suffix.
1604 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1605 case $ac_top_builddir_sub in
1606 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1610 ac_abs_top_builddir=$ac_pwd
1611 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1612 # for backward compatibility:
1613 ac_top_builddir=$ac_top_build_prefix
1616 .) # We are building in place.
1618 ac_top_srcdir=$ac_top_builddir_sub
1619 ac_abs_top_srcdir=$ac_pwd ;;
1620 [\\/]* | ?:[\\/]* ) # Absolute name.
1621 ac_srcdir=$srcdir$ac_dir_suffix;
1622 ac_top_srcdir=$srcdir
1623 ac_abs_top_srcdir=$srcdir ;;
1625 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1626 ac_top_srcdir=$ac_top_build_prefix$srcdir
1627 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1629 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1631 cd "$ac_dir" || { ac_status=$?; continue; }
1632 # Check for guested configure.
1633 if test -f "$ac_srcdir/configure.gnu"; then
1635 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1636 elif test -f "$ac_srcdir/configure"; then
1638 $SHELL "$ac_srcdir/configure" --help=recursive
1640 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1642 cd "$ac_pwd" || { ac_status=$?; break; }
1646 test -n "$ac_init_help" && exit $ac_status
1647 if $ac_init_version; then
1649 fontconfig configure 2.12.1
1650 generated by GNU Autoconf 2.69
1652 Copyright (C) 2012 Free Software Foundation, Inc.
1653 This configure script is free software; the Free Software Foundation
1654 gives unlimited permission to copy, distribute and modify it.
1659 ## ------------------------ ##
1660 ## Autoconf initialization. ##
1661 ## ------------------------ ##
1663 # ac_fn_c_try_compile LINENO
1664 # --------------------------
1665 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1666 ac_fn_c_try_compile ()
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 rm -f conftest.$ac_objext
1670 if { { ac_try="$ac_compile"
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_compile") 2>conftest.err
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1681 cat conftest.er1 >&5
1682 mv -f conftest.er1 conftest.err
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } && {
1686 test -z "$ac_c_werror_flag" ||
1687 test ! -s conftest.err
1688 } && test -s conftest.$ac_objext; then :
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1699 } # ac_fn_c_try_compile
1701 # ac_fn_c_try_cpp LINENO
1702 # ----------------------
1703 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 if { { ac_try="$ac_cpp conftest.$ac_ext"
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1716 if test -s conftest.err; then
1717 grep -v '^ *+' conftest.err >conftest.er1
1718 cat conftest.er1 >&5
1719 mv -f conftest.er1 conftest.err
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } > conftest.i && {
1723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1724 test ! -s conftest.err
1728 $as_echo "$as_me: failed program was:" >&5
1729 sed 's/^/| /' conftest.$ac_ext >&5
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 as_fn_set_status $ac_retval
1738 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1739 # -------------------------------------------------------
1740 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1741 # the include files in INCLUDES and setting the cache variable VAR
1743 ac_fn_c_check_header_mongrel ()
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 if eval \${$3+:} false; then :
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 $as_echo_n "checking for $2... " >&6; }
1749 if eval \${$3+:} false; then :
1750 $as_echo_n "(cached) " >&6
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754 $as_echo "$ac_res" >&6; }
1756 # Is the header compilable?
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1758 $as_echo_n "checking $2 usability... " >&6; }
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1764 if ac_fn_c_try_compile "$LINENO"; then :
1765 ac_header_compiler=yes
1767 ac_header_compiler=no
1769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1771 $as_echo "$ac_header_compiler" >&6; }
1773 # Is the header present?
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1775 $as_echo_n "checking $2 presence... " >&6; }
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1780 if ac_fn_c_try_cpp "$LINENO"; then :
1781 ac_header_preproc=yes
1783 ac_header_preproc=no
1785 rm -f conftest.err conftest.i conftest.$ac_ext
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1787 $as_echo "$ac_header_preproc" >&6; }
1789 # So? What about this header?
1790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1793 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1795 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1799 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1801 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1803 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1805 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1807 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1808 ( $as_echo "## ---------------------------------------------------------------------------- ##
1809 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig ##
1810 ## ---------------------------------------------------------------------------- ##"
1811 ) | sed "s/^/$as_me: WARNING: /" >&2
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 $as_echo_n "checking for $2... " >&6; }
1816 if eval \${$3+:} false; then :
1817 $as_echo_n "(cached) " >&6
1819 eval "$3=\$ac_header_compiler"
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 } # ac_fn_c_check_header_mongrel
1829 # ac_fn_c_try_run LINENO
1830 # ----------------------
1831 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1832 # that executables *can* be run.
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 if { { ac_try="$ac_link"
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_link") 2>&5
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1847 { { case "(($ac_try" in
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_try") 2>&5
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; }; }; then :
1859 $as_echo "$as_me: program exited with status $ac_status" >&5
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1863 ac_retval=$ac_status
1865 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867 as_fn_set_status $ac_retval
1871 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1872 # -------------------------------------------------------
1873 # Tests whether HEADER exists and can be compiled using the include files in
1874 # INCLUDES, setting the cache variable VAR accordingly.
1875 ac_fn_c_check_header_compile ()
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879 $as_echo_n "checking for $2... " >&6; }
1880 if eval \${$3+:} false; then :
1881 $as_echo_n "(cached) " >&6
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1888 if ac_fn_c_try_compile "$LINENO"; then :
1893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900 } # ac_fn_c_check_header_compile
1902 # ac_fn_c_try_link LINENO
1903 # -----------------------
1904 # Try to link conftest.$ac_ext, and return whether this succeeded.
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 rm -f conftest.$ac_objext conftest$ac_exeext
1909 if { { ac_try="$ac_link"
1911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912 *) ac_try_echo=$ac_try;;
1914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915 $as_echo "$ac_try_echo"; } >&5
1916 (eval "$ac_link") 2>conftest.err
1918 if test -s conftest.err; then
1919 grep -v '^ *+' conftest.err >conftest.er1
1920 cat conftest.er1 >&5
1921 mv -f conftest.er1 conftest.err
1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 test $ac_status = 0; } && {
1925 test -z "$ac_c_werror_flag" ||
1926 test ! -s conftest.err
1927 } && test -s conftest$ac_exeext && {
1928 test "$cross_compiling" = yes ||
1929 test -x conftest$ac_exeext
1933 $as_echo "$as_me: failed program was:" >&5
1934 sed 's/^/| /' conftest.$ac_ext >&5
1938 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1939 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1940 # interfere with the next link command; also delete a directory that is
1941 # left behind by Apple's compiler. We do this before executing the actions.
1942 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944 as_fn_set_status $ac_retval
1946 } # ac_fn_c_try_link
1948 # ac_fn_c_check_func LINENO FUNC VAR
1949 # ----------------------------------
1950 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1951 ac_fn_c_check_func ()
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955 $as_echo_n "checking for $2... " >&6; }
1956 if eval \${$3+:} false; then :
1957 $as_echo_n "(cached) " >&6
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1961 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1963 #define $2 innocuous_$2
1965 /* System header to define __stub macros and hopefully few prototypes,
1966 which can conflict with char $2 (); below.
1967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1968 <limits.h> exists even on freestanding compilers. */
1971 # include <limits.h>
1973 # include <assert.h>
1978 /* Override any GCC internal prototype to avoid an error.
1979 Use char because int might match the return type of a GCC
1980 builtin and then its argument prototype would still apply. */
1985 /* The GNU C library defines this for functions which it implements
1986 to always fail with ENOSYS. Some functions are actually named
1987 something starting with __ and the normal name is an alias. */
1988 #if defined __stub_$2 || defined __stub___$2
2000 if ac_fn_c_try_link "$LINENO"; then :
2005 rm -f core conftest.err conftest.$ac_objext \
2006 conftest$ac_exeext conftest.$ac_ext
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 } # ac_fn_c_check_func
2015 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2016 # ---------------------------------------------
2017 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2019 ac_fn_c_check_decl ()
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 as_decl_name=`echo $2|sed 's/ *(.*//'`
2023 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2025 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2026 if eval \${$3+:} false; then :
2027 $as_echo_n "(cached) " >&6
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2035 #ifndef $as_decl_name
2037 (void) $as_decl_use;
2039 (void) $as_decl_name;
2047 if ac_fn_c_try_compile "$LINENO"; then :
2052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056 $as_echo "$ac_res" >&6; }
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059 } # ac_fn_c_check_decl
2061 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2062 # -------------------------------------------
2063 # Tests whether TYPE exists after having included INCLUDES, setting cache
2064 # variable VAR accordingly.
2065 ac_fn_c_check_type ()
2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069 $as_echo_n "checking for $2... " >&6; }
2070 if eval \${$3+:} false; then :
2071 $as_echo_n "(cached) " >&6
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2099 if ac_fn_c_try_compile "$LINENO"; then :
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110 $as_echo "$ac_res" >&6; }
2111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113 } # ac_fn_c_check_type
2115 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2116 # --------------------------------------------
2117 # Tries to find the compile-time value of EXPR in a program that includes
2118 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2120 ac_fn_c_compute_int ()
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 if test "$cross_compiling" = yes; then
2124 # Depending upon the size, compute the lo and hi bounds.
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2131 static int test_array [1 - 2 * !(($2) >= 0)];
2133 return test_array [0];
2139 if ac_fn_c_try_compile "$LINENO"; then :
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2148 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2150 return test_array [0];
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157 ac_hi=$ac_mid; break
2159 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2160 if test $ac_lo -le $ac_mid; then
2164 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h. */
2175 static int test_array [1 - 2 * !(($2) < 0)];
2177 return test_array [0];
2183 if ac_fn_c_try_compile "$LINENO"; then :
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2192 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2194 return test_array [0];
2200 if ac_fn_c_try_compile "$LINENO"; then :
2201 ac_lo=$ac_mid; break
2203 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2204 if test $ac_mid -le $ac_hi; then
2208 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 # Binary search between lo and hi bounds.
2219 while test "x$ac_lo" != "x$ac_hi"; do
2220 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2227 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2229 return test_array [0];
2235 if ac_fn_c_try_compile "$LINENO"; then :
2238 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2250 static long int longval () { return $2; }
2251 static unsigned long int ulongval () { return $2; }
2258 FILE *f = fopen ("conftest.val", "w");
2263 long int i = longval ();
2266 fprintf (f, "%ld", i);
2270 unsigned long int i = ulongval ();
2273 fprintf (f, "%lu", i);
2275 /* Do not output a trailing newline, as this causes \r\n confusion
2276 on some platforms. */
2277 return ferror (f) || fclose (f) != 0;
2283 if ac_fn_c_try_run "$LINENO"; then :
2284 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2289 conftest.$ac_objext conftest.beam conftest.$ac_ext
2293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294 as_fn_set_status $ac_retval
2296 } # ac_fn_c_compute_int
2298 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2299 # ----------------------------------------------------
2300 # Tries to find if the field MEMBER exists in type AGGR, after including
2301 # INCLUDES, setting cache variable VAR accordingly.
2302 ac_fn_c_check_member ()
2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2306 $as_echo_n "checking for $2.$3... " >&6; }
2307 if eval \${$4+:} false; then :
2308 $as_echo_n "(cached) " >&6
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2323 if ac_fn_c_try_compile "$LINENO"; then :
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2333 if (sizeof ac_aggr.$3)
2339 if ac_fn_c_try_compile "$LINENO"; then :
2344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350 $as_echo "$ac_res" >&6; }
2351 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2353 } # ac_fn_c_check_member
2354 cat >config.log <<_ACEOF
2355 This file contains any messages produced by compilers while
2356 running configure, to aid debugging if configure makes a mistake.
2358 It was created by fontconfig $as_me 2.12.1, which was
2359 generated by GNU Autoconf 2.69. Invocation command line was
2371 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2372 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2373 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2374 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2375 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2377 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2378 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2380 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2381 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2382 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2383 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2384 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2385 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2386 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 test -z "$as_dir" && as_dir=.
2395 $as_echo "PATH: $as_dir"
2411 # Keep a trace of the command line.
2412 # Strip out --no-create and --no-recursion so they do not pile up.
2413 # Strip out --silent because we don't want to record it for future runs.
2414 # Also quote any args containing shell meta-characters.
2415 # Make two passes to allow for proper duplicate-argument suppression.
2419 ac_must_keep_next=false
2425 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2426 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2427 | -silent | --silent | --silen | --sile | --sil)
2430 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2433 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2435 as_fn_append ac_configure_args1 " '$ac_arg'"
2436 if test $ac_must_keep_next = true; then
2437 ac_must_keep_next=false # Got value, back to normal.
2440 *=* | --config-cache | -C | -disable-* | --disable-* \
2441 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2442 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2443 | -with-* | --with-* | -without-* | --without-* | --x)
2444 case "$ac_configure_args0 " in
2445 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2448 -* ) ac_must_keep_next=true ;;
2451 as_fn_append ac_configure_args " '$ac_arg'"
2456 { ac_configure_args0=; unset ac_configure_args0;}
2457 { ac_configure_args1=; unset ac_configure_args1;}
2459 # When interrupted or exit'd, cleanup temporary files, and complete
2460 # config.log. We remove comments because anyway the quotes in there
2461 # would cause problems or look ugly.
2462 # WARNING: Use '\'' to represent an apostrophe within the trap.
2463 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2464 trap 'exit_status=$?
2465 # Save into config.log some information that might help in debugging.
2469 $as_echo "## ---------------- ##
2470 ## Cache variables. ##
2471 ## ---------------- ##"
2473 # The following way of writing the cache mishandles newlines in values,
2475 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2476 eval ac_val=\$$ac_var
2480 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2481 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2484 _ | IFS | as_nl) ;; #(
2485 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2486 *) { eval $ac_var=; unset $ac_var;} ;;
2491 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2492 *${as_nl}ac_space=\ *)
2494 "s/'\''/'\''\\\\'\'''\''/g;
2495 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2498 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2505 $as_echo "## ----------------- ##
2506 ## Output variables. ##
2507 ## ----------------- ##"
2509 for ac_var in $ac_subst_vars
2511 eval ac_val=\$$ac_var
2513 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2515 $as_echo "$ac_var='\''$ac_val'\''"
2519 if test -n "$ac_subst_files"; then
2520 $as_echo "## ------------------- ##
2521 ## File substitutions. ##
2522 ## ------------------- ##"
2524 for ac_var in $ac_subst_files
2526 eval ac_val=\$$ac_var
2528 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2530 $as_echo "$ac_var='\''$ac_val'\''"
2535 if test -s confdefs.h; then
2536 $as_echo "## ----------- ##
2543 test "$ac_signal" != 0 &&
2544 $as_echo "$as_me: caught signal $ac_signal"
2545 $as_echo "$as_me: exit $exit_status"
2547 rm -f core *.core core.conftest.* &&
2548 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2551 for ac_signal in 1 2 13 15; do
2552 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2556 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2557 rm -f -r conftest* confdefs.h
2559 $as_echo "/* confdefs.h */" > confdefs.h
2561 # Predefined preprocessor variables.
2563 cat >>confdefs.h <<_ACEOF
2564 #define PACKAGE_NAME "$PACKAGE_NAME"
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2571 cat >>confdefs.h <<_ACEOF
2572 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2575 cat >>confdefs.h <<_ACEOF
2576 #define PACKAGE_STRING "$PACKAGE_STRING"
2579 cat >>confdefs.h <<_ACEOF
2580 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2583 cat >>confdefs.h <<_ACEOF
2584 #define PACKAGE_URL "$PACKAGE_URL"
2588 # Let the site file select an alternate cache file if it wants to.
2589 # Prefer an explicitly selected file to automatically selected ones.
2592 if test -n "$CONFIG_SITE"; then
2593 # We do not want a PATH search for config.site.
2594 case $CONFIG_SITE in #((
2595 -*) ac_site_file1=./$CONFIG_SITE;;
2596 */*) ac_site_file1=$CONFIG_SITE;;
2597 *) ac_site_file1=./$CONFIG_SITE;;
2599 elif test "x$prefix" != xNONE; then
2600 ac_site_file1=$prefix/share/config.site
2601 ac_site_file2=$prefix/etc/config.site
2603 ac_site_file1=$ac_default_prefix/share/config.site
2604 ac_site_file2=$ac_default_prefix/etc/config.site
2606 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2608 test "x$ac_site_file" = xNONE && continue
2609 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2611 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2612 sed 's/^/| /' "$ac_site_file" >&5
2614 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2616 as_fn_error $? "failed to load site script $ac_site_file
2617 See \`config.log' for more details" "$LINENO" 5; }
2621 if test -r "$cache_file"; then
2622 # Some versions of bash will fail to source /dev/null (special files
2623 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2624 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2626 $as_echo "$as_me: loading cache $cache_file" >&6;}
2628 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2629 *) . "./$cache_file";;
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2634 $as_echo "$as_me: creating cache $cache_file" >&6;}
2638 as_fn_append ac_header_list " stdlib.h"
2639 as_fn_append ac_header_list " unistd.h"
2640 as_fn_append ac_header_list " sys/param.h"
2641 # Check that the precious variables saved in the cache have kept the same
2643 ac_cache_corrupted=false
2644 for ac_var in $ac_precious_vars; do
2645 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2646 eval ac_new_set=\$ac_env_${ac_var}_set
2647 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2648 eval ac_new_val=\$ac_env_${ac_var}_value
2649 case $ac_old_set,$ac_new_set in
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2652 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2653 ac_cache_corrupted=: ;;
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2656 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2657 ac_cache_corrupted=: ;;
2660 if test "x$ac_old_val" != "x$ac_new_val"; then
2661 # differences in whitespace do not lead to failure.
2662 ac_old_val_w=`echo x $ac_old_val`
2663 ac_new_val_w=`echo x $ac_new_val`
2664 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2666 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2667 ac_cache_corrupted=:
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2670 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2671 eval $ac_var=\$ac_old_val
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2674 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2676 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2679 # Pass precious variables to config.status.
2680 if test "$ac_new_set" = set; then
2682 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2683 *) ac_arg=$ac_var=$ac_new_val ;;
2685 case " $ac_configure_args " in
2686 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2687 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2691 if $ac_cache_corrupted; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2695 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2696 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2698 ## -------------------- ##
2699 ## Main body of script. ##
2700 ## -------------------- ##
2703 ac_cpp='$CPP $CPPFLAGS'
2704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2709 am__api_version='1.15'
2712 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2713 if test -f "$ac_dir/install-sh"; then
2715 ac_install_sh="$ac_aux_dir/install-sh -c"
2717 elif test -f "$ac_dir/install.sh"; then
2719 ac_install_sh="$ac_aux_dir/install.sh -c"
2721 elif test -f "$ac_dir/shtool"; then
2723 ac_install_sh="$ac_aux_dir/shtool install -c"
2727 if test -z "$ac_aux_dir"; then
2728 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2731 # These three variables are undocumented and unsupported,
2732 # and are intended to be withdrawn in a future Autoconf release.
2733 # They can cause serious problems if a builder's source tree is in a directory
2734 # whose full name contains unusual characters.
2735 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2736 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2737 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2740 # Find a good install program. We prefer a C program (faster),
2741 # so one script is as good as another. But avoid the broken or
2742 # incompatible versions:
2743 # SysV /etc/install, /usr/sbin/install
2744 # SunOS /usr/etc/install
2745 # IRIX /sbin/install
2747 # AmigaOS /C/install, which installs bootblocks on floppy discs
2748 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2749 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2750 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2751 # OS/2's system install, which has a completely different semantic
2752 # ./install, which can be erroneously created by make from ./install.sh.
2753 # Reject install programs that cannot install multiple files.
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2755 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2756 if test -z "$INSTALL"; then
2757 if ${ac_cv_path_install+:} false; then :
2758 $as_echo_n "(cached) " >&6
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 test -z "$as_dir" && as_dir=.
2765 # Account for people who put trailing slashes in PATH elements.
2766 case $as_dir/ in #((
2767 ./ | .// | /[cC]/* | \
2768 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2769 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2772 # OSF1 and SCO ODT 3.0 have their own names for install.
2773 # Don't use installbsd from OSF since it installs stuff as root
2775 for ac_prog in ginstall scoinst install; do
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2778 if test $ac_prog = install &&
2779 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2780 # AIX install. It has an incompatible calling convention.
2782 elif test $ac_prog = install &&
2783 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2784 # program-specific install script used by HP pwplus--don't use.
2787 rm -rf conftest.one conftest.two conftest.dir
2788 echo one > conftest.one
2789 echo two > conftest.two
2791 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2792 test -s conftest.one && test -s conftest.two &&
2793 test -s conftest.dir/conftest.one &&
2794 test -s conftest.dir/conftest.two
2796 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2809 rm -rf conftest.one conftest.two conftest.dir
2812 if test "${ac_cv_path_install+set}" = set; then
2813 INSTALL=$ac_cv_path_install
2815 # As a last resort, use the slow shell script. Don't cache a
2816 # value for INSTALL within a source directory, because that will
2817 # break other packages using the cache if that directory is
2818 # removed, or if the value is a relative name.
2819 INSTALL=$ac_install_sh
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2823 $as_echo "$INSTALL" >&6; }
2825 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2826 # It thinks the first close brace ends the variable substitution.
2827 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2829 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2831 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2834 $as_echo_n "checking whether build environment is sane... " >&6; }
2835 # Reject unsafe characters in $srcdir or the absolute working directory
2836 # name. Accept space and tab only in the latter.
2840 *[\\\"\#\$\&\'\`$am_lf]*)
2841 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2844 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2845 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2848 # Do 'set' in a subshell so we don't clobber the current shell's
2849 # arguments. Must try -L first in case configure is actually a
2850 # symlink; some systems play weird games with the mod time of symlinks
2851 # (eg FreeBSD returns the mod time of the symlink's containing
2855 for am_try in 1 2; do
2856 echo "timestamp, slept: $am_has_slept" > conftest.file
2857 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2858 if test "$*" = "X"; then
2860 set X `ls -t "$srcdir/configure" conftest.file`
2862 if test "$*" != "X $srcdir/configure conftest.file" \
2863 && test "$*" != "X conftest.file $srcdir/configure"; then
2865 # If neither matched, then we have a broken ls. This can happen
2866 # if, for instance, CONFIG_SHELL is bash and it inherits a
2867 # broken ls alias from the environment. This has actually
2868 # happened. Such a system could not be considered "sane".
2869 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2870 alias in your environment" "$LINENO" 5
2872 if test "$2" = conftest.file || test $am_try -eq 2; then
2879 test "$2" = conftest.file
2885 as_fn_error $? "newly created file is older than distributed files!
2886 Check your system clock" "$LINENO" 5
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2889 $as_echo "yes" >&6; }
2890 # If we didn't sleep, we still need to ensure time stamps of config.status and
2891 # generated files are strictly newer.
2893 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2900 test "$program_prefix" != NONE &&
2901 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2902 # Use a double $ so make ignores it.
2903 test "$program_suffix" != NONE &&
2904 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2905 # Double any \ or $.
2906 # By default was `s,x,x', remove it if useless.
2907 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2908 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2910 # Expand $ac_aux_dir to an absolute path.
2911 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2913 if test x"${MISSING+set}" != xset; then
2916 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2918 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2921 # Use eval to expand $SHELL
2922 if eval "$MISSING --is-lightweight"; then
2923 am_missing_run="$MISSING "
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2927 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2930 if test x"${install_sh+set}" != xset; then
2933 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2935 install_sh="\${SHELL} $am_aux_dir/install-sh"
2939 # Installed binaries are usually stripped using 'strip' when the user
2940 # run "make install-strip". However 'strip' might not be the right
2941 # tool to use in cross-compilation environments, therefore Automake
2942 # will honor the 'STRIP' environment variable to overrule this program.
2943 if test "$cross_compiling" != no; then
2944 if test -n "$ac_tool_prefix"; then
2945 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2946 set dummy ${ac_tool_prefix}strip; ac_word=$2
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if ${ac_cv_prog_STRIP+:} false; then :
2950 $as_echo_n "(cached) " >&6
2952 if test -n "$STRIP"; then
2953 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2962 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 STRIP=$ac_cv_prog_STRIP
2973 if test -n "$STRIP"; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2975 $as_echo "$STRIP" >&6; }
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2983 if test -z "$ac_cv_prog_STRIP"; then
2985 # Extract the first word of "strip", so it can be a program name with args.
2986 set dummy strip; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2990 $as_echo_n "(cached) " >&6
2992 if test -n "$ac_ct_STRIP"; then
2993 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3002 ac_cv_prog_ac_ct_STRIP="strip"
3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3013 if test -n "$ac_ct_STRIP"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3015 $as_echo "$ac_ct_STRIP" >&6; }
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3021 if test "x$ac_ct_STRIP" = x; then
3024 case $cross_compiling:$ac_tool_warned in
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3028 ac_tool_warned=yes ;;
3033 STRIP="$ac_cv_prog_STRIP"
3037 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3040 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3041 if test -z "$MKDIR_P"; then
3042 if ${ac_cv_path_mkdir+:} false; then :
3043 $as_echo_n "(cached) " >&6
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3049 test -z "$as_dir" && as_dir=.
3050 for ac_prog in mkdir gmkdir; do
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3053 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3054 'mkdir (GNU coreutils) '* | \
3055 'mkdir (coreutils) '* | \
3056 'mkdir (fileutils) '4.1*)
3057 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3067 test -d ./--version && rmdir ./--version
3068 if test "${ac_cv_path_mkdir+set}" = set; then
3069 MKDIR_P="$ac_cv_path_mkdir -p"
3071 # As a last resort, use the slow shell script. Don't cache a
3072 # value for MKDIR_P within a source directory, because that will
3073 # break other packages using the cache if that directory is
3074 # removed, or if the value is a relative name.
3075 MKDIR_P="$ac_install_sh -d"
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3079 $as_echo "$MKDIR_P" >&6; }
3081 for ac_prog in gawk mawk nawk awk
3083 # Extract the first word of "$ac_prog", so it can be a program name with args.
3084 set dummy $ac_prog; ac_word=$2
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086 $as_echo_n "checking for $ac_word... " >&6; }
3087 if ${ac_cv_prog_AWK+:} false; then :
3088 $as_echo_n "(cached) " >&6
3090 if test -n "$AWK"; then
3091 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 test -z "$as_dir" && as_dir=.
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3100 ac_cv_prog_AWK="$ac_prog"
3101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3111 if test -n "$AWK"; then
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3113 $as_echo "$AWK" >&6; }
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3120 test -n "$AWK" && break
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3124 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3126 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3127 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3128 $as_echo_n "(cached) " >&6
3130 cat >conftest.make <<\_ACEOF
3133 @echo '@@@%%%=$(MAKE)=@@@%%%'
3135 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3136 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3138 eval ac_cv_prog_make_${ac_make}_set=yes;;
3140 eval ac_cv_prog_make_${ac_make}_set=no;;
3144 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3146 $as_echo "yes" >&6; }
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3151 SET_MAKE="MAKE=${MAKE-make}"
3154 rm -rf .tst 2>/dev/null
3155 mkdir .tst 2>/dev/null
3156 if test -d .tst; then
3161 rmdir .tst 2>/dev/null
3163 # Check whether --enable-silent-rules was given.
3164 if test "${enable_silent_rules+set}" = set; then :
3165 enableval=$enable_silent_rules;
3168 case $enable_silent_rules in # (((
3169 yes) AM_DEFAULT_VERBOSITY=0;;
3170 no) AM_DEFAULT_VERBOSITY=1;;
3171 *) AM_DEFAULT_VERBOSITY=1;;
3173 am_make=${MAKE-make}
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3175 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3176 if ${am_cv_make_support_nested_variables+:} false; then :
3177 $as_echo_n "(cached) " >&6
3179 if $as_echo 'TRUE=$(BAR$(V))
3185 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3186 am_cv_make_support_nested_variables=yes
3188 am_cv_make_support_nested_variables=no
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3192 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3193 if test $am_cv_make_support_nested_variables = yes; then
3195 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3197 AM_V=$AM_DEFAULT_VERBOSITY
3198 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3202 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3203 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3204 # is not polluted with repeated "-I."
3205 am__isrc=' -I$(srcdir)'
3206 # test to see if srcdir already configured
3207 if test -f $srcdir/config.status; then
3208 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3212 # test whether we have cygpath
3213 if test -z "$CYGPATH_W"; then
3214 if (cygpath --version) >/dev/null 2>/dev/null; then
3215 CYGPATH_W='cygpath -w'
3222 # Define the identity of the package.
3223 PACKAGE='fontconfig'
3227 cat >>confdefs.h <<_ACEOF
3228 #define PACKAGE "$PACKAGE"
3232 cat >>confdefs.h <<_ACEOF
3233 #define VERSION "$VERSION"
3236 # Some tools Automake needs.
3238 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3241 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3244 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3247 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3250 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3252 # For better backward compatibility. To be removed once Automake 1.9.x
3253 # dies out for good. For more background, see:
3254 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3255 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3256 mkdir_p='$(MKDIR_P)'
3258 # We need awk for the "check" target (and possibly the TAP driver). The
3259 # system "awk" is bad on some platforms.
3260 # Always define AMTAR for backward compatibility. Yes, it's still used
3261 # in the wild :-( We should find a proper way to deprecate it ...
3265 # We'll loop over all known methods to create a tar archive until one works.
3266 _am_tools='gnutar pax cpio none'
3268 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3275 # POSIX will say in a future version that running "rm -f" with no argument
3276 # is OK; and we want to be able to make that assumption in our Makefile
3277 # recipes. So use an aggressive probe to check that the usage we want is
3278 # actually supported "in the wild" to an acceptable degree.
3279 # See automake bug#10828.
3280 # To make any issue more visible, cause the running configure to be aborted
3281 # by default if the 'rm' program in use doesn't match our expectations; the
3282 # user can still override this though.
3283 if rm -f && rm -fr && rm -rf; then : OK; else
3287 Your 'rm' program seems unable to run without file operands specified
3288 on the command line, even when the '-f' option is present. This is contrary
3289 to the behaviour of most rm programs out there, and not conforming with
3290 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3292 Please tell bug-automake@gnu.org about your system, including the value
3293 of your $PATH and any error possibly output before this message. This
3294 can help us improve future automake versions.
3297 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3298 echo 'Configuration will proceed anyway, since you have set the' >&2
3299 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3303 Aborting the configuration process, to ensure you take notice of the issue.
3305 You can download and install GNU coreutils to get an 'rm' implementation
3306 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3308 If you want to complete the configuration process using your problematic
3309 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3310 to "yes", and re-run configure.
3313 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3317 # Check whether --enable-silent-rules was given.
3318 if test "${enable_silent_rules+set}" = set; then :
3319 enableval=$enable_silent_rules;
3322 case $enable_silent_rules in # (((
3323 yes) AM_DEFAULT_VERBOSITY=0;;
3324 no) AM_DEFAULT_VERBOSITY=1;;
3325 *) AM_DEFAULT_VERBOSITY=0;;
3327 am_make=${MAKE-make}
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3329 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3330 if ${am_cv_make_support_nested_variables+:} false; then :
3331 $as_echo_n "(cached) " >&6
3333 if $as_echo 'TRUE=$(BAR$(V))
3339 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3340 am_cv_make_support_nested_variables=yes
3342 am_cv_make_support_nested_variables=no
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3346 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3347 if test $am_cv_make_support_nested_variables = yes; then
3349 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3351 AM_V=$AM_DEFAULT_VERBOSITY
3352 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3358 ac_config_headers="$ac_config_headers config.h"
3363 ac_cpp='$CPP $CPPFLAGS'
3364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3367 if test -n "$ac_tool_prefix"; then
3368 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3369 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371 $as_echo_n "checking for $ac_word... " >&6; }
3372 if ${ac_cv_prog_CC+:} false; then :
3373 $as_echo_n "(cached) " >&6
3375 if test -n "$CC"; then
3376 ac_cv_prog_CC="$CC" # Let the user override the test.
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 test -z "$as_dir" && as_dir=.
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3385 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 if test -n "$CC"; then
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3398 $as_echo "$CC" >&6; }
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 $as_echo "no" >&6; }
3406 if test -z "$ac_cv_prog_CC"; then
3408 # Extract the first word of "gcc", so it can be a program name with args.
3409 set dummy gcc; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3413 $as_echo_n "(cached) " >&6
3415 if test -n "$ac_ct_CC"; then
3416 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3425 ac_cv_prog_ac_ct_CC="gcc"
3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3436 if test -n "$ac_ct_CC"; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3438 $as_echo "$ac_ct_CC" >&6; }
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3444 if test "x$ac_ct_CC" = x; then
3447 case $cross_compiling:$ac_tool_warned in
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3451 ac_tool_warned=yes ;;
3459 if test -z "$CC"; then
3460 if test -n "$ac_tool_prefix"; then
3461 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3462 set dummy ${ac_tool_prefix}cc; ac_word=$2
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464 $as_echo_n "checking for $ac_word... " >&6; }
3465 if ${ac_cv_prog_CC+:} false; then :
3466 $as_echo_n "(cached) " >&6
3468 if test -n "$CC"; then
3469 ac_cv_prog_CC="$CC" # Let the user override the test.
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475 test -z "$as_dir" && as_dir=.
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3478 ac_cv_prog_CC="${ac_tool_prefix}cc"
3479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 if test -n "$CC"; then
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3491 $as_echo "$CC" >&6; }
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3500 if test -z "$CC"; then
3501 # Extract the first word of "cc", so it can be a program name with args.
3502 set dummy cc; ac_word=$2
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504 $as_echo_n "checking for $ac_word... " >&6; }
3505 if ${ac_cv_prog_CC+:} false; then :
3506 $as_echo_n "(cached) " >&6
3508 if test -n "$CC"; then
3509 ac_cv_prog_CC="$CC" # Let the user override the test.
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 test -z "$as_dir" && as_dir=.
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3519 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3520 ac_prog_rejected=yes
3524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 if test $ac_prog_rejected = yes; then
3532 # We found a bogon in the path, so make sure we never use it.
3533 set dummy $ac_cv_prog_CC
3535 if test $# != 0; then
3536 # We chose a different compiler from the bogus one.
3537 # However, it has the same basename, so the bogon will be chosen
3538 # first if we set CC to just the basename; use the full file name.
3540 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3546 if test -n "$CC"; then
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3548 $as_echo "$CC" >&6; }
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551 $as_echo "no" >&6; }
3556 if test -z "$CC"; then
3557 if test -n "$ac_tool_prefix"; then
3558 for ac_prog in cl.exe
3560 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3561 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3563 $as_echo_n "checking for $ac_word... " >&6; }
3564 if ${ac_cv_prog_CC+:} false; then :
3565 $as_echo_n "(cached) " >&6
3567 if test -n "$CC"; then
3568 ac_cv_prog_CC="$CC" # Let the user override the test.
3570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574 test -z "$as_dir" && as_dir=.
3575 for ac_exec_ext in '' $ac_executable_extensions; do
3576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3577 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3588 if test -n "$CC"; then
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3590 $as_echo "$CC" >&6; }
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593 $as_echo "no" >&6; }
3597 test -n "$CC" && break
3600 if test -z "$CC"; then
3602 for ac_prog in cl.exe
3604 # Extract the first word of "$ac_prog", so it can be a program name with args.
3605 set dummy $ac_prog; ac_word=$2
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3607 $as_echo_n "checking for $ac_word... " >&6; }
3608 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3609 $as_echo_n "(cached) " >&6
3611 if test -n "$ac_ct_CC"; then
3612 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 test -z "$as_dir" && as_dir=.
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3621 ac_cv_prog_ac_ct_CC="$ac_prog"
3622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3631 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3632 if test -n "$ac_ct_CC"; then
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3634 $as_echo "$ac_ct_CC" >&6; }
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 $as_echo "no" >&6; }
3641 test -n "$ac_ct_CC" && break
3644 if test "x$ac_ct_CC" = x; then
3647 case $cross_compiling:$ac_tool_warned in
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3651 ac_tool_warned=yes ;;
3660 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3662 as_fn_error $? "no acceptable C compiler found in \$PATH
3663 See \`config.log' for more details" "$LINENO" 5; }
3665 # Provide some information about the compiler.
3666 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3669 for ac_option in --version -v -V -qversion; do
3670 { { ac_try="$ac_compiler $ac_option >&5"
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3676 $as_echo "$ac_try_echo"; } >&5
3677 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3679 if test -s conftest.err; then
3681 ... rest of stderr output deleted ...
3682 10q' conftest.err >conftest.er1
3683 cat conftest.er1 >&5
3685 rm -f conftest.er1 conftest.err
3686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3687 test $ac_status = 0; }
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h. */
3701 ac_clean_files_save=$ac_clean_files
3702 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3703 # Try to create an executable without -o first, disregard a.out.
3704 # It will help us diagnose broken compilers, and finding out an intuition
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3707 $as_echo_n "checking whether the C compiler works... " >&6; }
3708 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3710 # The possible output files:
3711 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3714 for ac_file in $ac_files
3717 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3718 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3723 if { { ac_try="$ac_link_default"
3725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726 *) ac_try_echo=$ac_try;;
3728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3729 $as_echo "$ac_try_echo"; } >&5
3730 (eval "$ac_link_default") 2>&5
3732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3733 test $ac_status = 0; }; then :
3734 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3735 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3736 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3737 # so that the user can short-circuit this test for compilers unknown to
3739 for ac_file in $ac_files ''
3741 test -f "$ac_file" || continue
3743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3746 # We found the default executable, but exeext='' is most
3750 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3752 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3754 # We set ac_cv_exeext here because the later test for it is not
3755 # safe: cross compilers may not add the suffix if given an `-o'
3756 # argument, so we may need to know it at that point already.
3757 # Even if this section looks crufty: it has the advantage of
3764 test "$ac_cv_exeext" = no && ac_cv_exeext=
3769 if test -z "$ac_file"; then :
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771 $as_echo "no" >&6; }
3772 $as_echo "$as_me: failed program was:" >&5
3773 sed 's/^/| /' conftest.$ac_ext >&5
3775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3777 as_fn_error 77 "C compiler cannot create executables
3778 See \`config.log' for more details" "$LINENO" 5; }
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3781 $as_echo "yes" >&6; }
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3784 $as_echo_n "checking for C compiler default output file name... " >&6; }
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3786 $as_echo "$ac_file" >&6; }
3787 ac_exeext=$ac_cv_exeext
3789 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3790 ac_clean_files=$ac_clean_files_save
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3792 $as_echo_n "checking for suffix of executables... " >&6; }
3793 if { { ac_try="$ac_link"
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3799 $as_echo "$ac_try_echo"; } >&5
3800 (eval "$ac_link") 2>&5
3802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3803 test $ac_status = 0; }; then :
3804 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3805 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3806 # work properly (i.e., refer to `conftest.exe'), while it won't with
3808 for ac_file in conftest.exe conftest conftest.*; do
3809 test -f "$ac_file" || continue
3811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3812 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3820 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3821 See \`config.log' for more details" "$LINENO" 5; }
3823 rm -f conftest conftest$ac_cv_exeext
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3825 $as_echo "$ac_cv_exeext" >&6; }
3827 rm -f conftest.$ac_ext
3828 EXEEXT=$ac_cv_exeext
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3836 FILE *f = fopen ("conftest.out", "w");
3837 return ferror (f) || fclose (f) != 0;
3843 ac_clean_files="$ac_clean_files conftest.out"
3844 # Check that the compiler produces executables we can run. If not, either
3845 # the compiler is broken, or we cross compile.
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3847 $as_echo_n "checking whether we are cross compiling... " >&6; }
3848 if test "$cross_compiling" != yes; then
3849 { { ac_try="$ac_link"
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856 (eval "$ac_link") 2>&5
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }
3860 if { ac_try='./conftest$ac_cv_exeext'
3861 { { case "(($ac_try" in
3862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863 *) ac_try_echo=$ac_try;;
3865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3866 $as_echo "$ac_try_echo"; } >&5
3867 (eval "$ac_try") 2>&5
3869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3870 test $ac_status = 0; }; }; then
3873 if test "$cross_compiling" = maybe; then
3876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3878 as_fn_error $? "cannot run C compiled programs.
3879 If you meant to cross compile, use \`--host'.
3880 See \`config.log' for more details" "$LINENO" 5; }
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3885 $as_echo "$cross_compiling" >&6; }
3887 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3888 ac_clean_files=$ac_clean_files_save
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3890 $as_echo_n "checking for suffix of object files... " >&6; }
3891 if ${ac_cv_objext+:} false; then :
3892 $as_echo_n "(cached) " >&6
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3905 rm -f conftest.o conftest.obj
3906 if { { ac_try="$ac_compile"
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3912 $as_echo "$ac_try_echo"; } >&5
3913 (eval "$ac_compile") 2>&5
3915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3916 test $ac_status = 0; }; then :
3917 for ac_file in conftest.o conftest.obj conftest.*; do
3918 test -f "$ac_file" || continue;
3920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3921 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3926 $as_echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3931 as_fn_error $? "cannot compute suffix of object files: cannot compile
3932 See \`config.log' for more details" "$LINENO" 5; }
3934 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3937 $as_echo "$ac_cv_objext" >&6; }
3938 OBJEXT=$ac_cv_objext
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3941 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3942 if ${ac_cv_c_compiler_gnu+:} false; then :
3943 $as_echo_n "(cached) " >&6
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h. */
3959 if ac_fn_c_try_compile "$LINENO"; then :
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3969 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3970 if test $ac_compiler_gnu = yes; then
3975 ac_test_CFLAGS=${CFLAGS+set}
3976 ac_save_CFLAGS=$CFLAGS
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3978 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3979 if ${ac_cv_prog_cc_g+:} false; then :
3980 $as_echo_n "(cached) " >&6
3982 ac_save_c_werror_flag=$ac_c_werror_flag
3983 ac_c_werror_flag=yes
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3997 if ac_fn_c_try_compile "$LINENO"; then :
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4012 if ac_fn_c_try_compile "$LINENO"; then :
4015 ac_c_werror_flag=$ac_save_c_werror_flag
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4028 if ac_fn_c_try_compile "$LINENO"; then :
4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4036 ac_c_werror_flag=$ac_save_c_werror_flag
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4039 $as_echo "$ac_cv_prog_cc_g" >&6; }
4040 if test "$ac_test_CFLAGS" = set; then
4041 CFLAGS=$ac_save_CFLAGS
4042 elif test $ac_cv_prog_cc_g = yes; then
4043 if test "$GCC" = yes; then
4049 if test "$GCC" = yes; then
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4056 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4057 if ${ac_cv_prog_cc_c89+:} false; then :
4058 $as_echo_n "(cached) " >&6
4060 ac_cv_prog_cc_c89=no
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4067 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4068 struct buf { int x; };
4069 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4070 static char *e (p, i)
4076 static char *f (char * (*g) (char **, int), char **p, ...)
4081 s = g (p, va_arg (v,int));
4086 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4087 function prototypes and stuff, but not '\xHH' hex character constants.
4088 These don't provoke an error unfortunately, instead are silently treated
4089 as 'x'. The following induces an error, until -std is added to get
4090 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4091 array size at least. It's necessary to write '\x00'==0 to get something
4092 that's true only with -std. */
4093 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4095 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4096 inside strings and character constants. */
4098 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4100 int test (int i, double x);
4101 struct s1 {int (*f) (int a);};
4102 struct s2 {int (*f) (double a);};
4103 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4109 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4114 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4115 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4117 CC="$ac_save_CC $ac_arg"
4118 if ac_fn_c_try_compile "$LINENO"; then :
4119 ac_cv_prog_cc_c89=$ac_arg
4121 rm -f core conftest.err conftest.$ac_objext
4122 test "x$ac_cv_prog_cc_c89" != "xno" && break
4124 rm -f conftest.$ac_ext
4129 case "x$ac_cv_prog_cc_c89" in
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4132 $as_echo "none needed" >&6; } ;;
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4135 $as_echo "unsupported" >&6; } ;;
4137 CC="$CC $ac_cv_prog_cc_c89"
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4139 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4141 if test "x$ac_cv_prog_cc_c89" != xno; then :
4146 ac_cpp='$CPP $CPPFLAGS'
4147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4152 ac_cpp='$CPP $CPPFLAGS'
4153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4157 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4158 if ${am_cv_prog_cc_c_o+:} false; then :
4159 $as_echo_n "(cached) " >&6
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4172 # Make sure it works both with $CC and with simple cc.
4173 # Following AC_PROG_CC_C_O, we do the test twice because some
4174 # compilers refuse to overwrite an existing .o file with -o,
4175 # though they will create one.
4176 am_cv_prog_cc_c_o=yes
4178 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4179 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } \
4183 && test -f conftest2.$ac_objext; then
4186 am_cv_prog_cc_c_o=no
4190 rm -f core conftest*
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4194 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4195 if test "$am_cv_prog_cc_c_o" != yes; then
4196 # Losing compiler, so override with the script.
4197 # FIXME: It is wrong to rewrite CC.
4198 # But if we don't then we get into trouble of one sort or another.
4199 # A longer-term fix would be to have automake use am__CC in this case,
4200 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4201 CC="$am_aux_dir/compile $CC"
4204 ac_cpp='$CPP $CPPFLAGS'
4205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209 DEPDIR="${am__leading_dot}deps"
4211 ac_config_commands="$ac_config_commands depfiles"
4214 am_make=${MAKE-make}
4215 cat > confinc << 'END'
4217 @echo this is the am__doit target
4220 # If we don't find an include directive, just comment out the code.
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4222 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4226 # First try GNU make style include.
4227 echo "include confinc" > confmf
4228 # Ignore all kinds of additional output from 'make'.
4229 case `$am_make -s -f confmf 2> /dev/null` in #(
4230 *the\ am__doit\ target*)
4236 # Now try BSD make style include.
4237 if test "$am__include" = "#"; then
4238 echo '.include "confinc"' > confmf
4239 case `$am_make -s -f confmf 2> /dev/null` in #(
4240 *the\ am__doit\ target*)
4241 am__include=.include
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4250 $as_echo "$_am_result" >&6; }
4251 rm -f confinc confmf
4253 # Check whether --enable-dependency-tracking was given.
4254 if test "${enable_dependency_tracking+set}" = set; then :
4255 enableval=$enable_dependency_tracking;
4258 if test "x$enable_dependency_tracking" != xno; then
4259 am_depcomp="$ac_aux_dir/depcomp"
4263 if test "x$enable_dependency_tracking" != xno; then
4273 depcc="$CC" am_compiler_list=
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4276 $as_echo_n "checking dependency style of $depcc... " >&6; }
4277 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4278 $as_echo_n "(cached) " >&6
4280 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4281 # We make a subdir and do the tests there. Otherwise we can end up
4282 # making bogus files that we don't know about and never remove. For
4283 # instance it was reported that on HP-UX the gcc test will end up
4284 # making a dummy file named 'D' -- because '-MD' means "put the output
4288 # Copy depcomp to subdir because otherwise we won't find it if we're
4289 # using a relative directory.
4290 cp "$am_depcomp" conftest.dir
4292 # We will build objects and dependencies in a subdirectory because
4293 # it helps to detect inapplicable dependency modes. For instance
4294 # both Tru64's cc and ICC support -MD to output dependencies as a
4295 # side effect of compilation, but ICC will put the dependencies in
4296 # the current directory while Tru64 will put them in the object
4300 am_cv_CC_dependencies_compiler_type=none
4301 if test "$am_compiler_list" = ""; then
4302 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4305 case " $depcc " in #(
4306 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4309 for depmode in $am_compiler_list; do
4310 # Setup a source with many dependencies, because some compilers
4311 # like to wrap large dependency lists on column 80 (with \), and
4312 # we should not choose a depcomp mode which is confused by this.
4314 # We need to recreate these files for each test, as the compiler may
4315 # overwrite some of them when testing with obscure command lines.
4316 # This happens at least with the AIX C compiler.
4318 for i in 1 2 3 4 5 6; do
4319 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4320 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4321 # Solaris 10 /bin/sh.
4322 echo '/* dummy */' > sub/conftst$i.h
4324 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4326 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4327 # mode. It turns out that the SunPro C++ compiler does not properly
4328 # handle '-M -o', and we need to detect this. Also, some Intel
4329 # versions had trouble with output in subdirs.
4330 am__obj=sub/conftest.${OBJEXT-o}
4331 am__minus_obj="-o $am__obj"
4334 # This depmode causes a compiler race in universal mode.
4335 test "$am__universal" = false || continue
4338 # After this tag, mechanisms are not by side-effect, so they'll
4339 # only be used when explicitly requested.
4340 if test "x$enable_dependency_tracking" = xyes; then
4346 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4347 # This compiler won't grok '-c -o', but also, the minuso test has
4348 # not run yet. These depmodes are late enough in the game, and
4349 # so weak that their functioning should not be impacted.
4350 am__obj=conftest.${OBJEXT-o}
4355 if depmode=$depmode \
4356 source=sub/conftest.c object=$am__obj \
4357 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4358 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4359 >/dev/null 2>conftest.err &&
4360 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4361 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4362 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4363 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4364 # icc doesn't choke on unknown options, it will just issue warnings
4365 # or remarks (even with -Werror). So we grep stderr for any message
4366 # that says an option was ignored or not supported.
4367 # When given -MP, icc 7.0 and 7.1 complain thusly:
4368 # icc: Command line warning: ignoring option '-M'; no argument required
4369 # The diagnosis changed in icc 8.0:
4370 # icc: Command line remark: option '-MP' not supported
4371 if (grep 'ignoring option' conftest.err ||
4372 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4373 am_cv_CC_dependencies_compiler_type=$depmode
4382 am_cv_CC_dependencies_compiler_type=none
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4387 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4388 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4391 test "x$enable_dependency_tracking" != xno \
4392 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4394 am__fastdepCC_FALSE='#'
4396 am__fastdepCC_TRUE='#'
4397 am__fastdepCC_FALSE=
4403 ac_cpp='$CPP $CPPFLAGS'
4404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4408 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4409 # On Suns, sometimes $CPP names a directory.
4410 if test -n "$CPP" && test -d "$CPP"; then
4413 if test -z "$CPP"; then
4414 if ${ac_cv_prog_CPP+:} false; then :
4415 $as_echo_n "(cached) " >&6
4417 # Double quotes because CPP needs to be expanded
4418 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4421 for ac_c_preproc_warn_flag in '' yes
4423 # Use a header file that comes with gcc, so configuring glibc
4424 # with a fresh cross-compiler works.
4425 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4426 # <limits.h> exists even on freestanding compilers.
4427 # On the NeXT, cc -E runs the code through the compiler's parser,
4428 # not just through cpp. "Syntax error" is here to catch this case.
4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h. */
4432 # include <limits.h>
4434 # include <assert.h>
4438 if ac_fn_c_try_cpp "$LINENO"; then :
4441 # Broken: fails on valid input.
4444 rm -f conftest.err conftest.i conftest.$ac_ext
4446 # OK, works on sane cases. Now check whether nonexistent headers
4447 # can be detected and how.
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h. */
4450 #include <ac_nonexistent.h>
4452 if ac_fn_c_try_cpp "$LINENO"; then :
4453 # Broken: success on invalid input.
4456 # Passes both tests.
4460 rm -f conftest.err conftest.i conftest.$ac_ext
4463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4464 rm -f conftest.i conftest.err conftest.$ac_ext
4465 if $ac_preproc_ok; then :
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4478 $as_echo "$CPP" >&6; }
4480 for ac_c_preproc_warn_flag in '' yes
4482 # Use a header file that comes with gcc, so configuring glibc
4483 # with a fresh cross-compiler works.
4484 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4485 # <limits.h> exists even on freestanding compilers.
4486 # On the NeXT, cc -E runs the code through the compiler's parser,
4487 # not just through cpp. "Syntax error" is here to catch this case.
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h. */
4491 # include <limits.h>
4493 # include <assert.h>
4497 if ac_fn_c_try_cpp "$LINENO"; then :
4500 # Broken: fails on valid input.
4503 rm -f conftest.err conftest.i conftest.$ac_ext
4505 # OK, works on sane cases. Now check whether nonexistent headers
4506 # can be detected and how.
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4509 #include <ac_nonexistent.h>
4511 if ac_fn_c_try_cpp "$LINENO"; then :
4512 # Broken: success on invalid input.
4515 # Passes both tests.
4519 rm -f conftest.err conftest.i conftest.$ac_ext
4522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4523 rm -f conftest.i conftest.err conftest.$ac_ext
4524 if $ac_preproc_ok; then :
4527 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4529 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4530 See \`config.log' for more details" "$LINENO" 5; }
4534 ac_cpp='$CPP $CPPFLAGS'
4535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4541 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4542 if ${ac_cv_path_GREP+:} false; then :
4543 $as_echo_n "(cached) " >&6
4545 if test -z "$GREP"; then
4546 ac_path_GREP_found=false
4547 # Loop through the user's path and test for each of PROGNAME-LIST
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4552 test -z "$as_dir" && as_dir=.
4553 for ac_prog in grep ggrep; do
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4556 as_fn_executable_p "$ac_path_GREP" || continue
4557 # Check for GNU ac_path_GREP and select it if it is found.
4558 # Check for GNU $ac_path_GREP
4559 case `"$ac_path_GREP" --version 2>&1` in
4561 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4564 $as_echo_n 0123456789 >"conftest.in"
4567 cat "conftest.in" "conftest.in" >"conftest.tmp"
4568 mv "conftest.tmp" "conftest.in"
4569 cp "conftest.in" "conftest.nl"
4570 $as_echo 'GREP' >> "conftest.nl"
4571 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4572 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4573 as_fn_arith $ac_count + 1 && ac_count=$as_val
4574 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4575 # Best one so far, save it but keep looking for a better one
4576 ac_cv_path_GREP="$ac_path_GREP"
4577 ac_path_GREP_max=$ac_count
4579 # 10*(2^10) chars as input seems more than enough
4580 test $ac_count -gt 10 && break
4582 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4585 $ac_path_GREP_found && break 3
4590 if test -z "$ac_cv_path_GREP"; then
4591 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4594 ac_cv_path_GREP=$GREP
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4599 $as_echo "$ac_cv_path_GREP" >&6; }
4600 GREP="$ac_cv_path_GREP"
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4604 $as_echo_n "checking for egrep... " >&6; }
4605 if ${ac_cv_path_EGREP+:} false; then :
4606 $as_echo_n "(cached) " >&6
4608 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4609 then ac_cv_path_EGREP="$GREP -E"
4611 if test -z "$EGREP"; then
4612 ac_path_EGREP_found=false
4613 # Loop through the user's path and test for each of PROGNAME-LIST
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4618 test -z "$as_dir" && as_dir=.
4619 for ac_prog in egrep; do
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4622 as_fn_executable_p "$ac_path_EGREP" || continue
4623 # Check for GNU ac_path_EGREP and select it if it is found.
4624 # Check for GNU $ac_path_EGREP
4625 case `"$ac_path_EGREP" --version 2>&1` in
4627 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4630 $as_echo_n 0123456789 >"conftest.in"
4633 cat "conftest.in" "conftest.in" >"conftest.tmp"
4634 mv "conftest.tmp" "conftest.in"
4635 cp "conftest.in" "conftest.nl"
4636 $as_echo 'EGREP' >> "conftest.nl"
4637 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4638 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4639 as_fn_arith $ac_count + 1 && ac_count=$as_val
4640 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4641 # Best one so far, save it but keep looking for a better one
4642 ac_cv_path_EGREP="$ac_path_EGREP"
4643 ac_path_EGREP_max=$ac_count
4645 # 10*(2^10) chars as input seems more than enough
4646 test $ac_count -gt 10 && break
4648 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4651 $ac_path_EGREP_found && break 3
4656 if test -z "$ac_cv_path_EGREP"; then
4657 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4660 ac_cv_path_EGREP=$EGREP
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4666 $as_echo "$ac_cv_path_EGREP" >&6; }
4667 EGREP="$ac_cv_path_EGREP"
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4671 $as_echo_n "checking for ANSI C header files... " >&6; }
4672 if ${ac_cv_header_stdc+:} false; then :
4673 $as_echo_n "(cached) " >&6
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h. */
4690 if ac_fn_c_try_compile "$LINENO"; then :
4691 ac_cv_header_stdc=yes
4693 ac_cv_header_stdc=no
4695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4697 if test $ac_cv_header_stdc = yes; then
4698 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4705 $EGREP "memchr" >/dev/null 2>&1; then :
4708 ac_cv_header_stdc=no
4714 if test $ac_cv_header_stdc = yes; then
4715 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h. */
4721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4722 $EGREP "free" >/dev/null 2>&1; then :
4725 ac_cv_header_stdc=no
4731 if test $ac_cv_header_stdc = yes; then
4732 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4733 if test "$cross_compiling" = yes; then :
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4740 #if ((' ' & 0x0FF) == 0x020)
4741 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4742 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4744 # define ISLOWER(c) \
4745 (('a' <= (c) && (c) <= 'i') \
4746 || ('j' <= (c) && (c) <= 'r') \
4747 || ('s' <= (c) && (c) <= 'z'))
4748 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4751 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4756 for (i = 0; i < 256; i++)
4757 if (XOR (islower (i), ISLOWER (i))
4758 || toupper (i) != TOUPPER (i))
4763 if ac_fn_c_try_run "$LINENO"; then :
4766 ac_cv_header_stdc=no
4768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4769 conftest.$ac_objext conftest.beam conftest.$ac_ext
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4775 $as_echo "$ac_cv_header_stdc" >&6; }
4776 if test $ac_cv_header_stdc = yes; then
4778 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4782 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4783 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4784 inttypes.h stdint.h unistd.h
4786 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4787 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4789 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4790 cat >>confdefs.h <<_ACEOF
4791 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4800 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4801 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4808 if test "$MINIX" = yes; then
4810 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4813 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4816 $as_echo "#define _MINIX 1" >>confdefs.h
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4822 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4823 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4824 $as_echo_n "(cached) " >&6
4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4829 # define __EXTENSIONS__ 1
4830 $ac_includes_default
4839 if ac_fn_c_try_compile "$LINENO"; then :
4840 ac_cv_safe_to_define___extensions__=yes
4842 ac_cv_safe_to_define___extensions__=no
4844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4847 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4848 test $ac_cv_safe_to_define___extensions__ = yes &&
4849 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4851 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4853 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4855 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4857 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4860 # Check whether --enable-largefile was given.
4861 if test "${enable_largefile+set}" = set; then :
4862 enableval=$enable_largefile;
4865 if test "$enable_largefile" != no; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4868 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4869 if ${ac_cv_sys_largefile_CC+:} false; then :
4870 $as_echo_n "(cached) " >&6
4872 ac_cv_sys_largefile_CC=no
4873 if test "$GCC" != yes; then
4876 # IRIX 6.2 and later do not support large files by default,
4877 # so use the C compiler's -n32 option if that helps.
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4880 #include <sys/types.h>
4881 /* Check that off_t can represent 2**63 - 1 correctly.
4882 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4883 since some C++ compilers masquerading as C compilers
4884 incorrectly reject 9223372036854775807. */
4885 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4886 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4887 && LARGE_OFF_T % 2147483647 == 1)
4897 if ac_fn_c_try_compile "$LINENO"; then :
4900 rm -f core conftest.err conftest.$ac_objext
4902 if ac_fn_c_try_compile "$LINENO"; then :
4903 ac_cv_sys_largefile_CC=' -n32'; break
4905 rm -f core conftest.err conftest.$ac_objext
4909 rm -f conftest.$ac_ext
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4913 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4914 if test "$ac_cv_sys_largefile_CC" != no; then
4915 CC=$CC$ac_cv_sys_largefile_CC
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4919 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4920 if ${ac_cv_sys_file_offset_bits+:} false; then :
4921 $as_echo_n "(cached) " >&6
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4926 #include <sys/types.h>
4927 /* Check that off_t can represent 2**63 - 1 correctly.
4928 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4929 since some C++ compilers masquerading as C compilers
4930 incorrectly reject 9223372036854775807. */
4931 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4932 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4933 && LARGE_OFF_T % 2147483647 == 1)
4943 if ac_fn_c_try_compile "$LINENO"; then :
4944 ac_cv_sys_file_offset_bits=no; break
4946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h. */
4949 #define _FILE_OFFSET_BITS 64
4950 #include <sys/types.h>
4951 /* Check that off_t can represent 2**63 - 1 correctly.
4952 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4953 since some C++ compilers masquerading as C compilers
4954 incorrectly reject 9223372036854775807. */
4955 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4956 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4957 && LARGE_OFF_T % 2147483647 == 1)
4967 if ac_fn_c_try_compile "$LINENO"; then :
4968 ac_cv_sys_file_offset_bits=64; break
4970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971 ac_cv_sys_file_offset_bits=unknown
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4976 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4977 case $ac_cv_sys_file_offset_bits in #(
4980 cat >>confdefs.h <<_ACEOF
4981 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4986 if test $ac_cv_sys_file_offset_bits = unknown; then
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4988 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4989 if ${ac_cv_sys_large_files+:} false; then :
4990 $as_echo_n "(cached) " >&6
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4995 #include <sys/types.h>
4996 /* Check that off_t can represent 2**63 - 1 correctly.
4997 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4998 since some C++ compilers masquerading as C compilers
4999 incorrectly reject 9223372036854775807. */
5000 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5001 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5002 && LARGE_OFF_T % 2147483647 == 1)
5012 if ac_fn_c_try_compile "$LINENO"; then :
5013 ac_cv_sys_large_files=no; break
5015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5018 #define _LARGE_FILES 1
5019 #include <sys/types.h>
5020 /* Check that off_t can represent 2**63 - 1 correctly.
5021 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5022 since some C++ compilers masquerading as C compilers
5023 incorrectly reject 9223372036854775807. */
5024 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5025 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5026 && LARGE_OFF_T % 2147483647 == 1)
5036 if ac_fn_c_try_compile "$LINENO"; then :
5037 ac_cv_sys_large_files=1; break
5039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5040 ac_cv_sys_large_files=unknown
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5045 $as_echo "$ac_cv_sys_large_files" >&6; }
5046 case $ac_cv_sys_large_files in #(
5049 cat >>confdefs.h <<_ACEOF
5050 #define _LARGE_FILES $ac_cv_sys_large_files
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5062 $as_echo_n "checking whether ln -s works... " >&6; }
5064 if test "$LN_S" = "ln -s"; then
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5066 $as_echo "yes" >&6; }
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5069 $as_echo "no, using $LN_S" >&6; }
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5073 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5075 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5076 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5077 $as_echo_n "(cached) " >&6
5079 cat >conftest.make <<\_ACEOF
5082 @echo '@@@%%%=$(MAKE)=@@@%%%'
5084 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5085 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5087 eval ac_cv_prog_make_${ac_make}_set=yes;;
5089 eval ac_cv_prog_make_${ac_make}_set=no;;
5093 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5095 $as_echo "yes" >&6; }
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5100 SET_MAKE="MAKE=${MAKE-make}"
5110 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5111 if test -n "$ac_tool_prefix"; then
5112 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5113 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5117 $as_echo_n "(cached) " >&6
5121 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 test -z "$as_dir" && as_dir=.
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5131 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5143 if test -n "$PKG_CONFIG"; then
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5145 $as_echo "$PKG_CONFIG" >&6; }
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5153 if test -z "$ac_cv_path_PKG_CONFIG"; then
5154 ac_pt_PKG_CONFIG=$PKG_CONFIG
5155 # Extract the first word of "pkg-config", so it can be a program name with args.
5156 set dummy pkg-config; ac_word=$2
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158 $as_echo_n "checking for $ac_word... " >&6; }
5159 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5160 $as_echo_n "(cached) " >&6
5162 case $ac_pt_PKG_CONFIG in
5164 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5186 if test -n "$ac_pt_PKG_CONFIG"; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5188 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5194 if test "x$ac_pt_PKG_CONFIG" = x; then
5197 case $cross_compiling:$ac_tool_warned in
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5201 ac_tool_warned=yes ;;
5203 PKG_CONFIG=$ac_pt_PKG_CONFIG
5206 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5210 if test -n "$PKG_CONFIG"; then
5211 _pkg_min_version=0.9.0
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5213 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5214 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5216 $as_echo "yes" >&6; }
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5226 # Check whether --with-pkgconfigdir was given.
5227 if test "${with_pkgconfigdir+set}" = set; then :
5228 withval=$with_pkgconfigdir;
5230 with_pkgconfigdir='${libdir}/pkgconfig'
5233 pkgconfigdir=$with_pkgconfigdir
5240 GIT=${GIT-"${am_missing_run}git"}
5243 GPERF=${GPERF-"${am_missing_run}gperf"}
5251 # Find any Python interpreter.
5252 if test -z "$PYTHON"; then
5253 for ac_prog in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
5255 # Extract the first word of "$ac_prog", so it can be a program name with args.
5256 set dummy $ac_prog; ac_word=$2
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if ${ac_cv_path_PYTHON+:} false; then :
5260 $as_echo_n "(cached) " >&6
5264 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 test -z "$as_dir" && as_dir=.
5272 for ac_exec_ext in '' $ac_executable_extensions; do
5273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5274 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 PYTHON=$ac_cv_path_PYTHON
5286 if test -n "$PYTHON"; then
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5288 $as_echo "$PYTHON" >&6; }
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 $as_echo "no" >&6; }
5295 test -n "$PYTHON" && break
5297 test -n "$PYTHON" || PYTHON=":"
5300 am_display_PYTHON=python
5303 if test "$PYTHON" = :; then
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5309 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5310 if ${am_cv_python_version+:} false; then :
5311 $as_echo_n "(cached) " >&6
5313 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5316 $as_echo "$am_cv_python_version" >&6; }
5317 PYTHON_VERSION=$am_cv_python_version
5321 PYTHON_PREFIX='${prefix}'
5323 PYTHON_EXEC_PREFIX='${exec_prefix}'
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5328 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5329 if ${am_cv_python_platform+:} false; then :
5330 $as_echo_n "(cached) " >&6
5332 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5335 $as_echo "$am_cv_python_platform" >&6; }
5336 PYTHON_PLATFORM=$am_cv_python_platform
5339 # Just factor out some code duplication.
5340 am_python_setup_sysconfig="\
5342 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5343 # with python 3.x. See automake bug#10227.
5347 can_use_sysconfig = 0
5349 can_use_sysconfig = 1
5350 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5351 # <https://github.com/pypa/virtualenv/issues/118>
5353 from platform import python_implementation
5354 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5355 can_use_sysconfig = 0
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5361 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5362 if ${am_cv_python_pythondir+:} false; then :
5363 $as_echo_n "(cached) " >&6
5365 if test "x$prefix" = xNONE
5367 am_py_prefix=$ac_default_prefix
5369 am_py_prefix=$prefix
5371 am_cv_python_pythondir=`$PYTHON -c "
5372 $am_python_setup_sysconfig
5373 if can_use_sysconfig:
5374 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5376 from distutils import sysconfig
5377 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5378 sys.stdout.write(sitedir)"`
5379 case $am_cv_python_pythondir in
5381 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5382 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5385 case $am_py_prefix in
5388 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5396 $as_echo "$am_cv_python_pythondir" >&6; }
5397 pythondir=$am_cv_python_pythondir
5401 pkgpythondir=\${pythondir}/$PACKAGE
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5405 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5406 if ${am_cv_python_pyexecdir+:} false; then :
5407 $as_echo_n "(cached) " >&6
5409 if test "x$exec_prefix" = xNONE
5411 am_py_exec_prefix=$am_py_prefix
5413 am_py_exec_prefix=$exec_prefix
5415 am_cv_python_pyexecdir=`$PYTHON -c "
5416 $am_python_setup_sysconfig
5417 if can_use_sysconfig:
5418 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
5420 from distutils import sysconfig
5421 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
5422 sys.stdout.write(sitedir)"`
5423 case $am_cv_python_pyexecdir in
5424 $am_py_exec_prefix*)
5425 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5426 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5429 case $am_py_exec_prefix in
5432 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5440 $as_echo "$am_cv_python_pyexecdir" >&6; }
5441 pyexecdir=$am_cv_python_pyexecdir
5445 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5452 if test "$PYTHON" != :; then
5454 HAVE_PYTHON_FALSE='#'
5456 HAVE_PYTHON_TRUE='#'
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM macro" >&5
5462 $as_echo_n "checking for RM macro... " >&6; }
5463 _predefined_rm=`make -p -f /dev/null 2>/dev/null|grep '^RM ='|sed -e 's/^RM = //'`
5464 if test "x$_predefined_rm" = "x"; then
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no predefined RM" >&5
5466 $as_echo "no predefined RM" >&6; }
5467 # Extract the first word of "rm", so it can be a program name with args.
5468 set dummy rm; ac_word=$2
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5470 $as_echo_n "checking for $ac_word... " >&6; }
5471 if ${ac_cv_prog_RM+:} false; then :
5472 $as_echo_n "(cached) " >&6
5474 if test -n "$RM"; then
5475 ac_cv_prog_RM="$RM" # Let the user override the test.
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481 test -z "$as_dir" && as_dir=.
5482 for ac_exec_ext in '' $ac_executable_extensions; do
5483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5484 ac_cv_prog_RM="rm -f"
5485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5495 if test -n "$RM"; then
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5497 $as_echo "$RM" >&6; }
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5500 $as_echo "no" >&6; }
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_predefined_rm" >&5
5506 $as_echo "$_predefined_rm" >&6; }
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5513 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5518 macro_version='2.4.6'
5519 macro_revision='2.4.6'
5533 ltmain=$ac_aux_dir/ltmain.sh
5535 # Make sure we can run config.sub.
5536 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5537 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5540 $as_echo_n "checking build system type... " >&6; }
5541 if ${ac_cv_build+:} false; then :
5542 $as_echo_n "(cached) " >&6
5544 ac_build_alias=$build_alias
5545 test "x$ac_build_alias" = x &&
5546 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5547 test "x$ac_build_alias" = x &&
5548 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5549 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5550 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5554 $as_echo "$ac_cv_build" >&6; }
5555 case $ac_cv_build in
5557 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5560 ac_save_IFS=$IFS; IFS='-'
5566 # Remember, the first character of IFS is used to create $*,
5567 # except with old shells:
5570 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5574 $as_echo_n "checking host system type... " >&6; }
5575 if ${ac_cv_host+:} false; then :
5576 $as_echo_n "(cached) " >&6
5578 if test "x$host_alias" = x; then
5579 ac_cv_host=$ac_cv_build
5581 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5582 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5587 $as_echo "$ac_cv_host" >&6; }
5590 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5593 ac_save_IFS=$IFS; IFS='-'
5599 # Remember, the first character of IFS is used to create $*,
5600 # except with old shells:
5603 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5606 # Backslashify metacharacters that are still active within
5607 # double-quoted strings.
5608 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5610 # Same as above, but do not quote variable references.
5611 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5613 # Sed substitution to delay expansion of an escaped shell variable in a
5614 # double_quote_subst'ed string.
5615 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5617 # Sed substitution to delay expansion of an escaped single quote.
5618 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5620 # Sed substitution to avoid accidental globbing in evaled expressions
5621 no_glob_subst='s/\*/\\\*/g'
5623 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5624 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5625 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5628 $as_echo_n "checking how to print strings... " >&6; }
5629 # Test print first, because it will be a builtin if present.
5630 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5631 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5633 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5636 # Use this function as a fallback that always works.
5637 func_fallback_echo ()
5639 eval 'cat <<_LTECHO_EOF
5643 ECHO='func_fallback_echo'
5646 # func_echo_all arg...
5647 # Invoke $ECHO with all args, space-separated.
5654 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5655 $as_echo "printf" >&6; } ;;
5656 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5657 $as_echo "print -r" >&6; } ;;
5658 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5659 $as_echo "cat" >&6; } ;;
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5676 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5677 if ${ac_cv_path_SED+:} false; then :
5678 $as_echo_n "(cached) " >&6
5680 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5681 for ac_i in 1 2 3 4 5 6 7; do
5682 ac_script="$ac_script$as_nl$ac_script"
5684 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5685 { ac_script=; unset ac_script;}
5686 if test -z "$SED"; then
5687 ac_path_SED_found=false
5688 # Loop through the user's path and test for each of PROGNAME-LIST
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 test -z "$as_dir" && as_dir=.
5694 for ac_prog in sed gsed; do
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5697 as_fn_executable_p "$ac_path_SED" || continue
5698 # Check for GNU ac_path_SED and select it if it is found.
5699 # Check for GNU $ac_path_SED
5700 case `"$ac_path_SED" --version 2>&1` in
5702 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5705 $as_echo_n 0123456789 >"conftest.in"
5708 cat "conftest.in" "conftest.in" >"conftest.tmp"
5709 mv "conftest.tmp" "conftest.in"
5710 cp "conftest.in" "conftest.nl"
5711 $as_echo '' >> "conftest.nl"
5712 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5713 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5714 as_fn_arith $ac_count + 1 && ac_count=$as_val
5715 if test $ac_count -gt ${ac_path_SED_max-0}; then
5716 # Best one so far, save it but keep looking for a better one
5717 ac_cv_path_SED="$ac_path_SED"
5718 ac_path_SED_max=$ac_count
5720 # 10*(2^10) chars as input seems more than enough
5721 test $ac_count -gt 10 && break
5723 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5726 $ac_path_SED_found && break 3
5731 if test -z "$ac_cv_path_SED"; then
5732 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5740 $as_echo "$ac_cv_path_SED" >&6; }
5741 SED="$ac_cv_path_SED"
5744 test -z "$SED" && SED=sed
5745 Xsed="$SED -e 1s/^X//"
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5758 $as_echo_n "checking for fgrep... " >&6; }
5759 if ${ac_cv_path_FGREP+:} false; then :
5760 $as_echo_n "(cached) " >&6
5762 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5763 then ac_cv_path_FGREP="$GREP -F"
5765 if test -z "$FGREP"; then
5766 ac_path_FGREP_found=false
5767 # Loop through the user's path and test for each of PROGNAME-LIST
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5772 test -z "$as_dir" && as_dir=.
5773 for ac_prog in fgrep; do
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5776 as_fn_executable_p "$ac_path_FGREP" || continue
5777 # Check for GNU ac_path_FGREP and select it if it is found.
5778 # Check for GNU $ac_path_FGREP
5779 case `"$ac_path_FGREP" --version 2>&1` in
5781 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5784 $as_echo_n 0123456789 >"conftest.in"
5787 cat "conftest.in" "conftest.in" >"conftest.tmp"
5788 mv "conftest.tmp" "conftest.in"
5789 cp "conftest.in" "conftest.nl"
5790 $as_echo 'FGREP' >> "conftest.nl"
5791 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5792 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5793 as_fn_arith $ac_count + 1 && ac_count=$as_val
5794 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5795 # Best one so far, save it but keep looking for a better one
5796 ac_cv_path_FGREP="$ac_path_FGREP"
5797 ac_path_FGREP_max=$ac_count
5799 # 10*(2^10) chars as input seems more than enough
5800 test $ac_count -gt 10 && break
5802 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5805 $ac_path_FGREP_found && break 3
5810 if test -z "$ac_cv_path_FGREP"; then
5811 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5814 ac_cv_path_FGREP=$FGREP
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5820 $as_echo "$ac_cv_path_FGREP" >&6; }
5821 FGREP="$ac_cv_path_FGREP"
5824 test -z "$GREP" && GREP=grep
5844 # Check whether --with-gnu-ld was given.
5845 if test "${with_gnu_ld+set}" = set; then :
5846 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5852 if test yes = "$GCC"; then
5853 # Check if gcc -print-prog-name=ld gives a path.
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5855 $as_echo_n "checking for ld used by $CC... " >&6; }
5858 # gcc leaves a trailing carriage return, which upsets mingw
5859 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5861 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5864 # Accept absolute paths.
5866 re_direlt='/[^/][^/]*/\.\./'
5867 # Canonicalize the pathname of ld
5868 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5869 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5870 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5872 test -z "$LD" && LD=$ac_prog
5875 # If it fails, then pretend we aren't using GCC.
5879 # If it is relative, then search for the first ld in PATH.
5883 elif test yes = "$with_gnu_ld"; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5885 $as_echo_n "checking for GNU ld... " >&6; }
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5888 $as_echo_n "checking for non-GNU ld... " >&6; }
5890 if ${lt_cv_path_LD+:} false; then :
5891 $as_echo_n "(cached) " >&6
5893 if test -z "$LD"; then
5894 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5895 for ac_dir in $PATH; do
5897 test -z "$ac_dir" && ac_dir=.
5898 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5899 lt_cv_path_LD=$ac_dir/$ac_prog
5900 # Check to see if the program is GNU ld. I'd rather use --version,
5901 # but apparently some variants of GNU ld only accept -v.
5902 # Break only if it was the GNU/non-GNU ld that we prefer.
5903 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5904 *GNU* | *'with BFD'*)
5905 test no != "$with_gnu_ld" && break
5908 test yes != "$with_gnu_ld" && break
5915 lt_cv_path_LD=$LD # Let the user override the test with a path.
5920 if test -n "$LD"; then
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5922 $as_echo "$LD" >&6; }
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925 $as_echo "no" >&6; }
5927 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5929 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5930 if ${lt_cv_prog_gnu_ld+:} false; then :
5931 $as_echo_n "(cached) " >&6
5933 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5934 case `$LD -v 2>&1 </dev/null` in
5935 *GNU* | *'with BFD'*)
5936 lt_cv_prog_gnu_ld=yes
5939 lt_cv_prog_gnu_ld=no
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5944 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5945 with_gnu_ld=$lt_cv_prog_gnu_ld
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5956 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5957 if ${lt_cv_path_NM+:} false; then :
5958 $as_echo_n "(cached) " >&6
5960 if test -n "$NM"; then
5961 # Let the user override the test.
5964 lt_nm_to_check=${ac_tool_prefix}nm
5965 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5966 lt_nm_to_check="$lt_nm_to_check nm"
5968 for lt_tmp_nm in $lt_nm_to_check; do
5969 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5970 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5972 test -z "$ac_dir" && ac_dir=.
5973 tmp_nm=$ac_dir/$lt_tmp_nm
5974 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5975 # Check to see if the nm accepts a BSD-compat flag.
5976 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5977 # nm: unknown option "B" ignored
5978 # Tru64's nm complains that /dev/null is an invalid object file
5979 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5981 mingw*) lt_bad_file=conftest.nm/nofile ;;
5982 *) lt_bad_file=/dev/null ;;
5984 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5985 *$lt_bad_file* | *'Invalid file or object type'*)
5986 lt_cv_path_NM="$tmp_nm -B"
5990 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5992 lt_cv_path_NM="$tmp_nm -p"
5996 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5997 continue # so that we can try to find one that supports BSD flags
6006 : ${lt_cv_path_NM=no}
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6010 $as_echo "$lt_cv_path_NM" >&6; }
6011 if test no != "$lt_cv_path_NM"; then
6014 # Didn't find any BSD compatible name lister, look for dumpbin.
6015 if test -n "$DUMPBIN"; then :
6016 # Let the user override the test.
6018 if test -n "$ac_tool_prefix"; then
6019 for ac_prog in dumpbin "link -dump"
6021 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6022 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6024 $as_echo_n "checking for $ac_word... " >&6; }
6025 if ${ac_cv_prog_DUMPBIN+:} false; then :
6026 $as_echo_n "(cached) " >&6
6028 if test -n "$DUMPBIN"; then
6029 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035 test -z "$as_dir" && as_dir=.
6036 for ac_exec_ext in '' $ac_executable_extensions; do
6037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6038 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 DUMPBIN=$ac_cv_prog_DUMPBIN
6049 if test -n "$DUMPBIN"; then
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6051 $as_echo "$DUMPBIN" >&6; }
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6054 $as_echo "no" >&6; }
6058 test -n "$DUMPBIN" && break
6061 if test -z "$DUMPBIN"; then
6062 ac_ct_DUMPBIN=$DUMPBIN
6063 for ac_prog in dumpbin "link -dump"
6065 # Extract the first word of "$ac_prog", so it can be a program name with args.
6066 set dummy $ac_prog; ac_word=$2
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068 $as_echo_n "checking for $ac_word... " >&6; }
6069 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6070 $as_echo_n "(cached) " >&6
6072 if test -n "$ac_ct_DUMPBIN"; then
6073 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6082 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6093 if test -n "$ac_ct_DUMPBIN"; then
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6095 $as_echo "$ac_ct_DUMPBIN" >&6; }
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6102 test -n "$ac_ct_DUMPBIN" && break
6105 if test "x$ac_ct_DUMPBIN" = x; then
6108 case $cross_compiling:$ac_tool_warned in
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6112 ac_tool_warned=yes ;;
6114 DUMPBIN=$ac_ct_DUMPBIN
6118 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6120 DUMPBIN="$DUMPBIN -symbols -headers"
6128 if test : != "$DUMPBIN"; then
6132 test -z "$NM" && NM=nm
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6140 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6141 if ${lt_cv_nm_interface+:} false; then :
6142 $as_echo_n "(cached) " >&6
6144 lt_cv_nm_interface="BSD nm"
6145 echo "int some_variable = 0;" > conftest.$ac_ext
6146 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6147 (eval "$ac_compile" 2>conftest.err)
6148 cat conftest.err >&5
6149 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6150 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6151 cat conftest.err >&5
6152 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6153 cat conftest.out >&5
6154 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6155 lt_cv_nm_interface="MS dumpbin"
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6160 $as_echo "$lt_cv_nm_interface" >&6; }
6162 # find the maximum length of command line arguments
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6164 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6165 if ${lt_cv_sys_max_cmd_len+:} false; then :
6166 $as_echo_n "(cached) " >&6
6173 # On DJGPP, this test can blow up pretty badly due to problems in libc
6174 # (any single argument exceeding 2000 bytes causes a buffer overrun
6175 # during glob expansion). Even if it were fixed, the result of this
6176 # check would be larger than it should be.
6177 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6181 # Under GNU Hurd, this test is not required because there is
6182 # no limit to the length of command line arguments.
6183 # Libtool will interpret -1 as no limit whatsoever
6184 lt_cv_sys_max_cmd_len=-1;
6187 cygwin* | mingw* | cegcc*)
6188 # On Win9x/ME, this test blows up -- it succeeds, but takes
6189 # about 5 minutes as the teststring grows exponentially.
6190 # Worse, since 9x/ME are not pre-emptively multitasking,
6191 # you end up with a "frozen" computer, even though with patience
6192 # the test eventually succeeds (with a max line length of 256k).
6193 # Instead, let's just punt: use the minimum linelength reported by
6194 # all of the supported platforms: 8192 (on NT/2K/XP).
6195 lt_cv_sys_max_cmd_len=8192;
6199 # On MiNT this can take a long time and run out of memory.
6200 lt_cv_sys_max_cmd_len=8192;
6204 # On AmigaOS with pdksh, this test takes hours, literally.
6205 # So we just punt and use a minimum line length of 8192.
6206 lt_cv_sys_max_cmd_len=8192;
6209 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6210 # This has been around since 386BSD, at least. Likely further.
6211 if test -x /sbin/sysctl; then
6212 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6213 elif test -x /usr/sbin/sysctl; then
6214 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6216 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6218 # And add a safety zone
6219 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6220 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6224 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6225 lt_cv_sys_max_cmd_len=196608
6229 # The test takes a long time on OS/2.
6230 lt_cv_sys_max_cmd_len=8192
6234 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6235 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6236 # nice to cause kernel panics so lets avoid the loop below.
6237 # First set a reasonable default.
6238 lt_cv_sys_max_cmd_len=16384
6240 if test -x /sbin/sysconfig; then
6241 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6242 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6247 lt_cv_sys_max_cmd_len=102400
6249 sysv5* | sco5v6* | sysv4.2uw2*)
6250 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6251 if test -n "$kargmax"; then
6252 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6254 lt_cv_sys_max_cmd_len=32768
6258 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6259 if test -n "$lt_cv_sys_max_cmd_len" && \
6260 test undefined != "$lt_cv_sys_max_cmd_len"; then
6261 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6262 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6264 # Make teststring a little bigger before we do anything with it.
6265 # a 1K string should be a reasonable start.
6266 for i in 1 2 3 4 5 6 7 8; do
6267 teststring=$teststring$teststring
6269 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6270 # If test is not a shell built-in, we'll probably end up computing a
6271 # maximum length that is only half of the actual maximum length, but
6273 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6274 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6275 test 17 != "$i" # 1/2 MB should be enough
6278 teststring=$teststring$teststring
6280 # Only check the string length outside the loop.
6281 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6283 # Add a significant safety factor because C++ compilers can tack on
6284 # massive amounts of additional arguments before passing them to the
6285 # linker. It appears as though 1/2 is a usable value.
6286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6293 if test -n "$lt_cv_sys_max_cmd_len"; then
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6295 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6298 $as_echo "none" >&6; }
6300 max_cmd_len=$lt_cv_sys_max_cmd_len
6311 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6321 # test EBCDIC or ASCII
6322 case `echo X|tr X '\101'` in
6323 A) # ASCII based system
6324 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6325 lt_SP2NL='tr \040 \012'
6326 lt_NL2SP='tr \015\012 \040\040'
6328 *) # EBCDIC based system
6329 lt_SP2NL='tr \100 \n'
6330 lt_NL2SP='tr \r\n \100\100'
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6343 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6344 if ${lt_cv_to_host_file_cmd+:} false; then :
6345 $as_echo_n "(cached) " >&6
6350 *-*-mingw* ) # actually msys
6351 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6354 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6356 * ) # otherwise, assume *nix
6357 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6363 *-*-mingw* ) # actually msys
6364 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6367 lt_cv_to_host_file_cmd=func_convert_file_noop
6369 * ) # otherwise, assume *nix
6370 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6374 * ) # unhandled hosts (and "normal" native builds)
6375 lt_cv_to_host_file_cmd=func_convert_file_noop
6381 to_host_file_cmd=$lt_cv_to_host_file_cmd
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6383 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6390 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6391 if ${lt_cv_to_tool_file_cmd+:} false; then :
6392 $as_echo_n "(cached) " >&6
6394 #assume ordinary cross tools, or native build.
6395 lt_cv_to_tool_file_cmd=func_convert_file_noop
6399 *-*-mingw* ) # actually msys
6400 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6408 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6410 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6417 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6418 if ${lt_cv_ld_reload_flag+:} false; then :
6419 $as_echo_n "(cached) " >&6
6421 lt_cv_ld_reload_flag='-r'
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6424 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6425 reload_flag=$lt_cv_ld_reload_flag
6426 case $reload_flag in
6428 *) reload_flag=" $reload_flag" ;;
6430 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6432 cygwin* | mingw* | pw32* | cegcc*)
6433 if test yes != "$GCC"; then
6438 if test yes = "$GCC"; then
6439 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6441 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6454 if test -n "$ac_tool_prefix"; then
6455 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6456 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6458 $as_echo_n "checking for $ac_word... " >&6; }
6459 if ${ac_cv_prog_OBJDUMP+:} false; then :
6460 $as_echo_n "(cached) " >&6
6462 if test -n "$OBJDUMP"; then
6463 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6472 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6482 OBJDUMP=$ac_cv_prog_OBJDUMP
6483 if test -n "$OBJDUMP"; then
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6485 $as_echo "$OBJDUMP" >&6; }
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6488 $as_echo "no" >&6; }
6493 if test -z "$ac_cv_prog_OBJDUMP"; then
6494 ac_ct_OBJDUMP=$OBJDUMP
6495 # Extract the first word of "objdump", so it can be a program name with args.
6496 set dummy objdump; ac_word=$2
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498 $as_echo_n "checking for $ac_word... " >&6; }
6499 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6500 $as_echo_n "(cached) " >&6
6502 if test -n "$ac_ct_OBJDUMP"; then
6503 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
6511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6512 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6522 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6523 if test -n "$ac_ct_OBJDUMP"; then
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6525 $as_echo "$ac_ct_OBJDUMP" >&6; }
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528 $as_echo "no" >&6; }
6531 if test "x$ac_ct_OBJDUMP" = x; then
6534 case $cross_compiling:$ac_tool_warned in
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6538 ac_tool_warned=yes ;;
6540 OBJDUMP=$ac_ct_OBJDUMP
6543 OBJDUMP="$ac_cv_prog_OBJDUMP"
6546 test -z "$OBJDUMP" && OBJDUMP=objdump
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6554 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6555 if ${lt_cv_deplibs_check_method+:} false; then :
6556 $as_echo_n "(cached) " >&6
6558 lt_cv_file_magic_cmd='$MAGIC_CMD'
6559 lt_cv_file_magic_test_file=
6560 lt_cv_deplibs_check_method='unknown'
6561 # Need to set the preceding variable on all platforms that support
6562 # interlibrary dependencies.
6563 # 'none' -- dependencies not supported.
6564 # 'unknown' -- same as none, but documents that we really don't know.
6565 # 'pass_all' -- all dependencies passed with no checks.
6566 # 'test_compile' -- check by making test program.
6567 # 'file_magic [[regex]]' -- check by looking for files in library path
6568 # that responds to the $file_magic_cmd with a given extended regex.
6569 # If you have 'file' or equivalent on your system and you're not sure
6570 # whether 'pass_all' will *always* work, you probably want this one.
6574 lt_cv_deplibs_check_method=pass_all
6578 lt_cv_deplibs_check_method=pass_all
6582 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6583 lt_cv_file_magic_cmd='/usr/bin/file -L'
6584 lt_cv_file_magic_test_file=/shlib/libc.so
6588 # func_win32_libid is a shell function defined in ltmain.sh
6589 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6590 lt_cv_file_magic_cmd='func_win32_libid'
6594 # Base MSYS/MinGW do not provide the 'file' command needed by
6595 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6596 # unless we find 'file', for example because we are cross-compiling.
6597 if ( file / ) >/dev/null 2>&1; then
6598 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6599 lt_cv_file_magic_cmd='func_win32_libid'
6601 # Keep this pattern in sync with the one in func_win32_libid.
6602 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6603 lt_cv_file_magic_cmd='$OBJDUMP -f'
6608 # use the weaker test based on 'objdump'. See mingw*.
6609 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6610 lt_cv_file_magic_cmd='$OBJDUMP -f'
6613 darwin* | rhapsody*)
6614 lt_cv_deplibs_check_method=pass_all
6617 freebsd* | dragonfly*)
6618 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6621 # Not sure whether the presence of OpenBSD here was a mistake.
6622 # Let's accept both of them until this is cleared up.
6623 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6624 lt_cv_file_magic_cmd=/usr/bin/file
6625 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6629 lt_cv_deplibs_check_method=pass_all
6634 lt_cv_deplibs_check_method=pass_all
6637 hpux10.20* | hpux11*)
6638 lt_cv_file_magic_cmd=/usr/bin/file
6641 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6642 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6645 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]'
6646 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6649 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6650 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6656 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6657 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6660 irix5* | irix6* | nonstopux*)
6662 *-32|*"-32 ") libmagic=32-bit;;
6663 *-n32|*"-n32 ") libmagic=N32;;
6664 *-64|*"-64 ") libmagic=64-bit;;
6665 *) libmagic=never-match;;
6667 lt_cv_deplibs_check_method=pass_all
6670 # This must be glibc/ELF.
6671 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6672 lt_cv_deplibs_check_method=pass_all
6676 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6679 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6684 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6685 lt_cv_file_magic_cmd=/usr/bin/file
6686 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6690 lt_cv_deplibs_check_method=pass_all
6694 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6697 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6701 osf3* | osf4* | osf5*)
6702 lt_cv_deplibs_check_method=pass_all
6706 lt_cv_deplibs_check_method=pass_all
6710 lt_cv_deplibs_check_method=pass_all
6713 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6714 lt_cv_deplibs_check_method=pass_all
6718 case $host_vendor in
6720 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]'
6721 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6724 lt_cv_deplibs_check_method=pass_all
6727 lt_cv_file_magic_cmd='/bin/file'
6728 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6731 lt_cv_file_magic_cmd='/bin/file'
6732 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6733 lt_cv_file_magic_test_file=/lib/libc.so
6736 lt_cv_deplibs_check_method=pass_all
6739 lt_cv_deplibs_check_method=pass_all
6745 lt_cv_deplibs_check_method=pass_all
6748 lt_cv_deplibs_check_method=pass_all
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6754 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6758 if test "$build" = "$host"; then
6761 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6764 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6770 file_magic_cmd=$lt_cv_file_magic_cmd
6771 deplibs_check_method=$lt_cv_deplibs_check_method
6772 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6795 if test -n "$ac_tool_prefix"; then
6796 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6797 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799 $as_echo_n "checking for $ac_word... " >&6; }
6800 if ${ac_cv_prog_DLLTOOL+:} false; then :
6801 $as_echo_n "(cached) " >&6
6803 if test -n "$DLLTOOL"; then
6804 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6813 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 DLLTOOL=$ac_cv_prog_DLLTOOL
6824 if test -n "$DLLTOOL"; then
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6826 $as_echo "$DLLTOOL" >&6; }
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829 $as_echo "no" >&6; }
6834 if test -z "$ac_cv_prog_DLLTOOL"; then
6835 ac_ct_DLLTOOL=$DLLTOOL
6836 # Extract the first word of "dlltool", so it can be a program name with args.
6837 set dummy dlltool; ac_word=$2
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839 $as_echo_n "checking for $ac_word... " >&6; }
6840 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6841 $as_echo_n "(cached) " >&6
6843 if test -n "$ac_ct_DLLTOOL"; then
6844 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 test -z "$as_dir" && as_dir=.
6851 for ac_exec_ext in '' $ac_executable_extensions; do
6852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6853 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6864 if test -n "$ac_ct_DLLTOOL"; then
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6866 $as_echo "$ac_ct_DLLTOOL" >&6; }
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6872 if test "x$ac_ct_DLLTOOL" = x; then
6875 case $cross_compiling:$ac_tool_warned in
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6879 ac_tool_warned=yes ;;
6881 DLLTOOL=$ac_ct_DLLTOOL
6884 DLLTOOL="$ac_cv_prog_DLLTOOL"
6887 test -z "$DLLTOOL" && DLLTOOL=dlltool
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6896 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6897 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6898 $as_echo_n "(cached) " >&6
6900 lt_cv_sharedlib_from_linklib_cmd='unknown'
6903 cygwin* | mingw* | pw32* | cegcc*)
6904 # two different shell functions defined in ltmain.sh;
6905 # decide which one to use based on capabilities of $DLLTOOL
6906 case `$DLLTOOL --help 2>&1` in
6907 *--identify-strict*)
6908 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6911 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6916 # fallback: assume linklib IS sharedlib
6917 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6923 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6924 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6925 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6933 if test -n "$ac_tool_prefix"; then
6936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939 $as_echo_n "checking for $ac_word... " >&6; }
6940 if ${ac_cv_prog_AR+:} false; then :
6941 $as_echo_n "(cached) " >&6
6943 if test -n "$AR"; then
6944 ac_cv_prog_AR="$AR" # Let the user override the test.
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6953 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6964 if test -n "$AR"; then
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6966 $as_echo "$AR" >&6; }
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969 $as_echo "no" >&6; }
6973 test -n "$AR" && break
6976 if test -z "$AR"; then
6980 # Extract the first word of "$ac_prog", so it can be a program name with args.
6981 set dummy $ac_prog; ac_word=$2
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6983 $as_echo_n "checking for $ac_word... " >&6; }
6984 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6985 $as_echo_n "(cached) " >&6
6987 if test -n "$ac_ct_AR"; then
6988 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 test -z "$as_dir" && as_dir=.
6995 for ac_exec_ext in '' $ac_executable_extensions; do
6996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6997 ac_cv_prog_ac_ct_AR="$ac_prog"
6998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7007 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7008 if test -n "$ac_ct_AR"; then
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7010 $as_echo "$ac_ct_AR" >&6; }
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013 $as_echo "no" >&6; }
7017 test -n "$ac_ct_AR" && break
7020 if test "x$ac_ct_AR" = x; then
7023 case $cross_compiling:$ac_tool_warned in
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7027 ac_tool_warned=yes ;;
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7047 $as_echo_n "checking for archiver @FILE support... " >&6; }
7048 if ${lt_cv_ar_at_file+:} false; then :
7049 $as_echo_n "(cached) " >&6
7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h. */
7063 if ac_fn_c_try_compile "$LINENO"; then :
7064 echo conftest.$ac_objext > conftest.lst
7065 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7067 (eval $lt_ar_try) 2>&5
7069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7070 test $ac_status = 0; }
7071 if test 0 -eq "$ac_status"; then
7072 # Ensure the archiver fails upon bogus file names.
7073 rm -f conftest.$ac_objext libconftest.a
7074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7075 (eval $lt_ar_try) 2>&5
7077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7078 test $ac_status = 0; }
7079 if test 0 -ne "$ac_status"; then
7083 rm -f conftest.* libconftest.a
7086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7090 $as_echo "$lt_cv_ar_at_file" >&6; }
7092 if test no = "$lt_cv_ar_at_file"; then
7095 archiver_list_spec=$lt_cv_ar_at_file
7104 if test -n "$ac_tool_prefix"; then
7105 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7106 set dummy ${ac_tool_prefix}strip; ac_word=$2
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7108 $as_echo_n "checking for $ac_word... " >&6; }
7109 if ${ac_cv_prog_STRIP+:} false; then :
7110 $as_echo_n "(cached) " >&6
7112 if test -n "$STRIP"; then
7113 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 test -z "$as_dir" && as_dir=.
7120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7122 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7132 STRIP=$ac_cv_prog_STRIP
7133 if test -n "$STRIP"; then
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7135 $as_echo "$STRIP" >&6; }
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138 $as_echo "no" >&6; }
7143 if test -z "$ac_cv_prog_STRIP"; then
7145 # Extract the first word of "strip", so it can be a program name with args.
7146 set dummy strip; ac_word=$2
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7148 $as_echo_n "checking for $ac_word... " >&6; }
7149 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7150 $as_echo_n "(cached) " >&6
7152 if test -n "$ac_ct_STRIP"; then
7153 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7162 ac_cv_prog_ac_ct_STRIP="strip"
7163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7172 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7173 if test -n "$ac_ct_STRIP"; then
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7175 $as_echo "$ac_ct_STRIP" >&6; }
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7178 $as_echo "no" >&6; }
7181 if test "x$ac_ct_STRIP" = x; then
7184 case $cross_compiling:$ac_tool_warned in
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7188 ac_tool_warned=yes ;;
7193 STRIP="$ac_cv_prog_STRIP"
7196 test -z "$STRIP" && STRIP=:
7203 if test -n "$ac_tool_prefix"; then
7204 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7205 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207 $as_echo_n "checking for $ac_word... " >&6; }
7208 if ${ac_cv_prog_RANLIB+:} false; then :
7209 $as_echo_n "(cached) " >&6
7211 if test -n "$RANLIB"; then
7212 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7221 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 RANLIB=$ac_cv_prog_RANLIB
7232 if test -n "$RANLIB"; then
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7234 $as_echo "$RANLIB" >&6; }
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7242 if test -z "$ac_cv_prog_RANLIB"; then
7243 ac_ct_RANLIB=$RANLIB
7244 # Extract the first word of "ranlib", so it can be a program name with args.
7245 set dummy ranlib; ac_word=$2
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7247 $as_echo_n "checking for $ac_word... " >&6; }
7248 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7249 $as_echo_n "(cached) " >&6
7251 if test -n "$ac_ct_RANLIB"; then
7252 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 test -z "$as_dir" && as_dir=.
7259 for ac_exec_ext in '' $ac_executable_extensions; do
7260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7261 ac_cv_prog_ac_ct_RANLIB="ranlib"
7262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7272 if test -n "$ac_ct_RANLIB"; then
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7274 $as_echo "$ac_ct_RANLIB" >&6; }
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277 $as_echo "no" >&6; }
7280 if test "x$ac_ct_RANLIB" = x; then
7283 case $cross_compiling:$ac_tool_warned in
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7287 ac_tool_warned=yes ;;
7289 RANLIB=$ac_ct_RANLIB
7292 RANLIB="$ac_cv_prog_RANLIB"
7295 test -z "$RANLIB" && RANLIB=:
7302 # Determine commands to create old-style static archives.
7303 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7304 old_postinstall_cmds='chmod 644 $oldlib'
7305 old_postuninstall_cmds=
7307 if test -n "$RANLIB"; then
7310 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7313 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7316 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7321 lock_old_archive_extraction=yes ;;
7323 lock_old_archive_extraction=no ;;
7364 # If no C compiler was specified, use CC.
7367 # If no C compiler flags were specified, use CFLAGS.
7368 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7370 # Allow CC to be a program name with arguments.
7374 # Check for command to grab the raw symbol name followed by C symbol from nm.
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7376 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7377 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7378 $as_echo_n "(cached) " >&6
7381 # These are sane defaults that work on at least a few old systems.
7382 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7384 # Character class describing NM global symbol codes.
7385 symcode='[BCDEGRST]'
7387 # Regexp to match symbols that can be accessed directly from C.
7388 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7390 # Define system-specific variables.
7395 cygwin* | mingw* | pw32* | cegcc*)
7396 symcode='[ABCDGISTW]'
7399 if test ia64 = "$host_cpu"; then
7400 symcode='[ABCDEGRST]'
7404 symcode='[BCDEGRST]'
7407 symcode='[BCDEGQRST]'
7418 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7426 # If we're using GNU nm, then use its standard symbol codes.
7427 case `$NM -V 2>&1` in
7428 *GNU* | *'with BFD'*)
7429 symcode='[ABCDGIRSTW]' ;;
7432 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7433 # Gets list of data symbols to import.
7434 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7435 # Adjust the below global symbol transforms to fixup imported variables.
7436 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7437 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7438 lt_c_name_lib_hook="\
7439 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7440 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7442 # Disable hooks by default.
7443 lt_cv_sys_global_symbol_to_import=
7449 # Transform an extracted symbol line into a proper C declaration.
7450 # Some systems (esp. on ia64) link data and code symbols differently,
7451 # so use this general approach.
7452 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7454 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7455 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7457 # Transform an extracted symbol line into symbol name and symbol address
7458 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7460 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7461 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7463 # Transform an extracted symbol line into symbol name with lib prefix and
7465 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7466 $lt_c_name_lib_hook\
7467 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7468 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7469 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7471 # Handle CRLF in mingw tool chain
7475 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7479 # Try without a prefix underscore, then with it.
7480 for ac_symprfx in "" "_"; do
7482 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7483 symxfrm="\\1 $ac_symprfx\\2 \\2"
7485 # Write the raw and C identifiers.
7486 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7487 # Fake it for dumpbin and say T for any non-static function,
7488 # D for any global variable and I for any imported variable.
7489 # Also find C++ and __fastcall symbols from MSVC++,
7490 # which start with @ or ?.
7491 lt_cv_sys_global_symbol_pipe="$AWK '"\
7492 " {last_section=section; section=\$ 3};"\
7493 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7494 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7495 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7496 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7497 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7498 " \$ 0!~/External *\|/{next};"\
7499 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7500 " {if(hide[section]) next};"\
7501 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7502 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7503 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7504 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7505 " ' prfx=^$ac_symprfx"
7507 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7509 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7511 # Check to see that the pipe works correctly.
7515 cat > conftest.$ac_ext <<_LT_EOF
7520 void nm_test_func(void);
7521 void nm_test_func(void){}
7525 int main(){nm_test_var='a';nm_test_func();return(0);}
7528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7529 (eval $ac_compile) 2>&5
7531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7532 test $ac_status = 0; }; then
7533 # Now try to grab the symbols.
7535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7536 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7539 test $ac_status = 0; } && test -s "$nlist"; then
7540 # Try sorting and uniquifying the output.
7541 if sort "$nlist" | uniq > "$nlist"T; then
7542 mv -f "$nlist"T "$nlist"
7547 # Make sure that we snagged all the symbols we need.
7548 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7549 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7550 cat <<_LT_EOF > conftest.$ac_ext
7551 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7552 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7553 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7554 relocations are performed -- see ld's documentation on pseudo-relocs. */
7555 # define LT_DLSYM_CONST
7556 #elif defined __osf__
7557 /* This system does not cope well with relocations in const data. */
7558 # define LT_DLSYM_CONST
7560 # define LT_DLSYM_CONST const
7568 # Now generate the symbol file.
7569 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7571 cat <<_LT_EOF >> conftest.$ac_ext
7573 /* The mapping between symbol names and symbols. */
7574 LT_DLSYM_CONST struct {
7578 lt__PROGRAM__LTX_preloaded_symbols[] =
7580 { "@PROGRAM@", (void *) 0 },
7582 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7583 cat <<\_LT_EOF >> conftest.$ac_ext
7587 /* This works around a problem in FreeBSD linker */
7588 #ifdef FREEBSD_WORKAROUND
7589 static const void *lt_preloaded_setup() {
7590 return lt__PROGRAM__LTX_preloaded_symbols;
7598 # Now try linking the two files.
7599 mv conftest.$ac_objext conftstm.$ac_objext
7600 lt_globsym_save_LIBS=$LIBS
7601 lt_globsym_save_CFLAGS=$CFLAGS
7602 LIBS=conftstm.$ac_objext
7603 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7605 (eval $ac_link) 2>&5
7607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7608 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7611 LIBS=$lt_globsym_save_LIBS
7612 CFLAGS=$lt_globsym_save_CFLAGS
7614 echo "cannot find nm_test_func in $nlist" >&5
7617 echo "cannot find nm_test_var in $nlist" >&5
7620 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7623 echo "$progname: failed program was:" >&5
7624 cat conftest.$ac_ext >&5
7626 rm -rf conftest* conftst*
7628 # Do not use the global_symbol_pipe unless it works.
7629 if test yes = "$pipe_works"; then
7632 lt_cv_sys_global_symbol_pipe=
7638 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7639 lt_cv_sys_global_symbol_to_cdecl=
7641 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7643 $as_echo "failed" >&6; }
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7646 $as_echo "ok" >&6; }
7649 # Response file support.
7650 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7651 nm_file_list_spec='@'
7652 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7653 nm_file_list_spec='@'
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7693 $as_echo_n "checking for sysroot... " >&6; }
7695 # Check whether --with-sysroot was given.
7696 if test "${with_sysroot+set}" = set; then :
7697 withval=$with_sysroot;
7704 case $with_sysroot in #(
7706 if test yes = "$GCC"; then
7707 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7711 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7717 $as_echo "$with_sysroot" >&6; }
7718 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7723 $as_echo "${lt_sysroot:-no}" >&6; }
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7730 $as_echo_n "checking for a working dd... " >&6; }
7731 if ${ac_cv_path_lt_DD+:} false; then :
7732 $as_echo_n "(cached) " >&6
7734 printf 0123456789abcdef0123456789abcdef >conftest.i
7735 cat conftest.i conftest.i >conftest2.i
7737 if test -z "$lt_DD"; then
7738 ac_path_lt_DD_found=false
7739 # Loop through the user's path and test for each of PROGNAME-LIST
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744 test -z "$as_dir" && as_dir=.
7745 for ac_prog in dd; do
7746 for ac_exec_ext in '' $ac_executable_extensions; do
7747 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7748 as_fn_executable_p "$ac_path_lt_DD" || continue
7749 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7750 cmp -s conftest.i conftest.out \
7751 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7753 $ac_path_lt_DD_found && break 3
7758 if test -z "$ac_cv_path_lt_DD"; then
7762 ac_cv_path_lt_DD=$lt_DD
7765 rm -f conftest.i conftest2.i conftest.out
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7768 $as_echo "$ac_cv_path_lt_DD" >&6; }
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7772 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7773 if ${lt_cv_truncate_bin+:} false; then :
7774 $as_echo_n "(cached) " >&6
7776 printf 0123456789abcdef0123456789abcdef >conftest.i
7777 cat conftest.i conftest.i >conftest2.i
7779 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7780 cmp -s conftest.i conftest.out \
7781 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7783 rm -f conftest.i conftest2.i conftest.out
7784 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7787 $as_echo "$lt_cv_truncate_bin" >&6; }
7795 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7798 for cc_temp in $*""; do
7800 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7801 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7806 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7809 # Check whether --enable-libtool-lock was given.
7810 if test "${enable_libtool_lock+set}" = set; then :
7811 enableval=$enable_libtool_lock;
7814 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7816 # Some flags need to be propagated to the compiler or linker for good
7820 # Find out what ABI is being produced by ac_compile, and set mode
7821 # options accordingly.
7822 echo 'int i;' > conftest.$ac_ext
7823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7824 (eval $ac_compile) 2>&5
7826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7827 test $ac_status = 0; }; then
7828 case `/usr/bin/file conftest.$ac_objext` in
7840 # Find out what ABI is being produced by ac_compile, and set linker
7841 # options accordingly.
7842 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7844 (eval $ac_compile) 2>&5
7846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7847 test $ac_status = 0; }; then
7848 if test yes = "$lt_cv_prog_gnu_ld"; then
7849 case `/usr/bin/file conftest.$ac_objext` in
7851 LD="${LD-ld} -melf32bsmip"
7854 LD="${LD-ld} -melf32bmipn32"
7857 LD="${LD-ld} -melf64bmip"
7861 case `/usr/bin/file conftest.$ac_objext` in
7878 # Find out what ABI is being produced by ac_compile, and set linker
7879 # options accordingly.
7880 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7882 (eval $ac_compile) 2>&5
7884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7885 test $ac_status = 0; }; then
7887 case `/usr/bin/file conftest.$ac_objext` in
7895 case `/usr/bin/file conftest.$ac_objext` in
7897 emul="${emul}btsmip"
7900 emul="${emul}ltsmip"
7903 case `/usr/bin/file conftest.$ac_objext` in
7908 LD="${LD-ld} -m $emul"
7913 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7914 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7915 # Find out what ABI is being produced by ac_compile, and set linker
7916 # options accordingly. Note that the listed cases only cover the
7917 # situations where additional linker options are needed (such as when
7918 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7919 # vice versa); the common cases where no linker options are needed do
7920 # not appear in the list.
7921 echo 'int i;' > conftest.$ac_ext
7922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7923 (eval $ac_compile) 2>&5
7925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7926 test $ac_status = 0; }; then
7927 case `/usr/bin/file conftest.o` in
7930 x86_64-*kfreebsd*-gnu)
7931 LD="${LD-ld} -m elf_i386_fbsd"
7934 case `/usr/bin/file conftest.o` in
7936 LD="${LD-ld} -m elf32_x86_64"
7939 LD="${LD-ld} -m elf_i386"
7943 powerpc64le-*linux*)
7944 LD="${LD-ld} -m elf32lppclinux"
7947 LD="${LD-ld} -m elf32ppclinux"
7950 LD="${LD-ld} -m elf_s390"
7953 LD="${LD-ld} -m elf32_sparc"
7959 x86_64-*kfreebsd*-gnu)
7960 LD="${LD-ld} -m elf_x86_64_fbsd"
7963 LD="${LD-ld} -m elf_x86_64"
7966 LD="${LD-ld} -m elf64lppc"
7969 LD="${LD-ld} -m elf64ppc"
7971 s390*-*linux*|s390*-*tpf*)
7972 LD="${LD-ld} -m elf64_s390"
7975 LD="${LD-ld} -m elf64_sparc"
7985 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7987 CFLAGS="$CFLAGS -belf"
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7989 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7990 if ${lt_cv_cc_needs_belf+:} false; then :
7991 $as_echo_n "(cached) " >&6
7994 ac_cpp='$CPP $CPPFLAGS'
7995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000 /* end confdefs.h. */
8010 if ac_fn_c_try_link "$LINENO"; then :
8011 lt_cv_cc_needs_belf=yes
8013 lt_cv_cc_needs_belf=no
8015 rm -f core conftest.err conftest.$ac_objext \
8016 conftest$ac_exeext conftest.$ac_ext
8018 ac_cpp='$CPP $CPPFLAGS'
8019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8025 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8026 if test yes != "$lt_cv_cc_needs_belf"; then
8027 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8032 # Find out what ABI is being produced by ac_compile, and set linker
8033 # options accordingly.
8034 echo 'int i;' > conftest.$ac_ext
8035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8036 (eval $ac_compile) 2>&5
8038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8039 test $ac_status = 0; }; then
8040 case `/usr/bin/file conftest.o` in
8042 case $lt_cv_prog_gnu_ld in
8045 i?86-*-solaris*|x86_64-*-solaris*)
8046 LD="${LD-ld} -m elf_x86_64"
8049 LD="${LD-ld} -m elf64_sparc"
8052 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8053 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8058 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8070 need_locks=$enable_libtool_lock
8072 if test -n "$ac_tool_prefix"; then
8073 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8074 set dummy ${ac_tool_prefix}mt; ac_word=$2
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076 $as_echo_n "checking for $ac_word... " >&6; }
8077 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8078 $as_echo_n "(cached) " >&6
8080 if test -n "$MANIFEST_TOOL"; then
8081 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8087 test -z "$as_dir" && as_dir=.
8088 for ac_exec_ext in '' $ac_executable_extensions; do
8089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8090 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8101 if test -n "$MANIFEST_TOOL"; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8103 $as_echo "$MANIFEST_TOOL" >&6; }
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8111 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8112 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8113 # Extract the first word of "mt", so it can be a program name with args.
8114 set dummy mt; ac_word=$2
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116 $as_echo_n "checking for $ac_word... " >&6; }
8117 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8118 $as_echo_n "(cached) " >&6
8120 if test -n "$ac_ct_MANIFEST_TOOL"; then
8121 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127 test -z "$as_dir" && as_dir=.
8128 for ac_exec_ext in '' $ac_executable_extensions; do
8129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8130 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8140 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8141 if test -n "$ac_ct_MANIFEST_TOOL"; then
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8143 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146 $as_echo "no" >&6; }
8149 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8152 case $cross_compiling:$ac_tool_warned in
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8156 ac_tool_warned=yes ;;
8158 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8161 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8164 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8166 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8167 if ${lt_cv_path_mainfest_tool+:} false; then :
8168 $as_echo_n "(cached) " >&6
8170 lt_cv_path_mainfest_tool=no
8171 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8172 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8173 cat conftest.err >&5
8174 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8175 lt_cv_path_mainfest_tool=yes
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8180 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8181 if test yes != "$lt_cv_path_mainfest_tool"; then
8191 rhapsody* | darwin*)
8192 if test -n "$ac_tool_prefix"; then
8193 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8194 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196 $as_echo_n "checking for $ac_word... " >&6; }
8197 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8198 $as_echo_n "(cached) " >&6
8200 if test -n "$DSYMUTIL"; then
8201 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207 test -z "$as_dir" && as_dir=.
8208 for ac_exec_ext in '' $ac_executable_extensions; do
8209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8210 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8220 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8221 if test -n "$DSYMUTIL"; then
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8223 $as_echo "$DSYMUTIL" >&6; }
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226 $as_echo "no" >&6; }
8231 if test -z "$ac_cv_prog_DSYMUTIL"; then
8232 ac_ct_DSYMUTIL=$DSYMUTIL
8233 # Extract the first word of "dsymutil", so it can be a program name with args.
8234 set dummy dsymutil; ac_word=$2
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8236 $as_echo_n "checking for $ac_word... " >&6; }
8237 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8238 $as_echo_n "(cached) " >&6
8240 if test -n "$ac_ct_DSYMUTIL"; then
8241 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247 test -z "$as_dir" && as_dir=.
8248 for ac_exec_ext in '' $ac_executable_extensions; do
8249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8250 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8260 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8261 if test -n "$ac_ct_DSYMUTIL"; then
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8263 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266 $as_echo "no" >&6; }
8269 if test "x$ac_ct_DSYMUTIL" = x; then
8272 case $cross_compiling:$ac_tool_warned in
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8276 ac_tool_warned=yes ;;
8278 DSYMUTIL=$ac_ct_DSYMUTIL
8281 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8284 if test -n "$ac_tool_prefix"; then
8285 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8286 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8288 $as_echo_n "checking for $ac_word... " >&6; }
8289 if ${ac_cv_prog_NMEDIT+:} false; then :
8290 $as_echo_n "(cached) " >&6
8292 if test -n "$NMEDIT"; then
8293 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8299 test -z "$as_dir" && as_dir=.
8300 for ac_exec_ext in '' $ac_executable_extensions; do
8301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8302 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8312 NMEDIT=$ac_cv_prog_NMEDIT
8313 if test -n "$NMEDIT"; then
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8315 $as_echo "$NMEDIT" >&6; }
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8318 $as_echo "no" >&6; }
8323 if test -z "$ac_cv_prog_NMEDIT"; then
8324 ac_ct_NMEDIT=$NMEDIT
8325 # Extract the first word of "nmedit", so it can be a program name with args.
8326 set dummy nmedit; ac_word=$2
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8328 $as_echo_n "checking for $ac_word... " >&6; }
8329 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8330 $as_echo_n "(cached) " >&6
8332 if test -n "$ac_ct_NMEDIT"; then
8333 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339 test -z "$as_dir" && as_dir=.
8340 for ac_exec_ext in '' $ac_executable_extensions; do
8341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8342 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8352 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8353 if test -n "$ac_ct_NMEDIT"; then
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8355 $as_echo "$ac_ct_NMEDIT" >&6; }
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358 $as_echo "no" >&6; }
8361 if test "x$ac_ct_NMEDIT" = x; then
8364 case $cross_compiling:$ac_tool_warned in
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8368 ac_tool_warned=yes ;;
8370 NMEDIT=$ac_ct_NMEDIT
8373 NMEDIT="$ac_cv_prog_NMEDIT"
8376 if test -n "$ac_tool_prefix"; then
8377 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8378 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380 $as_echo_n "checking for $ac_word... " >&6; }
8381 if ${ac_cv_prog_LIPO+:} false; then :
8382 $as_echo_n "(cached) " >&6
8384 if test -n "$LIPO"; then
8385 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391 test -z "$as_dir" && as_dir=.
8392 for ac_exec_ext in '' $ac_executable_extensions; do
8393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8394 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8404 LIPO=$ac_cv_prog_LIPO
8405 if test -n "$LIPO"; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8407 $as_echo "$LIPO" >&6; }
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8415 if test -z "$ac_cv_prog_LIPO"; then
8417 # Extract the first word of "lipo", so it can be a program name with args.
8418 set dummy lipo; ac_word=$2
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8420 $as_echo_n "checking for $ac_word... " >&6; }
8421 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8422 $as_echo_n "(cached) " >&6
8424 if test -n "$ac_ct_LIPO"; then
8425 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8431 test -z "$as_dir" && as_dir=.
8432 for ac_exec_ext in '' $ac_executable_extensions; do
8433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8434 ac_cv_prog_ac_ct_LIPO="lipo"
8435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8444 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8445 if test -n "$ac_ct_LIPO"; then
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8447 $as_echo "$ac_ct_LIPO" >&6; }
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8450 $as_echo "no" >&6; }
8453 if test "x$ac_ct_LIPO" = x; then
8456 case $cross_compiling:$ac_tool_warned in
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8460 ac_tool_warned=yes ;;
8465 LIPO="$ac_cv_prog_LIPO"
8468 if test -n "$ac_tool_prefix"; then
8469 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8470 set dummy ${ac_tool_prefix}otool; ac_word=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if ${ac_cv_prog_OTOOL+:} false; then :
8474 $as_echo_n "(cached) " >&6
8476 if test -n "$OTOOL"; then
8477 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8483 test -z "$as_dir" && as_dir=.
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8486 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8496 OTOOL=$ac_cv_prog_OTOOL
8497 if test -n "$OTOOL"; then
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8499 $as_echo "$OTOOL" >&6; }
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502 $as_echo "no" >&6; }
8507 if test -z "$ac_cv_prog_OTOOL"; then
8509 # Extract the first word of "otool", so it can be a program name with args.
8510 set dummy otool; ac_word=$2
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8512 $as_echo_n "checking for $ac_word... " >&6; }
8513 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8514 $as_echo_n "(cached) " >&6
8516 if test -n "$ac_ct_OTOOL"; then
8517 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523 test -z "$as_dir" && as_dir=.
8524 for ac_exec_ext in '' $ac_executable_extensions; do
8525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8526 ac_cv_prog_ac_ct_OTOOL="otool"
8527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8536 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8537 if test -n "$ac_ct_OTOOL"; then
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8539 $as_echo "$ac_ct_OTOOL" >&6; }
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542 $as_echo "no" >&6; }
8545 if test "x$ac_ct_OTOOL" = x; then
8548 case $cross_compiling:$ac_tool_warned in
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8552 ac_tool_warned=yes ;;
8557 OTOOL="$ac_cv_prog_OTOOL"
8560 if test -n "$ac_tool_prefix"; then
8561 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8562 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8564 $as_echo_n "checking for $ac_word... " >&6; }
8565 if ${ac_cv_prog_OTOOL64+:} false; then :
8566 $as_echo_n "(cached) " >&6
8568 if test -n "$OTOOL64"; then
8569 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575 test -z "$as_dir" && as_dir=.
8576 for ac_exec_ext in '' $ac_executable_extensions; do
8577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8578 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8588 OTOOL64=$ac_cv_prog_OTOOL64
8589 if test -n "$OTOOL64"; then
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8591 $as_echo "$OTOOL64" >&6; }
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8594 $as_echo "no" >&6; }
8599 if test -z "$ac_cv_prog_OTOOL64"; then
8600 ac_ct_OTOOL64=$OTOOL64
8601 # Extract the first word of "otool64", so it can be a program name with args.
8602 set dummy otool64; ac_word=$2
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8604 $as_echo_n "checking for $ac_word... " >&6; }
8605 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8606 $as_echo_n "(cached) " >&6
8608 if test -n "$ac_ct_OTOOL64"; then
8609 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8615 test -z "$as_dir" && as_dir=.
8616 for ac_exec_ext in '' $ac_executable_extensions; do
8617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8618 ac_cv_prog_ac_ct_OTOOL64="otool64"
8619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8628 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8629 if test -n "$ac_ct_OTOOL64"; then
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8631 $as_echo "$ac_ct_OTOOL64" >&6; }
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634 $as_echo "no" >&6; }
8637 if test "x$ac_ct_OTOOL64" = x; then
8640 case $cross_compiling:$ac_tool_warned in
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8644 ac_tool_warned=yes ;;
8646 OTOOL64=$ac_ct_OTOOL64
8649 OTOOL64="$ac_cv_prog_OTOOL64"
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8679 $as_echo_n "checking for -single_module linker flag... " >&6; }
8680 if ${lt_cv_apple_cc_single_mod+:} false; then :
8681 $as_echo_n "(cached) " >&6
8683 lt_cv_apple_cc_single_mod=no
8684 if test -z "$LT_MULTI_MODULE"; then
8685 # By default we will add the -single_module flag. You can override
8686 # by either setting the environment variable LT_MULTI_MODULE
8687 # non-empty at configure time, or by adding -multi_module to the
8689 rm -rf libconftest.dylib*
8690 echo "int foo(void){return 1;}" > conftest.c
8691 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8692 -dynamiclib -Wl,-single_module conftest.c" >&5
8693 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8694 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8696 # If there is a non-empty error log, and "single_module"
8697 # appears in it, assume the flag caused a linker warning
8698 if test -s conftest.err && $GREP single_module conftest.err; then
8699 cat conftest.err >&5
8700 # Otherwise, if the output was created with a 0 exit code from
8701 # the compiler, it worked.
8702 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8703 lt_cv_apple_cc_single_mod=yes
8705 cat conftest.err >&5
8707 rm -rf libconftest.dylib*
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8712 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8715 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8716 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8717 $as_echo_n "(cached) " >&6
8719 lt_cv_ld_exported_symbols_list=no
8720 save_LDFLAGS=$LDFLAGS
8721 echo "_main" > conftest.sym
8722 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8724 /* end confdefs.h. */
8734 if ac_fn_c_try_link "$LINENO"; then :
8735 lt_cv_ld_exported_symbols_list=yes
8737 lt_cv_ld_exported_symbols_list=no
8739 rm -f core conftest.err conftest.$ac_objext \
8740 conftest$ac_exeext conftest.$ac_ext
8741 LDFLAGS=$save_LDFLAGS
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8745 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8748 $as_echo_n "checking for -force_load linker flag... " >&6; }
8749 if ${lt_cv_ld_force_load+:} false; then :
8750 $as_echo_n "(cached) " >&6
8752 lt_cv_ld_force_load=no
8753 cat > conftest.c << _LT_EOF
8754 int forced_loaded() { return 2;}
8756 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8757 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8758 echo "$AR cru libconftest.a conftest.o" >&5
8759 $AR cru libconftest.a conftest.o 2>&5
8760 echo "$RANLIB libconftest.a" >&5
8761 $RANLIB libconftest.a 2>&5
8762 cat > conftest.c << _LT_EOF
8763 int main() { return 0;}
8765 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8766 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8768 if test -s conftest.err && $GREP force_load conftest.err; then
8769 cat conftest.err >&5
8770 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8771 lt_cv_ld_force_load=yes
8773 cat conftest.err >&5
8775 rm -f conftest.err libconftest.a conftest conftest.c
8776 rm -rf conftest.dSYM
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8780 $as_echo "$lt_cv_ld_force_load" >&6; }
8782 rhapsody* | darwin1.[012])
8783 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8785 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8786 darwin*) # darwin 5.x on
8787 # if running on 10.5 or later, the deployment target defaults
8788 # to the OS version, if on x86, and 10.4, the deployment
8789 # target defaults to 10.4. Don't you love it?
8790 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8791 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8792 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8794 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8796 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8800 if test yes = "$lt_cv_apple_cc_single_mod"; then
8801 _lt_dar_single_mod='$single_module'
8803 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8804 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8806 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8808 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8809 _lt_dsymutil='~$DSYMUTIL $lib || :'
8816 # func_munge_path_list VARIABLE PATH
8817 # -----------------------------------
8818 # VARIABLE is name of variable containing _space_ separated list of
8819 # directories to be munged by the contents of PATH, which is string
8822 # string "DIR[ DIR]" will be prepended to VARIABLE
8824 # string "DIR[ DIR]" will be appended to VARIABLE
8825 # "DIRP[:DIRP]::[DIRA:]DIRA"
8826 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8827 # "DIRA[ DIRA]" will be appended to VARIABLE
8829 # VARIABLE will be replaced by "DIR[ DIR]"
8830 func_munge_path_list ()
8836 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8839 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8842 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8843 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8846 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8851 for ac_header in dlfcn.h
8853 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8855 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8856 cat >>confdefs.h <<_ACEOF
8857 #define HAVE_DLFCN_H 1
8869 # Check whether --enable-static was given.
8870 if test "${enable_static+set}" = set; then :
8871 enableval=$enable_static; p=${PACKAGE-default}
8873 yes) enable_static=yes ;;
8874 no) enable_static=no ;;
8877 # Look at the argument we got. We use all the common list separators.
8878 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8879 for pkg in $enableval; do
8881 if test "X$pkg" = "X$p"; then
8898 enable_win32_dll=yes
8901 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8902 if test -n "$ac_tool_prefix"; then
8903 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8904 set dummy ${ac_tool_prefix}as; ac_word=$2
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8906 $as_echo_n "checking for $ac_word... " >&6; }
8907 if ${ac_cv_prog_AS+:} false; then :
8908 $as_echo_n "(cached) " >&6
8910 if test -n "$AS"; then
8911 ac_cv_prog_AS="$AS" # Let the user override the test.
8913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8917 test -z "$as_dir" && as_dir=.
8918 for ac_exec_ext in '' $ac_executable_extensions; do
8919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8920 ac_cv_prog_AS="${ac_tool_prefix}as"
8921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8931 if test -n "$AS"; then
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8933 $as_echo "$AS" >&6; }
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8936 $as_echo "no" >&6; }
8941 if test -z "$ac_cv_prog_AS"; then
8943 # Extract the first word of "as", so it can be a program name with args.
8944 set dummy as; ac_word=$2
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8946 $as_echo_n "checking for $ac_word... " >&6; }
8947 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8948 $as_echo_n "(cached) " >&6
8950 if test -n "$ac_ct_AS"; then
8951 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8957 test -z "$as_dir" && as_dir=.
8958 for ac_exec_ext in '' $ac_executable_extensions; do
8959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8960 ac_cv_prog_ac_ct_AS="as"
8961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8970 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8971 if test -n "$ac_ct_AS"; then
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8973 $as_echo "$ac_ct_AS" >&6; }
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8976 $as_echo "no" >&6; }
8979 if test "x$ac_ct_AS" = x; then
8982 case $cross_compiling:$ac_tool_warned in
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8986 ac_tool_warned=yes ;;
8994 if test -n "$ac_tool_prefix"; then
8995 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8996 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8998 $as_echo_n "checking for $ac_word... " >&6; }
8999 if ${ac_cv_prog_DLLTOOL+:} false; then :
9000 $as_echo_n "(cached) " >&6
9002 if test -n "$DLLTOOL"; then
9003 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9009 test -z "$as_dir" && as_dir=.
9010 for ac_exec_ext in '' $ac_executable_extensions; do
9011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9012 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9022 DLLTOOL=$ac_cv_prog_DLLTOOL
9023 if test -n "$DLLTOOL"; then
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9025 $as_echo "$DLLTOOL" >&6; }
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9028 $as_echo "no" >&6; }
9033 if test -z "$ac_cv_prog_DLLTOOL"; then
9034 ac_ct_DLLTOOL=$DLLTOOL
9035 # Extract the first word of "dlltool", so it can be a program name with args.
9036 set dummy dlltool; ac_word=$2
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9038 $as_echo_n "checking for $ac_word... " >&6; }
9039 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9040 $as_echo_n "(cached) " >&6
9042 if test -n "$ac_ct_DLLTOOL"; then
9043 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049 test -z "$as_dir" && as_dir=.
9050 for ac_exec_ext in '' $ac_executable_extensions; do
9051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9052 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9062 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9063 if test -n "$ac_ct_DLLTOOL"; then
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9065 $as_echo "$ac_ct_DLLTOOL" >&6; }
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9068 $as_echo "no" >&6; }
9071 if test "x$ac_ct_DLLTOOL" = x; then
9074 case $cross_compiling:$ac_tool_warned in
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9078 ac_tool_warned=yes ;;
9080 DLLTOOL=$ac_ct_DLLTOOL
9083 DLLTOOL="$ac_cv_prog_DLLTOOL"
9086 if test -n "$ac_tool_prefix"; then
9087 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9088 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9090 $as_echo_n "checking for $ac_word... " >&6; }
9091 if ${ac_cv_prog_OBJDUMP+:} false; then :
9092 $as_echo_n "(cached) " >&6
9094 if test -n "$OBJDUMP"; then
9095 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9101 test -z "$as_dir" && as_dir=.
9102 for ac_exec_ext in '' $ac_executable_extensions; do
9103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9104 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9114 OBJDUMP=$ac_cv_prog_OBJDUMP
9115 if test -n "$OBJDUMP"; then
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9117 $as_echo "$OBJDUMP" >&6; }
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9120 $as_echo "no" >&6; }
9125 if test -z "$ac_cv_prog_OBJDUMP"; then
9126 ac_ct_OBJDUMP=$OBJDUMP
9127 # Extract the first word of "objdump", so it can be a program name with args.
9128 set dummy objdump; ac_word=$2
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9130 $as_echo_n "checking for $ac_word... " >&6; }
9131 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9132 $as_echo_n "(cached) " >&6
9134 if test -n "$ac_ct_OBJDUMP"; then
9135 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9141 test -z "$as_dir" && as_dir=.
9142 for ac_exec_ext in '' $ac_executable_extensions; do
9143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9144 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9154 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9155 if test -n "$ac_ct_OBJDUMP"; then
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9157 $as_echo "$ac_ct_OBJDUMP" >&6; }
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9160 $as_echo "no" >&6; }
9163 if test "x$ac_ct_OBJDUMP" = x; then
9166 case $cross_compiling:$ac_tool_warned in
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9170 ac_tool_warned=yes ;;
9172 OBJDUMP=$ac_ct_OBJDUMP
9175 OBJDUMP="$ac_cv_prog_OBJDUMP"
9181 test -z "$AS" && AS=as
9187 test -z "$DLLTOOL" && DLLTOOL=dlltool
9193 test -z "$OBJDUMP" && OBJDUMP=objdump
9205 # Check whether --enable-shared was given.
9206 if test "${enable_shared+set}" = set; then :
9207 enableval=$enable_shared; p=${PACKAGE-default}
9209 yes) enable_shared=yes ;;
9210 no) enable_shared=no ;;
9213 # Look at the argument we got. We use all the common list separators.
9214 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9215 for pkg in $enableval; do
9217 if test "X$pkg" = "X$p"; then
9238 # Check whether --with-pic was given.
9239 if test "${with_pic+set}" = set; then :
9240 withval=$with_pic; lt_p=${PACKAGE-default}
9242 yes|no) pic_mode=$withval ;;
9245 # Look at the argument we got. We use all the common list separators.
9246 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9247 for lt_pkg in $withval; do
9249 if test "X$lt_pkg" = "X$lt_p"; then
9267 # Check whether --enable-fast-install was given.
9268 if test "${enable_fast_install+set}" = set; then :
9269 enableval=$enable_fast_install; p=${PACKAGE-default}
9271 yes) enable_fast_install=yes ;;
9272 no) enable_fast_install=no ;;
9274 enable_fast_install=no
9275 # Look at the argument we got. We use all the common list separators.
9276 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9277 for pkg in $enableval; do
9279 if test "X$pkg" = "X$p"; then
9280 enable_fast_install=yes
9287 enable_fast_install=yes
9297 shared_archive_member_spec=
9298 case $host,$enable_shared in
9299 power*-*-aix[5-9]*,yes)
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9301 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9303 # Check whether --with-aix-soname was given.
9304 if test "${with_aix_soname+set}" = set; then :
9305 withval=$with_aix_soname; case $withval in
9309 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9312 lt_cv_with_aix_soname=$with_aix_soname
9314 if ${lt_cv_with_aix_soname+:} false; then :
9315 $as_echo_n "(cached) " >&6
9317 lt_cv_with_aix_soname=aix
9320 with_aix_soname=$lt_cv_with_aix_soname
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9324 $as_echo "$with_aix_soname" >&6; }
9325 if test aix != "$with_aix_soname"; then
9326 # For the AIX way of multilib, we name the shared archive member
9327 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9328 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9329 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9330 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9331 if test 64 = "${OBJECT_MODE-32}"; then
9332 shared_archive_member_spec=shr_64
9334 shared_archive_member_spec=shr
9352 # This can be used to rebuild libtool when needed
9353 LIBTOOL_DEPS=$ltmain
9355 # Always use our own libtool.
9356 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9387 test -z "$LN_S" && LN_S="ln -s"
9402 if test -n "${ZSH_VERSION+set}"; then
9403 setopt NO_GLOB_SUBST
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9407 $as_echo_n "checking for objdir... " >&6; }
9408 if ${lt_cv_objdir+:} false; then :
9409 $as_echo_n "(cached) " >&6
9411 rm -f .libs 2>/dev/null
9412 mkdir .libs 2>/dev/null
9413 if test -d .libs; then
9416 # MS-DOS does not allow filenames that begin with a dot.
9419 rmdir .libs 2>/dev/null
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9422 $as_echo "$lt_cv_objdir" >&6; }
9423 objdir=$lt_cv_objdir
9429 cat >>confdefs.h <<_ACEOF
9430 #define LT_OBJDIR "$lt_cv_objdir/"
9438 # AIX sometimes has problems with the GCC collect2 program. For some
9439 # reason, if we set the COLLECT_NAMES environment variable, the problems
9440 # vanish in a puff of smoke.
9441 if test set != "${COLLECT_NAMES+set}"; then
9443 export COLLECT_NAMES
9450 can_build_shared=yes
9452 # All known linkers require a '.a' archive for static linking (except MSVC,
9453 # which needs '.lib').
9456 with_gnu_ld=$lt_cv_prog_gnu_ld
9461 # Set sane defaults for various variables
9462 test -z "$CC" && CC=cc
9463 test -z "$LTCC" && LTCC=$CC
9464 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9465 test -z "$LD" && LD=ld
9466 test -z "$ac_objext" && ac_objext=o
9468 func_cc_basename $compiler
9469 cc_basename=$func_cc_basename_result
9472 # Only perform the check for file, if the check method requires it
9473 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9474 case $deplibs_check_method in
9476 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9478 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9479 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9480 $as_echo_n "(cached) " >&6
9484 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9487 lt_save_MAGIC_CMD=$MAGIC_CMD
9488 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9489 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9490 for ac_dir in $ac_dummy; do
9492 test -z "$ac_dir" && ac_dir=.
9493 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9494 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9495 if test -n "$file_magic_test_file"; then
9496 case $deplibs_check_method in
9498 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9499 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9500 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9501 $EGREP "$file_magic_regex" > /dev/null; then
9506 *** Warning: the command libtool uses to detect shared libraries,
9507 *** $file_magic_cmd, produces output that libtool cannot recognize.
9508 *** The result is that libtool may fail to recognize shared libraries
9509 *** as such. This will affect the creation of libtool libraries that
9510 *** depend on shared libraries, but programs linked with such libtool
9511 *** libraries will work regardless of this problem. Nevertheless, you
9512 *** may want to report the problem to your system manager and/or to
9513 *** bug-libtool@gnu.org
9523 MAGIC_CMD=$lt_save_MAGIC_CMD
9528 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9529 if test -n "$MAGIC_CMD"; then
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9531 $as_echo "$MAGIC_CMD" >&6; }
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9534 $as_echo "no" >&6; }
9541 if test -z "$lt_cv_path_MAGIC_CMD"; then
9542 if test -n "$ac_tool_prefix"; then
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9544 $as_echo_n "checking for file... " >&6; }
9545 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9546 $as_echo_n "(cached) " >&6
9550 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9553 lt_save_MAGIC_CMD=$MAGIC_CMD
9554 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9555 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9556 for ac_dir in $ac_dummy; do
9558 test -z "$ac_dir" && ac_dir=.
9559 if test -f "$ac_dir/file"; then
9560 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9561 if test -n "$file_magic_test_file"; then
9562 case $deplibs_check_method in
9564 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9565 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9566 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9567 $EGREP "$file_magic_regex" > /dev/null; then
9572 *** Warning: the command libtool uses to detect shared libraries,
9573 *** $file_magic_cmd, produces output that libtool cannot recognize.
9574 *** The result is that libtool may fail to recognize shared libraries
9575 *** as such. This will affect the creation of libtool libraries that
9576 *** depend on shared libraries, but programs linked with such libtool
9577 *** libraries will work regardless of this problem. Nevertheless, you
9578 *** may want to report the problem to your system manager and/or to
9579 *** bug-libtool@gnu.org
9589 MAGIC_CMD=$lt_save_MAGIC_CMD
9594 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9595 if test -n "$MAGIC_CMD"; then
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9597 $as_echo "$MAGIC_CMD" >&6; }
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9600 $as_echo "no" >&6; }
9613 # Use C for the default configuration in the libtool script
9617 ac_cpp='$CPP $CPPFLAGS'
9618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9623 # Source file extension for C test sources.
9626 # Object file extension for compiled C test sources.
9630 # Code to be used in simple compile tests
9631 lt_simple_compile_test_code="int some_variable = 0;"
9633 # Code to be used in simple link tests
9634 lt_simple_link_test_code='int main(){return(0);}'
9642 # If no C compiler was specified, use CC.
9645 # If no C compiler flags were specified, use CFLAGS.
9646 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9648 # Allow CC to be a program name with arguments.
9651 # Save the default compiler, since it gets overwritten when the other
9652 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9653 compiler_DEFAULT=$CC
9655 # save warnings/boilerplate of simple test code
9656 ac_outfile=conftest.$ac_objext
9657 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9658 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9659 _lt_compiler_boilerplate=`cat conftest.err`
9662 ac_outfile=conftest.$ac_objext
9663 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9664 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9665 _lt_linker_boilerplate=`cat conftest.err`
9670 ## There is no encapsulation within the following macros, do not change
9671 ## the running order or otherwise move them around unless you know exactly
9672 ## what you are doing...
9673 if test -n "$compiler"; then
9675 lt_prog_compiler_no_builtin_flag=
9677 if test yes = "$GCC"; then
9678 case $cc_basename in
9680 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9682 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9686 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9687 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9688 $as_echo_n "(cached) " >&6
9690 lt_cv_prog_compiler_rtti_exceptions=no
9691 ac_outfile=conftest.$ac_objext
9692 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9693 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9694 # Insert the option either (1) after the last *FLAGS variable, or
9695 # (2) before a word containing "conftest.", or (3) at the end.
9696 # Note that $ac_compile itself does not contain backslashes and begins
9697 # with a dollar sign (not a hyphen), so the echo should work correctly.
9698 # The option is referenced via a variable to avoid confusing sed.
9699 lt_compile=`echo "$ac_compile" | $SED \
9700 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9701 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9702 -e 's:$: $lt_compiler_flag:'`
9703 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9704 (eval "$lt_compile" 2>conftest.err)
9706 cat conftest.err >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 if (exit $ac_status) && test -s "$ac_outfile"; then
9709 # The compiler can only warn and ignore the option if not recognized
9710 # So say no if there are warnings other than the usual output.
9711 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9712 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9713 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9714 lt_cv_prog_compiler_rtti_exceptions=yes
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9721 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9723 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9724 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9736 lt_prog_compiler_wl=
9737 lt_prog_compiler_pic=
9738 lt_prog_compiler_static=
9741 if test yes = "$GCC"; then
9742 lt_prog_compiler_wl='-Wl,'
9743 lt_prog_compiler_static='-static'
9747 # All AIX code is PIC.
9748 if test ia64 = "$host_cpu"; then
9749 # AIX 5 now supports IA64 processor
9750 lt_prog_compiler_static='-Bstatic'
9752 lt_prog_compiler_pic='-fPIC'
9758 # see comment about AmigaOS4 .so support
9759 lt_prog_compiler_pic='-fPIC'
9762 # FIXME: we need at least 68020 code to build shared libraries, but
9763 # adding the '-m68020' flag to GCC prevents building anything better,
9765 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9770 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9771 # PIC is the default for these OSes.
9774 mingw* | cygwin* | pw32* | os2* | cegcc*)
9775 # This hack is so that the source file can tell whether it is being
9776 # built for inclusion in a dll (and should export symbols for example).
9777 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9778 # (--disable-auto-import) libraries
9779 lt_prog_compiler_pic='-DDLL_EXPORT'
9782 lt_prog_compiler_static='$wl-static'
9787 darwin* | rhapsody*)
9788 # PIC is the default on this platform
9789 # Common symbols not allowed in MH_DYLIB files
9790 lt_prog_compiler_pic='-fno-common'
9794 # PIC is the default for Haiku.
9795 # The "-static" flag exists, but is broken.
9796 lt_prog_compiler_static=
9800 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9801 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9802 # sets the default TLS model and affects inlining.
9808 lt_prog_compiler_pic='-fPIC'
9814 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9815 # Instead, we relocate shared libraries at runtime.
9819 # Just because we use GCC doesn't mean we suddenly get shared libraries
9820 # on systems that don't support them.
9821 lt_prog_compiler_can_build_shared=no
9826 # QNX uses GNU C++, but need to define -shared option too, otherwise
9828 lt_prog_compiler_pic='-fPIC -shared'
9832 if test -d /usr/nec; then
9833 lt_prog_compiler_pic=-Kconform_pic
9838 lt_prog_compiler_pic='-fPIC'
9842 case $cc_basename in
9843 nvcc*) # Cuda Compiler Driver 2.2
9844 lt_prog_compiler_wl='-Xlinker '
9845 if test -n "$lt_prog_compiler_pic"; then
9846 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9851 # PORTME Check for flag to pass linker flags through the system compiler.
9854 lt_prog_compiler_wl='-Wl,'
9855 if test ia64 = "$host_cpu"; then
9856 # AIX 5 now supports IA64 processor
9857 lt_prog_compiler_static='-Bstatic'
9859 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9863 darwin* | rhapsody*)
9864 # PIC is the default on this platform
9865 # Common symbols not allowed in MH_DYLIB files
9866 lt_prog_compiler_pic='-fno-common'
9867 case $cc_basename in
9869 # NAG Fortran compiler
9870 lt_prog_compiler_wl='-Wl,-Wl,,'
9871 lt_prog_compiler_pic='-PIC'
9872 lt_prog_compiler_static='-Bstatic'
9877 mingw* | cygwin* | pw32* | os2* | cegcc*)
9878 # This hack is so that the source file can tell whether it is being
9879 # built for inclusion in a dll (and should export symbols for example).
9880 lt_prog_compiler_pic='-DDLL_EXPORT'
9883 lt_prog_compiler_static='$wl-static'
9888 hpux9* | hpux10* | hpux11*)
9889 lt_prog_compiler_wl='-Wl,'
9890 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9897 lt_prog_compiler_pic='+Z'
9900 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9901 lt_prog_compiler_static='$wl-a ${wl}archive'
9904 irix5* | irix6* | nonstopux*)
9905 lt_prog_compiler_wl='-Wl,'
9906 # PIC (with -KPIC) is the default.
9907 lt_prog_compiler_static='-non_shared'
9910 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9911 case $cc_basename in
9912 # old Intel for x86_64, which still supported -KPIC.
9914 lt_prog_compiler_wl='-Wl,'
9915 lt_prog_compiler_pic='-KPIC'
9916 lt_prog_compiler_static='-static'
9918 # icc used to be incompatible with GCC.
9919 # ICC 10 doesn't accept -KPIC any more.
9921 lt_prog_compiler_wl='-Wl,'
9922 lt_prog_compiler_pic='-fPIC'
9923 lt_prog_compiler_static='-static'
9925 # Lahey Fortran 8.1.
9927 lt_prog_compiler_wl='-Wl,'
9928 lt_prog_compiler_pic='--shared'
9929 lt_prog_compiler_static='--static'
9932 # NAG Fortran compiler
9933 lt_prog_compiler_wl='-Wl,-Wl,,'
9934 lt_prog_compiler_pic='-PIC'
9935 lt_prog_compiler_static='-Bstatic'
9938 # Fabrice Bellard et al's Tiny C Compiler
9939 lt_prog_compiler_wl='-Wl,'
9940 lt_prog_compiler_pic='-fPIC'
9941 lt_prog_compiler_static='-static'
9943 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9944 # Portland Group compilers (*not* the Pentium gcc compiler,
9945 # which looks to be a dead project)
9946 lt_prog_compiler_wl='-Wl,'
9947 lt_prog_compiler_pic='-fpic'
9948 lt_prog_compiler_static='-Bstatic'
9951 lt_prog_compiler_wl='-Wl,'
9952 # All Alpha code is PIC.
9953 lt_prog_compiler_static='-non_shared'
9955 xl* | bgxl* | bgf* | mpixl*)
9956 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9957 lt_prog_compiler_wl='-Wl,'
9958 lt_prog_compiler_pic='-qpic'
9959 lt_prog_compiler_static='-qstaticlink'
9962 case `$CC -V 2>&1 | sed 5q` in
9963 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9964 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9965 lt_prog_compiler_pic='-KPIC'
9966 lt_prog_compiler_static='-Bstatic'
9967 lt_prog_compiler_wl=''
9969 *Sun\ F* | *Sun*Fortran*)
9970 lt_prog_compiler_pic='-KPIC'
9971 lt_prog_compiler_static='-Bstatic'
9972 lt_prog_compiler_wl='-Qoption ld '
9976 lt_prog_compiler_pic='-KPIC'
9977 lt_prog_compiler_static='-Bstatic'
9978 lt_prog_compiler_wl='-Wl,'
9980 *Intel*\ [CF]*Compiler*)
9981 lt_prog_compiler_wl='-Wl,'
9982 lt_prog_compiler_pic='-fPIC'
9983 lt_prog_compiler_static='-static'
9986 lt_prog_compiler_wl='-Wl,'
9987 lt_prog_compiler_pic='-fpic'
9988 lt_prog_compiler_static='-Bstatic'
9996 lt_prog_compiler_pic='-KPIC'
9997 lt_prog_compiler_static='-Bstatic'
10001 # QNX uses GNU C++, but need to define -shared option too, otherwise
10002 # it will coredump.
10003 lt_prog_compiler_pic='-fPIC -shared'
10006 osf3* | osf4* | osf5*)
10007 lt_prog_compiler_wl='-Wl,'
10008 # All OSF/1 code is PIC.
10009 lt_prog_compiler_static='-non_shared'
10013 lt_prog_compiler_static='-non_shared'
10017 lt_prog_compiler_pic='-KPIC'
10018 lt_prog_compiler_static='-Bstatic'
10019 case $cc_basename in
10020 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10021 lt_prog_compiler_wl='-Qoption ld ';;
10023 lt_prog_compiler_wl='-Wl,';;
10028 lt_prog_compiler_wl='-Qoption ld '
10029 lt_prog_compiler_pic='-PIC'
10030 lt_prog_compiler_static='-Bstatic'
10033 sysv4 | sysv4.2uw2* | sysv4.3*)
10034 lt_prog_compiler_wl='-Wl,'
10035 lt_prog_compiler_pic='-KPIC'
10036 lt_prog_compiler_static='-Bstatic'
10040 if test -d /usr/nec; then
10041 lt_prog_compiler_pic='-Kconform_pic'
10042 lt_prog_compiler_static='-Bstatic'
10046 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10047 lt_prog_compiler_wl='-Wl,'
10048 lt_prog_compiler_pic='-KPIC'
10049 lt_prog_compiler_static='-Bstatic'
10053 lt_prog_compiler_wl='-Wl,'
10054 lt_prog_compiler_can_build_shared=no
10058 lt_prog_compiler_pic='-pic'
10059 lt_prog_compiler_static='-Bstatic'
10063 lt_prog_compiler_can_build_shared=no
10069 # For platforms that do not support PIC, -DPIC is meaningless:
10071 lt_prog_compiler_pic=
10074 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10079 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10080 if ${lt_cv_prog_compiler_pic+:} false; then :
10081 $as_echo_n "(cached) " >&6
10083 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10086 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10087 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10090 # Check to make sure the PIC flag actually works.
10092 if test -n "$lt_prog_compiler_pic"; then
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10094 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10095 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10096 $as_echo_n "(cached) " >&6
10098 lt_cv_prog_compiler_pic_works=no
10099 ac_outfile=conftest.$ac_objext
10100 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10101 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10102 # Insert the option either (1) after the last *FLAGS variable, or
10103 # (2) before a word containing "conftest.", or (3) at the end.
10104 # Note that $ac_compile itself does not contain backslashes and begins
10105 # with a dollar sign (not a hyphen), so the echo should work correctly.
10106 # The option is referenced via a variable to avoid confusing sed.
10107 lt_compile=`echo "$ac_compile" | $SED \
10108 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10109 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10110 -e 's:$: $lt_compiler_flag:'`
10111 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10112 (eval "$lt_compile" 2>conftest.err)
10114 cat conftest.err >&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 if (exit $ac_status) && test -s "$ac_outfile"; then
10117 # The compiler can only warn and ignore the option if not recognized
10118 # So say no if there are warnings other than the usual output.
10119 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10120 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10121 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10122 lt_cv_prog_compiler_pic_works=yes
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10129 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10131 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10132 case $lt_prog_compiler_pic in
10134 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10137 lt_prog_compiler_pic=
10138 lt_prog_compiler_can_build_shared=no
10154 # Check to make sure the static flag actually works.
10156 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10158 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10159 if ${lt_cv_prog_compiler_static_works+:} false; then :
10160 $as_echo_n "(cached) " >&6
10162 lt_cv_prog_compiler_static_works=no
10163 save_LDFLAGS=$LDFLAGS
10164 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10165 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10166 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10167 # The linker can only warn and ignore the option if not recognized
10168 # So say no if there are warnings
10169 if test -s conftest.err; then
10170 # Append any errors to the config.log.
10171 cat conftest.err 1>&5
10172 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10174 if diff conftest.exp conftest.er2 >/dev/null; then
10175 lt_cv_prog_compiler_static_works=yes
10178 lt_cv_prog_compiler_static_works=yes
10182 LDFLAGS=$save_LDFLAGS
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10186 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10188 if test yes = "$lt_cv_prog_compiler_static_works"; then
10191 lt_prog_compiler_static=
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10201 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10202 if ${lt_cv_prog_compiler_c_o+:} false; then :
10203 $as_echo_n "(cached) " >&6
10205 lt_cv_prog_compiler_c_o=no
10206 $RM -r conftest 2>/dev/null
10210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10212 lt_compiler_flag="-o out/conftest2.$ac_objext"
10213 # Insert the option either (1) after the last *FLAGS variable, or
10214 # (2) before a word containing "conftest.", or (3) at the end.
10215 # Note that $ac_compile itself does not contain backslashes and begins
10216 # with a dollar sign (not a hyphen), so the echo should work correctly.
10217 lt_compile=`echo "$ac_compile" | $SED \
10218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10220 -e 's:$: $lt_compiler_flag:'`
10221 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10222 (eval "$lt_compile" 2>out/conftest.err)
10224 cat out/conftest.err >&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10228 # The compiler can only warn and ignore the option if not recognized
10229 # So say no if there are warnings
10230 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10231 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10232 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10233 lt_cv_prog_compiler_c_o=yes
10238 # SGI C++ compiler will create directory out/ii_files/ for
10239 # template instantiation
10240 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10241 $RM out/* && rmdir out
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10248 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10256 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10257 if ${lt_cv_prog_compiler_c_o+:} false; then :
10258 $as_echo_n "(cached) " >&6
10260 lt_cv_prog_compiler_c_o=no
10261 $RM -r conftest 2>/dev/null
10265 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10267 lt_compiler_flag="-o out/conftest2.$ac_objext"
10268 # Insert the option either (1) after the last *FLAGS variable, or
10269 # (2) before a word containing "conftest.", or (3) at the end.
10270 # Note that $ac_compile itself does not contain backslashes and begins
10271 # with a dollar sign (not a hyphen), so the echo should work correctly.
10272 lt_compile=`echo "$ac_compile" | $SED \
10273 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10274 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10275 -e 's:$: $lt_compiler_flag:'`
10276 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10277 (eval "$lt_compile" 2>out/conftest.err)
10279 cat out/conftest.err >&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10283 # The compiler can only warn and ignore the option if not recognized
10284 # So say no if there are warnings
10285 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10286 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10287 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10288 lt_cv_prog_compiler_c_o=yes
10293 # SGI C++ compiler will create directory out/ii_files/ for
10294 # template instantiation
10295 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10296 $RM out/* && rmdir out
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10303 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10308 hard_links=nottested
10309 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10310 # do not overwrite the value of need_locks provided by the user
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10312 $as_echo_n "checking if we can lock with hard links... " >&6; }
10315 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10317 ln conftest.a conftest.b 2>&5 || hard_links=no
10318 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10320 $as_echo "$hard_links" >&6; }
10321 if test no = "$hard_links"; then
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10323 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10336 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10339 allow_undefined_flag=
10340 always_export_symbols=no
10342 archive_expsym_cmds=
10343 compiler_needs_object=no
10344 enable_shared_with_static_runtimes=no
10345 export_dynamic_flag_spec=
10346 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10347 hardcode_automatic=no
10349 hardcode_direct_absolute=no
10350 hardcode_libdir_flag_spec=
10351 hardcode_libdir_separator=
10352 hardcode_minus_L=no
10353 hardcode_shlibpath_var=unsupported
10355 link_all_deplibs=unknown
10357 module_expsym_cmds=
10358 old_archive_from_new_cmds=
10359 old_archive_from_expsyms_cmds=
10360 thread_safe_flag_spec=
10361 whole_archive_flag_spec=
10362 # include_expsyms should be a list of space-separated symbols to be *always*
10363 # included in the symbol list
10365 # exclude_expsyms can be an extended regexp of symbols to exclude
10366 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10367 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10368 # as well as any symbol that contains 'd'.
10369 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10370 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10371 # platforms (ab)use it in PIC code, but their linkers get confused if
10372 # the symbol is explicitly referenced. Since portable code cannot
10373 # rely on this symbol name, it's probably fine to never include it in
10374 # preloaded symbol tables.
10375 # Exclude shared library initialization/finalization symbols.
10376 extract_expsyms_cmds=
10379 cygwin* | mingw* | pw32* | cegcc*)
10380 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10381 # When not using gcc, we currently assume that we are using
10382 # Microsoft Visual C++.
10383 if test yes != "$GCC"; then
10388 # we just hope/assume this is gcc and not c89 (= MSVC++)
10391 openbsd* | bitrig*)
10398 # On some targets, GNU ld is compatible enough with the native linker
10399 # that we're better off using the native interface for both.
10400 lt_use_gnu_ld_interface=no
10401 if test yes = "$with_gnu_ld"; then
10404 # The AIX port of GNU ld has always aspired to compatibility
10405 # with the native linker. However, as the warning in the GNU ld
10406 # block says, versions before 2.19.5* couldn't really create working
10407 # shared libraries, regardless of the interface used.
10408 case `$LD -v 2>&1` in
10409 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10410 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10411 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10413 lt_use_gnu_ld_interface=yes
10418 lt_use_gnu_ld_interface=yes
10423 if test yes = "$lt_use_gnu_ld_interface"; then
10424 # If archive_cmds runs LD, not CC, wlarc should be empty
10427 # Set some defaults for GNU ld with shared library support. These
10428 # are reset later if shared libraries are not supported. Putting them
10429 # here allows them to be overridden if necessary.
10430 runpath_var=LD_RUN_PATH
10431 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10432 export_dynamic_flag_spec='$wl--export-dynamic'
10433 # ancient GNU ld didn't support --whole-archive et. al.
10434 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10435 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10437 whole_archive_flag_spec=
10439 supports_anon_versioning=no
10440 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10441 *GNU\ gold*) supports_anon_versioning=yes ;;
10442 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10443 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10444 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10445 *\ 2.11.*) ;; # other 2.11 versions
10446 *) supports_anon_versioning=yes ;;
10449 # See if GNU ld supports shared libraries.
10452 # On AIX/PPC, the GNU linker is very broken
10453 if test ia64 != "$host_cpu"; then
10457 *** Warning: the GNU linker, at least up to release 2.19, is reported
10458 *** to be unable to reliably create shared libraries on AIX.
10459 *** Therefore, libtool is disabling shared libraries support. If you
10460 *** really care for shared libraries, you may want to install binutils
10461 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10462 *** You will then need to restart the configuration process.
10471 # see comment about AmigaOS4 .so support
10472 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10473 archive_expsym_cmds=''
10476 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)'
10477 hardcode_libdir_flag_spec='-L$libdir'
10478 hardcode_minus_L=yes
10484 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10485 allow_undefined_flag=unsupported
10486 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10487 # support --undefined. This deserves some investigation. FIXME
10488 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10494 cygwin* | mingw* | pw32* | cegcc*)
10495 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10496 # as there is no search path for DLLs.
10497 hardcode_libdir_flag_spec='-L$libdir'
10498 export_dynamic_flag_spec='$wl--export-all-symbols'
10499 allow_undefined_flag=unsupported
10500 always_export_symbols=no
10501 enable_shared_with_static_runtimes=yes
10502 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'
10503 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10505 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10506 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10507 # If the export-symbols file already is a .def file, use it as
10508 # is; otherwise, prepend EXPORTS...
10509 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10510 cp $export_symbols $output_objdir/$soname.def;
10512 echo EXPORTS > $output_objdir/$soname.def;
10513 cat $export_symbols >> $output_objdir/$soname.def;
10515 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10523 link_all_deplibs=yes
10527 hardcode_libdir_flag_spec='-L$libdir'
10528 hardcode_minus_L=yes
10529 allow_undefined_flag=unsupported
10531 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10532 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10533 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10534 $ECHO EXPORTS >> $output_objdir/$libname.def~
10535 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10536 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10537 emximp -o $lib $output_objdir/$libname.def'
10538 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10539 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10540 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10541 $ECHO EXPORTS >> $output_objdir/$libname.def~
10542 prefix_cmds="$SED"~
10543 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10544 prefix_cmds="$prefix_cmds -e 1d";
10546 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10547 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10548 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10549 emximp -o $lib $output_objdir/$libname.def'
10550 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10551 enable_shared_with_static_runtimes=yes
10556 hardcode_shlibpath_var=no
10557 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10558 export_dynamic_flag_spec='$wl-E'
10559 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10560 # Instead, shared libraries are loaded at an image base (0x10000000 by
10561 # default) and relocated if they conflict, which is a slow very memory
10562 # consuming and fragmenting process. To avoid this, we pick a random,
10563 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10564 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10565 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10566 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'
10569 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10571 if test linux-dietlibc = "$host_os"; then
10572 case $cc_basename in
10573 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10576 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10577 && test no = "$tmp_diet"
10579 tmp_addflag=' $pic_flag'
10580 tmp_sharedflag='-shared'
10581 case $cc_basename,$host_cpu in
10582 pgcc*) # Portland Group C compiler
10583 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'
10584 tmp_addflag=' $pic_flag'
10586 pgf77* | pgf90* | pgf95* | pgfortran*)
10587 # Portland Group f77 and f90 compilers
10588 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'
10589 tmp_addflag=' $pic_flag -Mnomain' ;;
10590 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10591 tmp_addflag=' -i_dynamic' ;;
10592 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10593 tmp_addflag=' -i_dynamic -nofor_main' ;;
10594 ifc* | ifort*) # Intel Fortran compiler
10595 tmp_addflag=' -nofor_main' ;;
10596 lf95*) # Lahey Fortran 8.1
10597 whole_archive_flag_spec=
10598 tmp_sharedflag='--shared' ;;
10599 nagfor*) # NAGFOR 5.3
10600 tmp_sharedflag='-Wl,-shared' ;;
10601 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10602 tmp_sharedflag='-qmkshrobj'
10604 nvcc*) # Cuda Compiler Driver 2.2
10605 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'
10606 compiler_needs_object=yes
10609 case `$CC -V 2>&1 | sed 5q` in
10610 *Sun\ C*) # Sun C 5.9
10611 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'
10612 compiler_needs_object=yes
10613 tmp_sharedflag='-G' ;;
10614 *Sun\ F*) # Sun Fortran 8.3
10615 tmp_sharedflag='-G' ;;
10617 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10619 if test yes = "$supports_anon_versioning"; then
10620 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10621 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10622 echo "local: *; };" >> $output_objdir/$libname.ver~
10623 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10626 case $cc_basename in
10628 export_dynamic_flag_spec='-rdynamic'
10630 xlf* | bgf* | bgxlf* | mpixlf*)
10631 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10632 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10633 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10634 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10635 if test yes = "$supports_anon_versioning"; then
10636 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10637 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10638 echo "local: *; };" >> $output_objdir/$libname.ver~
10639 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10649 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10650 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10653 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10654 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10659 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10663 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10664 *** create shared libraries on Solaris systems. Therefore, libtool
10665 *** is disabling shared libraries support. We urge you to upgrade GNU
10666 *** binutils to release 2.9.1 or newer. Another option is to modify
10667 *** your PATH or compiler configuration so that the native linker is
10668 *** used, and then restart.
10671 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10672 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10673 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10679 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10680 case `$LD -v 2>&1` in
10681 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10685 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10686 *** reliably create shared libraries on SCO systems. Therefore, libtool
10687 *** is disabling shared libraries support. We urge you to upgrade GNU
10688 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10689 *** your PATH or compiler configuration so that the native linker is
10690 *** used, and then restart.
10695 # For security reasons, it is highly recommended that you always
10696 # use absolute paths for naming shared libraries, and exclude the
10697 # DT_RUNPATH tag from executables and libraries. But doing so
10698 # requires that you compile everything twice, which is a pain.
10699 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10700 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10701 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10702 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10711 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10713 hardcode_direct=yes
10714 hardcode_shlibpath_var=no
10718 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10719 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10720 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10727 if test no = "$ld_shlibs"; then
10729 hardcode_libdir_flag_spec=
10730 export_dynamic_flag_spec=
10731 whole_archive_flag_spec=
10734 # PORTME fill in a description of your system's linker (not GNU ld)
10737 allow_undefined_flag=unsupported
10738 always_export_symbols=yes
10739 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'
10740 # Note: this linker hardcodes the directories in LIBPATH if there
10741 # are no directories specified by -L.
10742 hardcode_minus_L=yes
10743 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10744 # Neither direct hardcoding nor static linking is supported with a
10746 hardcode_direct=unsupported
10751 if test ia64 = "$host_cpu"; then
10752 # On IA64, the linker does run time linking by default, so we don't
10753 # have to do anything special.
10754 aix_use_runtimelinking=no
10755 exp_sym_flag='-Bexport'
10758 # If we're using GNU nm, then we don't want the "-C" option.
10759 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10760 # Without the "-l" option, or with the "-B" option, AIX nm treats
10761 # weak defined symbols like other global defined symbols, whereas
10762 # GNU nm marks them as "W".
10763 # While the 'weak' keyword is ignored in the Export File, we need
10764 # it in the Import File for the 'aix-soname' feature, so we have
10765 # to replace the "-B" option with "-P" for AIX nm.
10766 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10767 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'
10769 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'
10771 aix_use_runtimelinking=no
10773 # Test if we are trying to use run time linking or normal
10774 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10775 # have runtime linking enabled, and use it for executables.
10776 # For shared libraries, we enable/disable runtime linking
10777 # depending on the kind of the shared library created -
10778 # when "with_aix_soname,aix_use_runtimelinking" is:
10779 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10780 # "aix,yes" lib.so shared, rtl:yes, for executables
10781 # lib.a static archive
10782 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10783 # lib.a(lib.so.V) shared, rtl:no, for executables
10784 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10785 # lib.a(lib.so.V) shared, rtl:no
10786 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10787 # lib.a static archive
10788 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10789 for ld_flag in $LDFLAGS; do
10790 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10791 aix_use_runtimelinking=yes
10795 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10796 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10797 # so we don't have lib.a shared libs to link our executables.
10798 # We have to force runtime linking in this case.
10799 aix_use_runtimelinking=yes
10800 LDFLAGS="$LDFLAGS -Wl,-brtl"
10805 exp_sym_flag='-bexport'
10806 no_entry_flag='-bnoentry'
10809 # When large executables or shared objects are built, AIX ld can
10810 # have problems creating the table of contents. If linking a library
10811 # or program results in "error TOC overflow" add -mminimal-toc to
10812 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10813 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10816 hardcode_direct=yes
10817 hardcode_direct_absolute=yes
10818 hardcode_libdir_separator=':'
10819 link_all_deplibs=yes
10820 file_list_spec='$wl-f,'
10821 case $with_aix_soname,$aix_use_runtimelinking in
10822 aix,*) ;; # traditional, no import file
10823 svr4,* | *,yes) # use import file
10824 # The Import File defines what to hardcode.
10826 hardcode_direct_absolute=no
10830 if test yes = "$GCC"; then
10831 case $host_os in aix4.[012]|aix4.[012].*)
10832 # We only want to do this on AIX 4.2 and lower, the check
10833 # below for broken collect2 doesn't work under 4.3+
10834 collect2name=`$CC -print-prog-name=collect2`
10835 if test -f "$collect2name" &&
10836 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10838 # We have reworked collect2
10841 # We have old collect2
10842 hardcode_direct=unsupported
10843 # It fails to find uninstalled libraries when the uninstalled
10844 # path is not listed in the libpath. Setting hardcode_minus_L
10845 # to unsupported forces relinking
10846 hardcode_minus_L=yes
10847 hardcode_libdir_flag_spec='-L$libdir'
10848 hardcode_libdir_separator=
10852 shared_flag='-shared'
10853 if test yes = "$aix_use_runtimelinking"; then
10854 shared_flag="$shared_flag "'$wl-G'
10856 # Need to ensure runtime linking is disabled for the traditional
10857 # shared library, or the linker may eventually find shared libraries
10858 # /with/ Import File - we do not want to mix them.
10859 shared_flag_aix='-shared'
10860 shared_flag_svr4='-shared $wl-G'
10863 if test ia64 = "$host_cpu"; then
10864 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10865 # chokes on -Wl,-G. The following line is correct:
10868 if test yes = "$aix_use_runtimelinking"; then
10869 shared_flag='$wl-G'
10871 shared_flag='$wl-bM:SRE'
10873 shared_flag_aix='$wl-bM:SRE'
10874 shared_flag_svr4='$wl-G'
10878 export_dynamic_flag_spec='$wl-bexpall'
10879 # It seems that -bexpall does not export symbols beginning with
10880 # underscore (_), so it is better to generate a list of symbols to export.
10881 always_export_symbols=yes
10882 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10883 # Warning - without using the other runtime loading flags (-brtl),
10884 # -berok will link without error, but may produce a broken library.
10885 allow_undefined_flag='-berok'
10886 # Determine the default libpath from the value encoded in an
10887 # empty executable.
10888 if test set = "${lt_cv_aix_libpath+set}"; then
10889 aix_libpath=$lt_cv_aix_libpath
10891 if ${lt_cv_aix_libpath_+:} false; then :
10892 $as_echo_n "(cached) " >&6
10894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895 /* end confdefs.h. */
10905 if ac_fn_c_try_link "$LINENO"; then :
10907 lt_aix_libpath_sed='
10908 /Import File Strings/,/^$/ {
10910 s/^0 *\([^ ]*\) *$/\1/
10914 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10915 # Check for a 64-bit object if we didn't find anything.
10916 if test -z "$lt_cv_aix_libpath_"; then
10917 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10920 rm -f core conftest.err conftest.$ac_objext \
10921 conftest$ac_exeext conftest.$ac_ext
10922 if test -z "$lt_cv_aix_libpath_"; then
10923 lt_cv_aix_libpath_=/usr/lib:/lib
10928 aix_libpath=$lt_cv_aix_libpath_
10931 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10932 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
10934 if test ia64 = "$host_cpu"; then
10935 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10936 allow_undefined_flag="-z nodefs"
10937 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"
10939 # Determine the default libpath from the value encoded in an
10940 # empty executable.
10941 if test set = "${lt_cv_aix_libpath+set}"; then
10942 aix_libpath=$lt_cv_aix_libpath
10944 if ${lt_cv_aix_libpath_+:} false; then :
10945 $as_echo_n "(cached) " >&6
10947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h. */
10958 if ac_fn_c_try_link "$LINENO"; then :
10960 lt_aix_libpath_sed='
10961 /Import File Strings/,/^$/ {
10963 s/^0 *\([^ ]*\) *$/\1/
10967 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10968 # Check for a 64-bit object if we didn't find anything.
10969 if test -z "$lt_cv_aix_libpath_"; then
10970 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10973 rm -f core conftest.err conftest.$ac_objext \
10974 conftest$ac_exeext conftest.$ac_ext
10975 if test -z "$lt_cv_aix_libpath_"; then
10976 lt_cv_aix_libpath_=/usr/lib:/lib
10981 aix_libpath=$lt_cv_aix_libpath_
10984 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10985 # Warning - without using the other run time loading flags,
10986 # -berok will link without error, but may produce a broken library.
10987 no_undefined_flag=' $wl-bernotok'
10988 allow_undefined_flag=' $wl-berok'
10989 if test yes = "$with_gnu_ld"; then
10990 # We only use this code for GNU lds that support --whole-archive.
10991 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10993 # Exported symbols can be pulled into shared objects from archives
10994 whole_archive_flag_spec='$convenience'
10996 archive_cmds_need_lc=yes
10997 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10998 # -brtl affects multiple linker settings, -berok does not and is overridden later
10999 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11000 if test svr4 != "$with_aix_soname"; then
11001 # This is similar to how AIX traditionally builds its shared libraries.
11002 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'
11004 if test aix != "$with_aix_soname"; then
11005 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'
11007 # used by -dlpreopen to get the symbols
11008 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11010 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11018 # see comment about AmigaOS4 .so support
11019 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11020 archive_expsym_cmds=''
11023 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)'
11024 hardcode_libdir_flag_spec='-L$libdir'
11025 hardcode_minus_L=yes
11031 export_dynamic_flag_spec=-rdynamic
11034 cygwin* | mingw* | pw32* | cegcc*)
11035 # When not using gcc, we currently assume that we are using
11036 # Microsoft Visual C++.
11037 # hardcode_libdir_flag_spec is actually meaningless, as there is
11038 # no search path for DLLs.
11039 case $cc_basename in
11042 hardcode_libdir_flag_spec=' '
11043 allow_undefined_flag=unsupported
11044 always_export_symbols=yes
11046 # Tell ltmain to make .lib files, not .a files.
11048 # Tell ltmain to make .dll files, not .so files.
11050 # FIXME: Setting linknames here is a bad hack.
11051 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11052 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11053 cp "$export_symbols" "$output_objdir/$soname.def";
11054 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11056 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11058 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11060 # The linker will not automatically build a static lib if we build a DLL.
11061 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11062 enable_shared_with_static_runtimes=yes
11063 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11064 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11066 old_postinstall_cmds='chmod 644 $oldlib'
11067 postlink_cmds='lt_outputfile="@OUTPUT@"~
11068 lt_tool_outputfile="@TOOL_OUTPUT@"~
11069 case $lt_outputfile in
11072 lt_outputfile=$lt_outputfile.exe
11073 lt_tool_outputfile=$lt_tool_outputfile.exe
11076 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11077 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11078 $RM "$lt_outputfile.manifest";
11082 # Assume MSVC wrapper
11083 hardcode_libdir_flag_spec=' '
11084 allow_undefined_flag=unsupported
11085 # Tell ltmain to make .lib files, not .a files.
11087 # Tell ltmain to make .dll files, not .so files.
11089 # FIXME: Setting linknames here is a bad hack.
11090 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11091 # The linker will automatically build a .lib file if we build a DLL.
11092 old_archive_from_new_cmds='true'
11093 # FIXME: Should let the user specify the lib program.
11094 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11095 enable_shared_with_static_runtimes=yes
11100 darwin* | rhapsody*)
11103 archive_cmds_need_lc=no
11105 hardcode_automatic=yes
11106 hardcode_shlibpath_var=unsupported
11107 if test yes = "$lt_cv_ld_force_load"; then
11108 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\"`'
11111 whole_archive_flag_spec=''
11113 link_all_deplibs=yes
11114 allow_undefined_flag=$_lt_dar_allow_undefined
11115 case $cc_basename in
11116 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11117 *) _lt_dar_can_shared=$GCC ;;
11119 if test yes = "$_lt_dar_can_shared"; then
11120 output_verbose_link_cmd=func_echo_all
11121 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11122 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11123 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"
11124 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"
11133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11134 hardcode_libdir_flag_spec='-L$libdir'
11135 hardcode_shlibpath_var=no
11138 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11139 # support. Future versions do this automatically, but an explicit c++rt0.o
11140 # does not break anything, and helps significantly (at the cost of a little
11143 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11144 hardcode_libdir_flag_spec='-R$libdir'
11145 hardcode_direct=yes
11146 hardcode_shlibpath_var=no
11149 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11151 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11152 hardcode_direct=yes
11153 hardcode_minus_L=yes
11154 hardcode_shlibpath_var=no
11157 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11158 freebsd* | dragonfly*)
11159 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11160 hardcode_libdir_flag_spec='-R$libdir'
11161 hardcode_direct=yes
11162 hardcode_shlibpath_var=no
11166 if test yes = "$GCC"; then
11167 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'
11169 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'
11171 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11172 hardcode_libdir_separator=:
11173 hardcode_direct=yes
11175 # hardcode_minus_L: Not really in the search PATH,
11176 # but as the default location of the library.
11177 hardcode_minus_L=yes
11178 export_dynamic_flag_spec='$wl-E'
11182 if test yes,no = "$GCC,$with_gnu_ld"; then
11183 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11185 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11187 if test no = "$with_gnu_ld"; then
11188 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11189 hardcode_libdir_separator=:
11190 hardcode_direct=yes
11191 hardcode_direct_absolute=yes
11192 export_dynamic_flag_spec='$wl-E'
11193 # hardcode_minus_L: Not really in the search PATH,
11194 # but as the default location of the library.
11195 hardcode_minus_L=yes
11200 if test yes,no = "$GCC,$with_gnu_ld"; then
11203 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11206 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11209 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11215 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11218 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11222 # Older versions of the 11.00 compiler do not understand -b yet
11223 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11225 $as_echo_n "checking if $CC understands -b... " >&6; }
11226 if ${lt_cv_prog_compiler__b+:} false; then :
11227 $as_echo_n "(cached) " >&6
11229 lt_cv_prog_compiler__b=no
11230 save_LDFLAGS=$LDFLAGS
11231 LDFLAGS="$LDFLAGS -b"
11232 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11233 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11234 # The linker can only warn and ignore the option if not recognized
11235 # So say no if there are warnings
11236 if test -s conftest.err; then
11237 # Append any errors to the config.log.
11238 cat conftest.err 1>&5
11239 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11240 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11241 if diff conftest.exp conftest.er2 >/dev/null; then
11242 lt_cv_prog_compiler__b=yes
11245 lt_cv_prog_compiler__b=yes
11249 LDFLAGS=$save_LDFLAGS
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11253 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11255 if test yes = "$lt_cv_prog_compiler__b"; then
11256 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11258 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11264 if test no = "$with_gnu_ld"; then
11265 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11266 hardcode_libdir_separator=:
11271 hardcode_shlibpath_var=no
11274 hardcode_direct=yes
11275 hardcode_direct_absolute=yes
11276 export_dynamic_flag_spec='$wl-E'
11278 # hardcode_minus_L: Not really in the search PATH,
11279 # but as the default location of the library.
11280 hardcode_minus_L=yes
11286 irix5* | irix6* | nonstopux*)
11287 if test yes = "$GCC"; then
11288 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'
11289 # Try to use the -exported_symbol ld option, if it does not
11290 # work, assume that -exports_file does not work either and
11291 # implicitly export all symbols.
11292 # This should be the same for all languages, so no per-tag cache variable.
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11294 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11295 if ${lt_cv_irix_exported_symbol+:} false; then :
11296 $as_echo_n "(cached) " >&6
11298 save_LDFLAGS=$LDFLAGS
11299 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11301 /* end confdefs.h. */
11302 int foo (void) { return 0; }
11304 if ac_fn_c_try_link "$LINENO"; then :
11305 lt_cv_irix_exported_symbol=yes
11307 lt_cv_irix_exported_symbol=no
11309 rm -f core conftest.err conftest.$ac_objext \
11310 conftest$ac_exeext conftest.$ac_ext
11311 LDFLAGS=$save_LDFLAGS
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11314 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11315 if test yes = "$lt_cv_irix_exported_symbol"; then
11316 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'
11319 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'
11320 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'
11322 archive_cmds_need_lc='no'
11323 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11324 hardcode_libdir_separator=:
11326 link_all_deplibs=yes
11330 case $cc_basename in
11332 # Fabrice Bellard et al's Tiny C Compiler
11334 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11340 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11341 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11343 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11345 hardcode_libdir_flag_spec='-R$libdir'
11346 hardcode_direct=yes
11347 hardcode_shlibpath_var=no
11351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11352 hardcode_direct=yes
11353 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11354 hardcode_libdir_separator=:
11355 hardcode_shlibpath_var=no
11361 openbsd* | bitrig*)
11362 if test -f /usr/libexec/ld.so; then
11363 hardcode_direct=yes
11364 hardcode_shlibpath_var=no
11365 hardcode_direct_absolute=yes
11366 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11367 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11368 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11369 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11370 export_dynamic_flag_spec='$wl-E'
11372 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11373 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11381 hardcode_libdir_flag_spec='-L$libdir'
11382 hardcode_minus_L=yes
11383 allow_undefined_flag=unsupported
11385 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11386 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11387 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11388 $ECHO EXPORTS >> $output_objdir/$libname.def~
11389 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11390 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11391 emximp -o $lib $output_objdir/$libname.def'
11392 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11393 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11394 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11395 $ECHO EXPORTS >> $output_objdir/$libname.def~
11396 prefix_cmds="$SED"~
11397 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11398 prefix_cmds="$prefix_cmds -e 1d";
11400 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11401 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11402 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11403 emximp -o $lib $output_objdir/$libname.def'
11404 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11405 enable_shared_with_static_runtimes=yes
11409 if test yes = "$GCC"; then
11410 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11411 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'
11413 allow_undefined_flag=' -expect_unresolved \*'
11414 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'
11416 archive_cmds_need_lc='no'
11417 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11418 hardcode_libdir_separator=:
11421 osf4* | osf5*) # as osf3* with the addition of -msym flag
11422 if test yes = "$GCC"; then
11423 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11424 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'
11425 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11427 allow_undefined_flag=' -expect_unresolved \*'
11428 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'
11429 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~
11430 $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'
11432 # Both c and cxx compiler support -rpath directly
11433 hardcode_libdir_flag_spec='-rpath $libdir'
11435 archive_cmds_need_lc='no'
11436 hardcode_libdir_separator=:
11440 no_undefined_flag=' -z defs'
11441 if test yes = "$GCC"; then
11443 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11444 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11445 $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'
11447 case `$CC -V 2>&1` in
11450 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11451 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11452 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11456 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11457 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11458 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11462 hardcode_libdir_flag_spec='-R$libdir'
11463 hardcode_shlibpath_var=no
11465 solaris2.[0-5] | solaris2.[0-5].*) ;;
11467 # The compiler driver will combine and reorder linker options,
11468 # but understands '-z linker_flag'. GCC discards it without '$wl',
11469 # but is careful enough not to reorder.
11470 # Supported since Solaris 2.6 (maybe 2.5.1?)
11471 if test yes = "$GCC"; then
11472 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11474 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11478 link_all_deplibs=yes
11482 if test sequent = "$host_vendor"; then
11483 # Use $CC to link under sequent, because it throws in some extra .o
11484 # files that make .init and .fini sections work.
11485 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11487 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11489 hardcode_libdir_flag_spec='-L$libdir'
11490 hardcode_direct=yes
11491 hardcode_minus_L=yes
11492 hardcode_shlibpath_var=no
11496 case $host_vendor in
11498 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11499 hardcode_direct=yes # is this really true???
11502 ## LD is ld it makes a PLAMLIB
11503 ## CC just makes a GrossModule.
11504 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11505 reload_cmds='$CC -r -o $output$reload_objs'
11509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11510 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11513 runpath_var='LD_RUN_PATH'
11514 hardcode_shlibpath_var=no
11518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11519 hardcode_shlibpath_var=no
11520 export_dynamic_flag_spec='-Bexport'
11524 if test -d /usr/nec; then
11525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11526 hardcode_shlibpath_var=no
11527 runpath_var=LD_RUN_PATH
11528 hardcode_runpath_var=yes
11533 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11534 no_undefined_flag='$wl-z,text'
11535 archive_cmds_need_lc=no
11536 hardcode_shlibpath_var=no
11537 runpath_var='LD_RUN_PATH'
11539 if test yes = "$GCC"; then
11540 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11541 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11543 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11544 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11548 sysv5* | sco3.2v5* | sco5v6*)
11549 # Note: We CANNOT use -z defs as we might desire, because we do not
11550 # link with -lc, and that would cause any symbols used from libc to
11551 # always be unresolved, which means just about no library would
11552 # ever link correctly. If we're not using GNU ld we use -z text
11553 # though, which does catch some bad symbols but isn't as heavy-handed
11555 no_undefined_flag='$wl-z,text'
11556 allow_undefined_flag='$wl-z,nodefs'
11557 archive_cmds_need_lc=no
11558 hardcode_shlibpath_var=no
11559 hardcode_libdir_flag_spec='$wl-R,$libdir'
11560 hardcode_libdir_separator=':'
11561 link_all_deplibs=yes
11562 export_dynamic_flag_spec='$wl-Bexport'
11563 runpath_var='LD_RUN_PATH'
11565 if test yes = "$GCC"; then
11566 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11567 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11569 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11570 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11575 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11576 hardcode_libdir_flag_spec='-L$libdir'
11577 hardcode_shlibpath_var=no
11585 if test sni = "$host_vendor"; then
11587 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11588 export_dynamic_flag_spec='$wl-Blargedynsym'
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11595 $as_echo "$ld_shlibs" >&6; }
11596 test no = "$ld_shlibs" && can_build_shared=no
11598 with_gnu_ld=$with_gnu_ld
11615 # Do we need to explicitly link libc?
11617 case "x$archive_cmds_need_lc" in
11619 # Assume -lc should be added
11620 archive_cmds_need_lc=yes
11622 if test yes,yes = "$GCC,$enable_shared"; then
11623 case $archive_cmds in
11625 # FIXME: we may have to deal with multi-command sequences.
11628 # Test whether the compiler implicitly links with -lc since on some
11629 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11630 # to ld, don't add -lc before -lgcc.
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11632 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11633 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11634 $as_echo_n "(cached) " >&6
11637 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11640 (eval $ac_compile) 2>&5
11642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11643 test $ac_status = 0; } 2>conftest.err; then
11646 libobjs=conftest.$ac_objext
11648 wl=$lt_prog_compiler_wl
11649 pic_flag=$lt_prog_compiler_pic
11655 lt_save_allow_undefined_flag=$allow_undefined_flag
11656 allow_undefined_flag=
11657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11658 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11661 test $ac_status = 0; }
11663 lt_cv_archive_cmds_need_lc=no
11665 lt_cv_archive_cmds_need_lc=yes
11667 allow_undefined_flag=$lt_save_allow_undefined_flag
11669 cat conftest.err 1>&5
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11675 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11676 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11835 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11837 if test yes = "$GCC"; then
11839 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11840 *) lt_awk_arg='/^libraries:/' ;;
11843 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11844 *) lt_sed_strip_eq='s|=/|/|g' ;;
11846 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11847 case $lt_search_path_spec in
11849 # if the path contains ";" then we assume it to be the separator
11850 # otherwise default to the standard path separator (i.e. ":") - it is
11851 # assumed that no part of a normal pathname contains ";" but that should
11852 # okay in the real world where ";" in dirpaths is itself problematic.
11853 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11856 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11859 # Ok, now we have the path, separated by spaces, we can step through it
11860 # and add multilib dir if necessary...
11861 lt_tmp_lt_search_path_spec=
11862 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11863 # ...but if some path component already ends with the multilib dir we assume
11864 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11865 case "$lt_multi_os_dir; $lt_search_path_spec " in
11866 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11870 for lt_sys_path in $lt_search_path_spec; do
11871 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11872 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11873 elif test -n "$lt_multi_os_dir"; then
11874 test -d "$lt_sys_path" && \
11875 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11878 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11879 BEGIN {RS = " "; FS = "/|\n";} {
11882 for (lt_i = NF; lt_i > 0; lt_i--) {
11883 if ($lt_i != "" && $lt_i != ".") {
11884 if ($lt_i == "..") {
11887 if (lt_count == 0) {
11888 lt_foo = "/" $lt_i lt_foo;
11895 if (lt_foo != "") { lt_freq[lt_foo]++; }
11896 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11898 # AWK program above erroneously prepends '/' to C:/dos/paths
11901 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11902 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11904 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11906 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11908 library_names_spec=
11909 libname_spec='lib$name'
11913 postuninstall_cmds=
11917 shlibpath_overrides_runpath=unknown
11919 dynamic_linker="$host_os ld.so"
11920 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11921 need_lib_prefix=unknown
11922 hardcode_into_libs=no
11924 # when you set need_version to no, make sure it does not cause -set_version
11925 # flags to be left without arguments
11926 need_version=unknown
11932 version_type=linux # correct to gnu/linux during the next big refactor
11933 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11934 shlibpath_var=LIBPATH
11936 # AIX 3 has no versioning support, so we append a major version to the name.
11937 soname_spec='$libname$release$shared_ext$major'
11941 version_type=linux # correct to gnu/linux during the next big refactor
11944 hardcode_into_libs=yes
11945 if test ia64 = "$host_cpu"; then
11946 # AIX 5 supports IA64
11947 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11948 shlibpath_var=LD_LIBRARY_PATH
11950 # With GCC up to 2.95.x, collect2 would create an import file
11951 # for dependence libraries. The import file would start with
11952 # the line '#! .'. This would cause the generated library to
11953 # depend on '.', always an invalid library. This was fixed in
11954 # development snapshots of GCC prior to 3.0.
11956 aix4 | aix4.[01] | aix4.[01].*)
11957 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11959 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11962 can_build_shared=no
11966 # Using Import Files as archive members, it is possible to support
11967 # filename-based versioning of shared library archives on AIX. While
11968 # this would work for both with and without runtime linking, it will
11969 # prevent static linking of such archives. So we do filename-based
11970 # shared library versioning with .so extension only, which is used
11971 # when both runtime linking and shared linking is enabled.
11972 # Unfortunately, runtime linking may impact performance, so we do
11973 # not want this to be the default eventually. Also, we use the
11974 # versioned .so libs for executables only if there is the -brtl
11975 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11976 # To allow for filename-based versioning support, we need to create
11977 # libNAME.so.V as an archive file, containing:
11978 # *) an Import File, referring to the versioned filename of the
11979 # archive as well as the shared archive member, telling the
11980 # bitwidth (32 or 64) of that shared object, and providing the
11981 # list of exported symbols of that shared object, eventually
11982 # decorated with the 'weak' keyword
11983 # *) the shared object with the F_LOADONLY flag set, to really avoid
11984 # it being seen by the linker.
11985 # At run time we better use the real file rather than another symlink,
11986 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11988 case $with_aix_soname,$aix_use_runtimelinking in
11989 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11990 # soname into executable. Probably we can add versioning support to
11991 # collect2, so additional links can be useful in future.
11992 aix,yes) # traditional libtool
11993 dynamic_linker='AIX unversionable lib.so'
11994 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11995 # instead of lib<name>.a to let people know that these are not
11996 # typical AIX shared libraries.
11997 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11999 aix,no) # traditional AIX only
12000 dynamic_linker='AIX lib.a(lib.so.V)'
12001 # We preserve .a as extension for shared libraries through AIX4.2
12002 # and later when we are not doing run time linking.
12003 library_names_spec='$libname$release.a $libname.a'
12004 soname_spec='$libname$release$shared_ext$major'
12006 svr4,*) # full svr4 only
12007 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12008 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12009 # We do not specify a path in Import Files, so LIBPATH fires.
12010 shlibpath_overrides_runpath=yes
12012 *,yes) # both, prefer svr4
12013 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12014 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12015 # unpreferred sharedlib libNAME.a needs extra handling
12016 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"'
12017 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"'
12018 # We do not specify a path in Import Files, so LIBPATH fires.
12019 shlibpath_overrides_runpath=yes
12021 *,no) # both, prefer aix
12022 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12023 library_names_spec='$libname$release.a $libname.a'
12024 soname_spec='$libname$release$shared_ext$major'
12025 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12026 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)'
12027 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"'
12030 shlibpath_var=LIBPATH
12037 # Since July 2007 AmigaOS4 officially supports .so libraries.
12038 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12042 library_names_spec='$libname.ixlibrary $libname.a'
12043 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12044 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'
12050 library_names_spec='$libname$shared_ext'
12051 dynamic_linker="$host_os ld.so"
12052 shlibpath_var=LIBRARY_PATH
12056 version_type=linux # correct to gnu/linux during the next big refactor
12058 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12059 soname_spec='$libname$release$shared_ext$major'
12060 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12061 shlibpath_var=LD_LIBRARY_PATH
12062 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12063 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12064 # the default ld.so.conf also contains /usr/contrib/lib and
12065 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12066 # libtool to hard-code these into programs
12069 cygwin* | mingw* | pw32* | cegcc*)
12070 version_type=windows
12075 case $GCC,$cc_basename in
12078 library_names_spec='$libname.dll.a'
12079 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12080 postinstall_cmds='base_file=`basename \$file`~
12081 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12082 dldir=$destdir/`dirname \$dlpath`~
12083 test -d \$dldir || mkdir -p \$dldir~
12084 $install_prog $dir/$dlname \$dldir/$dlname~
12085 chmod a+x \$dldir/$dlname~
12086 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12087 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12089 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12090 dlpath=$dir/\$dldll~
12092 shlibpath_overrides_runpath=yes
12096 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12097 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12099 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12102 # MinGW DLLs use traditional 'lib' prefix
12103 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12106 # pw32 DLLs use 'pw' prefix rather than 'lib'
12107 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12110 dynamic_linker='Win32 ld.exe'
12115 libname_spec='$name'
12116 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12117 library_names_spec='$libname.dll.lib'
12121 sys_lib_search_path_spec=
12124 for lt_path in $LIB
12127 # Let DOS variable expansion print the short 8.3 style file name.
12128 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12129 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12132 # Convert to MSYS style.
12133 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12136 # Convert to unix form, then to dos form, then back to unix form
12137 # but this time dos style (no spaces!) so that the unix form looks
12138 # like /cygdrive/c/PROGRA~1:/cygdr...
12139 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12140 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12141 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12144 sys_lib_search_path_spec=$LIB
12145 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12146 # It is most probably a Windows format PATH.
12147 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12149 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12151 # FIXME: find the short name or the path components, as spaces are
12152 # common. (e.g. "Program Files" -> "PROGRA~1")
12156 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12157 postinstall_cmds='base_file=`basename \$file`~
12158 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12159 dldir=$destdir/`dirname \$dlpath`~
12160 test -d \$dldir || mkdir -p \$dldir~
12161 $install_prog $dir/$dlname \$dldir/$dlname'
12162 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12163 dlpath=$dir/\$dldll~
12165 shlibpath_overrides_runpath=yes
12166 dynamic_linker='Win32 link.exe'
12170 # Assume MSVC wrapper
12171 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12172 dynamic_linker='Win32 ld.exe'
12175 # FIXME: first we should search . and the directory the executable is in
12179 darwin* | rhapsody*)
12180 dynamic_linker="$host_os dyld"
12181 version_type=darwin
12184 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12185 soname_spec='$libname$release$major$shared_ext'
12186 shlibpath_overrides_runpath=yes
12187 shlibpath_var=DYLD_LIBRARY_PATH
12188 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12190 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12191 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12195 version_type=linux # correct to gnu/linux during the next big refactor
12198 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12199 soname_spec='$libname$release$shared_ext$major'
12200 shlibpath_var=LD_LIBRARY_PATH
12203 freebsd* | dragonfly*)
12204 # DragonFly does not have aout. When/if they implement a new
12205 # versioning mechanism, adjust this.
12206 if test -x /usr/bin/objformat; then
12207 objformat=`/usr/bin/objformat`
12210 freebsd[23].*) objformat=aout ;;
12211 *) objformat=elf ;;
12214 version_type=freebsd-$objformat
12215 case $version_type in
12217 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12218 soname_spec='$libname$release$shared_ext$major'
12223 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12227 shlibpath_var=LD_LIBRARY_PATH
12230 shlibpath_overrides_runpath=yes
12232 freebsd3.[01]* | freebsdelf3.[01]*)
12233 shlibpath_overrides_runpath=yes
12234 hardcode_into_libs=yes
12236 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12237 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12238 shlibpath_overrides_runpath=no
12239 hardcode_into_libs=yes
12241 *) # from 4.6 on, and DragonFly
12242 shlibpath_overrides_runpath=yes
12243 hardcode_into_libs=yes
12249 version_type=linux # correct to gnu/linux during the next big refactor
12252 dynamic_linker="$host_os runtime_loader"
12253 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12254 soname_spec='$libname$release$shared_ext$major'
12255 shlibpath_var=LIBRARY_PATH
12256 shlibpath_overrides_runpath=no
12257 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12258 hardcode_into_libs=yes
12261 hpux9* | hpux10* | hpux11*)
12262 # Give a soname corresponding to the major version so that dld.sl refuses to
12263 # link against other versions.
12270 hardcode_into_libs=yes
12271 dynamic_linker="$host_os dld.so"
12272 shlibpath_var=LD_LIBRARY_PATH
12273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12274 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12275 soname_spec='$libname$release$shared_ext$major'
12276 if test 32 = "$HPUX_IA64_MODE"; then
12277 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12278 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12280 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12281 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12286 hardcode_into_libs=yes
12287 dynamic_linker="$host_os dld.sl"
12288 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12289 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12290 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12291 soname_spec='$libname$release$shared_ext$major'
12292 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12293 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12297 dynamic_linker="$host_os dld.sl"
12298 shlibpath_var=SHLIB_PATH
12299 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12300 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12301 soname_spec='$libname$release$shared_ext$major'
12304 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12305 postinstall_cmds='chmod 555 $lib'
12306 # or fails outright, so override atomically:
12307 install_override_mode=555
12311 version_type=linux # correct to gnu/linux during the next big refactor
12314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12315 soname_spec='$libname$release$shared_ext$major'
12316 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12317 shlibpath_var=LD_LIBRARY_PATH
12318 shlibpath_overrides_runpath=no
12319 hardcode_into_libs=yes
12322 irix5* | irix6* | nonstopux*)
12324 nonstopux*) version_type=nonstopux ;;
12326 if test yes = "$lt_cv_prog_gnu_ld"; then
12327 version_type=linux # correct to gnu/linux during the next big refactor
12334 soname_spec='$libname$release$shared_ext$major'
12335 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12337 irix5* | nonstopux*)
12338 libsuff= shlibsuff=
12341 case $LD in # libtool.m4 will add one of these switches to LD
12342 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12343 libsuff= shlibsuff= libmagic=32-bit;;
12344 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12345 libsuff=32 shlibsuff=N32 libmagic=N32;;
12346 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12347 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12348 *) libsuff= shlibsuff= libmagic=never-match;;
12352 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12353 shlibpath_overrides_runpath=no
12354 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12355 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12356 hardcode_into_libs=yes
12359 # No shared lib support for Linux oldld, aout, or coff.
12360 linux*oldld* | linux*aout* | linux*coff*)
12365 version_type=none # Android doesn't support versioned libraries.
12368 library_names_spec='$libname$release$shared_ext'
12369 soname_spec='$libname$release$shared_ext'
12371 shlibpath_var=LD_LIBRARY_PATH
12372 shlibpath_overrides_runpath=yes
12374 # This implies no fast_install, which is unacceptable.
12375 # Some rework will be needed to allow for fast_install
12376 # before this can be enabled.
12377 hardcode_into_libs=yes
12379 dynamic_linker='Android linker'
12380 # Don't embed -rpath directories since the linker doesn't support them.
12381 hardcode_libdir_flag_spec='-L$libdir'
12384 # This must be glibc/ELF.
12385 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12386 version_type=linux # correct to gnu/linux during the next big refactor
12389 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12390 soname_spec='$libname$release$shared_ext$major'
12391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12392 shlibpath_var=LD_LIBRARY_PATH
12393 shlibpath_overrides_runpath=no
12395 # Some binutils ld are patched to set DT_RUNPATH
12396 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12397 $as_echo_n "(cached) " >&6
12399 lt_cv_shlibpath_overrides_runpath=no
12400 save_LDFLAGS=$LDFLAGS
12401 save_libdir=$libdir
12402 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12403 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12405 /* end confdefs.h. */
12415 if ac_fn_c_try_link "$LINENO"; then :
12416 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12417 lt_cv_shlibpath_overrides_runpath=yes
12420 rm -f core conftest.err conftest.$ac_objext \
12421 conftest$ac_exeext conftest.$ac_ext
12422 LDFLAGS=$save_LDFLAGS
12423 libdir=$save_libdir
12427 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12429 # This implies no fast_install, which is unacceptable.
12430 # Some rework will be needed to allow for fast_install
12431 # before this can be enabled.
12432 hardcode_into_libs=yes
12434 # Add ABI-specific directories to the system library path.
12435 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12437 # Ideally, we could use ldconfig to report *all* directores which are
12438 # searched for libraries, however this is still not possible. Aside from not
12439 # being certain /sbin/ldconfig is available, command
12440 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12441 # even though it is searched at run-time. Try to do the best guess by
12442 # appending ld.so.conf contents (and includes) to the search path.
12443 if test -f /etc/ld.so.conf; then
12444 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' ' '`
12445 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12448 # We used to test for /lib/ld.so.1 and disable shared libraries on
12449 # powerpc, because MkLinux only supported shared libraries with the
12450 # GNU dynamic linker. Since this was broken with cross compilers,
12451 # most powerpc-linux boxes support dynamic linking these days and
12452 # people can always --disable-shared, the test was removed, and we
12453 # assume the GNU/Linux dynamic linker is in use.
12454 dynamic_linker='GNU/Linux ld.so'
12461 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12462 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12463 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12464 dynamic_linker='NetBSD (a.out) ld.so'
12466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12467 soname_spec='$libname$release$shared_ext$major'
12468 dynamic_linker='NetBSD ld.elf_so'
12470 shlibpath_var=LD_LIBRARY_PATH
12471 shlibpath_overrides_runpath=yes
12472 hardcode_into_libs=yes
12476 version_type=linux # correct to gnu/linux during the next big refactor
12477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12478 shlibpath_var=LD_LIBRARY_PATH
12479 shlibpath_overrides_runpath=yes
12486 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12487 soname_spec='$libname$release$shared_ext$major'
12488 shlibpath_var=LD_LIBRARY_PATH
12489 shlibpath_overrides_runpath=no
12490 hardcode_into_libs=yes
12491 dynamic_linker='ldqnx.so'
12494 openbsd* | bitrig*)
12496 sys_lib_dlsearch_path_spec=/usr/lib
12498 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12503 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12505 shlibpath_var=LD_LIBRARY_PATH
12506 shlibpath_overrides_runpath=yes
12510 libname_spec='$name'
12511 version_type=windows
12515 # OS/2 can only load a DLL with a base name of 8 characters or less.
12516 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12517 v=$($ECHO $release$versuffix | tr -d .-);
12518 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12519 $ECHO $n$v`$shared_ext'
12520 library_names_spec='${libname}_dll.$libext'
12521 dynamic_linker='OS/2 ld.exe'
12522 shlibpath_var=BEGINLIBPATH
12523 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12524 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12525 postinstall_cmds='base_file=`basename \$file`~
12526 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12527 dldir=$destdir/`dirname \$dlpath`~
12528 test -d \$dldir || mkdir -p \$dldir~
12529 $install_prog $dir/$dlname \$dldir/$dlname~
12530 chmod a+x \$dldir/$dlname~
12531 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12532 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12534 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12535 dlpath=$dir/\$dldll~
12539 osf3* | osf4* | osf5*)
12543 soname_spec='$libname$release$shared_ext$major'
12544 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12545 shlibpath_var=LD_LIBRARY_PATH
12546 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12547 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12555 version_type=linux # correct to gnu/linux during the next big refactor
12558 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12559 soname_spec='$libname$release$shared_ext$major'
12560 shlibpath_var=LD_LIBRARY_PATH
12561 shlibpath_overrides_runpath=yes
12562 hardcode_into_libs=yes
12563 # ldd complains unless libraries are executable
12564 postinstall_cmds='chmod +x $lib'
12569 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12570 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12571 shlibpath_var=LD_LIBRARY_PATH
12572 shlibpath_overrides_runpath=yes
12573 if test yes = "$with_gnu_ld"; then
12580 version_type=linux # correct to gnu/linux during the next big refactor
12581 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12582 soname_spec='$libname$release$shared_ext$major'
12583 shlibpath_var=LD_LIBRARY_PATH
12584 case $host_vendor in
12586 shlibpath_overrides_runpath=no
12588 runpath_var=LD_RUN_PATH
12596 shlibpath_overrides_runpath=no
12597 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12603 if test -d /usr/nec; then
12604 version_type=linux # correct to gnu/linux during the next big refactor
12605 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12606 soname_spec='$libname$shared_ext.$major'
12607 shlibpath_var=LD_LIBRARY_PATH
12611 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12616 soname_spec='$libname$release$shared_ext$major'
12617 shlibpath_var=LD_LIBRARY_PATH
12618 shlibpath_overrides_runpath=yes
12619 hardcode_into_libs=yes
12620 if test yes = "$with_gnu_ld"; then
12621 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12623 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12626 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12630 sys_lib_dlsearch_path_spec='/usr/lib'
12634 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12635 version_type=linux # correct to gnu/linux during the next big refactor
12638 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12639 shlibpath_var=LD_LIBRARY_PATH
12640 shlibpath_overrides_runpath=no
12641 hardcode_into_libs=yes
12645 version_type=linux # correct to gnu/linux during the next big refactor
12646 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12647 soname_spec='$libname$release$shared_ext$major'
12648 shlibpath_var=LD_LIBRARY_PATH
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12656 $as_echo "$dynamic_linker" >&6; }
12657 test no = "$dynamic_linker" && can_build_shared=no
12659 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12660 if test yes = "$GCC"; then
12661 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12664 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12665 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12668 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12669 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12672 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12673 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12675 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12676 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12678 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12679 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12778 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12780 if test -n "$hardcode_libdir_flag_spec" ||
12781 test -n "$runpath_var" ||
12782 test yes = "$hardcode_automatic"; then
12784 # We can hardcode non-existent directories.
12785 if test no != "$hardcode_direct" &&
12786 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12787 # have to relink, otherwise we might link with an installed library
12788 # when we should be linking with a yet-to-be-installed one
12789 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12790 test no != "$hardcode_minus_L"; then
12791 # Linking always hardcodes the temporary library directory.
12792 hardcode_action=relink
12794 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12795 hardcode_action=immediate
12798 # We cannot hardcode anything, or else we can only hardcode existing
12800 hardcode_action=unsupported
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12803 $as_echo "$hardcode_action" >&6; }
12805 if test relink = "$hardcode_action" ||
12806 test yes = "$inherit_rpath"; then
12807 # Fast installation is not supported
12808 enable_fast_install=no
12809 elif test yes = "$shlibpath_overrides_runpath" ||
12810 test no = "$enable_shared"; then
12811 # Fast installation is not necessary
12812 enable_fast_install=needless
12820 if test yes != "$enable_dlopen"; then
12821 enable_dlopen=unknown
12822 enable_dlopen_self=unknown
12823 enable_dlopen_self_static=unknown
12830 lt_cv_dlopen=load_add_on
12832 lt_cv_dlopen_self=yes
12835 mingw* | pw32* | cegcc*)
12836 lt_cv_dlopen=LoadLibrary
12841 lt_cv_dlopen=dlopen
12846 # if libdl is installed we need to link against it
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12848 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12849 if ${ac_cv_lib_dl_dlopen+:} false; then :
12850 $as_echo_n "(cached) " >&6
12852 ac_check_lib_save_LIBS=$LIBS
12854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12855 /* end confdefs.h. */
12857 /* Override any GCC internal prototype to avoid an error.
12858 Use char because int might match the return type of a GCC
12859 builtin and then its argument prototype would still apply. */
12872 if ac_fn_c_try_link "$LINENO"; then :
12873 ac_cv_lib_dl_dlopen=yes
12875 ac_cv_lib_dl_dlopen=no
12877 rm -f core conftest.err conftest.$ac_objext \
12878 conftest$ac_exeext conftest.$ac_ext
12879 LIBS=$ac_check_lib_save_LIBS
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12882 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12883 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12884 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12889 lt_cv_dlopen_self=yes
12896 # Don't try to run any link tests for TPF. We know it's impossible
12897 # because TPF is a cross-compiler, and we know how we open DSOs.
12898 lt_cv_dlopen=dlopen
12900 lt_cv_dlopen_self=no
12904 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12905 if test "x$ac_cv_func_shl_load" = xyes; then :
12906 lt_cv_dlopen=shl_load
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12909 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12910 if ${ac_cv_lib_dld_shl_load+:} false; then :
12911 $as_echo_n "(cached) " >&6
12913 ac_check_lib_save_LIBS=$LIBS
12915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h. */
12918 /* Override any GCC internal prototype to avoid an error.
12919 Use char because int might match the return type of a GCC
12920 builtin and then its argument prototype would still apply. */
12928 return shl_load ();
12933 if ac_fn_c_try_link "$LINENO"; then :
12934 ac_cv_lib_dld_shl_load=yes
12936 ac_cv_lib_dld_shl_load=no
12938 rm -f core conftest.err conftest.$ac_objext \
12939 conftest$ac_exeext conftest.$ac_ext
12940 LIBS=$ac_check_lib_save_LIBS
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12943 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12944 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12945 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12947 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12948 if test "x$ac_cv_func_dlopen" = xyes; then :
12949 lt_cv_dlopen=dlopen
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12952 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12953 if ${ac_cv_lib_dl_dlopen+:} false; then :
12954 $as_echo_n "(cached) " >&6
12956 ac_check_lib_save_LIBS=$LIBS
12958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12959 /* end confdefs.h. */
12961 /* Override any GCC internal prototype to avoid an error.
12962 Use char because int might match the return type of a GCC
12963 builtin and then its argument prototype would still apply. */
12976 if ac_fn_c_try_link "$LINENO"; then :
12977 ac_cv_lib_dl_dlopen=yes
12979 ac_cv_lib_dl_dlopen=no
12981 rm -f core conftest.err conftest.$ac_objext \
12982 conftest$ac_exeext conftest.$ac_ext
12983 LIBS=$ac_check_lib_save_LIBS
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12986 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12987 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12988 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12991 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12992 if ${ac_cv_lib_svld_dlopen+:} false; then :
12993 $as_echo_n "(cached) " >&6
12995 ac_check_lib_save_LIBS=$LIBS
12996 LIBS="-lsvld $LIBS"
12997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12998 /* end confdefs.h. */
13000 /* Override any GCC internal prototype to avoid an error.
13001 Use char because int might match the return type of a GCC
13002 builtin and then its argument prototype would still apply. */
13015 if ac_fn_c_try_link "$LINENO"; then :
13016 ac_cv_lib_svld_dlopen=yes
13018 ac_cv_lib_svld_dlopen=no
13020 rm -f core conftest.err conftest.$ac_objext \
13021 conftest$ac_exeext conftest.$ac_ext
13022 LIBS=$ac_check_lib_save_LIBS
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13025 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13026 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13027 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13030 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13031 if ${ac_cv_lib_dld_dld_link+:} false; then :
13032 $as_echo_n "(cached) " >&6
13034 ac_check_lib_save_LIBS=$LIBS
13036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037 /* end confdefs.h. */
13039 /* Override any GCC internal prototype to avoid an error.
13040 Use char because int might match the return type of a GCC
13041 builtin and then its argument prototype would still apply. */
13049 return dld_link ();
13054 if ac_fn_c_try_link "$LINENO"; then :
13055 ac_cv_lib_dld_dld_link=yes
13057 ac_cv_lib_dld_dld_link=no
13059 rm -f core conftest.err conftest.$ac_objext \
13060 conftest$ac_exeext conftest.$ac_ext
13061 LIBS=$ac_check_lib_save_LIBS
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13064 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13065 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13066 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13087 if test no = "$lt_cv_dlopen"; then
13093 case $lt_cv_dlopen in
13095 save_CPPFLAGS=$CPPFLAGS
13096 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13098 save_LDFLAGS=$LDFLAGS
13099 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13102 LIBS="$lt_cv_dlopen_libs $LIBS"
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13105 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13106 if ${lt_cv_dlopen_self+:} false; then :
13107 $as_echo_n "(cached) " >&6
13109 if test yes = "$cross_compiling"; then :
13110 lt_cv_dlopen_self=cross
13112 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13113 lt_status=$lt_dlunknown
13114 cat > conftest.$ac_ext <<_LT_EOF
13115 #line $LINENO "configure"
13116 #include "confdefs.h"
13125 # define LT_DLGLOBAL RTLD_GLOBAL
13128 # define LT_DLGLOBAL DL_GLOBAL
13130 # define LT_DLGLOBAL 0
13134 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13135 find out it does not work in some platform. */
13136 #ifndef LT_DLLAZY_OR_NOW
13138 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13141 # define LT_DLLAZY_OR_NOW DL_LAZY
13144 # define LT_DLLAZY_OR_NOW RTLD_NOW
13147 # define LT_DLLAZY_OR_NOW DL_NOW
13149 # define LT_DLLAZY_OR_NOW 0
13156 /* When -fvisibility=hidden is used, assume the code has been annotated
13157 correspondingly for the symbols needed. */
13158 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13159 int fnord () __attribute__((visibility("default")));
13162 int fnord () { return 42; }
13165 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13166 int status = $lt_dlunknown;
13170 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13173 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13174 else puts (dlerror ());
13176 /* dlclose (self); */
13184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13185 (eval $ac_link) 2>&5
13187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13188 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13189 (./conftest; exit; ) >&5 2>/dev/null
13191 case x$lt_status in
13192 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13193 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13194 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13197 # compilation failed
13198 lt_cv_dlopen_self=no
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13206 $as_echo "$lt_cv_dlopen_self" >&6; }
13208 if test yes = "$lt_cv_dlopen_self"; then
13209 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13211 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13212 if ${lt_cv_dlopen_self_static+:} false; then :
13213 $as_echo_n "(cached) " >&6
13215 if test yes = "$cross_compiling"; then :
13216 lt_cv_dlopen_self_static=cross
13218 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13219 lt_status=$lt_dlunknown
13220 cat > conftest.$ac_ext <<_LT_EOF
13221 #line $LINENO "configure"
13222 #include "confdefs.h"
13231 # define LT_DLGLOBAL RTLD_GLOBAL
13234 # define LT_DLGLOBAL DL_GLOBAL
13236 # define LT_DLGLOBAL 0
13240 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13241 find out it does not work in some platform. */
13242 #ifndef LT_DLLAZY_OR_NOW
13244 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13247 # define LT_DLLAZY_OR_NOW DL_LAZY
13250 # define LT_DLLAZY_OR_NOW RTLD_NOW
13253 # define LT_DLLAZY_OR_NOW DL_NOW
13255 # define LT_DLLAZY_OR_NOW 0
13262 /* When -fvisibility=hidden is used, assume the code has been annotated
13263 correspondingly for the symbols needed. */
13264 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13265 int fnord () __attribute__((visibility("default")));
13268 int fnord () { return 42; }
13271 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13272 int status = $lt_dlunknown;
13276 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13279 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13280 else puts (dlerror ());
13282 /* dlclose (self); */
13290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13291 (eval $ac_link) 2>&5
13293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13294 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13295 (./conftest; exit; ) >&5 2>/dev/null
13297 case x$lt_status in
13298 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13299 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13300 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13303 # compilation failed
13304 lt_cv_dlopen_self_static=no
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13312 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13315 CPPFLAGS=$save_CPPFLAGS
13316 LDFLAGS=$save_LDFLAGS
13321 case $lt_cv_dlopen_self in
13322 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13323 *) enable_dlopen_self=unknown ;;
13326 case $lt_cv_dlopen_self_static in
13327 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13328 *) enable_dlopen_self_static=unknown ;;
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13351 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13352 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13353 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13354 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13356 $as_echo "yes" >&6; }
13358 # FIXME - insert some real tests, host_os isn't really good enough
13361 if test -n "$STRIP"; then
13362 striplib="$STRIP -x"
13363 old_striplib="$STRIP -S"
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13365 $as_echo "yes" >&6; }
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13368 $as_echo "no" >&6; }
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13373 $as_echo "no" >&6; }
13389 # Report what library types will actually be built
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13391 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13393 $as_echo "$can_build_shared" >&6; }
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13396 $as_echo_n "checking whether to build shared libraries... " >&6; }
13397 test no = "$can_build_shared" && enable_shared=no
13399 # On AIX, shared libraries and static libraries use the same namespace, and
13400 # are all built from PIC.
13403 test yes = "$enable_shared" && enable_static=no
13404 if test -n "$RANLIB"; then
13405 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13406 postinstall_cmds='$RANLIB $lib'
13411 if test ia64 != "$host_cpu"; then
13412 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13413 yes,aix,yes) ;; # shared object as lib.so file only
13414 yes,svr4,*) ;; # shared object as lib.so archive member only
13415 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13421 $as_echo "$enable_shared" >&6; }
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13424 $as_echo_n "checking whether to build static libraries... " >&6; }
13425 # Make sure either enable_shared or enable_static is yes.
13426 test yes = "$enable_shared" || enable_static=yes
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13428 $as_echo "$enable_static" >&6; }
13435 ac_cpp='$CPP $CPPFLAGS'
13436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13456 ac_config_commands="$ac_config_commands libtool"
13461 # Only expand once:
13472 LIBT_VERSION_INFO="$LIBT_CURRENT:$LIBT_REVISION:$LIBT_AGE"
13475 LIBT_CURRENT_MINUS_AGE=`expr $LIBT_CURRENT - $LIBT_AGE`
13478 PKGCONFIG_REQUIRES=
13479 PKGCONFIG_REQUIRES_PRIVATELY=
13489 if test "$os_win32" = "yes"; then
13498 if test "$os_win32" = "yes"; then
13499 # Extract the first word of "lib.exe", so it can be a program name with args.
13500 set dummy lib.exe; ac_word=$2
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13502 $as_echo_n "checking for $ac_word... " >&6; }
13503 if ${ac_cv_prog_ms_librarian+:} false; then :
13504 $as_echo_n "(cached) " >&6
13506 if test -n "$ms_librarian"; then
13507 ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
13509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13510 for as_dir in $PATH
13513 test -z "$as_dir" && as_dir=.
13514 for ac_exec_ext in '' $ac_executable_extensions; do
13515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13516 ac_cv_prog_ms_librarian="yes"
13517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13524 test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
13527 ms_librarian=$ac_cv_prog_ms_librarian
13528 if test -n "$ms_librarian"; then
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5
13530 $as_echo "$ms_librarian" >&6; }
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13533 $as_echo "no" >&6; }
13538 if test x$ms_librarian = xyes; then
13539 MS_LIB_AVAILABLE_TRUE=
13540 MS_LIB_AVAILABLE_FALSE='#'
13542 MS_LIB_AVAILABLE_TRUE='#'
13543 MS_LIB_AVAILABLE_FALSE=
13547 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
13548 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
13555 WARNING_CPP_DIRECTIVE="no"
13556 if test "x$GCC" = "xyes"; then
13557 WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
13558 -Wmissing-prototypes -Wmissing-declarations \
13559 -Wnested-externs -fno-strict-aliasing"
13560 WARNING_CPP_DIRECTIVE="yes"
13561 elif test "x$SUNCC" = "xyes"; then
13562 WARN_CFLAGS="-v -fd"
13563 WARNING_CPP_DIRECTIVE="yes"
13565 if test "x$WARNING_CPP_DIRECTIVE" = "xyes"; then
13567 cat >>confdefs.h <<_ACEOF
13568 #define HAVE_WARNING_CPP_DIRECTIVE 1
13576 # Put a plausible default for CC_FOR_BUILD in Makefile.
13577 if test -z "$CC_FOR_BUILD"; then
13578 if test "x$cross_compiling" = "xno"; then
13579 CC_FOR_BUILD='$(CC)'
13585 # Also set EXEEXT_FOR_BUILD.
13586 if test "x$cross_compiling" = "xno"; then
13587 EXEEXT_FOR_BUILD='$(EXEEXT)'
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
13590 $as_echo_n "checking for build system executable suffix... " >&6; }
13591 if ${bfd_cv_build_exeext+:} false; then :
13592 $as_echo_n "(cached) " >&6
13595 echo 'int main () { return 0; }' > conftest.c
13596 bfd_cv_build_exeext=
13597 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13598 for file in conftest.*; do
13600 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13601 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13605 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
13608 $as_echo "$bfd_cv_build_exeext" >&6; }
13609 EXEEXT_FOR_BUILD=""
13610 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13614 if test $cross_compiling = yes; then
13615 CROSS_COMPILING_TRUE=
13616 CROSS_COMPILING_FALSE='#'
13618 CROSS_COMPILING_TRUE='#'
13619 CROSS_COMPILING_FALSE=
13622 if test "$enable_shared" = "yes"; then
13623 ENABLE_SHARED_TRUE=
13624 ENABLE_SHARED_FALSE='#'
13626 ENABLE_SHARED_TRUE='#'
13627 ENABLE_SHARED_FALSE=
13633 # Check whether --with-arch was given.
13634 if test "${with_arch+set}" = set; then :
13635 withval=$with_arch; arch="$withval"
13641 if test "x$arch" != xauto; then
13643 cat >>confdefs.h <<_ACEOF
13644 #define FC_ARCHITECTURE "$arch"
13651 # Checks for header files.
13652 ac_header_dirent=no
13653 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13654 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13656 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13657 if eval \${$as_ac_Header+:} false; then :
13658 $as_echo_n "(cached) " >&6
13660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13661 /* end confdefs.h. */
13662 #include <sys/types.h>
13674 if ac_fn_c_try_compile "$LINENO"; then :
13675 eval "$as_ac_Header=yes"
13677 eval "$as_ac_Header=no"
13679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13681 eval ac_res=\$$as_ac_Header
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13683 $as_echo "$ac_res" >&6; }
13684 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13685 cat >>confdefs.h <<_ACEOF
13686 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13689 ac_header_dirent=$ac_hdr; break
13693 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13694 if test $ac_header_dirent = dirent.h; then
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13696 $as_echo_n "checking for library containing opendir... " >&6; }
13697 if ${ac_cv_search_opendir+:} false; then :
13698 $as_echo_n "(cached) " >&6
13700 ac_func_search_save_LIBS=$LIBS
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13704 /* Override any GCC internal prototype to avoid an error.
13705 Use char because int might match the return type of a GCC
13706 builtin and then its argument prototype would still apply. */
13719 for ac_lib in '' dir; do
13720 if test -z "$ac_lib"; then
13721 ac_res="none required"
13724 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13726 if ac_fn_c_try_link "$LINENO"; then :
13727 ac_cv_search_opendir=$ac_res
13729 rm -f core conftest.err conftest.$ac_objext \
13731 if ${ac_cv_search_opendir+:} false; then :
13735 if ${ac_cv_search_opendir+:} false; then :
13738 ac_cv_search_opendir=no
13740 rm conftest.$ac_ext
13741 LIBS=$ac_func_search_save_LIBS
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13744 $as_echo "$ac_cv_search_opendir" >&6; }
13745 ac_res=$ac_cv_search_opendir
13746 if test "$ac_res" != no; then :
13747 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13753 $as_echo_n "checking for library containing opendir... " >&6; }
13754 if ${ac_cv_search_opendir+:} false; then :
13755 $as_echo_n "(cached) " >&6
13757 ac_func_search_save_LIBS=$LIBS
13758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13759 /* end confdefs.h. */
13761 /* Override any GCC internal prototype to avoid an error.
13762 Use char because int might match the return type of a GCC
13763 builtin and then its argument prototype would still apply. */
13776 for ac_lib in '' x; do
13777 if test -z "$ac_lib"; then
13778 ac_res="none required"
13781 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13783 if ac_fn_c_try_link "$LINENO"; then :
13784 ac_cv_search_opendir=$ac_res
13786 rm -f core conftest.err conftest.$ac_objext \
13788 if ${ac_cv_search_opendir+:} false; then :
13792 if ${ac_cv_search_opendir+:} false; then :
13795 ac_cv_search_opendir=no
13797 rm conftest.$ac_ext
13798 LIBS=$ac_func_search_save_LIBS
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13801 $as_echo "$ac_cv_search_opendir" >&6; }
13802 ac_res=$ac_cv_search_opendir
13803 if test "$ac_res" != no; then :
13804 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13811 $as_echo_n "checking for ANSI C header files... " >&6; }
13812 if ${ac_cv_header_stdc+:} false; then :
13813 $as_echo_n "(cached) " >&6
13815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13816 /* end confdefs.h. */
13817 #include <stdlib.h>
13818 #include <stdarg.h>
13819 #include <string.h>
13830 if ac_fn_c_try_compile "$LINENO"; then :
13831 ac_cv_header_stdc=yes
13833 ac_cv_header_stdc=no
13835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13837 if test $ac_cv_header_stdc = yes; then
13838 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13840 /* end confdefs.h. */
13841 #include <string.h>
13844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13845 $EGREP "memchr" >/dev/null 2>&1; then :
13848 ac_cv_header_stdc=no
13854 if test $ac_cv_header_stdc = yes; then
13855 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13857 /* end confdefs.h. */
13858 #include <stdlib.h>
13861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13862 $EGREP "free" >/dev/null 2>&1; then :
13865 ac_cv_header_stdc=no
13871 if test $ac_cv_header_stdc = yes; then
13872 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13873 if test "$cross_compiling" = yes; then :
13876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13877 /* end confdefs.h. */
13879 #include <stdlib.h>
13880 #if ((' ' & 0x0FF) == 0x020)
13881 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13882 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13884 # define ISLOWER(c) \
13885 (('a' <= (c) && (c) <= 'i') \
13886 || ('j' <= (c) && (c) <= 'r') \
13887 || ('s' <= (c) && (c) <= 'z'))
13888 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13891 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13896 for (i = 0; i < 256; i++)
13897 if (XOR (islower (i), ISLOWER (i))
13898 || toupper (i) != TOUPPER (i))
13903 if ac_fn_c_try_run "$LINENO"; then :
13906 ac_cv_header_stdc=no
13908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13909 conftest.$ac_objext conftest.beam conftest.$ac_ext
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13915 $as_echo "$ac_cv_header_stdc" >&6; }
13916 if test $ac_cv_header_stdc = yes; then
13918 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13922 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
13924 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13925 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13926 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13927 cat >>confdefs.h <<_ACEOF
13928 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13935 # ------ AX CREATE STDINT H -------------------------------------
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
13937 $as_echo_n "checking for stdint types... " >&6; }
13938 ac_stdint_h=`echo src/fcstdint.h`
13939 # try to shortcircuit - if the default include path of the compiler
13940 # can find a "stdint.h" header then we assume that all compilers can.
13941 if ${ac_cv_header_stdint_t+:} false; then :
13942 $as_echo_n "(cached) " >&6
13945 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
13946 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
13947 old_CFLAGS="$CFLAGS" ; CFLAGS=""
13948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13949 /* end confdefs.h. */
13950 #include <stdint.h>
13954 int_least32_t v = 0;
13959 if ac_fn_c_try_compile "$LINENO"; then :
13960 ac_cv_stdint_result="(assuming C99 compatible system)"
13961 ac_cv_header_stdint_t="stdint.h";
13963 ac_cv_header_stdint_t=""
13965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13966 if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
13968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h. */
13970 #include <stdint.h>
13974 int_least32_t v = 0;
13979 if ac_fn_c_try_compile "$LINENO"; then :
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5
13981 $as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;}
13983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13985 CXXFLAGS="$old_CXXFLAGS"
13986 CPPFLAGS="$old_CPPFLAGS"
13987 CFLAGS="$old_CFLAGS"
13991 v="... $ac_cv_header_stdint_h"
13992 if test "$ac_stdint_h" = "stdint.h" ; then
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
13994 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
13995 elif test "$ac_stdint_h" = "inttypes.h" ; then
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
13997 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
13998 elif test "_$ac_cv_header_stdint_t" = "_" ; then
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
14000 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
14002 ac_cv_header_stdint="$ac_cv_header_stdint_t"
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
14004 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
14007 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
14010 inttype_headers=`echo | sed -e 's/,/ /g'`
14012 ac_cv_stdint_result="(no helpful system typedefs seen)"
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
14015 $as_echo_n "checking for stdint uintptr_t... " >&6; }
14016 if ${ac_cv_header_stdint_x+:} false; then :
14017 $as_echo_n "(cached) " >&6
14020 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
14022 $as_echo "(..)" >&6; }
14023 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers
14025 unset ac_cv_type_uintptr_t
14026 unset ac_cv_type_uint64_t
14027 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
14029 if test "x$ac_cv_type_uintptr_t" = xyes; then :
14030 ac_cv_header_stdint_x=$i
14035 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
14037 if test "x$ac_cv_type_uint64_t" = xyes; then :
14043 ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
14047 $as_echo_n "checking for stdint uintptr_t... " >&6; }
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
14051 $as_echo "$ac_cv_header_stdint_x" >&6; }
14054 if test "_$ac_cv_header_stdint_x" = "_" ; then
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
14057 $as_echo_n "checking for stdint uint32_t... " >&6; }
14058 if ${ac_cv_header_stdint_o+:} false; then :
14059 $as_echo_n "(cached) " >&6
14062 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
14064 $as_echo "(..)" >&6; }
14065 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers
14067 unset ac_cv_type_uint32_t
14068 unset ac_cv_type_uint64_t
14069 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
14071 if test "x$ac_cv_type_uint32_t" = xyes; then :
14072 ac_cv_header_stdint_o=$i
14077 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
14079 if test "x$ac_cv_type_uint64_t" = xyes; then :
14085 ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
14090 $as_echo_n "checking for stdint uint32_t... " >&6; }
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
14094 $as_echo "$ac_cv_header_stdint_o" >&6; }
14098 if test "_$ac_cv_header_stdint_x" = "_" ; then
14099 if test "_$ac_cv_header_stdint_o" = "_" ; then
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
14102 $as_echo_n "checking for stdint u_int32_t... " >&6; }
14103 if ${ac_cv_header_stdint_u+:} false; then :
14104 $as_echo_n "(cached) " >&6
14107 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
14109 $as_echo "(..)" >&6; }
14110 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
14111 unset ac_cv_type_u_int32_t
14112 unset ac_cv_type_u_int64_t
14113 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
14115 if test "x$ac_cv_type_u_int32_t" = xyes; then :
14116 ac_cv_header_stdint_u=$i
14121 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
14123 if test "x$ac_cv_type_u_int64_t" = xyes; then :
14129 ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
14134 $as_echo_n "checking for stdint u_int32_t... " >&6; }
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
14138 $as_echo "$ac_cv_header_stdint_u" >&6; }
14142 if test "_$ac_cv_header_stdint_x" = "_" ; then
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
14144 $as_echo_n "checking for stdint datatype model... " >&6; }
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
14146 $as_echo "(..)" >&6; }
14148 # The cast to long int works around a bug in the HP C Compiler
14149 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14150 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14151 # This bug is HP SR number 8606223364.
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14153 $as_echo_n "checking size of char... " >&6; }
14154 if ${ac_cv_sizeof_char+:} false; then :
14155 $as_echo_n "(cached) " >&6
14157 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
14160 if test "$ac_cv_type_char" = yes; then
14161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14163 as_fn_error 77 "cannot compute sizeof (char)
14164 See \`config.log' for more details" "$LINENO" 5; }
14166 ac_cv_sizeof_char=0
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14172 $as_echo "$ac_cv_sizeof_char" >&6; }
14176 cat >>confdefs.h <<_ACEOF
14177 #define SIZEOF_CHAR $ac_cv_sizeof_char
14181 # The cast to long int works around a bug in the HP C Compiler
14182 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14183 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14184 # This bug is HP SR number 8606223364.
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14186 $as_echo_n "checking size of short... " >&6; }
14187 if ${ac_cv_sizeof_short+:} false; then :
14188 $as_echo_n "(cached) " >&6
14190 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14193 if test "$ac_cv_type_short" = yes; then
14194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14196 as_fn_error 77 "cannot compute sizeof (short)
14197 See \`config.log' for more details" "$LINENO" 5; }
14199 ac_cv_sizeof_short=0
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14205 $as_echo "$ac_cv_sizeof_short" >&6; }
14209 cat >>confdefs.h <<_ACEOF
14210 #define SIZEOF_SHORT $ac_cv_sizeof_short
14214 # The cast to long int works around a bug in the HP C Compiler
14215 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14216 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14217 # This bug is HP SR number 8606223364.
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14219 $as_echo_n "checking size of int... " >&6; }
14220 if ${ac_cv_sizeof_int+:} false; then :
14221 $as_echo_n "(cached) " >&6
14223 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14226 if test "$ac_cv_type_int" = yes; then
14227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14229 as_fn_error 77 "cannot compute sizeof (int)
14230 See \`config.log' for more details" "$LINENO" 5; }
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14238 $as_echo "$ac_cv_sizeof_int" >&6; }
14242 cat >>confdefs.h <<_ACEOF
14243 #define SIZEOF_INT $ac_cv_sizeof_int
14247 # The cast to long int works around a bug in the HP C Compiler
14248 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14249 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14250 # This bug is HP SR number 8606223364.
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14252 $as_echo_n "checking size of long... " >&6; }
14253 if ${ac_cv_sizeof_long+:} false; then :
14254 $as_echo_n "(cached) " >&6
14256 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14259 if test "$ac_cv_type_long" = yes; then
14260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14262 as_fn_error 77 "cannot compute sizeof (long)
14263 See \`config.log' for more details" "$LINENO" 5; }
14265 ac_cv_sizeof_long=0
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14271 $as_echo "$ac_cv_sizeof_long" >&6; }
14275 cat >>confdefs.h <<_ACEOF
14276 #define SIZEOF_LONG $ac_cv_sizeof_long
14280 # The cast to long int works around a bug in the HP C Compiler
14281 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14282 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14283 # This bug is HP SR number 8606223364.
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
14285 $as_echo_n "checking size of void*... " >&6; }
14286 if ${ac_cv_sizeof_voidp+:} false; then :
14287 $as_echo_n "(cached) " >&6
14289 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
14292 if test "$ac_cv_type_voidp" = yes; then
14293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14295 as_fn_error 77 "cannot compute sizeof (void*)
14296 See \`config.log' for more details" "$LINENO" 5; }
14298 ac_cv_sizeof_voidp=0
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
14304 $as_echo "$ac_cv_sizeof_voidp" >&6; }
14308 cat >>confdefs.h <<_ACEOF
14309 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
14313 ac_cv_char_data_model=""
14314 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
14315 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
14316 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
14317 ac_cv_long_data_model=""
14318 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
14319 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
14320 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
14322 $as_echo_n "checking data model... " >&6; }
14323 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
14324 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
14325 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
14326 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
14327 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
14328 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
14329 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
14330 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
14331 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
14332 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
14333 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
14334 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
14335 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
14336 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
14337 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
14338 222/*|333/*|444/*|666/*|888/*) :
14339 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
14340 *) ac_cv_data_model="none" ; n="very unusual model" ;;
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
14343 $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
14347 if test "_$ac_cv_header_stdint_x" != "_" ; then
14348 ac_cv_header_stdint="$ac_cv_header_stdint_x"
14349 elif test "_$ac_cv_header_stdint_o" != "_" ; then
14350 ac_cv_header_stdint="$ac_cv_header_stdint_o"
14351 elif test "_$ac_cv_header_stdint_u" != "_" ; then
14352 ac_cv_header_stdint="$ac_cv_header_stdint_u"
14354 ac_cv_header_stdint="stddef.h"
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
14358 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
14360 $as_echo "($ac_cv_header_stdint)" >&6; }
14361 unset ac_cv_type_int_least32_t
14362 unset ac_cv_type_int_fast32_t
14363 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
14365 if test "x$ac_cv_type_int_least32_t" = xyes; then :
14369 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
14371 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
14375 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
14377 if test "x$ac_cv_type_intmax_t" = xyes; then :
14382 fi # shortcircut to system "stdint.h"
14383 # ------------------ PREPARE VARIABLES ------------------------------
14384 if test "$GCC" = "yes" ; then
14385 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
14387 ac_cv_stdint_message="using $CC"
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
14391 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
14393 # ----------------- DONE inttypes.h checks START header -------------
14394 ac_config_commands="$ac_config_commands $ac_stdint_h"
14398 # Checks for typedefs, structures, and compiler characteristics.
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14400 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14401 if ${ac_cv_c_const+:} false; then :
14402 $as_echo_n "(cached) " >&6
14404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h. */
14411 #ifndef __cplusplus
14412 /* Ultrix mips cc rejects this sort of thing. */
14413 typedef int charset[2];
14414 const charset cs = { 0, 0 };
14415 /* SunOS 4.1.1 cc rejects this. */
14416 char const *const *pcpcc;
14418 /* NEC SVR4.0.2 mips cc rejects this. */
14419 struct point {int x, y;};
14420 static struct point const zero = {0,0};
14421 /* AIX XL C 1.02.0.0 rejects this.
14422 It does not let you subtract one const X* pointer from another in
14423 an arm of an if-expression whose if-part is not a constant
14425 const char *g = "string";
14426 pcpcc = &g + (g ? g-g : 0);
14427 /* HPUX 7.0 cc rejects these. */
14429 ppc = (char**) pcpcc;
14430 pcpcc = (char const *const *) ppc;
14431 { /* SCO 3.2v4 cc rejects this sort of thing. */
14434 char const *s = 0 ? (char *) 0 : (char const *) 0;
14439 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14440 int x[] = {25, 17};
14441 const int *foo = &x[0];
14444 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14445 typedef const int *iptr;
14449 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14450 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14451 struct s { int j; const int *ap[3]; } bx;
14452 struct s *b = &bx; b->j = 5;
14454 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14455 const int foo = 10;
14456 if (!foo) return 0;
14458 return !cs[0] && !zero.x;
14465 if ac_fn_c_try_compile "$LINENO"; then :
14470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14473 $as_echo "$ac_cv_c_const" >&6; }
14474 if test $ac_cv_c_const = no; then
14476 $as_echo "#define const /**/" >>confdefs.h
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14481 $as_echo_n "checking for inline... " >&6; }
14482 if ${ac_cv_c_inline+:} false; then :
14483 $as_echo_n "(cached) " >&6
14486 for ac_kw in inline __inline__ __inline; do
14487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14488 /* end confdefs.h. */
14489 #ifndef __cplusplus
14491 static $ac_kw foo_t static_foo () {return 0; }
14492 $ac_kw foo_t foo () {return 0; }
14496 if ac_fn_c_try_compile "$LINENO"; then :
14497 ac_cv_c_inline=$ac_kw
14499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14500 test "$ac_cv_c_inline" != no && break
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14505 $as_echo "$ac_cv_c_inline" >&6; }
14507 case $ac_cv_c_inline in
14510 case $ac_cv_c_inline in
14512 *) ac_val=$ac_cv_c_inline;;
14514 cat >>confdefs.h <<_ACEOF
14515 #ifndef __cplusplus
14516 #define inline $ac_val
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
14524 $as_echo_n "checking for flexible array members... " >&6; }
14525 if ${ac_cv_c_flexmember+:} false; then :
14526 $as_echo_n "(cached) " >&6
14528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529 /* end confdefs.h. */
14530 #include <stdlib.h>
14532 #include <stddef.h>
14533 struct s { int n; double d[]; };
14537 int m = getchar ();
14538 struct s *p = malloc (offsetof (struct s, d)
14539 + m * sizeof (double));
14541 return p->d != (double *) NULL;
14546 if ac_fn_c_try_compile "$LINENO"; then :
14547 ac_cv_c_flexmember=yes
14549 ac_cv_c_flexmember=no
14551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
14554 $as_echo "$ac_cv_c_flexmember" >&6; }
14555 if test $ac_cv_c_flexmember = yes; then
14557 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
14560 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
14564 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14565 if test "x$ac_cv_type_pid_t" = xyes; then :
14569 cat >>confdefs.h <<_ACEOF
14576 # Checks for library functions.
14577 for ac_func in vprintf
14579 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14580 if test "x$ac_cv_func_vprintf" = xyes; then :
14581 cat >>confdefs.h <<_ACEOF
14582 #define HAVE_VPRINTF 1
14585 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14586 if test "x$ac_cv_func__doprnt" = xyes; then :
14588 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14599 for ac_header in $ac_header_list
14601 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14602 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14604 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14605 cat >>confdefs.h <<_ACEOF
14606 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14620 for ac_func in getpagesize
14622 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
14623 if test "x$ac_cv_func_getpagesize" = xyes; then :
14624 cat >>confdefs.h <<_ACEOF
14625 #define HAVE_GETPAGESIZE 1
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14632 $as_echo_n "checking for working mmap... " >&6; }
14633 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
14634 $as_echo_n "(cached) " >&6
14636 if test "$cross_compiling" = yes; then :
14637 ac_cv_func_mmap_fixed_mapped=no
14639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14640 /* end confdefs.h. */
14641 $ac_includes_default
14642 /* malloc might have been renamed as rpl_malloc. */
14645 /* Thanks to Mike Haertel and Jim Avera for this test.
14646 Here is a matrix of mmap possibilities:
14647 mmap private not fixed
14648 mmap private fixed at somewhere currently unmapped
14649 mmap private fixed at somewhere already mapped
14650 mmap shared not fixed
14651 mmap shared fixed at somewhere currently unmapped
14652 mmap shared fixed at somewhere already mapped
14653 For private mappings, we should verify that changes cannot be read()
14654 back from the file, nor mmap's back from the file at a different
14655 address. (There have been systems where private was not correctly
14656 implemented like the infamous i386 svr4.0, and systems where the
14657 VM page cache was not coherent with the file system buffer cache
14658 like early versions of FreeBSD and possibly contemporary NetBSD.)
14659 For shared mappings, we should conversely verify that changes get
14660 propagated back to all the places they're supposed to be.
14662 Grep wants private fixed already mapped.
14663 The main things grep needs to know about mmap are:
14664 * does it exist and is it safe to write into the mmap'd area
14665 * how to use it (BSD variants) */
14668 #include <sys/mman.h>
14670 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
14674 /* This mess was copied from the GNU getpagesize.h. */
14675 #ifndef HAVE_GETPAGESIZE
14676 # ifdef _SC_PAGESIZE
14677 # define getpagesize() sysconf(_SC_PAGESIZE)
14678 # else /* no _SC_PAGESIZE */
14679 # ifdef HAVE_SYS_PARAM_H
14680 # include <sys/param.h>
14681 # ifdef EXEC_PAGESIZE
14682 # define getpagesize() EXEC_PAGESIZE
14683 # else /* no EXEC_PAGESIZE */
14685 # define getpagesize() NBPG * CLSIZE
14688 # endif /* no CLSIZE */
14689 # else /* no NBPG */
14691 # define getpagesize() NBPC
14692 # else /* no NBPC */
14694 # define getpagesize() PAGESIZE
14695 # endif /* PAGESIZE */
14696 # endif /* no NBPC */
14697 # endif /* no NBPG */
14698 # endif /* no EXEC_PAGESIZE */
14699 # else /* no HAVE_SYS_PARAM_H */
14700 # define getpagesize() 8192 /* punt totally */
14701 # endif /* no HAVE_SYS_PARAM_H */
14702 # endif /* no _SC_PAGESIZE */
14704 #endif /* no HAVE_GETPAGESIZE */
14709 char *data, *data2, *data3;
14710 const char *cdata2;
14714 pagesize = getpagesize ();
14716 /* First, make a file with some known garbage in it. */
14717 data = (char *) malloc (pagesize);
14720 for (i = 0; i < pagesize; ++i)
14721 *(data + i) = rand ();
14723 fd = creat ("conftest.mmap", 0600);
14726 if (write (fd, data, pagesize) != pagesize)
14730 /* Next, check that the tail of a page is zero-filled. File must have
14731 non-zero length, otherwise we risk SIGBUS for entire page. */
14732 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14736 if (write (fd2, cdata2, 1) != 1)
14738 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14739 if (data2 == MAP_FAILED)
14741 for (i = 0; i < pagesize; ++i)
14745 if (munmap (data2, pagesize))
14748 /* Next, try to mmap the file at a fixed address which already has
14749 something else allocated at it. If we can, also make sure that
14750 we see the same garbage. */
14751 fd = open ("conftest.mmap", O_RDWR);
14754 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14755 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14757 for (i = 0; i < pagesize; ++i)
14758 if (*(data + i) != *(data2 + i))
14761 /* Finally, make sure that changes to the mapped area do not
14762 percolate back to the file as seen by read(). (This is a bug on
14763 some variants of i386 svr4.0.) */
14764 for (i = 0; i < pagesize; ++i)
14765 *(data2 + i) = *(data2 + i) + 1;
14766 data3 = (char *) malloc (pagesize);
14769 if (read (fd, data3, pagesize) != pagesize)
14771 for (i = 0; i < pagesize; ++i)
14772 if (*(data + i) != *(data3 + i))
14778 if ac_fn_c_try_run "$LINENO"; then :
14779 ac_cv_func_mmap_fixed_mapped=yes
14781 ac_cv_func_mmap_fixed_mapped=no
14783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14784 conftest.$ac_objext conftest.beam conftest.$ac_ext
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14789 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14790 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14792 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
14795 rm -f conftest.mmap conftest.txt
14797 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
14799 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14800 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14801 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14802 cat >>confdefs.h <<_ACEOF
14803 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise in fcntl.h" >&5
14811 $as_echo_n "checking for posix_fadvise in fcntl.h... " >&6; }
14812 if ${ac_cv_func_posix_fadvise+:} false; then :
14813 $as_echo_n "(cached) " >&6
14815 symbol="[^a-zA-Z_0-9]posix_fadvise[^a-zA-Z_0-9]"
14817 for ac_header in fcntl.h ; do
14818 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%' `
14819 if test $ac_found != "yes" ; then
14820 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14822 /* end confdefs.h. */
14823 #include <$ac_header>
14826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14827 $EGREP "$symbol" >/dev/null 2>&1; then :
14828 ac_found="$ac_header"
14835 if test "$ac_found" != "no" ; then
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_found" >&5
14837 $as_echo "$ac_found" >&6; }
14838 fc_func_posix_fadvise=1
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14841 $as_echo "no" >&6; }
14842 fc_func_posix_fadvise=0
14848 cat >>confdefs.h <<_ACEOF
14849 #define HAVE_POSIX_FADVISE $fc_func_posix_fadvise
14854 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "#include <sys/stat.h>
14856 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
14858 cat >>confdefs.h <<_ACEOF
14859 #define HAVE_STRUCT_STAT_ST_MTIM 1
14867 if test "x$ac_cv_func_fstatvfs" = "xyes"; then
14868 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "#include <sys/statvfs.h>
14870 if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes; then :
14872 cat >>confdefs.h <<_ACEOF
14873 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
14878 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "#include <sys/statvfs.h>
14880 if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes; then :
14882 cat >>confdefs.h <<_ACEOF
14883 #define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1
14890 if test "x$ac_cv_func_fstatfs" = "xyes"; then
14891 ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" "
14892 #ifdef HAVE_SYS_VFS_H
14893 #include <sys/vfs.h>
14895 #ifdef HAVE_SYS_STATFS_H
14896 #include <sys/statfs.h>
14898 #ifdef HAVE_SYS_PARAM_H
14899 #include <sys/param.h>
14901 #ifdef HAVE_SYS_MOUNT_H
14902 #include <sys/mount.h>
14905 if test "x$ac_cv_member_struct_statfs_f_flags" = xyes; then :
14907 cat >>confdefs.h <<_ACEOF
14908 #define HAVE_STRUCT_STATFS_F_FLAGS 1
14913 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "
14914 #ifdef HAVE_SYS_VFS_H
14915 #include <sys/vfs.h>
14917 #ifdef HAVE_SYS_STATFS_H
14918 #include <sys/statfs.h>
14920 #ifdef HAVE_SYS_PARAM_H
14921 #include <sys/param.h>
14923 #ifdef HAVE_SYS_MOUNT_H
14924 #include <sys/mount.h>
14927 if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then :
14929 cat >>confdefs.h <<_ACEOF
14930 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
14937 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "#include <dirent.h>
14939 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
14941 cat >>confdefs.h <<_ACEOF
14942 #define HAVE_STRUCT_DIRENT_D_TYPE 1
14952 # Check whether --enable-iconv was given.
14953 if test "${enable_iconv+set}" = set; then :
14954 enableval=$enable_iconv;
14960 # Check whether --with-libiconv was given.
14961 if test "${with_libiconv+set}" = set; then :
14962 withval=$with_libiconv; if test "x$withval" = "xyes"; then
14963 libiconv_prefix=$prefix
14965 libiconv_prefix=$withval
14968 libiconv_prefix=auto
14972 # Check whether --with-libiconv-includes was given.
14973 if test "${with_libiconv_includes+set}" = set; then :
14974 withval=$with_libiconv_includes; libiconv_includes=$withval
14976 libiconv_includes=auto
14980 # Check whether --with-libiconv-lib was given.
14981 if test "${with_libiconv_lib+set}" = set; then :
14982 withval=$with_libiconv_lib; libiconv_lib=$withval
14988 # if no libiconv,libiconv-includes,libiconv-lib are specified,
14989 # libc's iconv has a priority.
14990 if test "$libiconv_includes" != "auto" -a -r ${libiconv_includes}/iconv.h; then
14991 libiconv_cflags="-I${libiconv_includes}"
14992 elif test "$libiconv_prefix" != "auto" -a -r ${libiconv_prefix}/include/iconv.h; then
14993 libiconv_cflags="-I${libiconv_prefix}/include"
14998 if test "x$libiconv_cflags" != "x"; then
14999 if test "$libiconv_lib" != "auto" -a -d ${libiconv_lib}; then
15000 libiconv_libs="-L${libiconv_lib} -liconv"
15001 elif test "$libiconv_prefix" != "auto" -a -d ${libiconv_prefix}/lib; then
15002 libiconv_libs="-L${libiconv_prefix}/lib -liconv"
15004 libiconv_libs="-liconv"
15009 if test "x$enable_iconv" != "xno"; then
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a usable iconv" >&5
15011 $as_echo_n "checking for a usable iconv... " >&6; }
15012 if test "x$libiconv_cflags" != "x" -o "x$libiconv_libs" != "x"; then
15013 iconvsaved_CFLAGS="$CFLAGS"
15014 iconvsaved_LIBS="$LIBS"
15015 CFLAGS="$CFLAGS $libiconv_cflags"
15016 LIBS="$LIBS $libiconv_libs"
15018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15019 /* end confdefs.h. */
15024 iconv_open ("from", "to");
15029 if ac_fn_c_try_link "$LINENO"; then :
15030 iconv_type="libiconv"
15032 ICONV_CFLAGS="$libiconv_cflags"
15033 ICONV_LIBS="$libiconv_libs"
15038 rm -f core conftest.err conftest.$ac_objext \
15039 conftest$ac_exeext conftest.$ac_ext
15041 CFLAGS="$iconvsaved_CFLAGS"
15042 LIBS="$iconvsaved_LIBS"
15044 if test "x$use_iconv" = "x0"; then
15045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15046 /* end confdefs.h. */
15051 iconv_open ("from", "to");
15056 if ac_fn_c_try_link "$LINENO"; then :
15060 iconv_type="not found"
15063 rm -f core conftest.err conftest.$ac_objext \
15064 conftest$ac_exeext conftest.$ac_ext
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iconv_type" >&5
15068 $as_echo "$iconv_type" >&6; }
15073 cat >>confdefs.h <<_ACEOF
15074 #define USE_ICONV $use_iconv
15078 # Checks for FreeType
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
15083 $as_echo_n "checking for FREETYPE... " >&6; }
15085 if test -n "$FREETYPE_CFLAGS"; then
15086 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
15087 elif test -n "$PKG_CONFIG"; then
15088 if test -n "$PKG_CONFIG" && \
15089 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
15090 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
15092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15093 test $ac_status = 0; }; then
15094 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
15095 test "x$?" != "x0" && pkg_failed=yes
15102 if test -n "$FREETYPE_LIBS"; then
15103 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
15104 elif test -n "$PKG_CONFIG"; then
15105 if test -n "$PKG_CONFIG" && \
15106 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
15107 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
15109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15110 test $ac_status = 0; }; then
15111 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
15112 test "x$?" != "x0" && pkg_failed=yes
15122 if test $pkg_failed = yes; then
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15124 $as_echo "no" >&6; }
15126 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15127 _pkg_short_errors_supported=yes
15129 _pkg_short_errors_supported=no
15131 if test $_pkg_short_errors_supported = yes; then
15132 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
15134 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
15136 # Put the nasty error message in config.log where it belongs
15137 echo "$FREETYPE_PKG_ERRORS" >&5
15139 as_fn_error $? "Package requirements (freetype2) were not met:
15141 $FREETYPE_PKG_ERRORS
15143 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15144 installed software in a non-standard prefix.
15146 Alternatively, you may set the environment variables FREETYPE_CFLAGS
15147 and FREETYPE_LIBS to avoid the need to call pkg-config.
15148 See the pkg-config man page for more details." "$LINENO" 5
15149 elif test $pkg_failed = untried; then
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15151 $as_echo "no" >&6; }
15152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15154 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15155 is in your PATH or set the PKG_CONFIG environment variable to the full
15156 path to pkg-config.
15158 Alternatively, you may set the environment variables FREETYPE_CFLAGS
15159 and FREETYPE_LIBS to avoid the need to call pkg-config.
15160 See the pkg-config man page for more details.
15162 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15163 See \`config.log' for more details" "$LINENO" 5; }
15165 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
15166 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15168 $as_echo "yes" >&6; }
15171 PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES freetype2"
15176 fontconfig_save_libs="$LIBS"
15177 fontconfig_save_cflags="$CFLAGS"
15178 LIBS="$LIBS $FREETYPE_LIBS"
15179 CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
15180 for ac_func in FT_Get_Next_Char FT_Get_BDF_Property FT_Get_PS_Font_Info FT_Has_PS_Glyph_Names FT_Get_X11_Font_Format FT_Select_Size
15182 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15183 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15184 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15185 cat >>confdefs.h <<_ACEOF
15186 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15192 ac_fn_c_check_member "$LINENO" "FT_Bitmap_Size" "y_ppem" "ac_cv_member_FT_Bitmap_Size_y_ppem" "#include <ft2build.h>
15193 #include FT_FREETYPE_H
15195 if test "x$ac_cv_member_FT_Bitmap_Size_y_ppem" = xyes; then :
15196 HAVE_FT_BITMAP_SIZE_Y_PPEM=1
15198 HAVE_FT_BITMAP_SIZE_Y_PPEM=0
15202 cat >>confdefs.h <<_ACEOF
15203 #define HAVE_FT_BITMAP_SIZE_Y_PPEM $HAVE_FT_BITMAP_SIZE_Y_PPEM
15206 ac_fn_c_check_member "$LINENO" "TT_OS2" "usLowerOpticalPointSize" "ac_cv_member_TT_OS2_usLowerOpticalPointSize" "
15207 #include <ft2build.h>
15208 #include FT_FREETYPE_H
15209 #include FT_TRUETYPE_TABLES_H
15211 if test "x$ac_cv_member_TT_OS2_usLowerOpticalPointSize" = xyes; then :
15213 cat >>confdefs.h <<_ACEOF
15214 #define HAVE_TT_OS2_USLOWEROPTICALPOINTSIZE 1
15219 ac_fn_c_check_member "$LINENO" "TT_OS2" "usUpperOpticalPointSize" "ac_cv_member_TT_OS2_usUpperOpticalPointSize" "
15220 #include <ft2build.h>
15221 #include FT_FREETYPE_H
15222 #include FT_TRUETYPE_TABLES_H
15224 if test "x$ac_cv_member_TT_OS2_usUpperOpticalPointSize" = xyes; then :
15226 cat >>confdefs.h <<_ACEOF
15227 #define HAVE_TT_OS2_USUPPEROPTICALPOINTSIZE 1
15233 CFLAGS="$fontconfig_save_cflags"
15234 LIBS="$fontconfig_save_libs"
15237 # Check expat configuration
15240 # Check whether --with-expat was given.
15241 if test "${with_expat+set}" = set; then :
15242 withval=$with_expat; expat_prefix=$withval
15248 # Check whether --with-expat-includes was given.
15249 if test "${with_expat_includes+set}" = set; then :
15250 withval=$with_expat_includes; expat_includes=$withval
15252 expat_includes=auto
15256 # Check whether --with-expat-lib was given.
15257 if test "${with_expat_lib+set}" = set; then :
15258 withval=$with_expat_lib; expat_lib=$withval
15264 if test "$enable_libxml2" != "yes"; then
15265 use_pkgconfig_for_expat=yes
15266 if test "$expat_prefix" = "auto" -a "$expat_includes" = "auto" -a "$expat_lib" = "auto"; then
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPAT" >&5
15270 $as_echo_n "checking for EXPAT... " >&6; }
15272 if test -n "$EXPAT_CFLAGS"; then
15273 pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS"
15274 elif test -n "$PKG_CONFIG"; then
15275 if test -n "$PKG_CONFIG" && \
15276 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
15277 ($PKG_CONFIG --exists --print-errors "expat") 2>&5
15279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15280 test $ac_status = 0; }; then
15281 pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null`
15282 test "x$?" != "x0" && pkg_failed=yes
15289 if test -n "$EXPAT_LIBS"; then
15290 pkg_cv_EXPAT_LIBS="$EXPAT_LIBS"
15291 elif test -n "$PKG_CONFIG"; then
15292 if test -n "$PKG_CONFIG" && \
15293 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
15294 ($PKG_CONFIG --exists --print-errors "expat") 2>&5
15296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15297 test $ac_status = 0; }; then
15298 pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null`
15299 test "x$?" != "x0" && pkg_failed=yes
15309 if test $pkg_failed = yes; then
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15311 $as_echo "no" >&6; }
15313 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15314 _pkg_short_errors_supported=yes
15316 _pkg_short_errors_supported=no
15318 if test $_pkg_short_errors_supported = yes; then
15319 EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "expat" 2>&1`
15321 EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "expat" 2>&1`
15323 # Put the nasty error message in config.log where it belongs
15324 echo "$EXPAT_PKG_ERRORS" >&5
15326 use_pkgconfig_for_expat=no
15327 elif test $pkg_failed = untried; then
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15329 $as_echo "no" >&6; }
15330 use_pkgconfig_for_expat=no
15332 EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS
15333 EXPAT_LIBS=$pkg_cv_EXPAT_LIBS
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15335 $as_echo "yes" >&6; }
15339 use_pkgconfig_for_expat=no
15341 if test "x$use_pkgconfig_for_expat" = "xno"; then
15342 if test "$expat_includes" != "auto" -a -r ${expat_includes}/expat.h; then
15343 EXPAT_CFLAGS="-I${expat_includes}"
15344 elif test "$expat_prefix" != "auto" -a -r ${expat_prefix}/include/expat.h; then
15345 EXPAT_CFLAGS="-I${expat_prefix}/include"
15349 if test "$expat_lib" != "auto"; then
15350 EXPAT_LIBS="-L${expat_lib} -lexpat"
15351 elif test "$expat_prefix" != "auto"; then
15352 EXPAT_LIBS="-L${expat_prefix}/lib -lexpat"
15354 EXPAT_LIBS="-lexpat"
15357 PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY expat"
15360 expatsaved_CPPFLAGS="$CPPFLAGS"
15361 expatsaved_LIBS="$LIBS"
15362 CPPFLAGS="$CPPFLAGS $EXPAT_CFLAGS"
15363 LIBS="$LIBS $EXPAT_LIBS"
15365 ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
15366 if test "x$ac_cv_header_expat_h" = xyes; then :
15371 if test "$ac_cv_header_expat_h" = "no"; then
15372 ac_fn_c_check_header_mongrel "$LINENO" "xmlparse.h" "ac_cv_header_xmlparse_h" "$ac_includes_default"
15373 if test "x$ac_cv_header_xmlparse_h" = xyes; then :
15378 if test "$ac_cv_header_xmlparse_h" = "yes"; then
15382 cat >>confdefs.h <<_ACEOF
15383 #define HAVE_XMLPARSE_H $HAVE_XMLPARSE_H
15388 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
15391 for ac_func in XML_SetDoctypeDeclHandler
15393 ac_fn_c_check_func "$LINENO" "XML_SetDoctypeDeclHandler" "ac_cv_func_XML_SetDoctypeDeclHandler"
15394 if test "x$ac_cv_func_XML_SetDoctypeDeclHandler" = xyes; then :
15395 cat >>confdefs.h <<_ACEOF
15396 #define HAVE_XML_SETDOCTYPEDECLHANDLER 1
15402 if test "$ac_cv_func_XML_SetDoctypeDeclHandler" = "no"; then
15404 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
15406 CPPFLAGS="$expatsaved_CPPFLAGS"
15407 LIBS="$expatsaved_LIBS"
15414 # Check libxml2 configuration
15416 # Check whether --enable-libxml2 was given.
15417 if test "${enable_libxml2+set}" = set; then :
15418 enableval=$enable_libxml2;
15422 if test "$enable_libxml2" = "yes"; then
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
15426 $as_echo_n "checking for LIBXML2... " >&6; }
15428 if test -n "$LIBXML2_CFLAGS"; then
15429 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
15430 elif test -n "$PKG_CONFIG"; then
15431 if test -n "$PKG_CONFIG" && \
15432 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
15433 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
15435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15436 test $ac_status = 0; }; then
15437 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6" 2>/dev/null`
15438 test "x$?" != "x0" && pkg_failed=yes
15445 if test -n "$LIBXML2_LIBS"; then
15446 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
15447 elif test -n "$PKG_CONFIG"; then
15448 if test -n "$PKG_CONFIG" && \
15449 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
15450 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
15452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15453 test $ac_status = 0; }; then
15454 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6" 2>/dev/null`
15455 test "x$?" != "x0" && pkg_failed=yes
15465 if test $pkg_failed = yes; then
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15467 $as_echo "no" >&6; }
15469 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15470 _pkg_short_errors_supported=yes
15472 _pkg_short_errors_supported=no
15474 if test $_pkg_short_errors_supported = yes; then
15475 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
15477 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
15479 # Put the nasty error message in config.log where it belongs
15480 echo "$LIBXML2_PKG_ERRORS" >&5
15482 as_fn_error $? "Package requirements (libxml-2.0 >= 2.6) were not met:
15484 $LIBXML2_PKG_ERRORS
15486 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15487 installed software in a non-standard prefix.
15489 Alternatively, you may set the environment variables LIBXML2_CFLAGS
15490 and LIBXML2_LIBS to avoid the need to call pkg-config.
15491 See the pkg-config man page for more details." "$LINENO" 5
15492 elif test $pkg_failed = untried; then
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15494 $as_echo "no" >&6; }
15495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15497 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15498 is in your PATH or set the PKG_CONFIG environment variable to the full
15499 path to pkg-config.
15501 Alternatively, you may set the environment variables LIBXML2_CFLAGS
15502 and LIBXML2_LIBS to avoid the need to call pkg-config.
15503 See the pkg-config man page for more details.
15505 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15506 See \`config.log' for more details" "$LINENO" 5; }
15508 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
15509 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15511 $as_echo "yes" >&6; }
15514 PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY libxml-2.0"
15516 cat >>confdefs.h <<_ACEOF
15517 #define ENABLE_LIBXML2 1
15524 fc_saved_CFLAGS="$CFLAGS"
15525 CFLAGS="$CFLAGS $LIBXML2_CFLAGS"
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SAX1 support in libxml2" >&5
15527 $as_echo_n "checking SAX1 support in libxml2... " >&6; }
15528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15529 /* end confdefs.h. */
15531 #include <libxml/xmlversion.h>
15532 #if !defined(LIBXML_SAX1_ENABLED)
15533 # include "error: No SAX1 support in libxml2"
15537 if ac_fn_c_try_compile "$LINENO"; then :
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15539 $as_echo "found" >&6; }
15542 *** SAX1 support in libxml2 is required. enable it or use expat instead." "$LINENO" 5
15544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15545 CFLAGS="$fc_saved_CFLAGS"
15549 # Set default hinting
15553 # Check whether --with-default-hinting was given.
15554 if test "${with_default_hinting+set}" = set; then :
15555 withval=$with_default_hinting; preferred_hinting="$withval"
15557 preferred_hinting=slight
15561 case "$preferred_hinting" in
15562 none|slight|medium|full)
15563 PREFERRED_HINTING="$preferred_hinting"
15567 as_fn_error $? "Invalid hinting. please choose one of none, slight, medium, or full" "$LINENO" 5
15572 # Set default font directory
15576 # Check whether --with-default-fonts was given.
15577 if test "${with_default_fonts+set}" = set; then :
15578 withval=$with_default_fonts; default_fonts="$withval"
15584 case "$default_fonts" in
15586 if test "$os_win32" = "yes"; then
15587 FC_DEFAULT_FONTS="WINDOWSFONTDIR"
15589 cat >>confdefs.h <<_ACEOF
15590 #define FC_DEFAULT_FONTS "WINDOWSFONTDIR"
15594 FC_DEFAULT_FONTS="/usr/share/fonts"
15596 cat >>confdefs.h <<_ACEOF
15597 #define FC_DEFAULT_FONTS "/usr/share/fonts"
15603 FC_DEFAULT_FONTS="$default_fonts"
15605 cat >>confdefs.h <<_ACEOF
15606 #define FC_DEFAULT_FONTS "$default_fonts"
15615 # Add more fonts if available. By default, add only the directories
15616 # with outline fonts; those with bitmaps can be added as desired in
15617 # local.conf or ~/.fonts.conf
15620 # Check whether --with-add-fonts was given.
15621 if test "${with_add_fonts+set}" = set; then :
15622 withval=$with_add_fonts; add_fonts="$withval"
15628 case "$add_fonts" in
15631 for dir in /usr/X11R6/lib/X11 /usr/X11/lib/X11 /usr/lib/X11; do
15632 case x"$FC_ADD_FONTS" in
15635 if test -d "$sub"; then
15636 case x$FC_ADD_FONTS in
15638 FC_ADD_FONTS="$sub"
15641 FC_ADD_FONTS="$FC_ADD_FONTS,$sub"
15649 cat >>confdefs.h <<_ACEOF
15650 #define FC_ADD_FONTS "$add_fonts"
15658 FC_ADD_FONTS="$add_fonts"
15660 cat >>confdefs.h <<_ACEOF
15661 #define FC_ADD_FONTS "$add_fonts"
15671 case "$FC_ADD_FONTS" in
15675 FC_FONTPATH=`echo $FC_ADD_FONTS |
15676 sed -e 's/^/<dir>/' -e 's/$/<\/dir>/' -e 's/,/<\/dir> <dir>/g'`
15683 # Set default cache directory path
15686 # Check whether --with-cache-dir was given.
15687 if test "${with_cache_dir+set}" = set; then :
15688 withval=$with_cache_dir; fc_cachedir="$withval"
15694 case $fc_cachedir in
15696 if test "$os_win32" = "yes"; then
15697 fc_cachedir="LOCAL_APPDATA_FONTCONFIG_CACHE"
15699 fc_cachedir='${localstatedir}/cache/${PACKAGE}'
15706 FC_CACHEDIR=${fc_cachedir}
15709 FC_FONTDATE=`LC_ALL=C date`
15714 # Set configuration paths
15718 # Check whether --with-templatedir was given.
15719 if test "${with_templatedir+set}" = set; then :
15720 withval=$with_templatedir; templatedir="$withval"
15726 # Check whether --with-baseconfigdir was given.
15727 if test "${with_baseconfigdir+set}" = set; then :
15728 withval=$with_baseconfigdir; baseconfigdir="$withval"
15734 # Check whether --with-configdir was given.
15735 if test "${with_configdir+set}" = set; then :
15736 withval=$with_configdir; configdir="$withval"
15742 # Check whether --with-xmldir was given.
15743 if test "${with_xmldir+set}" = set; then :
15744 withval=$with_xmldir; xmldir="$withval"
15750 case "$templatedir" in
15752 templatedir='${datadir}'/fontconfig/conf.avail
15757 case "$baseconfigdir" in
15759 baseconfigdir='${sysconfdir}'/fonts
15764 case "$configdir" in
15766 configdir='${BASECONFIGDIR}'/conf.d
15773 xmldir='${datadir}'/xml/fontconfig
15779 TEMPLATEDIR=${templatedir}
15780 BASECONFIGDIR=${baseconfigdir}
15781 CONFIGDIR=${configdir}
15791 # Thread-safety primitives
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
15795 $as_echo_n "checking for Intel atomic primitives... " >&6; }
15796 if ${fc_cv_have_intel_atomic_primitives+:} false; then :
15797 $as_echo_n "(cached) " >&6
15800 fc_cv_have_intel_atomic_primitives=false
15801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15802 /* end confdefs.h. */
15804 void memory_barrier (void) { __sync_synchronize (); }
15805 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
15806 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
15807 void mutex_unlock (int *m) { __sync_lock_release (m); }
15817 if ac_fn_c_try_link "$LINENO"; then :
15818 fc_cv_have_intel_atomic_primitives=true
15821 rm -f core conftest.err conftest.$ac_objext \
15822 conftest$ac_exeext conftest.$ac_ext
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_intel_atomic_primitives" >&5
15826 $as_echo "$fc_cv_have_intel_atomic_primitives" >&6; }
15827 if $fc_cv_have_intel_atomic_primitives; then
15829 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
15834 $as_echo_n "checking for Solaris atomic operations... " >&6; }
15835 if ${fc_cv_have_solaris_atomic_ops+:} false; then :
15836 $as_echo_n "(cached) " >&6
15839 fc_cv_have_solaris_atomic_ops=false
15840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15841 /* end confdefs.h. */
15843 #include <atomic.h>
15844 /* This requires Solaris Studio 12.2 or newer: */
15845 #include <mbarrier.h>
15846 void memory_barrier (void) { __machine_rw_barrier (); }
15847 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
15848 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
15858 if ac_fn_c_try_link "$LINENO"; then :
15859 fc_cv_have_solaris_atomic_ops=true
15862 rm -f core conftest.err conftest.$ac_objext \
15863 conftest$ac_exeext conftest.$ac_ext
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_solaris_atomic_ops" >&5
15867 $as_echo "$fc_cv_have_solaris_atomic_ops" >&6; }
15868 if $fc_cv_have_solaris_atomic_ops; then
15870 $as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
15874 if test "$os_win32" = no && ! $have_pthread; then
15875 for ac_header in sched.h
15877 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
15878 if test "x$ac_cv_header_sched_h" = xyes; then :
15879 cat >>confdefs.h <<_ACEOF
15880 #define HAVE_SCHED_H 1
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
15888 $as_echo_n "checking for library containing sched_yield... " >&6; }
15889 if ${ac_cv_search_sched_yield+:} false; then :
15890 $as_echo_n "(cached) " >&6
15892 ac_func_search_save_LIBS=$LIBS
15893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15894 /* end confdefs.h. */
15896 /* Override any GCC internal prototype to avoid an error.
15897 Use char because int might match the return type of a GCC
15898 builtin and then its argument prototype would still apply. */
15902 char sched_yield ();
15906 return sched_yield ();
15911 for ac_lib in '' rt; do
15912 if test -z "$ac_lib"; then
15913 ac_res="none required"
15916 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15918 if ac_fn_c_try_link "$LINENO"; then :
15919 ac_cv_search_sched_yield=$ac_res
15921 rm -f core conftest.err conftest.$ac_objext \
15923 if ${ac_cv_search_sched_yield+:} false; then :
15927 if ${ac_cv_search_sched_yield+:} false; then :
15930 ac_cv_search_sched_yield=no
15932 rm conftest.$ac_ext
15933 LIBS=$ac_func_search_save_LIBS
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
15936 $as_echo "$ac_cv_search_sched_yield" >&6; }
15937 ac_res=$ac_cv_search_sched_yield
15938 if test "$ac_res" != no; then :
15939 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15941 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
15948 if test "$os_win32" = no; then
15952 ac_cpp='$CPP $CPPFLAGS'
15953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15959 # We used to check for pthread.h first, but this fails if pthread.h
15960 # requires special compiler flags (e.g. on True64 or Sequent).
15961 # It gets checked for in the link test anyway.
15963 # First of all, check if the user has set any of the PTHREAD_LIBS,
15964 # etcetera environment variables, and if threads linking works using
15966 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15967 save_CFLAGS="$CFLAGS"
15968 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15970 LIBS="$PTHREAD_LIBS $LIBS"
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15972 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15974 /* end confdefs.h. */
15976 /* Override any GCC internal prototype to avoid an error.
15977 Use char because int might match the return type of a GCC
15978 builtin and then its argument prototype would still apply. */
15982 char pthread_join ();
15986 return pthread_join ();
15991 if ac_fn_c_try_link "$LINENO"; then :
15994 rm -f core conftest.err conftest.$ac_objext \
15995 conftest$ac_exeext conftest.$ac_ext
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15997 $as_echo "$ax_pthread_ok" >&6; }
15998 if test x"$ax_pthread_ok" = xno; then
16003 CFLAGS="$save_CFLAGS"
16006 # We must check for the threads library under a number of different
16007 # names; the ordering is very important because some systems
16008 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16009 # libraries is broken (non-POSIX).
16011 # Create a list of thread flags to try. Items starting with a "-" are
16012 # C compiler flags, and other items are library names, except for "none"
16013 # which indicates that we try without any flags at all, and "pthread-config"
16014 # which is a program returning the flags for the Pth emulation library.
16016 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16018 # The ordering *is* (sometimes) important. Some notes on the
16019 # individual items follow:
16021 # pthreads: AIX (must check this before -lpthread)
16022 # none: in case threads are in libc; should be tried before -Kthread and
16023 # other compiler flags to prevent continual compiler warnings
16024 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16025 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16026 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16027 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16028 # -pthreads: Solaris/gcc
16029 # -mthreads: Mingw32/gcc, Lynx/gcc
16030 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16031 # doesn't hurt to check since this sometimes defines pthreads too;
16032 # also defines -D_REENTRANT)
16033 # ... -mt is also the pthreads flag for HP/aCC
16034 # pthread: Linux, etcetera
16035 # --thread-safe: KAI C++
16036 # pthread-config: use pthread-config program (for GNU Pth library)
16041 # On Solaris (at least, for some versions), libc contains stubbed
16042 # (non-functional) versions of the pthreads routines, so link-based
16043 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
16044 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16045 # a function called by this macro, so we could check for that, but
16046 # who knows whether they'll stub that too in a future libc.) So,
16047 # we'll just look for -pthreads and -lpthread first:
16049 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16053 ax_pthread_flags="-pthread $ax_pthread_flags"
16056 # use libc stubs, don't link against libpthread, to allow
16058 ax_pthread_flags=""
16062 # Clang doesn't consider unrecognized options an error unless we specify
16063 # -Werror. We throw in some extra Clang-specific options to ensure that
16064 # this doesn't happen for GCC, which also accepts -Werror.
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
16067 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
16068 save_CFLAGS="$CFLAGS"
16069 ax_pthread_extra_flags="-Werror"
16070 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
16071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16072 /* end confdefs.h. */
16082 if ac_fn_c_try_compile "$LINENO"; then :
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16084 $as_echo "yes" >&6; }
16086 ax_pthread_extra_flags=
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16088 $as_echo "no" >&6; }
16090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16091 CFLAGS="$save_CFLAGS"
16093 if test x"$ax_pthread_ok" = xno; then
16094 for flag in $ax_pthread_flags; do
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16099 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16104 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16105 PTHREAD_CFLAGS="$flag"
16109 # Extract the first word of "pthread-config", so it can be a program name with args.
16110 set dummy pthread-config; ac_word=$2
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16112 $as_echo_n "checking for $ac_word... " >&6; }
16113 if ${ac_cv_prog_ax_pthread_config+:} false; then :
16114 $as_echo_n "(cached) " >&6
16116 if test -n "$ax_pthread_config"; then
16117 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16120 for as_dir in $PATH
16123 test -z "$as_dir" && as_dir=.
16124 for ac_exec_ext in '' $ac_executable_extensions; do
16125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16126 ac_cv_prog_ax_pthread_config="yes"
16127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16134 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16137 ax_pthread_config=$ac_cv_prog_ax_pthread_config
16138 if test -n "$ax_pthread_config"; then
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16140 $as_echo "$ax_pthread_config" >&6; }
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16143 $as_echo "no" >&6; }
16147 if test x"$ax_pthread_config" = xno; then continue; fi
16148 PTHREAD_CFLAGS="`pthread-config --cflags`"
16149 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16154 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16155 PTHREAD_LIBS="-l$flag"
16160 save_CFLAGS="$CFLAGS"
16161 LIBS="$PTHREAD_LIBS $LIBS"
16162 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
16164 # Check for various functions. We must include pthread.h,
16165 # since some functions may be macros. (On the Sequent, we
16166 # need a special flag -Kthread to make this header compile.)
16167 # We check for pthread_join because it is in -lpthread on IRIX
16168 # while pthread_create is in libc. We check for pthread_attr_init
16169 # due to DEC craziness with -lpthreads. We check for
16170 # pthread_cleanup_push because it is one of the few pthread
16171 # functions on Solaris that doesn't have a non-functional libc stub.
16172 # We try pthread_create on general principles.
16173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16174 /* end confdefs.h. */
16175 #include <pthread.h>
16176 static void routine(void *a) { a = 0; }
16177 static void *start_routine(void *a) { return a; }
16181 pthread_t th; pthread_attr_t attr;
16182 pthread_create(&th, 0, start_routine, 0);
16183 pthread_join(th, 0);
16184 pthread_attr_init(&attr);
16185 pthread_cleanup_push(routine, 0);
16186 pthread_cleanup_pop(0) /* ; */
16191 if ac_fn_c_try_link "$LINENO"; then :
16194 rm -f core conftest.err conftest.$ac_objext \
16195 conftest$ac_exeext conftest.$ac_ext
16198 CFLAGS="$save_CFLAGS"
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16201 $as_echo "$ax_pthread_ok" >&6; }
16202 if test "x$ax_pthread_ok" = xyes; then
16211 # Various other checks:
16212 if test "x$ax_pthread_ok" = xyes; then
16214 LIBS="$PTHREAD_LIBS $LIBS"
16215 save_CFLAGS="$CFLAGS"
16216 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16218 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16220 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16222 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16224 /* end confdefs.h. */
16225 #include <pthread.h>
16229 int attr = $attr; return attr /* ; */
16234 if ac_fn_c_try_link "$LINENO"; then :
16235 attr_name=$attr; break
16237 rm -f core conftest.err conftest.$ac_objext \
16238 conftest$ac_exeext conftest.$ac_ext
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16241 $as_echo "$attr_name" >&6; }
16242 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16244 cat >>confdefs.h <<_ACEOF
16245 #define PTHREAD_CREATE_JOINABLE $attr_name
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16251 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16254 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16255 osf* | hpux*) flag="-D_REENTRANT";;
16257 if test "$GCC" = "yes"; then
16258 flag="-D_REENTRANT"
16260 # TODO: What about Clang on Solaris?
16261 flag="-mt -D_REENTRANT"
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
16266 $as_echo "$flag" >&6; }
16267 if test "x$flag" != xno; then
16268 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16272 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16273 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16274 $as_echo_n "(cached) " >&6
16277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16278 /* end confdefs.h. */
16279 #include <pthread.h>
16283 int i = PTHREAD_PRIO_INHERIT;
16288 if ac_fn_c_try_link "$LINENO"; then :
16289 ax_cv_PTHREAD_PRIO_INHERIT=yes
16291 ax_cv_PTHREAD_PRIO_INHERIT=no
16293 rm -f core conftest.err conftest.$ac_objext \
16294 conftest$ac_exeext conftest.$ac_ext
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16298 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16299 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16301 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16306 CFLAGS="$save_CFLAGS"
16308 # More AIX lossage: compile with *_r variant
16309 if test "x$GCC" != xyes; then
16313 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16314 #handle absolute path differently from PATH based program lookup
16317 if as_fn_executable_p ${CC}_r; then :
16318 PTHREAD_CC="${CC}_r"
16321 for ac_prog in ${CC}_r
16323 # Extract the first word of "$ac_prog", so it can be a program name with args.
16324 set dummy $ac_prog; ac_word=$2
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16326 $as_echo_n "checking for $ac_word... " >&6; }
16327 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16328 $as_echo_n "(cached) " >&6
16330 if test -n "$PTHREAD_CC"; then
16331 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16334 for as_dir in $PATH
16337 test -z "$as_dir" && as_dir=.
16338 for ac_exec_ext in '' $ac_executable_extensions; do
16339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16340 ac_cv_prog_PTHREAD_CC="$ac_prog"
16341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16350 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16351 if test -n "$PTHREAD_CC"; then
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16353 $as_echo "$PTHREAD_CC" >&6; }
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16356 $as_echo "no" >&6; }
16360 test -n "$PTHREAD_CC" && break
16362 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16373 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16379 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16380 if test x"$ax_pthread_ok" = xyes; then
16388 ac_cpp='$CPP $CPPFLAGS'
16389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16395 if $have_pthread; then
16396 LIBS="$PTHREAD_LIBS $LIBS"
16397 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16400 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16403 if $have_pthread; then
16405 HAVE_PTHREAD_FALSE='#'
16407 HAVE_PTHREAD_TRUE='#'
16408 HAVE_PTHREAD_FALSE=
16415 # Let people not build/install docs if they don't have docbook
16418 # Extract the first word of "docbook2html", so it can be a program name with args.
16419 set dummy docbook2html; ac_word=$2
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16421 $as_echo_n "checking for $ac_word... " >&6; }
16422 if ${ac_cv_prog_HASDOCBOOK+:} false; then :
16423 $as_echo_n "(cached) " >&6
16425 if test -n "$HASDOCBOOK"; then
16426 ac_cv_prog_HASDOCBOOK="$HASDOCBOOK" # Let the user override the test.
16428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16429 for as_dir in $PATH
16432 test -z "$as_dir" && as_dir=.
16433 for ac_exec_ext in '' $ac_executable_extensions; do
16434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16435 ac_cv_prog_HASDOCBOOK="yes"
16436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16443 test -z "$ac_cv_prog_HASDOCBOOK" && ac_cv_prog_HASDOCBOOK="no"
16446 HASDOCBOOK=$ac_cv_prog_HASDOCBOOK
16447 if test -n "$HASDOCBOOK"; then
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HASDOCBOOK" >&5
16449 $as_echo "$HASDOCBOOK" >&6; }
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16452 $as_echo "no" >&6; }
16457 if test "x$HASDOCBOOK" = xyes; then
16459 USEDOCBOOK_FALSE='#'
16461 USEDOCBOOK_TRUE='#'
16468 # Check if docs exist or can be created
16470 if test x$HASDOCBOOK = xno; then
16471 if test -f $srcdir/doc/fonts-conf.5; then
16478 # Check whether --enable-docs was given.
16479 if test "${enable_docs+set}" = set; then :
16480 enableval=$enable_docs;
16482 enable_docs=$default_docs
16486 if test "x$enable_docs" = xyes; then
16488 ENABLE_DOCS_FALSE='#'
16490 ENABLE_DOCS_TRUE='#'
16495 if test "x$enable_docs" = xyes; then
16497 cat $srcdir/doc/*.fncs | awk '
16498 /^@TITLE@/ { if (!done) { printf ("%s\n", $2); done = 1; } }
16499 /^@FUNC@/ { if (!done) { printf ("%s\n", $2); done = 1; } }
16500 /^@@/ { done = 0; }' > $tmp
16501 DOCMAN3=`cat $tmp | awk '{ printf ("%s.3 ", $1); }'`
16502 echo DOCMAN3 $DOCMAN3
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16511 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16512 if ${ac_cv_c_bigendian+:} false; then :
16513 $as_echo_n "(cached) " >&6
16515 ac_cv_c_bigendian=unknown
16516 # See if we're dealing with a universal compiler.
16517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16518 /* end confdefs.h. */
16519 #ifndef __APPLE_CC__
16520 not a universal capable compiler
16525 if ac_fn_c_try_compile "$LINENO"; then :
16527 # Check for potential -arch flags. It is not universal unless
16528 # there are at least two -arch flags with different values.
16531 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16532 if test -n "$ac_prev"; then
16534 i?86 | x86_64 | ppc | ppc64)
16535 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16538 ac_cv_c_bigendian=universal
16544 elif test "x$ac_word" = "x-arch"; then
16549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16550 if test $ac_cv_c_bigendian = unknown; then
16551 # See if sys/param.h defines the BYTE_ORDER macro.
16552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16553 /* end confdefs.h. */
16554 #include <sys/types.h>
16555 #include <sys/param.h>
16560 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16561 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16563 bogus endian macros
16570 if ac_fn_c_try_compile "$LINENO"; then :
16571 # It does; now see whether it defined to BIG_ENDIAN or not.
16572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16573 /* end confdefs.h. */
16574 #include <sys/types.h>
16575 #include <sys/param.h>
16580 #if BYTE_ORDER != BIG_ENDIAN
16588 if ac_fn_c_try_compile "$LINENO"; then :
16589 ac_cv_c_bigendian=yes
16591 ac_cv_c_bigendian=no
16593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16597 if test $ac_cv_c_bigendian = unknown; then
16598 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16600 /* end confdefs.h. */
16601 #include <limits.h>
16606 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16607 bogus endian macros
16614 if ac_fn_c_try_compile "$LINENO"; then :
16615 # It does; now see whether it defined to _BIG_ENDIAN or not.
16616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16617 /* end confdefs.h. */
16618 #include <limits.h>
16623 #ifndef _BIG_ENDIAN
16631 if ac_fn_c_try_compile "$LINENO"; then :
16632 ac_cv_c_bigendian=yes
16634 ac_cv_c_bigendian=no
16636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16640 if test $ac_cv_c_bigendian = unknown; then
16641 # Compile a test program.
16642 if test "$cross_compiling" = yes; then :
16643 # Try to guess by grepping values from an object file.
16644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16645 /* end confdefs.h. */
16646 short int ascii_mm[] =
16647 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16648 short int ascii_ii[] =
16649 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16650 int use_ascii (int i) {
16651 return ascii_mm[i] + ascii_ii[i];
16653 short int ebcdic_ii[] =
16654 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16655 short int ebcdic_mm[] =
16656 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16657 int use_ebcdic (int i) {
16658 return ebcdic_mm[i] + ebcdic_ii[i];
16665 return use_ascii (foo) == use_ebcdic (foo);
16670 if ac_fn_c_try_compile "$LINENO"; then :
16671 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16672 ac_cv_c_bigendian=yes
16674 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16675 if test "$ac_cv_c_bigendian" = unknown; then
16676 ac_cv_c_bigendian=no
16678 # finding both strings is unlikely to happen, but who knows?
16679 ac_cv_c_bigendian=unknown
16683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16686 /* end confdefs.h. */
16687 $ac_includes_default
16692 /* Are we little or big endian? From Harbison&Steele. */
16696 char c[sizeof (long int)];
16699 return u.c[sizeof (long int) - 1] == 1;
16705 if ac_fn_c_try_run "$LINENO"; then :
16706 ac_cv_c_bigendian=no
16708 ac_cv_c_bigendian=yes
16710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16711 conftest.$ac_objext conftest.beam conftest.$ac_ext
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16717 $as_echo "$ac_cv_c_bigendian" >&6; }
16718 case $ac_cv_c_bigendian in #(
16720 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16726 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16730 as_fn_error $? "unknown endianness
16731 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16734 # The cast to long int works around a bug in the HP C Compiler
16735 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16736 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16737 # This bug is HP SR number 8606223364.
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16739 $as_echo_n "checking size of void *... " >&6; }
16740 if ${ac_cv_sizeof_void_p+:} false; then :
16741 $as_echo_n "(cached) " >&6
16743 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16746 if test "$ac_cv_type_void_p" = yes; then
16747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16749 as_fn_error 77 "cannot compute sizeof (void *)
16750 See \`config.log' for more details" "$LINENO" 5; }
16752 ac_cv_sizeof_void_p=0
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16758 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16762 cat >>confdefs.h <<_ACEOF
16763 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16767 # The cast to long int works around a bug in the HP C Compiler,
16768 # see AC_CHECK_SIZEOF for more information.
16769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
16770 $as_echo_n "checking alignment of double... " >&6; }
16771 if ${ac_cv_alignof_double+:} false; then :
16772 $as_echo_n "(cached) " >&6
16774 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
16776 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16778 typedef struct { char x; double y; } ac__type_alignof_;"; then :
16781 if test "$ac_cv_type_double" = yes; then
16782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16784 as_fn_error 77 "cannot compute alignment of double
16785 See \`config.log' for more details" "$LINENO" 5; }
16787 ac_cv_alignof_double=0
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
16793 $as_echo "$ac_cv_alignof_double" >&6; }
16797 cat >>confdefs.h <<_ACEOF
16798 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
16802 # The cast to long int works around a bug in the HP C Compiler,
16803 # see AC_CHECK_SIZEOF for more information.
16804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of void *" >&5
16805 $as_echo_n "checking alignment of void *... " >&6; }
16806 if ${ac_cv_alignof_void_p+:} false; then :
16807 $as_echo_n "(cached) " >&6
16809 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_void_p" "$ac_includes_default
16811 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16813 typedef struct { char x; void * y; } ac__type_alignof_;"; then :
16816 if test "$ac_cv_type_void_p" = yes; then
16817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16819 as_fn_error 77 "cannot compute alignment of void *
16820 See \`config.log' for more details" "$LINENO" 5; }
16822 ac_cv_alignof_void_p=0
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_void_p" >&5
16828 $as_echo "$ac_cv_alignof_void_p" >&6; }
16832 cat >>confdefs.h <<_ACEOF
16833 #define ALIGNOF_VOID_P $ac_cv_alignof_void_p
16843 ac_config_files="$ac_config_files Makefile fontconfig/Makefile fc-lang/Makefile fc-glyphname/Makefile fc-blanks/Makefile fc-case/Makefile src/Makefile conf.d/Makefile fc-cache/Makefile fc-cat/Makefile fc-list/Makefile fc-match/Makefile fc-pattern/Makefile fc-query/Makefile fc-scan/Makefile fc-validate/Makefile doc/Makefile doc/version.sgml test/Makefile fontconfig.spec fontconfig.pc fontconfig-zip"
16845 cat >confcache <<\_ACEOF
16846 # This file is a shell script that caches the results of configure
16847 # tests run on this system so they can be shared between configure
16848 # scripts and configure runs, see configure's option --config-cache.
16849 # It is not useful on other systems. If it contains results you don't
16850 # want to keep, you may remove or edit it.
16852 # config.status only pays attention to the cache file if you give it
16853 # the --recheck option to rerun configure.
16855 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16856 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16857 # following values.
16861 # The following way of writing the cache mishandles newlines in values,
16862 # but we know of no workaround that is simple, portable, and efficient.
16863 # So, we kill variables containing newlines.
16864 # Ultrix sh set writes to stderr and can't be redirected directly,
16865 # and sets the high bit in the cache file unless we assign to the vars.
16867 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16868 eval ac_val=\$$ac_var
16872 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16873 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16876 _ | IFS | as_nl) ;; #(
16877 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16878 *) { eval $ac_var=; unset $ac_var;} ;;
16884 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16885 *${as_nl}ac_space=\ *)
16886 # `set' does not quote correctly, so add quotes: double-quote
16887 # substitution turns \\\\ into \\, and sed turns \\ into \.
16890 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16893 # `set' quotes correctly as required by POSIX, so do not add quotes.
16894 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16903 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16905 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16907 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16908 if test -w "$cache_file"; then
16909 if test "x$cache_file" != "x/dev/null"; then
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16911 $as_echo "$as_me: updating cache $cache_file" >&6;}
16912 if test ! -f "$cache_file" || test -h "$cache_file"; then
16913 cat confcache >"$cache_file"
16915 case $cache_file in #(
16917 mv -f confcache "$cache_file"$$ &&
16918 mv -f "$cache_file"$$ "$cache_file" ;; #(
16920 mv -f confcache "$cache_file" ;;
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16926 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16931 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16932 # Let make expand exec_prefix.
16933 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16935 DEFS=-DHAVE_CONFIG_H
16940 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16941 # 1. Remove the extension, and $U if already installed.
16942 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16943 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16944 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16945 # will be set to the directory where LIBOBJS objects are built.
16946 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16947 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16949 LIBOBJS=$ac_libobjs
16951 LTLIBOBJS=$ac_ltlibobjs
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16955 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16956 if test -n "$am_sleep_pid"; then
16957 # Hide warnings about reused PIDs.
16958 wait $am_sleep_pid 2>/dev/null
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16961 $as_echo "done" >&6; }
16962 if test -n "$EXEEXT"; then
16964 am__EXEEXT_FALSE='#'
16966 am__EXEEXT_TRUE='#'
16970 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16971 as_fn_error $? "conditional \"AMDEP\" was never defined.
16972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16974 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16975 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16978 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
16979 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
16980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16982 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
16983 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
16984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16986 if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
16987 as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined.
16988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16990 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
16991 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
16992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16994 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
16995 as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined.
16996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16998 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
16999 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
17000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17002 if test -z "${USEDOCBOOK_TRUE}" && test -z "${USEDOCBOOK_FALSE}"; then
17003 as_fn_error $? "conditional \"USEDOCBOOK\" was never defined.
17004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17006 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
17007 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
17008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17012 : "${CONFIG_STATUS=./config.status}"
17014 ac_clean_files_save=$ac_clean_files
17015 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17017 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17019 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17021 # Generated by $as_me.
17022 # Run this file to recreate the current configuration.
17023 # Compiler output produced by configure, useful for debugging
17024 # configure, is in config.log if it exists.
17027 ac_cs_recheck=false
17030 SHELL=\${CONFIG_SHELL-$SHELL}
17033 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17034 ## -------------------- ##
17035 ## M4sh Initialization. ##
17036 ## -------------------- ##
17038 # Be more Bourne compatible
17039 DUALCASE=1; export DUALCASE # for MKS sh
17040 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17043 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17044 # is contrary to our usage. Disable this feature.
17045 alias -g '${1+"$@"}'='"$@"'
17046 setopt NO_GLOB_SUBST
17048 case `(set -o) 2>/dev/null` in #(
17060 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17061 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17062 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17063 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17064 # Prefer a ksh shell builtin over an external printf program on Solaris,
17065 # but without wasting forks for bash or zsh.
17066 if test -z "$BASH_VERSION$ZSH_VERSION" \
17067 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17068 as_echo='print -r --'
17069 as_echo_n='print -rn --'
17070 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17071 as_echo='printf %s\n'
17072 as_echo_n='printf %s'
17074 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17075 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17076 as_echo_n='/usr/ucb/echo -n'
17078 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17079 as_echo_n_body='eval
17083 expr "X$arg" : "X\\(.*\\)$as_nl";
17084 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17086 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17088 export as_echo_n_body
17089 as_echo_n='sh -c $as_echo_n_body as_echo'
17091 export as_echo_body
17092 as_echo='sh -c $as_echo_body as_echo'
17095 # The user is always right.
17096 if test "${PATH_SEPARATOR+set}" != set; then
17098 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17099 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17106 # We need space, tab and new line, in precisely that order. Quoting is
17107 # there to prevent editors from complaining about space-tab.
17108 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17109 # splitting by setting IFS to empty value.)
17112 # Find who we are. Look in the path if we contain no directory separator.
17115 *[\\/]* ) as_myself=$0 ;;
17116 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17117 for as_dir in $PATH
17120 test -z "$as_dir" && as_dir=.
17121 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17127 # We did not find ourselves, most probably we were run as `sh COMMAND'
17128 # in which case we are not to be found in the path.
17129 if test "x$as_myself" = x; then
17132 if test ! -f "$as_myself"; then
17133 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17137 # Unset variables that we do not need and which cause bugs (e.g. in
17138 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17139 # suppresses any "Segmentation fault" message there. '((' could
17140 # trigger a bug in pdksh 5.2.14.
17141 for as_var in BASH_ENV ENV MAIL MAILPATH
17142 do eval test x\${$as_var+set} = xset \
17143 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17156 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17159 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17160 # ----------------------------------------
17161 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17162 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17163 # script with STATUS, using 1 if that was 0.
17166 as_status=$1; test $as_status -eq 0 && as_status=1
17168 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17169 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17171 $as_echo "$as_me: error: $2" >&2
17172 as_fn_exit $as_status
17176 # as_fn_set_status STATUS
17177 # -----------------------
17178 # Set $? to STATUS, without forking.
17179 as_fn_set_status ()
17182 } # as_fn_set_status
17184 # as_fn_exit STATUS
17185 # -----------------
17186 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17190 as_fn_set_status $1
17196 # Portably unset VAR.
17199 { eval $1=; unset $1;}
17201 as_unset=as_fn_unset
17202 # as_fn_append VAR VALUE
17203 # ----------------------
17204 # Append the text in VALUE to the end of the definition contained in VAR. Take
17205 # advantage of any shell optimizations that allow amortized linear growth over
17206 # repeated appends, instead of the typical quadratic growth present in naive
17208 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17209 eval 'as_fn_append ()
17220 # as_fn_arith ARG...
17221 # ------------------
17222 # Perform arithmetic evaluation on the ARGs, and store the result in the
17223 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17224 # must be portable across $(()) and expr.
17225 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17226 eval 'as_fn_arith ()
17233 as_val=`expr "$@" || test $? -eq 1`
17238 if expr a : '\(a\)' >/dev/null 2>&1 &&
17239 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17245 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17246 as_basename=basename
17251 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17257 as_me=`$as_basename -- "$0" ||
17258 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17259 X"$0" : 'X\(//\)$' \| \
17260 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17262 sed '/^.*\/\([^/][^/]*\)\/*$/{
17276 # Avoid depending upon Character Ranges.
17277 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17278 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17279 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17280 as_cr_digits='0123456789'
17281 as_cr_alnum=$as_cr_Letters$as_cr_digits
17283 ECHO_C= ECHO_N= ECHO_T=
17284 case `echo -n x` in #(((((
17286 case `echo 'xy\c'` in
17287 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17289 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17296 rm -f conf$$ conf$$.exe conf$$.file
17297 if test -d conf$$.dir; then
17298 rm -f conf$$.dir/conf$$.file
17301 mkdir conf$$.dir 2>/dev/null
17303 if (echo >conf$$.file) 2>/dev/null; then
17304 if ln -s conf$$.file conf$$ 2>/dev/null; then
17306 # ... but there are two gotchas:
17307 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17308 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17309 # In both cases, we have to default to `cp -pR'.
17310 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17312 elif ln conf$$.file conf$$ 2>/dev/null; then
17320 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17321 rmdir conf$$.dir 2>/dev/null
17326 # Create "$as_dir" as a directory, including parents if necessary.
17331 -*) as_dir=./$as_dir;;
17333 test -d "$as_dir" || eval $as_mkdir_p || {
17337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17338 *) as_qdir=$as_dir;;
17340 as_dirs="'$as_qdir' $as_dirs"
17341 as_dir=`$as_dirname -- "$as_dir" ||
17342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17343 X"$as_dir" : 'X\(//\)[^/]' \| \
17344 X"$as_dir" : 'X\(//\)$' \| \
17345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17346 $as_echo X"$as_dir" |
17347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17351 /^X\(\/\/\)[^/].*/{
17364 test -d "$as_dir" && break
17366 test -z "$as_dirs" || eval "mkdir $as_dirs"
17367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17371 if mkdir -p . 2>/dev/null; then
17372 as_mkdir_p='mkdir -p "$as_dir"'
17374 test -d ./-p && rmdir ./-p
17379 # as_fn_executable_p FILE
17380 # -----------------------
17381 # Test if FILE is an executable regular file.
17382 as_fn_executable_p ()
17384 test -f "$1" && test -x "$1"
17385 } # as_fn_executable_p
17386 as_test_x='test -x'
17387 as_executable_p=as_fn_executable_p
17389 # Sed expression to map a string onto a valid CPP name.
17390 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17392 # Sed expression to map a string onto a valid variable name.
17393 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17397 ## ----------------------------------- ##
17398 ## Main body of $CONFIG_STATUS script. ##
17399 ## ----------------------------------- ##
17401 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17404 # Save the log message, to keep $0 and so on meaningful, and to
17405 # report actual input values of CONFIG_FILES etc. instead of their
17406 # values after options handling.
17408 This file was extended by fontconfig $as_me 2.12.1, which was
17409 generated by GNU Autoconf 2.69. Invocation command line was
17411 CONFIG_FILES = $CONFIG_FILES
17412 CONFIG_HEADERS = $CONFIG_HEADERS
17413 CONFIG_LINKS = $CONFIG_LINKS
17414 CONFIG_COMMANDS = $CONFIG_COMMANDS
17417 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17422 case $ac_config_files in *"
17423 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17426 case $ac_config_headers in *"
17427 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17432 # Files that config.status was made for.
17433 config_files="$ac_config_files"
17434 config_headers="$ac_config_headers"
17435 config_commands="$ac_config_commands"
17439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17441 \`$as_me' instantiates files and other configuration actions
17442 from templates according to the current configuration. Unless the files
17443 and actions are specified as TAGs, all are instantiated by default.
17445 Usage: $0 [OPTION]... [TAG]...
17447 -h, --help print this help, then exit
17448 -V, --version print version number and configuration settings, then exit
17449 --config print configuration, then exit
17450 -q, --quiet, --silent
17451 do not print progress messages
17452 -d, --debug don't remove temporary files
17453 --recheck update $as_me by reconfiguring in the same conditions
17454 --file=FILE[:TEMPLATE]
17455 instantiate the configuration file FILE
17456 --header=FILE[:TEMPLATE]
17457 instantiate the configuration header FILE
17459 Configuration files:
17462 Configuration headers:
17465 Configuration commands:
17468 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig>."
17471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17472 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17474 fontconfig config.status 2.12.1
17475 configured by $0, generated by GNU Autoconf 2.69,
17476 with options \\"\$ac_cs_config\\"
17478 Copyright (C) 2012 Free Software Foundation, Inc.
17479 This config.status script is free software; the Free Software Foundation
17480 gives unlimited permission to copy, distribute and modify it."
17487 test -n "\$AWK" || AWK=awk
17490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17491 # The default lists apply if the user does not specify any file.
17497 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17498 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17502 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17514 # Handling of the options.
17515 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17517 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17518 $as_echo "$ac_cs_version"; exit ;;
17519 --config | --confi | --conf | --con | --co | --c )
17520 $as_echo "$ac_cs_config"; exit ;;
17521 --debug | --debu | --deb | --de | --d | -d )
17523 --file | --fil | --fi | --f )
17526 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17527 '') as_fn_error $? "missing file argument" ;;
17529 as_fn_append CONFIG_FILES " '$ac_optarg'"
17530 ac_need_defaults=false;;
17531 --header | --heade | --head | --hea )
17534 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17536 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17537 ac_need_defaults=false;;
17539 # Conflict between --help and --header
17540 as_fn_error $? "ambiguous option: \`$1'
17541 Try \`$0 --help' for more information.";;
17542 --help | --hel | -h )
17543 $as_echo "$ac_cs_usage"; exit ;;
17544 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17545 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17548 # This is an error.
17549 -*) as_fn_error $? "unrecognized option: \`$1'
17550 Try \`$0 --help' for more information." ;;
17552 *) as_fn_append ac_config_targets " $1"
17553 ac_need_defaults=false ;;
17559 ac_configure_extra_args=
17561 if $ac_cs_silent; then
17563 ac_configure_extra_args="$ac_configure_extra_args --silent"
17567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17568 if \$ac_cs_recheck; then
17569 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17571 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17572 CONFIG_SHELL='$SHELL'
17573 export CONFIG_SHELL
17578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17582 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17583 ## Running $as_me. ##
17589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17593 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17596 # The HP-UX ksh and POSIX shell print the target directory to stdout
17597 # if CDPATH is set.
17598 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17600 sed_quote_subst='$sed_quote_subst'
17601 double_quote_subst='$double_quote_subst'
17602 delay_variable_subst='$delay_variable_subst'
17603 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17604 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17605 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17606 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17607 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17608 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17609 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17610 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17611 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17612 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17613 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17614 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17615 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17616 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17617 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17618 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17619 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17620 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17621 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17622 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17623 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17624 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17625 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17626 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17627 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17628 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17629 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17630 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17631 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17632 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17633 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17634 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17635 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17636 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17637 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17638 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17639 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17640 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17641 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17642 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17643 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17644 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17645 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17646 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17647 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17648 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17649 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17650 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17651 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17652 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17653 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17654 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17655 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17656 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17657 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17658 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17659 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17660 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17661 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17662 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"`'
17663 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17664 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17665 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17666 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17667 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17668 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17669 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17670 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17671 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17672 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17673 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17674 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17675 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17676 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17677 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17678 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17679 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17680 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17681 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17682 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17683 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17684 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17685 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17686 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17687 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17688 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17689 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17690 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17691 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17692 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17693 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17694 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17695 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17696 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17697 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17698 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17699 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17700 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17701 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17702 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17703 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17704 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17705 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17706 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17707 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17708 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17709 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17710 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17711 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17712 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17713 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17714 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17715 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17716 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17717 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17718 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17719 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17720 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17721 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17722 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17723 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17724 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17725 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17726 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17727 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17728 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17729 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17730 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17731 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17732 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17733 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17734 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17735 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17736 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17737 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17738 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17741 LTCFLAGS='$LTCFLAGS'
17742 compiler='$compiler_DEFAULT'
17744 # A function that is used when there is no print builtin or printf.
17745 func_fallback_echo ()
17747 eval 'cat <<_LTECHO_EOF
17752 # Quote evaled strings.
17769 deplibs_check_method \
17773 sharedlib_from_linklib_cmd \
17776 archiver_list_spec \
17782 lt_cv_sys_global_symbol_pipe \
17783 lt_cv_sys_global_symbol_to_cdecl \
17784 lt_cv_sys_global_symbol_to_import \
17785 lt_cv_sys_global_symbol_to_c_name_address \
17786 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17787 lt_cv_nm_interface \
17788 nm_file_list_spec \
17789 lt_cv_truncate_bin \
17790 lt_prog_compiler_no_builtin_flag \
17791 lt_prog_compiler_pic \
17792 lt_prog_compiler_wl \
17793 lt_prog_compiler_static \
17794 lt_cv_prog_compiler_c_o \
17803 export_dynamic_flag_spec \
17804 whole_archive_flag_spec \
17805 compiler_needs_object \
17807 allow_undefined_flag \
17808 no_undefined_flag \
17809 hardcode_libdir_flag_spec \
17810 hardcode_libdir_separator \
17814 variables_saved_for_relink \
17816 library_names_spec \
17818 install_override_mode \
17822 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17823 *[\\\\\\\`\\"\\\$]*)
17824 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17827 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17832 # Double-quote double-evaled strings.
17833 for var in reload_cmds \
17834 old_postinstall_cmds \
17835 old_postuninstall_cmds \
17837 extract_expsyms_cmds \
17838 old_archive_from_new_cmds \
17839 old_archive_from_expsyms_cmds \
17841 archive_expsym_cmds \
17843 module_expsym_cmds \
17844 export_symbols_cmds \
17848 postuninstall_cmds \
17850 sys_lib_search_path_spec \
17851 configure_time_dlsearch_path \
17852 configure_time_lt_sys_library_path; do
17853 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17854 *[\\\\\\\`\\"\\\$]*)
17855 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17858 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17863 ac_aux_dir='$ac_aux_dir'
17865 # See if we are running on zsh, and set the options that allow our
17866 # commands through without removal of \ escapes INIT.
17867 if test -n "\${ZSH_VERSION+set}"; then
17868 setopt NO_GLOB_SUBST
17879 # variables for create stdint.h replacement
17882 ac_stdint_h="$ac_stdint_h"
17883 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
17884 ac_cv_stdint_message="$ac_cv_stdint_message"
17885 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
17886 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
17887 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
17888 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
17889 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17890 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17891 ac_cv_char_data_model="$ac_cv_char_data_model"
17892 ac_cv_long_data_model="$ac_cv_long_data_model"
17893 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17894 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17895 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
17900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17902 # Handling of arguments.
17903 for ac_config_target in $ac_config_targets
17905 case $ac_config_target in
17906 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17907 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17908 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17909 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
17910 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17911 "fontconfig/Makefile") CONFIG_FILES="$CONFIG_FILES fontconfig/Makefile" ;;
17912 "fc-lang/Makefile") CONFIG_FILES="$CONFIG_FILES fc-lang/Makefile" ;;
17913 "fc-glyphname/Makefile") CONFIG_FILES="$CONFIG_FILES fc-glyphname/Makefile" ;;
17914 "fc-blanks/Makefile") CONFIG_FILES="$CONFIG_FILES fc-blanks/Makefile" ;;
17915 "fc-case/Makefile") CONFIG_FILES="$CONFIG_FILES fc-case/Makefile" ;;
17916 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17917 "conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES conf.d/Makefile" ;;
17918 "fc-cache/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cache/Makefile" ;;
17919 "fc-cat/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cat/Makefile" ;;
17920 "fc-list/Makefile") CONFIG_FILES="$CONFIG_FILES fc-list/Makefile" ;;
17921 "fc-match/Makefile") CONFIG_FILES="$CONFIG_FILES fc-match/Makefile" ;;
17922 "fc-pattern/Makefile") CONFIG_FILES="$CONFIG_FILES fc-pattern/Makefile" ;;
17923 "fc-query/Makefile") CONFIG_FILES="$CONFIG_FILES fc-query/Makefile" ;;
17924 "fc-scan/Makefile") CONFIG_FILES="$CONFIG_FILES fc-scan/Makefile" ;;
17925 "fc-validate/Makefile") CONFIG_FILES="$CONFIG_FILES fc-validate/Makefile" ;;
17926 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17927 "doc/version.sgml") CONFIG_FILES="$CONFIG_FILES doc/version.sgml" ;;
17928 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
17929 "fontconfig.spec") CONFIG_FILES="$CONFIG_FILES fontconfig.spec" ;;
17930 "fontconfig.pc") CONFIG_FILES="$CONFIG_FILES fontconfig.pc" ;;
17931 "fontconfig-zip") CONFIG_FILES="$CONFIG_FILES fontconfig-zip" ;;
17933 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17938 # If the user did not use the arguments to specify the items to instantiate,
17939 # then the envvar interface is used. Set only those that are not.
17940 # We use the long form for the default assignment because of an extremely
17941 # bizarre bug on SunOS 4.1.3.
17942 if $ac_need_defaults; then
17943 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17944 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17945 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17948 # Have a temporary directory for convenience. Make it in the build tree
17949 # simply because there is no reason against having it here, and in addition,
17950 # creating and moving files from /tmp can sometimes cause problems.
17951 # Hook for its removal unless debugging.
17952 # Note that there is a small window in which the directory will not be cleaned:
17953 # after its creation but before its name has been assigned to `$tmp'.
17957 trap 'exit_status=$?
17958 : "${ac_tmp:=$tmp}"
17959 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17961 trap 'as_fn_exit 1' 1 2 13 15
17963 # Create a (secure) tmp directory for tmp files.
17966 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17970 tmp=./conf$$-$RANDOM
17971 (umask 077 && mkdir "$tmp")
17972 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17975 # Set up the scripts for CONFIG_FILES section.
17976 # No need to generate them if there are no CONFIG_FILES.
17977 # This happens for instance with `./config.status config.h'.
17978 if test -n "$CONFIG_FILES"; then
17981 ac_cr=`echo X | tr X '\015'`
17982 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17983 # But we know of no other shell where ac_cr would be empty at this
17984 # point, so we can use a bashism as a fallback.
17985 if test "x$ac_cr" = x; then
17986 eval ac_cr=\$\'\\r\'
17988 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17989 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17992 ac_cs_awk_cr=$ac_cr
17995 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18000 echo "cat >conf$$subs.awk <<_ACEOF" &&
18001 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18003 } >conf$$subs.sh ||
18004 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18005 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18007 for ac_last_try in false false false false false :; do
18008 . ./conf$$subs.sh ||
18009 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18011 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18012 if test $ac_delim_n = $ac_delim_num; then
18014 elif $ac_last_try; then
18015 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18017 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18020 rm -f conf$$subs.sh
18022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18023 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18027 s/^/S["/; s/!.*/"]=/
18037 s/\(.\{148\}\)..*/\1/
18039 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18044 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18051 s/\(.\{148\}\)..*/\1/
18053 s/["\\]/\\&/g; s/^/"/; s/$/"/
18057 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18062 ' <conf$$subs.awk | sed '
18067 ' >>$CONFIG_STATUS || ac_write_fail=1
18068 rm -f conf$$subs.awk
18069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18071 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18072 for (key in S) S_is_set[key] = 1
18078 nfields = split(line, field, "@")
18080 len = length(field[1])
18081 for (i = 2; i < nfields; i++) {
18083 keylen = length(key)
18084 if (S_is_set[key]) {
18086 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18087 len += length(value) + length(field[++i])
18098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18099 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18100 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18103 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18104 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18107 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18108 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18109 # trailing colons and then remove the whole line if VPATH becomes empty
18110 # (actually we leave an empty line to preserve line numbers).
18111 if test "x$srcdir" = x.; then
18112 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18131 fi # test -n "$CONFIG_FILES"
18133 # Set up the scripts for CONFIG_HEADERS section.
18134 # No need to generate them if there are no CONFIG_HEADERS.
18135 # This happens for instance with `./config.status Makefile'.
18136 if test -n "$CONFIG_HEADERS"; then
18137 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18141 # Transform confdefs.h into an awk script `defines.awk', embedded as
18142 # here-document in config.status, that substitutes the proper values into
18143 # config.h.in to produce config.h.
18145 # Create a delimiter string that does not exist in confdefs.h, to ease
18146 # handling of long lines.
18148 for ac_last_try in false false :; do
18149 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18150 if test -z "$ac_tt"; then
18152 elif $ac_last_try; then
18153 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18155 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18159 # For the awk script, D is an array of macro values keyed by name,
18160 # likewise P contains macro parameters if any. Preserve backslash
18161 # newline sequences.
18163 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18165 s/.\{148\}/&'"$ac_delim"'/g
18168 s/^[ ]*#[ ]*define[ ][ ]*/ /
18175 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18177 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18181 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18182 D["\1"]=" \3\\\\\\n"\\/p
18184 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18189 s/.\{148\}/&'"$ac_delim"'/g
18194 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18197 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18199 ' <confdefs.h | sed '
18200 s/'"$ac_delim"'/"\\\
18201 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18204 for (key in D) D_is_set[key] = 1
18207 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18209 split(line, arg, " ")
18210 if (arg[1] == "#") {
18214 defundef = substr(arg[1], 2)
18217 split(mac1, mac2, "(") #)
18219 prefix = substr(line, 1, index(line, defundef) - 1)
18220 if (D_is_set[macro]) {
18221 # Preserve the white space surrounding the "#".
18222 print prefix "define", macro P[macro] D[macro]
18225 # Replace #undef with comments. This is necessary, for example,
18226 # in the case of _POSIX_SOURCE, which is predefined and required
18227 # on some systems where configure will not decide to define it.
18228 if (defundef == "undef") {
18229 print "/*", prefix defundef, macro, "*/"
18237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18238 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18239 fi # test -n "$CONFIG_HEADERS"
18242 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18247 :[FHLC]) ac_mode=$ac_tag; continue;;
18249 case $ac_mode$ac_tag in
18251 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18252 :[FH]-) ac_tag=-:-;;
18253 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18270 -) ac_f="$ac_tmp/stdin";;
18271 *) # Look for the file first in the build tree, then in the source tree
18272 # (if the path is not absolute). The absolute path cannot be DOS-style,
18273 # because $ac_f cannot contain `:'.
18277 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18279 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18281 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18282 as_fn_append ac_file_inputs " '$ac_f'"
18285 # Let's still pretend it is `configure' which instantiates (i.e., don't
18286 # use $as_me), people would be surprised to read:
18287 # /* config.h. Generated by config.status. */
18288 configure_input='Generated from '`
18289 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18291 if test x"$ac_file" != x-; then
18292 configure_input="$ac_file. $configure_input"
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18294 $as_echo "$as_me: creating $ac_file" >&6;}
18296 # Neutralize special characters interpreted by sed in replacement strings.
18297 case $configure_input in #(
18298 *\&* | *\|* | *\\* )
18299 ac_sed_conf_input=`$as_echo "$configure_input" |
18300 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18301 *) ac_sed_conf_input=$configure_input;;
18305 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18306 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18311 ac_dir=`$as_dirname -- "$ac_file" ||
18312 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18313 X"$ac_file" : 'X\(//\)[^/]' \| \
18314 X"$ac_file" : 'X\(//\)$' \| \
18315 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18316 $as_echo X"$ac_file" |
18317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18321 /^X\(\/\/\)[^/].*/{
18334 as_dir="$ac_dir"; as_fn_mkdir_p
18338 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18340 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18341 # A ".." for each directory in $ac_dir_suffix.
18342 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18343 case $ac_top_builddir_sub in
18344 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18345 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18348 ac_abs_top_builddir=$ac_pwd
18349 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18350 # for backward compatibility:
18351 ac_top_builddir=$ac_top_build_prefix
18354 .) # We are building in place.
18356 ac_top_srcdir=$ac_top_builddir_sub
18357 ac_abs_top_srcdir=$ac_pwd ;;
18358 [\\/]* | ?:[\\/]* ) # Absolute name.
18359 ac_srcdir=$srcdir$ac_dir_suffix;
18360 ac_top_srcdir=$srcdir
18361 ac_abs_top_srcdir=$srcdir ;;
18362 *) # Relative name.
18363 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18364 ac_top_srcdir=$ac_top_build_prefix$srcdir
18365 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18367 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18377 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18378 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18380 ac_MKDIR_P=$MKDIR_P
18382 [\\/$]* | ?:[\\/]* ) ;;
18383 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18388 # If the template does not know about datarootdir, expand it.
18389 # FIXME: This hack should be removed a few years after 2.60.
18390 ac_datarootdir_hack=; ac_datarootdir_seen=
18401 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18402 *datarootdir*) ac_datarootdir_seen=yes;;
18403 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18405 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18408 ac_datarootdir_hack='
18409 s&@datadir@&$datadir&g
18410 s&@docdir@&$docdir&g
18411 s&@infodir@&$infodir&g
18412 s&@localedir@&$localedir&g
18413 s&@mandir@&$mandir&g
18414 s&\\\${datarootdir}&$datarootdir&g' ;;
18418 # Neutralize VPATH when `$srcdir' = `.'.
18419 # Shell code in configure.ac might set extrasub.
18420 # FIXME: do we really want to maintain this feature?
18421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18422 ac_sed_extra="$ac_vpsub
18425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18427 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18428 s|@configure_input@|$ac_sed_conf_input|;t t
18429 s&@top_builddir@&$ac_top_builddir_sub&;t t
18430 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18431 s&@srcdir@&$ac_srcdir&;t t
18432 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18433 s&@top_srcdir@&$ac_top_srcdir&;t t
18434 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18435 s&@builddir@&$ac_builddir&;t t
18436 s&@abs_builddir@&$ac_abs_builddir&;t t
18437 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18438 s&@INSTALL@&$ac_INSTALL&;t t
18439 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18440 $ac_datarootdir_hack
18442 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18443 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18445 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18446 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18447 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18448 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18450 which seems to be undefined. Please make sure it is defined" >&5
18451 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18452 which seems to be undefined. Please make sure it is defined" >&2;}
18454 rm -f "$ac_tmp/stdin"
18456 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18457 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18459 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18465 if test x"$ac_file" != x-; then
18467 $as_echo "/* $configure_input */" \
18468 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18469 } >"$ac_tmp/config.h" \
18470 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18471 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18473 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18476 mv "$ac_tmp/config.h" "$ac_file" \
18477 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18480 $as_echo "/* $configure_input */" \
18481 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18482 || as_fn_error $? "could not create -" "$LINENO" 5
18484 # Compute "$ac_file"'s index in $config_headers.
18487 for _am_header in $config_headers :; do
18488 case $_am_header in
18489 $_am_arg | $_am_arg:* )
18492 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18495 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18496 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18497 X"$_am_arg" : 'X\(//\)[^/]' \| \
18498 X"$_am_arg" : 'X\(//\)$' \| \
18499 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18500 $as_echo X"$_am_arg" |
18501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18505 /^X\(\/\/\)[^/].*/{
18517 s/.*/./; q'`/stamp-h$_am_stamp_count
18520 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18521 $as_echo "$as_me: executing $ac_file commands" >&6;}
18526 case $ac_file$ac_mode in
18527 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18528 # Older Autoconf quotes --file arguments for eval, but not when files
18529 # are listed without --file. Let's play safe and only enable the eval
18530 # if we detect the quoting.
18531 case $CONFIG_FILES in
18532 *\'*) eval set x "$CONFIG_FILES" ;;
18533 *) set x $CONFIG_FILES ;;
18538 # Strip MF so we end up with the name of the file.
18539 mf=`echo "$mf" | sed -e 's/:.*$//'`
18540 # Check whether this is an Automake generated Makefile or not.
18541 # We used to match only the files named 'Makefile.in', but
18542 # some people rename them; so instead we look at the file content.
18543 # Grep'ing the first line is not enough: some people post-process
18544 # each Makefile.in and add a new line on top of each file to say so.
18545 # Grep'ing the whole file is not good either: AIX grep has a line
18546 # limit of 2048, but all sed's we know have understand at least 4000.
18547 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18548 dirpart=`$as_dirname -- "$mf" ||
18549 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18550 X"$mf" : 'X\(//\)[^/]' \| \
18551 X"$mf" : 'X\(//\)$' \| \
18552 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18558 /^X\(\/\/\)[^/].*/{
18574 # Extract the definition of DEPDIR, am__include, and am__quote
18575 # from the Makefile without running 'make'.
18576 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18577 test -z "$DEPDIR" && continue
18578 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18579 test -z "$am__include" && continue
18580 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18581 # Find all dependency output files, they are included files with
18582 # $(DEPDIR) in their names. We invoke sed twice because it is the
18583 # simplest approach to changing $(DEPDIR) to its actual value in the
18585 for file in `sed -n "
18586 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18587 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18588 # Make sure the directory exists.
18589 test -f "$dirpart/$file" && continue
18590 fdir=`$as_dirname -- "$file" ||
18591 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18592 X"$file" : 'X\(//\)[^/]' \| \
18593 X"$file" : 'X\(//\)$' \| \
18594 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18595 $as_echo X"$file" |
18596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18600 /^X\(\/\/\)[^/].*/{
18613 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18614 # echo "creating $dirpart/$file"
18615 echo '# dummy' > "$dirpart/$file"
18622 # See if we are running on zsh, and set the options that allow our
18623 # commands through without removal of \ escapes.
18624 if test -n "${ZSH_VERSION+set}"; then
18625 setopt NO_GLOB_SUBST
18629 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18632 cat <<_LT_EOF >> "$cfgfile"
18634 # Generated automatically by $as_me ($PACKAGE) $VERSION
18635 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18636 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18638 # Provide generalized library-building support services.
18639 # Written by Gordon Matzigkeit, 1996
18641 # Copyright (C) 2014 Free Software Foundation, Inc.
18642 # This is free software; see the source for copying conditions. There is NO
18643 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18645 # GNU Libtool is free software; you can redistribute it and/or modify
18646 # it under the terms of the GNU General Public License as published by
18647 # the Free Software Foundation; either version 2 of of the License, or
18648 # (at your option) any later version.
18650 # As a special exception to the GNU General Public License, if you
18651 # distribute this file as part of a program or library that is built
18652 # using GNU Libtool, you may include this file under the same
18653 # distribution terms that you use for the rest of that program.
18655 # GNU Libtool is distributed in the hope that it will be useful, but
18656 # WITHOUT ANY WARRANTY; without even the implied warranty of
18657 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18658 # GNU General Public License for more details.
18660 # You should have received a copy of the GNU General Public License
18661 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18664 # The names of the tagged configurations supported by this script.
18667 # Configured defaults for sys_lib_dlsearch_path munging.
18668 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18670 # ### BEGIN LIBTOOL CONFIG
18672 # Which release of libtool.m4 was used?
18673 macro_version=$macro_version
18674 macro_revision=$macro_revision
18676 # Whether or not to build static libraries.
18677 build_old_libs=$enable_static
18679 # Assembler program.
18682 # DLL creation program.
18683 DLLTOOL=$lt_DLLTOOL
18685 # Object dumper program.
18686 OBJDUMP=$lt_OBJDUMP
18688 # Whether or not to build shared libraries.
18689 build_libtool_libs=$enable_shared
18691 # What type of objects to build.
18694 # Whether or not to optimize for fast installation.
18695 fast_install=$enable_fast_install
18697 # Shared archive member basename,for filename based shared library versioning on AIX.
18698 shared_archive_member_spec=$shared_archive_member_spec
18700 # Shell to use when invoking shell scripts.
18703 # An echo program that protects backslashes.
18706 # The PATH separator for the build system.
18707 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18710 host_alias=$host_alias
18714 # The build system.
18715 build_alias=$build_alias
18719 # A sed program that does not truncate output.
18722 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18723 Xsed="\$SED -e 1s/^X//"
18725 # A grep program that handles long lines.
18731 # A literal string matcher.
18734 # A BSD- or MS-compatible name lister.
18737 # Whether we need soft or hard links.
18740 # What is the maximum length of a command?
18741 max_cmd_len=$max_cmd_len
18743 # Object file suffix (normally "o").
18746 # Executable file suffix (normally "").
18749 # whether the shell understands "unset".
18752 # turn spaces into newlines.
18755 # turn newlines into spaces.
18758 # convert \$build file names to \$host format.
18759 to_host_file_cmd=$lt_cv_to_host_file_cmd
18761 # convert \$build files to toolchain format.
18762 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18764 # Method to check whether dependent libraries are shared objects.
18765 deplibs_check_method=$lt_deplibs_check_method
18767 # Command to use when deplibs_check_method = "file_magic".
18768 file_magic_cmd=$lt_file_magic_cmd
18770 # How to find potential files when deplibs_check_method = "file_magic".
18771 file_magic_glob=$lt_file_magic_glob
18773 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18774 want_nocaseglob=$lt_want_nocaseglob
18776 # Command to associate shared and link libraries.
18777 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18782 # Flags to create an archive.
18783 AR_FLAGS=$lt_AR_FLAGS
18785 # How to feed a file listing to the archiver.
18786 archiver_list_spec=$lt_archiver_list_spec
18788 # A symbol stripping program.
18791 # Commands used to install an old-style archive.
18793 old_postinstall_cmds=$lt_old_postinstall_cmds
18794 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18796 # Whether to use a lock for old archive extraction.
18797 lock_old_archive_extraction=$lock_old_archive_extraction
18802 # LTCC compiler flags.
18803 LTCFLAGS=$lt_CFLAGS
18805 # Take the output of nm and produce a listing of raw symbols and C names.
18806 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18808 # Transform the output of nm in a proper C declaration.
18809 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18811 # Transform the output of nm into a list of symbols to manually relocate.
18812 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18814 # Transform the output of nm in a C name address pair.
18815 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18817 # Transform the output of nm in a C name address pair when lib prefix is needed.
18818 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18820 # The name lister interface.
18821 nm_interface=$lt_lt_cv_nm_interface
18823 # Specify filename containing input files for \$NM.
18824 nm_file_list_spec=$lt_nm_file_list_spec
18826 # The root where to search for dependent libraries,and where our libraries should be installed.
18827 lt_sysroot=$lt_sysroot
18829 # Command to truncate a binary pipe.
18830 lt_truncate_bin=$lt_lt_cv_truncate_bin
18832 # The name of the directory that contains temporary libtool files.
18835 # Used to examine libraries when file_magic_cmd begins with "file".
18836 MAGIC_CMD=$MAGIC_CMD
18838 # Must we lock files when doing compilation?
18839 need_locks=$lt_need_locks
18842 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18844 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18845 DSYMUTIL=$lt_DSYMUTIL
18847 # Tool to change global to local symbols on Mac OS X.
18850 # Tool to manipulate fat objects and archives on Mac OS X.
18853 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18856 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18857 OTOOL64=$lt_OTOOL64
18859 # Old archive suffix (normally "a").
18862 # Shared library suffix (normally ".so").
18863 shrext_cmds=$lt_shrext_cmds
18865 # The commands to extract the exported symbol list from a shared archive.
18866 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18868 # Variables whose values should be saved in libtool wrapper scripts and
18869 # restored at link time.
18870 variables_saved_for_relink=$lt_variables_saved_for_relink
18872 # Do we need the "lib" prefix for modules?
18873 need_lib_prefix=$need_lib_prefix
18875 # Do we need a version for libraries?
18876 need_version=$need_version
18878 # Library versioning type.
18879 version_type=$version_type
18881 # Shared library runtime path variable.
18882 runpath_var=$runpath_var
18884 # Shared library path variable.
18885 shlibpath_var=$shlibpath_var
18887 # Is shlibpath searched before the hard-coded library search path?
18888 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18890 # Format of library name prefix.
18891 libname_spec=$lt_libname_spec
18893 # List of archive names. First name is the real one, the rest are links.
18894 # The last name is the one that the linker finds with -lNAME
18895 library_names_spec=$lt_library_names_spec
18897 # The coded name of the library, if different from the real name.
18898 soname_spec=$lt_soname_spec
18900 # Permission mode override for installation of shared libraries.
18901 install_override_mode=$lt_install_override_mode
18903 # Command to use after installation of a shared archive.
18904 postinstall_cmds=$lt_postinstall_cmds
18906 # Command to use after uninstallation of a shared archive.
18907 postuninstall_cmds=$lt_postuninstall_cmds
18909 # Commands used to finish a libtool library installation in a directory.
18910 finish_cmds=$lt_finish_cmds
18912 # As "finish_cmds", except a single script fragment to be evaled but
18914 finish_eval=$lt_finish_eval
18916 # Whether we should hardcode library paths into libraries.
18917 hardcode_into_libs=$hardcode_into_libs
18919 # Compile-time system search path for libraries.
18920 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18922 # Detected run-time system search path for libraries.
18923 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18925 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18926 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18928 # Whether dlopen is supported.
18929 dlopen_support=$enable_dlopen
18931 # Whether dlopen of programs is supported.
18932 dlopen_self=$enable_dlopen_self
18934 # Whether dlopen of statically linked programs is supported.
18935 dlopen_self_static=$enable_dlopen_self_static
18937 # Commands to strip libraries.
18938 old_striplib=$lt_old_striplib
18939 striplib=$lt_striplib
18942 # The linker used to build libraries.
18945 # How to create reloadable object files.
18946 reload_flag=$lt_reload_flag
18947 reload_cmds=$lt_reload_cmds
18949 # Commands used to build an old-style archive.
18950 old_archive_cmds=$lt_old_archive_cmds
18952 # A language specific compiler.
18955 # Is the compiler the GNU compiler?
18958 # Compiler flag to turn off builtin functions.
18959 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18961 # Additional compiler flags for building library objects.
18962 pic_flag=$lt_lt_prog_compiler_pic
18964 # How to pass a linker flag through the compiler.
18965 wl=$lt_lt_prog_compiler_wl
18967 # Compiler flag to prevent dynamic linking.
18968 link_static_flag=$lt_lt_prog_compiler_static
18970 # Does compiler simultaneously support -c and -o options?
18971 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18973 # Whether or not to add -lc for building shared libraries.
18974 build_libtool_need_lc=$archive_cmds_need_lc
18976 # Whether or not to disallow shared libs when runtime libs are static.
18977 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18979 # Compiler flag to allow reflexive dlopens.
18980 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18982 # Compiler flag to generate shared objects directly from archives.
18983 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18985 # Whether the compiler copes with passing no objects directly.
18986 compiler_needs_object=$lt_compiler_needs_object
18988 # Create an old-style archive from a shared archive.
18989 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18991 # Create a temporary old-style archive to link instead of a shared archive.
18992 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18994 # Commands used to build a shared archive.
18995 archive_cmds=$lt_archive_cmds
18996 archive_expsym_cmds=$lt_archive_expsym_cmds
18998 # Commands used to build a loadable module if different from building
18999 # a shared archive.
19000 module_cmds=$lt_module_cmds
19001 module_expsym_cmds=$lt_module_expsym_cmds
19003 # Whether we are building with GNU ld or not.
19004 with_gnu_ld=$lt_with_gnu_ld
19006 # Flag that allows shared libraries with undefined symbols to be built.
19007 allow_undefined_flag=$lt_allow_undefined_flag
19009 # Flag that enforces no undefined symbols.
19010 no_undefined_flag=$lt_no_undefined_flag
19012 # Flag to hardcode \$libdir into a binary during linking.
19013 # This must work even if \$libdir does not exist
19014 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19016 # Whether we need a single "-rpath" flag with a separated argument.
19017 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19019 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19020 # DIR into the resulting binary.
19021 hardcode_direct=$hardcode_direct
19023 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19024 # DIR into the resulting binary and the resulting library dependency is
19025 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19026 # library is relocated.
19027 hardcode_direct_absolute=$hardcode_direct_absolute
19029 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19030 # into the resulting binary.
19031 hardcode_minus_L=$hardcode_minus_L
19033 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19034 # into the resulting binary.
19035 hardcode_shlibpath_var=$hardcode_shlibpath_var
19037 # Set to "yes" if building a shared library automatically hardcodes DIR
19038 # into the library and all subsequent libraries and executables linked
19040 hardcode_automatic=$hardcode_automatic
19042 # Set to yes if linker adds runtime paths of dependent libraries
19043 # to runtime path list.
19044 inherit_rpath=$inherit_rpath
19046 # Whether libtool must link a program against all its dependency libraries.
19047 link_all_deplibs=$link_all_deplibs
19049 # Set to "yes" if exported symbols are required.
19050 always_export_symbols=$always_export_symbols
19052 # The commands to list exported symbols.
19053 export_symbols_cmds=$lt_export_symbols_cmds
19055 # Symbols that should not be listed in the preloaded symbols.
19056 exclude_expsyms=$lt_exclude_expsyms
19058 # Symbols that must always be exported.
19059 include_expsyms=$lt_include_expsyms
19061 # Commands necessary for linking programs (against libraries) with templates.
19062 prelink_cmds=$lt_prelink_cmds
19064 # Commands necessary for finishing linking programs.
19065 postlink_cmds=$lt_postlink_cmds
19067 # Specify filename containing input files.
19068 file_list_spec=$lt_file_list_spec
19070 # How to hardcode a shared library path into an executable.
19071 hardcode_action=$hardcode_action
19073 # ### END LIBTOOL CONFIG
19077 cat <<'_LT_EOF' >> "$cfgfile"
19079 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19081 # func_munge_path_list VARIABLE PATH
19082 # -----------------------------------
19083 # VARIABLE is name of variable containing _space_ separated list of
19084 # directories to be munged by the contents of PATH, which is string
19087 # string "DIR[ DIR]" will be prepended to VARIABLE
19089 # string "DIR[ DIR]" will be appended to VARIABLE
19090 # "DIRP[:DIRP]::[DIRA:]DIRA"
19091 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19092 # "DIRA[ DIRA]" will be appended to VARIABLE
19094 # VARIABLE will be replaced by "DIR[ DIR]"
19095 func_munge_path_list ()
19101 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19104 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19107 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19108 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19111 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19117 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19118 func_cc_basename ()
19120 for cc_temp in $*""; do
19122 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19123 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19128 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19132 # ### END FUNCTIONS SHARED WITH CONFIGURE
19138 cat <<\_LT_EOF >> "$cfgfile"
19139 # AIX sometimes has problems with the GCC collect2 program. For some
19140 # reason, if we set the COLLECT_NAMES environment variable, the problems
19141 # vanish in a puff of smoke.
19142 if test set != "${COLLECT_NAMES+set}"; then
19144 export COLLECT_NAMES
19151 ltmain=$ac_aux_dir/ltmain.sh
19154 # We use sed instead of cat because bash on DJGPP gets confused if
19155 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19156 # text mode, it properly converts lines to CR/LF. This bash problem
19157 # is reportedly fixed, but why not run on old versions too?
19158 sed '$q' "$ltmain" >> "$cfgfile" \
19159 || (rm -f "$cfgfile"; exit 1)
19161 mv -f "$cfgfile" "$ofile" ||
19162 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
19168 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
19169 ac_stdint=$tmp/_stdint.h
19171 echo "#ifndef" $_ac_stdint_h >$ac_stdint
19172 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
19173 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
19174 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
19175 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
19176 if test "_$ac_cv_header_stdint_t" != "_" ; then
19177 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
19178 echo "#include <stdint.h>" >>$ac_stdint
19179 echo "#endif" >>$ac_stdint
19180 echo "#endif" >>$ac_stdint
19183 cat >>$ac_stdint <<STDINT_EOF
19185 /* ................... shortcircuit part ........................... */
19187 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
19188 #include <stdint.h>
19190 #include <stddef.h>
19192 /* .................... configured part ............................ */
19196 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
19197 if test "_$ac_cv_header_stdint_x" != "_" ; then
19198 ac_header="$ac_cv_header_stdint_x"
19199 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
19201 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
19204 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
19205 if test "_$ac_cv_header_stdint_o" != "_" ; then
19206 ac_header="$ac_cv_header_stdint_o"
19207 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
19209 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
19212 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
19213 if test "_$ac_cv_header_stdint_u" != "_" ; then
19214 ac_header="$ac_cv_header_stdint_u"
19215 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
19217 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
19220 echo "" >>$ac_stdint
19222 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
19223 echo "#include <$ac_header>" >>$ac_stdint
19224 echo "" >>$ac_stdint
19227 echo "/* which 64bit typedef has been found */" >>$ac_stdint
19228 if test "$ac_cv_type_uint64_t" = "yes" ; then
19229 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
19231 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
19233 if test "$ac_cv_type_u_int64_t" = "yes" ; then
19234 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
19236 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
19238 echo "" >>$ac_stdint
19240 echo "/* which type model has been detected */" >>$ac_stdint
19241 if test "_$ac_cv_char_data_model" != "_" ; then
19242 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
19243 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
19245 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
19246 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
19248 echo "" >>$ac_stdint
19250 echo "/* whether int_least types were detected */" >>$ac_stdint
19251 if test "$ac_cv_type_int_least32_t" = "yes"; then
19252 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
19254 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
19256 echo "/* whether int_fast types were detected */" >>$ac_stdint
19257 if test "$ac_cv_type_int_fast32_t" = "yes"; then
19258 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
19260 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
19262 echo "/* whether intmax_t type was detected */" >>$ac_stdint
19263 if test "$ac_cv_type_intmax_t" = "yes"; then
19264 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
19266 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
19268 echo "" >>$ac_stdint
19270 cat >>$ac_stdint <<STDINT_EOF
19271 /* .................... detections part ............................ */
19273 /* whether we need to define bitspecific types from compiler base types */
19274 #ifndef _STDINT_HEADER_INTPTR
19275 #ifndef _STDINT_HEADER_UINT32
19276 #ifndef _STDINT_HEADER_U_INT32
19277 #define _STDINT_NEED_INT_MODEL_T
19279 #define _STDINT_HAVE_U_INT_TYPES
19284 #ifdef _STDINT_HAVE_U_INT_TYPES
19285 #undef _STDINT_NEED_INT_MODEL_T
19288 #ifdef _STDINT_CHAR_MODEL
19289 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
19290 #ifndef _STDINT_BYTE_MODEL
19291 #define _STDINT_BYTE_MODEL 12
19296 #ifndef _STDINT_HAVE_INT_LEAST32_T
19297 #define _STDINT_NEED_INT_LEAST_T
19300 #ifndef _STDINT_HAVE_INT_FAST32_T
19301 #define _STDINT_NEED_INT_FAST_T
19304 #ifndef _STDINT_HEADER_INTPTR
19305 #define _STDINT_NEED_INTPTR_T
19306 #ifndef _STDINT_HAVE_INTMAX_T
19307 #define _STDINT_NEED_INTMAX_T
19312 /* .................... definition part ............................ */
19314 /* some system headers have good uint64_t */
19315 #ifndef _HAVE_UINT64_T
19316 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
19317 #define _HAVE_UINT64_T
19318 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
19319 #define _HAVE_UINT64_T
19320 typedef u_int64_t uint64_t;
19324 #ifndef _HAVE_UINT64_T
19325 /* .. here are some common heuristics using compiler runtime specifics */
19326 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
19327 #define _HAVE_UINT64_T
19328 #define _HAVE_LONGLONG_UINT64_T
19329 typedef long long int64_t;
19330 typedef unsigned long long uint64_t;
19332 #elif !defined __STRICT_ANSI__
19333 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19334 #define _HAVE_UINT64_T
19335 typedef __int64 int64_t;
19336 typedef unsigned __int64 uint64_t;
19338 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
19339 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
19340 #if !defined _NO_LONGLONG
19341 #define _HAVE_UINT64_T
19342 #define _HAVE_LONGLONG_UINT64_T
19343 typedef long long int64_t;
19344 typedef unsigned long long uint64_t;
19347 #elif defined __alpha || (defined __mips && defined _ABIN32)
19348 #if !defined _NO_LONGLONG
19349 typedef long int64_t;
19350 typedef unsigned long uint64_t;
19352 /* compiler/cpu type to define int64_t */
19357 #if defined _STDINT_HAVE_U_INT_TYPES
19358 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
19359 typedef u_int8_t uint8_t;
19360 typedef u_int16_t uint16_t;
19361 typedef u_int32_t uint32_t;
19363 /* glibc compatibility */
19364 #ifndef __int8_t_defined
19365 #define __int8_t_defined
19369 #ifdef _STDINT_NEED_INT_MODEL_T
19370 /* we must guess all the basic types. Apart from byte-adressable system, */
19371 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
19372 /* (btw, those nibble-addressable systems are way off, or so we assume) */
19375 #if defined _STDINT_BYTE_MODEL
19376 #if _STDINT_LONG_MODEL+0 == 242
19377 /* 2:4:2 = IP16 = a normal 16-bit system */
19378 typedef unsigned char uint8_t;
19379 typedef unsigned short uint16_t;
19380 typedef unsigned long uint32_t;
19381 #ifndef __int8_t_defined
19382 #define __int8_t_defined
19383 typedef char int8_t;
19384 typedef short int16_t;
19385 typedef long int32_t;
19387 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
19388 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
19389 /* 4:4:4 = ILP32 = a normal 32-bit system */
19390 typedef unsigned char uint8_t;
19391 typedef unsigned short uint16_t;
19392 typedef unsigned int uint32_t;
19393 #ifndef __int8_t_defined
19394 #define __int8_t_defined
19395 typedef char int8_t;
19396 typedef short int16_t;
19397 typedef int int32_t;
19399 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
19400 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
19401 /* 4:8:8 = LP64 = a normal 64-bit system */
19402 typedef unsigned char uint8_t;
19403 typedef unsigned short uint16_t;
19404 typedef unsigned int uint32_t;
19405 #ifndef __int8_t_defined
19406 #define __int8_t_defined
19407 typedef char int8_t;
19408 typedef short int16_t;
19409 typedef int int32_t;
19411 /* this system has a "long" of 64bit */
19412 #ifndef _HAVE_UINT64_T
19413 #define _HAVE_UINT64_T
19414 typedef unsigned long uint64_t;
19415 typedef long int64_t;
19417 #elif _STDINT_LONG_MODEL+0 == 448
19418 /* LLP64 a 64-bit system derived from a 32-bit system */
19419 typedef unsigned char uint8_t;
19420 typedef unsigned short uint16_t;
19421 typedef unsigned int uint32_t;
19422 #ifndef __int8_t_defined
19423 #define __int8_t_defined
19424 typedef char int8_t;
19425 typedef short int16_t;
19426 typedef int int32_t;
19428 /* assuming the system has a "long long" */
19429 #ifndef _HAVE_UINT64_T
19430 #define _HAVE_UINT64_T
19431 #define _HAVE_LONGLONG_UINT64_T
19432 typedef unsigned long long uint64_t;
19433 typedef long long int64_t;
19436 #define _STDINT_NO_INT32_T
19439 #define _STDINT_NO_INT8_T
19440 #define _STDINT_NO_INT32_T
19445 * quote from SunOS-5.8 sys/inttypes.h:
19446 * Use at your own risk. As of February 1996, the committee is squarely
19447 * behind the fixed sized types; the "least" and "fast" types are still being
19448 * discussed. The probability that the "fast" types may be removed before
19449 * the standard is finalized is high enough that they are not currently
19453 #if defined _STDINT_NEED_INT_LEAST_T
19454 typedef int8_t int_least8_t;
19455 typedef int16_t int_least16_t;
19456 typedef int32_t int_least32_t;
19457 #ifdef _HAVE_UINT64_T
19458 typedef int64_t int_least64_t;
19461 typedef uint8_t uint_least8_t;
19462 typedef uint16_t uint_least16_t;
19463 typedef uint32_t uint_least32_t;
19464 #ifdef _HAVE_UINT64_T
19465 typedef uint64_t uint_least64_t;
19470 #if defined _STDINT_NEED_INT_FAST_T
19471 typedef int8_t int_fast8_t;
19472 typedef int int_fast16_t;
19473 typedef int32_t int_fast32_t;
19474 #ifdef _HAVE_UINT64_T
19475 typedef int64_t int_fast64_t;
19478 typedef uint8_t uint_fast8_t;
19479 typedef unsigned uint_fast16_t;
19480 typedef uint32_t uint_fast32_t;
19481 #ifdef _HAVE_UINT64_T
19482 typedef uint64_t uint_fast64_t;
19487 #ifdef _STDINT_NEED_INTMAX_T
19488 #ifdef _HAVE_UINT64_T
19489 typedef int64_t intmax_t;
19490 typedef uint64_t uintmax_t;
19492 typedef long intmax_t;
19493 typedef unsigned long uintmax_t;
19497 #ifdef _STDINT_NEED_INTPTR_T
19498 #ifndef __intptr_t_defined
19499 #define __intptr_t_defined
19500 /* we encourage using "long" to store pointer values, never use "int" ! */
19501 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
19502 typedef unsigned int uintptr_t;
19503 typedef int intptr_t;
19504 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
19505 typedef unsigned long uintptr_t;
19506 typedef long intptr_t;
19507 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
19508 typedef uint64_t uintptr_t;
19509 typedef int64_t intptr_t;
19510 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
19511 typedef unsigned long uintptr_t;
19512 typedef long intptr_t;
19517 /* The ISO C99 standard specifies that in C++ implementations these
19518 should only be defined if explicitly requested. */
19519 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
19523 # define INT8_C(c) c
19524 # define INT16_C(c) c
19525 # define INT32_C(c) c
19526 # ifdef _HAVE_LONGLONG_UINT64_T
19527 # define INT64_C(c) c ## L
19529 # define INT64_C(c) c ## LL
19533 # define UINT8_C(c) c ## U
19534 # define UINT16_C(c) c ## U
19535 # define UINT32_C(c) c ## U
19536 # ifdef _HAVE_LONGLONG_UINT64_T
19537 # define UINT64_C(c) c ## UL
19539 # define UINT64_C(c) c ## ULL
19542 /* Maximal type. */
19543 # ifdef _HAVE_LONGLONG_UINT64_T
19544 # define INTMAX_C(c) c ## L
19545 # define UINTMAX_C(c) c ## UL
19547 # define INTMAX_C(c) c ## LL
19548 # define UINTMAX_C(c) c ## ULL
19551 /* literalnumbers */
19555 /* These limits are merily those of a two complement byte-oriented system */
19557 /* Minimum of signed integral types. */
19558 # define INT8_MIN (-128)
19559 # define INT16_MIN (-32767-1)
19560 # define INT32_MIN (-2147483647-1)
19561 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
19562 /* Maximum of signed integral types. */
19563 # define INT8_MAX (127)
19564 # define INT16_MAX (32767)
19565 # define INT32_MAX (2147483647)
19566 # define INT64_MAX (__INT64_C(9223372036854775807))
19568 /* Maximum of unsigned integral types. */
19569 # define UINT8_MAX (255)
19570 # define UINT16_MAX (65535)
19571 # define UINT32_MAX (4294967295U)
19572 # define UINT64_MAX (__UINT64_C(18446744073709551615))
19574 /* Minimum of signed integral types having a minimum size. */
19575 # define INT_LEAST8_MIN INT8_MIN
19576 # define INT_LEAST16_MIN INT16_MIN
19577 # define INT_LEAST32_MIN INT32_MIN
19578 # define INT_LEAST64_MIN INT64_MIN
19579 /* Maximum of signed integral types having a minimum size. */
19580 # define INT_LEAST8_MAX INT8_MAX
19581 # define INT_LEAST16_MAX INT16_MAX
19582 # define INT_LEAST32_MAX INT32_MAX
19583 # define INT_LEAST64_MAX INT64_MAX
19585 /* Maximum of unsigned integral types having a minimum size. */
19586 # define UINT_LEAST8_MAX UINT8_MAX
19587 # define UINT_LEAST16_MAX UINT16_MAX
19588 # define UINT_LEAST32_MAX UINT32_MAX
19589 # define UINT_LEAST64_MAX UINT64_MAX
19598 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
19599 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
19600 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
19602 ac_dir=`$as_dirname -- "$ac_stdint_h" ||
19603 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19604 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
19605 X"$ac_stdint_h" : 'X\(//\)$' \| \
19606 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
19607 $as_echo X"$ac_stdint_h" |
19608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19612 /^X\(\/\/\)[^/].*/{
19625 as_dir="$ac_dir"; as_fn_mkdir_p
19627 mv $ac_stdint $ac_stdint_h
19637 ac_clean_files=$ac_clean_files_save
19639 test $ac_write_fail = 0 ||
19640 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19643 # configure is writing to config.log, and then calls config.status.
19644 # config.status does its own redirection, appending to config.log.
19645 # Unfortunately, on DOS this fails, as config.log is still kept open
19646 # by configure, so config.status won't be able to write to it; its
19647 # output is simply discarded. So we exec the FD to /dev/null,
19648 # effectively closing config.log, so it can be properly (re)opened and
19649 # appended to by config.status. When coming back to configure, we
19650 # need to make the FD available again.
19651 if test "$no_create" != yes; then
19653 ac_config_status_args=
19654 test "$silent" = yes &&
19655 ac_config_status_args="$ac_config_status_args --quiet"
19657 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19659 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19660 # would make configure fail if this is the last instruction.
19661 $ac_cs_success || as_fn_exit 1
19663 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19665 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}