2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for fontconfig 2.14.2.
5 # Report bugs to <https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
40 # Reset variables that may have inherited troublesome values from
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
56 # Ensure predictable behavior from utilities with locale-dependent output.
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # Find who we are. Look in the path if we contain no directory separator.
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
129 *v*x* | *x*v* ) as_opts=-vx ;;
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 case \`(set -o) 2>/dev/null\` in #(
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 exitcode=1; echo positional parameters were not saved.
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 *) as_dir=$as_dir/ ;;
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
242 CONFIG_SHELL=$SHELL as_have_required=yes
247 if test "x$CONFIG_SHELL" != x
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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279 $0: https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new
280 $0: about your system, including any error possibly output
281 $0: before this message. Then install a modern shell, or
282 $0: manually run the script under such a shell if you do
289 SHELL=${CONFIG_SHELL-/bin/sh}
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
300 # Portably unset VAR.
303 { eval $1=; unset $1;}
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
327 # Do nothing but, unlike ":", preserve the value of $?.
336 # Create "$as_dir" as a directory, including parents if necessary.
341 -*) as_dir=./$as_dir;;
343 test -d "$as_dir" || eval $as_mkdir_p || {
347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
350 as_dirs="'$as_qdir' $as_dirs"
351 as_dir=`$as_dirname -- "$as_dir" ||
352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353 X"$as_dir" : 'X\(//\)[^/]' \| \
354 X"$as_dir" : 'X\(//\)$' \| \
355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356 printf "%s\n" X"$as_dir" |
357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
374 test -d "$as_dir" && break
376 test -z "$as_dirs" || eval "mkdir $as_dirs"
377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
382 # as_fn_executable_p FILE
383 # -----------------------
384 # Test if FILE is an executable regular file.
385 as_fn_executable_p ()
387 test -f "$1" && test -x "$1"
388 } # as_fn_executable_p
389 # as_fn_append VAR VALUE
390 # ----------------------
391 # Append the text in VALUE to the end of the definition contained in VAR. Take
392 # advantage of any shell optimizations that allow amortized linear growth over
393 # repeated appends, instead of the typical quadratic growth present in naive
395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
397 eval 'as_fn_append ()
410 # Perform arithmetic evaluation on the ARGs, and store the result in the
411 # global $as_val. Take advantage of shells that can avoid forks. The arguments
412 # must be portable across $(()) and expr.
413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
422 as_val=`expr "$@" || test $? -eq 1`
428 # Do nothing but, unlike ":", preserve the value of $?.
435 # as_fn_error STATUS ERROR [LINENO LOG_FD]
436 # ----------------------------------------
437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439 # script with STATUS, using 1 if that was 0.
442 as_status=$1; test $as_status -eq 0 && as_status=1
444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
447 printf "%s\n" "$as_me: error: $2" >&2
448 as_fn_exit $as_status
451 if expr a : '\(a\)' >/dev/null 2>&1 &&
452 test "X`expr 00001 : '.*\(...\)'`" = X001; then
458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_me=`$as_basename -- "$0" ||
471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472 X"$0" : 'X\(//\)$' \| \
473 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474 printf "%s\n" X/"$0" |
475 sed '/^.*\/\([^/][^/]*\)\/*$/{
489 # Avoid depending upon Character Ranges.
490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493 as_cr_digits='0123456789'
494 as_cr_alnum=$as_cr_Letters$as_cr_digits
497 as_lineno_1=$LINENO as_lineno_1a=$LINENO
498 as_lineno_2=$LINENO as_lineno_2a=$LINENO
499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
517 chmod +x "$as_me.lineno" ||
518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521 # already done that, so ensure we don't try to do so again and fall
522 # in an infinite loop. This has already happened in practice.
523 _as_can_reexec=no; export _as_can_reexec
524 # Don't try to exec as it changes $[0], causing all sort of problems
525 # (the dirname of $[0] is not the place where we might find the
526 # original and so on. Autoconf is especially sensitive to this).
528 # Exit status is that of the last command.
533 # Determine whether it's possible to make 'echo' print without a newline.
534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535 # for compatibility with existing Makefiles.
536 ECHO_C= ECHO_N= ECHO_T=
537 case `echo -n x` in #(((((
539 case `echo 'xy\c'` in
540 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
549 # For backward compatibility with old third-party macros, we provide
550 # the shell variables $as_echo and $as_echo_n. New code should use
551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552 as_echo='printf %s\n'
553 as_echo_n='printf %s'
556 rm -f conf$$ conf$$.exe conf$$.file
557 if test -d conf$$.dir; then
558 rm -f conf$$.dir/conf$$.file
561 mkdir conf$$.dir 2>/dev/null
563 if (echo >conf$$.file) 2>/dev/null; then
564 if ln -s conf$$.file conf$$ 2>/dev/null; then
566 # ... but there are two gotchas:
567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569 # In both cases, we have to default to `cp -pR'.
570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
572 elif ln conf$$.file conf$$ 2>/dev/null; then
580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581 rmdir conf$$.dir 2>/dev/null
583 if mkdir -p . 2>/dev/null; then
584 as_mkdir_p='mkdir -p "$as_dir"'
586 test -d ./-p && rmdir ./-p
591 as_executable_p=as_fn_executable_p
593 # Sed expression to map a string onto a valid CPP name.
594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
596 # Sed expression to map a string onto a valid variable name.
597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
599 SHELL=${CONFIG_SHELL-/bin/sh}
602 test -n "$DJDIR" || exec 7<&0 </dev/null
606 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607 # so uname gets run too.
608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
613 ac_default_prefix=/usr/local
615 ac_config_libobj_dir=.
622 # Identity of this package.
623 PACKAGE_NAME='fontconfig'
624 PACKAGE_TARNAME='fontconfig'
625 PACKAGE_VERSION='2.14.2'
626 PACKAGE_STRING='fontconfig 2.14.2'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new'
630 # Factoring default headers for most tests.
631 ac_includes_default="\
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
664 ac_subst_vars='am__EXEEXT_FALSE
668 PKGCONFIG_REQUIRES_PRIVATELY
670 ENABLE_CACHE_BUILD_FALSE
671 ENABLE_CACHE_BUILD_TRUE
695 PREFERRED_SUB_PIXEL_RENDERING
709 FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE
710 FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE
717 CROSS_COMPILING_FALSE
722 MS_LIB_AVAILABLE_FALSE
723 MS_LIB_AVAILABLE_TRUE
733 XGETTEXT_EXTRA_OPTIONS
741 GETTEXT_MACRO_VERSION
748 LIBT_CURRENT_MINUS_AGE
831 INSTALL_STRIP_PROGRAM
874 program_transform_name
888 enable_option_checking
890 enable_dependency_tracking
893 with_python_sys_prefix
895 with_python_exec_prefix
911 with_libiconv_includes
917 with_default_sub_pixel_rendering
930 ac_precious_vars='build_alias
957 # Initialize some variables set by options.
959 ac_init_version=false
960 ac_unrecognized_opts=
962 # The variables have the same names as the options, with
963 # dashes changed to underlines.
971 program_transform_name=s,x,x,
979 # Installation directory options.
980 # These are left unexpanded so users can "make install exec_prefix=/foo"
981 # and all the variables that are supposed to be based on exec_prefix
982 # by default will actually change.
983 # Use braces instead of parens because sh, perl, etc. also accept them.
984 # (The list follows the same order as the GNU Coding Standards.)
985 bindir='${exec_prefix}/bin'
986 sbindir='${exec_prefix}/sbin'
987 libexecdir='${exec_prefix}/libexec'
988 datarootdir='${prefix}/share'
989 datadir='${datarootdir}'
990 sysconfdir='${prefix}/etc'
991 sharedstatedir='${prefix}/com'
992 localstatedir='${prefix}/var'
993 runstatedir='${localstatedir}/run'
994 includedir='${prefix}/include'
995 oldincludedir='/usr/include'
996 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
997 infodir='${datarootdir}/info'
1002 libdir='${exec_prefix}/lib'
1003 localedir='${datarootdir}/locale'
1004 mandir='${datarootdir}/man'
1010 # If the previous option needs an argument, assign it.
1011 if test -n "$ac_prev"; then
1012 eval $ac_prev=\$ac_option
1018 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1023 case $ac_dashdash$ac_option in
1027 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1029 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1030 bindir=$ac_optarg ;;
1032 -build | --build | --buil | --bui | --bu)
1033 ac_prev=build_alias ;;
1034 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1035 build_alias=$ac_optarg ;;
1037 -cache-file | --cache-file | --cache-fil | --cache-fi \
1038 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1039 ac_prev=cache_file ;;
1040 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1041 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1042 cache_file=$ac_optarg ;;
1044 --config-cache | -C)
1045 cache_file=config.cache ;;
1047 -datadir | --datadir | --datadi | --datad)
1049 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1050 datadir=$ac_optarg ;;
1052 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1053 | --dataroo | --dataro | --datar)
1054 ac_prev=datarootdir ;;
1055 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1056 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1057 datarootdir=$ac_optarg ;;
1059 -disable-* | --disable-*)
1060 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1068 "enable_$ac_useropt"
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
1073 eval enable_$ac_useropt=no ;;
1075 -docdir | --docdir | --docdi | --doc | --do)
1077 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1078 docdir=$ac_optarg ;;
1080 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1082 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1083 dvidir=$ac_optarg ;;
1085 -enable-* | --enable-*)
1086 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1094 "enable_$ac_useropt"
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1099 eval enable_$ac_useropt=\$ac_optarg ;;
1101 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1102 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1103 | --exec | --exe | --ex)
1104 ac_prev=exec_prefix ;;
1105 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1106 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1107 | --exec=* | --exe=* | --ex=*)
1108 exec_prefix=$ac_optarg ;;
1110 -gas | --gas | --ga | --g)
1111 # Obsolete; use --with-gas.
1114 -help | --help | --hel | --he | -h)
1115 ac_init_help=long ;;
1116 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1117 ac_init_help=recursive ;;
1118 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1119 ac_init_help=short ;;
1121 -host | --host | --hos | --ho)
1122 ac_prev=host_alias ;;
1123 -host=* | --host=* | --hos=* | --ho=*)
1124 host_alias=$ac_optarg ;;
1126 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1128 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1130 htmldir=$ac_optarg ;;
1132 -includedir | --includedir | --includedi | --included | --include \
1133 | --includ | --inclu | --incl | --inc)
1134 ac_prev=includedir ;;
1135 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1136 | --includ=* | --inclu=* | --incl=* | --inc=*)
1137 includedir=$ac_optarg ;;
1139 -infodir | --infodir | --infodi | --infod | --info | --inf)
1141 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1142 infodir=$ac_optarg ;;
1144 -libdir | --libdir | --libdi | --libd)
1146 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1147 libdir=$ac_optarg ;;
1149 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1150 | --libexe | --libex | --libe)
1151 ac_prev=libexecdir ;;
1152 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1153 | --libexe=* | --libex=* | --libe=*)
1154 libexecdir=$ac_optarg ;;
1156 -localedir | --localedir | --localedi | --localed | --locale)
1157 ac_prev=localedir ;;
1158 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1159 localedir=$ac_optarg ;;
1161 -localstatedir | --localstatedir | --localstatedi | --localstated \
1162 | --localstate | --localstat | --localsta | --localst | --locals)
1163 ac_prev=localstatedir ;;
1164 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1165 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1166 localstatedir=$ac_optarg ;;
1168 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1170 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1171 mandir=$ac_optarg ;;
1173 -nfp | --nfp | --nf)
1174 # Obsolete; use --without-fp.
1177 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1178 | --no-cr | --no-c | -n)
1181 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1182 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1185 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1186 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1187 | --oldin | --oldi | --old | --ol | --o)
1188 ac_prev=oldincludedir ;;
1189 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1190 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1191 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1192 oldincludedir=$ac_optarg ;;
1194 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1196 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1197 prefix=$ac_optarg ;;
1199 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1200 | --program-pre | --program-pr | --program-p)
1201 ac_prev=program_prefix ;;
1202 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1203 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1204 program_prefix=$ac_optarg ;;
1206 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1207 | --program-suf | --program-su | --program-s)
1208 ac_prev=program_suffix ;;
1209 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1210 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1211 program_suffix=$ac_optarg ;;
1213 -program-transform-name | --program-transform-name \
1214 | --program-transform-nam | --program-transform-na \
1215 | --program-transform-n | --program-transform- \
1216 | --program-transform | --program-transfor \
1217 | --program-transfo | --program-transf \
1218 | --program-trans | --program-tran \
1219 | --progr-tra | --program-tr | --program-t)
1220 ac_prev=program_transform_name ;;
1221 -program-transform-name=* | --program-transform-name=* \
1222 | --program-transform-nam=* | --program-transform-na=* \
1223 | --program-transform-n=* | --program-transform-=* \
1224 | --program-transform=* | --program-transfor=* \
1225 | --program-transfo=* | --program-transf=* \
1226 | --program-trans=* | --program-tran=* \
1227 | --progr-tra=* | --program-tr=* | --program-t=*)
1228 program_transform_name=$ac_optarg ;;
1230 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1232 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1233 pdfdir=$ac_optarg ;;
1235 -psdir | --psdir | --psdi | --psd | --ps)
1237 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1244 -runstatedir | --runstatedir | --runstatedi | --runstated \
1245 | --runstate | --runstat | --runsta | --runst | --runs \
1246 | --run | --ru | --r)
1247 ac_prev=runstatedir ;;
1248 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1249 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1250 | --run=* | --ru=* | --r=*)
1251 runstatedir=$ac_optarg ;;
1253 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1255 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1257 sbindir=$ac_optarg ;;
1259 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1260 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1261 | --sharedst | --shareds | --shared | --share | --shar \
1263 ac_prev=sharedstatedir ;;
1264 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1265 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1266 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1268 sharedstatedir=$ac_optarg ;;
1270 -site | --site | --sit)
1272 -site=* | --site=* | --sit=*)
1275 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1277 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1278 srcdir=$ac_optarg ;;
1280 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1281 | --syscon | --sysco | --sysc | --sys | --sy)
1282 ac_prev=sysconfdir ;;
1283 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1284 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1285 sysconfdir=$ac_optarg ;;
1287 -target | --target | --targe | --targ | --tar | --ta | --t)
1288 ac_prev=target_alias ;;
1289 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1290 target_alias=$ac_optarg ;;
1292 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1295 -version | --version | --versio | --versi | --vers | -V)
1296 ac_init_version=: ;;
1299 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302 as_fn_error $? "invalid package name: \`$ac_useropt'"
1303 ac_useropt_orig=$ac_useropt
1304 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1305 case $ac_user_opts in
1309 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1310 ac_unrecognized_sep=', ';;
1312 eval with_$ac_useropt=\$ac_optarg ;;
1314 -without-* | --without-*)
1315 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1316 # Reject names that are not valid shell variable names.
1317 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1318 as_fn_error $? "invalid package name: \`$ac_useropt'"
1319 ac_useropt_orig=$ac_useropt
1320 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1321 case $ac_user_opts in
1325 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1326 ac_unrecognized_sep=', ';;
1328 eval with_$ac_useropt=no ;;
1331 # Obsolete; use --with-x.
1334 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1335 | --x-incl | --x-inc | --x-in | --x-i)
1336 ac_prev=x_includes ;;
1337 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1338 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1339 x_includes=$ac_optarg ;;
1341 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1342 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1343 ac_prev=x_libraries ;;
1344 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1345 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1346 x_libraries=$ac_optarg ;;
1348 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1349 Try \`$0 --help' for more information"
1353 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1354 # Reject names that are not valid shell variable names.
1355 case $ac_envvar in #(
1356 '' | [0-9]* | *[!_$as_cr_alnum]* )
1357 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1359 eval $ac_envvar=\$ac_optarg
1360 export $ac_envvar ;;
1363 # FIXME: should be removed in autoconf 3.0.
1364 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1365 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1366 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1367 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1373 if test -n "$ac_prev"; then
1374 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1375 as_fn_error $? "missing argument to $ac_option"
1378 if test -n "$ac_unrecognized_opts"; then
1379 case $enable_option_checking in
1381 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1382 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1386 # Check all directory arguments for consistency.
1387 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1388 datadir sysconfdir sharedstatedir localstatedir includedir \
1389 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1390 libdir localedir mandir runstatedir
1392 eval ac_val=\$$ac_var
1393 # Remove trailing slashes.
1396 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1397 eval $ac_var=\$ac_val;;
1399 # Be sure to have absolute directory names.
1401 [\\/$]* | ?:[\\/]* ) continue;;
1402 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1404 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1407 # There might be people who depend on the old broken behavior: `$host'
1408 # used to hold the argument of --host etc.
1409 # FIXME: To remove some day.
1412 target=$target_alias
1414 # FIXME: To remove some day.
1415 if test "x$host_alias" != x; then
1416 if test "x$build_alias" = x; then
1417 cross_compiling=maybe
1418 elif test "x$build_alias" != "x$host_alias"; then
1424 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1426 test "$silent" = yes && exec 6>/dev/null
1429 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1430 ac_ls_di=`ls -di .` &&
1431 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1432 as_fn_error $? "working directory cannot be determined"
1433 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1434 as_fn_error $? "pwd does not report name of working directory"
1437 # Find the source files, if location was not specified.
1438 if test -z "$srcdir"; then
1439 ac_srcdir_defaulted=yes
1440 # Try the directory containing this script, then the parent directory.
1441 ac_confdir=`$as_dirname -- "$as_myself" ||
1442 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1443 X"$as_myself" : 'X\(//\)[^/]' \| \
1444 X"$as_myself" : 'X\(//\)$' \| \
1445 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1446 printf "%s\n" X"$as_myself" |
1447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1465 if test ! -r "$srcdir/$ac_unique_file"; then
1469 ac_srcdir_defaulted=no
1471 if test ! -r "$srcdir/$ac_unique_file"; then
1472 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1473 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1475 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1477 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1479 # When building in place, set srcdir=.
1480 if test "$ac_abs_confdir" = "$ac_pwd"; then
1483 # Remove unnecessary trailing slashes from srcdir.
1484 # Double slashes in file names in object file debugging info
1485 # mess up M-x gdb in Emacs.
1487 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1489 for ac_var in $ac_precious_vars; do
1490 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1491 eval ac_env_${ac_var}_value=\$${ac_var}
1492 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1493 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1497 # Report the --help message.
1499 if test "$ac_init_help" = "long"; then
1500 # Omit some internal or obsolete options to make the list less imposing.
1501 # This message is too long to be a string in the A/UX 3.1 sh.
1503 \`configure' configures fontconfig 2.14.2 to adapt to many kinds of systems.
1505 Usage: $0 [OPTION]... [VAR=VALUE]...
1507 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1508 VAR=VALUE. See below for descriptions of some of the useful variables.
1510 Defaults for the options are specified in brackets.
1513 -h, --help display this help and exit
1514 --help=short display options specific to this package
1515 --help=recursive display the short help of all the included packages
1516 -V, --version display version information and exit
1517 -q, --quiet, --silent do not print \`checking ...' messages
1518 --cache-file=FILE cache test results in FILE [disabled]
1519 -C, --config-cache alias for \`--cache-file=config.cache'
1520 -n, --no-create do not create output files
1521 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1523 Installation directories:
1524 --prefix=PREFIX install architecture-independent files in PREFIX
1525 [$ac_default_prefix]
1526 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1529 By default, \`make install' will install all the files in
1530 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1531 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1532 for instance \`--prefix=\$HOME'.
1534 For better control, use the options below.
1536 Fine tuning of the installation directories:
1537 --bindir=DIR user executables [EPREFIX/bin]
1538 --sbindir=DIR system admin executables [EPREFIX/sbin]
1539 --libexecdir=DIR program executables [EPREFIX/libexec]
1540 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1541 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1542 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1543 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1544 --libdir=DIR object code libraries [EPREFIX/lib]
1545 --includedir=DIR C header files [PREFIX/include]
1546 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1547 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1548 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1549 --infodir=DIR info documentation [DATAROOTDIR/info]
1550 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1551 --mandir=DIR man documentation [DATAROOTDIR/man]
1552 --docdir=DIR documentation root [DATAROOTDIR/doc/fontconfig]
1553 --htmldir=DIR html documentation [DOCDIR]
1554 --dvidir=DIR dvi documentation [DOCDIR]
1555 --pdfdir=DIR pdf documentation [DOCDIR]
1556 --psdir=DIR ps documentation [DOCDIR]
1562 --program-prefix=PREFIX prepend PREFIX to installed program names
1563 --program-suffix=SUFFIX append SUFFIX to installed program names
1564 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1567 --build=BUILD configure for building on BUILD [guessed]
1568 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1572 if test -n "$ac_init_help"; then
1573 case $ac_init_help in
1574 short | recursive ) echo "Configuration of fontconfig 2.14.2:";;
1579 --disable-option-checking ignore unrecognized --enable/--with options
1580 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1581 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1582 --enable-silent-rules less verbose build output (undo: "make V=1")
1583 --disable-silent-rules verbose build output (undo: "make V=0")
1584 --enable-dependency-tracking
1585 do not reject slow dependency extractors
1586 --disable-dependency-tracking
1587 speeds up one-time build
1588 --disable-largefile omit support for large files
1589 --enable-static[=PKGS] build static libraries [default=no]
1590 --enable-shared[=PKGS] build shared libraries [default=yes]
1591 --enable-fast-install[=PKGS]
1592 optimize for fast installation [default=yes]
1593 --disable-libtool-lock avoid locking (might break parallel builds)
1594 --disable-nls do not use Native Language Support
1595 --disable-rpath do not hardcode runtime library paths
1596 --enable-iconv Use iconv to support non-Unicode SFNT name
1597 --enable-libxml2 Use libxml2 instead of Expat
1598 --disable-docbook Disable building docs with docbook2html (default:
1600 --disable-docs Don't build and install documentation
1601 --disable-cache-build Don't run fc-cache during the build
1604 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1605 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1606 --with-pkgconfigdir pkg-config installation directory
1607 ['${libdir}/pkgconfig']
1608 --with-python-sys-prefix
1609 use Python's sys.prefix and sys.exec_prefix values
1610 --with-python_prefix override the default PYTHON_PREFIX
1611 --with-python_exec_prefix
1612 override the default PYTHON_EXEC_PREFIX
1613 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1615 --with-aix-soname=aix|svr4|both
1616 shared library versioning (aka "SONAME") variant to
1617 provide on AIX, [default=aix].
1618 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1619 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1620 compiler's sysroot if not specified).
1621 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1622 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1623 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1624 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1625 --without-libintl-prefix don't search for libintl in includedir and libdir
1626 --with-arch=ARCH Force architecture to ARCH
1627 --with-libiconv=DIR Use libiconv in DIR
1628 --with-libiconv-includes=DIR
1629 Use libiconv includes in DIR
1630 --with-libiconv-lib=DIR Use libiconv library in DIR
1631 --with-expat=DIR Use Expat in DIR
1632 --with-expat-includes=DIR
1633 Use Expat includes in DIR
1634 --with-expat-lib=DIR
1635 --with-default-sub-pixel-rendering=NAME
1636 Enable your preferred sub-pixel rendering
1637 configuration (none/bgr/rgb/vbgr/vrgb)
1639 --with-default-hinting=NAME
1640 Enable your preferred hinting configuration
1641 (none/slight/medium/full) [default=slight]
1642 --with-default-fonts=DIR1,DIR2,...
1643 Use fonts from DIR1,DIR2,... when config is busted
1644 --with-add-fonts=DIR1,DIR2,...
1645 Find additional fonts in DIR1,DIR2,...
1646 --with-cache-dir=DIR Use DIR to store cache files
1647 [default=LOCALSTATEDIR/cache/fontconfig]
1648 --with-templatedir=DIR Use DIR to store the configuration template files
1649 [default=DATADIR/fontconfig/conf.avail]
1650 --with-baseconfigdir=DIR
1651 Use DIR to store the base configuration files
1652 [default=SYSCONFDIR/fonts]
1653 --with-configdir=DIR Use DIR to store active configuration files
1654 [default=BASECONFIGDIR/conf.d]
1655 --with-xmldir=DIR Use DIR to store XML schema files
1656 [default=DATADIR/xml/fontconfig]
1658 Some influential environment variables:
1659 CC C compiler command
1660 CFLAGS C compiler flags
1661 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1662 nonstandard directory <lib dir>
1663 LIBS libraries to pass to the linker, e.g. -l<library>
1664 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1665 you have headers in a nonstandard directory <include dir>
1666 PKG_CONFIG path to pkg-config utility
1668 directories to add to pkg-config's search path
1670 path overriding pkg-config's built-in search path
1671 PYTHON the Python interpreter
1673 User-defined run-time library search path.
1676 build system C compiler
1678 C compiler flags for FREETYPE, overriding pkg-config
1680 linker flags for FREETYPE, overriding pkg-config
1681 UUID_CFLAGS C compiler flags for UUID, overriding pkg-config
1682 UUID_LIBS linker flags for UUID, overriding pkg-config
1684 C compiler flags for EXPAT, overriding pkg-config
1685 EXPAT_LIBS linker flags for EXPAT, overriding pkg-config
1687 C compiler flags for LIBXML2, overriding pkg-config
1689 linker flags for LIBXML2, overriding pkg-config
1691 C compiler flags for JSONC, overriding pkg-config
1692 JSONC_LIBS linker flags for JSONC, overriding pkg-config
1694 Use these variables to override the choices made by `configure' or to help
1695 it to find libraries and programs with nonstandard names/locations.
1697 Report bugs to <https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new>.
1702 if test "$ac_init_help" = "recursive"; then
1703 # If there are subdirs, report their specific --help.
1704 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1705 test -d "$ac_dir" ||
1706 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1714 # A ".." for each directory in $ac_dir_suffix.
1715 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1716 case $ac_top_builddir_sub in
1717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1721 ac_abs_top_builddir=$ac_pwd
1722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1723 # for backward compatibility:
1724 ac_top_builddir=$ac_top_build_prefix
1727 .) # We are building in place.
1729 ac_top_srcdir=$ac_top_builddir_sub
1730 ac_abs_top_srcdir=$ac_pwd ;;
1731 [\\/]* | ?:[\\/]* ) # Absolute name.
1732 ac_srcdir=$srcdir$ac_dir_suffix;
1733 ac_top_srcdir=$srcdir
1734 ac_abs_top_srcdir=$srcdir ;;
1736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1737 ac_top_srcdir=$ac_top_build_prefix$srcdir
1738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1742 cd "$ac_dir" || { ac_status=$?; continue; }
1743 # Check for configure.gnu first; this name is used for a wrapper for
1744 # Metaconfig's "Configure" on case-insensitive file systems.
1745 if test -f "$ac_srcdir/configure.gnu"; then
1747 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1748 elif test -f "$ac_srcdir/configure"; then
1750 $SHELL "$ac_srcdir/configure" --help=recursive
1752 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1754 cd "$ac_pwd" || { ac_status=$?; break; }
1758 test -n "$ac_init_help" && exit $ac_status
1759 if $ac_init_version; then
1761 fontconfig configure 2.14.2
1762 generated by GNU Autoconf 2.71
1764 Copyright (C) 2021 Free Software Foundation, Inc.
1765 This configure script is free software; the Free Software Foundation
1766 gives unlimited permission to copy, distribute and modify it.
1771 ## ------------------------ ##
1772 ## Autoconf initialization. ##
1773 ## ------------------------ ##
1775 # ac_fn_c_try_compile LINENO
1776 # --------------------------
1777 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1778 ac_fn_c_try_compile ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 rm -f conftest.$ac_objext conftest.beam
1782 if { { ac_try="$ac_compile"
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 printf "%s\n" "$ac_try_echo"; } >&5
1789 (eval "$ac_compile") 2>conftest.err
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && {
1798 test -z "$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1800 } && test -s conftest.$ac_objext
1804 printf "%s\n" "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810 as_fn_set_status $ac_retval
1812 } # ac_fn_c_try_compile
1814 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1815 # -------------------------------------------------------
1816 # Tests whether HEADER exists and can be compiled using the include files in
1817 # INCLUDES, setting the cache variable VAR accordingly.
1818 ac_fn_c_check_header_compile ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 printf %s "checking for $2... " >&6; }
1823 if eval test \${$3+y}
1825 printf %s "(cached) " >&6
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1832 if ac_fn_c_try_compile "$LINENO"
1838 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842 printf "%s\n" "$ac_res" >&6; }
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845 } # ac_fn_c_check_header_compile
1847 # ac_fn_c_try_link LINENO
1848 # -----------------------
1849 # Try to link conftest.$ac_ext, and return whether this succeeded.
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1854 if { { ac_try="$ac_link"
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 printf "%s\n" "$ac_try_echo"; } >&5
1861 (eval "$ac_link") 2>conftest.err
1863 if test -s conftest.err; then
1864 grep -v '^ *+' conftest.err >conftest.er1
1865 cat conftest.er1 >&5
1866 mv -f conftest.er1 conftest.err
1868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && {
1870 test -z "$ac_c_werror_flag" ||
1871 test ! -s conftest.err
1872 } && test -s conftest$ac_exeext && {
1873 test "$cross_compiling" = yes ||
1874 test -x conftest$ac_exeext
1879 printf "%s\n" "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.$ac_ext >&5
1884 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1885 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1886 # interfere with the next link command; also delete a directory that is
1887 # left behind by Apple's compiler. We do this before executing the actions.
1888 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890 as_fn_set_status $ac_retval
1892 } # ac_fn_c_try_link
1894 # ac_fn_c_check_func LINENO FUNC VAR
1895 # ----------------------------------
1896 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1897 ac_fn_c_check_func ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 printf %s "checking for $2... " >&6; }
1902 if eval test \${$3+y}
1904 printf %s "(cached) " >&6
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1908 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1910 #define $2 innocuous_$2
1912 /* System header to define __stub macros and hopefully few prototypes,
1913 which can conflict with char $2 (); below. */
1918 /* Override any GCC internal prototype to avoid an error.
1919 Use char because int might match the return type of a GCC
1920 builtin and then its argument prototype would still apply. */
1925 /* The GNU C library defines this for functions which it implements
1926 to always fail with ENOSYS. Some functions are actually named
1927 something starting with __ and the normal name is an alias. */
1928 #if defined __stub_$2 || defined __stub___$2
1940 if ac_fn_c_try_link "$LINENO"
1946 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1947 conftest$ac_exeext conftest.$ac_ext
1950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 printf "%s\n" "$ac_res" >&6; }
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 } # ac_fn_c_check_func
1956 # ac_fn_c_try_cpp LINENO
1957 # ----------------------
1958 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 if { { ac_try="$ac_cpp conftest.$ac_ext"
1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965 *) ac_try_echo=$ac_try;;
1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968 printf "%s\n" "$ac_try_echo"; } >&5
1969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1971 if test -s conftest.err; then
1972 grep -v '^ *+' conftest.err >conftest.er1
1973 cat conftest.er1 >&5
1974 mv -f conftest.er1 conftest.err
1976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977 test $ac_status = 0; } > conftest.i && {
1978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1979 test ! -s conftest.err
1984 printf "%s\n" "$as_me: failed program was:" >&5
1985 sed 's/^/| /' conftest.$ac_ext >&5
1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990 as_fn_set_status $ac_retval
1994 # ac_fn_c_try_run LINENO
1995 # ----------------------
1996 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1997 # executables *can* be run.
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 if { { ac_try="$ac_link"
2003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2004 *) ac_try_echo=$ac_try;;
2006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2007 printf "%s\n" "$ac_try_echo"; } >&5
2008 (eval "$ac_link") 2>&5
2010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2012 { { case "(($ac_try" in
2013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2014 *) ac_try_echo=$ac_try;;
2016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2017 printf "%s\n" "$ac_try_echo"; } >&5
2018 (eval "$ac_try") 2>&5
2020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2021 test $ac_status = 0; }; }
2025 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2026 printf "%s\n" "$as_me: failed program was:" >&5
2027 sed 's/^/| /' conftest.$ac_ext >&5
2029 ac_retval=$ac_status
2031 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2032 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033 as_fn_set_status $ac_retval
2037 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2038 # ------------------------------------------------------------------
2039 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2040 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2043 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044 as_decl_name=`echo $2|sed 's/ *(.*//'`
2045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2046 printf %s "checking whether $as_decl_name is declared... " >&6; }
2047 if eval test \${$3+y}
2049 printf %s "(cached) " >&6
2051 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2052 eval ac_save_FLAGS=\$$6
2053 as_fn_append $6 " $5"
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2060 #ifndef $as_decl_name
2062 (void) $as_decl_use;
2064 (void) $as_decl_name;
2072 if ac_fn_c_try_compile "$LINENO"
2078 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2079 eval $6=\$ac_save_FLAGS
2083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2084 printf "%s\n" "$ac_res" >&6; }
2085 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2087 } # ac_fn_check_decl
2089 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2090 # -------------------------------------------
2091 # Tests whether TYPE exists after having included INCLUDES, setting cache
2092 # variable VAR accordingly.
2093 ac_fn_c_check_type ()
2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097 printf %s "checking for $2... " >&6; }
2098 if eval test \${$3+y}
2100 printf %s "(cached) " >&6
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2115 if ac_fn_c_try_compile "$LINENO"
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2129 if ac_fn_c_try_compile "$LINENO"
2135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2141 printf "%s\n" "$ac_res" >&6; }
2142 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2144 } # ac_fn_c_check_type
2146 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2147 # --------------------------------------------
2148 # Tries to find the compile-time value of EXPR in a program that includes
2149 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2151 ac_fn_c_compute_int ()
2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154 if test "$cross_compiling" = yes; then
2155 # Depending upon the size, compute the lo and hi bounds.
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2162 static int test_array [1 - 2 * !(($2) >= 0)];
2164 return test_array [0];
2170 if ac_fn_c_try_compile "$LINENO"
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2180 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2182 return test_array [0];
2188 if ac_fn_c_try_compile "$LINENO"
2190 ac_hi=$ac_mid; break
2192 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2193 if test $ac_lo -le $ac_mid; then
2197 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2199 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2208 static int test_array [1 - 2 * !(($2) < 0)];
2210 return test_array [0];
2216 if ac_fn_c_try_compile "$LINENO"
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2226 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2228 return test_array [0];
2234 if ac_fn_c_try_compile "$LINENO"
2236 ac_lo=$ac_mid; break
2238 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2239 if test $ac_mid -le $ac_hi; then
2243 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2245 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2253 # Binary search between lo and hi bounds.
2254 while test "x$ac_lo" != "x$ac_hi"; do
2255 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h. */
2262 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2264 return test_array [0];
2270 if ac_fn_c_try_compile "$LINENO"
2274 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2276 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2279 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2286 static long int longval (void) { return $2; }
2287 static unsigned long int ulongval (void) { return $2; }
2294 FILE *f = fopen ("conftest.val", "w");
2299 long int i = longval ();
2302 fprintf (f, "%ld", i);
2306 unsigned long int i = ulongval ();
2309 fprintf (f, "%lu", i);
2311 /* Do not output a trailing newline, as this causes \r\n confusion
2312 on some platforms. */
2313 return ferror (f) || fclose (f) != 0;
2319 if ac_fn_c_try_run "$LINENO"
2321 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2326 conftest.$ac_objext conftest.beam conftest.$ac_ext
2330 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2331 as_fn_set_status $ac_retval
2333 } # ac_fn_c_compute_int
2335 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2336 # ----------------------------------------------------
2337 # Tries to find if the field MEMBER exists in type AGGR, after including
2338 # INCLUDES, setting cache variable VAR accordingly.
2339 ac_fn_c_check_member ()
2341 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2343 printf %s "checking for $2.$3... " >&6; }
2344 if eval test \${$4+y}
2346 printf %s "(cached) " >&6
2348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349 /* end confdefs.h. */
2361 if ac_fn_c_try_compile "$LINENO"
2365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2366 /* end confdefs.h. */
2372 if (sizeof ac_aggr.$3)
2378 if ac_fn_c_try_compile "$LINENO"
2384 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2390 printf "%s\n" "$ac_res" >&6; }
2391 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2393 } # ac_fn_c_check_member
2394 ac_configure_args_raw=
2399 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2401 as_fn_append ac_configure_args_raw " '$ac_arg'"
2404 case $ac_configure_args_raw in
2408 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2409 ac_unsafe_a="$ac_unsafe_z#~"
2410 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2411 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2414 cat >config.log <<_ACEOF
2415 This file contains any messages produced by compilers while
2416 running configure, to aid debugging if configure makes a mistake.
2418 It was created by fontconfig $as_me 2.14.2, which was
2419 generated by GNU Autoconf 2.71. Invocation command line was
2421 $ $0$ac_configure_args_raw
2431 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2432 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2433 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2434 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2435 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2437 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2438 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2440 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2441 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2442 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2443 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2444 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2445 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2446 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 case $as_dir in #(((
2457 *) as_dir=$as_dir/ ;;
2459 printf "%s\n" "PATH: $as_dir"
2475 # Keep a trace of the command line.
2476 # Strip out --no-create and --no-recursion so they do not pile up.
2477 # Strip out --silent because we don't want to record it for future runs.
2478 # Also quote any args containing shell meta-characters.
2479 # Make two passes to allow for proper duplicate-argument suppression.
2483 ac_must_keep_next=false
2489 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2490 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2491 | -silent | --silent | --silen | --sile | --sil)
2494 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2497 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2499 as_fn_append ac_configure_args1 " '$ac_arg'"
2500 if test $ac_must_keep_next = true; then
2501 ac_must_keep_next=false # Got value, back to normal.
2504 *=* | --config-cache | -C | -disable-* | --disable-* \
2505 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2506 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2507 | -with-* | --with-* | -without-* | --without-* | --x)
2508 case "$ac_configure_args0 " in
2509 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2512 -* ) ac_must_keep_next=true ;;
2515 as_fn_append ac_configure_args " '$ac_arg'"
2520 { ac_configure_args0=; unset ac_configure_args0;}
2521 { ac_configure_args1=; unset ac_configure_args1;}
2523 # When interrupted or exit'd, cleanup temporary files, and complete
2524 # config.log. We remove comments because anyway the quotes in there
2525 # would cause problems or look ugly.
2526 # WARNING: Use '\'' to represent an apostrophe within the trap.
2527 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2528 trap 'exit_status=$?
2531 # Save into config.log some information that might help in debugging.
2535 printf "%s\n" "## ---------------- ##
2536 ## Cache variables. ##
2537 ## ---------------- ##"
2539 # The following way of writing the cache mishandles newlines in values,
2541 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2542 eval ac_val=\$$ac_var
2546 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2547 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2550 _ | IFS | as_nl) ;; #(
2551 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2552 *) { eval $ac_var=; unset $ac_var;} ;;
2557 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2558 *${as_nl}ac_space=\ *)
2560 "s/'\''/'\''\\\\'\'''\''/g;
2561 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2564 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2571 printf "%s\n" "## ----------------- ##
2572 ## Output variables. ##
2573 ## ----------------- ##"
2575 for ac_var in $ac_subst_vars
2577 eval ac_val=\$$ac_var
2579 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2581 printf "%s\n" "$ac_var='\''$ac_val'\''"
2585 if test -n "$ac_subst_files"; then
2586 printf "%s\n" "## ------------------- ##
2587 ## File substitutions. ##
2588 ## ------------------- ##"
2590 for ac_var in $ac_subst_files
2592 eval ac_val=\$$ac_var
2594 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2596 printf "%s\n" "$ac_var='\''$ac_val'\''"
2601 if test -s confdefs.h; then
2602 printf "%s\n" "## ----------- ##
2609 test "$ac_signal" != 0 &&
2610 printf "%s\n" "$as_me: caught signal $ac_signal"
2611 printf "%s\n" "$as_me: exit $exit_status"
2613 rm -f core *.core core.conftest.* &&
2614 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2617 for ac_signal in 1 2 13 15; do
2618 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2622 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2623 rm -f -r conftest* confdefs.h
2625 printf "%s\n" "/* confdefs.h */" > confdefs.h
2627 # Predefined preprocessor variables.
2629 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2631 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2633 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2635 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2637 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2639 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2642 # Let the site file select an alternate cache file if it wants to.
2643 # Prefer an explicitly selected file to automatically selected ones.
2644 if test -n "$CONFIG_SITE"; then
2645 ac_site_files="$CONFIG_SITE"
2646 elif test "x$prefix" != xNONE; then
2647 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2649 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2652 for ac_site_file in $ac_site_files
2654 case $ac_site_file in #(
2658 ac_site_file=./$ac_site_file ;;
2660 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2662 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2663 sed 's/^/| /' "$ac_site_file" >&5
2665 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2666 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2667 as_fn_error $? "failed to load site script $ac_site_file
2668 See \`config.log' for more details" "$LINENO" 5; }
2672 if test -r "$cache_file"; then
2673 # Some versions of bash will fail to source /dev/null (special files
2674 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2675 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2677 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2679 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2680 *) . "./$cache_file";;
2684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2685 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2689 # Test code for whether the C compiler supports C89 (global declarations)
2690 ac_c_conftest_c89_globals='
2691 /* Does the compiler advertise C89 conformance?
2692 Do not test the value of __STDC__, because some compilers set it to 0
2693 while being otherwise adequately conformant. */
2694 #if !defined __STDC__
2695 # error "Compiler does not advertise C89 conformance"
2701 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2702 struct buf { int x; };
2703 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2704 static char *e (p, i)
2710 static char *f (char * (*g) (char **, int), char **p, ...)
2715 s = g (p, va_arg (v,int));
2720 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2721 function prototypes and stuff, but not \xHH hex character constants.
2722 These do not provoke an error unfortunately, instead are silently treated
2723 as an "x". The following induces an error, until -std is added to get
2724 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2725 array size at least. It is necessary to write \x00 == 0 to get something
2726 that is true only with -std. */
2727 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2729 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2730 inside strings and character constants. */
2731 #define FOO(x) '\''x'\''
2732 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2734 int test (int i, double x);
2735 struct s1 {int (*f) (int a);};
2736 struct s2 {int (*f) (double a);};
2737 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2740 # Test code for whether the C compiler supports C89 (body of main).
2741 ac_c_conftest_c89_main='
2742 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2745 # Test code for whether the C compiler supports C99 (global declarations)
2746 ac_c_conftest_c99_globals='
2747 // Does the compiler advertise C99 conformance?
2748 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2749 # error "Compiler does not advertise C99 conformance"
2752 #include <stdbool.h>
2753 extern int puts (const char *);
2754 extern int printf (const char *, ...);
2755 extern int dprintf (int, const char *, ...);
2756 extern void *malloc (size_t);
2758 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2759 // dprintf is used instead of fprintf to avoid needing to declare
2761 #define debug(...) dprintf (2, __VA_ARGS__)
2762 #define showlist(...) puts (#__VA_ARGS__)
2763 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2765 test_varargs_macros (void)
2770 debug ("X = %d\n", x);
2771 showlist (The first, second, and third items.);
2772 report (x>y, "x is %d but y is %d", x, y);
2775 // Check long long types.
2776 #define BIG64 18446744073709551615ull
2777 #define BIG32 4294967295ul
2778 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2780 #error "your preprocessor is broken"
2784 #error "your preprocessor is broken"
2786 static long long int bignum = -9223372036854775807LL;
2787 static unsigned long long int ubignum = BIG64;
2789 struct incomplete_array
2797 const wchar_t *name;
2801 typedef const char *ccp;
2804 test_restrict (ccp restrict text)
2806 // See if C++-style comments work.
2807 // Iterate through items via the restricted pointer.
2808 // Also check for declarations in for loops.
2809 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2814 // Check varargs and va_copy.
2816 test_varargs (const char *format, ...)
2819 va_start (args, format);
2821 va_copy (args_copy, args);
2823 const char *str = "";
2831 case '\''s'\'': // string
2832 str = va_arg (args_copy, const char *);
2834 case '\''d'\'': // int
2835 number = va_arg (args_copy, int);
2837 case '\''f'\'': // float
2838 fnumber = va_arg (args_copy, double);
2847 return *str && number && fnumber;
2851 # Test code for whether the C compiler supports C99 (body of main).
2852 ac_c_conftest_c99_main='
2854 _Bool success = false;
2855 success |= (argc != 0);
2858 if (test_restrict ("String literal") == 0)
2860 char *restrict newvar = "Another string";
2863 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2864 test_varargs_macros ();
2866 // Check flexible array members.
2867 struct incomplete_array *ia =
2868 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2870 for (int i = 0; i < ia->datasize; ++i)
2871 ia->data[i] = i * 1.234;
2873 // Check named initializers.
2874 struct named_init ni = {
2876 .name = L"Test wide string",
2877 .average = 543.34343,
2882 int dynamic_array[ni.number];
2883 dynamic_array[0] = argv[0][0];
2884 dynamic_array[ni.number - 1] = 543;
2886 // work around unused variable warnings
2887 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2888 || dynamic_array[ni.number - 1] != 543);
2891 # Test code for whether the C compiler supports C11 (global declarations)
2892 ac_c_conftest_c11_globals='
2893 // Does the compiler advertise C11 conformance?
2894 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2895 # error "Compiler does not advertise C11 conformance"
2899 char _Alignas (double) aligned_as_double;
2900 char _Alignas (0) no_special_alignment;
2901 extern char aligned_as_int;
2902 char _Alignas (0) _Alignas (int) aligned_as_int;
2907 int_alignment = _Alignof (int),
2908 int_array_alignment = _Alignof (int[100]),
2909 char_alignment = _Alignof (char)
2911 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2914 int _Noreturn does_not_return (void) { for (;;) continue; }
2916 // Check _Static_assert.
2917 struct test_static_assert
2920 _Static_assert (sizeof (int) <= sizeof (long int),
2921 "_Static_assert does not work in struct");
2925 // Check UTF-8 literals.
2926 #define u8 syntax error!
2927 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2929 // Check duplicate typedefs.
2930 typedef long *long_ptr;
2931 typedef long int *long_ptr;
2932 typedef long_ptr long_ptr;
2934 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2938 struct { int i; int j; };
2939 struct { int k; long int l; } w;
2945 # Test code for whether the C compiler supports C11 (body of main).
2946 ac_c_conftest_c11_main='
2947 _Static_assert ((offsetof (struct anonymous, i)
2948 == offsetof (struct anonymous, w.k)),
2949 "Anonymous union alignment botch");
2955 # Test code for whether the C compiler supports C11 (complete).
2956 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2957 ${ac_c_conftest_c99_globals}
2958 ${ac_c_conftest_c11_globals}
2961 main (int argc, char **argv)
2964 ${ac_c_conftest_c89_main}
2965 ${ac_c_conftest_c99_main}
2966 ${ac_c_conftest_c11_main}
2971 # Test code for whether the C compiler supports C99 (complete).
2972 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2973 ${ac_c_conftest_c99_globals}
2976 main (int argc, char **argv)
2979 ${ac_c_conftest_c89_main}
2980 ${ac_c_conftest_c99_main}
2985 # Test code for whether the C compiler supports C89 (complete).
2986 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2989 main (int argc, char **argv)
2992 ${ac_c_conftest_c89_main}
2997 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2998 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2999 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3000 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3001 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3002 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3003 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3004 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3005 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3006 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3007 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3008 gt_needs="$gt_needs "
3009 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
3010 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
3011 as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
3013 # Auxiliary files required by this configure script.
3014 ac_aux_files="config.rpath config.guess config.sub ltmain.sh compile missing install-sh"
3016 # Locations in which to look for auxiliary files.
3017 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3019 # Search for a directory containing all of the required auxiliary files,
3020 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3021 # If we don't find one directory that contains all the files we need,
3022 # we report the set of missing files from the *first* directory in
3023 # $ac_aux_dir_candidates and give up.
3024 ac_missing_aux_files=""
3025 ac_first_candidate=:
3026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $ac_aux_dir_candidates
3032 case $as_dir in #(((
3035 *) as_dir=$as_dir/ ;;
3039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3040 ac_aux_dir_found=yes
3042 for ac_aux in $ac_aux_files
3044 # As a special case, if "install-sh" is required, that requirement
3045 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3046 # and $ac_install_sh is set appropriately for whichever one is found.
3047 if test x"$ac_aux" = x"install-sh"
3049 if test -f "${as_dir}install-sh"; then
3050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3051 ac_install_sh="${as_dir}install-sh -c"
3052 elif test -f "${as_dir}install.sh"; then
3053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3054 ac_install_sh="${as_dir}install.sh -c"
3055 elif test -f "${as_dir}shtool"; then
3056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3057 ac_install_sh="${as_dir}shtool install -c"
3060 if $ac_first_candidate; then
3061 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3067 if test -f "${as_dir}${ac_aux}"; then
3068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3071 if $ac_first_candidate; then
3072 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3079 if test "$ac_aux_dir_found" = yes; then
3080 ac_aux_dir="$as_dir"
3083 ac_first_candidate=false
3092 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3096 # These three variables are undocumented and unsupported,
3097 # and are intended to be withdrawn in a future Autoconf release.
3098 # They can cause serious problems if a builder's source tree is in a directory
3099 # whose full name contains unusual characters.
3100 if test -f "${ac_aux_dir}config.guess"; then
3101 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3103 if test -f "${ac_aux_dir}config.sub"; then
3104 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3106 if test -f "$ac_aux_dir/configure"; then
3107 ac_configure="$SHELL ${ac_aux_dir}configure"
3110 # Check that the precious variables saved in the cache have kept the same
3112 ac_cache_corrupted=false
3113 for ac_var in $ac_precious_vars; do
3114 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3115 eval ac_new_set=\$ac_env_${ac_var}_set
3116 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3117 eval ac_new_val=\$ac_env_${ac_var}_value
3118 case $ac_old_set,$ac_new_set in
3120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3121 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3122 ac_cache_corrupted=: ;;
3124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3125 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3126 ac_cache_corrupted=: ;;
3129 if test "x$ac_old_val" != "x$ac_new_val"; then
3130 # differences in whitespace do not lead to failure.
3131 ac_old_val_w=`echo x $ac_old_val`
3132 ac_new_val_w=`echo x $ac_new_val`
3133 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3135 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3136 ac_cache_corrupted=:
3138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3139 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3140 eval $ac_var=\$ac_old_val
3142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3143 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3145 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3148 # Pass precious variables to config.status.
3149 if test "$ac_new_set" = set; then
3151 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3152 *) ac_arg=$ac_var=$ac_new_val ;;
3154 case " $ac_configure_args " in
3155 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3156 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3160 if $ac_cache_corrupted; then
3161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3164 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3165 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3166 and start over" "$LINENO" 5
3168 ## -------------------- ##
3169 ## Main body of script. ##
3170 ## -------------------- ##
3173 ac_cpp='$CPP $CPPFLAGS'
3174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3179 am__api_version='1.16'
3183 # Find a good install program. We prefer a C program (faster),
3184 # so one script is as good as another. But avoid the broken or
3185 # incompatible versions:
3186 # SysV /etc/install, /usr/sbin/install
3187 # SunOS /usr/etc/install
3188 # IRIX /sbin/install
3190 # AmigaOS /C/install, which installs bootblocks on floppy discs
3191 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3192 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3193 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3194 # OS/2's system install, which has a completely different semantic
3195 # ./install, which can be erroneously created by make from ./install.sh.
3196 # Reject install programs that cannot install multiple files.
3197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3198 printf %s "checking for a BSD-compatible install... " >&6; }
3199 if test -z "$INSTALL"; then
3200 if test ${ac_cv_path_install+y}
3202 printf %s "(cached) " >&6
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 case $as_dir in #(((
3211 *) as_dir=$as_dir/ ;;
3213 # Account for fact that we put trailing slashes in our PATH walk.
3216 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3217 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3220 # OSF1 and SCO ODT 3.0 have their own names for install.
3221 # Don't use installbsd from OSF since it installs stuff as root
3223 for ac_prog in ginstall scoinst install; do
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3226 if test $ac_prog = install &&
3227 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3228 # AIX install. It has an incompatible calling convention.
3230 elif test $ac_prog = install &&
3231 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3232 # program-specific install script used by HP pwplus--don't use.
3235 rm -rf conftest.one conftest.two conftest.dir
3236 echo one > conftest.one
3237 echo two > conftest.two
3239 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3240 test -s conftest.one && test -s conftest.two &&
3241 test -s conftest.dir/conftest.one &&
3242 test -s conftest.dir/conftest.two
3244 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3257 rm -rf conftest.one conftest.two conftest.dir
3260 if test ${ac_cv_path_install+y}; then
3261 INSTALL=$ac_cv_path_install
3263 # As a last resort, use the slow shell script. Don't cache a
3264 # value for INSTALL within a source directory, because that will
3265 # break other packages using the cache if that directory is
3266 # removed, or if the value is a relative name.
3267 INSTALL=$ac_install_sh
3270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3271 printf "%s\n" "$INSTALL" >&6; }
3273 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3274 # It thinks the first close brace ends the variable substitution.
3275 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3277 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3279 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3282 printf %s "checking whether build environment is sane... " >&6; }
3283 # Reject unsafe characters in $srcdir or the absolute working directory
3284 # name. Accept space and tab only in the latter.
3288 *[\\\"\#\$\&\'\`$am_lf]*)
3289 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3292 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3293 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3296 # Do 'set' in a subshell so we don't clobber the current shell's
3297 # arguments. Must try -L first in case configure is actually a
3298 # symlink; some systems play weird games with the mod time of symlinks
3299 # (eg FreeBSD returns the mod time of the symlink's containing
3303 for am_try in 1 2; do
3304 echo "timestamp, slept: $am_has_slept" > conftest.file
3305 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3306 if test "$*" = "X"; then
3308 set X `ls -t "$srcdir/configure" conftest.file`
3310 if test "$*" != "X $srcdir/configure conftest.file" \
3311 && test "$*" != "X conftest.file $srcdir/configure"; then
3313 # If neither matched, then we have a broken ls. This can happen
3314 # if, for instance, CONFIG_SHELL is bash and it inherits a
3315 # broken ls alias from the environment. This has actually
3316 # happened. Such a system could not be considered "sane".
3317 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3318 alias in your environment" "$LINENO" 5
3320 if test "$2" = conftest.file || test $am_try -eq 2; then
3327 test "$2" = conftest.file
3333 as_fn_error $? "newly created file is older than distributed files!
3334 Check your system clock" "$LINENO" 5
3336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3337 printf "%s\n" "yes" >&6; }
3338 # If we didn't sleep, we still need to ensure time stamps of config.status and
3339 # generated files are strictly newer.
3341 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3348 test "$program_prefix" != NONE &&
3349 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3350 # Use a double $ so make ignores it.
3351 test "$program_suffix" != NONE &&
3352 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3353 # Double any \ or $.
3354 # By default was `s,x,x', remove it if useless.
3355 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3356 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3359 # Expand $ac_aux_dir to an absolute path.
3360 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3363 if test x"${MISSING+set}" != xset; then
3364 MISSING="\${SHELL} '$am_aux_dir/missing'"
3366 # Use eval to expand $SHELL
3367 if eval "$MISSING --is-lightweight"; then
3368 am_missing_run="$MISSING "
3371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3372 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3375 if test x"${install_sh+set}" != xset; then
3378 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3380 install_sh="\${SHELL} $am_aux_dir/install-sh"
3384 # Installed binaries are usually stripped using 'strip' when the user
3385 # run "make install-strip". However 'strip' might not be the right
3386 # tool to use in cross-compilation environments, therefore Automake
3387 # will honor the 'STRIP' environment variable to overrule this program.
3388 if test "$cross_compiling" != no; then
3389 if test -n "$ac_tool_prefix"; then
3390 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3391 set dummy ${ac_tool_prefix}strip; ac_word=$2
3392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393 printf %s "checking for $ac_word... " >&6; }
3394 if test ${ac_cv_prog_STRIP+y}
3396 printf %s "(cached) " >&6
3398 if test -n "$STRIP"; then
3399 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 case $as_dir in #(((
3408 *) as_dir=$as_dir/ ;;
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3412 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3422 STRIP=$ac_cv_prog_STRIP
3423 if test -n "$STRIP"; then
3424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3425 printf "%s\n" "$STRIP" >&6; }
3427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 printf "%s\n" "no" >&6; }
3433 if test -z "$ac_cv_prog_STRIP"; then
3435 # Extract the first word of "strip", so it can be a program name with args.
3436 set dummy strip; ac_word=$2
3437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3438 printf %s "checking for $ac_word... " >&6; }
3439 if test ${ac_cv_prog_ac_ct_STRIP+y}
3441 printf %s "(cached) " >&6
3443 if test -n "$ac_ct_STRIP"; then
3444 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 case $as_dir in #(((
3453 *) as_dir=$as_dir/ ;;
3455 for ac_exec_ext in '' $ac_executable_extensions; do
3456 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3457 ac_cv_prog_ac_ct_STRIP="strip"
3458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3467 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3468 if test -n "$ac_ct_STRIP"; then
3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3470 printf "%s\n" "$ac_ct_STRIP" >&6; }
3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 printf "%s\n" "no" >&6; }
3476 if test "x$ac_ct_STRIP" = x; then
3479 case $cross_compiling:$ac_tool_warned in
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3482 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3483 ac_tool_warned=yes ;;
3488 STRIP="$ac_cv_prog_STRIP"
3492 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3496 printf %s "checking for a race-free mkdir -p... " >&6; }
3497 if test -z "$MKDIR_P"; then
3498 if test ${ac_cv_path_mkdir+y}
3500 printf %s "(cached) " >&6
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3506 case $as_dir in #(((
3509 *) as_dir=$as_dir/ ;;
3511 for ac_prog in mkdir gmkdir; do
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3514 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3515 'mkdir ('*'coreutils) '* | \
3517 'mkdir (fileutils) '4.1*)
3518 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3528 test -d ./--version && rmdir ./--version
3529 if test ${ac_cv_path_mkdir+y}; then
3530 MKDIR_P="$ac_cv_path_mkdir -p"
3532 # As a last resort, use the slow shell script. Don't cache a
3533 # value for MKDIR_P within a source directory, because that will
3534 # break other packages using the cache if that directory is
3535 # removed, or if the value is a relative name.
3536 MKDIR_P="$ac_install_sh -d"
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3540 printf "%s\n" "$MKDIR_P" >&6; }
3542 for ac_prog in gawk mawk nawk awk
3544 # Extract the first word of "$ac_prog", so it can be a program name with args.
3545 set dummy $ac_prog; ac_word=$2
3546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3547 printf %s "checking for $ac_word... " >&6; }
3548 if test ${ac_cv_prog_AWK+y}
3550 printf %s "(cached) " >&6
3552 if test -n "$AWK"; then
3553 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 case $as_dir in #(((
3562 *) as_dir=$as_dir/ ;;
3564 for ac_exec_ext in '' $ac_executable_extensions; do
3565 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3566 ac_cv_prog_AWK="$ac_prog"
3567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3577 if test -n "$AWK"; then
3578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3579 printf "%s\n" "$AWK" >&6; }
3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582 printf "%s\n" "no" >&6; }
3586 test -n "$AWK" && break
3589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3590 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3592 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3593 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3595 printf %s "(cached) " >&6
3597 cat >conftest.make <<\_ACEOF
3600 @echo '@@@%%%=$(MAKE)=@@@%%%'
3602 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3603 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3605 eval ac_cv_prog_make_${ac_make}_set=yes;;
3607 eval ac_cv_prog_make_${ac_make}_set=no;;
3611 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3613 printf "%s\n" "yes" >&6; }
3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 printf "%s\n" "no" >&6; }
3618 SET_MAKE="MAKE=${MAKE-make}"
3621 rm -rf .tst 2>/dev/null
3622 mkdir .tst 2>/dev/null
3623 if test -d .tst; then
3628 rmdir .tst 2>/dev/null
3630 # Check whether --enable-silent-rules was given.
3631 if test ${enable_silent_rules+y}
3633 enableval=$enable_silent_rules;
3636 case $enable_silent_rules in # (((
3637 yes) AM_DEFAULT_VERBOSITY=0;;
3638 no) AM_DEFAULT_VERBOSITY=1;;
3639 *) AM_DEFAULT_VERBOSITY=1;;
3641 am_make=${MAKE-make}
3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3643 printf %s "checking whether $am_make supports nested variables... " >&6; }
3644 if test ${am_cv_make_support_nested_variables+y}
3646 printf %s "(cached) " >&6
3648 if printf "%s\n" 'TRUE=$(BAR$(V))
3654 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3655 am_cv_make_support_nested_variables=yes
3657 am_cv_make_support_nested_variables=no
3660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3661 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3662 if test $am_cv_make_support_nested_variables = yes; then
3664 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3666 AM_V=$AM_DEFAULT_VERBOSITY
3667 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3671 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3672 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3673 # is not polluted with repeated "-I."
3674 am__isrc=' -I$(srcdir)'
3675 # test to see if srcdir already configured
3676 if test -f $srcdir/config.status; then
3677 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3681 # test whether we have cygpath
3682 if test -z "$CYGPATH_W"; then
3683 if (cygpath --version) >/dev/null 2>/dev/null; then
3684 CYGPATH_W='cygpath -w'
3691 # Define the identity of the package.
3692 PACKAGE='fontconfig'
3696 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3699 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3701 # Some tools Automake needs.
3703 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3706 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3709 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3712 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3715 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3717 # For better backward compatibility. To be removed once Automake 1.9.x
3718 # dies out for good. For more background, see:
3719 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3720 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3721 mkdir_p='$(MKDIR_P)'
3723 # We need awk for the "check" target (and possibly the TAP driver). The
3724 # system "awk" is bad on some platforms.
3725 # Always define AMTAR for backward compatibility. Yes, it's still used
3726 # in the wild :-( We should find a proper way to deprecate it ...
3730 # We'll loop over all known methods to create a tar archive until one works.
3731 _am_tools='gnutar pax cpio none'
3733 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3739 # Variables for tags utilities; see am/tags.am
3740 if test -z "$CTAGS"; then
3744 if test -z "$ETAGS"; then
3748 if test -z "$CSCOPE"; then
3754 # POSIX will say in a future version that running "rm -f" with no argument
3755 # is OK; and we want to be able to make that assumption in our Makefile
3756 # recipes. So use an aggressive probe to check that the usage we want is
3757 # actually supported "in the wild" to an acceptable degree.
3758 # See automake bug#10828.
3759 # To make any issue more visible, cause the running configure to be aborted
3760 # by default if the 'rm' program in use doesn't match our expectations; the
3761 # user can still override this though.
3762 if rm -f && rm -fr && rm -rf; then : OK; else
3766 Your 'rm' program seems unable to run without file operands specified
3767 on the command line, even when the '-f' option is present. This is contrary
3768 to the behaviour of most rm programs out there, and not conforming with
3769 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3771 Please tell bug-automake@gnu.org about your system, including the value
3772 of your $PATH and any error possibly output before this message. This
3773 can help us improve future automake versions.
3776 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3777 echo 'Configuration will proceed anyway, since you have set the' >&2
3778 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3782 Aborting the configuration process, to ensure you take notice of the issue.
3784 You can download and install GNU coreutils to get an 'rm' implementation
3785 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3787 If you want to complete the configuration process using your problematic
3788 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3789 to "yes", and re-run configure.
3792 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3796 # Check whether --enable-silent-rules was given.
3797 if test ${enable_silent_rules+y}
3799 enableval=$enable_silent_rules;
3802 case $enable_silent_rules in # (((
3803 yes) AM_DEFAULT_VERBOSITY=0;;
3804 no) AM_DEFAULT_VERBOSITY=1;;
3805 *) AM_DEFAULT_VERBOSITY=0;;
3807 am_make=${MAKE-make}
3808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3809 printf %s "checking whether $am_make supports nested variables... " >&6; }
3810 if test ${am_cv_make_support_nested_variables+y}
3812 printf %s "(cached) " >&6
3814 if printf "%s\n" 'TRUE=$(BAR$(V))
3820 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3821 am_cv_make_support_nested_variables=yes
3823 am_cv_make_support_nested_variables=no
3826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3827 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3828 if test $am_cv_make_support_nested_variables = yes; then
3830 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3832 AM_V=$AM_DEFAULT_VERBOSITY
3833 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3839 ac_config_headers="$ac_config_headers config.h"
3853 ac_cpp='$CPP $CPPFLAGS'
3854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3857 if test -n "$ac_tool_prefix"; then
3858 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3859 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3861 printf %s "checking for $ac_word... " >&6; }
3862 if test ${ac_cv_prog_CC+y}
3864 printf %s "(cached) " >&6
3866 if test -n "$CC"; then
3867 ac_cv_prog_CC="$CC" # Let the user override the test.
3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 case $as_dir in #(((
3876 *) as_dir=$as_dir/ ;;
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3880 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3891 if test -n "$CC"; then
3892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3893 printf "%s\n" "$CC" >&6; }
3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3896 printf "%s\n" "no" >&6; }
3901 if test -z "$ac_cv_prog_CC"; then
3903 # Extract the first word of "gcc", so it can be a program name with args.
3904 set dummy gcc; ac_word=$2
3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3906 printf %s "checking for $ac_word... " >&6; }
3907 if test ${ac_cv_prog_ac_ct_CC+y}
3909 printf %s "(cached) " >&6
3911 if test -n "$ac_ct_CC"; then
3912 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 case $as_dir in #(((
3921 *) as_dir=$as_dir/ ;;
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3925 ac_cv_prog_ac_ct_CC="gcc"
3926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3936 if test -n "$ac_ct_CC"; then
3937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3938 printf "%s\n" "$ac_ct_CC" >&6; }
3940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941 printf "%s\n" "no" >&6; }
3944 if test "x$ac_ct_CC" = x; then
3947 case $cross_compiling:$ac_tool_warned in
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3950 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3951 ac_tool_warned=yes ;;
3959 if test -z "$CC"; then
3960 if test -n "$ac_tool_prefix"; then
3961 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3962 set dummy ${ac_tool_prefix}cc; ac_word=$2
3963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3964 printf %s "checking for $ac_word... " >&6; }
3965 if test ${ac_cv_prog_CC+y}
3967 printf %s "(cached) " >&6
3969 if test -n "$CC"; then
3970 ac_cv_prog_CC="$CC" # Let the user override the test.
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 case $as_dir in #(((
3979 *) as_dir=$as_dir/ ;;
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3983 ac_cv_prog_CC="${ac_tool_prefix}cc"
3984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3994 if test -n "$CC"; then
3995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3996 printf "%s\n" "$CC" >&6; }
3998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3999 printf "%s\n" "no" >&6; }
4005 if test -z "$CC"; then
4006 # Extract the first word of "cc", so it can be a program name with args.
4007 set dummy cc; ac_word=$2
4008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4009 printf %s "checking for $ac_word... " >&6; }
4010 if test ${ac_cv_prog_CC+y}
4012 printf %s "(cached) " >&6
4014 if test -n "$CC"; then
4015 ac_cv_prog_CC="$CC" # Let the user override the test.
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 case $as_dir in #(((
4025 *) as_dir=$as_dir/ ;;
4027 for ac_exec_ext in '' $ac_executable_extensions; do
4028 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4029 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4030 ac_prog_rejected=yes
4034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4041 if test $ac_prog_rejected = yes; then
4042 # We found a bogon in the path, so make sure we never use it.
4043 set dummy $ac_cv_prog_CC
4045 if test $# != 0; then
4046 # We chose a different compiler from the bogus one.
4047 # However, it has the same basename, so the bogon will be chosen
4048 # first if we set CC to just the basename; use the full file name.
4050 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4056 if test -n "$CC"; then
4057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4058 printf "%s\n" "$CC" >&6; }
4060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061 printf "%s\n" "no" >&6; }
4066 if test -z "$CC"; then
4067 if test -n "$ac_tool_prefix"; then
4068 for ac_prog in cl.exe
4070 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4071 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4073 printf %s "checking for $ac_word... " >&6; }
4074 if test ${ac_cv_prog_CC+y}
4076 printf %s "(cached) " >&6
4078 if test -n "$CC"; then
4079 ac_cv_prog_CC="$CC" # Let the user override the test.
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 case $as_dir in #(((
4088 *) as_dir=$as_dir/ ;;
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4092 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4103 if test -n "$CC"; then
4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4105 printf "%s\n" "$CC" >&6; }
4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4108 printf "%s\n" "no" >&6; }
4112 test -n "$CC" && break
4115 if test -z "$CC"; then
4117 for ac_prog in cl.exe
4119 # Extract the first word of "$ac_prog", so it can be a program name with args.
4120 set dummy $ac_prog; ac_word=$2
4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122 printf %s "checking for $ac_word... " >&6; }
4123 if test ${ac_cv_prog_ac_ct_CC+y}
4125 printf %s "(cached) " >&6
4127 if test -n "$ac_ct_CC"; then
4128 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 case $as_dir in #(((
4137 *) as_dir=$as_dir/ ;;
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4141 ac_cv_prog_ac_ct_CC="$ac_prog"
4142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4151 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4152 if test -n "$ac_ct_CC"; then
4153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4154 printf "%s\n" "$ac_ct_CC" >&6; }
4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4157 printf "%s\n" "no" >&6; }
4161 test -n "$ac_ct_CC" && break
4164 if test "x$ac_ct_CC" = x; then
4167 case $cross_compiling:$ac_tool_warned in
4169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4170 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4171 ac_tool_warned=yes ;;
4178 if test -z "$CC"; then
4179 if test -n "$ac_tool_prefix"; then
4180 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4181 set dummy ${ac_tool_prefix}clang; ac_word=$2
4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183 printf %s "checking for $ac_word... " >&6; }
4184 if test ${ac_cv_prog_CC+y}
4186 printf %s "(cached) " >&6
4188 if test -n "$CC"; then
4189 ac_cv_prog_CC="$CC" # Let the user override the test.
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 case $as_dir in #(((
4198 *) as_dir=$as_dir/ ;;
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4202 ac_cv_prog_CC="${ac_tool_prefix}clang"
4203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4213 if test -n "$CC"; then
4214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4215 printf "%s\n" "$CC" >&6; }
4217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4218 printf "%s\n" "no" >&6; }
4223 if test -z "$ac_cv_prog_CC"; then
4225 # Extract the first word of "clang", so it can be a program name with args.
4226 set dummy clang; ac_word=$2
4227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4228 printf %s "checking for $ac_word... " >&6; }
4229 if test ${ac_cv_prog_ac_ct_CC+y}
4231 printf %s "(cached) " >&6
4233 if test -n "$ac_ct_CC"; then
4234 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 case $as_dir in #(((
4243 *) as_dir=$as_dir/ ;;
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4247 ac_cv_prog_ac_ct_CC="clang"
4248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4258 if test -n "$ac_ct_CC"; then
4259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4260 printf "%s\n" "$ac_ct_CC" >&6; }
4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263 printf "%s\n" "no" >&6; }
4266 if test "x$ac_ct_CC" = x; then
4269 case $cross_compiling:$ac_tool_warned in
4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4272 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4273 ac_tool_warned=yes ;;
4284 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4285 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4286 as_fn_error $? "no acceptable C compiler found in \$PATH
4287 See \`config.log' for more details" "$LINENO" 5; }
4289 # Provide some information about the compiler.
4290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4293 for ac_option in --version -v -V -qversion -version; do
4294 { { ac_try="$ac_compiler $ac_option >&5"
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4300 printf "%s\n" "$ac_try_echo"; } >&5
4301 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4303 if test -s conftest.err; then
4305 ... rest of stderr output deleted ...
4306 10q' conftest.err >conftest.er1
4307 cat conftest.er1 >&5
4309 rm -f conftest.er1 conftest.err
4310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4311 test $ac_status = 0; }
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4325 ac_clean_files_save=$ac_clean_files
4326 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4327 # Try to create an executable without -o first, disregard a.out.
4328 # It will help us diagnose broken compilers, and finding out an intuition
4330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4331 printf %s "checking whether the C compiler works... " >&6; }
4332 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4334 # The possible output files:
4335 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4338 for ac_file in $ac_files
4341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4342 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4347 if { { ac_try="$ac_link_default"
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4353 printf "%s\n" "$ac_try_echo"; } >&5
4354 (eval "$ac_link_default") 2>&5
4356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4357 test $ac_status = 0; }
4359 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4360 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4361 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4362 # so that the user can short-circuit this test for compilers unknown to
4364 for ac_file in $ac_files ''
4366 test -f "$ac_file" || continue
4368 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4371 # We found the default executable, but exeext='' is most
4375 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4377 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4379 # We set ac_cv_exeext here because the later test for it is not
4380 # safe: cross compilers may not add the suffix if given an `-o'
4381 # argument, so we may need to know it at that point already.
4382 # Even if this section looks crufty: it has the advantage of
4389 test "$ac_cv_exeext" = no && ac_cv_exeext=
4394 if test -z "$ac_file"
4396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4397 printf "%s\n" "no" >&6; }
4398 printf "%s\n" "$as_me: failed program was:" >&5
4399 sed 's/^/| /' conftest.$ac_ext >&5
4401 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4402 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4403 as_fn_error 77 "C compiler cannot create executables
4404 See \`config.log' for more details" "$LINENO" 5; }
4406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4407 printf "%s\n" "yes" >&6; }
4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4410 printf %s "checking for C compiler default output file name... " >&6; }
4411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4412 printf "%s\n" "$ac_file" >&6; }
4413 ac_exeext=$ac_cv_exeext
4415 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4416 ac_clean_files=$ac_clean_files_save
4417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4418 printf %s "checking for suffix of executables... " >&6; }
4419 if { { ac_try="$ac_link"
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425 printf "%s\n" "$ac_try_echo"; } >&5
4426 (eval "$ac_link") 2>&5
4428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429 test $ac_status = 0; }
4431 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4432 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4433 # work properly (i.e., refer to `conftest.exe'), while it won't with
4435 for ac_file in conftest.exe conftest conftest.*; do
4436 test -f "$ac_file" || continue
4438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4439 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4445 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4446 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4447 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4448 See \`config.log' for more details" "$LINENO" 5; }
4450 rm -f conftest conftest$ac_cv_exeext
4451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4452 printf "%s\n" "$ac_cv_exeext" >&6; }
4454 rm -f conftest.$ac_ext
4455 EXEEXT=$ac_cv_exeext
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4463 FILE *f = fopen ("conftest.out", "w");
4464 return ferror (f) || fclose (f) != 0;
4470 ac_clean_files="$ac_clean_files conftest.out"
4471 # Check that the compiler produces executables we can run. If not, either
4472 # the compiler is broken, or we cross compile.
4473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4474 printf %s "checking whether we are cross compiling... " >&6; }
4475 if test "$cross_compiling" != yes; then
4476 { { ac_try="$ac_link"
4478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4479 *) ac_try_echo=$ac_try;;
4481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4482 printf "%s\n" "$ac_try_echo"; } >&5
4483 (eval "$ac_link") 2>&5
4485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4486 test $ac_status = 0; }
4487 if { ac_try='./conftest$ac_cv_exeext'
4488 { { case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4493 printf "%s\n" "$ac_try_echo"; } >&5
4494 (eval "$ac_try") 2>&5
4496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4497 test $ac_status = 0; }; }; then
4500 if test "$cross_compiling" = maybe; then
4503 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4504 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4505 as_fn_error 77 "cannot run C compiled programs.
4506 If you meant to cross compile, use \`--host'.
4507 See \`config.log' for more details" "$LINENO" 5; }
4511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4512 printf "%s\n" "$cross_compiling" >&6; }
4514 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4515 ac_clean_files=$ac_clean_files_save
4516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4517 printf %s "checking for suffix of object files... " >&6; }
4518 if test ${ac_cv_objext+y}
4520 printf %s "(cached) " >&6
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4533 rm -f conftest.o conftest.obj
4534 if { { ac_try="$ac_compile"
4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4540 printf "%s\n" "$ac_try_echo"; } >&5
4541 (eval "$ac_compile") 2>&5
4543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4544 test $ac_status = 0; }
4546 for ac_file in conftest.o conftest.obj conftest.*; do
4547 test -f "$ac_file" || continue;
4549 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4550 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4555 printf "%s\n" "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4558 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4559 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4560 as_fn_error $? "cannot compute suffix of object files: cannot compile
4561 See \`config.log' for more details" "$LINENO" 5; }
4563 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4566 printf "%s\n" "$ac_cv_objext" >&6; }
4567 OBJEXT=$ac_cv_objext
4569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4570 printf %s "checking whether the compiler supports GNU C... " >&6; }
4571 if test ${ac_cv_c_compiler_gnu+y}
4573 printf %s "(cached) " >&6
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4589 if ac_fn_c_try_compile "$LINENO"
4595 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4596 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4600 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4603 if test $ac_compiler_gnu = yes; then
4608 ac_test_CFLAGS=${CFLAGS+y}
4609 ac_save_CFLAGS=$CFLAGS
4610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4611 printf %s "checking whether $CC accepts -g... " >&6; }
4612 if test ${ac_cv_prog_cc_g+y}
4614 printf %s "(cached) " >&6
4616 ac_save_c_werror_flag=$ac_c_werror_flag
4617 ac_c_werror_flag=yes
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4631 if ac_fn_c_try_compile "$LINENO"
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4647 if ac_fn_c_try_compile "$LINENO"
4651 ac_c_werror_flag=$ac_save_c_werror_flag
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h. */
4664 if ac_fn_c_try_compile "$LINENO"
4668 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4670 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4673 ac_c_werror_flag=$ac_save_c_werror_flag
4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4676 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4677 if test $ac_test_CFLAGS; then
4678 CFLAGS=$ac_save_CFLAGS
4679 elif test $ac_cv_prog_cc_g = yes; then
4680 if test "$GCC" = yes; then
4686 if test "$GCC" = yes; then
4693 if test x$ac_prog_cc_stdc = xno
4695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4696 printf %s "checking for $CC option to enable C11 features... " >&6; }
4697 if test ${ac_cv_prog_cc_c11+y}
4699 printf %s "(cached) " >&6
4701 ac_cv_prog_cc_c11=no
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4705 $ac_c_conftest_c11_program
4707 for ac_arg in '' -std=gnu11
4709 CC="$ac_save_CC $ac_arg"
4710 if ac_fn_c_try_compile "$LINENO"
4712 ac_cv_prog_cc_c11=$ac_arg
4714 rm -f core conftest.err conftest.$ac_objext conftest.beam
4715 test "x$ac_cv_prog_cc_c11" != "xno" && break
4717 rm -f conftest.$ac_ext
4721 if test "x$ac_cv_prog_cc_c11" = xno
4723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4724 printf "%s\n" "unsupported" >&6; }
4726 if test "x$ac_cv_prog_cc_c11" = x
4728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4729 printf "%s\n" "none needed" >&6; }
4731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4732 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4733 CC="$CC $ac_cv_prog_cc_c11"
4735 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4739 if test x$ac_prog_cc_stdc = xno
4741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4742 printf %s "checking for $CC option to enable C99 features... " >&6; }
4743 if test ${ac_cv_prog_cc_c99+y}
4745 printf %s "(cached) " >&6
4747 ac_cv_prog_cc_c99=no
4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h. */
4751 $ac_c_conftest_c99_program
4753 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4755 CC="$ac_save_CC $ac_arg"
4756 if ac_fn_c_try_compile "$LINENO"
4758 ac_cv_prog_cc_c99=$ac_arg
4760 rm -f core conftest.err conftest.$ac_objext conftest.beam
4761 test "x$ac_cv_prog_cc_c99" != "xno" && break
4763 rm -f conftest.$ac_ext
4767 if test "x$ac_cv_prog_cc_c99" = xno
4769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4770 printf "%s\n" "unsupported" >&6; }
4772 if test "x$ac_cv_prog_cc_c99" = x
4774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4775 printf "%s\n" "none needed" >&6; }
4777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4778 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4779 CC="$CC $ac_cv_prog_cc_c99"
4781 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4785 if test x$ac_prog_cc_stdc = xno
4787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4788 printf %s "checking for $CC option to enable C89 features... " >&6; }
4789 if test ${ac_cv_prog_cc_c89+y}
4791 printf %s "(cached) " >&6
4793 ac_cv_prog_cc_c89=no
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4797 $ac_c_conftest_c89_program
4799 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4801 CC="$ac_save_CC $ac_arg"
4802 if ac_fn_c_try_compile "$LINENO"
4804 ac_cv_prog_cc_c89=$ac_arg
4806 rm -f core conftest.err conftest.$ac_objext conftest.beam
4807 test "x$ac_cv_prog_cc_c89" != "xno" && break
4809 rm -f conftest.$ac_ext
4813 if test "x$ac_cv_prog_cc_c89" = xno
4815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4816 printf "%s\n" "unsupported" >&6; }
4818 if test "x$ac_cv_prog_cc_c89" = x
4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4821 printf "%s\n" "none needed" >&6; }
4823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4824 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4825 CC="$CC $ac_cv_prog_cc_c89"
4827 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4833 ac_cpp='$CPP $CPPFLAGS'
4834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4840 ac_cpp='$CPP $CPPFLAGS'
4841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4845 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4846 if test ${am_cv_prog_cc_c_o+y}
4848 printf %s "(cached) " >&6
4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851 /* end confdefs.h. */
4861 # Make sure it works both with $CC and with simple cc.
4862 # Following AC_PROG_CC_C_O, we do the test twice because some
4863 # compilers refuse to overwrite an existing .o file with -o,
4864 # though they will create one.
4865 am_cv_prog_cc_c_o=yes
4867 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4868 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); } \
4872 && test -f conftest2.$ac_objext; then
4875 am_cv_prog_cc_c_o=no
4879 rm -f core conftest*
4882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4883 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4884 if test "$am_cv_prog_cc_c_o" != yes; then
4885 # Losing compiler, so override with the script.
4886 # FIXME: It is wrong to rewrite CC.
4887 # But if we don't then we get into trouble of one sort or another.
4888 # A longer-term fix would be to have automake use am__CC in this case,
4889 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4890 CC="$am_aux_dir/compile $CC"
4893 ac_cpp='$CPP $CPPFLAGS'
4894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4898 DEPDIR="${am__leading_dot}deps"
4900 ac_config_commands="$ac_config_commands depfiles"
4902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4903 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4904 cat > confinc.mk << 'END'
4906 @echo this is the am__doit target >confinc.out
4911 # BSD make does it like this.
4912 echo '.include "confinc.mk" # ignored' > confmf.BSD
4913 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4914 echo 'include confinc.mk # ignored' > confmf.GNU
4916 for s in GNU BSD; do
4917 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4918 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }
4922 case $?:`cat confinc.out 2>/dev/null` in #(
4923 '0:this is the am__doit target') :
4926 am__include='.include' am__quote='"' ;; #(
4928 am__include='include' am__quote='' ;;
4933 if test "$am__include" != "#"; then
4934 _am_result="yes ($s style)"
4938 rm -f confinc.* confmf.*
4939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4940 printf "%s\n" "${_am_result}" >&6; }
4942 # Check whether --enable-dependency-tracking was given.
4943 if test ${enable_dependency_tracking+y}
4945 enableval=$enable_dependency_tracking;
4948 if test "x$enable_dependency_tracking" != xno; then
4949 am_depcomp="$ac_aux_dir/depcomp"
4953 if test "x$enable_dependency_tracking" != xno; then
4963 depcc="$CC" am_compiler_list=
4965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4966 printf %s "checking dependency style of $depcc... " >&6; }
4967 if test ${am_cv_CC_dependencies_compiler_type+y}
4969 printf %s "(cached) " >&6
4971 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4972 # We make a subdir and do the tests there. Otherwise we can end up
4973 # making bogus files that we don't know about and never remove. For
4974 # instance it was reported that on HP-UX the gcc test will end up
4975 # making a dummy file named 'D' -- because '-MD' means "put the output
4979 # Copy depcomp to subdir because otherwise we won't find it if we're
4980 # using a relative directory.
4981 cp "$am_depcomp" conftest.dir
4983 # We will build objects and dependencies in a subdirectory because
4984 # it helps to detect inapplicable dependency modes. For instance
4985 # both Tru64's cc and ICC support -MD to output dependencies as a
4986 # side effect of compilation, but ICC will put the dependencies in
4987 # the current directory while Tru64 will put them in the object
4991 am_cv_CC_dependencies_compiler_type=none
4992 if test "$am_compiler_list" = ""; then
4993 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4996 case " $depcc " in #(
4997 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5000 for depmode in $am_compiler_list; do
5001 # Setup a source with many dependencies, because some compilers
5002 # like to wrap large dependency lists on column 80 (with \), and
5003 # we should not choose a depcomp mode which is confused by this.
5005 # We need to recreate these files for each test, as the compiler may
5006 # overwrite some of them when testing with obscure command lines.
5007 # This happens at least with the AIX C compiler.
5009 for i in 1 2 3 4 5 6; do
5010 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5011 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5012 # Solaris 10 /bin/sh.
5013 echo '/* dummy */' > sub/conftst$i.h
5015 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5017 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5018 # mode. It turns out that the SunPro C++ compiler does not properly
5019 # handle '-M -o', and we need to detect this. Also, some Intel
5020 # versions had trouble with output in subdirs.
5021 am__obj=sub/conftest.${OBJEXT-o}
5022 am__minus_obj="-o $am__obj"
5025 # This depmode causes a compiler race in universal mode.
5026 test "$am__universal" = false || continue
5029 # After this tag, mechanisms are not by side-effect, so they'll
5030 # only be used when explicitly requested.
5031 if test "x$enable_dependency_tracking" = xyes; then
5037 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5038 # This compiler won't grok '-c -o', but also, the minuso test has
5039 # not run yet. These depmodes are late enough in the game, and
5040 # so weak that their functioning should not be impacted.
5041 am__obj=conftest.${OBJEXT-o}
5046 if depmode=$depmode \
5047 source=sub/conftest.c object=$am__obj \
5048 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5049 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5050 >/dev/null 2>conftest.err &&
5051 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5052 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5053 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5054 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5055 # icc doesn't choke on unknown options, it will just issue warnings
5056 # or remarks (even with -Werror). So we grep stderr for any message
5057 # that says an option was ignored or not supported.
5058 # When given -MP, icc 7.0 and 7.1 complain thusly:
5059 # icc: Command line warning: ignoring option '-M'; no argument required
5060 # The diagnosis changed in icc 8.0:
5061 # icc: Command line remark: option '-MP' not supported
5062 if (grep 'ignoring option' conftest.err ||
5063 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5064 am_cv_CC_dependencies_compiler_type=$depmode
5073 am_cv_CC_dependencies_compiler_type=none
5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5078 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5079 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5082 test "x$enable_dependency_tracking" != xno \
5083 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5085 am__fastdepCC_FALSE='#'
5087 am__fastdepCC_TRUE='#'
5088 am__fastdepCC_FALSE=
5093 ac_header= ac_cache=
5094 for ac_item in $ac_header_c_list
5096 if test $ac_cache; then
5097 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5098 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5099 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5101 ac_header= ac_cache=
5102 elif test $ac_header; then
5116 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5119 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5129 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5130 if test ${ac_cv_safe_to_define___extensions__+y}
5132 printf %s "(cached) " >&6
5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135 /* end confdefs.h. */
5137 # define __EXTENSIONS__ 1
5138 $ac_includes_default
5147 if ac_fn_c_try_compile "$LINENO"
5149 ac_cv_safe_to_define___extensions__=yes
5151 ac_cv_safe_to_define___extensions__=no
5153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5156 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5159 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5160 if test ${ac_cv_should_define__xopen_source+y}
5162 printf %s "(cached) " >&6
5164 ac_cv_should_define__xopen_source=no
5165 if test $ac_cv_header_wchar_h = yes
5167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168 /* end confdefs.h. */
5180 if ac_fn_c_try_compile "$LINENO"
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5187 #define _XOPEN_SOURCE 500
5198 if ac_fn_c_try_compile "$LINENO"
5200 ac_cv_should_define__xopen_source=yes
5202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5204 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5208 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5210 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5212 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5214 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5216 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5218 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5220 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5222 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5224 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5226 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5228 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5230 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5232 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5234 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5236 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5238 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5240 if test $ac_cv_header_minix_config_h = yes
5243 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5245 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5247 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5252 if test $ac_cv_safe_to_define___extensions__ = yes
5254 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5257 if test $ac_cv_should_define__xopen_source = yes
5259 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5263 # Check whether --enable-largefile was given.
5264 if test ${enable_largefile+y}
5266 enableval=$enable_largefile;
5269 if test "$enable_largefile" != no; then
5271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5272 printf %s "checking for special C compiler options needed for large files... " >&6; }
5273 if test ${ac_cv_sys_largefile_CC+y}
5275 printf %s "(cached) " >&6
5277 ac_cv_sys_largefile_CC=no
5278 if test "$GCC" != yes; then
5281 # IRIX 6.2 and later do not support large files by default,
5282 # so use the C compiler's -n32 option if that helps.
5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h. */
5285 #include <sys/types.h>
5286 /* Check that off_t can represent 2**63 - 1 correctly.
5287 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5288 since some C++ compilers masquerading as C compilers
5289 incorrectly reject 9223372036854775807. */
5290 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5291 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5292 && LARGE_OFF_T % 2147483647 == 1)
5302 if ac_fn_c_try_compile "$LINENO"
5306 rm -f core conftest.err conftest.$ac_objext conftest.beam
5308 if ac_fn_c_try_compile "$LINENO"
5310 ac_cv_sys_largefile_CC=' -n32'; break
5312 rm -f core conftest.err conftest.$ac_objext conftest.beam
5316 rm -f conftest.$ac_ext
5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5320 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
5321 if test "$ac_cv_sys_largefile_CC" != no; then
5322 CC=$CC$ac_cv_sys_largefile_CC
5325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5326 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5327 if test ${ac_cv_sys_file_offset_bits+y}
5329 printf %s "(cached) " >&6
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5334 #include <sys/types.h>
5335 /* Check that off_t can represent 2**63 - 1 correctly.
5336 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5337 since some C++ compilers masquerading as C compilers
5338 incorrectly reject 9223372036854775807. */
5339 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5340 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5341 && LARGE_OFF_T % 2147483647 == 1)
5351 if ac_fn_c_try_compile "$LINENO"
5353 ac_cv_sys_file_offset_bits=no; break
5355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h. */
5358 #define _FILE_OFFSET_BITS 64
5359 #include <sys/types.h>
5360 /* Check that off_t can represent 2**63 - 1 correctly.
5361 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5362 since some C++ compilers masquerading as C compilers
5363 incorrectly reject 9223372036854775807. */
5364 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5365 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5366 && LARGE_OFF_T % 2147483647 == 1)
5376 if ac_fn_c_try_compile "$LINENO"
5378 ac_cv_sys_file_offset_bits=64; break
5380 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5381 ac_cv_sys_file_offset_bits=unknown
5385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5386 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
5387 case $ac_cv_sys_file_offset_bits in #(
5390 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
5394 if test $ac_cv_sys_file_offset_bits = unknown; then
5395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5396 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
5397 if test ${ac_cv_sys_large_files+y}
5399 printf %s "(cached) " >&6
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5404 #include <sys/types.h>
5405 /* Check that off_t can represent 2**63 - 1 correctly.
5406 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5407 since some C++ compilers masquerading as C compilers
5408 incorrectly reject 9223372036854775807. */
5409 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5410 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5411 && LARGE_OFF_T % 2147483647 == 1)
5421 if ac_fn_c_try_compile "$LINENO"
5423 ac_cv_sys_large_files=no; break
5425 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5428 #define _LARGE_FILES 1
5429 #include <sys/types.h>
5430 /* Check that off_t can represent 2**63 - 1 correctly.
5431 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5432 since some C++ compilers masquerading as C compilers
5433 incorrectly reject 9223372036854775807. */
5434 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5435 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5436 && LARGE_OFF_T % 2147483647 == 1)
5446 if ac_fn_c_try_compile "$LINENO"
5448 ac_cv_sys_large_files=1; break
5450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5451 ac_cv_sys_large_files=unknown
5455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5456 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
5457 case $ac_cv_sys_large_files in #(
5460 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5469 printf %s "checking whether ln -s works... " >&6; }
5471 if test "$LN_S" = "ln -s"; then
5472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5473 printf "%s\n" "yes" >&6; }
5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5476 printf "%s\n" "no, using $LN_S" >&6; }
5479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5480 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5482 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5483 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5485 printf %s "(cached) " >&6
5487 cat >conftest.make <<\_ACEOF
5490 @echo '@@@%%%=$(MAKE)=@@@%%%'
5492 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5493 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5495 eval ac_cv_prog_make_${ac_make}_set=yes;;
5497 eval ac_cv_prog_make_${ac_make}_set=no;;
5501 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5503 printf "%s\n" "yes" >&6; }
5506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507 printf "%s\n" "no" >&6; }
5508 SET_MAKE="MAKE=${MAKE-make}"
5518 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5519 if test -n "$ac_tool_prefix"; then
5520 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5521 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523 printf %s "checking for $ac_word... " >&6; }
5524 if test ${ac_cv_path_PKG_CONFIG+y}
5526 printf %s "(cached) " >&6
5530 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 case $as_dir in #(((
5540 *) as_dir=$as_dir/ ;;
5542 for ac_exec_ext in '' $ac_executable_extensions; do
5543 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5544 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5555 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5556 if test -n "$PKG_CONFIG"; then
5557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5558 printf "%s\n" "$PKG_CONFIG" >&6; }
5560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 printf "%s\n" "no" >&6; }
5566 if test -z "$ac_cv_path_PKG_CONFIG"; then
5567 ac_pt_PKG_CONFIG=$PKG_CONFIG
5568 # Extract the first word of "pkg-config", so it can be a program name with args.
5569 set dummy pkg-config; ac_word=$2
5570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571 printf %s "checking for $ac_word... " >&6; }
5572 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5574 printf %s "(cached) " >&6
5576 case $ac_pt_PKG_CONFIG in
5578 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 case $as_dir in #(((
5588 *) as_dir=$as_dir/ ;;
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5592 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5603 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5604 if test -n "$ac_pt_PKG_CONFIG"; then
5605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5606 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609 printf "%s\n" "no" >&6; }
5612 if test "x$ac_pt_PKG_CONFIG" = x; then
5615 case $cross_compiling:$ac_tool_warned in
5617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5618 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5619 ac_tool_warned=yes ;;
5621 PKG_CONFIG=$ac_pt_PKG_CONFIG
5624 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5628 if test -n "$PKG_CONFIG"; then
5629 _pkg_min_version=0.9.0
5630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5631 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5632 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5634 printf "%s\n" "yes" >&6; }
5636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 printf "%s\n" "no" >&6; }
5644 # Check whether --with-pkgconfigdir was given.
5645 if test ${with_pkgconfigdir+y}
5647 withval=$with_pkgconfigdir;
5649 with_pkgconfigdir='${libdir}/pkgconfig'
5652 pkgconfigdir=$with_pkgconfigdir
5659 GIT=${GIT-"${am_missing_run}git"}
5662 GPERF=${GPERF-"${am_missing_run}gperf"}
5670 if test -n "$PYTHON"; then
5671 # If the user set $PYTHON, use it and don't search something else.
5672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3" >&5
5673 printf %s "checking whether $PYTHON version is >= 3... " >&6; }
5675 # split strings by '.' and convert to numeric. Append some zeros
5676 # because we need at least 4 digits for the hex conversion.
5677 # map returns an iterator in Python 3.0 and a list in 2.x
5678 minver = list(map(int, '3'.split('.'))) + [0, 0, 0]
5680 # xrange is not present in Python 3.0 and range returns an iterator
5681 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5682 sys.exit(sys.hexversion < minverhex)"
5683 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5684 ($PYTHON -c "$prog") >&5 2>&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); }
5689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5690 printf "%s\n" "yes" >&6; }
5692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693 printf "%s\n" "no" >&6; }
5694 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5696 am_display_PYTHON=$PYTHON
5698 # Otherwise, try each interpreter until we find one that satisfies
5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3" >&5
5701 printf %s "checking for a Python interpreter with version >= 3... " >&6; }
5702 if test ${am_cv_pathless_PYTHON+y}
5704 printf %s "(cached) " >&6
5707 for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
5708 test "$am_cv_pathless_PYTHON" = none && break
5710 # split strings by '.' and convert to numeric. Append some zeros
5711 # because we need at least 4 digits for the hex conversion.
5712 # map returns an iterator in Python 3.0 and a list in 2.x
5713 minver = list(map(int, '3'.split('.'))) + [0, 0, 0]
5715 # xrange is not present in Python 3.0 and range returns an iterator
5716 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5717 sys.exit(sys.hexversion < minverhex)"
5718 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5719 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }
5728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5729 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
5730 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5731 if test "$am_cv_pathless_PYTHON" = none; then
5734 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5735 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5737 printf %s "checking for $ac_word... " >&6; }
5738 if test ${ac_cv_path_PYTHON+y}
5740 printf %s "(cached) " >&6
5744 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 case $as_dir in #(((
5754 *) as_dir=$as_dir/ ;;
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5758 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
5759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5769 PYTHON=$ac_cv_path_PYTHON
5770 if test -n "$PYTHON"; then
5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5772 printf "%s\n" "$PYTHON" >&6; }
5774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775 printf "%s\n" "no" >&6; }
5780 am_display_PYTHON=$am_cv_pathless_PYTHON
5784 if test "$PYTHON" = :; then
5785 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5789 printf %s "checking for $am_display_PYTHON version... " >&6; }
5790 if test ${am_cv_python_version+y}
5792 printf %s "(cached) " >&6
5794 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"`
5796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5797 printf "%s\n" "$am_cv_python_version" >&6; }
5798 PYTHON_VERSION=$am_cv_python_version
5801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5802 printf %s "checking for $am_display_PYTHON platform... " >&6; }
5803 if test ${am_cv_python_platform+y}
5805 printf %s "(cached) " >&6
5807 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5810 printf "%s\n" "$am_cv_python_platform" >&6; }
5811 PYTHON_PLATFORM=$am_cv_python_platform
5814 if test "x$prefix" = xNONE; then
5815 am__usable_prefix=$ac_default_prefix
5817 am__usable_prefix=$prefix
5820 # Allow user to request using sys.* values from Python,
5821 # instead of the GNU $prefix values.
5823 # Check whether --with-python-sys-prefix was given.
5824 if test ${with_python_sys_prefix+y}
5826 withval=$with_python_sys_prefix; am_use_python_sys=:
5828 am_use_python_sys=false
5832 # Allow user to override whatever the default Python prefix is.
5834 # Check whether --with-python_prefix was given.
5835 if test ${with_python_prefix+y}
5837 withval=$with_python_prefix; am_python_prefix_subst=$withval
5838 am_cv_python_prefix=$withval
5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
5840 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
5842 printf "%s\n" "$am_cv_python_prefix" >&6; }
5845 if $am_use_python_sys; then
5846 # using python sys.prefix value, not GNU
5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
5848 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
5849 if test ${am_cv_python_prefix+y}
5851 printf %s "(cached) " >&6
5853 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
5855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
5856 printf "%s\n" "$am_cv_python_prefix" >&6; }
5858 case $am_cv_python_prefix in
5859 $am__usable_prefix*)
5860 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
5861 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
5864 am_python_prefix_subst=$am_cv_python_prefix
5867 else # using GNU prefix value, not python sys.prefix
5868 am_python_prefix_subst='${prefix}'
5869 am_python_prefix=$am_python_prefix_subst
5870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
5871 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
5872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
5873 printf "%s\n" "$am_python_prefix" >&6; }
5877 # Substituting python_prefix_subst value.
5878 PYTHON_PREFIX=$am_python_prefix_subst
5881 # emacs-page Now do it all over again for Python exec_prefix, but with yet
5882 # another conditional: fall back to regular prefix if that was specified.
5884 # Check whether --with-python_exec_prefix was given.
5885 if test ${with_python_exec_prefix+y}
5887 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
5888 am_cv_python_exec_prefix=$withval
5889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
5890 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
5891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
5892 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
5895 # no explicit --with-python_exec_prefix, but if
5896 # --with-python_prefix was given, use its value for python_exec_prefix too.
5897 if test -n "$with_python_prefix"
5899 am_python_exec_prefix_subst=$with_python_prefix
5900 am_cv_python_exec_prefix=$with_python_prefix
5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
5902 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
5904 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
5907 # Set am__usable_exec_prefix whether using GNU or Python values,
5908 # since we use that variable for pyexecdir.
5909 if test "x$exec_prefix" = xNONE; then
5910 am__usable_exec_prefix=$am__usable_prefix
5912 am__usable_exec_prefix=$exec_prefix
5915 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
5916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
5917 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
5918 if test ${am_cv_python_exec_prefix+y}
5920 printf %s "(cached) " >&6
5922 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
5924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
5925 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
5926 case $am_cv_python_exec_prefix in
5927 $am__usable_exec_prefix*)
5928 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
5929 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
5932 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
5935 else # using GNU $exec_prefix, not python sys.exec_prefix
5936 am_python_exec_prefix_subst='${exec_prefix}'
5937 am_python_exec_prefix=$am_python_exec_prefix_subst
5938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
5939 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
5941 printf "%s\n" "$am_python_exec_prefix" >&6; }
5946 # Substituting python_exec_prefix_subst.
5947 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
5950 # Factor out some code duplication into this shell variable.
5951 am_python_setup_sysconfig="\
5953 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5954 # with python 3.x. See automake bug#10227.
5958 can_use_sysconfig = 0
5960 can_use_sysconfig = 1
5961 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5962 # <https://github.com/pypa/virtualenv/issues/118>
5964 from platform import python_implementation
5965 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5966 can_use_sysconfig = 0
5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
5972 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
5973 if test ${am_cv_python_pythondir+y}
5975 printf %s "(cached) " >&6
5977 if test "x$am_cv_python_prefix" = x; then
5978 am_py_prefix=$am__usable_prefix
5980 am_py_prefix=$am_cv_python_prefix
5982 am_cv_python_pythondir=`$PYTHON -c "
5983 $am_python_setup_sysconfig
5984 if can_use_sysconfig:
5985 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5987 from distutils import sysconfig
5988 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5989 sys.stdout.write(sitedir)"`
5991 case $am_cv_python_pythondir in
5993 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5994 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
5997 case $am_py_prefix in
5999 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
6006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6007 printf "%s\n" "$am_cv_python_pythondir" >&6; }
6008 pythondir=$am_cv_python_pythondir
6011 pkgpythondir=\${pythondir}/$PACKAGE
6014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
6015 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
6016 if test ${am_cv_python_pyexecdir+y}
6018 printf %s "(cached) " >&6
6020 if test "x$am_cv_python_exec_prefix" = x; then
6021 am_py_exec_prefix=$am__usable_exec_prefix
6023 am_py_exec_prefix=$am_cv_python_exec_prefix
6025 am_cv_python_pyexecdir=`$PYTHON -c "
6026 $am_python_setup_sysconfig
6027 if can_use_sysconfig:
6028 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})
6030 from distutils import sysconfig
6031 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
6032 sys.stdout.write(sitedir)"`
6034 case $am_cv_python_pyexecdir in
6035 $am_py_exec_prefix*)
6036 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6037 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
6040 case $am_py_exec_prefix in
6042 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
6049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6050 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
6051 pyexecdir=$am_cv_python_pyexecdir
6054 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RM macro" >&5
6062 printf %s "checking for RM macro... " >&6; }
6063 _predefined_rm=`make -p -f /dev/null 2>/dev/null|grep '^RM ='|sed -e 's/^RM = //'`
6064 if test "x$_predefined_rm" = "x"; then
6065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no predefined RM" >&5
6066 printf "%s\n" "no predefined RM" >&6; }
6067 # Extract the first word of "rm", so it can be a program name with args.
6068 set dummy rm; ac_word=$2
6069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070 printf %s "checking for $ac_word... " >&6; }
6071 if test ${ac_cv_prog_RM+y}
6073 printf %s "(cached) " >&6
6075 if test -n "$RM"; then
6076 ac_cv_prog_RM="$RM" # Let the user override the test.
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 case $as_dir in #(((
6085 *) as_dir=$as_dir/ ;;
6087 for ac_exec_ext in '' $ac_executable_extensions; do
6088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6089 ac_cv_prog_RM="rm -f"
6090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6100 if test -n "$RM"; then
6101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
6102 printf "%s\n" "$RM" >&6; }
6104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105 printf "%s\n" "no" >&6; }
6110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_predefined_rm" >&5
6111 printf "%s\n" "$_predefined_rm" >&6; }
6117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6118 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6123 macro_version='2.4.7'
6124 macro_revision='2.4.7'
6139 ltmain=$ac_aux_dir/ltmain.sh
6143 # Make sure we can run config.sub.
6144 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6145 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6148 printf %s "checking build system type... " >&6; }
6149 if test ${ac_cv_build+y}
6151 printf %s "(cached) " >&6
6153 ac_build_alias=$build_alias
6154 test "x$ac_build_alias" = x &&
6155 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6156 test "x$ac_build_alias" = x &&
6157 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6158 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6159 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6163 printf "%s\n" "$ac_cv_build" >&6; }
6164 case $ac_cv_build in
6166 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6169 ac_save_IFS=$IFS; IFS='-'
6175 # Remember, the first character of IFS is used to create $*,
6176 # except with old shells:
6179 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6183 printf %s "checking host system type... " >&6; }
6184 if test ${ac_cv_host+y}
6186 printf %s "(cached) " >&6
6188 if test "x$host_alias" = x; then
6189 ac_cv_host=$ac_cv_build
6191 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6192 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6197 printf "%s\n" "$ac_cv_host" >&6; }
6200 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6203 ac_save_IFS=$IFS; IFS='-'
6209 # Remember, the first character of IFS is used to create $*,
6210 # except with old shells:
6213 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6216 # Backslashify metacharacters that are still active within
6217 # double-quoted strings.
6218 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6220 # Same as above, but do not quote variable references.
6221 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6223 # Sed substitution to delay expansion of an escaped shell variable in a
6224 # double_quote_subst'ed string.
6225 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6227 # Sed substitution to delay expansion of an escaped single quote.
6228 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6230 # Sed substitution to avoid accidental globbing in evaled expressions
6231 no_glob_subst='s/\*/\\\*/g'
6233 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6234 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6235 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6238 printf %s "checking how to print strings... " >&6; }
6239 # Test print first, because it will be a builtin if present.
6240 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6241 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6243 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6246 # Use this function as a fallback that always works.
6247 func_fallback_echo ()
6249 eval 'cat <<_LTECHO_EOF
6253 ECHO='func_fallback_echo'
6256 # func_echo_all arg...
6257 # Invoke $ECHO with all args, space-separated.
6264 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6265 printf "%s\n" "printf" >&6; } ;;
6266 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6267 printf "%s\n" "print -r" >&6; } ;;
6268 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6269 printf "%s\n" "cat" >&6; } ;;
6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6286 printf %s "checking for a sed that does not truncate output... " >&6; }
6287 if test ${ac_cv_path_SED+y}
6289 printf %s "(cached) " >&6
6291 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6292 for ac_i in 1 2 3 4 5 6 7; do
6293 ac_script="$ac_script$as_nl$ac_script"
6295 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6296 { ac_script=; unset ac_script;}
6297 if test -z "$SED"; then
6298 ac_path_SED_found=false
6299 # Loop through the user's path and test for each of PROGNAME-LIST
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 case $as_dir in #(((
6307 *) as_dir=$as_dir/ ;;
6309 for ac_prog in sed gsed
6311 for ac_exec_ext in '' $ac_executable_extensions; do
6312 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6313 as_fn_executable_p "$ac_path_SED" || continue
6314 # Check for GNU ac_path_SED and select it if it is found.
6315 # Check for GNU $ac_path_SED
6316 case `"$ac_path_SED" --version 2>&1` in
6318 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6321 printf %s 0123456789 >"conftest.in"
6324 cat "conftest.in" "conftest.in" >"conftest.tmp"
6325 mv "conftest.tmp" "conftest.in"
6326 cp "conftest.in" "conftest.nl"
6327 printf "%s\n" '' >> "conftest.nl"
6328 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6330 as_fn_arith $ac_count + 1 && ac_count=$as_val
6331 if test $ac_count -gt ${ac_path_SED_max-0}; then
6332 # Best one so far, save it but keep looking for a better one
6333 ac_cv_path_SED="$ac_path_SED"
6334 ac_path_SED_max=$ac_count
6336 # 10*(2^10) chars as input seems more than enough
6337 test $ac_count -gt 10 && break
6339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6342 $ac_path_SED_found && break 3
6347 if test -z "$ac_cv_path_SED"; then
6348 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6356 printf "%s\n" "$ac_cv_path_SED" >&6; }
6357 SED="$ac_cv_path_SED"
6360 test -z "$SED" && SED=sed
6361 Xsed="$SED -e 1s/^X//"
6373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6374 printf %s "checking for grep that handles long lines and -e... " >&6; }
6375 if test ${ac_cv_path_GREP+y}
6377 printf %s "(cached) " >&6
6379 if test -z "$GREP"; then
6380 ac_path_GREP_found=false
6381 # Loop through the user's path and test for each of PROGNAME-LIST
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6386 case $as_dir in #(((
6389 *) as_dir=$as_dir/ ;;
6391 for ac_prog in grep ggrep
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6395 as_fn_executable_p "$ac_path_GREP" || continue
6396 # Check for GNU ac_path_GREP and select it if it is found.
6397 # Check for GNU $ac_path_GREP
6398 case `"$ac_path_GREP" --version 2>&1` in
6400 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6403 printf %s 0123456789 >"conftest.in"
6406 cat "conftest.in" "conftest.in" >"conftest.tmp"
6407 mv "conftest.tmp" "conftest.in"
6408 cp "conftest.in" "conftest.nl"
6409 printf "%s\n" 'GREP' >> "conftest.nl"
6410 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6411 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6412 as_fn_arith $ac_count + 1 && ac_count=$as_val
6413 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6414 # Best one so far, save it but keep looking for a better one
6415 ac_cv_path_GREP="$ac_path_GREP"
6416 ac_path_GREP_max=$ac_count
6418 # 10*(2^10) chars as input seems more than enough
6419 test $ac_count -gt 10 && break
6421 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6424 $ac_path_GREP_found && break 3
6429 if test -z "$ac_cv_path_GREP"; then
6430 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6433 ac_cv_path_GREP=$GREP
6437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6438 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6439 GREP="$ac_cv_path_GREP"
6442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6443 printf %s "checking for egrep... " >&6; }
6444 if test ${ac_cv_path_EGREP+y}
6446 printf %s "(cached) " >&6
6448 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6449 then ac_cv_path_EGREP="$GREP -E"
6451 if test -z "$EGREP"; then
6452 ac_path_EGREP_found=false
6453 # Loop through the user's path and test for each of PROGNAME-LIST
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6458 case $as_dir in #(((
6461 *) as_dir=$as_dir/ ;;
6463 for ac_prog in egrep
6465 for ac_exec_ext in '' $ac_executable_extensions; do
6466 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6467 as_fn_executable_p "$ac_path_EGREP" || continue
6468 # Check for GNU ac_path_EGREP and select it if it is found.
6469 # Check for GNU $ac_path_EGREP
6470 case `"$ac_path_EGREP" --version 2>&1` in
6472 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6475 printf %s 0123456789 >"conftest.in"
6478 cat "conftest.in" "conftest.in" >"conftest.tmp"
6479 mv "conftest.tmp" "conftest.in"
6480 cp "conftest.in" "conftest.nl"
6481 printf "%s\n" 'EGREP' >> "conftest.nl"
6482 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6483 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6484 as_fn_arith $ac_count + 1 && ac_count=$as_val
6485 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6486 # Best one so far, save it but keep looking for a better one
6487 ac_cv_path_EGREP="$ac_path_EGREP"
6488 ac_path_EGREP_max=$ac_count
6490 # 10*(2^10) chars as input seems more than enough
6491 test $ac_count -gt 10 && break
6493 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6496 $ac_path_EGREP_found && break 3
6501 if test -z "$ac_cv_path_EGREP"; then
6502 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6505 ac_cv_path_EGREP=$EGREP
6510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6511 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6512 EGREP="$ac_cv_path_EGREP"
6515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6516 printf %s "checking for fgrep... " >&6; }
6517 if test ${ac_cv_path_FGREP+y}
6519 printf %s "(cached) " >&6
6521 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6522 then ac_cv_path_FGREP="$GREP -F"
6524 if test -z "$FGREP"; then
6525 ac_path_FGREP_found=false
6526 # Loop through the user's path and test for each of PROGNAME-LIST
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6531 case $as_dir in #(((
6534 *) as_dir=$as_dir/ ;;
6536 for ac_prog in fgrep
6538 for ac_exec_ext in '' $ac_executable_extensions; do
6539 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6540 as_fn_executable_p "$ac_path_FGREP" || continue
6541 # Check for GNU ac_path_FGREP and select it if it is found.
6542 # Check for GNU $ac_path_FGREP
6543 case `"$ac_path_FGREP" --version 2>&1` in
6545 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6548 printf %s 0123456789 >"conftest.in"
6551 cat "conftest.in" "conftest.in" >"conftest.tmp"
6552 mv "conftest.tmp" "conftest.in"
6553 cp "conftest.in" "conftest.nl"
6554 printf "%s\n" 'FGREP' >> "conftest.nl"
6555 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6556 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6557 as_fn_arith $ac_count + 1 && ac_count=$as_val
6558 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6559 # Best one so far, save it but keep looking for a better one
6560 ac_cv_path_FGREP="$ac_path_FGREP"
6561 ac_path_FGREP_max=$ac_count
6563 # 10*(2^10) chars as input seems more than enough
6564 test $ac_count -gt 10 && break
6566 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6569 $ac_path_FGREP_found && break 3
6574 if test -z "$ac_cv_path_FGREP"; then
6575 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6578 ac_cv_path_FGREP=$FGREP
6583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6584 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6585 FGREP="$ac_cv_path_FGREP"
6588 test -z "$GREP" && GREP=grep
6608 # Check whether --with-gnu-ld was given.
6609 if test ${with_gnu_ld+y}
6611 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6617 if test yes = "$GCC"; then
6618 # Check if gcc -print-prog-name=ld gives a path.
6619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6620 printf %s "checking for ld used by $CC... " >&6; }
6623 # gcc leaves a trailing carriage return, which upsets mingw
6624 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6626 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6629 # Accept absolute paths.
6631 re_direlt='/[^/][^/]*/\.\./'
6632 # Canonicalize the pathname of ld
6633 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6634 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6635 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6637 test -z "$LD" && LD=$ac_prog
6640 # If it fails, then pretend we aren't using GCC.
6644 # If it is relative, then search for the first ld in PATH.
6648 elif test yes = "$with_gnu_ld"; then
6649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6650 printf %s "checking for GNU ld... " >&6; }
6652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6653 printf %s "checking for non-GNU ld... " >&6; }
6655 if test ${lt_cv_path_LD+y}
6657 printf %s "(cached) " >&6
6659 if test -z "$LD"; then
6660 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6661 for ac_dir in $PATH; do
6663 test -z "$ac_dir" && ac_dir=.
6664 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6665 lt_cv_path_LD=$ac_dir/$ac_prog
6666 # Check to see if the program is GNU ld. I'd rather use --version,
6667 # but apparently some variants of GNU ld only accept -v.
6668 # Break only if it was the GNU/non-GNU ld that we prefer.
6669 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6670 *GNU* | *'with BFD'*)
6671 test no != "$with_gnu_ld" && break
6674 test yes != "$with_gnu_ld" && break
6681 lt_cv_path_LD=$LD # Let the user override the test with a path.
6686 if test -n "$LD"; then
6687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6688 printf "%s\n" "$LD" >&6; }
6690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6691 printf "%s\n" "no" >&6; }
6693 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6695 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6696 if test ${lt_cv_prog_gnu_ld+y}
6698 printf %s "(cached) " >&6
6700 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6701 case `$LD -v 2>&1 </dev/null` in
6702 *GNU* | *'with BFD'*)
6703 lt_cv_prog_gnu_ld=yes
6706 lt_cv_prog_gnu_ld=no
6710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6711 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6712 with_gnu_ld=$lt_cv_prog_gnu_ld
6722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6723 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6724 if test ${lt_cv_path_NM+y}
6726 printf %s "(cached) " >&6
6728 if test -n "$NM"; then
6729 # Let the user override the test.
6732 lt_nm_to_check=${ac_tool_prefix}nm
6733 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6734 lt_nm_to_check="$lt_nm_to_check nm"
6736 for lt_tmp_nm in $lt_nm_to_check; do
6737 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6738 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6740 test -z "$ac_dir" && ac_dir=.
6741 tmp_nm=$ac_dir/$lt_tmp_nm
6742 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6743 # Check to see if the nm accepts a BSD-compat flag.
6744 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6745 # nm: unknown option "B" ignored
6746 # Tru64's nm complains that /dev/null is an invalid object file
6747 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6749 mingw*) lt_bad_file=conftest.nm/nofile ;;
6750 *) lt_bad_file=/dev/null ;;
6752 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6753 *$lt_bad_file* | *'Invalid file or object type'*)
6754 lt_cv_path_NM="$tmp_nm -B"
6758 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6760 lt_cv_path_NM="$tmp_nm -p"
6764 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6765 continue # so that we can try to find one that supports BSD flags
6774 : ${lt_cv_path_NM=no}
6777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6778 printf "%s\n" "$lt_cv_path_NM" >&6; }
6779 if test no != "$lt_cv_path_NM"; then
6782 # Didn't find any BSD compatible name lister, look for dumpbin.
6783 if test -n "$DUMPBIN"; then :
6784 # Let the user override the test.
6786 if test -n "$ac_tool_prefix"; then
6787 for ac_prog in dumpbin "link -dump"
6789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6790 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6792 printf %s "checking for $ac_word... " >&6; }
6793 if test ${ac_cv_prog_DUMPBIN+y}
6795 printf %s "(cached) " >&6
6797 if test -n "$DUMPBIN"; then
6798 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 case $as_dir in #(((
6807 *) as_dir=$as_dir/ ;;
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6811 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6821 DUMPBIN=$ac_cv_prog_DUMPBIN
6822 if test -n "$DUMPBIN"; then
6823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6824 printf "%s\n" "$DUMPBIN" >&6; }
6826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6827 printf "%s\n" "no" >&6; }
6831 test -n "$DUMPBIN" && break
6834 if test -z "$DUMPBIN"; then
6835 ac_ct_DUMPBIN=$DUMPBIN
6836 for ac_prog in dumpbin "link -dump"
6838 # Extract the first word of "$ac_prog", so it can be a program name with args.
6839 set dummy $ac_prog; ac_word=$2
6840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841 printf %s "checking for $ac_word... " >&6; }
6842 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6844 printf %s "(cached) " >&6
6846 if test -n "$ac_ct_DUMPBIN"; then
6847 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853 case $as_dir in #(((
6856 *) as_dir=$as_dir/ ;;
6858 for ac_exec_ext in '' $ac_executable_extensions; do
6859 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6860 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6870 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6871 if test -n "$ac_ct_DUMPBIN"; then
6872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6873 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6876 printf "%s\n" "no" >&6; }
6880 test -n "$ac_ct_DUMPBIN" && break
6883 if test "x$ac_ct_DUMPBIN" = x; then
6886 case $cross_compiling:$ac_tool_warned in
6888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6889 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6890 ac_tool_warned=yes ;;
6892 DUMPBIN=$ac_ct_DUMPBIN
6896 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6898 DUMPBIN="$DUMPBIN -symbols -headers"
6906 if test : != "$DUMPBIN"; then
6910 test -z "$NM" && NM=nm
6917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6918 printf %s "checking the name lister ($NM) interface... " >&6; }
6919 if test ${lt_cv_nm_interface+y}
6921 printf %s "(cached) " >&6
6923 lt_cv_nm_interface="BSD nm"
6924 echo "int some_variable = 0;" > conftest.$ac_ext
6925 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6926 (eval "$ac_compile" 2>conftest.err)
6927 cat conftest.err >&5
6928 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6929 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6930 cat conftest.err >&5
6931 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6932 cat conftest.out >&5
6933 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6934 lt_cv_nm_interface="MS dumpbin"
6938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6939 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6941 # find the maximum length of command line arguments
6942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6943 printf %s "checking the maximum length of command line arguments... " >&6; }
6944 if test ${lt_cv_sys_max_cmd_len+y}
6946 printf %s "(cached) " >&6
6953 # On DJGPP, this test can blow up pretty badly due to problems in libc
6954 # (any single argument exceeding 2000 bytes causes a buffer overrun
6955 # during glob expansion). Even if it were fixed, the result of this
6956 # check would be larger than it should be.
6957 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6961 # Under GNU Hurd, this test is not required because there is
6962 # no limit to the length of command line arguments.
6963 # Libtool will interpret -1 as no limit whatsoever
6964 lt_cv_sys_max_cmd_len=-1;
6967 cygwin* | mingw* | cegcc*)
6968 # On Win9x/ME, this test blows up -- it succeeds, but takes
6969 # about 5 minutes as the teststring grows exponentially.
6970 # Worse, since 9x/ME are not pre-emptively multitasking,
6971 # you end up with a "frozen" computer, even though with patience
6972 # the test eventually succeeds (with a max line length of 256k).
6973 # Instead, let's just punt: use the minimum linelength reported by
6974 # all of the supported platforms: 8192 (on NT/2K/XP).
6975 lt_cv_sys_max_cmd_len=8192;
6979 # On MiNT this can take a long time and run out of memory.
6980 lt_cv_sys_max_cmd_len=8192;
6984 # On AmigaOS with pdksh, this test takes hours, literally.
6985 # So we just punt and use a minimum line length of 8192.
6986 lt_cv_sys_max_cmd_len=8192;
6989 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6990 # This has been around since 386BSD, at least. Likely further.
6991 if test -x /sbin/sysctl; then
6992 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6993 elif test -x /usr/sbin/sysctl; then
6994 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6996 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6998 # And add a safety zone
6999 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7000 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7004 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7005 lt_cv_sys_max_cmd_len=196608
7009 # The test takes a long time on OS/2.
7010 lt_cv_sys_max_cmd_len=8192
7014 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7015 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7016 # nice to cause kernel panics so lets avoid the loop below.
7017 # First set a reasonable default.
7018 lt_cv_sys_max_cmd_len=16384
7020 if test -x /sbin/sysconfig; then
7021 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7022 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7027 lt_cv_sys_max_cmd_len=102400
7029 sysv5* | sco5v6* | sysv4.2uw2*)
7030 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7031 if test -n "$kargmax"; then
7032 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
7034 lt_cv_sys_max_cmd_len=32768
7038 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7039 if test -n "$lt_cv_sys_max_cmd_len" && \
7040 test undefined != "$lt_cv_sys_max_cmd_len"; then
7041 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7042 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7044 # Make teststring a little bigger before we do anything with it.
7045 # a 1K string should be a reasonable start.
7046 for i in 1 2 3 4 5 6 7 8; do
7047 teststring=$teststring$teststring
7049 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7050 # If test is not a shell built-in, we'll probably end up computing a
7051 # maximum length that is only half of the actual maximum length, but
7053 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7054 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7055 test 17 != "$i" # 1/2 MB should be enough
7058 teststring=$teststring$teststring
7060 # Only check the string length outside the loop.
7061 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7063 # Add a significant safety factor because C++ compilers can tack on
7064 # massive amounts of additional arguments before passing them to the
7065 # linker. It appears as though 1/2 is a usable value.
7066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7073 if test -n "$lt_cv_sys_max_cmd_len"; then
7074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7075 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
7077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7078 printf "%s\n" "none" >&6; }
7080 max_cmd_len=$lt_cv_sys_max_cmd_len
7091 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7101 # test EBCDIC or ASCII
7102 case `echo X|tr X '\101'` in
7103 A) # ASCII based system
7104 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7105 lt_SP2NL='tr \040 \012'
7106 lt_NL2SP='tr \015\012 \040\040'
7108 *) # EBCDIC based system
7109 lt_SP2NL='tr \100 \n'
7110 lt_NL2SP='tr \r\n \100\100'
7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7123 printf %s "checking how to convert $build file names to $host format... " >&6; }
7124 if test ${lt_cv_to_host_file_cmd+y}
7126 printf %s "(cached) " >&6
7131 *-*-mingw* ) # actually msys
7132 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7135 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7137 * ) # otherwise, assume *nix
7138 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7144 *-*-mingw* ) # actually msys
7145 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7148 lt_cv_to_host_file_cmd=func_convert_file_noop
7150 * ) # otherwise, assume *nix
7151 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7155 * ) # unhandled hosts (and "normal" native builds)
7156 lt_cv_to_host_file_cmd=func_convert_file_noop
7162 to_host_file_cmd=$lt_cv_to_host_file_cmd
7163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7164 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7171 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7172 if test ${lt_cv_to_tool_file_cmd+y}
7174 printf %s "(cached) " >&6
7176 #assume ordinary cross tools, or native build.
7177 lt_cv_to_tool_file_cmd=func_convert_file_noop
7181 *-*-mingw* ) # actually msys
7182 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7190 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7192 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7199 printf %s "checking for $LD option to reload object files... " >&6; }
7200 if test ${lt_cv_ld_reload_flag+y}
7202 printf %s "(cached) " >&6
7204 lt_cv_ld_reload_flag='-r'
7206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7207 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7208 reload_flag=$lt_cv_ld_reload_flag
7209 case $reload_flag in
7211 *) reload_flag=" $reload_flag" ;;
7213 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7215 cygwin* | mingw* | pw32* | cegcc*)
7216 if test yes != "$GCC"; then
7221 if test yes = "$GCC"; then
7222 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7224 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7237 if test -n "$ac_tool_prefix"; then
7238 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
7239 set dummy ${ac_tool_prefix}file; ac_word=$2
7240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241 printf %s "checking for $ac_word... " >&6; }
7242 if test ${ac_cv_prog_FILECMD+y}
7244 printf %s "(cached) " >&6
7246 if test -n "$FILECMD"; then
7247 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 case $as_dir in #(((
7256 *) as_dir=$as_dir/ ;;
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7260 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
7261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7270 FILECMD=$ac_cv_prog_FILECMD
7271 if test -n "$FILECMD"; then
7272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7273 printf "%s\n" "$FILECMD" >&6; }
7275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7276 printf "%s\n" "no" >&6; }
7281 if test -z "$ac_cv_prog_FILECMD"; then
7282 ac_ct_FILECMD=$FILECMD
7283 # Extract the first word of "file", so it can be a program name with args.
7284 set dummy file; ac_word=$2
7285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7286 printf %s "checking for $ac_word... " >&6; }
7287 if test ${ac_cv_prog_ac_ct_FILECMD+y}
7289 printf %s "(cached) " >&6
7291 if test -n "$ac_ct_FILECMD"; then
7292 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 case $as_dir in #(((
7301 *) as_dir=$as_dir/ ;;
7303 for ac_exec_ext in '' $ac_executable_extensions; do
7304 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7305 ac_cv_prog_ac_ct_FILECMD="file"
7306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7315 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
7316 if test -n "$ac_ct_FILECMD"; then
7317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
7318 printf "%s\n" "$ac_ct_FILECMD" >&6; }
7320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321 printf "%s\n" "no" >&6; }
7324 if test "x$ac_ct_FILECMD" = x; then
7327 case $cross_compiling:$ac_tool_warned in
7329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7330 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7331 ac_tool_warned=yes ;;
7333 FILECMD=$ac_ct_FILECMD
7336 FILECMD="$ac_cv_prog_FILECMD"
7345 if test -n "$ac_tool_prefix"; then
7346 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7347 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7349 printf %s "checking for $ac_word... " >&6; }
7350 if test ${ac_cv_prog_OBJDUMP+y}
7352 printf %s "(cached) " >&6
7354 if test -n "$OBJDUMP"; then
7355 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 case $as_dir in #(((
7364 *) as_dir=$as_dir/ ;;
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7368 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7378 OBJDUMP=$ac_cv_prog_OBJDUMP
7379 if test -n "$OBJDUMP"; then
7380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7381 printf "%s\n" "$OBJDUMP" >&6; }
7383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 printf "%s\n" "no" >&6; }
7389 if test -z "$ac_cv_prog_OBJDUMP"; then
7390 ac_ct_OBJDUMP=$OBJDUMP
7391 # Extract the first word of "objdump", so it can be a program name with args.
7392 set dummy objdump; ac_word=$2
7393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7394 printf %s "checking for $ac_word... " >&6; }
7395 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7397 printf %s "(cached) " >&6
7399 if test -n "$ac_ct_OBJDUMP"; then
7400 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 case $as_dir in #(((
7409 *) as_dir=$as_dir/ ;;
7411 for ac_exec_ext in '' $ac_executable_extensions; do
7412 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7413 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7423 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7424 if test -n "$ac_ct_OBJDUMP"; then
7425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7426 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 printf "%s\n" "no" >&6; }
7432 if test "x$ac_ct_OBJDUMP" = x; then
7435 case $cross_compiling:$ac_tool_warned in
7437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7438 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7439 ac_tool_warned=yes ;;
7441 OBJDUMP=$ac_ct_OBJDUMP
7444 OBJDUMP="$ac_cv_prog_OBJDUMP"
7447 test -z "$OBJDUMP" && OBJDUMP=objdump
7454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7455 printf %s "checking how to recognize dependent libraries... " >&6; }
7456 if test ${lt_cv_deplibs_check_method+y}
7458 printf %s "(cached) " >&6
7460 lt_cv_file_magic_cmd='$MAGIC_CMD'
7461 lt_cv_file_magic_test_file=
7462 lt_cv_deplibs_check_method='unknown'
7463 # Need to set the preceding variable on all platforms that support
7464 # interlibrary dependencies.
7465 # 'none' -- dependencies not supported.
7466 # 'unknown' -- same as none, but documents that we really don't know.
7467 # 'pass_all' -- all dependencies passed with no checks.
7468 # 'test_compile' -- check by making test program.
7469 # 'file_magic [[regex]]' -- check by looking for files in library path
7470 # that responds to the $file_magic_cmd with a given extended regex.
7471 # If you have 'file' or equivalent on your system and you're not sure
7472 # whether 'pass_all' will *always* work, you probably want this one.
7476 lt_cv_deplibs_check_method=pass_all
7480 lt_cv_deplibs_check_method=pass_all
7484 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7485 lt_cv_file_magic_cmd='$FILECMD -L'
7486 lt_cv_file_magic_test_file=/shlib/libc.so
7490 # func_win32_libid is a shell function defined in ltmain.sh
7491 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7492 lt_cv_file_magic_cmd='func_win32_libid'
7496 # Base MSYS/MinGW do not provide the 'file' command needed by
7497 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7498 # unless we find 'file', for example because we are cross-compiling.
7499 if ( file / ) >/dev/null 2>&1; then
7500 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7501 lt_cv_file_magic_cmd='func_win32_libid'
7503 # Keep this pattern in sync with the one in func_win32_libid.
7504 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7505 lt_cv_file_magic_cmd='$OBJDUMP -f'
7510 # use the weaker test based on 'objdump'. See mingw*.
7511 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7512 lt_cv_file_magic_cmd='$OBJDUMP -f'
7515 darwin* | rhapsody*)
7516 lt_cv_deplibs_check_method=pass_all
7519 freebsd* | dragonfly* | midnightbsd*)
7520 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7523 # Not sure whether the presence of OpenBSD here was a mistake.
7524 # Let's accept both of them until this is cleared up.
7525 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7526 lt_cv_file_magic_cmd=$FILECMD
7527 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7531 lt_cv_deplibs_check_method=pass_all
7536 lt_cv_deplibs_check_method=pass_all
7539 hpux10.20* | hpux11*)
7540 lt_cv_file_magic_cmd=$FILECMD
7543 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7544 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7547 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]'
7548 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7551 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7552 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7558 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7559 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7562 irix5* | irix6* | nonstopux*)
7564 *-32|*"-32 ") libmagic=32-bit;;
7565 *-n32|*"-n32 ") libmagic=N32;;
7566 *-64|*"-64 ") libmagic=64-bit;;
7567 *) libmagic=never-match;;
7569 lt_cv_deplibs_check_method=pass_all
7572 # This must be glibc/ELF.
7573 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7574 lt_cv_deplibs_check_method=pass_all
7578 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7581 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7586 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7587 lt_cv_file_magic_cmd=$FILECMD
7588 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7592 lt_cv_deplibs_check_method=pass_all
7596 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7599 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7603 osf3* | osf4* | osf5*)
7604 lt_cv_deplibs_check_method=pass_all
7608 lt_cv_deplibs_check_method=pass_all
7612 lt_cv_deplibs_check_method=pass_all
7615 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7616 lt_cv_deplibs_check_method=pass_all
7620 case $host_vendor in
7622 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]'
7623 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7626 lt_cv_deplibs_check_method=pass_all
7629 lt_cv_file_magic_cmd='/bin/file'
7630 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7633 lt_cv_file_magic_cmd='/bin/file'
7634 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7635 lt_cv_file_magic_test_file=/lib/libc.so
7638 lt_cv_deplibs_check_method=pass_all
7641 lt_cv_deplibs_check_method=pass_all
7647 lt_cv_deplibs_check_method=pass_all
7650 lt_cv_deplibs_check_method=pass_all
7655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7656 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7660 if test "$build" = "$host"; then
7663 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7666 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7672 file_magic_cmd=$lt_cv_file_magic_cmd
7673 deplibs_check_method=$lt_cv_deplibs_check_method
7674 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7697 if test -n "$ac_tool_prefix"; then
7698 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7699 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701 printf %s "checking for $ac_word... " >&6; }
7702 if test ${ac_cv_prog_DLLTOOL+y}
7704 printf %s "(cached) " >&6
7706 if test -n "$DLLTOOL"; then
7707 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713 case $as_dir in #(((
7716 *) as_dir=$as_dir/ ;;
7718 for ac_exec_ext in '' $ac_executable_extensions; do
7719 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7720 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7730 DLLTOOL=$ac_cv_prog_DLLTOOL
7731 if test -n "$DLLTOOL"; then
7732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7733 printf "%s\n" "$DLLTOOL" >&6; }
7735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736 printf "%s\n" "no" >&6; }
7741 if test -z "$ac_cv_prog_DLLTOOL"; then
7742 ac_ct_DLLTOOL=$DLLTOOL
7743 # Extract the first word of "dlltool", so it can be a program name with args.
7744 set dummy dlltool; ac_word=$2
7745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7746 printf %s "checking for $ac_word... " >&6; }
7747 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7749 printf %s "(cached) " >&6
7751 if test -n "$ac_ct_DLLTOOL"; then
7752 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 case $as_dir in #(((
7761 *) as_dir=$as_dir/ ;;
7763 for ac_exec_ext in '' $ac_executable_extensions; do
7764 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7765 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7775 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7776 if test -n "$ac_ct_DLLTOOL"; then
7777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7778 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7781 printf "%s\n" "no" >&6; }
7784 if test "x$ac_ct_DLLTOOL" = x; then
7787 case $cross_compiling:$ac_tool_warned in
7789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7790 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7791 ac_tool_warned=yes ;;
7793 DLLTOOL=$ac_ct_DLLTOOL
7796 DLLTOOL="$ac_cv_prog_DLLTOOL"
7799 test -z "$DLLTOOL" && DLLTOOL=dlltool
7807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7808 printf %s "checking how to associate runtime and link libraries... " >&6; }
7809 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7811 printf %s "(cached) " >&6
7813 lt_cv_sharedlib_from_linklib_cmd='unknown'
7816 cygwin* | mingw* | pw32* | cegcc*)
7817 # two different shell functions defined in ltmain.sh;
7818 # decide which one to use based on capabilities of $DLLTOOL
7819 case `$DLLTOOL --help 2>&1` in
7820 *--identify-strict*)
7821 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7824 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7829 # fallback: assume linklib IS sharedlib
7830 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7836 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7837 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7838 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7846 if test -n "$ac_tool_prefix"; then
7849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7850 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852 printf %s "checking for $ac_word... " >&6; }
7853 if test ${ac_cv_prog_AR+y}
7855 printf %s "(cached) " >&6
7857 if test -n "$AR"; then
7858 ac_cv_prog_AR="$AR" # Let the user override the test.
7860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864 case $as_dir in #(((
7867 *) as_dir=$as_dir/ ;;
7869 for ac_exec_ext in '' $ac_executable_extensions; do
7870 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7871 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7882 if test -n "$AR"; then
7883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7884 printf "%s\n" "$AR" >&6; }
7886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7887 printf "%s\n" "no" >&6; }
7891 test -n "$AR" && break
7894 if test -z "$AR"; then
7898 # Extract the first word of "$ac_prog", so it can be a program name with args.
7899 set dummy $ac_prog; ac_word=$2
7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7901 printf %s "checking for $ac_word... " >&6; }
7902 if test ${ac_cv_prog_ac_ct_AR+y}
7904 printf %s "(cached) " >&6
7906 if test -n "$ac_ct_AR"; then
7907 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913 case $as_dir in #(((
7916 *) as_dir=$as_dir/ ;;
7918 for ac_exec_ext in '' $ac_executable_extensions; do
7919 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7920 ac_cv_prog_ac_ct_AR="$ac_prog"
7921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7930 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7931 if test -n "$ac_ct_AR"; then
7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7933 printf "%s\n" "$ac_ct_AR" >&6; }
7935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936 printf "%s\n" "no" >&6; }
7940 test -n "$ac_ct_AR" && break
7943 if test "x$ac_ct_AR" = x; then
7946 case $cross_compiling:$ac_tool_warned in
7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7949 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7950 ac_tool_warned=yes ;;
7963 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7964 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7965 # higher priority because thats what people were doing historically (setting
7966 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7967 # variable obsoleted/removed.
7969 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7970 lt_ar_flags=$AR_FLAGS
7977 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7978 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7986 printf %s "checking for archiver @FILE support... " >&6; }
7987 if test ${lt_cv_ar_at_file+y}
7989 printf %s "(cached) " >&6
7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993 /* end confdefs.h. */
8003 if ac_fn_c_try_compile "$LINENO"
8005 echo conftest.$ac_objext > conftest.lst
8006 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8008 (eval $lt_ar_try) 2>&5
8010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8011 test $ac_status = 0; }
8012 if test 0 -eq "$ac_status"; then
8013 # Ensure the archiver fails upon bogus file names.
8014 rm -f conftest.$ac_objext libconftest.a
8015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8016 (eval $lt_ar_try) 2>&5
8018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8019 test $ac_status = 0; }
8020 if test 0 -ne "$ac_status"; then
8024 rm -f conftest.* libconftest.a
8027 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8031 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
8033 if test no = "$lt_cv_ar_at_file"; then
8036 archiver_list_spec=$lt_cv_ar_at_file
8045 if test -n "$ac_tool_prefix"; then
8046 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8047 set dummy ${ac_tool_prefix}strip; ac_word=$2
8048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8049 printf %s "checking for $ac_word... " >&6; }
8050 if test ${ac_cv_prog_STRIP+y}
8052 printf %s "(cached) " >&6
8054 if test -n "$STRIP"; then
8055 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061 case $as_dir in #(((
8064 *) as_dir=$as_dir/ ;;
8066 for ac_exec_ext in '' $ac_executable_extensions; do
8067 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8068 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8078 STRIP=$ac_cv_prog_STRIP
8079 if test -n "$STRIP"; then
8080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8081 printf "%s\n" "$STRIP" >&6; }
8083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084 printf "%s\n" "no" >&6; }
8089 if test -z "$ac_cv_prog_STRIP"; then
8091 # Extract the first word of "strip", so it can be a program name with args.
8092 set dummy strip; ac_word=$2
8093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8094 printf %s "checking for $ac_word... " >&6; }
8095 if test ${ac_cv_prog_ac_ct_STRIP+y}
8097 printf %s "(cached) " >&6
8099 if test -n "$ac_ct_STRIP"; then
8100 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8106 case $as_dir in #(((
8109 *) as_dir=$as_dir/ ;;
8111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8113 ac_cv_prog_ac_ct_STRIP="strip"
8114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8123 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8124 if test -n "$ac_ct_STRIP"; then
8125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8126 printf "%s\n" "$ac_ct_STRIP" >&6; }
8128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129 printf "%s\n" "no" >&6; }
8132 if test "x$ac_ct_STRIP" = x; then
8135 case $cross_compiling:$ac_tool_warned in
8137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8138 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8139 ac_tool_warned=yes ;;
8144 STRIP="$ac_cv_prog_STRIP"
8147 test -z "$STRIP" && STRIP=:
8154 if test -n "$ac_tool_prefix"; then
8155 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8156 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158 printf %s "checking for $ac_word... " >&6; }
8159 if test ${ac_cv_prog_RANLIB+y}
8161 printf %s "(cached) " >&6
8163 if test -n "$RANLIB"; then
8164 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170 case $as_dir in #(((
8173 *) as_dir=$as_dir/ ;;
8175 for ac_exec_ext in '' $ac_executable_extensions; do
8176 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8177 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8187 RANLIB=$ac_cv_prog_RANLIB
8188 if test -n "$RANLIB"; then
8189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8190 printf "%s\n" "$RANLIB" >&6; }
8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8193 printf "%s\n" "no" >&6; }
8198 if test -z "$ac_cv_prog_RANLIB"; then
8199 ac_ct_RANLIB=$RANLIB
8200 # Extract the first word of "ranlib", so it can be a program name with args.
8201 set dummy ranlib; ac_word=$2
8202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203 printf %s "checking for $ac_word... " >&6; }
8204 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8206 printf %s "(cached) " >&6
8208 if test -n "$ac_ct_RANLIB"; then
8209 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215 case $as_dir in #(((
8218 *) as_dir=$as_dir/ ;;
8220 for ac_exec_ext in '' $ac_executable_extensions; do
8221 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8222 ac_cv_prog_ac_ct_RANLIB="ranlib"
8223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8232 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8233 if test -n "$ac_ct_RANLIB"; then
8234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8235 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238 printf "%s\n" "no" >&6; }
8241 if test "x$ac_ct_RANLIB" = x; then
8244 case $cross_compiling:$ac_tool_warned in
8246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8247 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8248 ac_tool_warned=yes ;;
8250 RANLIB=$ac_ct_RANLIB
8253 RANLIB="$ac_cv_prog_RANLIB"
8256 test -z "$RANLIB" && RANLIB=:
8263 # Determine commands to create old-style static archives.
8264 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8265 old_postinstall_cmds='chmod 644 $oldlib'
8266 old_postuninstall_cmds=
8268 if test -n "$RANLIB"; then
8271 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8274 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8277 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8282 lock_old_archive_extraction=yes ;;
8284 lock_old_archive_extraction=no ;;
8325 # If no C compiler was specified, use CC.
8328 # If no C compiler flags were specified, use CFLAGS.
8329 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8331 # Allow CC to be a program name with arguments.
8335 # Check for command to grab the raw symbol name followed by C symbol from nm.
8336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8337 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8338 if test ${lt_cv_sys_global_symbol_pipe+y}
8340 printf %s "(cached) " >&6
8343 # These are sane defaults that work on at least a few old systems.
8344 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8346 # Character class describing NM global symbol codes.
8347 symcode='[BCDEGRST]'
8349 # Regexp to match symbols that can be accessed directly from C.
8350 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8352 # Define system-specific variables.
8357 cygwin* | mingw* | pw32* | cegcc*)
8358 symcode='[ABCDGISTW]'
8361 if test ia64 = "$host_cpu"; then
8362 symcode='[ABCDEGRST]'
8366 symcode='[BCDEGRST]'
8369 symcode='[BCDEGQRST]'
8380 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8388 # If we're using GNU nm, then use its standard symbol codes.
8389 case `$NM -V 2>&1` in
8390 *GNU* | *'with BFD'*)
8391 symcode='[ABCDGIRSTW]' ;;
8394 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8395 # Gets list of data symbols to import.
8396 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8397 # Adjust the below global symbol transforms to fixup imported variables.
8398 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8399 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8400 lt_c_name_lib_hook="\
8401 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8402 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8404 # Disable hooks by default.
8405 lt_cv_sys_global_symbol_to_import=
8411 # Transform an extracted symbol line into a proper C declaration.
8412 # Some systems (esp. on ia64) link data and code symbols differently,
8413 # so use this general approach.
8414 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8416 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8417 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8419 # Transform an extracted symbol line into symbol name and symbol address
8420 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8422 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8423 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8425 # Transform an extracted symbol line into symbol name with lib prefix and
8427 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8428 $lt_c_name_lib_hook\
8429 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8430 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8431 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8433 # Handle CRLF in mingw tool chain
8437 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8441 # Try without a prefix underscore, then with it.
8442 for ac_symprfx in "" "_"; do
8444 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8445 symxfrm="\\1 $ac_symprfx\\2 \\2"
8447 # Write the raw and C identifiers.
8448 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8449 # Fake it for dumpbin and say T for any non-static function,
8450 # D for any global variable and I for any imported variable.
8451 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8452 # which start with @ or ?.
8453 lt_cv_sys_global_symbol_pipe="$AWK '"\
8454 " {last_section=section; section=\$ 3};"\
8455 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8456 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8457 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8458 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8459 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8460 " \$ 0!~/External *\|/{next};"\
8461 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8462 " {if(hide[section]) next};"\
8463 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8464 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8465 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8466 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8467 " ' prfx=^$ac_symprfx"
8469 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8471 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8473 # Check to see that the pipe works correctly.
8477 cat > conftest.$ac_ext <<_LT_EOF
8482 void nm_test_func(void);
8483 void nm_test_func(void){}
8487 int main(){nm_test_var='a';nm_test_func();return(0);}
8490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8491 (eval $ac_compile) 2>&5
8493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8494 test $ac_status = 0; }; then
8495 # Now try to grab the symbols.
8497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8498 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8501 test $ac_status = 0; } && test -s "$nlist"; then
8502 # Try sorting and uniquifying the output.
8503 if sort "$nlist" | uniq > "$nlist"T; then
8504 mv -f "$nlist"T "$nlist"
8509 # Make sure that we snagged all the symbols we need.
8510 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8511 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8512 cat <<_LT_EOF > conftest.$ac_ext
8513 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8514 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8515 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8516 relocations are performed -- see ld's documentation on pseudo-relocs. */
8517 # define LT_DLSYM_CONST
8518 #elif defined __osf__
8519 /* This system does not cope well with relocations in const data. */
8520 # define LT_DLSYM_CONST
8522 # define LT_DLSYM_CONST const
8530 # Now generate the symbol file.
8531 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8533 cat <<_LT_EOF >> conftest.$ac_ext
8535 /* The mapping between symbol names and symbols. */
8536 LT_DLSYM_CONST struct {
8540 lt__PROGRAM__LTX_preloaded_symbols[] =
8542 { "@PROGRAM@", (void *) 0 },
8544 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8545 cat <<\_LT_EOF >> conftest.$ac_ext
8549 /* This works around a problem in FreeBSD linker */
8550 #ifdef FREEBSD_WORKAROUND
8551 static const void *lt_preloaded_setup() {
8552 return lt__PROGRAM__LTX_preloaded_symbols;
8560 # Now try linking the two files.
8561 mv conftest.$ac_objext conftstm.$ac_objext
8562 lt_globsym_save_LIBS=$LIBS
8563 lt_globsym_save_CFLAGS=$CFLAGS
8564 LIBS=conftstm.$ac_objext
8565 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8567 (eval $ac_link) 2>&5
8569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8570 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8573 LIBS=$lt_globsym_save_LIBS
8574 CFLAGS=$lt_globsym_save_CFLAGS
8576 echo "cannot find nm_test_func in $nlist" >&5
8579 echo "cannot find nm_test_var in $nlist" >&5
8582 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8585 echo "$progname: failed program was:" >&5
8586 cat conftest.$ac_ext >&5
8588 rm -rf conftest* conftst*
8590 # Do not use the global_symbol_pipe unless it works.
8591 if test yes = "$pipe_works"; then
8594 lt_cv_sys_global_symbol_pipe=
8600 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8601 lt_cv_sys_global_symbol_to_cdecl=
8603 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8605 printf "%s\n" "failed" >&6; }
8607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8608 printf "%s\n" "ok" >&6; }
8611 # Response file support.
8612 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8613 nm_file_list_spec='@'
8614 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8615 nm_file_list_spec='@'
8654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8655 printf %s "checking for sysroot... " >&6; }
8657 # Check whether --with-sysroot was given.
8658 if test ${with_sysroot+y}
8660 withval=$with_sysroot;
8667 case $with_sysroot in #(
8669 if test yes = "$GCC"; then
8670 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8674 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8680 printf "%s\n" "$with_sysroot" >&6; }
8681 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8686 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8693 printf %s "checking for a working dd... " >&6; }
8694 if test ${ac_cv_path_lt_DD+y}
8696 printf %s "(cached) " >&6
8698 printf 0123456789abcdef0123456789abcdef >conftest.i
8699 cat conftest.i conftest.i >conftest2.i
8701 if test -z "$lt_DD"; then
8702 ac_path_lt_DD_found=false
8703 # Loop through the user's path and test for each of PROGNAME-LIST
8704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8708 case $as_dir in #(((
8711 *) as_dir=$as_dir/ ;;
8715 for ac_exec_ext in '' $ac_executable_extensions; do
8716 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8717 as_fn_executable_p "$ac_path_lt_DD" || continue
8718 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8719 cmp -s conftest.i conftest.out \
8720 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8722 $ac_path_lt_DD_found && break 3
8727 if test -z "$ac_cv_path_lt_DD"; then
8731 ac_cv_path_lt_DD=$lt_DD
8734 rm -f conftest.i conftest2.i conftest.out
8736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8737 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8741 printf %s "checking how to truncate binary pipes... " >&6; }
8742 if test ${lt_cv_truncate_bin+y}
8744 printf %s "(cached) " >&6
8746 printf 0123456789abcdef0123456789abcdef >conftest.i
8747 cat conftest.i conftest.i >conftest2.i
8749 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8750 cmp -s conftest.i conftest.out \
8751 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8753 rm -f conftest.i conftest2.i conftest.out
8754 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8757 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8765 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8768 for cc_temp in $*""; do
8770 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8771 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8776 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8779 # Check whether --enable-libtool-lock was given.
8780 if test ${enable_libtool_lock+y}
8782 enableval=$enable_libtool_lock;
8785 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8787 # Some flags need to be propagated to the compiler or linker for good
8791 # Find out what ABI is being produced by ac_compile, and set mode
8792 # options accordingly.
8793 echo 'int i;' > conftest.$ac_ext
8794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8795 (eval $ac_compile) 2>&5
8797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8798 test $ac_status = 0; }; then
8799 case `$FILECMD conftest.$ac_objext` in
8811 # Find out what ABI is being produced by ac_compile, and set linker
8812 # options accordingly.
8813 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8815 (eval $ac_compile) 2>&5
8817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8818 test $ac_status = 0; }; then
8819 if test yes = "$lt_cv_prog_gnu_ld"; then
8820 case `$FILECMD conftest.$ac_objext` in
8822 LD="${LD-ld} -melf32bsmip"
8825 LD="${LD-ld} -melf32bmipn32"
8828 LD="${LD-ld} -melf64bmip"
8832 case `$FILECMD conftest.$ac_objext` in
8849 # Find out what ABI is being produced by ac_compile, and set linker
8850 # options accordingly.
8851 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8853 (eval $ac_compile) 2>&5
8855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8856 test $ac_status = 0; }; then
8858 case `$FILECMD conftest.$ac_objext` in
8866 case `$FILECMD conftest.$ac_objext` in
8868 emul="${emul}btsmip"
8871 emul="${emul}ltsmip"
8874 case `$FILECMD conftest.$ac_objext` in
8879 LD="${LD-ld} -m $emul"
8884 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8885 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8886 # Find out what ABI is being produced by ac_compile, and set linker
8887 # options accordingly. Note that the listed cases only cover the
8888 # situations where additional linker options are needed (such as when
8889 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8890 # vice versa); the common cases where no linker options are needed do
8891 # not appear in the list.
8892 echo 'int i;' > conftest.$ac_ext
8893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8894 (eval $ac_compile) 2>&5
8896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8897 test $ac_status = 0; }; then
8898 case `$FILECMD conftest.o` in
8901 x86_64-*kfreebsd*-gnu)
8902 LD="${LD-ld} -m elf_i386_fbsd"
8905 case `$FILECMD conftest.o` in
8907 LD="${LD-ld} -m elf32_x86_64"
8910 LD="${LD-ld} -m elf_i386"
8914 powerpc64le-*linux*)
8915 LD="${LD-ld} -m elf32lppclinux"
8918 LD="${LD-ld} -m elf32ppclinux"
8921 LD="${LD-ld} -m elf_s390"
8924 LD="${LD-ld} -m elf32_sparc"
8930 x86_64-*kfreebsd*-gnu)
8931 LD="${LD-ld} -m elf_x86_64_fbsd"
8934 LD="${LD-ld} -m elf_x86_64"
8937 LD="${LD-ld} -m elf64lppc"
8940 LD="${LD-ld} -m elf64ppc"
8942 s390*-*linux*|s390*-*tpf*)
8943 LD="${LD-ld} -m elf64_s390"
8946 LD="${LD-ld} -m elf64_sparc"
8956 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8958 CFLAGS="$CFLAGS -belf"
8959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8960 printf %s "checking whether the C compiler needs -belf... " >&6; }
8961 if test ${lt_cv_cc_needs_belf+y}
8963 printf %s "(cached) " >&6
8966 ac_cpp='$CPP $CPPFLAGS'
8967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8972 /* end confdefs.h. */
8982 if ac_fn_c_try_link "$LINENO"
8984 lt_cv_cc_needs_belf=yes
8986 lt_cv_cc_needs_belf=no
8988 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8989 conftest$ac_exeext conftest.$ac_ext
8991 ac_cpp='$CPP $CPPFLAGS'
8992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8998 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8999 if test yes != "$lt_cv_cc_needs_belf"; then
9000 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9005 # Find out what ABI is being produced by ac_compile, and set linker
9006 # options accordingly.
9007 echo 'int i;' > conftest.$ac_ext
9008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9009 (eval $ac_compile) 2>&5
9011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9012 test $ac_status = 0; }; then
9013 case `$FILECMD conftest.o` in
9015 case $lt_cv_prog_gnu_ld in
9018 i?86-*-solaris*|x86_64-*-solaris*)
9019 LD="${LD-ld} -m elf_x86_64"
9022 LD="${LD-ld} -m elf64_sparc"
9025 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9026 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9031 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9043 need_locks=$enable_libtool_lock
9045 if test -n "$ac_tool_prefix"; then
9046 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9047 set dummy ${ac_tool_prefix}mt; ac_word=$2
9048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9049 printf %s "checking for $ac_word... " >&6; }
9050 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9052 printf %s "(cached) " >&6
9054 if test -n "$MANIFEST_TOOL"; then
9055 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9061 case $as_dir in #(((
9064 *) as_dir=$as_dir/ ;;
9066 for ac_exec_ext in '' $ac_executable_extensions; do
9067 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9068 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9078 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9079 if test -n "$MANIFEST_TOOL"; then
9080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9081 printf "%s\n" "$MANIFEST_TOOL" >&6; }
9083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9084 printf "%s\n" "no" >&6; }
9089 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9090 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9091 # Extract the first word of "mt", so it can be a program name with args.
9092 set dummy mt; ac_word=$2
9093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9094 printf %s "checking for $ac_word... " >&6; }
9095 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9097 printf %s "(cached) " >&6
9099 if test -n "$ac_ct_MANIFEST_TOOL"; then
9100 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9106 case $as_dir in #(((
9109 *) as_dir=$as_dir/ ;;
9111 for ac_exec_ext in '' $ac_executable_extensions; do
9112 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9113 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9123 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9124 if test -n "$ac_ct_MANIFEST_TOOL"; then
9125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9126 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9129 printf "%s\n" "no" >&6; }
9132 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9135 case $cross_compiling:$ac_tool_warned in
9137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9138 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9139 ac_tool_warned=yes ;;
9141 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9144 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9147 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9149 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9150 if test ${lt_cv_path_mainfest_tool+y}
9152 printf %s "(cached) " >&6
9154 lt_cv_path_mainfest_tool=no
9155 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9156 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9157 cat conftest.err >&5
9158 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9159 lt_cv_path_mainfest_tool=yes
9163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9164 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
9165 if test yes != "$lt_cv_path_mainfest_tool"; then
9175 rhapsody* | darwin*)
9176 if test -n "$ac_tool_prefix"; then
9177 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9178 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9180 printf %s "checking for $ac_word... " >&6; }
9181 if test ${ac_cv_prog_DSYMUTIL+y}
9183 printf %s "(cached) " >&6
9185 if test -n "$DSYMUTIL"; then
9186 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9192 case $as_dir in #(((
9195 *) as_dir=$as_dir/ ;;
9197 for ac_exec_ext in '' $ac_executable_extensions; do
9198 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9199 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9209 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9210 if test -n "$DSYMUTIL"; then
9211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9212 printf "%s\n" "$DSYMUTIL" >&6; }
9214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9215 printf "%s\n" "no" >&6; }
9220 if test -z "$ac_cv_prog_DSYMUTIL"; then
9221 ac_ct_DSYMUTIL=$DSYMUTIL
9222 # Extract the first word of "dsymutil", so it can be a program name with args.
9223 set dummy dsymutil; ac_word=$2
9224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9225 printf %s "checking for $ac_word... " >&6; }
9226 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9228 printf %s "(cached) " >&6
9230 if test -n "$ac_ct_DSYMUTIL"; then
9231 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9237 case $as_dir in #(((
9240 *) as_dir=$as_dir/ ;;
9242 for ac_exec_ext in '' $ac_executable_extensions; do
9243 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9244 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9254 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9255 if test -n "$ac_ct_DSYMUTIL"; then
9256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9257 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9260 printf "%s\n" "no" >&6; }
9263 if test "x$ac_ct_DSYMUTIL" = x; then
9266 case $cross_compiling:$ac_tool_warned in
9268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9269 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9270 ac_tool_warned=yes ;;
9272 DSYMUTIL=$ac_ct_DSYMUTIL
9275 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9278 if test -n "$ac_tool_prefix"; then
9279 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9280 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9282 printf %s "checking for $ac_word... " >&6; }
9283 if test ${ac_cv_prog_NMEDIT+y}
9285 printf %s "(cached) " >&6
9287 if test -n "$NMEDIT"; then
9288 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9294 case $as_dir in #(((
9297 *) as_dir=$as_dir/ ;;
9299 for ac_exec_ext in '' $ac_executable_extensions; do
9300 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9301 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9311 NMEDIT=$ac_cv_prog_NMEDIT
9312 if test -n "$NMEDIT"; then
9313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9314 printf "%s\n" "$NMEDIT" >&6; }
9316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9317 printf "%s\n" "no" >&6; }
9322 if test -z "$ac_cv_prog_NMEDIT"; then
9323 ac_ct_NMEDIT=$NMEDIT
9324 # Extract the first word of "nmedit", so it can be a program name with args.
9325 set dummy nmedit; ac_word=$2
9326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9327 printf %s "checking for $ac_word... " >&6; }
9328 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9330 printf %s "(cached) " >&6
9332 if test -n "$ac_ct_NMEDIT"; then
9333 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9339 case $as_dir in #(((
9342 *) as_dir=$as_dir/ ;;
9344 for ac_exec_ext in '' $ac_executable_extensions; do
9345 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9346 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9356 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9357 if test -n "$ac_ct_NMEDIT"; then
9358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9359 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9362 printf "%s\n" "no" >&6; }
9365 if test "x$ac_ct_NMEDIT" = x; then
9368 case $cross_compiling:$ac_tool_warned in
9370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9371 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9372 ac_tool_warned=yes ;;
9374 NMEDIT=$ac_ct_NMEDIT
9377 NMEDIT="$ac_cv_prog_NMEDIT"
9380 if test -n "$ac_tool_prefix"; then
9381 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9382 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9384 printf %s "checking for $ac_word... " >&6; }
9385 if test ${ac_cv_prog_LIPO+y}
9387 printf %s "(cached) " >&6
9389 if test -n "$LIPO"; then
9390 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9396 case $as_dir in #(((
9399 *) as_dir=$as_dir/ ;;
9401 for ac_exec_ext in '' $ac_executable_extensions; do
9402 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9403 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9413 LIPO=$ac_cv_prog_LIPO
9414 if test -n "$LIPO"; then
9415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9416 printf "%s\n" "$LIPO" >&6; }
9418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9419 printf "%s\n" "no" >&6; }
9424 if test -z "$ac_cv_prog_LIPO"; then
9426 # Extract the first word of "lipo", so it can be a program name with args.
9427 set dummy lipo; ac_word=$2
9428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9429 printf %s "checking for $ac_word... " >&6; }
9430 if test ${ac_cv_prog_ac_ct_LIPO+y}
9432 printf %s "(cached) " >&6
9434 if test -n "$ac_ct_LIPO"; then
9435 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9441 case $as_dir in #(((
9444 *) as_dir=$as_dir/ ;;
9446 for ac_exec_ext in '' $ac_executable_extensions; do
9447 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9448 ac_cv_prog_ac_ct_LIPO="lipo"
9449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9458 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9459 if test -n "$ac_ct_LIPO"; then
9460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9461 printf "%s\n" "$ac_ct_LIPO" >&6; }
9463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9464 printf "%s\n" "no" >&6; }
9467 if test "x$ac_ct_LIPO" = x; then
9470 case $cross_compiling:$ac_tool_warned in
9472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9473 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9474 ac_tool_warned=yes ;;
9479 LIPO="$ac_cv_prog_LIPO"
9482 if test -n "$ac_tool_prefix"; then
9483 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9484 set dummy ${ac_tool_prefix}otool; ac_word=$2
9485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9486 printf %s "checking for $ac_word... " >&6; }
9487 if test ${ac_cv_prog_OTOOL+y}
9489 printf %s "(cached) " >&6
9491 if test -n "$OTOOL"; then
9492 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9498 case $as_dir in #(((
9501 *) as_dir=$as_dir/ ;;
9503 for ac_exec_ext in '' $ac_executable_extensions; do
9504 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9505 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9515 OTOOL=$ac_cv_prog_OTOOL
9516 if test -n "$OTOOL"; then
9517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9518 printf "%s\n" "$OTOOL" >&6; }
9520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9521 printf "%s\n" "no" >&6; }
9526 if test -z "$ac_cv_prog_OTOOL"; then
9528 # Extract the first word of "otool", so it can be a program name with args.
9529 set dummy otool; ac_word=$2
9530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9531 printf %s "checking for $ac_word... " >&6; }
9532 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9534 printf %s "(cached) " >&6
9536 if test -n "$ac_ct_OTOOL"; then
9537 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9543 case $as_dir in #(((
9546 *) as_dir=$as_dir/ ;;
9548 for ac_exec_ext in '' $ac_executable_extensions; do
9549 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9550 ac_cv_prog_ac_ct_OTOOL="otool"
9551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9560 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9561 if test -n "$ac_ct_OTOOL"; then
9562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9563 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9566 printf "%s\n" "no" >&6; }
9569 if test "x$ac_ct_OTOOL" = x; then
9572 case $cross_compiling:$ac_tool_warned in
9574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9575 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9576 ac_tool_warned=yes ;;
9581 OTOOL="$ac_cv_prog_OTOOL"
9584 if test -n "$ac_tool_prefix"; then
9585 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9586 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9588 printf %s "checking for $ac_word... " >&6; }
9589 if test ${ac_cv_prog_OTOOL64+y}
9591 printf %s "(cached) " >&6
9593 if test -n "$OTOOL64"; then
9594 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9600 case $as_dir in #(((
9603 *) as_dir=$as_dir/ ;;
9605 for ac_exec_ext in '' $ac_executable_extensions; do
9606 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9607 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9617 OTOOL64=$ac_cv_prog_OTOOL64
9618 if test -n "$OTOOL64"; then
9619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9620 printf "%s\n" "$OTOOL64" >&6; }
9622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9623 printf "%s\n" "no" >&6; }
9628 if test -z "$ac_cv_prog_OTOOL64"; then
9629 ac_ct_OTOOL64=$OTOOL64
9630 # Extract the first word of "otool64", so it can be a program name with args.
9631 set dummy otool64; ac_word=$2
9632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9633 printf %s "checking for $ac_word... " >&6; }
9634 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9636 printf %s "(cached) " >&6
9638 if test -n "$ac_ct_OTOOL64"; then
9639 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9645 case $as_dir in #(((
9648 *) as_dir=$as_dir/ ;;
9650 for ac_exec_ext in '' $ac_executable_extensions; do
9651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9652 ac_cv_prog_ac_ct_OTOOL64="otool64"
9653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9662 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9663 if test -n "$ac_ct_OTOOL64"; then
9664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9665 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9668 printf "%s\n" "no" >&6; }
9671 if test "x$ac_ct_OTOOL64" = x; then
9674 case $cross_compiling:$ac_tool_warned in
9676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9677 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9678 ac_tool_warned=yes ;;
9680 OTOOL64=$ac_ct_OTOOL64
9683 OTOOL64="$ac_cv_prog_OTOOL64"
9712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9713 printf %s "checking for -single_module linker flag... " >&6; }
9714 if test ${lt_cv_apple_cc_single_mod+y}
9716 printf %s "(cached) " >&6
9718 lt_cv_apple_cc_single_mod=no
9719 if test -z "$LT_MULTI_MODULE"; then
9720 # By default we will add the -single_module flag. You can override
9721 # by either setting the environment variable LT_MULTI_MODULE
9722 # non-empty at configure time, or by adding -multi_module to the
9724 rm -rf libconftest.dylib*
9725 echo "int foo(void){return 1;}" > conftest.c
9726 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9727 -dynamiclib -Wl,-single_module conftest.c" >&5
9728 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9729 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9731 # If there is a non-empty error log, and "single_module"
9732 # appears in it, assume the flag caused a linker warning
9733 if test -s conftest.err && $GREP single_module conftest.err; then
9734 cat conftest.err >&5
9735 # Otherwise, if the output was created with a 0 exit code from
9736 # the compiler, it worked.
9737 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9738 lt_cv_apple_cc_single_mod=yes
9740 cat conftest.err >&5
9742 rm -rf libconftest.dylib*
9746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9747 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9750 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9751 if test ${lt_cv_ld_exported_symbols_list+y}
9753 printf %s "(cached) " >&6
9755 lt_cv_ld_exported_symbols_list=no
9756 save_LDFLAGS=$LDFLAGS
9757 echo "_main" > conftest.sym
9758 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9760 /* end confdefs.h. */
9770 if ac_fn_c_try_link "$LINENO"
9772 lt_cv_ld_exported_symbols_list=yes
9774 lt_cv_ld_exported_symbols_list=no
9776 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9777 conftest$ac_exeext conftest.$ac_ext
9778 LDFLAGS=$save_LDFLAGS
9781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9782 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9785 printf %s "checking for -force_load linker flag... " >&6; }
9786 if test ${lt_cv_ld_force_load+y}
9788 printf %s "(cached) " >&6
9790 lt_cv_ld_force_load=no
9791 cat > conftest.c << _LT_EOF
9792 int forced_loaded() { return 2;}
9794 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9795 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9796 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9797 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9798 echo "$RANLIB libconftest.a" >&5
9799 $RANLIB libconftest.a 2>&5
9800 cat > conftest.c << _LT_EOF
9801 int main() { return 0;}
9803 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9804 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9806 if test -s conftest.err && $GREP force_load conftest.err; then
9807 cat conftest.err >&5
9808 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9809 lt_cv_ld_force_load=yes
9811 cat conftest.err >&5
9813 rm -f conftest.err libconftest.a conftest conftest.c
9814 rm -rf conftest.dSYM
9817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9818 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9820 rhapsody* | darwin1.[012])
9821 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9823 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9825 case $MACOSX_DEPLOYMENT_TARGET,$host in
9826 10.[012],*|,*powerpc*-darwin[5-8]*)
9827 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9829 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9833 if test yes = "$lt_cv_apple_cc_single_mod"; then
9834 _lt_dar_single_mod='$single_module'
9836 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9837 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9839 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9841 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9842 _lt_dsymutil='~$DSYMUTIL $lib || :'
9849 # func_munge_path_list VARIABLE PATH
9850 # -----------------------------------
9851 # VARIABLE is name of variable containing _space_ separated list of
9852 # directories to be munged by the contents of PATH, which is string
9855 # string "DIR[ DIR]" will be prepended to VARIABLE
9857 # string "DIR[ DIR]" will be appended to VARIABLE
9858 # "DIRP[:DIRP]::[DIRA:]DIRA"
9859 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9860 # "DIRA[ DIRA]" will be appended to VARIABLE
9862 # VARIABLE will be replaced by "DIR[ DIR]"
9863 func_munge_path_list ()
9869 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9872 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9875 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9876 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9879 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9884 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9886 if test "x$ac_cv_header_dlfcn_h" = xyes
9888 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9897 # Check whether --enable-static was given.
9898 if test ${enable_static+y}
9900 enableval=$enable_static; p=${PACKAGE-default}
9902 yes) enable_static=yes ;;
9903 no) enable_static=no ;;
9906 # Look at the argument we got. We use all the common list separators.
9907 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9908 for pkg in $enableval; do
9910 if test "X$pkg" = "X$p"; then
9927 enable_win32_dll=yes
9930 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9931 if test -n "$ac_tool_prefix"; then
9932 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9933 set dummy ${ac_tool_prefix}as; ac_word=$2
9934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9935 printf %s "checking for $ac_word... " >&6; }
9936 if test ${ac_cv_prog_AS+y}
9938 printf %s "(cached) " >&6
9940 if test -n "$AS"; then
9941 ac_cv_prog_AS="$AS" # Let the user override the test.
9943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9947 case $as_dir in #(((
9950 *) as_dir=$as_dir/ ;;
9952 for ac_exec_ext in '' $ac_executable_extensions; do
9953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9954 ac_cv_prog_AS="${ac_tool_prefix}as"
9955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9965 if test -n "$AS"; then
9966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9967 printf "%s\n" "$AS" >&6; }
9969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970 printf "%s\n" "no" >&6; }
9975 if test -z "$ac_cv_prog_AS"; then
9977 # Extract the first word of "as", so it can be a program name with args.
9978 set dummy as; ac_word=$2
9979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9980 printf %s "checking for $ac_word... " >&6; }
9981 if test ${ac_cv_prog_ac_ct_AS+y}
9983 printf %s "(cached) " >&6
9985 if test -n "$ac_ct_AS"; then
9986 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9992 case $as_dir in #(((
9995 *) as_dir=$as_dir/ ;;
9997 for ac_exec_ext in '' $ac_executable_extensions; do
9998 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9999 ac_cv_prog_ac_ct_AS="as"
10000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10009 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10010 if test -n "$ac_ct_AS"; then
10011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10012 printf "%s\n" "$ac_ct_AS" >&6; }
10014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10015 printf "%s\n" "no" >&6; }
10018 if test "x$ac_ct_AS" = x; then
10021 case $cross_compiling:$ac_tool_warned in
10023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10024 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10025 ac_tool_warned=yes ;;
10030 AS="$ac_cv_prog_AS"
10033 if test -n "$ac_tool_prefix"; then
10034 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10035 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10037 printf %s "checking for $ac_word... " >&6; }
10038 if test ${ac_cv_prog_DLLTOOL+y}
10040 printf %s "(cached) " >&6
10042 if test -n "$DLLTOOL"; then
10043 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10046 for as_dir in $PATH
10049 case $as_dir in #(((
10052 *) as_dir=$as_dir/ ;;
10054 for ac_exec_ext in '' $ac_executable_extensions; do
10055 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10056 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10066 DLLTOOL=$ac_cv_prog_DLLTOOL
10067 if test -n "$DLLTOOL"; then
10068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10069 printf "%s\n" "$DLLTOOL" >&6; }
10071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10072 printf "%s\n" "no" >&6; }
10077 if test -z "$ac_cv_prog_DLLTOOL"; then
10078 ac_ct_DLLTOOL=$DLLTOOL
10079 # Extract the first word of "dlltool", so it can be a program name with args.
10080 set dummy dlltool; ac_word=$2
10081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10082 printf %s "checking for $ac_word... " >&6; }
10083 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10085 printf %s "(cached) " >&6
10087 if test -n "$ac_ct_DLLTOOL"; then
10088 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091 for as_dir in $PATH
10094 case $as_dir in #(((
10097 *) as_dir=$as_dir/ ;;
10099 for ac_exec_ext in '' $ac_executable_extensions; do
10100 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10101 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10111 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10112 if test -n "$ac_ct_DLLTOOL"; then
10113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10114 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10117 printf "%s\n" "no" >&6; }
10120 if test "x$ac_ct_DLLTOOL" = x; then
10123 case $cross_compiling:$ac_tool_warned in
10125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10126 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10127 ac_tool_warned=yes ;;
10129 DLLTOOL=$ac_ct_DLLTOOL
10132 DLLTOOL="$ac_cv_prog_DLLTOOL"
10135 if test -n "$ac_tool_prefix"; then
10136 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10137 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10139 printf %s "checking for $ac_word... " >&6; }
10140 if test ${ac_cv_prog_OBJDUMP+y}
10142 printf %s "(cached) " >&6
10144 if test -n "$OBJDUMP"; then
10145 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10148 for as_dir in $PATH
10151 case $as_dir in #(((
10154 *) as_dir=$as_dir/ ;;
10156 for ac_exec_ext in '' $ac_executable_extensions; do
10157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10158 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10168 OBJDUMP=$ac_cv_prog_OBJDUMP
10169 if test -n "$OBJDUMP"; then
10170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10171 printf "%s\n" "$OBJDUMP" >&6; }
10173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10174 printf "%s\n" "no" >&6; }
10179 if test -z "$ac_cv_prog_OBJDUMP"; then
10180 ac_ct_OBJDUMP=$OBJDUMP
10181 # Extract the first word of "objdump", so it can be a program name with args.
10182 set dummy objdump; ac_word=$2
10183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10184 printf %s "checking for $ac_word... " >&6; }
10185 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10187 printf %s "(cached) " >&6
10189 if test -n "$ac_ct_OBJDUMP"; then
10190 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10193 for as_dir in $PATH
10196 case $as_dir in #(((
10199 *) as_dir=$as_dir/ ;;
10201 for ac_exec_ext in '' $ac_executable_extensions; do
10202 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10203 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10213 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10214 if test -n "$ac_ct_OBJDUMP"; then
10215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10216 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10219 printf "%s\n" "no" >&6; }
10222 if test "x$ac_ct_OBJDUMP" = x; then
10225 case $cross_compiling:$ac_tool_warned in
10227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10228 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10229 ac_tool_warned=yes ;;
10231 OBJDUMP=$ac_ct_OBJDUMP
10234 OBJDUMP="$ac_cv_prog_OBJDUMP"
10240 test -z "$AS" && AS=as
10246 test -z "$DLLTOOL" && DLLTOOL=dlltool
10252 test -z "$OBJDUMP" && OBJDUMP=objdump
10264 # Check whether --enable-shared was given.
10265 if test ${enable_shared+y}
10267 enableval=$enable_shared; p=${PACKAGE-default}
10269 yes) enable_shared=yes ;;
10270 no) enable_shared=no ;;
10273 # Look at the argument we got. We use all the common list separators.
10274 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10275 for pkg in $enableval; do
10277 if test "X$pkg" = "X$p"; then
10298 # Check whether --with-pic was given.
10299 if test ${with_pic+y}
10301 withval=$with_pic; lt_p=${PACKAGE-default}
10303 yes|no) pic_mode=$withval ;;
10306 # Look at the argument we got. We use all the common list separators.
10307 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10308 for lt_pkg in $withval; do
10310 if test "X$lt_pkg" = "X$lt_p"; then
10328 # Check whether --enable-fast-install was given.
10329 if test ${enable_fast_install+y}
10331 enableval=$enable_fast_install; p=${PACKAGE-default}
10333 yes) enable_fast_install=yes ;;
10334 no) enable_fast_install=no ;;
10336 enable_fast_install=no
10337 # Look at the argument we got. We use all the common list separators.
10338 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10339 for pkg in $enableval; do
10341 if test "X$pkg" = "X$p"; then
10342 enable_fast_install=yes
10349 enable_fast_install=yes
10359 shared_archive_member_spec=
10360 case $host,$enable_shared in
10361 power*-*-aix[5-9]*,yes)
10362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10363 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10365 # Check whether --with-aix-soname was given.
10366 if test ${with_aix_soname+y}
10368 withval=$with_aix_soname; case $withval in
10372 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10375 lt_cv_with_aix_soname=$with_aix_soname
10377 if test ${lt_cv_with_aix_soname+y}
10379 printf %s "(cached) " >&6
10381 lt_cv_with_aix_soname=aix
10384 with_aix_soname=$lt_cv_with_aix_soname
10387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10388 printf "%s\n" "$with_aix_soname" >&6; }
10389 if test aix != "$with_aix_soname"; then
10390 # For the AIX way of multilib, we name the shared archive member
10391 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10392 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10393 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10394 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10395 if test 64 = "${OBJECT_MODE-32}"; then
10396 shared_archive_member_spec=shr_64
10398 shared_archive_member_spec=shr
10403 with_aix_soname=aix
10416 # This can be used to rebuild libtool when needed
10417 LIBTOOL_DEPS=$ltmain
10419 # Always use our own libtool.
10420 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10451 test -z "$LN_S" && LN_S="ln -s"
10466 if test -n "${ZSH_VERSION+set}"; then
10467 setopt NO_GLOB_SUBST
10470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10471 printf %s "checking for objdir... " >&6; }
10472 if test ${lt_cv_objdir+y}
10474 printf %s "(cached) " >&6
10476 rm -f .libs 2>/dev/null
10477 mkdir .libs 2>/dev/null
10478 if test -d .libs; then
10481 # MS-DOS does not allow filenames that begin with a dot.
10484 rmdir .libs 2>/dev/null
10486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10487 printf "%s\n" "$lt_cv_objdir" >&6; }
10488 objdir=$lt_cv_objdir
10494 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10501 # AIX sometimes has problems with the GCC collect2 program. For some
10502 # reason, if we set the COLLECT_NAMES environment variable, the problems
10503 # vanish in a puff of smoke.
10504 if test set != "${COLLECT_NAMES+set}"; then
10506 export COLLECT_NAMES
10511 # Global variables:
10513 can_build_shared=yes
10515 # All known linkers require a '.a' archive for static linking (except MSVC and
10516 # ICC, which need '.lib').
10519 with_gnu_ld=$lt_cv_prog_gnu_ld
10524 # Set sane defaults for various variables
10525 test -z "$CC" && CC=cc
10526 test -z "$LTCC" && LTCC=$CC
10527 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10528 test -z "$LD" && LD=ld
10529 test -z "$ac_objext" && ac_objext=o
10531 func_cc_basename $compiler
10532 cc_basename=$func_cc_basename_result
10535 # Only perform the check for file, if the check method requires it
10536 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10537 case $deplibs_check_method in
10539 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10541 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10542 if test ${lt_cv_path_MAGIC_CMD+y}
10544 printf %s "(cached) " >&6
10548 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10551 lt_save_MAGIC_CMD=$MAGIC_CMD
10552 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10553 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10554 for ac_dir in $ac_dummy; do
10556 test -z "$ac_dir" && ac_dir=.
10557 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10558 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10559 if test -n "$file_magic_test_file"; then
10560 case $deplibs_check_method in
10562 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10563 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10564 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10565 $EGREP "$file_magic_regex" > /dev/null; then
10570 *** Warning: the command libtool uses to detect shared libraries,
10571 *** $file_magic_cmd, produces output that libtool cannot recognize.
10572 *** The result is that libtool may fail to recognize shared libraries
10573 *** as such. This will affect the creation of libtool libraries that
10574 *** depend on shared libraries, but programs linked with such libtool
10575 *** libraries will work regardless of this problem. Nevertheless, you
10576 *** may want to report the problem to your system manager and/or to
10577 *** bug-libtool@gnu.org
10587 MAGIC_CMD=$lt_save_MAGIC_CMD
10592 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10593 if test -n "$MAGIC_CMD"; then
10594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10595 printf "%s\n" "$MAGIC_CMD" >&6; }
10597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10598 printf "%s\n" "no" >&6; }
10605 if test -z "$lt_cv_path_MAGIC_CMD"; then
10606 if test -n "$ac_tool_prefix"; then
10607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10608 printf %s "checking for file... " >&6; }
10609 if test ${lt_cv_path_MAGIC_CMD+y}
10611 printf %s "(cached) " >&6
10615 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10618 lt_save_MAGIC_CMD=$MAGIC_CMD
10619 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10620 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10621 for ac_dir in $ac_dummy; do
10623 test -z "$ac_dir" && ac_dir=.
10624 if test -f "$ac_dir/file"; then
10625 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10626 if test -n "$file_magic_test_file"; then
10627 case $deplibs_check_method in
10629 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10630 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10631 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10632 $EGREP "$file_magic_regex" > /dev/null; then
10637 *** Warning: the command libtool uses to detect shared libraries,
10638 *** $file_magic_cmd, produces output that libtool cannot recognize.
10639 *** The result is that libtool may fail to recognize shared libraries
10640 *** as such. This will affect the creation of libtool libraries that
10641 *** depend on shared libraries, but programs linked with such libtool
10642 *** libraries will work regardless of this problem. Nevertheless, you
10643 *** may want to report the problem to your system manager and/or to
10644 *** bug-libtool@gnu.org
10654 MAGIC_CMD=$lt_save_MAGIC_CMD
10659 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10660 if test -n "$MAGIC_CMD"; then
10661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10662 printf "%s\n" "$MAGIC_CMD" >&6; }
10664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10665 printf "%s\n" "no" >&6; }
10678 # Use C for the default configuration in the libtool script
10682 ac_cpp='$CPP $CPPFLAGS'
10683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10688 # Source file extension for C test sources.
10691 # Object file extension for compiled C test sources.
10695 # Code to be used in simple compile tests
10696 lt_simple_compile_test_code="int some_variable = 0;"
10698 # Code to be used in simple link tests
10699 lt_simple_link_test_code='int main(){return(0);}'
10707 # If no C compiler was specified, use CC.
10710 # If no C compiler flags were specified, use CFLAGS.
10711 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10713 # Allow CC to be a program name with arguments.
10716 # Save the default compiler, since it gets overwritten when the other
10717 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10718 compiler_DEFAULT=$CC
10720 # save warnings/boilerplate of simple test code
10721 ac_outfile=conftest.$ac_objext
10722 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10723 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10724 _lt_compiler_boilerplate=`cat conftest.err`
10727 ac_outfile=conftest.$ac_objext
10728 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10729 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10730 _lt_linker_boilerplate=`cat conftest.err`
10735 ## There is no encapsulation within the following macros, do not change
10736 ## the running order or otherwise move them around unless you know exactly
10737 ## what you are doing...
10738 if test -n "$compiler"; then
10740 lt_prog_compiler_no_builtin_flag=
10742 if test yes = "$GCC"; then
10743 case $cc_basename in
10745 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10747 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10751 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10752 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10754 printf %s "(cached) " >&6
10756 lt_cv_prog_compiler_rtti_exceptions=no
10757 ac_outfile=conftest.$ac_objext
10758 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10759 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10760 # Insert the option either (1) after the last *FLAGS variable, or
10761 # (2) before a word containing "conftest.", or (3) at the end.
10762 # Note that $ac_compile itself does not contain backslashes and begins
10763 # with a dollar sign (not a hyphen), so the echo should work correctly.
10764 # The option is referenced via a variable to avoid confusing sed.
10765 lt_compile=`echo "$ac_compile" | $SED \
10766 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10767 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10768 -e 's:$: $lt_compiler_flag:'`
10769 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10770 (eval "$lt_compile" 2>conftest.err)
10772 cat conftest.err >&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 if (exit $ac_status) && test -s "$ac_outfile"; then
10775 # The compiler can only warn and ignore the option if not recognized
10776 # So say no if there are warnings other than the usual output.
10777 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10778 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10779 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10780 lt_cv_prog_compiler_rtti_exceptions=yes
10786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10787 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10789 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10790 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10802 lt_prog_compiler_wl=
10803 lt_prog_compiler_pic=
10804 lt_prog_compiler_static=
10807 if test yes = "$GCC"; then
10808 lt_prog_compiler_wl='-Wl,'
10809 lt_prog_compiler_static='-static'
10813 # All AIX code is PIC.
10814 if test ia64 = "$host_cpu"; then
10815 # AIX 5 now supports IA64 processor
10816 lt_prog_compiler_static='-Bstatic'
10818 lt_prog_compiler_pic='-fPIC'
10824 # see comment about AmigaOS4 .so support
10825 lt_prog_compiler_pic='-fPIC'
10828 # FIXME: we need at least 68020 code to build shared libraries, but
10829 # adding the '-m68020' flag to GCC prevents building anything better,
10831 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10836 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10837 # PIC is the default for these OSes.
10840 mingw* | cygwin* | pw32* | os2* | cegcc*)
10841 # This hack is so that the source file can tell whether it is being
10842 # built for inclusion in a dll (and should export symbols for example).
10843 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10844 # (--disable-auto-import) libraries
10845 lt_prog_compiler_pic='-DDLL_EXPORT'
10848 lt_prog_compiler_static='$wl-static'
10853 darwin* | rhapsody*)
10854 # PIC is the default on this platform
10855 # Common symbols not allowed in MH_DYLIB files
10856 lt_prog_compiler_pic='-fno-common'
10860 # PIC is the default for Haiku.
10861 # The "-static" flag exists, but is broken.
10862 lt_prog_compiler_static=
10866 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10867 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10868 # sets the default TLS model and affects inlining.
10874 lt_prog_compiler_pic='-fPIC'
10880 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10881 # Instead, we relocate shared libraries at runtime.
10885 # Just because we use GCC doesn't mean we suddenly get shared libraries
10886 # on systems that don't support them.
10887 lt_prog_compiler_can_build_shared=no
10892 # QNX uses GNU C++, but need to define -shared option too, otherwise
10893 # it will coredump.
10894 lt_prog_compiler_pic='-fPIC -shared'
10898 if test -d /usr/nec; then
10899 lt_prog_compiler_pic=-Kconform_pic
10904 lt_prog_compiler_pic='-fPIC'
10908 case $cc_basename in
10909 nvcc*) # Cuda Compiler Driver 2.2
10910 lt_prog_compiler_wl='-Xlinker '
10911 if test -n "$lt_prog_compiler_pic"; then
10912 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10917 # PORTME Check for flag to pass linker flags through the system compiler.
10920 lt_prog_compiler_wl='-Wl,'
10921 if test ia64 = "$host_cpu"; then
10922 # AIX 5 now supports IA64 processor
10923 lt_prog_compiler_static='-Bstatic'
10925 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10929 darwin* | rhapsody*)
10930 # PIC is the default on this platform
10931 # Common symbols not allowed in MH_DYLIB files
10932 lt_prog_compiler_pic='-fno-common'
10933 case $cc_basename in
10935 # NAG Fortran compiler
10936 lt_prog_compiler_wl='-Wl,-Wl,,'
10937 lt_prog_compiler_pic='-PIC'
10938 lt_prog_compiler_static='-Bstatic'
10943 mingw* | cygwin* | pw32* | os2* | cegcc*)
10944 # This hack is so that the source file can tell whether it is being
10945 # built for inclusion in a dll (and should export symbols for example).
10946 lt_prog_compiler_pic='-DDLL_EXPORT'
10949 lt_prog_compiler_static='$wl-static'
10954 hpux9* | hpux10* | hpux11*)
10955 lt_prog_compiler_wl='-Wl,'
10956 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10957 # not for PA HP-UX.
10963 lt_prog_compiler_pic='+Z'
10966 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10967 lt_prog_compiler_static='$wl-a ${wl}archive'
10970 irix5* | irix6* | nonstopux*)
10971 lt_prog_compiler_wl='-Wl,'
10972 # PIC (with -KPIC) is the default.
10973 lt_prog_compiler_static='-non_shared'
10976 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10977 case $cc_basename in
10978 # old Intel for x86_64, which still supported -KPIC.
10980 lt_prog_compiler_wl='-Wl,'
10981 lt_prog_compiler_pic='-KPIC'
10982 lt_prog_compiler_static='-static'
10984 # icc used to be incompatible with GCC.
10985 # ICC 10 doesn't accept -KPIC any more.
10987 lt_prog_compiler_wl='-Wl,'
10988 lt_prog_compiler_pic='-fPIC'
10989 lt_prog_compiler_static='-static'
10991 # Lahey Fortran 8.1.
10993 lt_prog_compiler_wl='-Wl,'
10994 lt_prog_compiler_pic='--shared'
10995 lt_prog_compiler_static='--static'
10998 # NAG Fortran compiler
10999 lt_prog_compiler_wl='-Wl,-Wl,,'
11000 lt_prog_compiler_pic='-PIC'
11001 lt_prog_compiler_static='-Bstatic'
11004 # Fabrice Bellard et al's Tiny C Compiler
11005 lt_prog_compiler_wl='-Wl,'
11006 lt_prog_compiler_pic='-fPIC'
11007 lt_prog_compiler_static='-static'
11009 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11010 # Portland Group compilers (*not* the Pentium gcc compiler,
11011 # which looks to be a dead project)
11012 lt_prog_compiler_wl='-Wl,'
11013 lt_prog_compiler_pic='-fpic'
11014 lt_prog_compiler_static='-Bstatic'
11017 lt_prog_compiler_wl='-Wl,'
11018 # All Alpha code is PIC.
11019 lt_prog_compiler_static='-non_shared'
11021 xl* | bgxl* | bgf* | mpixl*)
11022 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11023 lt_prog_compiler_wl='-Wl,'
11024 lt_prog_compiler_pic='-qpic'
11025 lt_prog_compiler_static='-qstaticlink'
11028 case `$CC -V 2>&1 | $SED 5q` in
11029 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11030 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11031 lt_prog_compiler_pic='-KPIC'
11032 lt_prog_compiler_static='-Bstatic'
11033 lt_prog_compiler_wl=''
11035 *Sun\ F* | *Sun*Fortran*)
11036 lt_prog_compiler_pic='-KPIC'
11037 lt_prog_compiler_static='-Bstatic'
11038 lt_prog_compiler_wl='-Qoption ld '
11042 lt_prog_compiler_pic='-KPIC'
11043 lt_prog_compiler_static='-Bstatic'
11044 lt_prog_compiler_wl='-Wl,'
11046 *Intel*\ [CF]*Compiler*)
11047 lt_prog_compiler_wl='-Wl,'
11048 lt_prog_compiler_pic='-fPIC'
11049 lt_prog_compiler_static='-static'
11052 lt_prog_compiler_wl='-Wl,'
11053 lt_prog_compiler_pic='-fpic'
11054 lt_prog_compiler_static='-Bstatic'
11062 lt_prog_compiler_pic='-KPIC'
11063 lt_prog_compiler_static='-Bstatic'
11067 # QNX uses GNU C++, but need to define -shared option too, otherwise
11068 # it will coredump.
11069 lt_prog_compiler_pic='-fPIC -shared'
11072 osf3* | osf4* | osf5*)
11073 lt_prog_compiler_wl='-Wl,'
11074 # All OSF/1 code is PIC.
11075 lt_prog_compiler_static='-non_shared'
11079 lt_prog_compiler_static='-non_shared'
11083 lt_prog_compiler_pic='-KPIC'
11084 lt_prog_compiler_static='-Bstatic'
11085 case $cc_basename in
11086 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11087 lt_prog_compiler_wl='-Qoption ld ';;
11089 lt_prog_compiler_wl='-Wl,';;
11094 lt_prog_compiler_wl='-Qoption ld '
11095 lt_prog_compiler_pic='-PIC'
11096 lt_prog_compiler_static='-Bstatic'
11099 sysv4 | sysv4.2uw2* | sysv4.3*)
11100 lt_prog_compiler_wl='-Wl,'
11101 lt_prog_compiler_pic='-KPIC'
11102 lt_prog_compiler_static='-Bstatic'
11106 if test -d /usr/nec; then
11107 lt_prog_compiler_pic='-Kconform_pic'
11108 lt_prog_compiler_static='-Bstatic'
11112 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11113 lt_prog_compiler_wl='-Wl,'
11114 lt_prog_compiler_pic='-KPIC'
11115 lt_prog_compiler_static='-Bstatic'
11119 lt_prog_compiler_wl='-Wl,'
11120 lt_prog_compiler_can_build_shared=no
11124 lt_prog_compiler_pic='-pic'
11125 lt_prog_compiler_static='-Bstatic'
11129 lt_prog_compiler_can_build_shared=no
11135 # For platforms that do not support PIC, -DPIC is meaningless:
11137 lt_prog_compiler_pic=
11140 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11145 printf %s "checking for $compiler option to produce PIC... " >&6; }
11146 if test ${lt_cv_prog_compiler_pic+y}
11148 printf %s "(cached) " >&6
11150 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11153 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11154 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11157 # Check to make sure the PIC flag actually works.
11159 if test -n "$lt_prog_compiler_pic"; then
11160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11161 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11162 if test ${lt_cv_prog_compiler_pic_works+y}
11164 printf %s "(cached) " >&6
11166 lt_cv_prog_compiler_pic_works=no
11167 ac_outfile=conftest.$ac_objext
11168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11169 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11170 # Insert the option either (1) after the last *FLAGS variable, or
11171 # (2) before a word containing "conftest.", or (3) at the end.
11172 # Note that $ac_compile itself does not contain backslashes and begins
11173 # with a dollar sign (not a hyphen), so the echo should work correctly.
11174 # The option is referenced via a variable to avoid confusing sed.
11175 lt_compile=`echo "$ac_compile" | $SED \
11176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11178 -e 's:$: $lt_compiler_flag:'`
11179 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11180 (eval "$lt_compile" 2>conftest.err)
11182 cat conftest.err >&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 if (exit $ac_status) && test -s "$ac_outfile"; then
11185 # The compiler can only warn and ignore the option if not recognized
11186 # So say no if there are warnings other than the usual output.
11187 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11188 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11189 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11190 lt_cv_prog_compiler_pic_works=yes
11196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11197 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11199 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11200 case $lt_prog_compiler_pic in
11202 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11205 lt_prog_compiler_pic=
11206 lt_prog_compiler_can_build_shared=no
11222 # Check to make sure the static flag actually works.
11224 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11226 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11227 if test ${lt_cv_prog_compiler_static_works+y}
11229 printf %s "(cached) " >&6
11231 lt_cv_prog_compiler_static_works=no
11232 save_LDFLAGS=$LDFLAGS
11233 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11234 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11235 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11236 # The linker can only warn and ignore the option if not recognized
11237 # So say no if there are warnings
11238 if test -s conftest.err; then
11239 # Append any errors to the config.log.
11240 cat conftest.err 1>&5
11241 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11242 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11243 if diff conftest.exp conftest.er2 >/dev/null; then
11244 lt_cv_prog_compiler_static_works=yes
11247 lt_cv_prog_compiler_static_works=yes
11251 LDFLAGS=$save_LDFLAGS
11254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11255 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11257 if test yes = "$lt_cv_prog_compiler_static_works"; then
11260 lt_prog_compiler_static=
11269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11270 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11271 if test ${lt_cv_prog_compiler_c_o+y}
11273 printf %s "(cached) " >&6
11275 lt_cv_prog_compiler_c_o=no
11276 $RM -r conftest 2>/dev/null
11280 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11282 lt_compiler_flag="-o out/conftest2.$ac_objext"
11283 # Insert the option either (1) after the last *FLAGS variable, or
11284 # (2) before a word containing "conftest.", or (3) at the end.
11285 # Note that $ac_compile itself does not contain backslashes and begins
11286 # with a dollar sign (not a hyphen), so the echo should work correctly.
11287 lt_compile=`echo "$ac_compile" | $SED \
11288 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11289 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11290 -e 's:$: $lt_compiler_flag:'`
11291 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11292 (eval "$lt_compile" 2>out/conftest.err)
11294 cat out/conftest.err >&5
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11298 # The compiler can only warn and ignore the option if not recognized
11299 # So say no if there are warnings
11300 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11301 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11302 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11303 lt_cv_prog_compiler_c_o=yes
11308 # SGI C++ compiler will create directory out/ii_files/ for
11309 # template instantiation
11310 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11311 $RM out/* && rmdir out
11317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11318 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11326 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11327 if test ${lt_cv_prog_compiler_c_o+y}
11329 printf %s "(cached) " >&6
11331 lt_cv_prog_compiler_c_o=no
11332 $RM -r conftest 2>/dev/null
11336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11338 lt_compiler_flag="-o out/conftest2.$ac_objext"
11339 # Insert the option either (1) after the last *FLAGS variable, or
11340 # (2) before a word containing "conftest.", or (3) at the end.
11341 # Note that $ac_compile itself does not contain backslashes and begins
11342 # with a dollar sign (not a hyphen), so the echo should work correctly.
11343 lt_compile=`echo "$ac_compile" | $SED \
11344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11346 -e 's:$: $lt_compiler_flag:'`
11347 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11348 (eval "$lt_compile" 2>out/conftest.err)
11350 cat out/conftest.err >&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11354 # The compiler can only warn and ignore the option if not recognized
11355 # So say no if there are warnings
11356 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11357 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11358 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11359 lt_cv_prog_compiler_c_o=yes
11364 # SGI C++ compiler will create directory out/ii_files/ for
11365 # template instantiation
11366 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11367 $RM out/* && rmdir out
11373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11374 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11379 hard_links=nottested
11380 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11381 # do not overwrite the value of need_locks provided by the user
11382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11383 printf %s "checking if we can lock with hard links... " >&6; }
11386 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11388 ln conftest.a conftest.b 2>&5 || hard_links=no
11389 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11391 printf "%s\n" "$hard_links" >&6; }
11392 if test no = "$hard_links"; then
11393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11394 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11407 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11410 allow_undefined_flag=
11411 always_export_symbols=no
11413 archive_expsym_cmds=
11414 compiler_needs_object=no
11415 enable_shared_with_static_runtimes=no
11416 export_dynamic_flag_spec=
11417 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11418 hardcode_automatic=no
11420 hardcode_direct_absolute=no
11421 hardcode_libdir_flag_spec=
11422 hardcode_libdir_separator=
11423 hardcode_minus_L=no
11424 hardcode_shlibpath_var=unsupported
11426 link_all_deplibs=unknown
11428 module_expsym_cmds=
11429 old_archive_from_new_cmds=
11430 old_archive_from_expsyms_cmds=
11431 thread_safe_flag_spec=
11432 whole_archive_flag_spec=
11433 # include_expsyms should be a list of space-separated symbols to be *always*
11434 # included in the symbol list
11436 # exclude_expsyms can be an extended regexp of symbols to exclude
11437 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11438 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11439 # as well as any symbol that contains 'd'.
11440 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11441 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11442 # platforms (ab)use it in PIC code, but their linkers get confused if
11443 # the symbol is explicitly referenced. Since portable code cannot
11444 # rely on this symbol name, it's probably fine to never include it in
11445 # preloaded symbol tables.
11446 # Exclude shared library initialization/finalization symbols.
11447 extract_expsyms_cmds=
11450 cygwin* | mingw* | pw32* | cegcc*)
11451 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11452 # When not using gcc, we currently assume that we are using
11453 # Microsoft Visual C++ or Intel C++ Compiler.
11454 if test yes != "$GCC"; then
11459 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11462 openbsd* | bitrig*)
11469 # On some targets, GNU ld is compatible enough with the native linker
11470 # that we're better off using the native interface for both.
11471 lt_use_gnu_ld_interface=no
11472 if test yes = "$with_gnu_ld"; then
11475 # The AIX port of GNU ld has always aspired to compatibility
11476 # with the native linker. However, as the warning in the GNU ld
11477 # block says, versions before 2.19.5* couldn't really create working
11478 # shared libraries, regardless of the interface used.
11479 case `$LD -v 2>&1` in
11480 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11481 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11482 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11484 lt_use_gnu_ld_interface=yes
11489 lt_use_gnu_ld_interface=yes
11494 if test yes = "$lt_use_gnu_ld_interface"; then
11495 # If archive_cmds runs LD, not CC, wlarc should be empty
11498 # Set some defaults for GNU ld with shared library support. These
11499 # are reset later if shared libraries are not supported. Putting them
11500 # here allows them to be overridden if necessary.
11501 runpath_var=LD_RUN_PATH
11502 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11503 export_dynamic_flag_spec='$wl--export-dynamic'
11504 # ancient GNU ld didn't support --whole-archive et. al.
11505 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11506 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11508 whole_archive_flag_spec=
11510 supports_anon_versioning=no
11511 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11512 *GNU\ gold*) supports_anon_versioning=yes ;;
11513 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11514 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11515 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11516 *\ 2.11.*) ;; # other 2.11 versions
11517 *) supports_anon_versioning=yes ;;
11520 # See if GNU ld supports shared libraries.
11523 # On AIX/PPC, the GNU linker is very broken
11524 if test ia64 != "$host_cpu"; then
11528 *** Warning: the GNU linker, at least up to release 2.19, is reported
11529 *** to be unable to reliably create shared libraries on AIX.
11530 *** Therefore, libtool is disabling shared libraries support. If you
11531 *** really care for shared libraries, you may want to install binutils
11532 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11533 *** You will then need to restart the configuration process.
11542 # see comment about AmigaOS4 .so support
11543 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11544 archive_expsym_cmds=''
11547 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)'
11548 hardcode_libdir_flag_spec='-L$libdir'
11549 hardcode_minus_L=yes
11555 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11556 allow_undefined_flag=unsupported
11557 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11558 # support --undefined. This deserves some investigation. FIXME
11559 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11565 cygwin* | mingw* | pw32* | cegcc*)
11566 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11567 # as there is no search path for DLLs.
11568 hardcode_libdir_flag_spec='-L$libdir'
11569 export_dynamic_flag_spec='$wl--export-all-symbols'
11570 allow_undefined_flag=unsupported
11571 always_export_symbols=no
11572 enable_shared_with_static_runtimes=yes
11573 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'
11574 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11576 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11577 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11578 # If the export-symbols file already is a .def file, use it as
11579 # is; otherwise, prepend EXPORTS...
11580 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11581 cp $export_symbols $output_objdir/$soname.def;
11583 echo EXPORTS > $output_objdir/$soname.def;
11584 cat $export_symbols >> $output_objdir/$soname.def;
11586 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11594 link_all_deplibs=yes
11598 hardcode_libdir_flag_spec='-L$libdir'
11599 hardcode_minus_L=yes
11600 allow_undefined_flag=unsupported
11602 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11603 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11604 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11605 $ECHO EXPORTS >> $output_objdir/$libname.def~
11606 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11607 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11608 emximp -o $lib $output_objdir/$libname.def'
11609 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11610 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11611 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11612 $ECHO EXPORTS >> $output_objdir/$libname.def~
11613 prefix_cmds="$SED"~
11614 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11615 prefix_cmds="$prefix_cmds -e 1d";
11617 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11618 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11619 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11620 emximp -o $lib $output_objdir/$libname.def'
11621 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11622 enable_shared_with_static_runtimes=yes
11628 hardcode_shlibpath_var=no
11629 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11630 export_dynamic_flag_spec='$wl-E'
11631 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11632 # Instead, shared libraries are loaded at an image base (0x10000000 by
11633 # default) and relocated if they conflict, which is a slow very memory
11634 # consuming and fragmenting process. To avoid this, we pick a random,
11635 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11636 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11637 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11638 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'
11641 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11643 if test linux-dietlibc = "$host_os"; then
11644 case $cc_basename in
11645 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11648 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11649 && test no = "$tmp_diet"
11651 tmp_addflag=' $pic_flag'
11652 tmp_sharedflag='-shared'
11653 case $cc_basename,$host_cpu in
11654 pgcc*) # Portland Group C compiler
11655 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'
11656 tmp_addflag=' $pic_flag'
11658 pgf77* | pgf90* | pgf95* | pgfortran*)
11659 # Portland Group f77 and f90 compilers
11660 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'
11661 tmp_addflag=' $pic_flag -Mnomain' ;;
11662 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11663 tmp_addflag=' -i_dynamic' ;;
11664 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11665 tmp_addflag=' -i_dynamic -nofor_main' ;;
11666 ifc* | ifort*) # Intel Fortran compiler
11667 tmp_addflag=' -nofor_main' ;;
11668 lf95*) # Lahey Fortran 8.1
11669 whole_archive_flag_spec=
11670 tmp_sharedflag='--shared' ;;
11671 nagfor*) # NAGFOR 5.3
11672 tmp_sharedflag='-Wl,-shared' ;;
11673 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11674 tmp_sharedflag='-qmkshrobj'
11676 nvcc*) # Cuda Compiler Driver 2.2
11677 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'
11678 compiler_needs_object=yes
11681 case `$CC -V 2>&1 | $SED 5q` in
11682 *Sun\ C*) # Sun C 5.9
11683 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'
11684 compiler_needs_object=yes
11685 tmp_sharedflag='-G' ;;
11686 *Sun\ F*) # Sun Fortran 8.3
11687 tmp_sharedflag='-G' ;;
11689 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11691 if test yes = "$supports_anon_versioning"; then
11692 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11693 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11694 echo "local: *; };" >> $output_objdir/$libname.ver~
11695 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11698 case $cc_basename in
11700 export_dynamic_flag_spec='-rdynamic'
11702 xlf* | bgf* | bgxlf* | mpixlf*)
11703 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11704 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11705 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11706 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11707 if test yes = "$supports_anon_versioning"; then
11708 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11709 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11710 echo "local: *; };" >> $output_objdir/$libname.ver~
11711 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11721 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11722 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11725 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11726 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11731 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11735 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11736 *** create shared libraries on Solaris systems. Therefore, libtool
11737 *** is disabling shared libraries support. We urge you to upgrade GNU
11738 *** binutils to release 2.9.1 or newer. Another option is to modify
11739 *** your PATH or compiler configuration so that the native linker is
11740 *** used, and then restart.
11743 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11744 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11745 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11751 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11752 case `$LD -v 2>&1` in
11753 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11757 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11758 *** reliably create shared libraries on SCO systems. Therefore, libtool
11759 *** is disabling shared libraries support. We urge you to upgrade GNU
11760 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11761 *** your PATH or compiler configuration so that the native linker is
11762 *** used, and then restart.
11767 # For security reasons, it is highly recommended that you always
11768 # use absolute paths for naming shared libraries, and exclude the
11769 # DT_RUNPATH tag from executables and libraries. But doing so
11770 # requires that you compile everything twice, which is a pain.
11771 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11772 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11774 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11783 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11785 hardcode_direct=yes
11786 hardcode_shlibpath_var=no
11790 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11791 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11792 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11799 if test no = "$ld_shlibs"; then
11801 hardcode_libdir_flag_spec=
11802 export_dynamic_flag_spec=
11803 whole_archive_flag_spec=
11806 # PORTME fill in a description of your system's linker (not GNU ld)
11809 allow_undefined_flag=unsupported
11810 always_export_symbols=yes
11811 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'
11812 # Note: this linker hardcodes the directories in LIBPATH if there
11813 # are no directories specified by -L.
11814 hardcode_minus_L=yes
11815 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11816 # Neither direct hardcoding nor static linking is supported with a
11818 hardcode_direct=unsupported
11823 if test ia64 = "$host_cpu"; then
11824 # On IA64, the linker does run time linking by default, so we don't
11825 # have to do anything special.
11826 aix_use_runtimelinking=no
11827 exp_sym_flag='-Bexport'
11830 # If we're using GNU nm, then we don't want the "-C" option.
11831 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11832 # Without the "-l" option, or with the "-B" option, AIX nm treats
11833 # weak defined symbols like other global defined symbols, whereas
11834 # GNU nm marks them as "W".
11835 # While the 'weak' keyword is ignored in the Export File, we need
11836 # it in the Import File for the 'aix-soname' feature, so we have
11837 # to replace the "-B" option with "-P" for AIX nm.
11838 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11839 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'
11841 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 == "L") || (\$ 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'
11843 aix_use_runtimelinking=no
11845 # Test if we are trying to use run time linking or normal
11846 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11847 # have runtime linking enabled, and use it for executables.
11848 # For shared libraries, we enable/disable runtime linking
11849 # depending on the kind of the shared library created -
11850 # when "with_aix_soname,aix_use_runtimelinking" is:
11851 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11852 # "aix,yes" lib.so shared, rtl:yes, for executables
11853 # lib.a static archive
11854 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11855 # lib.a(lib.so.V) shared, rtl:no, for executables
11856 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11857 # lib.a(lib.so.V) shared, rtl:no
11858 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11859 # lib.a static archive
11860 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11861 for ld_flag in $LDFLAGS; do
11862 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11863 aix_use_runtimelinking=yes
11867 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11868 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11869 # so we don't have lib.a shared libs to link our executables.
11870 # We have to force runtime linking in this case.
11871 aix_use_runtimelinking=yes
11872 LDFLAGS="$LDFLAGS -Wl,-brtl"
11877 exp_sym_flag='-bexport'
11878 no_entry_flag='-bnoentry'
11881 # When large executables or shared objects are built, AIX ld can
11882 # have problems creating the table of contents. If linking a library
11883 # or program results in "error TOC overflow" add -mminimal-toc to
11884 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11885 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11888 hardcode_direct=yes
11889 hardcode_direct_absolute=yes
11890 hardcode_libdir_separator=':'
11891 link_all_deplibs=yes
11892 file_list_spec='$wl-f,'
11893 case $with_aix_soname,$aix_use_runtimelinking in
11894 aix,*) ;; # traditional, no import file
11895 svr4,* | *,yes) # use import file
11896 # The Import File defines what to hardcode.
11898 hardcode_direct_absolute=no
11902 if test yes = "$GCC"; then
11903 case $host_os in aix4.[012]|aix4.[012].*)
11904 # We only want to do this on AIX 4.2 and lower, the check
11905 # below for broken collect2 doesn't work under 4.3+
11906 collect2name=`$CC -print-prog-name=collect2`
11907 if test -f "$collect2name" &&
11908 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11910 # We have reworked collect2
11913 # We have old collect2
11914 hardcode_direct=unsupported
11915 # It fails to find uninstalled libraries when the uninstalled
11916 # path is not listed in the libpath. Setting hardcode_minus_L
11917 # to unsupported forces relinking
11918 hardcode_minus_L=yes
11919 hardcode_libdir_flag_spec='-L$libdir'
11920 hardcode_libdir_separator=
11924 shared_flag='-shared'
11925 if test yes = "$aix_use_runtimelinking"; then
11926 shared_flag="$shared_flag "'$wl-G'
11928 # Need to ensure runtime linking is disabled for the traditional
11929 # shared library, or the linker may eventually find shared libraries
11930 # /with/ Import File - we do not want to mix them.
11931 shared_flag_aix='-shared'
11932 shared_flag_svr4='-shared $wl-G'
11935 if test ia64 = "$host_cpu"; then
11936 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11937 # chokes on -Wl,-G. The following line is correct:
11940 if test yes = "$aix_use_runtimelinking"; then
11941 shared_flag='$wl-G'
11943 shared_flag='$wl-bM:SRE'
11945 shared_flag_aix='$wl-bM:SRE'
11946 shared_flag_svr4='$wl-G'
11950 export_dynamic_flag_spec='$wl-bexpall'
11951 # It seems that -bexpall does not export symbols beginning with
11952 # underscore (_), so it is better to generate a list of symbols to export.
11953 always_export_symbols=yes
11954 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11955 # Warning - without using the other runtime loading flags (-brtl),
11956 # -berok will link without error, but may produce a broken library.
11957 allow_undefined_flag='-berok'
11958 # Determine the default libpath from the value encoded in an
11959 # empty executable.
11960 if test set = "${lt_cv_aix_libpath+set}"; then
11961 aix_libpath=$lt_cv_aix_libpath
11963 if test ${lt_cv_aix_libpath_+y}
11965 printf %s "(cached) " >&6
11967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h. */
11978 if ac_fn_c_try_link "$LINENO"
11981 lt_aix_libpath_sed='
11982 /Import File Strings/,/^$/ {
11984 s/^0 *\([^ ]*\) *$/\1/
11988 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11989 # Check for a 64-bit object if we didn't find anything.
11990 if test -z "$lt_cv_aix_libpath_"; then
11991 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11994 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11995 conftest$ac_exeext conftest.$ac_ext
11996 if test -z "$lt_cv_aix_libpath_"; then
11997 lt_cv_aix_libpath_=/usr/lib:/lib
12002 aix_libpath=$lt_cv_aix_libpath_
12005 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12006 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
12008 if test ia64 = "$host_cpu"; then
12009 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12010 allow_undefined_flag="-z nodefs"
12011 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"
12013 # Determine the default libpath from the value encoded in an
12014 # empty executable.
12015 if test set = "${lt_cv_aix_libpath+set}"; then
12016 aix_libpath=$lt_cv_aix_libpath
12018 if test ${lt_cv_aix_libpath_+y}
12020 printf %s "(cached) " >&6
12022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12023 /* end confdefs.h. */
12033 if ac_fn_c_try_link "$LINENO"
12036 lt_aix_libpath_sed='
12037 /Import File Strings/,/^$/ {
12039 s/^0 *\([^ ]*\) *$/\1/
12043 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12044 # Check for a 64-bit object if we didn't find anything.
12045 if test -z "$lt_cv_aix_libpath_"; then
12046 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12049 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12050 conftest$ac_exeext conftest.$ac_ext
12051 if test -z "$lt_cv_aix_libpath_"; then
12052 lt_cv_aix_libpath_=/usr/lib:/lib
12057 aix_libpath=$lt_cv_aix_libpath_
12060 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12061 # Warning - without using the other run time loading flags,
12062 # -berok will link without error, but may produce a broken library.
12063 no_undefined_flag=' $wl-bernotok'
12064 allow_undefined_flag=' $wl-berok'
12065 if test yes = "$with_gnu_ld"; then
12066 # We only use this code for GNU lds that support --whole-archive.
12067 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12069 # Exported symbols can be pulled into shared objects from archives
12070 whole_archive_flag_spec='$convenience'
12072 archive_cmds_need_lc=yes
12073 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12074 # -brtl affects multiple linker settings, -berok does not and is overridden later
12075 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12076 if test svr4 != "$with_aix_soname"; then
12077 # This is similar to how AIX traditionally builds its shared libraries.
12078 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'
12080 if test aix != "$with_aix_soname"; then
12081 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'
12083 # used by -dlpreopen to get the symbols
12084 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12086 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12094 # see comment about AmigaOS4 .so support
12095 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12096 archive_expsym_cmds=''
12099 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)'
12100 hardcode_libdir_flag_spec='-L$libdir'
12101 hardcode_minus_L=yes
12107 export_dynamic_flag_spec=-rdynamic
12110 cygwin* | mingw* | pw32* | cegcc*)
12111 # When not using gcc, we currently assume that we are using
12112 # Microsoft Visual C++ or Intel C++ Compiler.
12113 # hardcode_libdir_flag_spec is actually meaningless, as there is
12114 # no search path for DLLs.
12115 case $cc_basename in
12117 # Native MSVC or ICC
12118 hardcode_libdir_flag_spec=' '
12119 allow_undefined_flag=unsupported
12120 always_export_symbols=yes
12122 # Tell ltmain to make .lib files, not .a files.
12124 # Tell ltmain to make .dll files, not .so files.
12126 # FIXME: Setting linknames here is a bad hack.
12127 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12128 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12129 cp "$export_symbols" "$output_objdir/$soname.def";
12130 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12132 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12134 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12136 # The linker will not automatically build a static lib if we build a DLL.
12137 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12138 enable_shared_with_static_runtimes=yes
12139 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12140 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12142 old_postinstall_cmds='chmod 644 $oldlib'
12143 postlink_cmds='lt_outputfile="@OUTPUT@"~
12144 lt_tool_outputfile="@TOOL_OUTPUT@"~
12145 case $lt_outputfile in
12148 lt_outputfile=$lt_outputfile.exe
12149 lt_tool_outputfile=$lt_tool_outputfile.exe
12152 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12153 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12154 $RM "$lt_outputfile.manifest";
12158 # Assume MSVC and ICC wrapper
12159 hardcode_libdir_flag_spec=' '
12160 allow_undefined_flag=unsupported
12161 # Tell ltmain to make .lib files, not .a files.
12163 # Tell ltmain to make .dll files, not .so files.
12165 # FIXME: Setting linknames here is a bad hack.
12166 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12167 # The linker will automatically build a .lib file if we build a DLL.
12168 old_archive_from_new_cmds='true'
12169 # FIXME: Should let the user specify the lib program.
12170 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12171 enable_shared_with_static_runtimes=yes
12176 darwin* | rhapsody*)
12179 archive_cmds_need_lc=no
12181 hardcode_automatic=yes
12182 hardcode_shlibpath_var=unsupported
12183 if test yes = "$lt_cv_ld_force_load"; then
12184 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\"`'
12187 whole_archive_flag_spec=''
12189 link_all_deplibs=yes
12190 allow_undefined_flag=$_lt_dar_allow_undefined
12191 case $cc_basename in
12192 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12193 *) _lt_dar_can_shared=$GCC ;;
12195 if test yes = "$_lt_dar_can_shared"; then
12196 output_verbose_link_cmd=func_echo_all
12197 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12198 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12199 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"
12200 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"
12209 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12210 hardcode_libdir_flag_spec='-L$libdir'
12211 hardcode_shlibpath_var=no
12214 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12215 # support. Future versions do this automatically, but an explicit c++rt0.o
12216 # does not break anything, and helps significantly (at the cost of a little
12219 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12220 hardcode_libdir_flag_spec='-R$libdir'
12221 hardcode_direct=yes
12222 hardcode_shlibpath_var=no
12225 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12227 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12228 hardcode_direct=yes
12229 hardcode_minus_L=yes
12230 hardcode_shlibpath_var=no
12233 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12234 freebsd* | dragonfly* | midnightbsd*)
12235 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12236 hardcode_libdir_flag_spec='-R$libdir'
12237 hardcode_direct=yes
12238 hardcode_shlibpath_var=no
12242 if test yes = "$GCC"; then
12243 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'
12245 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'
12247 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12248 hardcode_libdir_separator=:
12249 hardcode_direct=yes
12251 # hardcode_minus_L: Not really in the search PATH,
12252 # but as the default location of the library.
12253 hardcode_minus_L=yes
12254 export_dynamic_flag_spec='$wl-E'
12258 if test yes,no = "$GCC,$with_gnu_ld"; then
12259 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12261 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12263 if test no = "$with_gnu_ld"; then
12264 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12265 hardcode_libdir_separator=:
12266 hardcode_direct=yes
12267 hardcode_direct_absolute=yes
12268 export_dynamic_flag_spec='$wl-E'
12269 # hardcode_minus_L: Not really in the search PATH,
12270 # but as the default location of the library.
12271 hardcode_minus_L=yes
12276 if test yes,no = "$GCC,$with_gnu_ld"; then
12279 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12282 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12285 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12291 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12294 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12298 # Older versions of the 11.00 compiler do not understand -b yet
12299 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12301 printf %s "checking if $CC understands -b... " >&6; }
12302 if test ${lt_cv_prog_compiler__b+y}
12304 printf %s "(cached) " >&6
12306 lt_cv_prog_compiler__b=no
12307 save_LDFLAGS=$LDFLAGS
12308 LDFLAGS="$LDFLAGS -b"
12309 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12310 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12311 # The linker can only warn and ignore the option if not recognized
12312 # So say no if there are warnings
12313 if test -s conftest.err; then
12314 # Append any errors to the config.log.
12315 cat conftest.err 1>&5
12316 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12317 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12318 if diff conftest.exp conftest.er2 >/dev/null; then
12319 lt_cv_prog_compiler__b=yes
12322 lt_cv_prog_compiler__b=yes
12326 LDFLAGS=$save_LDFLAGS
12329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12330 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12332 if test yes = "$lt_cv_prog_compiler__b"; then
12333 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12335 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12341 if test no = "$with_gnu_ld"; then
12342 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12343 hardcode_libdir_separator=:
12348 hardcode_shlibpath_var=no
12351 hardcode_direct=yes
12352 hardcode_direct_absolute=yes
12353 export_dynamic_flag_spec='$wl-E'
12355 # hardcode_minus_L: Not really in the search PATH,
12356 # but as the default location of the library.
12357 hardcode_minus_L=yes
12363 irix5* | irix6* | nonstopux*)
12364 if test yes = "$GCC"; then
12365 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'
12366 # Try to use the -exported_symbol ld option, if it does not
12367 # work, assume that -exports_file does not work either and
12368 # implicitly export all symbols.
12369 # This should be the same for all languages, so no per-tag cache variable.
12370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12371 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12372 if test ${lt_cv_irix_exported_symbol+y}
12374 printf %s "(cached) " >&6
12376 save_LDFLAGS=$LDFLAGS
12377 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379 /* end confdefs.h. */
12380 int foo (void) { return 0; }
12382 if ac_fn_c_try_link "$LINENO"
12384 lt_cv_irix_exported_symbol=yes
12386 lt_cv_irix_exported_symbol=no
12388 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12389 conftest$ac_exeext conftest.$ac_ext
12390 LDFLAGS=$save_LDFLAGS
12392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12393 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12394 if test yes = "$lt_cv_irix_exported_symbol"; then
12395 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'
12398 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'
12399 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'
12401 archive_cmds_need_lc='no'
12402 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12403 hardcode_libdir_separator=:
12405 link_all_deplibs=yes
12409 case $cc_basename in
12411 # Fabrice Bellard et al's Tiny C Compiler
12413 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12419 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12420 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12422 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12424 hardcode_libdir_flag_spec='-R$libdir'
12425 hardcode_direct=yes
12426 hardcode_shlibpath_var=no
12430 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12431 hardcode_direct=yes
12432 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12433 hardcode_libdir_separator=:
12434 hardcode_shlibpath_var=no
12440 openbsd* | bitrig*)
12441 if test -f /usr/libexec/ld.so; then
12442 hardcode_direct=yes
12443 hardcode_shlibpath_var=no
12444 hardcode_direct_absolute=yes
12445 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12446 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12447 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12448 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12449 export_dynamic_flag_spec='$wl-E'
12451 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12452 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12460 hardcode_libdir_flag_spec='-L$libdir'
12461 hardcode_minus_L=yes
12462 allow_undefined_flag=unsupported
12464 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12465 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12466 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12467 $ECHO EXPORTS >> $output_objdir/$libname.def~
12468 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12469 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12470 emximp -o $lib $output_objdir/$libname.def'
12471 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12472 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12473 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12474 $ECHO EXPORTS >> $output_objdir/$libname.def~
12475 prefix_cmds="$SED"~
12476 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12477 prefix_cmds="$prefix_cmds -e 1d";
12479 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12480 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12481 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12482 emximp -o $lib $output_objdir/$libname.def'
12483 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12484 enable_shared_with_static_runtimes=yes
12489 if test yes = "$GCC"; then
12490 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12491 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'
12493 allow_undefined_flag=' -expect_unresolved \*'
12494 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'
12496 archive_cmds_need_lc='no'
12497 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12498 hardcode_libdir_separator=:
12501 osf4* | osf5*) # as osf3* with the addition of -msym flag
12502 if test yes = "$GCC"; then
12503 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12504 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'
12505 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12507 allow_undefined_flag=' -expect_unresolved \*'
12508 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'
12509 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~
12510 $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'
12512 # Both c and cxx compiler support -rpath directly
12513 hardcode_libdir_flag_spec='-rpath $libdir'
12515 archive_cmds_need_lc='no'
12516 hardcode_libdir_separator=:
12520 no_undefined_flag=' -z defs'
12521 if test yes = "$GCC"; then
12523 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12524 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12525 $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'
12527 case `$CC -V 2>&1` in
12530 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12531 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12532 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12536 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12537 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12538 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12542 hardcode_libdir_flag_spec='-R$libdir'
12543 hardcode_shlibpath_var=no
12545 solaris2.[0-5] | solaris2.[0-5].*) ;;
12547 # The compiler driver will combine and reorder linker options,
12548 # but understands '-z linker_flag'. GCC discards it without '$wl',
12549 # but is careful enough not to reorder.
12550 # Supported since Solaris 2.6 (maybe 2.5.1?)
12551 if test yes = "$GCC"; then
12552 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12554 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12558 link_all_deplibs=yes
12562 if test sequent = "$host_vendor"; then
12563 # Use $CC to link under sequent, because it throws in some extra .o
12564 # files that make .init and .fini sections work.
12565 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12567 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12569 hardcode_libdir_flag_spec='-L$libdir'
12570 hardcode_direct=yes
12571 hardcode_minus_L=yes
12572 hardcode_shlibpath_var=no
12576 case $host_vendor in
12578 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12579 hardcode_direct=yes # is this really true???
12582 ## LD is ld it makes a PLAMLIB
12583 ## CC just makes a GrossModule.
12584 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12585 reload_cmds='$CC -r -o $output$reload_objs'
12589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12590 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12593 runpath_var='LD_RUN_PATH'
12594 hardcode_shlibpath_var=no
12598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12599 hardcode_shlibpath_var=no
12600 export_dynamic_flag_spec='-Bexport'
12604 if test -d /usr/nec; then
12605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12606 hardcode_shlibpath_var=no
12607 runpath_var=LD_RUN_PATH
12608 hardcode_runpath_var=yes
12613 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12614 no_undefined_flag='$wl-z,text'
12615 archive_cmds_need_lc=no
12616 hardcode_shlibpath_var=no
12617 runpath_var='LD_RUN_PATH'
12619 if test yes = "$GCC"; then
12620 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12621 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12623 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12624 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12628 sysv5* | sco3.2v5* | sco5v6*)
12629 # Note: We CANNOT use -z defs as we might desire, because we do not
12630 # link with -lc, and that would cause any symbols used from libc to
12631 # always be unresolved, which means just about no library would
12632 # ever link correctly. If we're not using GNU ld we use -z text
12633 # though, which does catch some bad symbols but isn't as heavy-handed
12635 no_undefined_flag='$wl-z,text'
12636 allow_undefined_flag='$wl-z,nodefs'
12637 archive_cmds_need_lc=no
12638 hardcode_shlibpath_var=no
12639 hardcode_libdir_flag_spec='$wl-R,$libdir'
12640 hardcode_libdir_separator=':'
12641 link_all_deplibs=yes
12642 export_dynamic_flag_spec='$wl-Bexport'
12643 runpath_var='LD_RUN_PATH'
12645 if test yes = "$GCC"; then
12646 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12647 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12649 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12650 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12656 hardcode_libdir_flag_spec='-L$libdir'
12657 hardcode_shlibpath_var=no
12665 if test sni = "$host_vendor"; then
12667 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12668 export_dynamic_flag_spec='$wl-Blargedynsym'
12674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12675 printf "%s\n" "$ld_shlibs" >&6; }
12676 test no = "$ld_shlibs" && can_build_shared=no
12678 with_gnu_ld=$with_gnu_ld
12695 # Do we need to explicitly link libc?
12697 case "x$archive_cmds_need_lc" in
12699 # Assume -lc should be added
12700 archive_cmds_need_lc=yes
12702 if test yes,yes = "$GCC,$enable_shared"; then
12703 case $archive_cmds in
12705 # FIXME: we may have to deal with multi-command sequences.
12708 # Test whether the compiler implicitly links with -lc since on some
12709 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12710 # to ld, don't add -lc before -lgcc.
12711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12712 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12713 if test ${lt_cv_archive_cmds_need_lc+y}
12715 printf %s "(cached) " >&6
12718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12721 (eval $ac_compile) 2>&5
12723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12724 test $ac_status = 0; } 2>conftest.err; then
12727 libobjs=conftest.$ac_objext
12729 wl=$lt_prog_compiler_wl
12730 pic_flag=$lt_prog_compiler_pic
12736 lt_save_allow_undefined_flag=$allow_undefined_flag
12737 allow_undefined_flag=
12738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12739 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12742 test $ac_status = 0; }
12744 lt_cv_archive_cmds_need_lc=no
12746 lt_cv_archive_cmds_need_lc=yes
12748 allow_undefined_flag=$lt_save_allow_undefined_flag
12750 cat conftest.err 1>&5
12755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12756 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12757 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12916 printf %s "checking dynamic linker characteristics... " >&6; }
12918 if test yes = "$GCC"; then
12920 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12921 *) lt_awk_arg='/^libraries:/' ;;
12924 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12925 *) lt_sed_strip_eq='s|=/|/|g' ;;
12927 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12928 case $lt_search_path_spec in
12930 # if the path contains ";" then we assume it to be the separator
12931 # otherwise default to the standard path separator (i.e. ":") - it is
12932 # assumed that no part of a normal pathname contains ";" but that should
12933 # okay in the real world where ";" in dirpaths is itself problematic.
12934 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12937 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12940 # Ok, now we have the path, separated by spaces, we can step through it
12941 # and add multilib dir if necessary...
12942 lt_tmp_lt_search_path_spec=
12943 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12944 # ...but if some path component already ends with the multilib dir we assume
12945 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12946 case "$lt_multi_os_dir; $lt_search_path_spec " in
12947 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12951 for lt_sys_path in $lt_search_path_spec; do
12952 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12953 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12954 elif test -n "$lt_multi_os_dir"; then
12955 test -d "$lt_sys_path" && \
12956 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12959 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12960 BEGIN {RS = " "; FS = "/|\n";} {
12963 for (lt_i = NF; lt_i > 0; lt_i--) {
12964 if ($lt_i != "" && $lt_i != ".") {
12965 if ($lt_i == "..") {
12968 if (lt_count == 0) {
12969 lt_foo = "/" $lt_i lt_foo;
12976 if (lt_foo != "") { lt_freq[lt_foo]++; }
12977 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12979 # AWK program above erroneously prepends '/' to C:/dos/paths
12982 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12983 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12985 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12987 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12989 library_names_spec=
12990 libname_spec='lib$name'
12994 postuninstall_cmds=
12998 shlibpath_overrides_runpath=unknown
13000 dynamic_linker="$host_os ld.so"
13001 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13002 need_lib_prefix=unknown
13003 hardcode_into_libs=no
13005 # when you set need_version to no, make sure it does not cause -set_version
13006 # flags to be left without arguments
13007 need_version=unknown
13013 version_type=linux # correct to gnu/linux during the next big refactor
13014 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13015 shlibpath_var=LIBPATH
13017 # AIX 3 has no versioning support, so we append a major version to the name.
13018 soname_spec='$libname$release$shared_ext$major'
13022 version_type=linux # correct to gnu/linux during the next big refactor
13025 hardcode_into_libs=yes
13026 if test ia64 = "$host_cpu"; then
13027 # AIX 5 supports IA64
13028 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13029 shlibpath_var=LD_LIBRARY_PATH
13031 # With GCC up to 2.95.x, collect2 would create an import file
13032 # for dependence libraries. The import file would start with
13033 # the line '#! .'. This would cause the generated library to
13034 # depend on '.', always an invalid library. This was fixed in
13035 # development snapshots of GCC prior to 3.0.
13037 aix4 | aix4.[01] | aix4.[01].*)
13038 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13040 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13043 can_build_shared=no
13047 # Using Import Files as archive members, it is possible to support
13048 # filename-based versioning of shared library archives on AIX. While
13049 # this would work for both with and without runtime linking, it will
13050 # prevent static linking of such archives. So we do filename-based
13051 # shared library versioning with .so extension only, which is used
13052 # when both runtime linking and shared linking is enabled.
13053 # Unfortunately, runtime linking may impact performance, so we do
13054 # not want this to be the default eventually. Also, we use the
13055 # versioned .so libs for executables only if there is the -brtl
13056 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13057 # To allow for filename-based versioning support, we need to create
13058 # libNAME.so.V as an archive file, containing:
13059 # *) an Import File, referring to the versioned filename of the
13060 # archive as well as the shared archive member, telling the
13061 # bitwidth (32 or 64) of that shared object, and providing the
13062 # list of exported symbols of that shared object, eventually
13063 # decorated with the 'weak' keyword
13064 # *) the shared object with the F_LOADONLY flag set, to really avoid
13065 # it being seen by the linker.
13066 # At run time we better use the real file rather than another symlink,
13067 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13069 case $with_aix_soname,$aix_use_runtimelinking in
13070 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13071 # soname into executable. Probably we can add versioning support to
13072 # collect2, so additional links can be useful in future.
13073 aix,yes) # traditional libtool
13074 dynamic_linker='AIX unversionable lib.so'
13075 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13076 # instead of lib<name>.a to let people know that these are not
13077 # typical AIX shared libraries.
13078 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13080 aix,no) # traditional AIX only
13081 dynamic_linker='AIX lib.a(lib.so.V)'
13082 # We preserve .a as extension for shared libraries through AIX4.2
13083 # and later when we are not doing run time linking.
13084 library_names_spec='$libname$release.a $libname.a'
13085 soname_spec='$libname$release$shared_ext$major'
13087 svr4,*) # full svr4 only
13088 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13089 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13090 # We do not specify a path in Import Files, so LIBPATH fires.
13091 shlibpath_overrides_runpath=yes
13093 *,yes) # both, prefer svr4
13094 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13095 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13096 # unpreferred sharedlib libNAME.a needs extra handling
13097 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"'
13098 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"'
13099 # We do not specify a path in Import Files, so LIBPATH fires.
13100 shlibpath_overrides_runpath=yes
13102 *,no) # both, prefer aix
13103 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13104 library_names_spec='$libname$release.a $libname.a'
13105 soname_spec='$libname$release$shared_ext$major'
13106 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13107 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)'
13108 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"'
13111 shlibpath_var=LIBPATH
13118 # Since July 2007 AmigaOS4 officially supports .so libraries.
13119 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13120 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13123 library_names_spec='$libname.ixlibrary $libname.a'
13124 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13125 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'
13131 library_names_spec='$libname$shared_ext'
13132 dynamic_linker="$host_os ld.so"
13133 shlibpath_var=LIBRARY_PATH
13137 version_type=linux # correct to gnu/linux during the next big refactor
13139 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13140 soname_spec='$libname$release$shared_ext$major'
13141 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13142 shlibpath_var=LD_LIBRARY_PATH
13143 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13144 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13145 # the default ld.so.conf also contains /usr/contrib/lib and
13146 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13147 # libtool to hard-code these into programs
13150 cygwin* | mingw* | pw32* | cegcc*)
13151 version_type=windows
13156 case $GCC,$cc_basename in
13159 library_names_spec='$libname.dll.a'
13160 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13161 postinstall_cmds='base_file=`basename \$file`~
13162 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13163 dldir=$destdir/`dirname \$dlpath`~
13164 test -d \$dldir || mkdir -p \$dldir~
13165 $install_prog $dir/$dlname \$dldir/$dlname~
13166 chmod a+x \$dldir/$dlname~
13167 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13168 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13170 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13171 dlpath=$dir/\$dldll~
13173 shlibpath_overrides_runpath=yes
13177 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13178 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13180 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13183 # MinGW DLLs use traditional 'lib' prefix
13184 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13187 # pw32 DLLs use 'pw' prefix rather than 'lib'
13188 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13191 dynamic_linker='Win32 ld.exe'
13195 # Native MSVC or ICC
13196 libname_spec='$name'
13197 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13198 library_names_spec='$libname.dll.lib'
13202 sys_lib_search_path_spec=
13205 for lt_path in $LIB
13208 # Let DOS variable expansion print the short 8.3 style file name.
13209 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13210 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13213 # Convert to MSYS style.
13214 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13217 # Convert to unix form, then to dos form, then back to unix form
13218 # but this time dos style (no spaces!) so that the unix form looks
13219 # like /cygdrive/c/PROGRA~1:/cygdr...
13220 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13221 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13222 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13225 sys_lib_search_path_spec=$LIB
13226 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13227 # It is most probably a Windows format PATH.
13228 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13230 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13232 # FIXME: find the short name or the path components, as spaces are
13233 # common. (e.g. "Program Files" -> "PROGRA~1")
13237 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13238 postinstall_cmds='base_file=`basename \$file`~
13239 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13240 dldir=$destdir/`dirname \$dlpath`~
13241 test -d \$dldir || mkdir -p \$dldir~
13242 $install_prog $dir/$dlname \$dldir/$dlname'
13243 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13244 dlpath=$dir/\$dldll~
13246 shlibpath_overrides_runpath=yes
13247 dynamic_linker='Win32 link.exe'
13251 # Assume MSVC and ICC wrapper
13252 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13253 dynamic_linker='Win32 ld.exe'
13256 # FIXME: first we should search . and the directory the executable is in
13260 darwin* | rhapsody*)
13261 dynamic_linker="$host_os dyld"
13262 version_type=darwin
13265 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13266 soname_spec='$libname$release$major$shared_ext'
13267 shlibpath_overrides_runpath=yes
13268 shlibpath_var=DYLD_LIBRARY_PATH
13269 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13271 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13272 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13276 version_type=linux # correct to gnu/linux during the next big refactor
13279 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13280 soname_spec='$libname$release$shared_ext$major'
13281 shlibpath_var=LD_LIBRARY_PATH
13284 freebsd* | dragonfly* | midnightbsd*)
13285 # DragonFly does not have aout. When/if they implement a new
13286 # versioning mechanism, adjust this.
13287 if test -x /usr/bin/objformat; then
13288 objformat=`/usr/bin/objformat`
13291 freebsd[23].*) objformat=aout ;;
13292 *) objformat=elf ;;
13295 version_type=freebsd-$objformat
13296 case $version_type in
13298 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13299 soname_spec='$libname$release$shared_ext$major'
13304 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13308 shlibpath_var=LD_LIBRARY_PATH
13311 shlibpath_overrides_runpath=yes
13313 freebsd3.[01]* | freebsdelf3.[01]*)
13314 shlibpath_overrides_runpath=yes
13315 hardcode_into_libs=yes
13317 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13318 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13319 shlibpath_overrides_runpath=no
13320 hardcode_into_libs=yes
13322 *) # from 4.6 on, and DragonFly
13323 shlibpath_overrides_runpath=yes
13324 hardcode_into_libs=yes
13330 version_type=linux # correct to gnu/linux during the next big refactor
13333 dynamic_linker="$host_os runtime_loader"
13334 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13335 soname_spec='$libname$release$shared_ext$major'
13336 shlibpath_var=LIBRARY_PATH
13337 shlibpath_overrides_runpath=no
13338 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13339 hardcode_into_libs=yes
13342 hpux9* | hpux10* | hpux11*)
13343 # Give a soname corresponding to the major version so that dld.sl refuses to
13344 # link against other versions.
13351 hardcode_into_libs=yes
13352 dynamic_linker="$host_os dld.so"
13353 shlibpath_var=LD_LIBRARY_PATH
13354 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13355 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13356 soname_spec='$libname$release$shared_ext$major'
13357 if test 32 = "$HPUX_IA64_MODE"; then
13358 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13359 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13361 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13362 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13367 hardcode_into_libs=yes
13368 dynamic_linker="$host_os dld.sl"
13369 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13370 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13372 soname_spec='$libname$release$shared_ext$major'
13373 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13374 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13378 dynamic_linker="$host_os dld.sl"
13379 shlibpath_var=SHLIB_PATH
13380 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13382 soname_spec='$libname$release$shared_ext$major'
13385 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13386 postinstall_cmds='chmod 555 $lib'
13387 # or fails outright, so override atomically:
13388 install_override_mode=555
13392 version_type=linux # correct to gnu/linux during the next big refactor
13395 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13396 soname_spec='$libname$release$shared_ext$major'
13397 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13398 shlibpath_var=LD_LIBRARY_PATH
13399 shlibpath_overrides_runpath=no
13400 hardcode_into_libs=yes
13403 irix5* | irix6* | nonstopux*)
13405 nonstopux*) version_type=nonstopux ;;
13407 if test yes = "$lt_cv_prog_gnu_ld"; then
13408 version_type=linux # correct to gnu/linux during the next big refactor
13415 soname_spec='$libname$release$shared_ext$major'
13416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13418 irix5* | nonstopux*)
13419 libsuff= shlibsuff=
13422 case $LD in # libtool.m4 will add one of these switches to LD
13423 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13424 libsuff= shlibsuff= libmagic=32-bit;;
13425 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13426 libsuff=32 shlibsuff=N32 libmagic=N32;;
13427 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13428 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13429 *) libsuff= shlibsuff= libmagic=never-match;;
13433 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13434 shlibpath_overrides_runpath=no
13435 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13436 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13437 hardcode_into_libs=yes
13440 # No shared lib support for Linux oldld, aout, or coff.
13441 linux*oldld* | linux*aout* | linux*coff*)
13446 version_type=none # Android doesn't support versioned libraries.
13449 library_names_spec='$libname$release$shared_ext'
13450 soname_spec='$libname$release$shared_ext'
13452 shlibpath_var=LD_LIBRARY_PATH
13453 shlibpath_overrides_runpath=yes
13455 # This implies no fast_install, which is unacceptable.
13456 # Some rework will be needed to allow for fast_install
13457 # before this can be enabled.
13458 hardcode_into_libs=yes
13460 dynamic_linker='Android linker'
13461 # Don't embed -rpath directories since the linker doesn't support them.
13462 hardcode_libdir_flag_spec='-L$libdir'
13465 # This must be glibc/ELF.
13466 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13467 version_type=linux # correct to gnu/linux during the next big refactor
13470 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13471 soname_spec='$libname$release$shared_ext$major'
13472 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13473 shlibpath_var=LD_LIBRARY_PATH
13474 shlibpath_overrides_runpath=no
13476 # Some binutils ld are patched to set DT_RUNPATH
13477 if test ${lt_cv_shlibpath_overrides_runpath+y}
13479 printf %s "(cached) " >&6
13481 lt_cv_shlibpath_overrides_runpath=no
13482 save_LDFLAGS=$LDFLAGS
13483 save_libdir=$libdir
13484 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13485 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h. */
13497 if ac_fn_c_try_link "$LINENO"
13499 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13501 lt_cv_shlibpath_overrides_runpath=yes
13504 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13505 conftest$ac_exeext conftest.$ac_ext
13506 LDFLAGS=$save_LDFLAGS
13507 libdir=$save_libdir
13511 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13513 # This implies no fast_install, which is unacceptable.
13514 # Some rework will be needed to allow for fast_install
13515 # before this can be enabled.
13516 hardcode_into_libs=yes
13518 # Add ABI-specific directories to the system library path.
13519 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13521 # Ideally, we could use ldconfig to report *all* directores which are
13522 # searched for libraries, however this is still not possible. Aside from not
13523 # being certain /sbin/ldconfig is available, command
13524 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13525 # even though it is searched at run-time. Try to do the best guess by
13526 # appending ld.so.conf contents (and includes) to the search path.
13527 if test -f /etc/ld.so.conf; then
13528 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' ' '`
13529 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13532 # We used to test for /lib/ld.so.1 and disable shared libraries on
13533 # powerpc, because MkLinux only supported shared libraries with the
13534 # GNU dynamic linker. Since this was broken with cross compilers,
13535 # most powerpc-linux boxes support dynamic linking these days and
13536 # people can always --disable-shared, the test was removed, and we
13537 # assume the GNU/Linux dynamic linker is in use.
13538 dynamic_linker='GNU/Linux ld.so'
13545 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13546 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13548 dynamic_linker='NetBSD (a.out) ld.so'
13550 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13551 soname_spec='$libname$release$shared_ext$major'
13552 dynamic_linker='NetBSD ld.elf_so'
13554 shlibpath_var=LD_LIBRARY_PATH
13555 shlibpath_overrides_runpath=yes
13556 hardcode_into_libs=yes
13560 version_type=linux # correct to gnu/linux during the next big refactor
13561 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13562 shlibpath_var=LD_LIBRARY_PATH
13563 shlibpath_overrides_runpath=yes
13570 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13571 soname_spec='$libname$release$shared_ext$major'
13572 shlibpath_var=LD_LIBRARY_PATH
13573 shlibpath_overrides_runpath=no
13574 hardcode_into_libs=yes
13575 dynamic_linker='ldqnx.so'
13578 openbsd* | bitrig*)
13580 sys_lib_dlsearch_path_spec=/usr/lib
13582 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13587 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13588 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13589 shlibpath_var=LD_LIBRARY_PATH
13590 shlibpath_overrides_runpath=yes
13594 libname_spec='$name'
13595 version_type=windows
13599 # OS/2 can only load a DLL with a base name of 8 characters or less.
13600 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13601 v=$($ECHO $release$versuffix | tr -d .-);
13602 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13603 $ECHO $n$v`$shared_ext'
13604 library_names_spec='${libname}_dll.$libext'
13605 dynamic_linker='OS/2 ld.exe'
13606 shlibpath_var=BEGINLIBPATH
13607 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13608 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13609 postinstall_cmds='base_file=`basename \$file`~
13610 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13611 dldir=$destdir/`dirname \$dlpath`~
13612 test -d \$dldir || mkdir -p \$dldir~
13613 $install_prog $dir/$dlname \$dldir/$dlname~
13614 chmod a+x \$dldir/$dlname~
13615 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13616 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13618 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13619 dlpath=$dir/\$dldll~
13623 osf3* | osf4* | osf5*)
13627 soname_spec='$libname$release$shared_ext$major'
13628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13629 shlibpath_var=LD_LIBRARY_PATH
13630 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13631 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13639 version_type=linux # correct to gnu/linux during the next big refactor
13642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13643 soname_spec='$libname$release$shared_ext$major'
13644 shlibpath_var=LD_LIBRARY_PATH
13645 shlibpath_overrides_runpath=yes
13646 hardcode_into_libs=yes
13647 # ldd complains unless libraries are executable
13648 postinstall_cmds='chmod +x $lib'
13653 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13654 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13655 shlibpath_var=LD_LIBRARY_PATH
13656 shlibpath_overrides_runpath=yes
13657 if test yes = "$with_gnu_ld"; then
13664 version_type=linux # correct to gnu/linux during the next big refactor
13665 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13666 soname_spec='$libname$release$shared_ext$major'
13667 shlibpath_var=LD_LIBRARY_PATH
13668 case $host_vendor in
13670 shlibpath_overrides_runpath=no
13672 runpath_var=LD_RUN_PATH
13680 shlibpath_overrides_runpath=no
13681 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13687 if test -d /usr/nec; then
13688 version_type=linux # correct to gnu/linux during the next big refactor
13689 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13690 soname_spec='$libname$shared_ext.$major'
13691 shlibpath_var=LD_LIBRARY_PATH
13695 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13699 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13700 soname_spec='$libname$release$shared_ext$major'
13701 shlibpath_var=LD_LIBRARY_PATH
13702 shlibpath_overrides_runpath=yes
13703 hardcode_into_libs=yes
13704 if test yes = "$with_gnu_ld"; then
13705 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13707 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13710 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13714 sys_lib_dlsearch_path_spec='/usr/lib'
13718 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13719 version_type=linux # correct to gnu/linux during the next big refactor
13722 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13723 shlibpath_var=LD_LIBRARY_PATH
13724 shlibpath_overrides_runpath=no
13725 hardcode_into_libs=yes
13729 version_type=linux # correct to gnu/linux during the next big refactor
13730 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13731 soname_spec='$libname$release$shared_ext$major'
13732 shlibpath_var=LD_LIBRARY_PATH
13739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13740 printf "%s\n" "$dynamic_linker" >&6; }
13741 test no = "$dynamic_linker" && can_build_shared=no
13743 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13744 if test yes = "$GCC"; then
13745 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13748 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13749 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13752 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13753 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13756 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13757 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13759 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13760 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13762 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13763 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13862 printf %s "checking how to hardcode library paths into programs... " >&6; }
13864 if test -n "$hardcode_libdir_flag_spec" ||
13865 test -n "$runpath_var" ||
13866 test yes = "$hardcode_automatic"; then
13868 # We can hardcode non-existent directories.
13869 if test no != "$hardcode_direct" &&
13870 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13871 # have to relink, otherwise we might link with an installed library
13872 # when we should be linking with a yet-to-be-installed one
13873 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13874 test no != "$hardcode_minus_L"; then
13875 # Linking always hardcodes the temporary library directory.
13876 hardcode_action=relink
13878 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13879 hardcode_action=immediate
13882 # We cannot hardcode anything, or else we can only hardcode existing
13884 hardcode_action=unsupported
13886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13887 printf "%s\n" "$hardcode_action" >&6; }
13889 if test relink = "$hardcode_action" ||
13890 test yes = "$inherit_rpath"; then
13891 # Fast installation is not supported
13892 enable_fast_install=no
13893 elif test yes = "$shlibpath_overrides_runpath" ||
13894 test no = "$enable_shared"; then
13895 # Fast installation is not necessary
13896 enable_fast_install=needless
13904 if test yes != "$enable_dlopen"; then
13905 enable_dlopen=unknown
13906 enable_dlopen_self=unknown
13907 enable_dlopen_self_static=unknown
13914 lt_cv_dlopen=load_add_on
13916 lt_cv_dlopen_self=yes
13919 mingw* | pw32* | cegcc*)
13920 lt_cv_dlopen=LoadLibrary
13925 lt_cv_dlopen=dlopen
13930 # if libdl is installed we need to link against it
13931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13932 printf %s "checking for dlopen in -ldl... " >&6; }
13933 if test ${ac_cv_lib_dl_dlopen+y}
13935 printf %s "(cached) " >&6
13937 ac_check_lib_save_LIBS=$LIBS
13939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13940 /* end confdefs.h. */
13942 /* Override any GCC internal prototype to avoid an error.
13943 Use char because int might match the return type of a GCC
13944 builtin and then its argument prototype would still apply. */
13954 if ac_fn_c_try_link "$LINENO"
13956 ac_cv_lib_dl_dlopen=yes
13958 ac_cv_lib_dl_dlopen=no
13960 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13961 conftest$ac_exeext conftest.$ac_ext
13962 LIBS=$ac_check_lib_save_LIBS
13964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13965 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13966 if test "x$ac_cv_lib_dl_dlopen" = xyes
13968 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13973 lt_cv_dlopen_self=yes
13980 # Don't try to run any link tests for TPF. We know it's impossible
13981 # because TPF is a cross-compiler, and we know how we open DSOs.
13982 lt_cv_dlopen=dlopen
13984 lt_cv_dlopen_self=no
13988 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13989 if test "x$ac_cv_func_shl_load" = xyes
13991 lt_cv_dlopen=shl_load
13993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13994 printf %s "checking for shl_load in -ldld... " >&6; }
13995 if test ${ac_cv_lib_dld_shl_load+y}
13997 printf %s "(cached) " >&6
13999 ac_check_lib_save_LIBS=$LIBS
14001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14002 /* end confdefs.h. */
14004 /* Override any GCC internal prototype to avoid an error.
14005 Use char because int might match the return type of a GCC
14006 builtin and then its argument prototype would still apply. */
14011 return shl_load ();
14016 if ac_fn_c_try_link "$LINENO"
14018 ac_cv_lib_dld_shl_load=yes
14020 ac_cv_lib_dld_shl_load=no
14022 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14023 conftest$ac_exeext conftest.$ac_ext
14024 LIBS=$ac_check_lib_save_LIBS
14026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14027 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14028 if test "x$ac_cv_lib_dld_shl_load" = xyes
14030 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14032 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14033 if test "x$ac_cv_func_dlopen" = xyes
14035 lt_cv_dlopen=dlopen
14037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14038 printf %s "checking for dlopen in -ldl... " >&6; }
14039 if test ${ac_cv_lib_dl_dlopen+y}
14041 printf %s "(cached) " >&6
14043 ac_check_lib_save_LIBS=$LIBS
14045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14046 /* end confdefs.h. */
14048 /* Override any GCC internal prototype to avoid an error.
14049 Use char because int might match the return type of a GCC
14050 builtin and then its argument prototype would still apply. */
14060 if ac_fn_c_try_link "$LINENO"
14062 ac_cv_lib_dl_dlopen=yes
14064 ac_cv_lib_dl_dlopen=no
14066 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14067 conftest$ac_exeext conftest.$ac_ext
14068 LIBS=$ac_check_lib_save_LIBS
14070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14071 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14072 if test "x$ac_cv_lib_dl_dlopen" = xyes
14074 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14077 printf %s "checking for dlopen in -lsvld... " >&6; }
14078 if test ${ac_cv_lib_svld_dlopen+y}
14080 printf %s "(cached) " >&6
14082 ac_check_lib_save_LIBS=$LIBS
14083 LIBS="-lsvld $LIBS"
14084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14085 /* end confdefs.h. */
14087 /* Override any GCC internal prototype to avoid an error.
14088 Use char because int might match the return type of a GCC
14089 builtin and then its argument prototype would still apply. */
14099 if ac_fn_c_try_link "$LINENO"
14101 ac_cv_lib_svld_dlopen=yes
14103 ac_cv_lib_svld_dlopen=no
14105 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14106 conftest$ac_exeext conftest.$ac_ext
14107 LIBS=$ac_check_lib_save_LIBS
14109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14110 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14111 if test "x$ac_cv_lib_svld_dlopen" = xyes
14113 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14116 printf %s "checking for dld_link in -ldld... " >&6; }
14117 if test ${ac_cv_lib_dld_dld_link+y}
14119 printf %s "(cached) " >&6
14121 ac_check_lib_save_LIBS=$LIBS
14123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14124 /* end confdefs.h. */
14126 /* Override any GCC internal prototype to avoid an error.
14127 Use char because int might match the return type of a GCC
14128 builtin and then its argument prototype would still apply. */
14133 return dld_link ();
14138 if ac_fn_c_try_link "$LINENO"
14140 ac_cv_lib_dld_dld_link=yes
14142 ac_cv_lib_dld_dld_link=no
14144 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14145 conftest$ac_exeext conftest.$ac_ext
14146 LIBS=$ac_check_lib_save_LIBS
14148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14149 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14150 if test "x$ac_cv_lib_dld_dld_link" = xyes
14152 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14173 if test no = "$lt_cv_dlopen"; then
14179 case $lt_cv_dlopen in
14181 save_CPPFLAGS=$CPPFLAGS
14182 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14184 save_LDFLAGS=$LDFLAGS
14185 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14188 LIBS="$lt_cv_dlopen_libs $LIBS"
14190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14191 printf %s "checking whether a program can dlopen itself... " >&6; }
14192 if test ${lt_cv_dlopen_self+y}
14194 printf %s "(cached) " >&6
14196 if test yes = "$cross_compiling"; then :
14197 lt_cv_dlopen_self=cross
14199 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14200 lt_status=$lt_dlunknown
14201 cat > conftest.$ac_ext <<_LT_EOF
14202 #line $LINENO "configure"
14203 #include "confdefs.h"
14212 # define LT_DLGLOBAL RTLD_GLOBAL
14215 # define LT_DLGLOBAL DL_GLOBAL
14217 # define LT_DLGLOBAL 0
14221 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14222 find out it does not work in some platform. */
14223 #ifndef LT_DLLAZY_OR_NOW
14225 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14228 # define LT_DLLAZY_OR_NOW DL_LAZY
14231 # define LT_DLLAZY_OR_NOW RTLD_NOW
14234 # define LT_DLLAZY_OR_NOW DL_NOW
14236 # define LT_DLLAZY_OR_NOW 0
14243 /* When -fvisibility=hidden is used, assume the code has been annotated
14244 correspondingly for the symbols needed. */
14245 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14246 int fnord () __attribute__((visibility("default")));
14249 int fnord () { return 42; }
14252 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14253 int status = $lt_dlunknown;
14257 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14260 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14261 else puts (dlerror ());
14263 /* dlclose (self); */
14271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14272 (eval $ac_link) 2>&5
14274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14275 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14276 (./conftest; exit; ) >&5 2>/dev/null
14278 case x$lt_status in
14279 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14280 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14281 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14284 # compilation failed
14285 lt_cv_dlopen_self=no
14292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14293 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14295 if test yes = "$lt_cv_dlopen_self"; then
14296 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14298 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14299 if test ${lt_cv_dlopen_self_static+y}
14301 printf %s "(cached) " >&6
14303 if test yes = "$cross_compiling"; then :
14304 lt_cv_dlopen_self_static=cross
14306 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14307 lt_status=$lt_dlunknown
14308 cat > conftest.$ac_ext <<_LT_EOF
14309 #line $LINENO "configure"
14310 #include "confdefs.h"
14319 # define LT_DLGLOBAL RTLD_GLOBAL
14322 # define LT_DLGLOBAL DL_GLOBAL
14324 # define LT_DLGLOBAL 0
14328 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14329 find out it does not work in some platform. */
14330 #ifndef LT_DLLAZY_OR_NOW
14332 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14335 # define LT_DLLAZY_OR_NOW DL_LAZY
14338 # define LT_DLLAZY_OR_NOW RTLD_NOW
14341 # define LT_DLLAZY_OR_NOW DL_NOW
14343 # define LT_DLLAZY_OR_NOW 0
14350 /* When -fvisibility=hidden is used, assume the code has been annotated
14351 correspondingly for the symbols needed. */
14352 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14353 int fnord () __attribute__((visibility("default")));
14356 int fnord () { return 42; }
14359 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14360 int status = $lt_dlunknown;
14364 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14367 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14368 else puts (dlerror ());
14370 /* dlclose (self); */
14378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14379 (eval $ac_link) 2>&5
14381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14382 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14383 (./conftest; exit; ) >&5 2>/dev/null
14385 case x$lt_status in
14386 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14387 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14388 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14391 # compilation failed
14392 lt_cv_dlopen_self_static=no
14399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14400 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14403 CPPFLAGS=$save_CPPFLAGS
14404 LDFLAGS=$save_LDFLAGS
14409 case $lt_cv_dlopen_self in
14410 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14411 *) enable_dlopen_self=unknown ;;
14414 case $lt_cv_dlopen_self_static in
14415 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14416 *) enable_dlopen_self_static=unknown ;;
14438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14439 printf %s "checking whether stripping libraries is possible... " >&6; }
14440 if test -z "$STRIP"; then
14441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14442 printf "%s\n" "no" >&6; }
14444 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14445 old_striplib="$STRIP --strip-debug"
14446 striplib="$STRIP --strip-unneeded"
14447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14448 printf "%s\n" "yes" >&6; }
14452 # FIXME - insert some real tests, host_os isn't really good enough
14453 striplib="$STRIP -x"
14454 old_striplib="$STRIP -S"
14455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14456 printf "%s\n" "yes" >&6; }
14459 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14460 old_striplib="$STRIP --strip-debug"
14461 striplib="$STRIP --strip-unneeded"
14462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14463 printf "%s\n" "yes" >&6; }
14465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14466 printf "%s\n" "no" >&6; }
14470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14471 printf "%s\n" "no" >&6; }
14488 # Report what library types will actually be built
14489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14490 printf %s "checking if libtool supports shared libraries... " >&6; }
14491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14492 printf "%s\n" "$can_build_shared" >&6; }
14494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14495 printf %s "checking whether to build shared libraries... " >&6; }
14496 test no = "$can_build_shared" && enable_shared=no
14498 # On AIX, shared libraries and static libraries use the same namespace, and
14499 # are all built from PIC.
14502 test yes = "$enable_shared" && enable_static=no
14503 if test -n "$RANLIB"; then
14504 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14505 postinstall_cmds='$RANLIB $lib'
14510 if test ia64 != "$host_cpu"; then
14511 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14512 yes,aix,yes) ;; # shared object as lib.so file only
14513 yes,svr4,*) ;; # shared object as lib.so archive member only
14514 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14520 printf "%s\n" "$enable_shared" >&6; }
14522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14523 printf %s "checking whether to build static libraries... " >&6; }
14524 # Make sure either enable_shared or enable_static is yes.
14525 test yes = "$enable_shared" || enable_static=yes
14526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14527 printf "%s\n" "$enable_static" >&6; }
14534 ac_cpp='$CPP $CPPFLAGS'
14535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14555 ac_config_commands="$ac_config_commands libtool"
14560 # Only expand once:
14571 LIBT_VERSION_INFO="$LIBT_CURRENT:$LIBT_REVISION:$LIBT_AGE"
14574 LIBT_CURRENT_MINUS_AGE=`expr $LIBT_CURRENT - $LIBT_AGE`
14577 PKGCONFIG_REQUIRES=
14578 PKGCONFIG_REQUIRES_PRIVATELY=
14583 case "${host_os}" in
14591 if test "$os_win32" = "yes"; then
14599 if test "$os_darwin" = "yes"; then
14601 OS_DARWIN_FALSE='#'
14608 GETTEXT_PACKAGE=$PACKAGE
14611 printf "%s\n" "#define GETTEXT_PACKAGE \"$GETTEXT_PACKAGE\"" >>confdefs.h
14616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14617 printf %s "checking whether NLS is requested... " >&6; }
14618 # Check whether --enable-nls was given.
14619 if test ${enable_nls+y}
14621 enableval=$enable_nls; USE_NLS=$enableval
14626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14627 printf "%s\n" "$USE_NLS" >&6; }
14632 GETTEXT_MACRO_VERSION=0.19
14637 # Prepare PATH_SEPARATOR.
14638 # The user is always right.
14639 if test "${PATH_SEPARATOR+set}" != set; then
14640 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14641 # contains only /bin. Note that ksh looks also at the FPATH variable,
14642 # so we have to set that as well for the test.
14644 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14645 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14646 || PATH_SEPARATOR=';'
14650 # Find out how to test for executable files. Don't use a zero-byte file,
14651 # as systems may use methods other than mode bits to determine executability.
14652 cat >conf$$.file <<_ASEOF
14656 chmod +x conf$$.file
14657 if test -x conf$$.file >/dev/null 2>&1; then
14658 ac_executable_p="test -x"
14660 ac_executable_p="test -f"
14664 # Extract the first word of "msgfmt", so it can be a program name with args.
14665 set dummy msgfmt; ac_word=$2
14666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14667 printf %s "checking for $ac_word... " >&6; }
14668 if test ${ac_cv_path_MSGFMT+y}
14670 printf %s "(cached) " >&6
14674 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14677 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14678 for ac_dir in $PATH; do
14680 test -z "$ac_dir" && ac_dir=.
14681 for ac_exec_ext in '' $ac_executable_extensions; do
14682 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14683 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14684 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14685 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14686 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14693 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14697 MSGFMT="$ac_cv_path_MSGFMT"
14698 if test "$MSGFMT" != ":"; then
14699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14700 printf "%s\n" "$MSGFMT" >&6; }
14702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14703 printf "%s\n" "no" >&6; }
14706 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14707 set dummy gmsgfmt; ac_word=$2
14708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14709 printf %s "checking for $ac_word... " >&6; }
14710 if test ${ac_cv_path_GMSGFMT+y}
14712 printf %s "(cached) " >&6
14716 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14720 for as_dir in $PATH
14723 case $as_dir in #(((
14726 *) as_dir=$as_dir/ ;;
14728 for ac_exec_ext in '' $ac_executable_extensions; do
14729 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14730 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
14731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14738 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14742 GMSGFMT=$ac_cv_path_GMSGFMT
14743 if test -n "$GMSGFMT"; then
14744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14745 printf "%s\n" "$GMSGFMT" >&6; }
14747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14748 printf "%s\n" "no" >&6; }
14753 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14754 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14755 *) MSGFMT_015=$MSGFMT ;;
14758 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14759 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14760 *) GMSGFMT_015=$GMSGFMT ;;
14765 # Prepare PATH_SEPARATOR.
14766 # The user is always right.
14767 if test "${PATH_SEPARATOR+set}" != set; then
14768 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14769 # contains only /bin. Note that ksh looks also at the FPATH variable,
14770 # so we have to set that as well for the test.
14772 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14773 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14774 || PATH_SEPARATOR=';'
14778 # Find out how to test for executable files. Don't use a zero-byte file,
14779 # as systems may use methods other than mode bits to determine executability.
14780 cat >conf$$.file <<_ASEOF
14784 chmod +x conf$$.file
14785 if test -x conf$$.file >/dev/null 2>&1; then
14786 ac_executable_p="test -x"
14788 ac_executable_p="test -f"
14792 # Extract the first word of "xgettext", so it can be a program name with args.
14793 set dummy xgettext; ac_word=$2
14794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14795 printf %s "checking for $ac_word... " >&6; }
14796 if test ${ac_cv_path_XGETTEXT+y}
14798 printf %s "(cached) " >&6
14800 case "$XGETTEXT" in
14802 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14805 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14806 for ac_dir in $PATH; do
14808 test -z "$ac_dir" && ac_dir=.
14809 for ac_exec_ext in '' $ac_executable_extensions; do
14810 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14811 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14812 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14813 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14814 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14821 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14825 XGETTEXT="$ac_cv_path_XGETTEXT"
14826 if test "$XGETTEXT" != ":"; then
14827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14828 printf "%s\n" "$XGETTEXT" >&6; }
14830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14831 printf "%s\n" "no" >&6; }
14836 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14837 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14838 *) XGETTEXT_015=$XGETTEXT ;;
14843 # Prepare PATH_SEPARATOR.
14844 # The user is always right.
14845 if test "${PATH_SEPARATOR+set}" != set; then
14846 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14847 # contains only /bin. Note that ksh looks also at the FPATH variable,
14848 # so we have to set that as well for the test.
14850 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14851 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14852 || PATH_SEPARATOR=';'
14856 # Find out how to test for executable files. Don't use a zero-byte file,
14857 # as systems may use methods other than mode bits to determine executability.
14858 cat >conf$$.file <<_ASEOF
14862 chmod +x conf$$.file
14863 if test -x conf$$.file >/dev/null 2>&1; then
14864 ac_executable_p="test -x"
14866 ac_executable_p="test -f"
14870 # Extract the first word of "msgmerge", so it can be a program name with args.
14871 set dummy msgmerge; ac_word=$2
14872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14873 printf %s "checking for $ac_word... " >&6; }
14874 if test ${ac_cv_path_MSGMERGE+y}
14876 printf %s "(cached) " >&6
14878 case "$MSGMERGE" in
14880 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14883 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14884 for ac_dir in $PATH; do
14886 test -z "$ac_dir" && ac_dir=.
14887 for ac_exec_ext in '' $ac_executable_extensions; do
14888 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14889 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14890 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14891 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14898 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14902 MSGMERGE="$ac_cv_path_MSGMERGE"
14903 if test "$MSGMERGE" != ":"; then
14904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14905 printf "%s\n" "$MSGMERGE" >&6; }
14907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14908 printf "%s\n" "no" >&6; }
14912 test -n "$localedir" || localedir='${datadir}/locale'
14915 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14918 ac_config_commands="$ac_config_commands po-directories"
14922 if test "X$prefix" = "XNONE"; then
14923 acl_final_prefix="$ac_default_prefix"
14925 acl_final_prefix="$prefix"
14927 if test "X$exec_prefix" = "XNONE"; then
14928 acl_final_exec_prefix='${prefix}'
14930 acl_final_exec_prefix="$exec_prefix"
14932 acl_save_prefix="$prefix"
14933 prefix="$acl_final_prefix"
14934 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14935 prefix="$acl_save_prefix"
14939 # Check whether --with-gnu-ld was given.
14940 if test ${with_gnu_ld+y}
14942 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14947 # Prepare PATH_SEPARATOR.
14948 # The user is always right.
14949 if test "${PATH_SEPARATOR+set}" != set; then
14950 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14951 # contains only /bin. Note that ksh looks also at the FPATH variable,
14952 # so we have to set that as well for the test.
14954 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14955 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14956 || PATH_SEPARATOR=';'
14961 if test "$GCC" = yes; then
14962 # Check if gcc -print-prog-name=ld gives a path.
14963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14964 printf %s "checking for ld used by $CC... " >&6; }
14967 # gcc leaves a trailing carriage return which upsets mingw
14968 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14970 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14973 # Accept absolute paths.
14975 re_direlt='/[^/][^/]*/\.\./'
14976 # Canonicalize the pathname of ld
14977 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
14978 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
14979 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14981 test -z "$LD" && LD="$ac_prog"
14984 # If it fails, then pretend we aren't using GCC.
14988 # If it is relative, then search for the first ld in PATH.
14989 with_gnu_ld=unknown
14992 elif test "$with_gnu_ld" = yes; then
14993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14994 printf %s "checking for GNU ld... " >&6; }
14996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14997 printf %s "checking for non-GNU ld... " >&6; }
14999 if test ${acl_cv_path_LD+y}
15001 printf %s "(cached) " >&6
15003 if test -z "$LD"; then
15004 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15005 for ac_dir in $PATH; do
15006 IFS="$acl_save_ifs"
15007 test -z "$ac_dir" && ac_dir=.
15008 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15009 acl_cv_path_LD="$ac_dir/$ac_prog"
15010 # Check to see if the program is GNU ld. I'd rather use --version,
15011 # but apparently some variants of GNU ld only accept -v.
15012 # Break only if it was the GNU/non-GNU ld that we prefer.
15013 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
15014 *GNU* | *'with BFD'*)
15015 test "$with_gnu_ld" != no && break
15018 test "$with_gnu_ld" != yes && break
15023 IFS="$acl_save_ifs"
15025 acl_cv_path_LD="$LD" # Let the user override the test with a path.
15029 LD="$acl_cv_path_LD"
15030 if test -n "$LD"; then
15031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15032 printf "%s\n" "$LD" >&6; }
15034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15035 printf "%s\n" "no" >&6; }
15037 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15039 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
15040 if test ${acl_cv_prog_gnu_ld+y}
15042 printf %s "(cached) " >&6
15044 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15045 case `$LD -v 2>&1 </dev/null` in
15046 *GNU* | *'with BFD'*)
15047 acl_cv_prog_gnu_ld=yes
15050 acl_cv_prog_gnu_ld=no
15054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
15055 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
15056 with_gnu_ld=$acl_cv_prog_gnu_ld
15062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
15063 printf %s "checking for shared library run path origin... " >&6; }
15064 if test ${acl_cv_rpath+y}
15066 printf %s "(cached) " >&6
15069 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15070 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15072 rm -f ./conftest.sh
15076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
15077 printf "%s\n" "$acl_cv_rpath" >&6; }
15079 acl_libext="$acl_cv_libext"
15080 acl_shlibext="$acl_cv_shlibext"
15081 acl_libname_spec="$acl_cv_libname_spec"
15082 acl_library_names_spec="$acl_cv_library_names_spec"
15083 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15084 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15085 acl_hardcode_direct="$acl_cv_hardcode_direct"
15086 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
15087 # Check whether --enable-rpath was given.
15088 if test ${enable_rpath+y}
15090 enableval=$enable_rpath; :
15097 ac_cpp='$CPP $CPPFLAGS'
15098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
15102 printf %s "checking how to run the C preprocessor... " >&6; }
15103 # On Suns, sometimes $CPP names a directory.
15104 if test -n "$CPP" && test -d "$CPP"; then
15107 if test -z "$CPP"; then
15108 if test ${ac_cv_prog_CPP+y}
15110 printf %s "(cached) " >&6
15112 # Double quotes because $CC needs to be expanded
15113 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
15115 ac_preproc_ok=false
15116 for ac_c_preproc_warn_flag in '' yes
15118 # Use a header file that comes with gcc, so configuring glibc
15119 # with a fresh cross-compiler works.
15120 # On the NeXT, cc -E runs the code through the compiler's parser,
15121 # not just through cpp. "Syntax error" is here to catch this case.
15122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15123 /* end confdefs.h. */
15124 #include <limits.h>
15127 if ac_fn_c_try_cpp "$LINENO"
15131 # Broken: fails on valid input.
15134 rm -f conftest.err conftest.i conftest.$ac_ext
15136 # OK, works on sane cases. Now check whether nonexistent headers
15137 # can be detected and how.
15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15140 #include <ac_nonexistent.h>
15142 if ac_fn_c_try_cpp "$LINENO"
15144 # Broken: success on invalid input.
15147 # Passes both tests.
15151 rm -f conftest.err conftest.i conftest.$ac_ext
15154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15155 rm -f conftest.i conftest.err conftest.$ac_ext
15162 ac_cv_prog_CPP=$CPP
15165 CPP=$ac_cv_prog_CPP
15167 ac_cv_prog_CPP=$CPP
15169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
15170 printf "%s\n" "$CPP" >&6; }
15171 ac_preproc_ok=false
15172 for ac_c_preproc_warn_flag in '' yes
15174 # Use a header file that comes with gcc, so configuring glibc
15175 # with a fresh cross-compiler works.
15176 # On the NeXT, cc -E runs the code through the compiler's parser,
15177 # not just through cpp. "Syntax error" is here to catch this case.
15178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15179 /* end confdefs.h. */
15180 #include <limits.h>
15183 if ac_fn_c_try_cpp "$LINENO"
15187 # Broken: fails on valid input.
15190 rm -f conftest.err conftest.i conftest.$ac_ext
15192 # OK, works on sane cases. Now check whether nonexistent headers
15193 # can be detected and how.
15194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15195 /* end confdefs.h. */
15196 #include <ac_nonexistent.h>
15198 if ac_fn_c_try_cpp "$LINENO"
15200 # Broken: success on invalid input.
15203 # Passes both tests.
15207 rm -f conftest.err conftest.i conftest.$ac_ext
15210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15211 rm -f conftest.i conftest.err conftest.$ac_ext
15216 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15217 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15218 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
15219 See \`config.log' for more details" "$LINENO" 5; }
15223 ac_cpp='$CPP $CPPFLAGS'
15224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
15236 printf %s "checking for 64-bit host... " >&6; }
15237 if test ${gl_cv_solaris_64bit+y}
15239 printf %s "(cached) " >&6
15241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15242 /* end confdefs.h. */
15249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15250 $EGREP "sixtyfour bits" >/dev/null 2>&1
15252 gl_cv_solaris_64bit=yes
15254 gl_cv_solaris_64bit=no
15260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
15261 printf "%s\n" "$gl_cv_solaris_64bit" >&6; }
15262 if test $gl_cv_solaris_64bit = yes; then
15263 acl_libdirstem=lib/64
15264 case "$host_cpu" in
15265 sparc*) acl_libdirstem2=lib/sparcv9 ;;
15266 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
15271 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
15272 if test -n "$searchpath"; then
15273 acl_save_IFS="${IFS= }"; IFS=":"
15274 for searchdir in $searchpath; do
15275 if test -d "$searchdir"; then
15276 case "$searchdir" in
15277 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
15279 # Better ignore directories of this form. They are misleading.
15281 *) searchdir=`cd "$searchdir" && pwd`
15282 case "$searchdir" in
15283 */lib64 ) acl_libdirstem=lib64 ;;
15288 IFS="$acl_save_IFS"
15292 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
15307 acl_save_prefix="$prefix"
15308 prefix="$acl_final_prefix"
15309 acl_save_exec_prefix="$exec_prefix"
15310 exec_prefix="$acl_final_exec_prefix"
15312 eval additional_includedir=\"$includedir\"
15313 eval additional_libdir=\"$libdir\"
15315 exec_prefix="$acl_save_exec_prefix"
15316 prefix="$acl_save_prefix"
15319 # Check whether --with-libiconv-prefix was given.
15320 if test ${with_libiconv_prefix+y}
15322 withval=$with_libiconv_prefix;
15323 if test "X$withval" = "Xno"; then
15326 if test "X$withval" = "X"; then
15328 acl_save_prefix="$prefix"
15329 prefix="$acl_final_prefix"
15330 acl_save_exec_prefix="$exec_prefix"
15331 exec_prefix="$acl_final_exec_prefix"
15333 eval additional_includedir=\"$includedir\"
15334 eval additional_libdir=\"$libdir\"
15336 exec_prefix="$acl_save_exec_prefix"
15337 prefix="$acl_save_prefix"
15340 additional_includedir="$withval/include"
15341 additional_libdir="$withval/$acl_libdirstem"
15342 if test "$acl_libdirstem2" != "$acl_libdirstem" \
15343 && ! test -d "$withval/$acl_libdirstem"; then
15344 additional_libdir="$withval/$acl_libdirstem2"
15358 names_already_handled=
15359 names_next_round='iconv '
15360 while test -n "$names_next_round"; do
15361 names_this_round="$names_next_round"
15363 for name in $names_this_round; do
15365 for n in $names_already_handled; do
15366 if test "$n" = "$name"; then
15367 already_handled=yes
15371 if test -z "$already_handled"; then
15372 names_already_handled="$names_already_handled $name"
15373 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
15374 eval value=\"\$HAVE_LIB$uppername\"
15375 if test -n "$value"; then
15376 if test "$value" = yes; then
15377 eval value=\"\$LIB$uppername\"
15378 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15379 eval value=\"\$LTLIB$uppername\"
15380 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15389 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
15390 if test -n "$acl_shlibext"; then
15391 shrext=".$acl_shlibext" # typically: shrext=.so
15395 if test $use_additional = yes; then
15396 dir="$additional_libdir"
15397 if test -n "$acl_shlibext"; then
15398 if test -f "$dir/$libname$shrext"; then
15400 found_so="$dir/$libname$shrext"
15402 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15403 ver=`(cd "$dir" && \
15404 for f in "$libname$shrext".*; do echo "$f"; done \
15405 | sed -e "s,^$libname$shrext\\\\.,," \
15406 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15407 | sed 1q ) 2>/dev/null`
15408 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15410 found_so="$dir/$libname$shrext.$ver"
15413 eval library_names=\"$acl_library_names_spec\"
15414 for f in $library_names; do
15415 if test -f "$dir/$f"; then
15424 if test "X$found_dir" = "X"; then
15425 if test -f "$dir/$libname.$acl_libext"; then
15427 found_a="$dir/$libname.$acl_libext"
15430 if test "X$found_dir" != "X"; then
15431 if test -f "$dir/$libname.la"; then
15432 found_la="$dir/$libname.la"
15436 if test "X$found_dir" = "X"; then
15437 for x in $LDFLAGS $LTLIBICONV; do
15439 acl_save_prefix="$prefix"
15440 prefix="$acl_final_prefix"
15441 acl_save_exec_prefix="$exec_prefix"
15442 exec_prefix="$acl_final_exec_prefix"
15444 exec_prefix="$acl_save_exec_prefix"
15445 prefix="$acl_save_prefix"
15449 dir=`echo "X$x" | sed -e 's/^X-L//'`
15450 if test -n "$acl_shlibext"; then
15451 if test -f "$dir/$libname$shrext"; then
15453 found_so="$dir/$libname$shrext"
15455 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15456 ver=`(cd "$dir" && \
15457 for f in "$libname$shrext".*; do echo "$f"; done \
15458 | sed -e "s,^$libname$shrext\\\\.,," \
15459 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15460 | sed 1q ) 2>/dev/null`
15461 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15463 found_so="$dir/$libname$shrext.$ver"
15466 eval library_names=\"$acl_library_names_spec\"
15467 for f in $library_names; do
15468 if test -f "$dir/$f"; then
15477 if test "X$found_dir" = "X"; then
15478 if test -f "$dir/$libname.$acl_libext"; then
15480 found_a="$dir/$libname.$acl_libext"
15483 if test "X$found_dir" != "X"; then
15484 if test -f "$dir/$libname.la"; then
15485 found_la="$dir/$libname.la"
15490 if test "X$found_dir" != "X"; then
15495 if test "X$found_dir" != "X"; then
15496 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15497 if test "X$found_so" != "X"; then
15498 if test "$enable_rpath" = no \
15499 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15500 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15501 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15504 for x in $ltrpathdirs; do
15505 if test "X$x" = "X$found_dir"; then
15510 if test -z "$haveit"; then
15511 ltrpathdirs="$ltrpathdirs $found_dir"
15513 if test "$acl_hardcode_direct" = yes; then
15514 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15516 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15517 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15519 for x in $rpathdirs; do
15520 if test "X$x" = "X$found_dir"; then
15525 if test -z "$haveit"; then
15526 rpathdirs="$rpathdirs $found_dir"
15530 for x in $LDFLAGS $LIBICONV; do
15532 acl_save_prefix="$prefix"
15533 prefix="$acl_final_prefix"
15534 acl_save_exec_prefix="$exec_prefix"
15535 exec_prefix="$acl_final_exec_prefix"
15537 exec_prefix="$acl_save_exec_prefix"
15538 prefix="$acl_save_prefix"
15540 if test "X$x" = "X-L$found_dir"; then
15545 if test -z "$haveit"; then
15546 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15548 if test "$acl_hardcode_minus_L" != no; then
15549 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15551 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15557 if test "X$found_a" != "X"; then
15558 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15560 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15563 additional_includedir=
15564 case "$found_dir" in
15565 */$acl_libdirstem | */$acl_libdirstem/)
15566 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15567 if test "$name" = 'iconv'; then
15568 LIBICONV_PREFIX="$basedir"
15570 additional_includedir="$basedir/include"
15572 */$acl_libdirstem2 | */$acl_libdirstem2/)
15573 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15574 if test "$name" = 'iconv'; then
15575 LIBICONV_PREFIX="$basedir"
15577 additional_includedir="$basedir/include"
15580 if test "X$additional_includedir" != "X"; then
15581 if test "X$additional_includedir" != "X/usr/include"; then
15583 if test "X$additional_includedir" = "X/usr/local/include"; then
15584 if test -n "$GCC"; then
15586 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15590 if test -z "$haveit"; then
15591 for x in $CPPFLAGS $INCICONV; do
15593 acl_save_prefix="$prefix"
15594 prefix="$acl_final_prefix"
15595 acl_save_exec_prefix="$exec_prefix"
15596 exec_prefix="$acl_final_exec_prefix"
15598 exec_prefix="$acl_save_exec_prefix"
15599 prefix="$acl_save_prefix"
15601 if test "X$x" = "X-I$additional_includedir"; then
15606 if test -z "$haveit"; then
15607 if test -d "$additional_includedir"; then
15608 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15614 if test -n "$found_la"; then
15615 save_libdir="$libdir"
15616 case "$found_la" in
15617 */* | *\\*) . "$found_la" ;;
15618 *) . "./$found_la" ;;
15620 libdir="$save_libdir"
15621 for dep in $dependency_libs; do
15624 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15625 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15626 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15628 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15629 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15630 if test -n "$GCC"; then
15632 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15636 if test -z "$haveit"; then
15638 for x in $LDFLAGS $LIBICONV; do
15640 acl_save_prefix="$prefix"
15641 prefix="$acl_final_prefix"
15642 acl_save_exec_prefix="$exec_prefix"
15643 exec_prefix="$acl_final_exec_prefix"
15645 exec_prefix="$acl_save_exec_prefix"
15646 prefix="$acl_save_prefix"
15648 if test "X$x" = "X-L$additional_libdir"; then
15653 if test -z "$haveit"; then
15654 if test -d "$additional_libdir"; then
15655 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15659 for x in $LDFLAGS $LTLIBICONV; do
15661 acl_save_prefix="$prefix"
15662 prefix="$acl_final_prefix"
15663 acl_save_exec_prefix="$exec_prefix"
15664 exec_prefix="$acl_final_exec_prefix"
15666 exec_prefix="$acl_save_exec_prefix"
15667 prefix="$acl_save_prefix"
15669 if test "X$x" = "X-L$additional_libdir"; then
15674 if test -z "$haveit"; then
15675 if test -d "$additional_libdir"; then
15676 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15683 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15684 if test "$enable_rpath" != no; then
15686 for x in $rpathdirs; do
15687 if test "X$x" = "X$dir"; then
15692 if test -z "$haveit"; then
15693 rpathdirs="$rpathdirs $dir"
15696 for x in $ltrpathdirs; do
15697 if test "X$x" = "X$dir"; then
15702 if test -z "$haveit"; then
15703 ltrpathdirs="$ltrpathdirs $dir"
15708 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15711 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15714 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15715 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15721 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15722 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15728 if test "X$rpathdirs" != "X"; then
15729 if test -n "$acl_hardcode_libdir_separator"; then
15731 for found_dir in $rpathdirs; do
15732 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15734 acl_save_libdir="$libdir"
15736 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15737 libdir="$acl_save_libdir"
15738 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15740 for found_dir in $rpathdirs; do
15741 acl_save_libdir="$libdir"
15742 libdir="$found_dir"
15743 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15744 libdir="$acl_save_libdir"
15745 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15749 if test "X$ltrpathdirs" != "X"; then
15750 for found_dir in $ltrpathdirs; do
15751 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15786 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
15787 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
15789 printf %s "(cached) " >&6
15791 gt_save_LIBS="$LIBS"
15792 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15794 /* end confdefs.h. */
15795 #include <CoreFoundation/CFPreferences.h>
15799 CFPreferencesCopyAppValue(NULL, NULL)
15804 if ac_fn_c_try_link "$LINENO"
15806 gt_cv_func_CFPreferencesCopyAppValue=yes
15808 gt_cv_func_CFPreferencesCopyAppValue=no
15810 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15811 conftest$ac_exeext conftest.$ac_ext
15812 LIBS="$gt_save_LIBS"
15814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15815 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15816 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15818 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15822 printf %s "checking for CFLocaleCopyCurrent... " >&6; }
15823 if test ${gt_cv_func_CFLocaleCopyCurrent+y}
15825 printf %s "(cached) " >&6
15827 gt_save_LIBS="$LIBS"
15828 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15830 /* end confdefs.h. */
15831 #include <CoreFoundation/CFLocale.h>
15835 CFLocaleCopyCurrent();
15840 if ac_fn_c_try_link "$LINENO"
15842 gt_cv_func_CFLocaleCopyCurrent=yes
15844 gt_cv_func_CFLocaleCopyCurrent=no
15846 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15847 conftest$ac_exeext conftest.$ac_ext
15848 LIBS="$gt_save_LIBS"
15850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15851 printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15852 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15854 printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15858 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15859 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15871 case " $gt_needs " in
15872 *" need-formatstring-macros "*) gt_api_version=3 ;;
15873 *" need-ngettext "*) gt_api_version=2 ;;
15874 *) gt_api_version=1 ;;
15876 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15877 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15879 if test "$USE_NLS" = "yes"; then
15880 gt_use_preinstalled_gnugettext=no
15883 if test $gt_api_version -ge 3; then
15884 gt_revision_test_code='
15885 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15886 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15888 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15891 gt_revision_test_code=
15893 if test $gt_api_version -ge 2; then
15894 gt_expression_test_code=' + * ngettext ("", "", 0)'
15896 gt_expression_test_code=
15899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15900 printf %s "checking for GNU gettext in libc... " >&6; }
15901 if eval test \${$gt_func_gnugettext_libc+y}
15903 printf %s "(cached) " >&6
15905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15906 /* end confdefs.h. */
15908 #include <libintl.h>
15909 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15910 extern int _nl_msg_cat_cntr;
15911 extern int *_nl_domain_bindings;
15912 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
15914 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
15916 $gt_revision_test_code
15922 bindtextdomain ("", "");
15923 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
15929 if ac_fn_c_try_link "$LINENO"
15931 eval "$gt_func_gnugettext_libc=yes"
15933 eval "$gt_func_gnugettext_libc=no"
15935 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15936 conftest$ac_exeext conftest.$ac_ext
15938 eval ac_res=\$$gt_func_gnugettext_libc
15939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15940 printf "%s\n" "$ac_res" >&6; }
15942 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15948 am_save_CPPFLAGS="$CPPFLAGS"
15950 for element in $INCICONV; do
15952 for x in $CPPFLAGS; do
15954 acl_save_prefix="$prefix"
15955 prefix="$acl_final_prefix"
15956 acl_save_exec_prefix="$exec_prefix"
15957 exec_prefix="$acl_final_exec_prefix"
15959 exec_prefix="$acl_save_exec_prefix"
15960 prefix="$acl_save_prefix"
15962 if test "X$x" = "X$element"; then
15967 if test -z "$haveit"; then
15968 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15974 printf %s "checking for iconv... " >&6; }
15975 if test ${am_cv_func_iconv+y}
15977 printf %s "(cached) " >&6
15980 am_cv_func_iconv="no, consider installing GNU libiconv"
15982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15983 /* end confdefs.h. */
15985 #include <stdlib.h>
15991 iconv_t cd = iconv_open("","");
15992 iconv(cd,NULL,NULL,NULL,NULL);
15998 if ac_fn_c_try_link "$LINENO"
16000 am_cv_func_iconv=yes
16002 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16003 conftest$ac_exeext conftest.$ac_ext
16004 if test "$am_cv_func_iconv" != yes; then
16005 am_save_LIBS="$LIBS"
16006 LIBS="$LIBS $LIBICONV"
16007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008 /* end confdefs.h. */
16010 #include <stdlib.h>
16016 iconv_t cd = iconv_open("","");
16017 iconv(cd,NULL,NULL,NULL,NULL);
16023 if ac_fn_c_try_link "$LINENO"
16025 am_cv_lib_iconv=yes
16026 am_cv_func_iconv=yes
16028 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16029 conftest$ac_exeext conftest.$ac_ext
16030 LIBS="$am_save_LIBS"
16034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
16035 printf "%s\n" "$am_cv_func_iconv" >&6; }
16036 if test "$am_cv_func_iconv" = yes; then
16037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
16038 printf %s "checking for working iconv... " >&6; }
16039 if test ${am_cv_func_iconv_works+y}
16041 printf %s "(cached) " >&6
16044 am_save_LIBS="$LIBS"
16045 if test $am_cv_lib_iconv = yes; then
16046 LIBS="$LIBS $LIBICONV"
16048 am_cv_func_iconv_works=no
16049 for ac_iconv_const in '' 'const'; do
16050 if test "$cross_compiling" = yes
16053 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
16054 *) am_cv_func_iconv_works="guessing yes" ;;
16057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16058 /* end confdefs.h. */
16061 #include <string.h>
16063 #ifndef ICONV_CONST
16064 # define ICONV_CONST $ac_iconv_const
16071 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
16074 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
16075 if (cd_utf8_to_88591 != (iconv_t)(-1))
16077 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
16079 ICONV_CONST char *inptr = input;
16080 size_t inbytesleft = strlen (input);
16081 char *outptr = buf;
16082 size_t outbytesleft = sizeof (buf);
16083 size_t res = iconv (cd_utf8_to_88591,
16084 &inptr, &inbytesleft,
16085 &outptr, &outbytesleft);
16088 iconv_close (cd_utf8_to_88591);
16091 /* Test against Solaris 10 bug: Failures are not distinguishable from
16092 successful returns. */
16094 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
16095 if (cd_ascii_to_88591 != (iconv_t)(-1))
16097 static ICONV_CONST char input[] = "\263";
16099 ICONV_CONST char *inptr = input;
16100 size_t inbytesleft = strlen (input);
16101 char *outptr = buf;
16102 size_t outbytesleft = sizeof (buf);
16103 size_t res = iconv (cd_ascii_to_88591,
16104 &inptr, &inbytesleft,
16105 &outptr, &outbytesleft);
16108 iconv_close (cd_ascii_to_88591);
16111 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
16113 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
16114 if (cd_88591_to_utf8 != (iconv_t)(-1))
16116 static ICONV_CONST char input[] = "\304";
16117 static char buf[2] = { (char)0xDE, (char)0xAD };
16118 ICONV_CONST char *inptr = input;
16119 size_t inbytesleft = 1;
16120 char *outptr = buf;
16121 size_t outbytesleft = 1;
16122 size_t res = iconv (cd_88591_to_utf8,
16123 &inptr, &inbytesleft,
16124 &outptr, &outbytesleft);
16125 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
16127 iconv_close (cd_88591_to_utf8);
16130 #if 0 /* This bug could be worked around by the caller. */
16131 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
16133 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
16134 if (cd_88591_to_utf8 != (iconv_t)(-1))
16136 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
16138 ICONV_CONST char *inptr = input;
16139 size_t inbytesleft = strlen (input);
16140 char *outptr = buf;
16141 size_t outbytesleft = sizeof (buf);
16142 size_t res = iconv (cd_88591_to_utf8,
16143 &inptr, &inbytesleft,
16144 &outptr, &outbytesleft);
16147 iconv_close (cd_88591_to_utf8);
16151 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
16153 if (/* Try standardized names. */
16154 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
16155 /* Try IRIX, OSF/1 names. */
16156 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
16157 /* Try AIX names. */
16158 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
16159 /* Try HP-UX names. */
16160 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
16168 if ac_fn_c_try_run "$LINENO"
16170 am_cv_func_iconv_works=yes
16172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16173 conftest.$ac_objext conftest.beam conftest.$ac_ext
16176 test "$am_cv_func_iconv_works" = no || break
16178 LIBS="$am_save_LIBS"
16181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
16182 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
16183 case "$am_cv_func_iconv_works" in
16184 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
16185 *) am_func_iconv=yes ;;
16188 am_func_iconv=no am_cv_lib_iconv=no
16190 if test "$am_func_iconv" = yes; then
16192 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
16195 if test "$am_cv_lib_iconv" = yes; then
16196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16197 printf %s "checking how to link with libiconv... " >&6; }
16198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16199 printf "%s\n" "$LIBICONV" >&6; }
16201 CPPFLAGS="$am_save_CPPFLAGS"
16218 acl_save_prefix="$prefix"
16219 prefix="$acl_final_prefix"
16220 acl_save_exec_prefix="$exec_prefix"
16221 exec_prefix="$acl_final_exec_prefix"
16223 eval additional_includedir=\"$includedir\"
16224 eval additional_libdir=\"$libdir\"
16226 exec_prefix="$acl_save_exec_prefix"
16227 prefix="$acl_save_prefix"
16230 # Check whether --with-libintl-prefix was given.
16231 if test ${with_libintl_prefix+y}
16233 withval=$with_libintl_prefix;
16234 if test "X$withval" = "Xno"; then
16237 if test "X$withval" = "X"; then
16239 acl_save_prefix="$prefix"
16240 prefix="$acl_final_prefix"
16241 acl_save_exec_prefix="$exec_prefix"
16242 exec_prefix="$acl_final_exec_prefix"
16244 eval additional_includedir=\"$includedir\"
16245 eval additional_libdir=\"$libdir\"
16247 exec_prefix="$acl_save_exec_prefix"
16248 prefix="$acl_save_prefix"
16251 additional_includedir="$withval/include"
16252 additional_libdir="$withval/$acl_libdirstem"
16253 if test "$acl_libdirstem2" != "$acl_libdirstem" \
16254 && ! test -d "$withval/$acl_libdirstem"; then
16255 additional_libdir="$withval/$acl_libdirstem2"
16269 names_already_handled=
16270 names_next_round='intl '
16271 while test -n "$names_next_round"; do
16272 names_this_round="$names_next_round"
16274 for name in $names_this_round; do
16276 for n in $names_already_handled; do
16277 if test "$n" = "$name"; then
16278 already_handled=yes
16282 if test -z "$already_handled"; then
16283 names_already_handled="$names_already_handled $name"
16284 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
16285 eval value=\"\$HAVE_LIB$uppername\"
16286 if test -n "$value"; then
16287 if test "$value" = yes; then
16288 eval value=\"\$LIB$uppername\"
16289 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
16290 eval value=\"\$LTLIB$uppername\"
16291 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
16300 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
16301 if test -n "$acl_shlibext"; then
16302 shrext=".$acl_shlibext" # typically: shrext=.so
16306 if test $use_additional = yes; then
16307 dir="$additional_libdir"
16308 if test -n "$acl_shlibext"; then
16309 if test -f "$dir/$libname$shrext"; then
16311 found_so="$dir/$libname$shrext"
16313 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16314 ver=`(cd "$dir" && \
16315 for f in "$libname$shrext".*; do echo "$f"; done \
16316 | sed -e "s,^$libname$shrext\\\\.,," \
16317 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16318 | sed 1q ) 2>/dev/null`
16319 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16321 found_so="$dir/$libname$shrext.$ver"
16324 eval library_names=\"$acl_library_names_spec\"
16325 for f in $library_names; do
16326 if test -f "$dir/$f"; then
16335 if test "X$found_dir" = "X"; then
16336 if test -f "$dir/$libname.$acl_libext"; then
16338 found_a="$dir/$libname.$acl_libext"
16341 if test "X$found_dir" != "X"; then
16342 if test -f "$dir/$libname.la"; then
16343 found_la="$dir/$libname.la"
16347 if test "X$found_dir" = "X"; then
16348 for x in $LDFLAGS $LTLIBINTL; do
16350 acl_save_prefix="$prefix"
16351 prefix="$acl_final_prefix"
16352 acl_save_exec_prefix="$exec_prefix"
16353 exec_prefix="$acl_final_exec_prefix"
16355 exec_prefix="$acl_save_exec_prefix"
16356 prefix="$acl_save_prefix"
16360 dir=`echo "X$x" | sed -e 's/^X-L//'`
16361 if test -n "$acl_shlibext"; then
16362 if test -f "$dir/$libname$shrext"; then
16364 found_so="$dir/$libname$shrext"
16366 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16367 ver=`(cd "$dir" && \
16368 for f in "$libname$shrext".*; do echo "$f"; done \
16369 | sed -e "s,^$libname$shrext\\\\.,," \
16370 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16371 | sed 1q ) 2>/dev/null`
16372 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16374 found_so="$dir/$libname$shrext.$ver"
16377 eval library_names=\"$acl_library_names_spec\"
16378 for f in $library_names; do
16379 if test -f "$dir/$f"; then
16388 if test "X$found_dir" = "X"; then
16389 if test -f "$dir/$libname.$acl_libext"; then
16391 found_a="$dir/$libname.$acl_libext"
16394 if test "X$found_dir" != "X"; then
16395 if test -f "$dir/$libname.la"; then
16396 found_la="$dir/$libname.la"
16401 if test "X$found_dir" != "X"; then
16406 if test "X$found_dir" != "X"; then
16407 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
16408 if test "X$found_so" != "X"; then
16409 if test "$enable_rpath" = no \
16410 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16411 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16412 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16415 for x in $ltrpathdirs; do
16416 if test "X$x" = "X$found_dir"; then
16421 if test -z "$haveit"; then
16422 ltrpathdirs="$ltrpathdirs $found_dir"
16424 if test "$acl_hardcode_direct" = yes; then
16425 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16427 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16428 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16430 for x in $rpathdirs; do
16431 if test "X$x" = "X$found_dir"; then
16436 if test -z "$haveit"; then
16437 rpathdirs="$rpathdirs $found_dir"
16441 for x in $LDFLAGS $LIBINTL; do
16443 acl_save_prefix="$prefix"
16444 prefix="$acl_final_prefix"
16445 acl_save_exec_prefix="$exec_prefix"
16446 exec_prefix="$acl_final_exec_prefix"
16448 exec_prefix="$acl_save_exec_prefix"
16449 prefix="$acl_save_prefix"
16451 if test "X$x" = "X-L$found_dir"; then
16456 if test -z "$haveit"; then
16457 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
16459 if test "$acl_hardcode_minus_L" != no; then
16460 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16462 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16468 if test "X$found_a" != "X"; then
16469 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
16471 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
16474 additional_includedir=
16475 case "$found_dir" in
16476 */$acl_libdirstem | */$acl_libdirstem/)
16477 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16478 if test "$name" = 'intl'; then
16479 LIBINTL_PREFIX="$basedir"
16481 additional_includedir="$basedir/include"
16483 */$acl_libdirstem2 | */$acl_libdirstem2/)
16484 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16485 if test "$name" = 'intl'; then
16486 LIBINTL_PREFIX="$basedir"
16488 additional_includedir="$basedir/include"
16491 if test "X$additional_includedir" != "X"; then
16492 if test "X$additional_includedir" != "X/usr/include"; then
16494 if test "X$additional_includedir" = "X/usr/local/include"; then
16495 if test -n "$GCC"; then
16497 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16501 if test -z "$haveit"; then
16502 for x in $CPPFLAGS $INCINTL; do
16504 acl_save_prefix="$prefix"
16505 prefix="$acl_final_prefix"
16506 acl_save_exec_prefix="$exec_prefix"
16507 exec_prefix="$acl_final_exec_prefix"
16509 exec_prefix="$acl_save_exec_prefix"
16510 prefix="$acl_save_prefix"
16512 if test "X$x" = "X-I$additional_includedir"; then
16517 if test -z "$haveit"; then
16518 if test -d "$additional_includedir"; then
16519 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
16525 if test -n "$found_la"; then
16526 save_libdir="$libdir"
16527 case "$found_la" in
16528 */* | *\\*) . "$found_la" ;;
16529 *) . "./$found_la" ;;
16531 libdir="$save_libdir"
16532 for dep in $dependency_libs; do
16535 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16536 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16537 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16539 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16540 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16541 if test -n "$GCC"; then
16543 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16547 if test -z "$haveit"; then
16549 for x in $LDFLAGS $LIBINTL; do
16551 acl_save_prefix="$prefix"
16552 prefix="$acl_final_prefix"
16553 acl_save_exec_prefix="$exec_prefix"
16554 exec_prefix="$acl_final_exec_prefix"
16556 exec_prefix="$acl_save_exec_prefix"
16557 prefix="$acl_save_prefix"
16559 if test "X$x" = "X-L$additional_libdir"; then
16564 if test -z "$haveit"; then
16565 if test -d "$additional_libdir"; then
16566 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
16570 for x in $LDFLAGS $LTLIBINTL; do
16572 acl_save_prefix="$prefix"
16573 prefix="$acl_final_prefix"
16574 acl_save_exec_prefix="$exec_prefix"
16575 exec_prefix="$acl_final_exec_prefix"
16577 exec_prefix="$acl_save_exec_prefix"
16578 prefix="$acl_save_prefix"
16580 if test "X$x" = "X-L$additional_libdir"; then
16585 if test -z "$haveit"; then
16586 if test -d "$additional_libdir"; then
16587 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
16594 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16595 if test "$enable_rpath" != no; then
16597 for x in $rpathdirs; do
16598 if test "X$x" = "X$dir"; then
16603 if test -z "$haveit"; then
16604 rpathdirs="$rpathdirs $dir"
16607 for x in $ltrpathdirs; do
16608 if test "X$x" = "X$dir"; then
16613 if test -z "$haveit"; then
16614 ltrpathdirs="$ltrpathdirs $dir"
16619 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16622 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16625 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
16626 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
16632 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16633 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
16639 if test "X$rpathdirs" != "X"; then
16640 if test -n "$acl_hardcode_libdir_separator"; then
16642 for found_dir in $rpathdirs; do
16643 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16645 acl_save_libdir="$libdir"
16647 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16648 libdir="$acl_save_libdir"
16649 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16651 for found_dir in $rpathdirs; do
16652 acl_save_libdir="$libdir"
16653 libdir="$found_dir"
16654 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16655 libdir="$acl_save_libdir"
16656 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16660 if test "X$ltrpathdirs" != "X"; then
16661 for found_dir in $ltrpathdirs; do
16662 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
16671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
16672 printf %s "checking for GNU gettext in libintl... " >&6; }
16673 if eval test \${$gt_func_gnugettext_libintl+y}
16675 printf %s "(cached) " >&6
16677 gt_save_CPPFLAGS="$CPPFLAGS"
16678 CPPFLAGS="$CPPFLAGS $INCINTL"
16679 gt_save_LIBS="$LIBS"
16680 LIBS="$LIBS $LIBINTL"
16681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16682 /* end confdefs.h. */
16684 #include <libintl.h>
16685 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
16686 extern int _nl_msg_cat_cntr;
16691 const char *_nl_expand_alias (const char *);
16692 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
16694 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
16696 $gt_revision_test_code
16702 bindtextdomain ("", "");
16703 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
16709 if ac_fn_c_try_link "$LINENO"
16711 eval "$gt_func_gnugettext_libintl=yes"
16713 eval "$gt_func_gnugettext_libintl=no"
16715 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16716 conftest$ac_exeext conftest.$ac_ext
16717 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
16718 LIBS="$LIBS $LIBICONV"
16719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16720 /* end confdefs.h. */
16722 #include <libintl.h>
16723 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
16724 extern int _nl_msg_cat_cntr;
16729 const char *_nl_expand_alias (const char *);
16730 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
16732 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
16734 $gt_revision_test_code
16740 bindtextdomain ("", "");
16741 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
16747 if ac_fn_c_try_link "$LINENO"
16749 LIBINTL="$LIBINTL $LIBICONV"
16750 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16751 eval "$gt_func_gnugettext_libintl=yes"
16754 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16755 conftest$ac_exeext conftest.$ac_ext
16757 CPPFLAGS="$gt_save_CPPFLAGS"
16758 LIBS="$gt_save_LIBS"
16760 eval ac_res=\$$gt_func_gnugettext_libintl
16761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16762 printf "%s\n" "$ac_res" >&6; }
16765 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
16766 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
16767 && test "$PACKAGE" != gettext-runtime \
16768 && test "$PACKAGE" != gettext-tools; }; then
16769 gt_use_preinstalled_gnugettext=yes
16778 if test -n "$INTL_MACOSX_LIBS"; then
16779 if test "$gt_use_preinstalled_gnugettext" = "yes" \
16780 || test "$nls_cv_use_gnu_gettext" = "yes"; then
16781 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
16782 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
16786 if test "$gt_use_preinstalled_gnugettext" = "yes" \
16787 || test "$nls_cv_use_gnu_gettext" = "yes"; then
16789 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
16796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
16797 printf %s "checking whether to use NLS... " >&6; }
16798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16799 printf "%s\n" "$USE_NLS" >&6; }
16800 if test "$USE_NLS" = "yes"; then
16801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
16802 printf %s "checking where the gettext function comes from... " >&6; }
16803 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16804 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16805 gt_source="external libintl"
16810 gt_source="included intl directory"
16812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
16813 printf "%s\n" "$gt_source" >&6; }
16816 if test "$USE_NLS" = "yes"; then
16818 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16819 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
16821 printf %s "checking how to link with libintl... " >&6; }
16822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
16823 printf "%s\n" "$LIBINTL" >&6; }
16825 for element in $INCINTL; do
16827 for x in $CPPFLAGS; do
16829 acl_save_prefix="$prefix"
16830 prefix="$acl_final_prefix"
16831 acl_save_exec_prefix="$exec_prefix"
16832 exec_prefix="$acl_final_exec_prefix"
16834 exec_prefix="$acl_save_exec_prefix"
16835 prefix="$acl_save_prefix"
16837 if test "X$x" = "X$element"; then
16842 if test -z "$haveit"; then
16843 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16850 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
16853 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
16862 INTLLIBS="$LIBINTL"
16871 if test "$os_win32" = "yes"; then
16872 # Extract the first word of "lib.exe", so it can be a program name with args.
16873 set dummy lib.exe; ac_word=$2
16874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16875 printf %s "checking for $ac_word... " >&6; }
16876 if test ${ac_cv_prog_ms_librarian+y}
16878 printf %s "(cached) " >&6
16880 if test -n "$ms_librarian"; then
16881 ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
16883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16884 for as_dir in $PATH
16887 case $as_dir in #(((
16890 *) as_dir=$as_dir/ ;;
16892 for ac_exec_ext in '' $ac_executable_extensions; do
16893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16894 ac_cv_prog_ms_librarian="yes"
16895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16902 test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
16905 ms_librarian=$ac_cv_prog_ms_librarian
16906 if test -n "$ms_librarian"; then
16907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5
16908 printf "%s\n" "$ms_librarian" >&6; }
16910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16911 printf "%s\n" "no" >&6; }
16916 if test x$ms_librarian = xyes; then
16917 MS_LIB_AVAILABLE_TRUE=
16918 MS_LIB_AVAILABLE_FALSE='#'
16920 MS_LIB_AVAILABLE_TRUE='#'
16921 MS_LIB_AVAILABLE_FALSE=
16925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
16926 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
16927 if test ${ac_cv_c_undeclared_builtin_options+y}
16929 printf %s "(cached) " >&6
16931 ac_save_CFLAGS=$CFLAGS
16932 ac_cv_c_undeclared_builtin_options='cannot detect'
16933 for ac_arg in '' -fno-builtin; do
16934 CFLAGS="$ac_save_CFLAGS $ac_arg"
16935 # This test program should *not* compile successfully.
16936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16937 /* end confdefs.h. */
16947 if ac_fn_c_try_compile "$LINENO"
16951 # This test program should compile successfully.
16952 # No library function is consistently available on
16953 # freestanding implementations, so test against a dummy
16954 # declaration. Include always-available headers on the
16955 # off chance that they somehow elicit warnings.
16956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16957 /* end confdefs.h. */
16959 #include <limits.h>
16960 #include <stdarg.h>
16961 #include <stddef.h>
16962 extern void ac_decl (int, char *);
16967 (void) ac_decl (0, (char *) 0);
16974 if ac_fn_c_try_compile "$LINENO"
16976 if test x"$ac_arg" = x
16978 ac_cv_c_undeclared_builtin_options='none needed'
16980 ac_cv_c_undeclared_builtin_options=$ac_arg
16984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16988 CFLAGS=$ac_save_CFLAGS
16991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
16992 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
16993 case $ac_cv_c_undeclared_builtin_options in #(
16995 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16996 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16997 as_fn_error $? "cannot make $CC report undeclared builtins
16998 See \`config.log' for more details" "$LINENO" 5; } ;; #(
17000 ac_c_undeclared_builtin_options='' ;; #(
17002 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
17005 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
17006 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
17013 WARNING_CPP_DIRECTIVE="no"
17014 if test "x$GCC" = "xyes"; then
17015 WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
17016 -Wmissing-prototypes -Wmissing-declarations \
17017 -Wnested-externs -fno-strict-aliasing"
17018 WARNING_CPP_DIRECTIVE="yes"
17019 elif test "x$SUNCC" = "xyes"; then
17020 WARN_CFLAGS="-v -fd"
17021 WARNING_CPP_DIRECTIVE="yes"
17023 if test "x$WARNING_CPP_DIRECTIVE" = "xyes"; then
17025 printf "%s\n" "#define HAVE_WARNING_CPP_DIRECTIVE 1" >>confdefs.h
17032 # Put a plausible default for CC_FOR_BUILD in Makefile.
17033 if test -z "$CC_FOR_BUILD"; then
17034 if test "x$cross_compiling" = "xno"; then
17035 CC_FOR_BUILD='$(CC)'
17041 # Also set EXEEXT_FOR_BUILD.
17042 if test "x$cross_compiling" = "xno"; then
17043 EXEEXT_FOR_BUILD='$(EXEEXT)'
17045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
17046 printf %s "checking for build system executable suffix... " >&6; }
17047 if test ${bfd_cv_build_exeext+y}
17049 printf %s "(cached) " >&6
17052 echo 'int main () { return 0; }' > conftest.c
17053 bfd_cv_build_exeext=
17054 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
17055 for file in conftest.*; do
17057 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
17058 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
17062 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
17064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
17065 printf "%s\n" "$bfd_cv_build_exeext" >&6; }
17066 EXEEXT_FOR_BUILD=""
17067 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
17071 if test $cross_compiling = yes; then
17072 CROSS_COMPILING_TRUE=
17073 CROSS_COMPILING_FALSE='#'
17075 CROSS_COMPILING_TRUE='#'
17076 CROSS_COMPILING_FALSE=
17079 if test "$enable_shared" = "yes"; then
17080 ENABLE_SHARED_TRUE=
17081 ENABLE_SHARED_FALSE='#'
17083 ENABLE_SHARED_TRUE='#'
17084 ENABLE_SHARED_FALSE=
17090 # Check whether --with-arch was given.
17091 if test ${with_arch+y}
17093 withval=$with_arch; arch="$withval"
17099 if test "x$arch" != xauto; then
17101 printf "%s\n" "#define FC_ARCHITECTURE \"$arch\"" >>confdefs.h
17107 # Checks for header files.
17108 ac_header_dirent=no
17109 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17110 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
17112 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
17113 if eval test \${$as_ac_Header+y}
17115 printf %s "(cached) " >&6
17117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17118 /* end confdefs.h. */
17119 #include <sys/types.h>
17131 if ac_fn_c_try_compile "$LINENO"
17133 eval "$as_ac_Header=yes"
17135 eval "$as_ac_Header=no"
17137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17139 eval ac_res=\$$as_ac_Header
17140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17141 printf "%s\n" "$ac_res" >&6; }
17142 if eval test \"x\$"$as_ac_Header"\" = x"yes"
17144 cat >>confdefs.h <<_ACEOF
17145 #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
17148 ac_header_dirent=$ac_hdr; break
17152 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17153 if test $ac_header_dirent = dirent.h; then
17154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17155 printf %s "checking for library containing opendir... " >&6; }
17156 if test ${ac_cv_search_opendir+y}
17158 printf %s "(cached) " >&6
17160 ac_func_search_save_LIBS=$LIBS
17161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17162 /* end confdefs.h. */
17164 /* Override any GCC internal prototype to avoid an error.
17165 Use char because int might match the return type of a GCC
17166 builtin and then its argument prototype would still apply. */
17176 for ac_lib in '' dir
17178 if test -z "$ac_lib"; then
17179 ac_res="none required"
17182 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17184 if ac_fn_c_try_link "$LINENO"
17186 ac_cv_search_opendir=$ac_res
17188 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17190 if test ${ac_cv_search_opendir+y}
17195 if test ${ac_cv_search_opendir+y}
17199 ac_cv_search_opendir=no
17201 rm conftest.$ac_ext
17202 LIBS=$ac_func_search_save_LIBS
17204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17205 printf "%s\n" "$ac_cv_search_opendir" >&6; }
17206 ac_res=$ac_cv_search_opendir
17207 if test "$ac_res" != no
17209 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17215 printf %s "checking for library containing opendir... " >&6; }
17216 if test ${ac_cv_search_opendir+y}
17218 printf %s "(cached) " >&6
17220 ac_func_search_save_LIBS=$LIBS
17221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17222 /* end confdefs.h. */
17224 /* Override any GCC internal prototype to avoid an error.
17225 Use char because int might match the return type of a GCC
17226 builtin and then its argument prototype would still apply. */
17238 if test -z "$ac_lib"; then
17239 ac_res="none required"
17242 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17244 if ac_fn_c_try_link "$LINENO"
17246 ac_cv_search_opendir=$ac_res
17248 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17250 if test ${ac_cv_search_opendir+y}
17255 if test ${ac_cv_search_opendir+y}
17259 ac_cv_search_opendir=no
17261 rm conftest.$ac_ext
17262 LIBS=$ac_func_search_save_LIBS
17264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17265 printf "%s\n" "$ac_cv_search_opendir" >&6; }
17266 ac_res=$ac_cv_search_opendir
17267 if test "$ac_res" != no
17269 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17275 # Autoupdate added the next two lines to ensure that your configure
17276 # script's behavior did not change. They are probably safe to remove.
17278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
17279 printf %s "checking for egrep... " >&6; }
17280 if test ${ac_cv_path_EGREP+y}
17282 printf %s "(cached) " >&6
17284 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
17285 then ac_cv_path_EGREP="$GREP -E"
17287 if test -z "$EGREP"; then
17288 ac_path_EGREP_found=false
17289 # Loop through the user's path and test for each of PROGNAME-LIST
17290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17291 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17294 case $as_dir in #(((
17297 *) as_dir=$as_dir/ ;;
17299 for ac_prog in egrep
17301 for ac_exec_ext in '' $ac_executable_extensions; do
17302 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
17303 as_fn_executable_p "$ac_path_EGREP" || continue
17304 # Check for GNU ac_path_EGREP and select it if it is found.
17305 # Check for GNU $ac_path_EGREP
17306 case `"$ac_path_EGREP" --version 2>&1` in
17308 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
17311 printf %s 0123456789 >"conftest.in"
17314 cat "conftest.in" "conftest.in" >"conftest.tmp"
17315 mv "conftest.tmp" "conftest.in"
17316 cp "conftest.in" "conftest.nl"
17317 printf "%s\n" 'EGREP' >> "conftest.nl"
17318 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17319 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17320 as_fn_arith $ac_count + 1 && ac_count=$as_val
17321 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
17322 # Best one so far, save it but keep looking for a better one
17323 ac_cv_path_EGREP="$ac_path_EGREP"
17324 ac_path_EGREP_max=$ac_count
17326 # 10*(2^10) chars as input seems more than enough
17327 test $ac_count -gt 10 && break
17329 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17332 $ac_path_EGREP_found && break 3
17337 if test -z "$ac_cv_path_EGREP"; then
17338 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
17341 ac_cv_path_EGREP=$EGREP
17346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
17347 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
17348 EGREP="$ac_cv_path_EGREP"
17352 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
17353 if test "x$ac_cv_header_dirent_h" = xyes
17355 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
17358 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
17359 if test "x$ac_cv_header_fcntl_h" = xyes
17361 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
17364 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
17365 if test "x$ac_cv_header_stdlib_h" = xyes
17367 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
17370 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
17371 if test "x$ac_cv_header_string_h" = xyes
17373 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
17376 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
17377 if test "x$ac_cv_header_unistd_h" = xyes
17379 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
17382 ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
17383 if test "x$ac_cv_header_sys_statvfs_h" = xyes
17385 printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
17388 ac_fn_c_check_header_compile "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
17389 if test "x$ac_cv_header_sys_vfs_h" = xyes
17391 printf "%s\n" "#define HAVE_SYS_VFS_H 1" >>confdefs.h
17394 ac_fn_c_check_header_compile "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
17395 if test "x$ac_cv_header_sys_statfs_h" = xyes
17397 printf "%s\n" "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
17400 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
17401 if test "x$ac_cv_header_sys_param_h" = xyes
17403 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
17406 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
17407 if test "x$ac_cv_header_sys_mount_h" = xyes
17409 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
17413 # ------ AX CREATE STDINT H -------------------------------------
17414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
17415 printf %s "checking for stdint types... " >&6; }
17416 ac_stdint_h=`echo src/fcstdint.h`
17417 # try to shortcircuit - if the default include path of the compiler
17418 # can find a "stdint.h" header then we assume that all compilers can.
17419 if test ${ac_cv_header_stdint_t+y}
17421 printf %s "(cached) " >&6
17424 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
17425 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
17426 old_CFLAGS="$CFLAGS" ; CFLAGS=""
17427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17428 /* end confdefs.h. */
17429 #include <stdint.h>
17433 int_least32_t v = 0;
17438 if ac_fn_c_try_compile "$LINENO"
17440 ac_cv_stdint_result="(assuming C99 compatible system)"
17441 ac_cv_header_stdint_t="stdint.h";
17443 ac_cv_header_stdint_t=""
17445 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17446 if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
17448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17449 /* end confdefs.h. */
17450 #include <stdint.h>
17454 int_least32_t v = 0;
17459 if ac_fn_c_try_compile "$LINENO"
17461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5
17462 printf "%s\n" "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;}
17464 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17466 CXXFLAGS="$old_CXXFLAGS"
17467 CPPFLAGS="$old_CPPFLAGS"
17468 CFLAGS="$old_CFLAGS"
17472 v="... $ac_cv_header_stdint_h"
17473 if test "$ac_stdint_h" = "stdint.h" ; then
17474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
17475 printf "%s\n" "(are you sure you want them in ./stdint.h?)" >&6; }
17476 elif test "$ac_stdint_h" = "inttypes.h" ; then
17477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
17478 printf "%s\n" "(are you sure you want them in ./inttypes.h?)" >&6; }
17479 elif test "_$ac_cv_header_stdint_t" = "_" ; then
17480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
17481 printf "%s\n" "(putting them into $ac_stdint_h)$v" >&6; }
17483 ac_cv_header_stdint="$ac_cv_header_stdint_t"
17484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
17485 printf "%s\n" "$ac_cv_header_stdint (shortcircuit)" >&6; }
17488 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
17491 inttype_headers=`echo | sed -e 's/,/ /g'`
17493 ac_cv_stdint_result="(no helpful system typedefs seen)"
17495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
17496 printf %s "checking for stdint uintptr_t... " >&6; }
17497 if test ${ac_cv_header_stdint_x+y}
17499 printf %s "(cached) " >&6
17502 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
17503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
17504 printf "%s\n" "(..)" >&6; }
17505 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers
17507 unset ac_cv_type_uintptr_t
17508 unset ac_cv_type_uint64_t
17509 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
17511 if test "x$ac_cv_type_uintptr_t" = xyes
17513 ac_cv_header_stdint_x=$i
17518 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
17520 if test "x$ac_cv_type_uint64_t" = xyes
17527 ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
17530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
17531 printf %s "checking for stdint uintptr_t... " >&6; }
17534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
17535 printf "%s\n" "$ac_cv_header_stdint_x" >&6; }
17538 if test "_$ac_cv_header_stdint_x" = "_" ; then
17540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
17541 printf %s "checking for stdint uint32_t... " >&6; }
17542 if test ${ac_cv_header_stdint_o+y}
17544 printf %s "(cached) " >&6
17547 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
17548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
17549 printf "%s\n" "(..)" >&6; }
17550 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers
17552 unset ac_cv_type_uint32_t
17553 unset ac_cv_type_uint64_t
17554 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
17556 if test "x$ac_cv_type_uint32_t" = xyes
17558 ac_cv_header_stdint_o=$i
17563 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
17565 if test "x$ac_cv_type_uint64_t" = xyes
17572 ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
17576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
17577 printf %s "checking for stdint uint32_t... " >&6; }
17580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
17581 printf "%s\n" "$ac_cv_header_stdint_o" >&6; }
17585 if test "_$ac_cv_header_stdint_x" = "_" ; then
17586 if test "_$ac_cv_header_stdint_o" = "_" ; then
17588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
17589 printf %s "checking for stdint u_int32_t... " >&6; }
17590 if test ${ac_cv_header_stdint_u+y}
17592 printf %s "(cached) " >&6
17595 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
17596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
17597 printf "%s\n" "(..)" >&6; }
17598 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
17599 unset ac_cv_type_u_int32_t
17600 unset ac_cv_type_u_int64_t
17601 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
17603 if test "x$ac_cv_type_u_int32_t" = xyes
17605 ac_cv_header_stdint_u=$i
17610 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
17612 if test "x$ac_cv_type_u_int64_t" = xyes
17619 ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
17623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
17624 printf %s "checking for stdint u_int32_t... " >&6; }
17627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
17628 printf "%s\n" "$ac_cv_header_stdint_u" >&6; }
17632 if test "_$ac_cv_header_stdint_x" = "_" ; then
17633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
17634 printf %s "checking for stdint datatype model... " >&6; }
17635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
17636 printf "%s\n" "(..)" >&6; }
17638 # The cast to long int works around a bug in the HP C Compiler
17639 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17640 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17641 # This bug is HP SR number 8606223364.
17642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
17643 printf %s "checking size of char... " >&6; }
17644 if test ${ac_cv_sizeof_char+y}
17646 printf %s "(cached) " >&6
17648 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"
17652 if test "$ac_cv_type_char" = yes; then
17653 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17654 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17655 as_fn_error 77 "cannot compute sizeof (char)
17656 See \`config.log' for more details" "$LINENO" 5; }
17658 ac_cv_sizeof_char=0
17663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
17664 printf "%s\n" "$ac_cv_sizeof_char" >&6; }
17668 printf "%s\n" "#define SIZEOF_CHAR $ac_cv_sizeof_char" >>confdefs.h
17671 # The cast to long int works around a bug in the HP C Compiler
17672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17674 # This bug is HP SR number 8606223364.
17675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
17676 printf %s "checking size of short... " >&6; }
17677 if test ${ac_cv_sizeof_short+y}
17679 printf %s "(cached) " >&6
17681 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
17685 if test "$ac_cv_type_short" = yes; then
17686 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17687 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17688 as_fn_error 77 "cannot compute sizeof (short)
17689 See \`config.log' for more details" "$LINENO" 5; }
17691 ac_cv_sizeof_short=0
17696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
17697 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
17701 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
17704 # The cast to long int works around a bug in the HP C Compiler
17705 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17706 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17707 # This bug is HP SR number 8606223364.
17708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
17709 printf %s "checking size of int... " >&6; }
17710 if test ${ac_cv_sizeof_int+y}
17712 printf %s "(cached) " >&6
17714 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
17718 if test "$ac_cv_type_int" = yes; then
17719 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17720 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17721 as_fn_error 77 "cannot compute sizeof (int)
17722 See \`config.log' for more details" "$LINENO" 5; }
17729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
17730 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
17734 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
17737 # The cast to long int works around a bug in the HP C Compiler
17738 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17739 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17740 # This bug is HP SR number 8606223364.
17741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
17742 printf %s "checking size of long... " >&6; }
17743 if test ${ac_cv_sizeof_long+y}
17745 printf %s "(cached) " >&6
17747 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
17751 if test "$ac_cv_type_long" = yes; then
17752 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17753 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17754 as_fn_error 77 "cannot compute sizeof (long)
17755 See \`config.log' for more details" "$LINENO" 5; }
17757 ac_cv_sizeof_long=0
17762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
17763 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
17767 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
17770 # The cast to long int works around a bug in the HP C Compiler
17771 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17772 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17773 # This bug is HP SR number 8606223364.
17774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
17775 printf %s "checking size of void*... " >&6; }
17776 if test ${ac_cv_sizeof_voidp+y}
17778 printf %s "(cached) " >&6
17780 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"
17784 if test "$ac_cv_type_voidp" = yes; then
17785 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17786 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17787 as_fn_error 77 "cannot compute sizeof (void*)
17788 See \`config.log' for more details" "$LINENO" 5; }
17790 ac_cv_sizeof_voidp=0
17795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
17796 printf "%s\n" "$ac_cv_sizeof_voidp" >&6; }
17800 printf "%s\n" "#define SIZEOF_VOIDP $ac_cv_sizeof_voidp" >>confdefs.h
17803 ac_cv_char_data_model=""
17804 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
17805 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
17806 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
17807 ac_cv_long_data_model=""
17808 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
17809 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
17810 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
17811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking data model" >&5
17812 printf %s "checking data model... " >&6; }
17813 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
17814 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
17815 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
17816 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
17817 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
17818 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
17819 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
17820 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
17821 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
17822 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
17823 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
17824 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
17825 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
17826 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
17827 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
17828 222/*|333/*|444/*|666/*|888/*) :
17829 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
17830 *) ac_cv_data_model="none" ; n="very unusual model" ;;
17832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
17833 printf "%s\n" "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
17837 if test "_$ac_cv_header_stdint_x" != "_" ; then
17838 ac_cv_header_stdint="$ac_cv_header_stdint_x"
17839 elif test "_$ac_cv_header_stdint_o" != "_" ; then
17840 ac_cv_header_stdint="$ac_cv_header_stdint_o"
17841 elif test "_$ac_cv_header_stdint_u" != "_" ; then
17842 ac_cv_header_stdint="$ac_cv_header_stdint_u"
17844 ac_cv_header_stdint="stddef.h"
17847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
17848 printf %s "checking for extra inttypes in chosen header... " >&6; }
17849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
17850 printf "%s\n" "($ac_cv_header_stdint)" >&6; }
17851 unset ac_cv_type_int_least32_t
17852 unset ac_cv_type_int_fast32_t
17853 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
17855 if test "x$ac_cv_type_int_least32_t" = xyes
17860 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
17862 if test "x$ac_cv_type_int_fast32_t" = xyes
17867 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
17869 if test "x$ac_cv_type_intmax_t" = xyes
17875 fi # shortcircut to system "stdint.h"
17876 # ------------------ PREPARE VARIABLES ------------------------------
17877 if test "$GCC" = "yes" ; then
17878 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
17880 ac_cv_stdint_message="using $CC"
17883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
17884 printf "%s\n" "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
17886 # ----------------- DONE inttypes.h checks START header -------------
17887 ac_config_commands="$ac_config_commands $ac_stdint_h"
17891 # Checks for typedefs, structures, and compiler characteristics.
17892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17893 printf %s "checking for an ANSI C-conforming const... " >&6; }
17894 if test ${ac_cv_c_const+y}
17896 printf %s "(cached) " >&6
17898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17899 /* end confdefs.h. */
17905 #ifndef __cplusplus
17906 /* Ultrix mips cc rejects this sort of thing. */
17907 typedef int charset[2];
17908 const charset cs = { 0, 0 };
17909 /* SunOS 4.1.1 cc rejects this. */
17910 char const *const *pcpcc;
17912 /* NEC SVR4.0.2 mips cc rejects this. */
17913 struct point {int x, y;};
17914 static struct point const zero = {0,0};
17915 /* IBM XL C 1.02.0.0 rejects this.
17916 It does not let you subtract one const X* pointer from another in
17917 an arm of an if-expression whose if-part is not a constant
17919 const char *g = "string";
17920 pcpcc = &g + (g ? g-g : 0);
17921 /* HPUX 7.0 cc rejects these. */
17923 ppc = (char**) pcpcc;
17924 pcpcc = (char const *const *) ppc;
17925 { /* SCO 3.2v4 cc rejects this sort of thing. */
17928 char const *s = 0 ? (char *) 0 : (char const *) 0;
17933 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17934 int x[] = {25, 17};
17935 const int *foo = &x[0];
17938 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17939 typedef const int *iptr;
17943 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
17944 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17945 struct s { int j; const int *ap[3]; } bx;
17946 struct s *b = &bx; b->j = 5;
17948 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17949 const int foo = 10;
17950 if (!foo) return 0;
17952 return !cs[0] && !zero.x;
17959 if ac_fn_c_try_compile "$LINENO"
17965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17968 printf "%s\n" "$ac_cv_c_const" >&6; }
17969 if test $ac_cv_c_const = no; then
17971 printf "%s\n" "#define const /**/" >>confdefs.h
17975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17976 printf %s "checking for inline... " >&6; }
17977 if test ${ac_cv_c_inline+y}
17979 printf %s "(cached) " >&6
17982 for ac_kw in inline __inline__ __inline; do
17983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17984 /* end confdefs.h. */
17985 #ifndef __cplusplus
17987 static $ac_kw foo_t static_foo (void) {return 0; }
17988 $ac_kw foo_t foo (void) {return 0; }
17992 if ac_fn_c_try_compile "$LINENO"
17994 ac_cv_c_inline=$ac_kw
17996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17997 test "$ac_cv_c_inline" != no && break
18001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18002 printf "%s\n" "$ac_cv_c_inline" >&6; }
18004 case $ac_cv_c_inline in
18007 case $ac_cv_c_inline in
18009 *) ac_val=$ac_cv_c_inline;;
18011 cat >>confdefs.h <<_ACEOF
18012 #ifndef __cplusplus
18013 #define inline $ac_val
18020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
18021 printf %s "checking for flexible array members... " >&6; }
18022 if test ${ac_cv_c_flexmember+y}
18024 printf %s "(cached) " >&6
18026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18027 /* end confdefs.h. */
18028 #include <stdlib.h>
18030 #include <stddef.h>
18031 struct s { int n; double d[]; };
18035 int m = getchar ();
18036 struct s *p = (struct s *) malloc (offsetof (struct s, d)
18037 + m * sizeof (double));
18039 return p->d != (double *) NULL;
18044 if ac_fn_c_try_compile "$LINENO"
18046 ac_cv_c_flexmember=yes
18048 ac_cv_c_flexmember=no
18050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
18053 printf "%s\n" "$ac_cv_c_flexmember" >&6; }
18054 if test $ac_cv_c_flexmember = yes; then
18056 printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
18059 printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
18064 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
18066 if test "x$ac_cv_type_pid_t" = xyes
18070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18071 /* end confdefs.h. */
18073 #if defined _WIN64 && !defined __CYGWIN__
18086 if ac_fn_c_try_compile "$LINENO"
18090 ac_pid_type='__int64'
18092 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18094 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
18101 # Checks for library functions.
18103 for ac_item in $ac_func_c_list
18105 if test $ac_func; then
18106 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
18107 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
18108 echo "#define $ac_item 1" >> confdefs.h
18116 if test "x$ac_cv_func_vprintf" = xno
18118 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
18119 if test "x$ac_cv_func__doprnt" = xyes
18122 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
18131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18132 printf %s "checking for working mmap... " >&6; }
18133 if test ${ac_cv_func_mmap_fixed_mapped+y}
18135 printf %s "(cached) " >&6
18137 if test "$cross_compiling" = yes
18139 case "$host_os" in # ((
18140 # Guess yes on platforms where we know the result.
18141 linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
18142 # If we don't know, assume the worst.
18143 *) ac_cv_func_mmap_fixed_mapped=no ;;
18146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18147 /* end confdefs.h. */
18148 $ac_includes_default
18149 /* malloc might have been renamed as rpl_malloc. */
18152 /* Thanks to Mike Haertel and Jim Avera for this test.
18153 Here is a matrix of mmap possibilities:
18154 mmap private not fixed
18155 mmap private fixed at somewhere currently unmapped
18156 mmap private fixed at somewhere already mapped
18157 mmap shared not fixed
18158 mmap shared fixed at somewhere currently unmapped
18159 mmap shared fixed at somewhere already mapped
18160 For private mappings, we should verify that changes cannot be read()
18161 back from the file, nor mmap's back from the file at a different
18162 address. (There have been systems where private was not correctly
18163 implemented like the infamous i386 svr4.0, and systems where the
18164 VM page cache was not coherent with the file system buffer cache
18165 like early versions of FreeBSD and possibly contemporary NetBSD.)
18166 For shared mappings, we should conversely verify that changes get
18167 propagated back to all the places they're supposed to be.
18169 Grep wants private fixed already mapped.
18170 The main things grep needs to know about mmap are:
18171 * does it exist and is it safe to write into the mmap'd area
18172 * how to use it (BSD variants) */
18175 #include <sys/mman.h>
18177 /* This mess was copied from the GNU getpagesize.h. */
18178 #ifndef HAVE_GETPAGESIZE
18179 # ifdef _SC_PAGESIZE
18180 # define getpagesize() sysconf(_SC_PAGESIZE)
18181 # else /* no _SC_PAGESIZE */
18182 # ifdef HAVE_SYS_PARAM_H
18183 # include <sys/param.h>
18184 # ifdef EXEC_PAGESIZE
18185 # define getpagesize() EXEC_PAGESIZE
18186 # else /* no EXEC_PAGESIZE */
18188 # define getpagesize() NBPG * CLSIZE
18191 # endif /* no CLSIZE */
18192 # else /* no NBPG */
18194 # define getpagesize() NBPC
18195 # else /* no NBPC */
18197 # define getpagesize() PAGESIZE
18198 # endif /* PAGESIZE */
18199 # endif /* no NBPC */
18200 # endif /* no NBPG */
18201 # endif /* no EXEC_PAGESIZE */
18202 # else /* no HAVE_SYS_PARAM_H */
18203 # define getpagesize() 8192 /* punt totally */
18204 # endif /* no HAVE_SYS_PARAM_H */
18205 # endif /* no _SC_PAGESIZE */
18207 #endif /* no HAVE_GETPAGESIZE */
18212 char *data, *data2, *data3;
18213 const char *cdata2;
18217 pagesize = getpagesize ();
18219 /* First, make a file with some known garbage in it. */
18220 data = (char *) malloc (pagesize);
18223 for (i = 0; i < pagesize; ++i)
18224 *(data + i) = rand ();
18226 fd = creat ("conftest.mmap", 0600);
18229 if (write (fd, data, pagesize) != pagesize)
18233 /* Next, check that the tail of a page is zero-filled. File must have
18234 non-zero length, otherwise we risk SIGBUS for entire page. */
18235 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18239 if (write (fd2, cdata2, 1) != 1)
18241 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18242 if (data2 == MAP_FAILED)
18244 for (i = 0; i < pagesize; ++i)
18248 if (munmap (data2, pagesize))
18251 /* Next, try to mmap the file at a fixed address which already has
18252 something else allocated at it. If we can, also make sure that
18253 we see the same garbage. */
18254 fd = open ("conftest.mmap", O_RDWR);
18257 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18258 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18260 for (i = 0; i < pagesize; ++i)
18261 if (*(data + i) != *(data2 + i))
18264 /* Finally, make sure that changes to the mapped area do not
18265 percolate back to the file as seen by read(). (This is a bug on
18266 some variants of i386 svr4.0.) */
18267 for (i = 0; i < pagesize; ++i)
18268 *(data2 + i) = *(data2 + i) + 1;
18269 data3 = (char *) malloc (pagesize);
18272 if (read (fd, data3, pagesize) != pagesize)
18274 for (i = 0; i < pagesize; ++i)
18275 if (*(data + i) != *(data3 + i))
18283 if ac_fn_c_try_run "$LINENO"
18285 ac_cv_func_mmap_fixed_mapped=yes
18287 ac_cv_func_mmap_fixed_mapped=no
18289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18290 conftest.$ac_objext conftest.beam conftest.$ac_ext
18294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18295 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
18296 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18298 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
18301 rm -f conftest.mmap conftest.txt
18303 ac_fn_c_check_func "$LINENO" "link" "ac_cv_func_link"
18304 if test "x$ac_cv_func_link" = xyes
18306 printf "%s\n" "#define HAVE_LINK 1" >>confdefs.h
18309 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
18310 if test "x$ac_cv_func_mkstemp" = xyes
18312 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
18315 ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp"
18316 if test "x$ac_cv_func_mkostemp" = xyes
18318 printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h
18321 ac_fn_c_check_func "$LINENO" "_mktemp_s" "ac_cv_func__mktemp_s"
18322 if test "x$ac_cv_func__mktemp_s" = xyes
18324 printf "%s\n" "#define HAVE__MKTEMP_S 1" >>confdefs.h
18327 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
18328 if test "x$ac_cv_func_mkdtemp" = xyes
18330 printf "%s\n" "#define HAVE_MKDTEMP 1" >>confdefs.h
18333 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
18334 if test "x$ac_cv_func_getopt" = xyes
18336 printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h
18339 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
18340 if test "x$ac_cv_func_getopt_long" = xyes
18342 printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
18345 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
18346 if test "x$ac_cv_func_getprogname" = xyes
18348 printf "%s\n" "#define HAVE_GETPROGNAME 1" >>confdefs.h
18351 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
18352 if test "x$ac_cv_func_getexecname" = xyes
18354 printf "%s\n" "#define HAVE_GETEXECNAME 1" >>confdefs.h
18357 ac_fn_c_check_func "$LINENO" "rand" "ac_cv_func_rand"
18358 if test "x$ac_cv_func_rand" = xyes
18360 printf "%s\n" "#define HAVE_RAND 1" >>confdefs.h
18363 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
18364 if test "x$ac_cv_func_random" = xyes
18366 printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h
18369 ac_fn_c_check_func "$LINENO" "lrand48" "ac_cv_func_lrand48"
18370 if test "x$ac_cv_func_lrand48" = xyes
18372 printf "%s\n" "#define HAVE_LRAND48 1" >>confdefs.h
18375 ac_fn_c_check_func "$LINENO" "random_r" "ac_cv_func_random_r"
18376 if test "x$ac_cv_func_random_r" = xyes
18378 printf "%s\n" "#define HAVE_RANDOM_R 1" >>confdefs.h
18381 ac_fn_c_check_func "$LINENO" "rand_r" "ac_cv_func_rand_r"
18382 if test "x$ac_cv_func_rand_r" = xyes
18384 printf "%s\n" "#define HAVE_RAND_R 1" >>confdefs.h
18387 ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
18388 if test "x$ac_cv_func_readlink" = xyes
18390 printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h
18393 ac_fn_c_check_func "$LINENO" "fstatvfs" "ac_cv_func_fstatvfs"
18394 if test "x$ac_cv_func_fstatvfs" = xyes
18396 printf "%s\n" "#define HAVE_FSTATVFS 1" >>confdefs.h
18399 ac_fn_c_check_func "$LINENO" "fstatfs" "ac_cv_func_fstatfs"
18400 if test "x$ac_cv_func_fstatfs" = xyes
18402 printf "%s\n" "#define HAVE_FSTATFS 1" >>confdefs.h
18405 ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
18406 if test "x$ac_cv_func_lstat" = xyes
18408 printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
18411 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
18412 if test "x$ac_cv_func_strerror" = xyes
18414 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
18417 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
18418 if test "x$ac_cv_func_strerror_r" = xyes
18420 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
18425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise in fcntl.h" >&5
18426 printf %s "checking for posix_fadvise in fcntl.h... " >&6; }
18427 if test ${ac_cv_func_posix_fadvise+y}
18429 printf %s "(cached) " >&6
18431 symbol="[^a-zA-Z_0-9]posix_fadvise[^a-zA-Z_0-9]"
18433 for ac_header in fcntl.h ; do
18434 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%' `
18435 if test $ac_found != "yes" ; then
18436 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18438 /* end confdefs.h. */
18439 #include <$ac_header>
18442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18443 $EGREP "$symbol" >/dev/null 2>&1
18445 ac_found="$ac_header"
18452 if test "$ac_found" != "no" ; then
18453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_found" >&5
18454 printf "%s\n" "$ac_found" >&6; }
18455 fc_func_posix_fadvise=1
18457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18458 printf "%s\n" "no" >&6; }
18459 fc_func_posix_fadvise=0
18465 printf "%s\n" "#define HAVE_POSIX_FADVISE $fc_func_posix_fadvise" >>confdefs.h
18469 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "#include <sys/stat.h>
18471 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
18474 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
18481 if test "x$ac_cv_func_fstatvfs" = "xyes"; then
18482 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "#include <sys/statvfs.h>
18484 if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes
18487 printf "%s\n" "#define HAVE_STRUCT_STATVFS_F_BASETYPE 1" >>confdefs.h
18491 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "#include <sys/statvfs.h>
18493 if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes
18496 printf "%s\n" "#define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1" >>confdefs.h
18502 if test "x$ac_cv_func_fstatfs" = "xyes"; then
18503 ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" "
18504 #ifdef HAVE_SYS_VFS_H
18505 #include <sys/vfs.h>
18507 #ifdef HAVE_SYS_STATFS_H
18508 #include <sys/statfs.h>
18510 #ifdef HAVE_SYS_PARAM_H
18511 #include <sys/param.h>
18513 #ifdef HAVE_SYS_MOUNT_H
18514 #include <sys/mount.h>
18517 if test "x$ac_cv_member_struct_statfs_f_flags" = xyes
18520 printf "%s\n" "#define HAVE_STRUCT_STATFS_F_FLAGS 1" >>confdefs.h
18524 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "
18525 #ifdef HAVE_SYS_VFS_H
18526 #include <sys/vfs.h>
18528 #ifdef HAVE_SYS_STATFS_H
18529 #include <sys/statfs.h>
18531 #ifdef HAVE_SYS_PARAM_H
18532 #include <sys/param.h>
18534 #ifdef HAVE_SYS_MOUNT_H
18535 #include <sys/mount.h>
18538 if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes
18541 printf "%s\n" "#define HAVE_STRUCT_STATFS_F_FSTYPENAME 1" >>confdefs.h
18547 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "#include <dirent.h>
18549 if test "x$ac_cv_member_struct_dirent_d_type" = xyes
18552 printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
18558 # Check the argument type of the gperf hash/lookup function
18559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking The type of len parameter of gperf hash/lookup function" >&5
18560 printf %s "checking The type of len parameter of gperf hash/lookup function... " >&6; }
18561 fc_gperf_test="$(echo 'foo' | gperf -L ANSI-C)"
18562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18563 /* end confdefs.h. */
18565 #include <string.h>
18567 const char *in_word_set(register const char *, register size_t);
18578 if ac_fn_c_try_compile "$LINENO"
18580 FC_GPERF_SIZE_T=size_t
18582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18583 /* end confdefs.h. */
18585 #include <string.h>
18587 const char *in_word_set(register const char *, register unsigned int);
18598 if ac_fn_c_try_compile "$LINENO"
18600 FC_GPERF_SIZE_T="unsigned int"
18602 as_fn_error $? "Unable to determine the type of the len parameter of the gperf hash/lookup function" "$LINENO" 5
18605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18609 printf "%s\n" "#define FC_GPERF_SIZE_T $FC_GPERF_SIZE_T" >>confdefs.h
18611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FC_GPERF_SIZE_T" >&5
18612 printf "%s\n" "$FC_GPERF_SIZE_T" >&6; }
18617 # Check whether --enable-iconv was given.
18618 if test ${enable_iconv+y}
18620 enableval=$enable_iconv;
18626 # Check whether --with-libiconv was given.
18627 if test ${with_libiconv+y}
18629 withval=$with_libiconv; if test "x$withval" = "xyes"; then
18630 libiconv_prefix=$prefix
18632 libiconv_prefix=$withval
18635 libiconv_prefix=auto
18639 # Check whether --with-libiconv-includes was given.
18640 if test ${with_libiconv_includes+y}
18642 withval=$with_libiconv_includes; libiconv_includes=$withval
18644 libiconv_includes=auto
18648 # Check whether --with-libiconv-lib was given.
18649 if test ${with_libiconv_lib+y}
18651 withval=$with_libiconv_lib; libiconv_lib=$withval
18657 # if no libiconv,libiconv-includes,libiconv-lib are specified,
18658 # libc's iconv has a priority.
18659 if test "$libiconv_includes" != "auto" -a -r ${libiconv_includes}/iconv.h; then
18660 libiconv_cflags="-I${libiconv_includes}"
18661 elif test "$libiconv_prefix" != "auto" -a -r ${libiconv_prefix}/include/iconv.h; then
18662 libiconv_cflags="-I${libiconv_prefix}/include"
18667 if test "x$libiconv_cflags" != "x"; then
18668 if test "$libiconv_lib" != "auto" -a -d ${libiconv_lib}; then
18669 libiconv_libs="-L${libiconv_lib} -liconv"
18670 elif test "$libiconv_prefix" != "auto" -a -d ${libiconv_prefix}/lib; then
18671 libiconv_libs="-L${libiconv_prefix}/lib -liconv"
18673 libiconv_libs="-liconv"
18678 if test "x$enable_iconv" != "xno"; then
18679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a usable iconv" >&5
18680 printf %s "checking for a usable iconv... " >&6; }
18681 if test "x$libiconv_cflags" != "x" -o "x$libiconv_libs" != "x"; then
18682 iconvsaved_CFLAGS="$CFLAGS"
18683 iconvsaved_LIBS="$LIBS"
18684 CFLAGS="$CFLAGS $libiconv_cflags"
18685 LIBS="$LIBS $libiconv_libs"
18687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18688 /* end confdefs.h. */
18693 iconv_open ("from", "to");
18698 if ac_fn_c_try_link "$LINENO"
18700 iconv_type="libiconv"
18702 ICONV_CFLAGS="$libiconv_cflags"
18703 ICONV_LIBS="$libiconv_libs"
18708 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18709 conftest$ac_exeext conftest.$ac_ext
18711 CFLAGS="$iconvsaved_CFLAGS"
18712 LIBS="$iconvsaved_LIBS"
18714 if test "x$use_iconv" = "x0"; then
18715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18716 /* end confdefs.h. */
18721 iconv_open ("from", "to");
18726 if ac_fn_c_try_link "$LINENO"
18731 iconv_type="not found"
18734 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18735 conftest$ac_exeext conftest.$ac_ext
18738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iconv_type" >&5
18739 printf "%s\n" "$iconv_type" >&6; }
18744 printf "%s\n" "#define USE_ICONV $use_iconv" >>confdefs.h
18747 # Checks for FreeType
18751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
18752 printf %s "checking for FREETYPE... " >&6; }
18754 if test -n "$FREETYPE_CFLAGS"; then
18755 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
18756 elif test -n "$PKG_CONFIG"; then
18757 if test -n "$PKG_CONFIG" && \
18758 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 21.0.15\""; } >&5
18759 ($PKG_CONFIG --exists --print-errors "freetype2 >= 21.0.15") 2>&5
18761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18762 test $ac_status = 0; }; then
18763 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 21.0.15" 2>/dev/null`
18764 test "x$?" != "x0" && pkg_failed=yes
18771 if test -n "$FREETYPE_LIBS"; then
18772 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
18773 elif test -n "$PKG_CONFIG"; then
18774 if test -n "$PKG_CONFIG" && \
18775 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 21.0.15\""; } >&5
18776 ($PKG_CONFIG --exists --print-errors "freetype2 >= 21.0.15") 2>&5
18778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18779 test $ac_status = 0; }; then
18780 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 21.0.15" 2>/dev/null`
18781 test "x$?" != "x0" && pkg_failed=yes
18791 if test $pkg_failed = yes; then
18792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18793 printf "%s\n" "no" >&6; }
18795 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18796 _pkg_short_errors_supported=yes
18798 _pkg_short_errors_supported=no
18800 if test $_pkg_short_errors_supported = yes; then
18801 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2 >= 21.0.15" 2>&1`
18803 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2 >= 21.0.15" 2>&1`
18805 # Put the nasty error message in config.log where it belongs
18806 echo "$FREETYPE_PKG_ERRORS" >&5
18808 as_fn_error $? "Package requirements (freetype2 >= 21.0.15) were not met:
18810 $FREETYPE_PKG_ERRORS
18812 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18813 installed software in a non-standard prefix.
18815 Alternatively, you may set the environment variables FREETYPE_CFLAGS
18816 and FREETYPE_LIBS to avoid the need to call pkg-config.
18817 See the pkg-config man page for more details." "$LINENO" 5
18818 elif test $pkg_failed = untried; then
18819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18820 printf "%s\n" "no" >&6; }
18821 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18822 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18823 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18824 is in your PATH or set the PKG_CONFIG environment variable to the full
18825 path to pkg-config.
18827 Alternatively, you may set the environment variables FREETYPE_CFLAGS
18828 and FREETYPE_LIBS to avoid the need to call pkg-config.
18829 See the pkg-config man page for more details.
18831 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18832 See \`config.log' for more details" "$LINENO" 5; }
18834 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
18835 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
18836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18837 printf "%s\n" "yes" >&6; }
18840 PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES freetype2 >= 21.0.15"
18845 fontconfig_save_libs="$LIBS"
18846 fontconfig_save_cflags="$CFLAGS"
18847 LIBS="$LIBS $FREETYPE_LIBS"
18848 CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
18849 ac_fn_c_check_func "$LINENO" "FT_Get_BDF_Property" "ac_cv_func_FT_Get_BDF_Property"
18850 if test "x$ac_cv_func_FT_Get_BDF_Property" = xyes
18852 printf "%s\n" "#define HAVE_FT_GET_BDF_PROPERTY 1" >>confdefs.h
18855 ac_fn_c_check_func "$LINENO" "FT_Get_PS_Font_Info" "ac_cv_func_FT_Get_PS_Font_Info"
18856 if test "x$ac_cv_func_FT_Get_PS_Font_Info" = xyes
18858 printf "%s\n" "#define HAVE_FT_GET_PS_FONT_INFO 1" >>confdefs.h
18861 ac_fn_c_check_func "$LINENO" "FT_Has_PS_Glyph_Names" "ac_cv_func_FT_Has_PS_Glyph_Names"
18862 if test "x$ac_cv_func_FT_Has_PS_Glyph_Names" = xyes
18864 printf "%s\n" "#define HAVE_FT_HAS_PS_GLYPH_NAMES 1" >>confdefs.h
18867 ac_fn_c_check_func "$LINENO" "FT_Get_X11_Font_Format" "ac_cv_func_FT_Get_X11_Font_Format"
18868 if test "x$ac_cv_func_FT_Get_X11_Font_Format" = xyes
18870 printf "%s\n" "#define HAVE_FT_GET_X11_FONT_FORMAT 1" >>confdefs.h
18873 ac_fn_c_check_func "$LINENO" "FT_Done_MM_Var" "ac_cv_func_FT_Done_MM_Var"
18874 if test "x$ac_cv_func_FT_Done_MM_Var" = xyes
18876 printf "%s\n" "#define HAVE_FT_DONE_MM_VAR 1" >>confdefs.h
18881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18882 /* end confdefs.h. */
18884 #include <ft2build.h>
18885 #include FT_CONFIG_OPTIONS_H
18886 #ifndef PCF_CONFIG_OPTION_LONG_FAMILY_NAMES
18887 # error "No pcf long family names support"
18891 if ac_fn_c_try_compile "$LINENO"
18893 have_pcf_long_family_names=yes
18895 have_pcf_long_family_names=no
18897 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18898 if test "x$have_pcf_long_family_names" = xyes; then
18899 FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE=
18900 FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE='#'
18902 FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE='#'
18903 FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE=
18907 LIBS="$fontconfig_save_libs"
18908 CFLAGS="$fontconfig_save_cflags"
18913 if test "$os_win32" != "yes"; then
18914 use_pkgconfig_for_uuid=yes
18915 if test -n "${UUID_LIBS}"; then
18916 save_UUID_LIBS=$UUID_LIBS
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UUID" >&5
18921 $as_echo_n "checking for UUID... " >&6; }
18923 if test -n "$UUID_CFLAGS"; then
18924 pkg_cv_UUID_CFLAGS="$UUID_CFLAGS"
18925 elif test -n "$PKG_CONFIG"; then
18926 if test -n "$PKG_CONFIG" && \
18927 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
18928 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
18930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18931 test $ac_status = 0; }; then
18932 pkg_cv_UUID_CFLAGS=`$PKG_CONFIG --cflags "uuid" 2>/dev/null`
18933 test "x$?" != "x0" && pkg_failed=yes
18940 if test -n "$UUID_LIBS"; then
18941 pkg_cv_UUID_LIBS="$UUID_LIBS"
18942 elif test -n "$PKG_CONFIG"; then
18943 if test -n "$PKG_CONFIG" && \
18944 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
18945 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
18947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18948 test $ac_status = 0; }; then
18949 pkg_cv_UUID_LIBS=`$PKG_CONFIG --libs "uuid" 2>/dev/null`
18950 test "x$?" != "x0" && pkg_failed=yes
18960 if test $pkg_failed = yes; then
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18962 $as_echo "no" >&6; }
18964 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18965 _pkg_short_errors_supported=yes
18967 _pkg_short_errors_supported=no
18969 if test $_pkg_short_errors_supported = yes; then
18970 UUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid" 2>&1`
18972 UUID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid" 2>&1`
18974 # Put the nasty error message in config.log where it belongs
18975 echo "$UUID_PKG_ERRORS" >&5
18977 use_pkgconfig_for_uuid=no
18978 elif test $pkg_failed = untried; then
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18980 $as_echo "no" >&6; }
18981 use_pkgconfig_for_uuid=no
18983 UUID_CFLAGS=$pkg_cv_UUID_CFLAGS
18984 UUID_LIBS=$pkg_cv_UUID_LIBS
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18986 $as_echo "yes" >&6; }
18987 use_pkgconfig_for_uuid=yes
18989 if test "x$use_pkgconfig_for_uuid" = "xno"; then
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where uuid functions comes from" >&5
18991 $as_echo_n "checking where uuid functions comes from... " >&6; }
18992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18993 /* end confdefs.h. */
18994 #include <uuid/uuid.h>
18998 uuid_t a; uuid_generate(a);
19003 if ac_fn_c_try_link "$LINENO"; then :
19004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: builtin" >&5
19005 $as_echo "builtin" >&6; }
19011 *** uuid is required. install util-linux.
19014 rm -f core conftest.err conftest.$ac_objext \
19015 conftest$ac_exeext conftest.$ac_ext
19017 if test -z "${save_UUID_LIBS+x}" && test "x${UUID_LIBS}" != "x"; then
19018 PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY uuid"
19027 # Check expat configuration
19030 # Check whether --with-expat was given.
19031 if test ${with_expat+y}
19033 withval=$with_expat; expat_prefix=$withval
19039 # Check whether --with-expat-includes was given.
19040 if test ${with_expat_includes+y}
19042 withval=$with_expat_includes; expat_includes=$withval
19044 expat_includes=auto
19048 # Check whether --with-expat-lib was given.
19049 if test ${with_expat_lib+y}
19051 withval=$with_expat_lib; expat_lib=$withval
19057 if test "$enable_libxml2" != "yes"; then
19058 use_pkgconfig_for_expat=yes
19059 if test "$expat_prefix" = "auto" -a "$expat_includes" = "auto" -a "$expat_lib" = "auto"; then
19062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EXPAT" >&5
19063 printf %s "checking for EXPAT... " >&6; }
19065 if test -n "$EXPAT_CFLAGS"; then
19066 pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS"
19067 elif test -n "$PKG_CONFIG"; then
19068 if test -n "$PKG_CONFIG" && \
19069 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
19070 ($PKG_CONFIG --exists --print-errors "expat") 2>&5
19072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19073 test $ac_status = 0; }; then
19074 pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null`
19075 test "x$?" != "x0" && pkg_failed=yes
19082 if test -n "$EXPAT_LIBS"; then
19083 pkg_cv_EXPAT_LIBS="$EXPAT_LIBS"
19084 elif test -n "$PKG_CONFIG"; then
19085 if test -n "$PKG_CONFIG" && \
19086 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
19087 ($PKG_CONFIG --exists --print-errors "expat") 2>&5
19089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19090 test $ac_status = 0; }; then
19091 pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null`
19092 test "x$?" != "x0" && pkg_failed=yes
19102 if test $pkg_failed = yes; then
19103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19104 printf "%s\n" "no" >&6; }
19106 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19107 _pkg_short_errors_supported=yes
19109 _pkg_short_errors_supported=no
19111 if test $_pkg_short_errors_supported = yes; then
19112 EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "expat" 2>&1`
19114 EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "expat" 2>&1`
19116 # Put the nasty error message in config.log where it belongs
19117 echo "$EXPAT_PKG_ERRORS" >&5
19119 use_pkgconfig_for_expat=no
19120 elif test $pkg_failed = untried; then
19121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19122 printf "%s\n" "no" >&6; }
19123 use_pkgconfig_for_expat=no
19125 EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS
19126 EXPAT_LIBS=$pkg_cv_EXPAT_LIBS
19127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19128 printf "%s\n" "yes" >&6; }
19132 use_pkgconfig_for_expat=no
19134 if test "x$use_pkgconfig_for_expat" = "xno"; then
19135 if test "$expat_includes" != "auto" -a -r ${expat_includes}/expat.h; then
19136 EXPAT_CFLAGS="-I${expat_includes}"
19137 elif test "$expat_prefix" != "auto" -a -r ${expat_prefix}/include/expat.h; then
19138 EXPAT_CFLAGS="-I${expat_prefix}/include"
19142 if test "$expat_lib" != "auto"; then
19143 EXPAT_LIBS="-L${expat_lib} -lexpat"
19144 elif test "$expat_prefix" != "auto"; then
19145 EXPAT_LIBS="-L${expat_prefix}/lib -lexpat"
19147 EXPAT_LIBS="-lexpat"
19149 PKG_EXPAT_CFLAGS=$EXPAT_CFLAGS
19150 PKG_EXPAT_LIBS=$EXPAT_LIBS
19152 PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY expat"
19157 expatsaved_CPPFLAGS="$CPPFLAGS"
19158 expatsaved_LIBS="$LIBS"
19159 CPPFLAGS="$CPPFLAGS $EXPAT_CFLAGS"
19160 LIBS="$LIBS $EXPAT_LIBS"
19162 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
19163 if test "x$ac_cv_header_expat_h" = xyes
19168 if test "$ac_cv_header_expat_h" = "no"; then
19169 ac_fn_c_check_header_compile "$LINENO" "xmlparse.h" "ac_cv_header_xmlparse_h" "$ac_includes_default"
19170 if test "x$ac_cv_header_xmlparse_h" = xyes
19175 if test "$ac_cv_header_xmlparse_h" = "yes"; then
19179 printf "%s\n" "#define HAVE_XMLPARSE_H $HAVE_XMLPARSE_H" >>confdefs.h
19183 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
19186 ac_fn_c_check_func "$LINENO" "XML_SetDoctypeDeclHandler" "ac_cv_func_XML_SetDoctypeDeclHandler"
19187 if test "x$ac_cv_func_XML_SetDoctypeDeclHandler" = xyes
19189 printf "%s\n" "#define HAVE_XML_SETDOCTYPEDECLHANDLER 1" >>confdefs.h
19193 if test "$ac_cv_func_XML_SetDoctypeDeclHandler" = "no"; then
19195 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
19197 CPPFLAGS="$expatsaved_CPPFLAGS"
19198 LIBS="$expatsaved_LIBS"
19207 # Check libxml2 configuration
19209 # Check whether --enable-libxml2 was given.
19210 if test ${enable_libxml2+y}
19212 enableval=$enable_libxml2;
19216 if test "$enable_libxml2" = "yes"; then
19219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
19220 printf %s "checking for LIBXML2... " >&6; }
19222 if test -n "$LIBXML2_CFLAGS"; then
19223 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
19224 elif test -n "$PKG_CONFIG"; then
19225 if test -n "$PKG_CONFIG" && \
19226 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
19227 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
19229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19230 test $ac_status = 0; }; then
19231 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6" 2>/dev/null`
19232 test "x$?" != "x0" && pkg_failed=yes
19239 if test -n "$LIBXML2_LIBS"; then
19240 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
19241 elif test -n "$PKG_CONFIG"; then
19242 if test -n "$PKG_CONFIG" && \
19243 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
19244 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
19246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19247 test $ac_status = 0; }; then
19248 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6" 2>/dev/null`
19249 test "x$?" != "x0" && pkg_failed=yes
19259 if test $pkg_failed = yes; then
19260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19261 printf "%s\n" "no" >&6; }
19263 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19264 _pkg_short_errors_supported=yes
19266 _pkg_short_errors_supported=no
19268 if test $_pkg_short_errors_supported = yes; then
19269 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
19271 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
19273 # Put the nasty error message in config.log where it belongs
19274 echo "$LIBXML2_PKG_ERRORS" >&5
19276 as_fn_error $? "Package requirements (libxml-2.0 >= 2.6) were not met:
19278 $LIBXML2_PKG_ERRORS
19280 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19281 installed software in a non-standard prefix.
19283 Alternatively, you may set the environment variables LIBXML2_CFLAGS
19284 and LIBXML2_LIBS to avoid the need to call pkg-config.
19285 See the pkg-config man page for more details." "$LINENO" 5
19286 elif test $pkg_failed = untried; then
19287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19288 printf "%s\n" "no" >&6; }
19289 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19290 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19291 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19292 is in your PATH or set the PKG_CONFIG environment variable to the full
19293 path to pkg-config.
19295 Alternatively, you may set the environment variables LIBXML2_CFLAGS
19296 and LIBXML2_LIBS to avoid the need to call pkg-config.
19297 See the pkg-config man page for more details.
19299 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19300 See \`config.log' for more details" "$LINENO" 5; }
19302 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
19303 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
19304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19305 printf "%s\n" "yes" >&6; }
19308 PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY libxml-2.0 >= 2.6"
19310 printf "%s\n" "#define ENABLE_LIBXML2 1" >>confdefs.h
19316 fc_saved_CFLAGS="$CFLAGS"
19317 CFLAGS="$CFLAGS $LIBXML2_CFLAGS"
19318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SAX1 support in libxml2" >&5
19319 printf %s "checking SAX1 support in libxml2... " >&6; }
19320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19321 /* end confdefs.h. */
19323 #include <libxml/xmlversion.h>
19324 #if !defined(LIBXML_SAX1_ENABLED)
19325 # include "error: No SAX1 support in libxml2"
19329 if ac_fn_c_try_compile "$LINENO"
19331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
19332 printf "%s\n" "found" >&6; }
19335 *** SAX1 support in libxml2 is required. enable it or use expat instead." "$LINENO" 5
19337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19338 CFLAGS="$fc_saved_CFLAGS"
19346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JSONC" >&5
19347 printf %s "checking for JSONC... " >&6; }
19349 if test -n "$JSONC_CFLAGS"; then
19350 pkg_cv_JSONC_CFLAGS="$JSONC_CFLAGS"
19351 elif test -n "$PKG_CONFIG"; then
19352 if test -n "$PKG_CONFIG" && \
19353 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
19354 ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
19356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19357 test $ac_status = 0; }; then
19358 pkg_cv_JSONC_CFLAGS=`$PKG_CONFIG --cflags "json-c" 2>/dev/null`
19359 test "x$?" != "x0" && pkg_failed=yes
19366 if test -n "$JSONC_LIBS"; then
19367 pkg_cv_JSONC_LIBS="$JSONC_LIBS"
19368 elif test -n "$PKG_CONFIG"; then
19369 if test -n "$PKG_CONFIG" && \
19370 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
19371 ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
19373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19374 test $ac_status = 0; }; then
19375 pkg_cv_JSONC_LIBS=`$PKG_CONFIG --libs "json-c" 2>/dev/null`
19376 test "x$?" != "x0" && pkg_failed=yes
19386 if test $pkg_failed = yes; then
19387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19388 printf "%s\n" "no" >&6; }
19390 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19391 _pkg_short_errors_supported=yes
19393 _pkg_short_errors_supported=no
19395 if test $_pkg_short_errors_supported = yes; then
19396 JSONC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c" 2>&1`
19398 JSONC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c" 2>&1`
19400 # Put the nasty error message in config.log where it belongs
19401 echo "$JSONC_PKG_ERRORS" >&5
19404 elif test $pkg_failed = untried; then
19405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19406 printf "%s\n" "no" >&6; }
19409 JSONC_CFLAGS=$pkg_cv_JSONC_CFLAGS
19410 JSONC_LIBS=$pkg_cv_JSONC_LIBS
19411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19412 printf "%s\n" "yes" >&6; }
19416 if test "x$use_jsonc" = "xyes"; then
19418 ENABLE_JSONC_FALSE='#'
19420 ENABLE_JSONC_TRUE='#'
19421 ENABLE_JSONC_FALSE=
19428 # Set default sub-pixel rendering
19432 # Check whether --with-default-sub-pixel-rendering was given.
19433 if test ${with_default_sub_pixel_rendering+y}
19435 withval=$with_default_sub_pixel_rendering; preferred_sub_pixel_rendering="$withval"
19437 preferred_sub_pixel_rendering=none
19441 case "$preferred_sub_pixel_rendering" in
19442 none|bgr|rgb|vbgr|vrgb)
19443 PREFERRED_SUB_PIXEL_RENDERING="$preferred_sub_pixel_rendering"
19447 as_fn_error $? "Invalid sub-pixel rendering. please choose one of none, bgr, rgb, vbgr, or vrgb" "$LINENO" 5
19452 # Set default hinting
19456 # Check whether --with-default-hinting was given.
19457 if test ${with_default_hinting+y}
19459 withval=$with_default_hinting; preferred_hinting="$withval"
19461 preferred_hinting=slight
19465 case "$preferred_hinting" in
19466 none|slight|medium|full)
19467 PREFERRED_HINTING="$preferred_hinting"
19471 as_fn_error $? "Invalid hinting. please choose one of none, slight, medium, or full" "$LINENO" 5
19476 # Set default font directory
19480 # Check whether --with-default-fonts was given.
19481 if test ${with_default_fonts+y}
19483 withval=$with_default_fonts; default_fonts="$withval"
19489 case "$default_fonts" in
19491 if test "$os_win32" = "yes"; then
19492 default_fonts="WINDOWSFONTDIR,WINDOWSUSERFONTDIR"
19493 elif test "$os_darwin" = "yes"; then
19494 default_fonts="/System/Library/Fonts,/Library/Fonts,~/Library/Fonts,/System/Library/Assets/com_apple_MobileAsset_Font3,/System/Library/Assets/com_apple_MobileAsset_Font4"
19496 default_fonts="/usr/share/fonts"
19501 FC_DEFAULT_FONTS=""
19502 if test x${default_fonts+set} = xset; then
19505 for p in $default_fonts; do
19506 if test x"$FC_DEFAULT_FONTS" != x; then
19507 FC_DEFAULT_FONTS="$FC_DEFAULT_FONTS "
19509 FC_DEFAULT_FONTS="$FC_DEFAULT_FONTS<dir>$p</dir>"
19515 printf "%s\n" "#define FC_DEFAULT_FONTS \"$FC_DEFAULT_FONTS\"" >>confdefs.h
19521 # Add more fonts if available. By default, add only the directories
19522 # with outline fonts; those with bitmaps can be added as desired in
19523 # local.conf or ~/.fonts.conf
19526 # Check whether --with-add-fonts was given.
19527 if test ${with_add_fonts+y}
19529 withval=$with_add_fonts; add_fonts="$withval"
19535 case "$add_fonts" in
19538 for dir in /usr/X11R6/lib/X11 /usr/X11/lib/X11 /usr/lib/X11; do
19539 case x"$FC_ADD_FONTS" in
19542 if test -d "$sub"; then
19543 case x$FC_ADD_FONTS in
19545 FC_ADD_FONTS="$sub"
19548 FC_ADD_FONTS="$FC_ADD_FONTS,$sub"
19556 printf "%s\n" "#define FC_ADD_FONTS \"$add_fonts\"" >>confdefs.h
19563 FC_ADD_FONTS="$add_fonts"
19565 printf "%s\n" "#define FC_ADD_FONTS \"$add_fonts\"" >>confdefs.h
19574 case "$FC_ADD_FONTS" in
19578 FC_FONTPATH=`echo $FC_ADD_FONTS |
19579 sed -e 's/^/<dir>/' -e 's/$/<\/dir>/' -e 's/,/<\/dir> <dir>/g'`
19586 # Set default cache directory path
19589 # Check whether --with-cache-dir was given.
19590 if test ${with_cache_dir+y}
19592 withval=$with_cache_dir; fc_cachedir="$withval"
19598 case $fc_cachedir in
19600 if test "$os_win32" = "yes"; then
19601 fc_cachedir="LOCAL_APPDATA_FONTCONFIG_CACHE"
19603 fc_cachedir='${localstatedir}/cache/${PACKAGE}'
19610 FC_CACHEDIR=${fc_cachedir}
19613 FC_FONTDATE=`LC_ALL=C date`
19618 # Set configuration paths
19622 # Check whether --with-templatedir was given.
19623 if test ${with_templatedir+y}
19625 withval=$with_templatedir; templatedir="$withval"
19631 # Check whether --with-baseconfigdir was given.
19632 if test ${with_baseconfigdir+y}
19634 withval=$with_baseconfigdir; baseconfigdir="$withval"
19640 # Check whether --with-configdir was given.
19641 if test ${with_configdir+y}
19643 withval=$with_configdir; configdir="$withval"
19649 # Check whether --with-xmldir was given.
19650 if test ${with_xmldir+y}
19652 withval=$with_xmldir; xmldir="$withval"
19658 case "$templatedir" in
19660 templatedir='${datadir}'/fontconfig/conf.avail
19665 case "$baseconfigdir" in
19667 baseconfigdir='${sysconfdir}'/fonts
19672 case "$configdir" in
19674 configdir='${BASECONFIGDIR}'/conf.d
19681 xmldir='${datadir}'/xml/fontconfig
19687 TEMPLATEDIR=${templatedir}
19688 BASECONFIGDIR=${baseconfigdir}
19689 CONFIGDIR=${configdir}
19699 # Thread-safety primitives
19702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stdatomic.h atomic primitives" >&5
19703 printf %s "checking stdatomic.h atomic primitives... " >&6; }
19704 if test ${fc_cv_have_stdatomic_atomic_primitives+y}
19706 printf %s "(cached) " >&6
19709 fc_cv_have_stdatomic_atomic_primitives=false
19710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19711 /* end confdefs.h. */
19713 #include <stdatomic.h>
19715 void memory_barrier (void) { atomic_thread_fence (memory_order_acq_rel); }
19716 int atomic_add (atomic_int *i) { return atomic_fetch_add_explicit (i, 1, memory_order_relaxed); }
19717 int mutex_trylock (atomic_flag *m) { return atomic_flag_test_and_set_explicit (m, memory_order_acquire); }
19718 void mutex_unlock (atomic_flag *m) { atomic_flag_clear_explicit (m, memory_order_release); }
19728 if ac_fn_c_try_link "$LINENO"
19730 fc_cv_have_stdatomic_atomic_primitives=true
19733 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19734 conftest$ac_exeext conftest.$ac_ext
19737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_stdatomic_atomic_primitives" >&5
19738 printf "%s\n" "$fc_cv_have_stdatomic_atomic_primitives" >&6; }
19739 if $fc_cv_have_stdatomic_atomic_primitives; then
19741 printf "%s\n" "#define HAVE_STDATOMIC_PRIMITIVES 1" >>confdefs.h
19745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
19746 printf %s "checking for Intel atomic primitives... " >&6; }
19747 if test ${fc_cv_have_intel_atomic_primitives+y}
19749 printf %s "(cached) " >&6
19752 fc_cv_have_intel_atomic_primitives=false
19753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19754 /* end confdefs.h. */
19756 void memory_barrier (void) { __sync_synchronize (); }
19757 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
19758 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
19759 void mutex_unlock (int *m) { __sync_lock_release (m); }
19769 if ac_fn_c_try_link "$LINENO"
19771 fc_cv_have_intel_atomic_primitives=true
19774 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19775 conftest$ac_exeext conftest.$ac_ext
19778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_intel_atomic_primitives" >&5
19779 printf "%s\n" "$fc_cv_have_intel_atomic_primitives" >&6; }
19780 if $fc_cv_have_intel_atomic_primitives; then
19782 printf "%s\n" "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
19786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
19787 printf %s "checking for Solaris atomic operations... " >&6; }
19788 if test ${fc_cv_have_solaris_atomic_ops+y}
19790 printf %s "(cached) " >&6
19793 fc_cv_have_solaris_atomic_ops=false
19794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19795 /* end confdefs.h. */
19797 #include <atomic.h>
19798 /* This requires Solaris Studio 12.2 or newer: */
19799 #include <mbarrier.h>
19800 void memory_barrier (void) { __machine_rw_barrier (); }
19801 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
19802 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
19812 if ac_fn_c_try_link "$LINENO"
19814 fc_cv_have_solaris_atomic_ops=true
19817 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19818 conftest$ac_exeext conftest.$ac_ext
19821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_solaris_atomic_ops" >&5
19822 printf "%s\n" "$fc_cv_have_solaris_atomic_ops" >&6; }
19823 if $fc_cv_have_solaris_atomic_ops; then
19825 printf "%s\n" "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
19829 if test "$os_win32" = no && ! $have_pthread; then
19830 ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
19831 if test "x$ac_cv_header_sched_h" = xyes
19833 printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
19837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
19838 printf %s "checking for library containing sched_yield... " >&6; }
19839 if test ${ac_cv_search_sched_yield+y}
19841 printf %s "(cached) " >&6
19843 ac_func_search_save_LIBS=$LIBS
19844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19845 /* end confdefs.h. */
19847 /* Override any GCC internal prototype to avoid an error.
19848 Use char because int might match the return type of a GCC
19849 builtin and then its argument prototype would still apply. */
19850 char sched_yield ();
19854 return sched_yield ();
19859 for ac_lib in '' rt
19861 if test -z "$ac_lib"; then
19862 ac_res="none required"
19865 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19867 if ac_fn_c_try_link "$LINENO"
19869 ac_cv_search_sched_yield=$ac_res
19871 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19873 if test ${ac_cv_search_sched_yield+y}
19878 if test ${ac_cv_search_sched_yield+y}
19882 ac_cv_search_sched_yield=no
19884 rm conftest.$ac_ext
19885 LIBS=$ac_func_search_save_LIBS
19887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
19888 printf "%s\n" "$ac_cv_search_sched_yield" >&6; }
19889 ac_res=$ac_cv_search_sched_yield
19890 if test "$ac_res" != no
19892 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19894 printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h
19901 if test "$os_win32" = no; then
19905 ac_cpp='$CPP $CPPFLAGS'
19906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19912 # We used to check for pthread.h first, but this fails if pthread.h
19913 # requires special compiler flags (e.g. on True64 or Sequent).
19914 # It gets checked for in the link test anyway.
19916 # First of all, check if the user has set any of the PTHREAD_LIBS,
19917 # etcetera environment variables, and if threads linking works using
19919 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19920 save_CFLAGS="$CFLAGS"
19921 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19923 LIBS="$PTHREAD_LIBS $LIBS"
19924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19925 printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
19926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19927 /* end confdefs.h. */
19929 /* Override any GCC internal prototype to avoid an error.
19930 Use char because int might match the return type of a GCC
19931 builtin and then its argument prototype would still apply. */
19932 char pthread_join ();
19936 return pthread_join ();
19941 if ac_fn_c_try_link "$LINENO"
19945 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19946 conftest$ac_exeext conftest.$ac_ext
19947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19948 printf "%s\n" "$ax_pthread_ok" >&6; }
19949 if test x"$ax_pthread_ok" = xno; then
19954 CFLAGS="$save_CFLAGS"
19957 # We must check for the threads library under a number of different
19958 # names; the ordering is very important because some systems
19959 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19960 # libraries is broken (non-POSIX).
19962 # Create a list of thread flags to try. Items starting with a "-" are
19963 # C compiler flags, and other items are library names, except for "none"
19964 # which indicates that we try without any flags at all, and "pthread-config"
19965 # which is a program returning the flags for the Pth emulation library.
19967 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19969 # The ordering *is* (sometimes) important. Some notes on the
19970 # individual items follow:
19972 # pthreads: AIX (must check this before -lpthread)
19973 # none: in case threads are in libc; should be tried before -Kthread and
19974 # other compiler flags to prevent continual compiler warnings
19975 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19976 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19977 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19978 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19979 # -pthreads: Solaris/gcc
19980 # -mthreads: Mingw32/gcc, Lynx/gcc
19981 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19982 # doesn't hurt to check since this sometimes defines pthreads too;
19983 # also defines -D_REENTRANT)
19984 # ... -mt is also the pthreads flag for HP/aCC
19985 # pthread: Linux, etcetera
19986 # --thread-safe: KAI C++
19987 # pthread-config: use pthread-config program (for GNU Pth library)
19992 # On Solaris (at least, for some versions), libc contains stubbed
19993 # (non-functional) versions of the pthreads routines, so link-based
19994 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
19995 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19996 # a function called by this macro, so we could check for that, but
19997 # who knows whether they'll stub that too in a future libc.) So,
19998 # we'll just look for -pthreads and -lpthread first:
20000 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
20004 ax_pthread_flags="-pthread $ax_pthread_flags"
20007 # use libc stubs, don't link against libpthread, to allow
20009 ax_pthread_flags=""
20013 # Clang doesn't consider unrecognized options an error unless we specify
20014 # -Werror. We throw in some extra Clang-specific options to ensure that
20015 # this doesn't happen for GCC, which also accepts -Werror.
20017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
20018 printf %s "checking if compiler needs -Werror to reject unknown flags... " >&6; }
20019 save_CFLAGS="$CFLAGS"
20020 ax_pthread_extra_flags="-Werror"
20021 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
20022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20023 /* end confdefs.h. */
20033 if ac_fn_c_try_compile "$LINENO"
20035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20036 printf "%s\n" "yes" >&6; }
20038 ax_pthread_extra_flags=
20039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20040 printf "%s\n" "no" >&6; }
20042 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20043 CFLAGS="$save_CFLAGS"
20045 if test x"$ax_pthread_ok" = xno; then
20046 for flag in $ax_pthread_flags; do
20050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
20051 printf %s "checking whether pthreads work without any flags... " >&6; }
20055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
20056 printf %s "checking whether pthreads work with $flag... " >&6; }
20057 PTHREAD_CFLAGS="$flag"
20061 # Extract the first word of "pthread-config", so it can be a program name with args.
20062 set dummy pthread-config; ac_word=$2
20063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20064 printf %s "checking for $ac_word... " >&6; }
20065 if test ${ac_cv_prog_ax_pthread_config+y}
20067 printf %s "(cached) " >&6
20069 if test -n "$ax_pthread_config"; then
20070 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
20072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20073 for as_dir in $PATH
20076 case $as_dir in #(((
20079 *) as_dir=$as_dir/ ;;
20081 for ac_exec_ext in '' $ac_executable_extensions; do
20082 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20083 ac_cv_prog_ax_pthread_config="yes"
20084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20091 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
20094 ax_pthread_config=$ac_cv_prog_ax_pthread_config
20095 if test -n "$ax_pthread_config"; then
20096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
20097 printf "%s\n" "$ax_pthread_config" >&6; }
20099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20100 printf "%s\n" "no" >&6; }
20104 if test x"$ax_pthread_config" = xno; then continue; fi
20105 PTHREAD_CFLAGS="`pthread-config --cflags`"
20106 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
20111 printf %s "checking for the pthreads library -l$flag... " >&6; }
20112 PTHREAD_LIBS="-l$flag"
20117 save_CFLAGS="$CFLAGS"
20118 LIBS="$PTHREAD_LIBS $LIBS"
20119 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
20121 # Check for various functions. We must include pthread.h,
20122 # since some functions may be macros. (On the Sequent, we
20123 # need a special flag -Kthread to make this header compile.)
20124 # We check for pthread_join because it is in -lpthread on IRIX
20125 # while pthread_create is in libc. We check for pthread_attr_init
20126 # due to DEC craziness with -lpthreads. We check for
20127 # pthread_cleanup_push because it is one of the few pthread
20128 # functions on Solaris that doesn't have a non-functional libc stub.
20129 # We try pthread_create on general principles.
20130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20131 /* end confdefs.h. */
20132 #include <pthread.h>
20133 static void routine(void *a) { a = 0; }
20134 static void *start_routine(void *a) { return a; }
20138 pthread_t th; pthread_attr_t attr;
20139 pthread_create(&th, 0, start_routine, 0);
20140 pthread_join(th, 0);
20141 pthread_attr_init(&attr);
20142 pthread_cleanup_push(routine, 0);
20143 pthread_cleanup_pop(0) /* ; */
20148 if ac_fn_c_try_link "$LINENO"
20152 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20153 conftest$ac_exeext conftest.$ac_ext
20156 CFLAGS="$save_CFLAGS"
20158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
20159 printf "%s\n" "$ax_pthread_ok" >&6; }
20160 if test "x$ax_pthread_ok" = xyes; then
20169 # Various other checks:
20170 if test "x$ax_pthread_ok" = xyes; then
20172 LIBS="$PTHREAD_LIBS $LIBS"
20173 save_CFLAGS="$CFLAGS"
20174 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20176 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20178 printf %s "checking for joinable pthread attribute... " >&6; }
20180 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20182 /* end confdefs.h. */
20183 #include <pthread.h>
20187 int attr = $attr; return attr /* ; */
20192 if ac_fn_c_try_link "$LINENO"
20194 attr_name=$attr; break
20196 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20197 conftest$ac_exeext conftest.$ac_ext
20199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
20200 printf "%s\n" "$attr_name" >&6; }
20201 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
20203 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h
20207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
20208 printf %s "checking if more special flags are required for pthreads... " >&6; }
20211 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
20212 osf* | hpux*) flag="-D_REENTRANT";;
20214 if test "$GCC" = "yes"; then
20215 flag="-D_REENTRANT"
20217 # TODO: What about Clang on Solaris?
20218 flag="-mt -D_REENTRANT"
20222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
20223 printf "%s\n" "$flag" >&6; }
20224 if test "x$flag" != xno; then
20225 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
20228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
20229 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
20230 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
20232 printf %s "(cached) " >&6
20235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20236 /* end confdefs.h. */
20237 #include <pthread.h>
20241 int i = PTHREAD_PRIO_INHERIT;
20246 if ac_fn_c_try_link "$LINENO"
20248 ax_cv_PTHREAD_PRIO_INHERIT=yes
20250 ax_cv_PTHREAD_PRIO_INHERIT=no
20252 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20253 conftest$ac_exeext conftest.$ac_ext
20256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
20257 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
20258 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"
20261 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
20266 CFLAGS="$save_CFLAGS"
20268 # More AIX lossage: compile with *_r variant
20269 if test "x$GCC" != xyes; then
20273 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
20274 #handle absolute path differently from PATH based program lookup
20277 if as_fn_executable_p ${CC}_r
20279 PTHREAD_CC="${CC}_r"
20282 for ac_prog in ${CC}_r
20284 # Extract the first word of "$ac_prog", so it can be a program name with args.
20285 set dummy $ac_prog; ac_word=$2
20286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20287 printf %s "checking for $ac_word... " >&6; }
20288 if test ${ac_cv_prog_PTHREAD_CC+y}
20290 printf %s "(cached) " >&6
20292 if test -n "$PTHREAD_CC"; then
20293 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20296 for as_dir in $PATH
20299 case $as_dir in #(((
20302 *) as_dir=$as_dir/ ;;
20304 for ac_exec_ext in '' $ac_executable_extensions; do
20305 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20306 ac_cv_prog_PTHREAD_CC="$ac_prog"
20307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20316 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20317 if test -n "$PTHREAD_CC"; then
20318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20319 printf "%s\n" "$PTHREAD_CC" >&6; }
20321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20322 printf "%s\n" "no" >&6; }
20326 test -n "$PTHREAD_CC" && break
20328 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20339 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20345 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20346 if test x"$ax_pthread_ok" = xyes; then
20354 ac_cpp='$CPP $CPPFLAGS'
20355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20361 if $have_pthread; then
20362 LIBS="$PTHREAD_LIBS $LIBS"
20363 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20366 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
20369 if $have_pthread; then
20371 HAVE_PTHREAD_FALSE='#'
20373 HAVE_PTHREAD_TRUE='#'
20374 HAVE_PTHREAD_FALSE=
20381 # Let people not build/install docs if they don't have docbook
20384 # Check whether --enable-docbook was given.
20385 if test ${enable_docbook+y}
20387 enableval=$enable_docbook;
20391 if test x$enable_docbook != xno; then
20392 # Extract the first word of "docbook2html", so it can be a program name with args.
20393 set dummy docbook2html; ac_word=$2
20394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20395 printf %s "checking for $ac_word... " >&6; }
20396 if test ${ac_cv_prog_HASDOCBOOK+y}
20398 printf %s "(cached) " >&6
20400 if test -n "$HASDOCBOOK"; then
20401 ac_cv_prog_HASDOCBOOK="$HASDOCBOOK" # Let the user override the test.
20403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20404 for as_dir in $PATH
20407 case $as_dir in #(((
20410 *) as_dir=$as_dir/ ;;
20412 for ac_exec_ext in '' $ac_executable_extensions; do
20413 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20414 ac_cv_prog_HASDOCBOOK="yes"
20415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20422 test -z "$ac_cv_prog_HASDOCBOOK" && ac_cv_prog_HASDOCBOOK="no"
20425 HASDOCBOOK=$ac_cv_prog_HASDOCBOOK
20426 if test -n "$HASDOCBOOK"; then
20427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HASDOCBOOK" >&5
20428 printf "%s\n" "$HASDOCBOOK" >&6; }
20430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20431 printf "%s\n" "no" >&6; }
20437 if test "x$HASDOCBOOK" = xyes; then
20439 USEDOCBOOK_FALSE='#'
20441 USEDOCBOOK_TRUE='#'
20448 # Check if docs exist or can be created
20450 if test x$HASDOCBOOK = xno; then
20451 if test -f $srcdir/doc/fonts-conf.5; then
20458 # Check whether --enable-docs was given.
20459 if test ${enable_docs+y}
20461 enableval=$enable_docs;
20463 enable_docs=$default_docs
20467 if test "x$enable_docs" = xyes; then
20469 ENABLE_DOCS_FALSE='#'
20471 ENABLE_DOCS_TRUE='#'
20476 if test "x$enable_docs" = xyes; then
20478 cat $srcdir/doc/*.fncs | awk '
20479 /^@TITLE@/ { if (!done) { printf ("%s\n", $2); done = 1; } }
20480 /^@FUNC@/ { if (!done) { printf ("%s\n", $2); done = 1; } }
20481 /^@@/ { done = 0; }' > $tmp
20482 DOCMAN3=`cat $tmp | awk '{ printf ("%s.3 ", $1); }'`
20483 echo DOCMAN3 $DOCMAN3
20490 default_cache_build="yes"
20491 if test $cross_compiling = "yes"; then
20492 default_cache_build="no"
20494 # Check whether --enable-cache-build was given.
20495 if test ${enable_cache_build+y}
20497 enableval=$enable_cache_build;
20499 enable_cache_build=$default_cache_build
20503 if test "x$enable_cache_build" = xyes; then
20504 ENABLE_CACHE_BUILD_TRUE=
20505 ENABLE_CACHE_BUILD_FALSE='#'
20507 ENABLE_CACHE_BUILD_TRUE='#'
20508 ENABLE_CACHE_BUILD_FALSE=
20513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
20514 printf %s "checking whether byte ordering is bigendian... " >&6; }
20515 if test ${ac_cv_c_bigendian+y}
20517 printf %s "(cached) " >&6
20519 ac_cv_c_bigendian=unknown
20520 # See if we're dealing with a universal compiler.
20521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20522 /* end confdefs.h. */
20523 #ifndef __APPLE_CC__
20524 not a universal capable compiler
20529 if ac_fn_c_try_compile "$LINENO"
20532 # Check for potential -arch flags. It is not universal unless
20533 # there are at least two -arch flags with different values.
20536 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20537 if test -n "$ac_prev"; then
20539 i?86 | x86_64 | ppc | ppc64)
20540 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20543 ac_cv_c_bigendian=universal
20549 elif test "x$ac_word" = "x-arch"; then
20554 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20555 if test $ac_cv_c_bigendian = unknown; then
20556 # See if sys/param.h defines the BYTE_ORDER macro.
20557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20558 /* end confdefs.h. */
20559 #include <sys/types.h>
20560 #include <sys/param.h>
20565 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20566 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20568 bogus endian macros
20575 if ac_fn_c_try_compile "$LINENO"
20577 # It does; now see whether it defined to BIG_ENDIAN or not.
20578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20579 /* end confdefs.h. */
20580 #include <sys/types.h>
20581 #include <sys/param.h>
20586 #if BYTE_ORDER != BIG_ENDIAN
20594 if ac_fn_c_try_compile "$LINENO"
20596 ac_cv_c_bigendian=yes
20598 ac_cv_c_bigendian=no
20600 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20602 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20604 if test $ac_cv_c_bigendian = unknown; then
20605 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20607 /* end confdefs.h. */
20608 #include <limits.h>
20613 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20614 bogus endian macros
20621 if ac_fn_c_try_compile "$LINENO"
20623 # It does; now see whether it defined to _BIG_ENDIAN or not.
20624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20625 /* end confdefs.h. */
20626 #include <limits.h>
20631 #ifndef _BIG_ENDIAN
20639 if ac_fn_c_try_compile "$LINENO"
20641 ac_cv_c_bigendian=yes
20643 ac_cv_c_bigendian=no
20645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20649 if test $ac_cv_c_bigendian = unknown; then
20650 # Compile a test program.
20651 if test "$cross_compiling" = yes
20653 # Try to guess by grepping values from an object file.
20654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20655 /* end confdefs.h. */
20656 unsigned short int ascii_mm[] =
20657 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20658 unsigned short int ascii_ii[] =
20659 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20660 int use_ascii (int i) {
20661 return ascii_mm[i] + ascii_ii[i];
20663 unsigned short int ebcdic_ii[] =
20664 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20665 unsigned short int ebcdic_mm[] =
20666 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20667 int use_ebcdic (int i) {
20668 return ebcdic_mm[i] + ebcdic_ii[i];
20675 return use_ascii (foo) == use_ebcdic (foo);
20680 if ac_fn_c_try_compile "$LINENO"
20682 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20683 ac_cv_c_bigendian=yes
20685 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20686 if test "$ac_cv_c_bigendian" = unknown; then
20687 ac_cv_c_bigendian=no
20689 # finding both strings is unlikely to happen, but who knows?
20690 ac_cv_c_bigendian=unknown
20694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20697 /* end confdefs.h. */
20698 $ac_includes_default
20703 /* Are we little or big endian? From Harbison&Steele. */
20707 char c[sizeof (long int)];
20710 return u.c[sizeof (long int) - 1] == 1;
20716 if ac_fn_c_try_run "$LINENO"
20718 ac_cv_c_bigendian=no
20720 ac_cv_c_bigendian=yes
20722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20723 conftest.$ac_objext conftest.beam conftest.$ac_ext
20728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
20729 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
20730 case $ac_cv_c_bigendian in #(
20732 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
20738 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20742 as_fn_error $? "unknown endianness
20743 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
20746 # The cast to long int works around a bug in the HP C Compiler
20747 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20748 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20749 # This bug is HP SR number 8606223364.
20750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
20751 printf %s "checking size of void *... " >&6; }
20752 if test ${ac_cv_sizeof_void_p+y}
20754 printf %s "(cached) " >&6
20756 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
20760 if test "$ac_cv_type_void_p" = yes; then
20761 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20762 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20763 as_fn_error 77 "cannot compute sizeof (void *)
20764 See \`config.log' for more details" "$LINENO" 5; }
20766 ac_cv_sizeof_void_p=0
20771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
20772 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
20776 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
20779 # The cast to long int works around a bug in the HP C Compiler,
20780 # see AC_CHECK_SIZEOF for more information.
20781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
20782 printf %s "checking alignment of double... " >&6; }
20783 if test ${ac_cv_alignof_double+y}
20785 printf %s "(cached) " >&6
20787 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
20788 typedef struct { char x; double y; } ac__type_alignof_;"
20792 if test "$ac_cv_type_double" = yes; then
20793 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20794 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20795 as_fn_error 77 "cannot compute alignment of double
20796 See \`config.log' for more details" "$LINENO" 5; }
20798 ac_cv_alignof_double=0
20803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
20804 printf "%s\n" "$ac_cv_alignof_double" >&6; }
20808 printf "%s\n" "#define ALIGNOF_DOUBLE $ac_cv_alignof_double" >>confdefs.h
20811 # The cast to long int works around a bug in the HP C Compiler,
20812 # see AC_CHECK_SIZEOF for more information.
20813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of void *" >&5
20814 printf %s "checking alignment of void *... " >&6; }
20815 if test ${ac_cv_alignof_void_p+y}
20817 printf %s "(cached) " >&6
20819 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_void_p" "$ac_includes_default
20820 typedef struct { char x; void * y; } ac__type_alignof_;"
20824 if test "$ac_cv_type_void_p" = yes; then
20825 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20826 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20827 as_fn_error 77 "cannot compute alignment of void *
20828 See \`config.log' for more details" "$LINENO" 5; }
20830 ac_cv_alignof_void_p=0
20835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_void_p" >&5
20836 printf "%s\n" "$ac_cv_alignof_void_p" >&6; }
20840 printf "%s\n" "#define ALIGNOF_VOID_P $ac_cv_alignof_void_p" >>confdefs.h
20849 ac_config_files="$ac_config_files Makefile fontconfig/Makefile fc-lang/Makefile fc-case/Makefile src/Makefile conf.d/Makefile fc-cache/Makefile fc-cat/Makefile fc-conflist/Makefile fc-list/Makefile fc-match/Makefile fc-pattern/Makefile fc-query/Makefile fc-scan/Makefile fc-validate/Makefile doc/Makefile doc/version.sgml its/Makefile po/Makefile.in po-conf/Makefile.in test/Makefile fontconfig.pc fontconfig-zip"
20851 cat >confcache <<\_ACEOF
20852 # This file is a shell script that caches the results of configure
20853 # tests run on this system so they can be shared between configure
20854 # scripts and configure runs, see configure's option --config-cache.
20855 # It is not useful on other systems. If it contains results you don't
20856 # want to keep, you may remove or edit it.
20858 # config.status only pays attention to the cache file if you give it
20859 # the --recheck option to rerun configure.
20861 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20862 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20863 # following values.
20867 # The following way of writing the cache mishandles newlines in values,
20868 # but we know of no workaround that is simple, portable, and efficient.
20869 # So, we kill variables containing newlines.
20870 # Ultrix sh set writes to stderr and can't be redirected directly,
20871 # and sets the high bit in the cache file unless we assign to the vars.
20873 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20874 eval ac_val=\$$ac_var
20878 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20879 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20882 _ | IFS | as_nl) ;; #(
20883 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20884 *) { eval $ac_var=; unset $ac_var;} ;;
20890 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20891 *${as_nl}ac_space=\ *)
20892 # `set' does not quote correctly, so add quotes: double-quote
20893 # substitution turns \\\\ into \\, and sed turns \\ into \.
20896 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20899 # `set' quotes correctly as required by POSIX, so do not add quotes.
20900 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20909 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20911 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20913 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20914 if test -w "$cache_file"; then
20915 if test "x$cache_file" != "x/dev/null"; then
20916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20917 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20918 if test ! -f "$cache_file" || test -h "$cache_file"; then
20919 cat confcache >"$cache_file"
20921 case $cache_file in #(
20923 mv -f confcache "$cache_file"$$ &&
20924 mv -f "$cache_file"$$ "$cache_file" ;; #(
20926 mv -f confcache "$cache_file" ;;
20931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20932 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20937 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20938 # Let make expand exec_prefix.
20939 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20941 DEFS=-DHAVE_CONFIG_H
20946 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20947 # 1. Remove the extension, and $U if already installed.
20948 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20949 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20950 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20951 # will be set to the directory where LIBOBJS objects are built.
20952 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20953 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20955 LIBOBJS=$ac_libobjs
20957 LTLIBOBJS=$ac_ltlibobjs
20960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20961 printf %s "checking that generated files are newer than configure... " >&6; }
20962 if test -n "$am_sleep_pid"; then
20963 # Hide warnings about reused PIDs.
20964 wait $am_sleep_pid 2>/dev/null
20966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20967 printf "%s\n" "done" >&6; }
20968 if test -n "$EXEEXT"; then
20970 am__EXEEXT_FALSE='#'
20972 am__EXEEXT_TRUE='#'
20976 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20977 as_fn_error $? "conditional \"AMDEP\" was never defined.
20978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20980 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20981 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20984 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
20985 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
20986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20988 if test -z "${OS_DARWIN_TRUE}" && test -z "${OS_DARWIN_FALSE}"; then
20989 as_fn_error $? "conditional \"OS_DARWIN\" was never defined.
20990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20992 if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
20993 as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined.
20994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20996 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
20997 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
20998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21000 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
21001 as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined.
21002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21004 if test -z "${FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE}" && test -z "${FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE}"; then
21005 as_fn_error $? "conditional \"FREETYPE_PCF_LONG_FAMILY_NAMES\" was never defined.
21006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21008 if test -z "${ENABLE_JSONC_TRUE}" && test -z "${ENABLE_JSONC_FALSE}"; then
21009 as_fn_error $? "conditional \"ENABLE_JSONC\" was never defined.
21010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21012 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
21013 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
21014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21016 if test -z "${USEDOCBOOK_TRUE}" && test -z "${USEDOCBOOK_FALSE}"; then
21017 as_fn_error $? "conditional \"USEDOCBOOK\" was never defined.
21018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21020 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
21021 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
21022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21024 if test -z "${ENABLE_CACHE_BUILD_TRUE}" && test -z "${ENABLE_CACHE_BUILD_FALSE}"; then
21025 as_fn_error $? "conditional \"ENABLE_CACHE_BUILD\" was never defined.
21026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21030 : "${CONFIG_STATUS=./config.status}"
21032 ac_clean_files_save=$ac_clean_files
21033 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21035 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21037 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21039 # Generated by $as_me.
21040 # Run this file to recreate the current configuration.
21041 # Compiler output produced by configure, useful for debugging
21042 # configure, is in config.log if it exists.
21045 ac_cs_recheck=false
21048 SHELL=\${CONFIG_SHELL-$SHELL}
21051 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21052 ## -------------------- ##
21053 ## M4sh Initialization. ##
21054 ## -------------------- ##
21056 # Be more Bourne compatible
21057 DUALCASE=1; export DUALCASE # for MKS sh
21059 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21063 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21064 # is contrary to our usage. Disable this feature.
21065 alias -g '${1+"$@"}'='"$@"'
21066 setopt NO_GLOB_SUBST
21068 case `(set -o) 2>/dev/null` in #(
21078 # Reset variables that may have inherited troublesome values from
21081 # IFS needs to be set, to space, tab, and newline, in precisely that order.
21082 # (If _AS_PATH_WALK were called with IFS unset, it would have the
21083 # side effect of setting IFS to empty, thus disabling word splitting.)
21084 # Quoting is to prevent editors from complaining about space-tab.
21094 # Ensure predictable behavior from utilities with locale-dependent output.
21100 # We cannot yet rely on "unset" to work, but we need these variables
21101 # to be unset--not just set to an empty or harmless value--now, to
21102 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
21103 # also avoids known problems related to "unset" and subshell syntax
21104 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21105 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21106 do eval test \${$as_var+y} \
21107 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21110 # Ensure that fds 0, 1, and 2 are open.
21111 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21112 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21113 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
21115 # The user is always right.
21116 if ${PATH_SEPARATOR+false} :; then
21118 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21119 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21125 # Find who we are. Look in the path if we contain no directory separator.
21128 *[\\/]* ) as_myself=$0 ;;
21129 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21130 for as_dir in $PATH
21133 case $as_dir in #(((
21136 *) as_dir=$as_dir/ ;;
21138 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21144 # We did not find ourselves, most probably we were run as `sh COMMAND'
21145 # in which case we are not to be found in the path.
21146 if test "x$as_myself" = x; then
21149 if test ! -f "$as_myself"; then
21150 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21156 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21157 # ----------------------------------------
21158 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21159 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21160 # script with STATUS, using 1 if that was 0.
21163 as_status=$1; test $as_status -eq 0 && as_status=1
21165 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21168 printf "%s\n" "$as_me: error: $2" >&2
21169 as_fn_exit $as_status
21174 # as_fn_set_status STATUS
21175 # -----------------------
21176 # Set $? to STATUS, without forking.
21177 as_fn_set_status ()
21180 } # as_fn_set_status
21182 # as_fn_exit STATUS
21183 # -----------------
21184 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21188 as_fn_set_status $1
21194 # Portably unset VAR.
21197 { eval $1=; unset $1;}
21199 as_unset=as_fn_unset
21201 # as_fn_append VAR VALUE
21202 # ----------------------
21203 # Append the text in VALUE to the end of the definition contained in VAR. Take
21204 # advantage of any shell optimizations that allow amortized linear growth over
21205 # repeated appends, instead of the typical quadratic growth present in naive
21207 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21209 eval 'as_fn_append ()
21220 # as_fn_arith ARG...
21221 # ------------------
21222 # Perform arithmetic evaluation on the ARGs, and store the result in the
21223 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21224 # must be portable across $(()) and expr.
21225 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21227 eval 'as_fn_arith ()
21234 as_val=`expr "$@" || test $? -eq 1`
21239 if expr a : '\(a\)' >/dev/null 2>&1 &&
21240 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21246 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21247 as_basename=basename
21252 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21258 as_me=`$as_basename -- "$0" ||
21259 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21260 X"$0" : 'X\(//\)$' \| \
21261 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21262 printf "%s\n" X/"$0" |
21263 sed '/^.*\/\([^/][^/]*\)\/*$/{
21277 # Avoid depending upon Character Ranges.
21278 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21279 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21280 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21281 as_cr_digits='0123456789'
21282 as_cr_alnum=$as_cr_Letters$as_cr_digits
21285 # Determine whether it's possible to make 'echo' print without a newline.
21286 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21287 # for compatibility with existing Makefiles.
21288 ECHO_C= ECHO_N= ECHO_T=
21289 case `echo -n x` in #(((((
21291 case `echo 'xy\c'` in
21292 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21294 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21301 # For backward compatibility with old third-party macros, we provide
21302 # the shell variables $as_echo and $as_echo_n. New code should use
21303 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21304 as_echo='printf %s\n'
21305 as_echo_n='printf %s'
21307 rm -f conf$$ conf$$.exe conf$$.file
21308 if test -d conf$$.dir; then
21309 rm -f conf$$.dir/conf$$.file
21312 mkdir conf$$.dir 2>/dev/null
21314 if (echo >conf$$.file) 2>/dev/null; then
21315 if ln -s conf$$.file conf$$ 2>/dev/null; then
21317 # ... but there are two gotchas:
21318 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21319 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21320 # In both cases, we have to default to `cp -pR'.
21321 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21323 elif ln conf$$.file conf$$ 2>/dev/null; then
21331 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21332 rmdir conf$$.dir 2>/dev/null
21337 # Create "$as_dir" as a directory, including parents if necessary.
21342 -*) as_dir=./$as_dir;;
21344 test -d "$as_dir" || eval $as_mkdir_p || {
21348 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21349 *) as_qdir=$as_dir;;
21351 as_dirs="'$as_qdir' $as_dirs"
21352 as_dir=`$as_dirname -- "$as_dir" ||
21353 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21354 X"$as_dir" : 'X\(//\)[^/]' \| \
21355 X"$as_dir" : 'X\(//\)$' \| \
21356 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21357 printf "%s\n" X"$as_dir" |
21358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21362 /^X\(\/\/\)[^/].*/{
21375 test -d "$as_dir" && break
21377 test -z "$as_dirs" || eval "mkdir $as_dirs"
21378 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21382 if mkdir -p . 2>/dev/null; then
21383 as_mkdir_p='mkdir -p "$as_dir"'
21385 test -d ./-p && rmdir ./-p
21390 # as_fn_executable_p FILE
21391 # -----------------------
21392 # Test if FILE is an executable regular file.
21393 as_fn_executable_p ()
21395 test -f "$1" && test -x "$1"
21396 } # as_fn_executable_p
21397 as_test_x='test -x'
21398 as_executable_p=as_fn_executable_p
21400 # Sed expression to map a string onto a valid CPP name.
21401 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21403 # Sed expression to map a string onto a valid variable name.
21404 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21408 ## ----------------------------------- ##
21409 ## Main body of $CONFIG_STATUS script. ##
21410 ## ----------------------------------- ##
21412 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21415 # Save the log message, to keep $0 and so on meaningful, and to
21416 # report actual input values of CONFIG_FILES etc. instead of their
21417 # values after options handling.
21419 This file was extended by fontconfig $as_me 2.14.2, which was
21420 generated by GNU Autoconf 2.71. Invocation command line was
21422 CONFIG_FILES = $CONFIG_FILES
21423 CONFIG_HEADERS = $CONFIG_HEADERS
21424 CONFIG_LINKS = $CONFIG_LINKS
21425 CONFIG_COMMANDS = $CONFIG_COMMANDS
21428 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21433 case $ac_config_files in *"
21434 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21437 case $ac_config_headers in *"
21438 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21443 # Files that config.status was made for.
21444 config_files="$ac_config_files"
21445 config_headers="$ac_config_headers"
21446 config_commands="$ac_config_commands"
21450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21452 \`$as_me' instantiates files and other configuration actions
21453 from templates according to the current configuration. Unless the files
21454 and actions are specified as TAGs, all are instantiated by default.
21456 Usage: $0 [OPTION]... [TAG]...
21458 -h, --help print this help, then exit
21459 -V, --version print version number and configuration settings, then exit
21460 --config print configuration, then exit
21461 -q, --quiet, --silent
21462 do not print progress messages
21463 -d, --debug don't remove temporary files
21464 --recheck update $as_me by reconfiguring in the same conditions
21465 --file=FILE[:TEMPLATE]
21466 instantiate the configuration file FILE
21467 --header=FILE[:TEMPLATE]
21468 instantiate the configuration header FILE
21470 Configuration files:
21473 Configuration headers:
21476 Configuration commands:
21479 Report bugs to <https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new>."
21482 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21483 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21485 ac_cs_config='$ac_cs_config_escaped'
21487 fontconfig config.status 2.14.2
21488 configured by $0, generated by GNU Autoconf 2.71,
21489 with options \\"\$ac_cs_config\\"
21491 Copyright (C) 2021 Free Software Foundation, Inc.
21492 This config.status script is free software; the Free Software Foundation
21493 gives unlimited permission to copy, distribute and modify it."
21500 test -n "\$AWK" || AWK=awk
21503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21504 # The default lists apply if the user does not specify any file.
21510 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21511 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21515 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21527 # Handling of the options.
21528 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21530 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21531 printf "%s\n" "$ac_cs_version"; exit ;;
21532 --config | --confi | --conf | --con | --co | --c )
21533 printf "%s\n" "$ac_cs_config"; exit ;;
21534 --debug | --debu | --deb | --de | --d | -d )
21536 --file | --fil | --fi | --f )
21539 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21540 '') as_fn_error $? "missing file argument" ;;
21542 as_fn_append CONFIG_FILES " '$ac_optarg'"
21543 ac_need_defaults=false;;
21544 --header | --heade | --head | --hea )
21547 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21549 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21550 ac_need_defaults=false;;
21552 # Conflict between --help and --header
21553 as_fn_error $? "ambiguous option: \`$1'
21554 Try \`$0 --help' for more information.";;
21555 --help | --hel | -h )
21556 printf "%s\n" "$ac_cs_usage"; exit ;;
21557 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21558 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21561 # This is an error.
21562 -*) as_fn_error $? "unrecognized option: \`$1'
21563 Try \`$0 --help' for more information." ;;
21565 *) as_fn_append ac_config_targets " $1"
21566 ac_need_defaults=false ;;
21572 ac_configure_extra_args=
21574 if $ac_cs_silent; then
21576 ac_configure_extra_args="$ac_configure_extra_args --silent"
21580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21581 if \$ac_cs_recheck; then
21582 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21584 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21585 CONFIG_SHELL='$SHELL'
21586 export CONFIG_SHELL
21591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21595 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21596 ## Running $as_me. ##
21598 printf "%s\n" "$ac_log"
21602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21606 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21609 # The HP-UX ksh and POSIX shell print the target directory to stdout
21610 # if CDPATH is set.
21611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21613 sed_quote_subst='$sed_quote_subst'
21614 double_quote_subst='$double_quote_subst'
21615 delay_variable_subst='$delay_variable_subst'
21616 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21617 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21618 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21619 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
21620 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21621 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21622 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21623 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21624 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21625 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21626 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21627 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21628 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21629 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21630 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21631 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21632 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21633 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21634 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21635 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21636 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21637 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21638 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21639 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21640 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21641 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21642 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21643 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21644 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21645 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21646 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21647 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21648 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21649 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21650 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21651 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21652 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21653 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21654 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21655 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21656 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21657 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21658 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21659 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21660 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21661 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21662 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21663 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21664 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21665 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21666 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21667 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21668 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21669 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21670 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21671 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21672 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21673 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21674 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21675 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21676 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21677 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"`'
21678 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21679 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21680 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21681 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21682 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21683 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21684 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21685 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21686 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21687 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21688 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21689 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21690 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21691 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21692 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21693 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21694 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21695 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21696 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21697 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21698 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21699 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21700 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21701 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21702 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21703 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21704 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21705 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21706 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21707 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21708 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21709 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21710 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21711 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21712 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21713 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21714 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21715 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21716 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21717 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21718 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21719 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21720 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21721 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21722 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21723 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21724 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21725 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21726 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21727 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21728 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21729 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21730 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21731 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21732 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21733 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21734 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21735 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21736 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21737 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21738 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21739 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21740 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21741 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21742 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21743 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21744 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21745 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21746 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21747 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21748 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21749 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21750 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21751 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21752 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21753 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21756 LTCFLAGS='$LTCFLAGS'
21757 compiler='$compiler_DEFAULT'
21759 # A function that is used when there is no print builtin or printf.
21760 func_fallback_echo ()
21762 eval 'cat <<_LTECHO_EOF
21767 # Quote evaled strings.
21785 deplibs_check_method \
21789 sharedlib_from_linklib_cmd \
21791 archiver_list_spec \
21797 lt_cv_sys_global_symbol_pipe \
21798 lt_cv_sys_global_symbol_to_cdecl \
21799 lt_cv_sys_global_symbol_to_import \
21800 lt_cv_sys_global_symbol_to_c_name_address \
21801 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21802 lt_cv_nm_interface \
21803 nm_file_list_spec \
21804 lt_cv_truncate_bin \
21805 lt_prog_compiler_no_builtin_flag \
21806 lt_prog_compiler_pic \
21807 lt_prog_compiler_wl \
21808 lt_prog_compiler_static \
21809 lt_cv_prog_compiler_c_o \
21818 export_dynamic_flag_spec \
21819 whole_archive_flag_spec \
21820 compiler_needs_object \
21822 allow_undefined_flag \
21823 no_undefined_flag \
21824 hardcode_libdir_flag_spec \
21825 hardcode_libdir_separator \
21829 variables_saved_for_relink \
21831 library_names_spec \
21833 install_override_mode \
21837 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21838 *[\\\\\\\`\\"\\\$]*)
21839 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21842 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21847 # Double-quote double-evaled strings.
21848 for var in reload_cmds \
21849 old_postinstall_cmds \
21850 old_postuninstall_cmds \
21852 extract_expsyms_cmds \
21853 old_archive_from_new_cmds \
21854 old_archive_from_expsyms_cmds \
21856 archive_expsym_cmds \
21858 module_expsym_cmds \
21859 export_symbols_cmds \
21863 postuninstall_cmds \
21865 sys_lib_search_path_spec \
21866 configure_time_dlsearch_path \
21867 configure_time_lt_sys_library_path; do
21868 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21869 *[\\\\\\\`\\"\\\$]*)
21870 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21873 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21878 ac_aux_dir='$ac_aux_dir'
21880 # See if we are running on zsh, and set the options that allow our
21881 # commands through without removal of \ escapes INIT.
21882 if test -n "\${ZSH_VERSION+set}"; then
21883 setopt NO_GLOB_SUBST
21894 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21895 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
21896 # from automake < 1.5.
21897 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21898 # Capture the value of LINGUAS because we need it to compute CATALOGS.
21899 LINGUAS="${LINGUAS-%UNSET%}"
21901 # variables for create stdint.h replacement
21904 ac_stdint_h="$ac_stdint_h"
21905 _ac_stdint_h=`printf "%s\n" "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
21906 ac_cv_stdint_message="$ac_cv_stdint_message"
21907 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
21908 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
21909 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
21910 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
21911 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
21912 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
21913 ac_cv_char_data_model="$ac_cv_char_data_model"
21914 ac_cv_long_data_model="$ac_cv_long_data_model"
21915 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
21916 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
21917 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
21922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21924 # Handling of arguments.
21925 for ac_config_target in $ac_config_targets
21927 case $ac_config_target in
21928 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21929 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21930 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21931 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
21932 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
21933 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21934 "fontconfig/Makefile") CONFIG_FILES="$CONFIG_FILES fontconfig/Makefile" ;;
21935 "fc-lang/Makefile") CONFIG_FILES="$CONFIG_FILES fc-lang/Makefile" ;;
21936 "fc-case/Makefile") CONFIG_FILES="$CONFIG_FILES fc-case/Makefile" ;;
21937 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21938 "conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES conf.d/Makefile" ;;
21939 "fc-cache/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cache/Makefile" ;;
21940 "fc-cat/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cat/Makefile" ;;
21941 "fc-conflist/Makefile") CONFIG_FILES="$CONFIG_FILES fc-conflist/Makefile" ;;
21942 "fc-list/Makefile") CONFIG_FILES="$CONFIG_FILES fc-list/Makefile" ;;
21943 "fc-match/Makefile") CONFIG_FILES="$CONFIG_FILES fc-match/Makefile" ;;
21944 "fc-pattern/Makefile") CONFIG_FILES="$CONFIG_FILES fc-pattern/Makefile" ;;
21945 "fc-query/Makefile") CONFIG_FILES="$CONFIG_FILES fc-query/Makefile" ;;
21946 "fc-scan/Makefile") CONFIG_FILES="$CONFIG_FILES fc-scan/Makefile" ;;
21947 "fc-validate/Makefile") CONFIG_FILES="$CONFIG_FILES fc-validate/Makefile" ;;
21948 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21949 "doc/version.sgml") CONFIG_FILES="$CONFIG_FILES doc/version.sgml" ;;
21950 "its/Makefile") CONFIG_FILES="$CONFIG_FILES its/Makefile" ;;
21951 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21952 "po-conf/Makefile.in") CONFIG_FILES="$CONFIG_FILES po-conf/Makefile.in" ;;
21953 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21954 "fontconfig.pc") CONFIG_FILES="$CONFIG_FILES fontconfig.pc" ;;
21955 "fontconfig-zip") CONFIG_FILES="$CONFIG_FILES fontconfig-zip" ;;
21957 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21962 # If the user did not use the arguments to specify the items to instantiate,
21963 # then the envvar interface is used. Set only those that are not.
21964 # We use the long form for the default assignment because of an extremely
21965 # bizarre bug on SunOS 4.1.3.
21966 if $ac_need_defaults; then
21967 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21968 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21969 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21972 # Have a temporary directory for convenience. Make it in the build tree
21973 # simply because there is no reason against having it here, and in addition,
21974 # creating and moving files from /tmp can sometimes cause problems.
21975 # Hook for its removal unless debugging.
21976 # Note that there is a small window in which the directory will not be cleaned:
21977 # after its creation but before its name has been assigned to `$tmp'.
21981 trap 'exit_status=$?
21982 : "${ac_tmp:=$tmp}"
21983 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21985 trap 'as_fn_exit 1' 1 2 13 15
21987 # Create a (secure) tmp directory for tmp files.
21990 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21994 tmp=./conf$$-$RANDOM
21995 (umask 077 && mkdir "$tmp")
21996 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21999 # Set up the scripts for CONFIG_FILES section.
22000 # No need to generate them if there are no CONFIG_FILES.
22001 # This happens for instance with `./config.status config.h'.
22002 if test -n "$CONFIG_FILES"; then
22005 ac_cr=`echo X | tr X '\015'`
22006 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22007 # But we know of no other shell where ac_cr would be empty at this
22008 # point, so we can use a bashism as a fallback.
22009 if test "x$ac_cr" = x; then
22010 eval ac_cr=\$\'\\r\'
22012 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22013 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22016 ac_cs_awk_cr=$ac_cr
22019 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22024 echo "cat >conf$$subs.awk <<_ACEOF" &&
22025 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22027 } >conf$$subs.sh ||
22028 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22029 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22031 for ac_last_try in false false false false false :; do
22032 . ./conf$$subs.sh ||
22033 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22035 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22036 if test $ac_delim_n = $ac_delim_num; then
22038 elif $ac_last_try; then
22039 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22041 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22044 rm -f conf$$subs.sh
22046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22047 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22051 s/^/S["/; s/!.*/"]=/
22061 s/\(.\{148\}\)..*/\1/
22063 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22068 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22075 s/\(.\{148\}\)..*/\1/
22077 s/["\\]/\\&/g; s/^/"/; s/$/"/
22081 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22086 ' <conf$$subs.awk | sed '
22091 ' >>$CONFIG_STATUS || ac_write_fail=1
22092 rm -f conf$$subs.awk
22093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22095 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22096 for (key in S) S_is_set[key] = 1
22102 nfields = split(line, field, "@")
22104 len = length(field[1])
22105 for (i = 2; i < nfields; i++) {
22107 keylen = length(key)
22108 if (S_is_set[key]) {
22110 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22111 len += length(value) + length(field[++i])
22122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22123 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22124 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22127 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22128 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22131 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22132 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22133 # trailing colons and then remove the whole line if VPATH becomes empty
22134 # (actually we leave an empty line to preserve line numbers).
22135 if test "x$srcdir" = x.; then
22136 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22155 fi # test -n "$CONFIG_FILES"
22157 # Set up the scripts for CONFIG_HEADERS section.
22158 # No need to generate them if there are no CONFIG_HEADERS.
22159 # This happens for instance with `./config.status Makefile'.
22160 if test -n "$CONFIG_HEADERS"; then
22161 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22165 # Transform confdefs.h into an awk script `defines.awk', embedded as
22166 # here-document in config.status, that substitutes the proper values into
22167 # config.h.in to produce config.h.
22169 # Create a delimiter string that does not exist in confdefs.h, to ease
22170 # handling of long lines.
22172 for ac_last_try in false false :; do
22173 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22174 if test -z "$ac_tt"; then
22176 elif $ac_last_try; then
22177 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22179 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22183 # For the awk script, D is an array of macro values keyed by name,
22184 # likewise P contains macro parameters if any. Preserve backslash
22185 # newline sequences.
22187 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22189 s/.\{148\}/&'"$ac_delim"'/g
22192 s/^[ ]*#[ ]*define[ ][ ]*/ /
22199 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22201 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22205 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22206 D["\1"]=" \3\\\\\\n"\\/p
22208 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22213 s/.\{148\}/&'"$ac_delim"'/g
22218 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22221 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22223 ' <confdefs.h | sed '
22224 s/'"$ac_delim"'/"\\\
22225 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22228 for (key in D) D_is_set[key] = 1
22231 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22233 split(line, arg, " ")
22234 if (arg[1] == "#") {
22238 defundef = substr(arg[1], 2)
22241 split(mac1, mac2, "(") #)
22243 prefix = substr(line, 1, index(line, defundef) - 1)
22244 if (D_is_set[macro]) {
22245 # Preserve the white space surrounding the "#".
22246 print prefix "define", macro P[macro] D[macro]
22249 # Replace #undef with comments. This is necessary, for example,
22250 # in the case of _POSIX_SOURCE, which is predefined and required
22251 # on some systems where configure will not decide to define it.
22252 if (defundef == "undef") {
22253 print "/*", prefix defundef, macro, "*/"
22261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22262 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22263 fi # test -n "$CONFIG_HEADERS"
22266 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22271 :[FHLC]) ac_mode=$ac_tag; continue;;
22273 case $ac_mode$ac_tag in
22275 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22276 :[FH]-) ac_tag=-:-;;
22277 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22294 -) ac_f="$ac_tmp/stdin";;
22295 *) # Look for the file first in the build tree, then in the source tree
22296 # (if the path is not absolute). The absolute path cannot be DOS-style,
22297 # because $ac_f cannot contain `:'.
22301 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22303 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22305 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22306 as_fn_append ac_file_inputs " '$ac_f'"
22309 # Let's still pretend it is `configure' which instantiates (i.e., don't
22310 # use $as_me), people would be surprised to read:
22311 # /* config.h. Generated by config.status. */
22312 configure_input='Generated from '`
22313 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22315 if test x"$ac_file" != x-; then
22316 configure_input="$ac_file. $configure_input"
22317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22318 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22320 # Neutralize special characters interpreted by sed in replacement strings.
22321 case $configure_input in #(
22322 *\&* | *\|* | *\\* )
22323 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22324 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22325 *) ac_sed_conf_input=$configure_input;;
22329 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22330 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22335 ac_dir=`$as_dirname -- "$ac_file" ||
22336 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22337 X"$ac_file" : 'X\(//\)[^/]' \| \
22338 X"$ac_file" : 'X\(//\)$' \| \
22339 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22340 printf "%s\n" X"$ac_file" |
22341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22345 /^X\(\/\/\)[^/].*/{
22358 as_dir="$ac_dir"; as_fn_mkdir_p
22362 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22364 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22365 # A ".." for each directory in $ac_dir_suffix.
22366 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22367 case $ac_top_builddir_sub in
22368 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22369 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22372 ac_abs_top_builddir=$ac_pwd
22373 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22374 # for backward compatibility:
22375 ac_top_builddir=$ac_top_build_prefix
22378 .) # We are building in place.
22380 ac_top_srcdir=$ac_top_builddir_sub
22381 ac_abs_top_srcdir=$ac_pwd ;;
22382 [\\/]* | ?:[\\/]* ) # Absolute name.
22383 ac_srcdir=$srcdir$ac_dir_suffix;
22384 ac_top_srcdir=$srcdir
22385 ac_abs_top_srcdir=$srcdir ;;
22386 *) # Relative name.
22387 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22388 ac_top_srcdir=$ac_top_build_prefix$srcdir
22389 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22391 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22401 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22402 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22404 ac_MKDIR_P=$MKDIR_P
22406 [\\/$]* | ?:[\\/]* ) ;;
22407 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22412 # If the template does not know about datarootdir, expand it.
22413 # FIXME: This hack should be removed a few years after 2.60.
22414 ac_datarootdir_hack=; ac_datarootdir_seen=
22425 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22426 *datarootdir*) ac_datarootdir_seen=yes;;
22427 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22429 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22432 ac_datarootdir_hack='
22433 s&@datadir@&$datadir&g
22434 s&@docdir@&$docdir&g
22435 s&@infodir@&$infodir&g
22436 s&@localedir@&$localedir&g
22437 s&@mandir@&$mandir&g
22438 s&\\\${datarootdir}&$datarootdir&g' ;;
22442 # Neutralize VPATH when `$srcdir' = `.'.
22443 # Shell code in configure.ac might set extrasub.
22444 # FIXME: do we really want to maintain this feature?
22445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22446 ac_sed_extra="$ac_vpsub
22449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22451 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22452 s|@configure_input@|$ac_sed_conf_input|;t t
22453 s&@top_builddir@&$ac_top_builddir_sub&;t t
22454 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22455 s&@srcdir@&$ac_srcdir&;t t
22456 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22457 s&@top_srcdir@&$ac_top_srcdir&;t t
22458 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22459 s&@builddir@&$ac_builddir&;t t
22460 s&@abs_builddir@&$ac_abs_builddir&;t t
22461 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22462 s&@INSTALL@&$ac_INSTALL&;t t
22463 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22464 $ac_datarootdir_hack
22466 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22467 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22469 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22470 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22471 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22472 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22474 which seems to be undefined. Please make sure it is defined" >&5
22475 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22476 which seems to be undefined. Please make sure it is defined" >&2;}
22478 rm -f "$ac_tmp/stdin"
22480 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22481 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22483 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22489 if test x"$ac_file" != x-; then
22491 printf "%s\n" "/* $configure_input */" >&1 \
22492 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22493 } >"$ac_tmp/config.h" \
22494 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22495 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22497 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22500 mv "$ac_tmp/config.h" "$ac_file" \
22501 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22504 printf "%s\n" "/* $configure_input */" >&1 \
22505 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22506 || as_fn_error $? "could not create -" "$LINENO" 5
22508 # Compute "$ac_file"'s index in $config_headers.
22511 for _am_header in $config_headers :; do
22512 case $_am_header in
22513 $_am_arg | $_am_arg:* )
22516 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22519 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22520 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22521 X"$_am_arg" : 'X\(//\)[^/]' \| \
22522 X"$_am_arg" : 'X\(//\)$' \| \
22523 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22524 printf "%s\n" X"$_am_arg" |
22525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22529 /^X\(\/\/\)[^/].*/{
22541 s/.*/./; q'`/stamp-h$_am_stamp_count
22544 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22545 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22550 case $ac_file$ac_mode in
22551 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22552 # Older Autoconf quotes --file arguments for eval, but not when files
22553 # are listed without --file. Let's play safe and only enable the eval
22554 # if we detect the quoting.
22555 # TODO: see whether this extra hack can be removed once we start
22556 # requiring Autoconf 2.70 or later.
22557 case $CONFIG_FILES in #(
22559 eval set x "$CONFIG_FILES" ;; #(
22561 set x $CONFIG_FILES ;; #(
22566 # Used to flag and report bootstrapping failures.
22570 # Strip MF so we end up with the name of the file.
22571 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22572 # Check whether this is an Automake generated Makefile which includes
22573 # dependency-tracking related rules and includes.
22574 # Grep'ing the whole file directly is not great: AIX grep has a line
22575 # limit of 2048, but all sed's we know have understand at least 4000.
22576 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22578 am_dirpart=`$as_dirname -- "$am_mf" ||
22579 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22580 X"$am_mf" : 'X\(//\)[^/]' \| \
22581 X"$am_mf" : 'X\(//\)$' \| \
22582 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22583 printf "%s\n" X"$am_mf" |
22584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22588 /^X\(\/\/\)[^/].*/{
22601 am_filepart=`$as_basename -- "$am_mf" ||
22602 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22603 X"$am_mf" : 'X\(//\)$' \| \
22604 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22605 printf "%s\n" X/"$am_mf" |
22606 sed '/^.*\/\([^/][^/]*\)\/*$/{
22619 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22620 && sed -e '/# am--include-marker/d' "$am_filepart" \
22621 | $MAKE -f - am--depfiles" >&5
22622 (cd "$am_dirpart" \
22623 && sed -e '/# am--include-marker/d' "$am_filepart" \
22624 | $MAKE -f - am--depfiles) >&5 2>&5
22626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); } || am_rc=$?
22629 if test $am_rc -ne 0; then
22630 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22631 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22632 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22633 for automatic dependency tracking. If GNU make was not used, consider
22634 re-running the configure script with MAKE=\"gmake\" (or whatever is
22635 necessary). You can also try re-running configure with the
22636 '--disable-dependency-tracking' option to at least be able to build
22637 the package (albeit without support for automatic dependency tracking).
22638 See \`config.log' for more details" "$LINENO" 5; }
22640 { am_dirpart=; unset am_dirpart;}
22641 { am_filepart=; unset am_filepart;}
22642 { am_mf=; unset am_mf;}
22643 { am_rc=; unset am_rc;}
22644 rm -f conftest-deps.mk
22649 # See if we are running on zsh, and set the options that allow our
22650 # commands through without removal of \ escapes.
22651 if test -n "${ZSH_VERSION+set}"; then
22652 setopt NO_GLOB_SUBST
22656 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22659 cat <<_LT_EOF >> "$cfgfile"
22661 # Generated automatically by $as_me ($PACKAGE) $VERSION
22662 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22663 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22665 # Provide generalized library-building support services.
22666 # Written by Gordon Matzigkeit, 1996
22668 # Copyright (C) 2014 Free Software Foundation, Inc.
22669 # This is free software; see the source for copying conditions. There is NO
22670 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22672 # GNU Libtool is free software; you can redistribute it and/or modify
22673 # it under the terms of the GNU General Public License as published by
22674 # the Free Software Foundation; either version 2 of of the License, or
22675 # (at your option) any later version.
22677 # As a special exception to the GNU General Public License, if you
22678 # distribute this file as part of a program or library that is built
22679 # using GNU Libtool, you may include this file under the same
22680 # distribution terms that you use for the rest of that program.
22682 # GNU Libtool is distributed in the hope that it will be useful, but
22683 # WITHOUT ANY WARRANTY; without even the implied warranty of
22684 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22685 # GNU General Public License for more details.
22687 # You should have received a copy of the GNU General Public License
22688 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22691 # The names of the tagged configurations supported by this script.
22694 # Configured defaults for sys_lib_dlsearch_path munging.
22695 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22697 # ### BEGIN LIBTOOL CONFIG
22699 # Which release of libtool.m4 was used?
22700 macro_version=$macro_version
22701 macro_revision=$macro_revision
22703 # Whether or not to build static libraries.
22704 build_old_libs=$enable_static
22706 # Assembler program.
22709 # DLL creation program.
22710 DLLTOOL=$lt_DLLTOOL
22712 # Object dumper program.
22713 OBJDUMP=$lt_OBJDUMP
22715 # Whether or not to build shared libraries.
22716 build_libtool_libs=$enable_shared
22718 # What type of objects to build.
22721 # Whether or not to optimize for fast installation.
22722 fast_install=$enable_fast_install
22724 # Shared archive member basename,for filename based shared library versioning on AIX.
22725 shared_archive_member_spec=$shared_archive_member_spec
22727 # Shell to use when invoking shell scripts.
22730 # An echo program that protects backslashes.
22733 # The PATH separator for the build system.
22734 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22737 host_alias=$host_alias
22741 # The build system.
22742 build_alias=$build_alias
22746 # A sed program that does not truncate output.
22749 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22750 Xsed="\$SED -e 1s/^X//"
22752 # A grep program that handles long lines.
22758 # A literal string matcher.
22761 # A BSD- or MS-compatible name lister.
22764 # Whether we need soft or hard links.
22767 # What is the maximum length of a command?
22768 max_cmd_len=$max_cmd_len
22770 # Object file suffix (normally "o").
22773 # Executable file suffix (normally "").
22776 # whether the shell understands "unset".
22779 # turn spaces into newlines.
22782 # turn newlines into spaces.
22785 # convert \$build file names to \$host format.
22786 to_host_file_cmd=$lt_cv_to_host_file_cmd
22788 # convert \$build files to toolchain format.
22789 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22791 # A file(cmd) program that detects file types.
22792 FILECMD=$lt_FILECMD
22794 # Method to check whether dependent libraries are shared objects.
22795 deplibs_check_method=$lt_deplibs_check_method
22797 # Command to use when deplibs_check_method = "file_magic".
22798 file_magic_cmd=$lt_file_magic_cmd
22800 # How to find potential files when deplibs_check_method = "file_magic".
22801 file_magic_glob=$lt_file_magic_glob
22803 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22804 want_nocaseglob=$lt_want_nocaseglob
22806 # Command to associate shared and link libraries.
22807 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22812 # Flags to create an archive (by configure).
22813 lt_ar_flags=$lt_ar_flags
22815 # Flags to create an archive.
22816 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22818 # How to feed a file listing to the archiver.
22819 archiver_list_spec=$lt_archiver_list_spec
22821 # A symbol stripping program.
22824 # Commands used to install an old-style archive.
22826 old_postinstall_cmds=$lt_old_postinstall_cmds
22827 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22829 # Whether to use a lock for old archive extraction.
22830 lock_old_archive_extraction=$lock_old_archive_extraction
22835 # LTCC compiler flags.
22836 LTCFLAGS=$lt_CFLAGS
22838 # Take the output of nm and produce a listing of raw symbols and C names.
22839 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22841 # Transform the output of nm in a proper C declaration.
22842 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22844 # Transform the output of nm into a list of symbols to manually relocate.
22845 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22847 # Transform the output of nm in a C name address pair.
22848 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22850 # Transform the output of nm in a C name address pair when lib prefix is needed.
22851 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22853 # The name lister interface.
22854 nm_interface=$lt_lt_cv_nm_interface
22856 # Specify filename containing input files for \$NM.
22857 nm_file_list_spec=$lt_nm_file_list_spec
22859 # The root where to search for dependent libraries,and where our libraries should be installed.
22860 lt_sysroot=$lt_sysroot
22862 # Command to truncate a binary pipe.
22863 lt_truncate_bin=$lt_lt_cv_truncate_bin
22865 # The name of the directory that contains temporary libtool files.
22868 # Used to examine libraries when file_magic_cmd begins with "file".
22869 MAGIC_CMD=$MAGIC_CMD
22871 # Must we lock files when doing compilation?
22872 need_locks=$lt_need_locks
22875 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22877 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22878 DSYMUTIL=$lt_DSYMUTIL
22880 # Tool to change global to local symbols on Mac OS X.
22883 # Tool to manipulate fat objects and archives on Mac OS X.
22886 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22889 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22890 OTOOL64=$lt_OTOOL64
22892 # Old archive suffix (normally "a").
22895 # Shared library suffix (normally ".so").
22896 shrext_cmds=$lt_shrext_cmds
22898 # The commands to extract the exported symbol list from a shared archive.
22899 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22901 # Variables whose values should be saved in libtool wrapper scripts and
22902 # restored at link time.
22903 variables_saved_for_relink=$lt_variables_saved_for_relink
22905 # Do we need the "lib" prefix for modules?
22906 need_lib_prefix=$need_lib_prefix
22908 # Do we need a version for libraries?
22909 need_version=$need_version
22911 # Library versioning type.
22912 version_type=$version_type
22914 # Shared library runtime path variable.
22915 runpath_var=$runpath_var
22917 # Shared library path variable.
22918 shlibpath_var=$shlibpath_var
22920 # Is shlibpath searched before the hard-coded library search path?
22921 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22923 # Format of library name prefix.
22924 libname_spec=$lt_libname_spec
22926 # List of archive names. First name is the real one, the rest are links.
22927 # The last name is the one that the linker finds with -lNAME
22928 library_names_spec=$lt_library_names_spec
22930 # The coded name of the library, if different from the real name.
22931 soname_spec=$lt_soname_spec
22933 # Permission mode override for installation of shared libraries.
22934 install_override_mode=$lt_install_override_mode
22936 # Command to use after installation of a shared archive.
22937 postinstall_cmds=$lt_postinstall_cmds
22939 # Command to use after uninstallation of a shared archive.
22940 postuninstall_cmds=$lt_postuninstall_cmds
22942 # Commands used to finish a libtool library installation in a directory.
22943 finish_cmds=$lt_finish_cmds
22945 # As "finish_cmds", except a single script fragment to be evaled but
22947 finish_eval=$lt_finish_eval
22949 # Whether we should hardcode library paths into libraries.
22950 hardcode_into_libs=$hardcode_into_libs
22952 # Compile-time system search path for libraries.
22953 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22955 # Detected run-time system search path for libraries.
22956 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22958 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22959 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22961 # Whether dlopen is supported.
22962 dlopen_support=$enable_dlopen
22964 # Whether dlopen of programs is supported.
22965 dlopen_self=$enable_dlopen_self
22967 # Whether dlopen of statically linked programs is supported.
22968 dlopen_self_static=$enable_dlopen_self_static
22970 # Commands to strip libraries.
22971 old_striplib=$lt_old_striplib
22972 striplib=$lt_striplib
22975 # The linker used to build libraries.
22978 # How to create reloadable object files.
22979 reload_flag=$lt_reload_flag
22980 reload_cmds=$lt_reload_cmds
22982 # Commands used to build an old-style archive.
22983 old_archive_cmds=$lt_old_archive_cmds
22985 # A language specific compiler.
22988 # Is the compiler the GNU compiler?
22991 # Compiler flag to turn off builtin functions.
22992 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22994 # Additional compiler flags for building library objects.
22995 pic_flag=$lt_lt_prog_compiler_pic
22997 # How to pass a linker flag through the compiler.
22998 wl=$lt_lt_prog_compiler_wl
23000 # Compiler flag to prevent dynamic linking.
23001 link_static_flag=$lt_lt_prog_compiler_static
23003 # Does compiler simultaneously support -c and -o options?
23004 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23006 # Whether or not to add -lc for building shared libraries.
23007 build_libtool_need_lc=$archive_cmds_need_lc
23009 # Whether or not to disallow shared libs when runtime libs are static.
23010 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23012 # Compiler flag to allow reflexive dlopens.
23013 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23015 # Compiler flag to generate shared objects directly from archives.
23016 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23018 # Whether the compiler copes with passing no objects directly.
23019 compiler_needs_object=$lt_compiler_needs_object
23021 # Create an old-style archive from a shared archive.
23022 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23024 # Create a temporary old-style archive to link instead of a shared archive.
23025 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23027 # Commands used to build a shared archive.
23028 archive_cmds=$lt_archive_cmds
23029 archive_expsym_cmds=$lt_archive_expsym_cmds
23031 # Commands used to build a loadable module if different from building
23032 # a shared archive.
23033 module_cmds=$lt_module_cmds
23034 module_expsym_cmds=$lt_module_expsym_cmds
23036 # Whether we are building with GNU ld or not.
23037 with_gnu_ld=$lt_with_gnu_ld
23039 # Flag that allows shared libraries with undefined symbols to be built.
23040 allow_undefined_flag=$lt_allow_undefined_flag
23042 # Flag that enforces no undefined symbols.
23043 no_undefined_flag=$lt_no_undefined_flag
23045 # Flag to hardcode \$libdir into a binary during linking.
23046 # This must work even if \$libdir does not exist
23047 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23049 # Whether we need a single "-rpath" flag with a separated argument.
23050 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23052 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23053 # DIR into the resulting binary.
23054 hardcode_direct=$hardcode_direct
23056 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23057 # DIR into the resulting binary and the resulting library dependency is
23058 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23059 # library is relocated.
23060 hardcode_direct_absolute=$hardcode_direct_absolute
23062 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23063 # into the resulting binary.
23064 hardcode_minus_L=$hardcode_minus_L
23066 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23067 # into the resulting binary.
23068 hardcode_shlibpath_var=$hardcode_shlibpath_var
23070 # Set to "yes" if building a shared library automatically hardcodes DIR
23071 # into the library and all subsequent libraries and executables linked
23073 hardcode_automatic=$hardcode_automatic
23075 # Set to yes if linker adds runtime paths of dependent libraries
23076 # to runtime path list.
23077 inherit_rpath=$inherit_rpath
23079 # Whether libtool must link a program against all its dependency libraries.
23080 link_all_deplibs=$link_all_deplibs
23082 # Set to "yes" if exported symbols are required.
23083 always_export_symbols=$always_export_symbols
23085 # The commands to list exported symbols.
23086 export_symbols_cmds=$lt_export_symbols_cmds
23088 # Symbols that should not be listed in the preloaded symbols.
23089 exclude_expsyms=$lt_exclude_expsyms
23091 # Symbols that must always be exported.
23092 include_expsyms=$lt_include_expsyms
23094 # Commands necessary for linking programs (against libraries) with templates.
23095 prelink_cmds=$lt_prelink_cmds
23097 # Commands necessary for finishing linking programs.
23098 postlink_cmds=$lt_postlink_cmds
23100 # Specify filename containing input files.
23101 file_list_spec=$lt_file_list_spec
23103 # How to hardcode a shared library path into an executable.
23104 hardcode_action=$hardcode_action
23106 # ### END LIBTOOL CONFIG
23110 cat <<'_LT_EOF' >> "$cfgfile"
23112 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23114 # func_munge_path_list VARIABLE PATH
23115 # -----------------------------------
23116 # VARIABLE is name of variable containing _space_ separated list of
23117 # directories to be munged by the contents of PATH, which is string
23120 # string "DIR[ DIR]" will be prepended to VARIABLE
23122 # string "DIR[ DIR]" will be appended to VARIABLE
23123 # "DIRP[:DIRP]::[DIRA:]DIRA"
23124 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23125 # "DIRA[ DIRA]" will be appended to VARIABLE
23127 # VARIABLE will be replaced by "DIR[ DIR]"
23128 func_munge_path_list ()
23134 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23137 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23140 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23141 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23144 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23150 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23151 func_cc_basename ()
23153 for cc_temp in $*""; do
23155 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23156 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23161 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23165 # ### END FUNCTIONS SHARED WITH CONFIGURE
23171 cat <<\_LT_EOF >> "$cfgfile"
23172 # AIX sometimes has problems with the GCC collect2 program. For some
23173 # reason, if we set the COLLECT_NAMES environment variable, the problems
23174 # vanish in a puff of smoke.
23175 if test set != "${COLLECT_NAMES+set}"; then
23177 export COLLECT_NAMES
23185 ltmain=$ac_aux_dir/ltmain.sh
23188 # We use sed instead of cat because bash on DJGPP gets confused if
23189 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23190 # text mode, it properly converts lines to CR/LF. This bash problem
23191 # is reportedly fixed, but why not run on old versions too?
23192 $SED '$q' "$ltmain" >> "$cfgfile" \
23193 || (rm -f "$cfgfile"; exit 1)
23195 mv -f "$cfgfile" "$ofile" ||
23196 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23200 "po-directories":C)
23201 for ac_file in $CONFIG_FILES; do
23202 # Support "outfile[:infile[:infile...]]"
23204 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23206 # PO directories have a Makefile.in generated from Makefile.in.in.
23207 case "$ac_file" in */Makefile.in)
23208 # Adjust a relative srcdir.
23209 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23210 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
23211 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23212 # In autoconf-2.13 it is called $ac_given_srcdir.
23213 # In autoconf-2.50 it is called $srcdir.
23214 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23215 case "$ac_given_srcdir" in
23216 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23217 /*) top_srcdir="$ac_given_srcdir" ;;
23218 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
23220 # Treat a directory as a PO directory if and only if it has a
23221 # POTFILES.in file. This allows packages to have multiple PO
23222 # directories under different names or in different locations.
23223 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23224 rm -f "$ac_dir/POTFILES"
23225 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23226 gt_tab=`printf '\t'`
23227 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23228 POMAKEFILEDEPS="POTFILES.in"
23229 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23230 # on $ac_dir but don't depend on user-specified configuration
23232 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23233 # The LINGUAS file contains the set of available languages.
23234 if test -n "$OBSOLETE_ALL_LINGUAS"; then
23235 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23237 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23238 # Hide the ALL_LINGUAS assignment from automake < 1.5.
23239 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23240 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23242 # The set of available languages was given in configure.in.
23243 # Hide the ALL_LINGUAS assignment from automake < 1.5.
23244 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23247 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23248 # Compute UPDATEPOFILES
23249 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23250 # Compute DUMMYPOFILES
23251 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23253 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23254 case "$ac_given_srcdir" in
23256 *) srcdirpre='$(srcdir)/' ;;
23262 for lang in $ALL_LINGUAS; do
23263 POFILES="$POFILES $srcdirpre$lang.po"
23264 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23265 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23266 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23268 # CATALOGS depends on both $ac_dir and the user's LINGUAS
23269 # environment variable.
23271 if test -n "$ALL_LINGUAS"; then
23272 for presentlang in $ALL_LINGUAS; do
23274 if test "%UNSET%" != "$LINGUAS"; then
23275 desiredlanguages="$LINGUAS"
23277 desiredlanguages="$ALL_LINGUAS"
23279 for desiredlang in $desiredlanguages; do
23280 # Use the presentlang catalog if desiredlang is
23281 # a. equal to presentlang, or
23282 # b. a variant of presentlang (because in this case,
23283 # presentlang can be used as a fallback for messages
23284 # which are not translated in the desiredlang catalog).
23285 case "$desiredlang" in
23286 "$presentlang"*) useit=yes;;
23289 if test $useit = yes; then
23290 INST_LINGUAS="$INST_LINGUAS $presentlang"
23295 if test -n "$INST_LINGUAS"; then
23296 for lang in $INST_LINGUAS; do
23297 CATALOGS="$CATALOGS $lang.gmo"
23300 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23301 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
23302 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23303 if test -f "$f"; then
23305 *.orig | *.bak | *~) ;;
23306 *) cat "$f" >> "$ac_dir/Makefile" ;;
23315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
23316 printf "%s\n" "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
23317 ac_stdint=$tmp/_stdint.h
23319 echo "#ifndef" $_ac_stdint_h >$ac_stdint
23320 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
23321 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
23322 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
23323 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
23324 if test "_$ac_cv_header_stdint_t" != "_" ; then
23325 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
23326 echo "#include <stdint.h>" >>$ac_stdint
23327 echo "#endif" >>$ac_stdint
23328 echo "#endif" >>$ac_stdint
23331 cat >>$ac_stdint <<STDINT_EOF
23333 /* ................... shortcircuit part ........................... */
23335 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
23336 #include <stdint.h>
23338 #include <stddef.h>
23340 /* .................... configured part ............................ */
23344 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
23345 if test "_$ac_cv_header_stdint_x" != "_" ; then
23346 ac_header="$ac_cv_header_stdint_x"
23347 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
23349 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
23352 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
23353 if test "_$ac_cv_header_stdint_o" != "_" ; then
23354 ac_header="$ac_cv_header_stdint_o"
23355 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
23357 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
23360 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
23361 if test "_$ac_cv_header_stdint_u" != "_" ; then
23362 ac_header="$ac_cv_header_stdint_u"
23363 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
23365 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
23368 echo "" >>$ac_stdint
23370 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
23371 echo "#include <$ac_header>" >>$ac_stdint
23372 echo "" >>$ac_stdint
23375 echo "/* which 64bit typedef has been found */" >>$ac_stdint
23376 if test "$ac_cv_type_uint64_t" = "yes" ; then
23377 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
23379 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
23381 if test "$ac_cv_type_u_int64_t" = "yes" ; then
23382 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
23384 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
23386 echo "" >>$ac_stdint
23388 echo "/* which type model has been detected */" >>$ac_stdint
23389 if test "_$ac_cv_char_data_model" != "_" ; then
23390 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
23391 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
23393 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
23394 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
23396 echo "" >>$ac_stdint
23398 echo "/* whether int_least types were detected */" >>$ac_stdint
23399 if test "$ac_cv_type_int_least32_t" = "yes"; then
23400 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
23402 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
23404 echo "/* whether int_fast types were detected */" >>$ac_stdint
23405 if test "$ac_cv_type_int_fast32_t" = "yes"; then
23406 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
23408 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
23410 echo "/* whether intmax_t type was detected */" >>$ac_stdint
23411 if test "$ac_cv_type_intmax_t" = "yes"; then
23412 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
23414 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
23416 echo "" >>$ac_stdint
23418 cat >>$ac_stdint <<STDINT_EOF
23419 /* .................... detections part ............................ */
23421 /* whether we need to define bitspecific types from compiler base types */
23422 #ifndef _STDINT_HEADER_INTPTR
23423 #ifndef _STDINT_HEADER_UINT32
23424 #ifndef _STDINT_HEADER_U_INT32
23425 #define _STDINT_NEED_INT_MODEL_T
23427 #define _STDINT_HAVE_U_INT_TYPES
23432 #ifdef _STDINT_HAVE_U_INT_TYPES
23433 #undef _STDINT_NEED_INT_MODEL_T
23436 #ifdef _STDINT_CHAR_MODEL
23437 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
23438 #ifndef _STDINT_BYTE_MODEL
23439 #define _STDINT_BYTE_MODEL 12
23444 #ifndef _STDINT_HAVE_INT_LEAST32_T
23445 #define _STDINT_NEED_INT_LEAST_T
23448 #ifndef _STDINT_HAVE_INT_FAST32_T
23449 #define _STDINT_NEED_INT_FAST_T
23452 #ifndef _STDINT_HEADER_INTPTR
23453 #define _STDINT_NEED_INTPTR_T
23454 #ifndef _STDINT_HAVE_INTMAX_T
23455 #define _STDINT_NEED_INTMAX_T
23460 /* .................... definition part ............................ */
23462 /* some system headers have good uint64_t */
23463 #ifndef _HAVE_UINT64_T
23464 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
23465 #define _HAVE_UINT64_T
23466 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
23467 #define _HAVE_UINT64_T
23468 typedef u_int64_t uint64_t;
23472 #ifndef _HAVE_UINT64_T
23473 /* .. here are some common heuristics using compiler runtime specifics */
23474 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
23475 #define _HAVE_UINT64_T
23476 #define _HAVE_LONGLONG_UINT64_T
23477 typedef long long int64_t;
23478 typedef unsigned long long uint64_t;
23480 #elif !defined __STRICT_ANSI__
23481 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
23482 #define _HAVE_UINT64_T
23483 typedef __int64 int64_t;
23484 typedef unsigned __int64 uint64_t;
23486 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
23487 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
23488 #if !defined _NO_LONGLONG
23489 #define _HAVE_UINT64_T
23490 #define _HAVE_LONGLONG_UINT64_T
23491 typedef long long int64_t;
23492 typedef unsigned long long uint64_t;
23495 #elif defined __alpha || (defined __mips && defined _ABIN32)
23496 #if !defined _NO_LONGLONG
23497 typedef long int64_t;
23498 typedef unsigned long uint64_t;
23500 /* compiler/cpu type to define int64_t */
23505 #if defined _STDINT_HAVE_U_INT_TYPES
23506 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
23507 typedef u_int8_t uint8_t;
23508 typedef u_int16_t uint16_t;
23509 typedef u_int32_t uint32_t;
23511 /* glibc compatibility */
23512 #ifndef __int8_t_defined
23513 #define __int8_t_defined
23517 #ifdef _STDINT_NEED_INT_MODEL_T
23518 /* we must guess all the basic types. Apart from byte-adressable system, */
23519 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
23520 /* (btw, those nibble-addressable systems are way off, or so we assume) */
23523 #if defined _STDINT_BYTE_MODEL
23524 #if _STDINT_LONG_MODEL+0 == 242
23525 /* 2:4:2 = IP16 = a normal 16-bit system */
23526 typedef unsigned char uint8_t;
23527 typedef unsigned short uint16_t;
23528 typedef unsigned long uint32_t;
23529 #ifndef __int8_t_defined
23530 #define __int8_t_defined
23531 typedef char int8_t;
23532 typedef short int16_t;
23533 typedef long int32_t;
23535 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
23536 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
23537 /* 4:4:4 = ILP32 = a normal 32-bit system */
23538 typedef unsigned char uint8_t;
23539 typedef unsigned short uint16_t;
23540 typedef unsigned int uint32_t;
23541 #ifndef __int8_t_defined
23542 #define __int8_t_defined
23543 typedef char int8_t;
23544 typedef short int16_t;
23545 typedef int int32_t;
23547 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
23548 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
23549 /* 4:8:8 = LP64 = a normal 64-bit system */
23550 typedef unsigned char uint8_t;
23551 typedef unsigned short uint16_t;
23552 typedef unsigned int uint32_t;
23553 #ifndef __int8_t_defined
23554 #define __int8_t_defined
23555 typedef char int8_t;
23556 typedef short int16_t;
23557 typedef int int32_t;
23559 /* this system has a "long" of 64bit */
23560 #ifndef _HAVE_UINT64_T
23561 #define _HAVE_UINT64_T
23562 typedef unsigned long uint64_t;
23563 typedef long int64_t;
23565 #elif _STDINT_LONG_MODEL+0 == 448
23566 /* LLP64 a 64-bit system derived from a 32-bit system */
23567 typedef unsigned char uint8_t;
23568 typedef unsigned short uint16_t;
23569 typedef unsigned int uint32_t;
23570 #ifndef __int8_t_defined
23571 #define __int8_t_defined
23572 typedef char int8_t;
23573 typedef short int16_t;
23574 typedef int int32_t;
23576 /* assuming the system has a "long long" */
23577 #ifndef _HAVE_UINT64_T
23578 #define _HAVE_UINT64_T
23579 #define _HAVE_LONGLONG_UINT64_T
23580 typedef unsigned long long uint64_t;
23581 typedef long long int64_t;
23584 #define _STDINT_NO_INT32_T
23587 #define _STDINT_NO_INT8_T
23588 #define _STDINT_NO_INT32_T
23593 * quote from SunOS-5.8 sys/inttypes.h:
23594 * Use at your own risk. As of February 1996, the committee is squarely
23595 * behind the fixed sized types; the "least" and "fast" types are still being
23596 * discussed. The probability that the "fast" types may be removed before
23597 * the standard is finalized is high enough that they are not currently
23601 #if defined _STDINT_NEED_INT_LEAST_T
23602 typedef int8_t int_least8_t;
23603 typedef int16_t int_least16_t;
23604 typedef int32_t int_least32_t;
23605 #ifdef _HAVE_UINT64_T
23606 typedef int64_t int_least64_t;
23609 typedef uint8_t uint_least8_t;
23610 typedef uint16_t uint_least16_t;
23611 typedef uint32_t uint_least32_t;
23612 #ifdef _HAVE_UINT64_T
23613 typedef uint64_t uint_least64_t;
23618 #if defined _STDINT_NEED_INT_FAST_T
23619 typedef int8_t int_fast8_t;
23620 typedef int int_fast16_t;
23621 typedef int32_t int_fast32_t;
23622 #ifdef _HAVE_UINT64_T
23623 typedef int64_t int_fast64_t;
23626 typedef uint8_t uint_fast8_t;
23627 typedef unsigned uint_fast16_t;
23628 typedef uint32_t uint_fast32_t;
23629 #ifdef _HAVE_UINT64_T
23630 typedef uint64_t uint_fast64_t;
23635 #ifdef _STDINT_NEED_INTMAX_T
23636 #ifdef _HAVE_UINT64_T
23637 typedef int64_t intmax_t;
23638 typedef uint64_t uintmax_t;
23640 typedef long intmax_t;
23641 typedef unsigned long uintmax_t;
23645 #ifdef _STDINT_NEED_INTPTR_T
23646 #ifndef __intptr_t_defined
23647 #define __intptr_t_defined
23648 /* we encourage using "long" to store pointer values, never use "int" ! */
23649 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
23650 typedef unsigned int uintptr_t;
23651 typedef int intptr_t;
23652 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
23653 typedef unsigned long uintptr_t;
23654 typedef long intptr_t;
23655 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
23656 typedef uint64_t uintptr_t;
23657 typedef int64_t intptr_t;
23658 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
23659 typedef unsigned long uintptr_t;
23660 typedef long intptr_t;
23665 /* The ISO C99 standard specifies that in C++ implementations these
23666 should only be defined if explicitly requested. */
23667 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
23671 # define INT8_C(c) c
23672 # define INT16_C(c) c
23673 # define INT32_C(c) c
23674 # ifdef _HAVE_LONGLONG_UINT64_T
23675 # define INT64_C(c) c ## L
23677 # define INT64_C(c) c ## LL
23681 # define UINT8_C(c) c ## U
23682 # define UINT16_C(c) c ## U
23683 # define UINT32_C(c) c ## U
23684 # ifdef _HAVE_LONGLONG_UINT64_T
23685 # define UINT64_C(c) c ## UL
23687 # define UINT64_C(c) c ## ULL
23690 /* Maximal type. */
23691 # ifdef _HAVE_LONGLONG_UINT64_T
23692 # define INTMAX_C(c) c ## L
23693 # define UINTMAX_C(c) c ## UL
23695 # define INTMAX_C(c) c ## LL
23696 # define UINTMAX_C(c) c ## ULL
23699 /* literalnumbers */
23703 /* These limits are merily those of a two complement byte-oriented system */
23705 /* Minimum of signed integral types. */
23706 # define INT8_MIN (-128)
23707 # define INT16_MIN (-32767-1)
23708 # define INT32_MIN (-2147483647-1)
23709 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
23710 /* Maximum of signed integral types. */
23711 # define INT8_MAX (127)
23712 # define INT16_MAX (32767)
23713 # define INT32_MAX (2147483647)
23714 # define INT64_MAX (__INT64_C(9223372036854775807))
23716 /* Maximum of unsigned integral types. */
23717 # define UINT8_MAX (255)
23718 # define UINT16_MAX (65535)
23719 # define UINT32_MAX (4294967295U)
23720 # define UINT64_MAX (__UINT64_C(18446744073709551615))
23722 /* Minimum of signed integral types having a minimum size. */
23723 # define INT_LEAST8_MIN INT8_MIN
23724 # define INT_LEAST16_MIN INT16_MIN
23725 # define INT_LEAST32_MIN INT32_MIN
23726 # define INT_LEAST64_MIN INT64_MIN
23727 /* Maximum of signed integral types having a minimum size. */
23728 # define INT_LEAST8_MAX INT8_MAX
23729 # define INT_LEAST16_MAX INT16_MAX
23730 # define INT_LEAST32_MAX INT32_MAX
23731 # define INT_LEAST64_MAX INT64_MAX
23733 /* Maximum of unsigned integral types having a minimum size. */
23734 # define UINT_LEAST8_MAX UINT8_MAX
23735 # define UINT_LEAST16_MAX UINT16_MAX
23736 # define UINT_LEAST32_MAX UINT32_MAX
23737 # define UINT_LEAST64_MAX UINT64_MAX
23746 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
23747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
23748 printf "%s\n" "$as_me: $ac_stdint_h is unchanged" >&6;}
23750 ac_dir=`$as_dirname -- "$ac_stdint_h" ||
23751 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23752 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
23753 X"$ac_stdint_h" : 'X\(//\)$' \| \
23754 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
23755 printf "%s\n" X"$ac_stdint_h" |
23756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23760 /^X\(\/\/\)[^/].*/{
23773 as_dir="$ac_dir"; as_fn_mkdir_p
23775 mv $ac_stdint $ac_stdint_h
23785 ac_clean_files=$ac_clean_files_save
23787 test $ac_write_fail = 0 ||
23788 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23791 # configure is writing to config.log, and then calls config.status.
23792 # config.status does its own redirection, appending to config.log.
23793 # Unfortunately, on DOS this fails, as config.log is still kept open
23794 # by configure, so config.status won't be able to write to it; its
23795 # output is simply discarded. So we exec the FD to /dev/null,
23796 # effectively closing config.log, so it can be properly (re)opened and
23797 # appended to by config.status. When coming back to configure, we
23798 # need to make the FD available again.
23799 if test "$no_create" != yes; then
23801 ac_config_status_args=
23802 test "$silent" = yes &&
23803 ac_config_status_args="$ac_config_status_args --quiet"
23805 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23807 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23808 # would make configure fail if this is the last instruction.
23809 $ac_cs_success || as_fn_exit 1
23811 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23813 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}