2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for json-glib 0.14.2.
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
271 # Portably unset VAR.
274 { eval $1=; unset $1;}
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
298 # Create "$as_dir" as a directory, including parents if necessary.
303 -*) as_dir=./$as_dir;;
305 test -d "$as_dir" || eval $as_mkdir_p || {
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 test -d "$as_dir" && break
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
374 as_val=`expr "$@" || test $? -eq 1`
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
386 as_status=$1; test $as_status -eq 0 && as_status=1
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
468 # Exit status is that of the last command.
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
490 mkdir conf$$.dir 2>/dev/null
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
515 test -d ./-p && rmdir ./-p
519 if test -x / >/dev/null 2>&1; then
522 if ls -dL / >/dev/null 2>&1; then
529 if test -d "$1"; then
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
540 as_executable_p=$as_test_x
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548 SHELL=${CONFIG_SHELL-/bin/sh}
551 test -n "$DJDIR" || exec 7<&0 </dev/null
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
571 # Identity of this package.
572 PACKAGE_NAME='json-glib'
573 PACKAGE_TARNAME='json-glib'
574 PACKAGE_VERSION='0.14.2'
575 PACKAGE_STRING='json-glib 0.14.2'
576 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib'
577 PACKAGE_URL='http://live.gnome.org/JsonGlib'
579 ac_unique_file="json-glib/json-glib.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
617 ac_subst_vars='am__EXEEXT_FALSE
630 XGETTEXT_EXTRA_OPTIONS
638 GETTEXT_MACRO_VERSION
640 HAVE_INTROSPECTION_FALSE
641 HAVE_INTROSPECTION_TRUE
642 INTROSPECTION_MAKEFILE
645 INTROSPECTION_TYPELIBDIR
647 INTROSPECTION_GENERATE
648 INTROSPECTION_COMPILER
649 INTROSPECTION_SCANNER
650 GTK_DOC_USE_REBASE_FALSE
651 GTK_DOC_USE_REBASE_TRUE
652 GTK_DOC_USE_LIBTOOL_FALSE
653 GTK_DOC_USE_LIBTOOL_TRUE
654 GTK_DOC_BUILD_PDF_FALSE
655 GTK_DOC_BUILD_PDF_TRUE
656 GTK_DOC_BUILD_HTML_FALSE
657 GTK_DOC_BUILD_HTML_TRUE
672 ENABLE_GLIB_TEST_FALSE
673 ENABLE_GLIB_TEST_TRUE
747 INSTALL_STRIP_PROGRAM
789 program_transform_name
802 enable_option_checking
805 enable_dependency_tracking
814 enable_maintainer_flags
826 ac_precious_vars='build_alias
844 # Initialize some variables set by options.
846 ac_init_version=false
847 ac_unrecognized_opts=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
858 program_transform_name=s,x,x,
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 includedir='${prefix}/include'
881 oldincludedir='/usr/include'
882 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
883 infodir='${datarootdir}/info'
888 libdir='${exec_prefix}/lib'
889 localedir='${datarootdir}/locale'
890 mandir='${datarootdir}/man'
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
898 eval $ac_prev=\$ac_option
904 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
909 # Accept the important Cygnus configure options, so we can diagnose typos.
911 case $ac_dashdash$ac_option in
915 -bindir | --bindir | --bindi | --bind | --bin | --bi)
917 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920 -build | --build | --buil | --bui | --bu)
921 ac_prev=build_alias ;;
922 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
923 build_alias=$ac_optarg ;;
925 -cache-file | --cache-file | --cache-fil | --cache-fi \
926 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
927 ac_prev=cache_file ;;
928 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
929 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
930 cache_file=$ac_optarg ;;
933 cache_file=config.cache ;;
935 -datadir | --datadir | --datadi | --datad)
937 -datadir=* | --datadir=* | --datadi=* | --datad=*)
938 datadir=$ac_optarg ;;
940 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
941 | --dataroo | --dataro | --datar)
942 ac_prev=datarootdir ;;
943 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
944 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
945 datarootdir=$ac_optarg ;;
947 -disable-* | --disable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error $? "invalid feature name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
961 eval enable_$ac_useropt=no ;;
963 -docdir | --docdir | --docdi | --doc | --do)
965 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 -enable-* | --enable-*)
974 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977 as_fn_error $? "invalid feature name: $ac_useropt"
978 ac_useropt_orig=$ac_useropt
979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
985 ac_unrecognized_sep=', ';;
987 eval enable_$ac_useropt=\$ac_optarg ;;
989 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
990 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
991 | --exec | --exe | --ex)
992 ac_prev=exec_prefix ;;
993 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
994 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
995 | --exec=* | --exe=* | --ex=*)
996 exec_prefix=$ac_optarg ;;
998 -gas | --gas | --ga | --g)
999 # Obsolete; use --with-gas.
1002 -help | --help | --hel | --he | -h)
1003 ac_init_help=long ;;
1004 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1005 ac_init_help=recursive ;;
1006 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1007 ac_init_help=short ;;
1009 -host | --host | --hos | --ho)
1010 ac_prev=host_alias ;;
1011 -host=* | --host=* | --hos=* | --ho=*)
1012 host_alias=$ac_optarg ;;
1014 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018 htmldir=$ac_optarg ;;
1020 -includedir | --includedir | --includedi | --included | --include \
1021 | --includ | --inclu | --incl | --inc)
1022 ac_prev=includedir ;;
1023 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1024 | --includ=* | --inclu=* | --incl=* | --inc=*)
1025 includedir=$ac_optarg ;;
1027 -infodir | --infodir | --infodi | --infod | --info | --inf)
1029 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1030 infodir=$ac_optarg ;;
1032 -libdir | --libdir | --libdi | --libd)
1034 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1035 libdir=$ac_optarg ;;
1037 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1038 | --libexe | --libex | --libe)
1039 ac_prev=libexecdir ;;
1040 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1041 | --libexe=* | --libex=* | --libe=*)
1042 libexecdir=$ac_optarg ;;
1044 -localedir | --localedir | --localedi | --localed | --locale)
1045 ac_prev=localedir ;;
1046 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1047 localedir=$ac_optarg ;;
1049 -localstatedir | --localstatedir | --localstatedi | --localstated \
1050 | --localstate | --localstat | --localsta | --localst | --locals)
1051 ac_prev=localstatedir ;;
1052 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1053 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1054 localstatedir=$ac_optarg ;;
1056 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1059 mandir=$ac_optarg ;;
1061 -nfp | --nfp | --nf)
1062 # Obsolete; use --without-fp.
1065 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1066 | --no-cr | --no-c | -n)
1069 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1070 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1074 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1075 | --oldin | --oldi | --old | --ol | --o)
1076 ac_prev=oldincludedir ;;
1077 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1078 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1079 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1080 oldincludedir=$ac_optarg ;;
1082 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1085 prefix=$ac_optarg ;;
1087 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1088 | --program-pre | --program-pr | --program-p)
1089 ac_prev=program_prefix ;;
1090 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1091 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1092 program_prefix=$ac_optarg ;;
1094 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1095 | --program-suf | --program-su | --program-s)
1096 ac_prev=program_suffix ;;
1097 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1098 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1099 program_suffix=$ac_optarg ;;
1101 -program-transform-name | --program-transform-name \
1102 | --program-transform-nam | --program-transform-na \
1103 | --program-transform-n | --program-transform- \
1104 | --program-transform | --program-transfor \
1105 | --program-transfo | --program-transf \
1106 | --program-trans | --program-tran \
1107 | --progr-tra | --program-tr | --program-t)
1108 ac_prev=program_transform_name ;;
1109 -program-transform-name=* | --program-transform-name=* \
1110 | --program-transform-nam=* | --program-transform-na=* \
1111 | --program-transform-n=* | --program-transform-=* \
1112 | --program-transform=* | --program-transfor=* \
1113 | --program-transfo=* | --program-transf=* \
1114 | --program-trans=* | --program-tran=* \
1115 | --progr-tra=* | --program-tr=* | --program-t=*)
1116 program_transform_name=$ac_optarg ;;
1118 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1121 pdfdir=$ac_optarg ;;
1123 -psdir | --psdir | --psdi | --psd | --ps)
1125 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129 | -silent | --silent | --silen | --sile | --sil)
1132 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136 sbindir=$ac_optarg ;;
1138 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140 | --sharedst | --shareds | --shared | --share | --shar \
1142 ac_prev=sharedstatedir ;;
1143 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147 sharedstatedir=$ac_optarg ;;
1149 -site | --site | --sit)
1151 -site=* | --site=* | --sit=*)
1154 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157 srcdir=$ac_optarg ;;
1159 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160 | --syscon | --sysco | --sysc | --sys | --sy)
1161 ac_prev=sysconfdir ;;
1162 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164 sysconfdir=$ac_optarg ;;
1166 -target | --target | --targe | --targ | --tar | --ta | --t)
1167 ac_prev=target_alias ;;
1168 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169 target_alias=$ac_optarg ;;
1171 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174 -version | --version | --versio | --versi | --vers | -V)
1175 ac_init_version=: ;;
1178 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error $? "invalid package name: $ac_useropt"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1191 eval with_$ac_useropt=\$ac_optarg ;;
1193 -without-* | --without-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1207 eval with_$ac_useropt=no ;;
1210 # Obsolete; use --with-x.
1213 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214 | --x-incl | --x-inc | --x-in | --x-i)
1215 ac_prev=x_includes ;;
1216 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218 x_includes=$ac_optarg ;;
1220 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222 ac_prev=x_libraries ;;
1223 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225 x_libraries=$ac_optarg ;;
1227 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1228 Try \`$0 --help' for more information"
1232 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233 # Reject names that are not valid shell variable names.
1234 case $ac_envvar in #(
1235 '' | [0-9]* | *[!_$as_cr_alnum]* )
1236 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1238 eval $ac_envvar=\$ac_optarg
1239 export $ac_envvar ;;
1242 # FIXME: should be removed in autoconf 3.0.
1243 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1246 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1252 if test -n "$ac_prev"; then
1253 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254 as_fn_error $? "missing argument to $ac_option"
1257 if test -n "$ac_unrecognized_opts"; then
1258 case $enable_option_checking in
1260 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1261 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265 # Check all directory arguments for consistency.
1266 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267 datadir sysconfdir sharedstatedir localstatedir includedir \
1268 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269 libdir localedir mandir
1271 eval ac_val=\$$ac_var
1272 # Remove trailing slashes.
1275 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276 eval $ac_var=\$ac_val;;
1278 # Be sure to have absolute directory names.
1280 [\\/$]* | ?:[\\/]* ) continue;;
1281 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1286 # There might be people who depend on the old broken behavior: `$host'
1287 # used to hold the argument of --host etc.
1288 # FIXME: To remove some day.
1291 target=$target_alias
1293 # FIXME: To remove some day.
1294 if test "x$host_alias" != x; then
1295 if test "x$build_alias" = x; then
1296 cross_compiling=maybe
1297 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1298 If a cross compiler is detected then cross compile mode will be used" >&2
1299 elif test "x$build_alias" != "x$host_alias"; then
1305 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307 test "$silent" = yes && exec 6>/dev/null
1310 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1311 ac_ls_di=`ls -di .` &&
1312 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1313 as_fn_error $? "working directory cannot be determined"
1314 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1315 as_fn_error $? "pwd does not report name of working directory"
1318 # Find the source files, if location was not specified.
1319 if test -z "$srcdir"; then
1320 ac_srcdir_defaulted=yes
1321 # Try the directory containing this script, then the parent directory.
1322 ac_confdir=`$as_dirname -- "$as_myself" ||
1323 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324 X"$as_myself" : 'X\(//\)[^/]' \| \
1325 X"$as_myself" : 'X\(//\)$' \| \
1326 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1327 $as_echo X"$as_myself" |
1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1350 ac_srcdir_defaulted=no
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1354 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1356 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1360 # When building in place, set srcdir=.
1361 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 # Remove unnecessary trailing slashes from srcdir.
1365 # Double slashes in file names in object file debugging info
1366 # mess up M-x gdb in Emacs.
1368 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370 for ac_var in $ac_precious_vars; do
1371 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_env_${ac_var}_value=\$${ac_var}
1373 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378 # Report the --help message.
1380 if test "$ac_init_help" = "long"; then
1381 # Omit some internal or obsolete options to make the list less imposing.
1382 # This message is too long to be a string in the A/UX 3.1 sh.
1384 \`configure' configures json-glib 0.14.2 to adapt to many kinds of systems.
1386 Usage: $0 [OPTION]... [VAR=VALUE]...
1388 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1389 VAR=VALUE. See below for descriptions of some of the useful variables.
1391 Defaults for the options are specified in brackets.
1394 -h, --help display this help and exit
1395 --help=short display options specific to this package
1396 --help=recursive display the short help of all the included packages
1397 -V, --version display version information and exit
1398 -q, --quiet, --silent do not print \`checking ...' messages
1399 --cache-file=FILE cache test results in FILE [disabled]
1400 -C, --config-cache alias for \`--cache-file=config.cache'
1401 -n, --no-create do not create output files
1402 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1404 Installation directories:
1405 --prefix=PREFIX install architecture-independent files in PREFIX
1406 [$ac_default_prefix]
1407 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1410 By default, \`make install' will install all the files in
1411 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1412 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1413 for instance \`--prefix=\$HOME'.
1415 For better control, use the options below.
1417 Fine tuning of the installation directories:
1418 --bindir=DIR user executables [EPREFIX/bin]
1419 --sbindir=DIR system admin executables [EPREFIX/sbin]
1420 --libexecdir=DIR program executables [EPREFIX/libexec]
1421 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1422 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1423 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1424 --libdir=DIR object code libraries [EPREFIX/lib]
1425 --includedir=DIR C header files [PREFIX/include]
1426 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1429 --infodir=DIR info documentation [DATAROOTDIR/info]
1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1431 --mandir=DIR man documentation [DATAROOTDIR/man]
1432 --docdir=DIR documentation root [DATAROOTDIR/doc/json-glib]
1433 --htmldir=DIR html documentation [DOCDIR]
1434 --dvidir=DIR dvi documentation [DOCDIR]
1435 --pdfdir=DIR pdf documentation [DOCDIR]
1436 --psdir=DIR ps documentation [DOCDIR]
1442 --program-prefix=PREFIX prepend PREFIX to installed program names
1443 --program-suffix=SUFFIX append SUFFIX to installed program names
1444 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1447 --build=BUILD configure for building on BUILD [guessed]
1448 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1452 if test -n "$ac_init_help"; then
1453 case $ac_init_help in
1454 short | recursive ) echo "Configuration of json-glib 0.14.2:";;
1459 --disable-option-checking ignore unrecognized --enable/--with options
1460 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1461 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1462 --enable-silent-rules less verbose build output (undo: `make V=1')
1463 --disable-silent-rules verbose build output (undo: `make V=0')
1464 --disable-glibtest do not try to compile and run a test GLIB program
1465 --disable-dependency-tracking speeds up one-time build
1466 --enable-dependency-tracking do not reject slow dependency extractors
1467 --enable-static[=PKGS] build static libraries [default=no]
1468 --enable-shared[=PKGS] build shared libraries [default=yes]
1469 --enable-fast-install[=PKGS]
1470 optimize for fast installation [default=yes]
1471 --disable-libtool-lock avoid locking (might break parallel builds)
1472 --enable-debug=[no/minimum/yes]
1473 turn on debugging [default=minimum]
1474 --enable-maintainer-flags=[no/yes]
1475 Use strict compiler flags [default=no]
1476 --enable-gcov Whether to enable coverage testing (requires gcc and
1478 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1479 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1480 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1481 --enable-introspection=[no/auto/yes]
1482 Enable introspection for this build
1483 --disable-nls do not use Native Language Support
1484 --disable-rpath do not hardcode runtime library paths
1487 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1488 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1489 --with-pic try to use only PIC/non-PIC objects [default=use
1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1492 --with-sysroot=DIR Search for dependent libraries within DIR
1493 (or the compiler's sysroot if not specified).
1494 --with-html-dir=PATH path to installed docs
1495 --with-gnu-ld assume the C compiler uses GNU ld default=no
1496 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1497 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1498 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1499 --without-libintl-prefix don't search for libintl in includedir and libdir
1501 Some influential environment variables:
1502 PKG_CONFIG path to pkg-config utility
1504 directories to add to pkg-config's search path
1506 path overriding pkg-config's built-in search path
1507 CC C compiler command
1508 CFLAGS C compiler flags
1509 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1510 nonstandard directory <lib dir>
1511 LIBS libraries to pass to the linker, e.g. -l<library>
1512 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1513 you have headers in a nonstandard directory <include dir>
1515 JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1516 JSON_LIBS linker flags for JSON, overriding pkg-config
1518 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1520 linker flags for GTKDOC_DEPS, overriding pkg-config
1522 Use these variables to override the choices made by `configure' or to help
1523 it to find libraries and programs with nonstandard names/locations.
1525 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib>.
1526 json-glib home page: <http://live.gnome.org/JsonGlib>.
1531 if test "$ac_init_help" = "recursive"; then
1532 # If there are subdirs, report their specific --help.
1533 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1534 test -d "$ac_dir" ||
1535 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1540 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1543 # A ".." for each directory in $ac_dir_suffix.
1544 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1545 case $ac_top_builddir_sub in
1546 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550 ac_abs_top_builddir=$ac_pwd
1551 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1552 # for backward compatibility:
1553 ac_top_builddir=$ac_top_build_prefix
1556 .) # We are building in place.
1558 ac_top_srcdir=$ac_top_builddir_sub
1559 ac_abs_top_srcdir=$ac_pwd ;;
1560 [\\/]* | ?:[\\/]* ) # Absolute name.
1561 ac_srcdir=$srcdir$ac_dir_suffix;
1562 ac_top_srcdir=$srcdir
1563 ac_abs_top_srcdir=$srcdir ;;
1565 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1566 ac_top_srcdir=$ac_top_build_prefix$srcdir
1567 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1571 cd "$ac_dir" || { ac_status=$?; continue; }
1572 # Check for guested configure.
1573 if test -f "$ac_srcdir/configure.gnu"; then
1575 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1576 elif test -f "$ac_srcdir/configure"; then
1578 $SHELL "$ac_srcdir/configure" --help=recursive
1580 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582 cd "$ac_pwd" || { ac_status=$?; break; }
1586 test -n "$ac_init_help" && exit $ac_status
1587 if $ac_init_version; then
1589 json-glib configure 0.14.2
1590 generated by GNU Autoconf 2.68
1592 Copyright (C) 2010 Free Software Foundation, Inc.
1593 This configure script is free software; the Free Software Foundation
1594 gives unlimited permission to copy, distribute and modify it.
1599 ## ------------------------ ##
1600 ## Autoconf initialization. ##
1601 ## ------------------------ ##
1603 # ac_fn_c_try_compile LINENO
1604 # --------------------------
1605 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1606 ac_fn_c_try_compile ()
1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609 rm -f conftest.$ac_objext
1610 if { { ac_try="$ac_compile"
1612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613 *) ac_try_echo=$ac_try;;
1615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616 $as_echo "$ac_try_echo"; } >&5
1617 (eval "$ac_compile") 2>conftest.err
1619 if test -s conftest.err; then
1620 grep -v '^ *+' conftest.err >conftest.er1
1621 cat conftest.er1 >&5
1622 mv -f conftest.er1 conftest.err
1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625 test $ac_status = 0; } && {
1626 test -z "$ac_c_werror_flag" ||
1627 test ! -s conftest.err
1628 } && test -s conftest.$ac_objext; then :
1631 $as_echo "$as_me: failed program was:" >&5
1632 sed 's/^/| /' conftest.$ac_ext >&5
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637 as_fn_set_status $ac_retval
1639 } # ac_fn_c_try_compile
1641 # ac_fn_c_try_run LINENO
1642 # ----------------------
1643 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1644 # that executables *can* be run.
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 if { { ac_try="$ac_link"
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_link") 2>&5
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1659 { { case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_try") 2>&5
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; }; }; then :
1671 $as_echo "$as_me: program exited with status $ac_status" >&5
1672 $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1675 ac_retval=$ac_status
1677 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1683 # ac_fn_c_try_link LINENO
1684 # -----------------------
1685 # Try to link conftest.$ac_ext, and return whether this succeeded.
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 rm -f conftest.$ac_objext conftest$ac_exeext
1690 if { { ac_try="$ac_link"
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_link") 2>conftest.err
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } && {
1706 test -z "$ac_c_werror_flag" ||
1707 test ! -s conftest.err
1708 } && test -s conftest$ac_exeext && {
1709 test "$cross_compiling" = yes ||
1710 $as_test_x conftest$ac_exeext
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1719 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1720 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1721 # interfere with the next link command; also delete a directory that is
1722 # left behind by Apple's compiler. We do this before executing the actions.
1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1727 } # ac_fn_c_try_link
1729 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1730 # -------------------------------------------------------
1731 # Tests whether HEADER exists and can be compiled using the include files in
1732 # INCLUDES, setting the cache variable VAR accordingly.
1733 ac_fn_c_check_header_compile ()
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 $as_echo_n "checking for $2... " >&6; }
1738 if eval \${$3+:} false; then :
1739 $as_echo_n "(cached) " >&6
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1746 if ac_fn_c_try_compile "$LINENO"; then :
1751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1755 $as_echo "$ac_res" >&6; }
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 } # ac_fn_c_check_header_compile
1760 # ac_fn_c_try_cpp LINENO
1761 # ----------------------
1762 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 if { { ac_try="$ac_cpp conftest.$ac_ext"
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1775 if test -s conftest.err; then
1776 grep -v '^ *+' conftest.err >conftest.er1
1777 cat conftest.er1 >&5
1778 mv -f conftest.er1 conftest.err
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } > conftest.i && {
1782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1783 test ! -s conftest.err
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 as_fn_set_status $ac_retval
1797 # ac_fn_c_check_func LINENO FUNC VAR
1798 # ----------------------------------
1799 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1800 ac_fn_c_check_func ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if eval \${$3+:} false; then :
1806 $as_echo_n "(cached) " >&6
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1810 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1812 #define $2 innocuous_$2
1814 /* System header to define __stub macros and hopefully few prototypes,
1815 which can conflict with char $2 (); below.
1816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1817 <limits.h> exists even on freestanding compilers. */
1820 # include <limits.h>
1822 # include <assert.h>
1827 /* Override any GCC internal prototype to avoid an error.
1828 Use char because int might match the return type of a GCC
1829 builtin and then its argument prototype would still apply. */
1834 /* The GNU C library defines this for functions which it implements
1835 to always fail with ENOSYS. Some functions are actually named
1836 something starting with __ and the normal name is an alias. */
1837 #if defined __stub_$2 || defined __stub___$2
1849 if ac_fn_c_try_link "$LINENO"; then :
1854 rm -f core conftest.err conftest.$ac_objext \
1855 conftest$ac_exeext conftest.$ac_ext
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859 $as_echo "$ac_res" >&6; }
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862 } # ac_fn_c_check_func
1863 cat >config.log <<_ACEOF
1864 This file contains any messages produced by compilers while
1865 running configure, to aid debugging if configure makes a mistake.
1867 It was created by json-glib $as_me 0.14.2, which was
1868 generated by GNU Autoconf 2.68. Invocation command line was
1880 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1881 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1882 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1883 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1884 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1886 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1887 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1889 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1890 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1891 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1892 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1893 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1894 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1895 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903 test -z "$as_dir" && as_dir=.
1904 $as_echo "PATH: $as_dir"
1920 # Keep a trace of the command line.
1921 # Strip out --no-create and --no-recursion so they do not pile up.
1922 # Strip out --silent because we don't want to record it for future runs.
1923 # Also quote any args containing shell meta-characters.
1924 # Make two passes to allow for proper duplicate-argument suppression.
1928 ac_must_keep_next=false
1934 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1936 | -silent | --silent | --silen | --sile | --sil)
1939 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1942 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1944 as_fn_append ac_configure_args1 " '$ac_arg'"
1945 if test $ac_must_keep_next = true; then
1946 ac_must_keep_next=false # Got value, back to normal.
1949 *=* | --config-cache | -C | -disable-* | --disable-* \
1950 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1951 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1952 | -with-* | --with-* | -without-* | --without-* | --x)
1953 case "$ac_configure_args0 " in
1954 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1957 -* ) ac_must_keep_next=true ;;
1960 as_fn_append ac_configure_args " '$ac_arg'"
1965 { ac_configure_args0=; unset ac_configure_args0;}
1966 { ac_configure_args1=; unset ac_configure_args1;}
1968 # When interrupted or exit'd, cleanup temporary files, and complete
1969 # config.log. We remove comments because anyway the quotes in there
1970 # would cause problems or look ugly.
1971 # WARNING: Use '\'' to represent an apostrophe within the trap.
1972 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1973 trap 'exit_status=$?
1974 # Save into config.log some information that might help in debugging.
1978 $as_echo "## ---------------- ##
1979 ## Cache variables. ##
1980 ## ---------------- ##"
1982 # The following way of writing the cache mishandles newlines in values,
1984 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1985 eval ac_val=\$$ac_var
1989 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1990 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1993 _ | IFS | as_nl) ;; #(
1994 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1995 *) { eval $ac_var=; unset $ac_var;} ;;
2000 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2001 *${as_nl}ac_space=\ *)
2003 "s/'\''/'\''\\\\'\'''\''/g;
2004 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2007 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2014 $as_echo "## ----------------- ##
2015 ## Output variables. ##
2016 ## ----------------- ##"
2018 for ac_var in $ac_subst_vars
2020 eval ac_val=\$$ac_var
2022 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2024 $as_echo "$ac_var='\''$ac_val'\''"
2028 if test -n "$ac_subst_files"; then
2029 $as_echo "## ------------------- ##
2030 ## File substitutions. ##
2031 ## ------------------- ##"
2033 for ac_var in $ac_subst_files
2035 eval ac_val=\$$ac_var
2037 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2039 $as_echo "$ac_var='\''$ac_val'\''"
2044 if test -s confdefs.h; then
2045 $as_echo "## ----------- ##
2052 test "$ac_signal" != 0 &&
2053 $as_echo "$as_me: caught signal $ac_signal"
2054 $as_echo "$as_me: exit $exit_status"
2056 rm -f core *.core core.conftest.* &&
2057 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2060 for ac_signal in 1 2 13 15; do
2061 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2065 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2066 rm -f -r conftest* confdefs.h
2068 $as_echo "/* confdefs.h */" > confdefs.h
2070 # Predefined preprocessor variables.
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_NAME "$PACKAGE_NAME"
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_STRING "$PACKAGE_STRING"
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_URL "$PACKAGE_URL"
2097 # Let the site file select an alternate cache file if it wants to.
2098 # Prefer an explicitly selected file to automatically selected ones.
2101 if test -n "$CONFIG_SITE"; then
2102 # We do not want a PATH search for config.site.
2103 case $CONFIG_SITE in #((
2104 -*) ac_site_file1=./$CONFIG_SITE;;
2105 */*) ac_site_file1=$CONFIG_SITE;;
2106 *) ac_site_file1=./$CONFIG_SITE;;
2108 elif test "x$prefix" != xNONE; then
2109 ac_site_file1=$prefix/share/config.site
2110 ac_site_file2=$prefix/etc/config.site
2112 ac_site_file1=$ac_default_prefix/share/config.site
2113 ac_site_file2=$ac_default_prefix/etc/config.site
2115 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2117 test "x$ac_site_file" = xNONE && continue
2118 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2120 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2121 sed 's/^/| /' "$ac_site_file" >&5
2123 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2125 as_fn_error $? "failed to load site script $ac_site_file
2126 See \`config.log' for more details" "$LINENO" 5; }
2130 if test -r "$cache_file"; then
2131 # Some versions of bash will fail to source /dev/null (special files
2132 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2133 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2135 $as_echo "$as_me: loading cache $cache_file" >&6;}
2137 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2138 *) . "./$cache_file";;
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2143 $as_echo "$as_me: creating cache $cache_file" >&6;}
2147 gt_needs="$gt_needs "
2148 # Check that the precious variables saved in the cache have kept the same
2150 ac_cache_corrupted=false
2151 for ac_var in $ac_precious_vars; do
2152 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2153 eval ac_new_set=\$ac_env_${ac_var}_set
2154 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2155 eval ac_new_val=\$ac_env_${ac_var}_value
2156 case $ac_old_set,$ac_new_set in
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2159 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2160 ac_cache_corrupted=: ;;
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2163 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2164 ac_cache_corrupted=: ;;
2167 if test "x$ac_old_val" != "x$ac_new_val"; then
2168 # differences in whitespace do not lead to failure.
2169 ac_old_val_w=`echo x $ac_old_val`
2170 ac_new_val_w=`echo x $ac_new_val`
2171 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2173 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2174 ac_cache_corrupted=:
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2177 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2178 eval $ac_var=\$ac_old_val
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2181 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2183 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2186 # Pass precious variables to config.status.
2187 if test "$ac_new_set" = set; then
2189 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2190 *) ac_arg=$ac_var=$ac_new_val ;;
2192 case " $ac_configure_args " in
2193 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2194 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2198 if $ac_cache_corrupted; then
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2202 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2203 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2205 ## -------------------- ##
2206 ## Main body of script. ##
2207 ## -------------------- ##
2210 ac_cpp='$CPP $CPPFLAGS'
2211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2217 ac_config_headers="$ac_config_headers config.h"
2221 for ac_dir in build "$srcdir"/build; do
2222 if test -f "$ac_dir/install-sh"; then
2224 ac_install_sh="$ac_aux_dir/install-sh -c"
2226 elif test -f "$ac_dir/install.sh"; then
2228 ac_install_sh="$ac_aux_dir/install.sh -c"
2230 elif test -f "$ac_dir/shtool"; then
2232 ac_install_sh="$ac_aux_dir/shtool install -c"
2236 if test -z "$ac_aux_dir"; then
2237 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2240 # These three variables are undocumented and unsupported,
2241 # and are intended to be withdrawn in a future Autoconf release.
2242 # They can cause serious problems if a builder's source tree is in a directory
2243 # whose full name contains unusual characters.
2244 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2245 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2246 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2251 am__api_version='1.11'
2253 # Find a good install program. We prefer a C program (faster),
2254 # so one script is as good as another. But avoid the broken or
2255 # incompatible versions:
2256 # SysV /etc/install, /usr/sbin/install
2257 # SunOS /usr/etc/install
2258 # IRIX /sbin/install
2260 # AmigaOS /C/install, which installs bootblocks on floppy discs
2261 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2262 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2263 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2264 # OS/2's system install, which has a completely different semantic
2265 # ./install, which can be erroneously created by make from ./install.sh.
2266 # Reject install programs that cannot install multiple files.
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2268 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2269 if test -z "$INSTALL"; then
2270 if ${ac_cv_path_install+:} false; then :
2271 $as_echo_n "(cached) " >&6
2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 test -z "$as_dir" && as_dir=.
2278 # Account for people who put trailing slashes in PATH elements.
2279 case $as_dir/ in #((
2280 ./ | .// | /[cC]/* | \
2281 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2282 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2285 # OSF1 and SCO ODT 3.0 have their own names for install.
2286 # Don't use installbsd from OSF since it installs stuff as root
2288 for ac_prog in ginstall scoinst install; do
2289 for ac_exec_ext in '' $ac_executable_extensions; do
2290 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2291 if test $ac_prog = install &&
2292 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2293 # AIX install. It has an incompatible calling convention.
2295 elif test $ac_prog = install &&
2296 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2297 # program-specific install script used by HP pwplus--don't use.
2300 rm -rf conftest.one conftest.two conftest.dir
2301 echo one > conftest.one
2302 echo two > conftest.two
2304 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2305 test -s conftest.one && test -s conftest.two &&
2306 test -s conftest.dir/conftest.one &&
2307 test -s conftest.dir/conftest.two
2309 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2322 rm -rf conftest.one conftest.two conftest.dir
2325 if test "${ac_cv_path_install+set}" = set; then
2326 INSTALL=$ac_cv_path_install
2328 # As a last resort, use the slow shell script. Don't cache a
2329 # value for INSTALL within a source directory, because that will
2330 # break other packages using the cache if that directory is
2331 # removed, or if the value is a relative name.
2332 INSTALL=$ac_install_sh
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2336 $as_echo "$INSTALL" >&6; }
2338 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2339 # It thinks the first close brace ends the variable substitution.
2340 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2342 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2344 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2347 $as_echo_n "checking whether build environment is sane... " >&6; }
2350 echo timestamp > conftest.file
2351 # Reject unsafe characters in $srcdir or the absolute working directory
2352 # name. Accept space and tab only in the latter.
2356 *[\\\"\#\$\&\'\`$am_lf]*)
2357 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2360 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2361 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2364 # Do `set' in a subshell so we don't clobber the current shell's
2365 # arguments. Must try -L first in case configure is actually a
2366 # symlink; some systems play weird games with the mod time of symlinks
2367 # (eg FreeBSD returns the mod time of the symlink's containing
2370 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2371 if test "$*" = "X"; then
2373 set X `ls -t "$srcdir/configure" conftest.file`
2376 if test "$*" != "X $srcdir/configure conftest.file" \
2377 && test "$*" != "X conftest.file $srcdir/configure"; then
2379 # If neither matched, then we have a broken ls. This can happen
2380 # if, for instance, CONFIG_SHELL is bash and it inherits a
2381 # broken ls alias from the environment. This has actually
2382 # happened. Such a system could not be considered "sane".
2383 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2384 alias in your environment" "$LINENO" 5
2387 test "$2" = conftest.file
2393 as_fn_error $? "newly created file is older than distributed files!
2394 Check your system clock" "$LINENO" 5
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2397 $as_echo "yes" >&6; }
2398 test "$program_prefix" != NONE &&
2399 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2400 # Use a double $ so make ignores it.
2401 test "$program_suffix" != NONE &&
2402 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2403 # Double any \ or $.
2404 # By default was `s,x,x', remove it if useless.
2405 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2406 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2408 # expand $ac_aux_dir to an absolute path
2409 am_aux_dir=`cd $ac_aux_dir && pwd`
2411 if test x"${MISSING+set}" != xset; then
2414 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2416 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2419 # Use eval to expand $SHELL
2420 if eval "$MISSING --run true"; then
2421 am_missing_run="$MISSING --run "
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2425 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2428 if test x"${install_sh}" != xset; then
2431 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2433 install_sh="\${SHELL} $am_aux_dir/install-sh"
2437 # Installed binaries are usually stripped using `strip' when the user
2438 # run `make install-strip'. However `strip' might not be the right
2439 # tool to use in cross-compilation environments, therefore Automake
2440 # will honor the `STRIP' environment variable to overrule this program.
2441 if test "$cross_compiling" != no; then
2442 if test -n "$ac_tool_prefix"; then
2443 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2444 set dummy ${ac_tool_prefix}strip; ac_word=$2
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2446 $as_echo_n "checking for $ac_word... " >&6; }
2447 if ${ac_cv_prog_STRIP+:} false; then :
2448 $as_echo_n "(cached) " >&6
2450 if test -n "$STRIP"; then
2451 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2460 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 STRIP=$ac_cv_prog_STRIP
2471 if test -n "$STRIP"; then
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2473 $as_echo "$STRIP" >&6; }
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2476 $as_echo "no" >&6; }
2481 if test -z "$ac_cv_prog_STRIP"; then
2483 # Extract the first word of "strip", so it can be a program name with args.
2484 set dummy strip; ac_word=$2
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2486 $as_echo_n "checking for $ac_word... " >&6; }
2487 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2488 $as_echo_n "(cached) " >&6
2490 if test -n "$ac_ct_STRIP"; then
2491 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 test -z "$as_dir" && as_dir=.
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2500 ac_cv_prog_ac_ct_STRIP="strip"
2501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2510 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2511 if test -n "$ac_ct_STRIP"; then
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2513 $as_echo "$ac_ct_STRIP" >&6; }
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2516 $as_echo "no" >&6; }
2519 if test "x$ac_ct_STRIP" = x; then
2522 case $cross_compiling:$ac_tool_warned in
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2526 ac_tool_warned=yes ;;
2531 STRIP="$ac_cv_prog_STRIP"
2535 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2538 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2539 if test -z "$MKDIR_P"; then
2540 if ${ac_cv_path_mkdir+:} false; then :
2541 $as_echo_n "(cached) " >&6
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2547 test -z "$as_dir" && as_dir=.
2548 for ac_prog in mkdir gmkdir; do
2549 for ac_exec_ext in '' $ac_executable_extensions; do
2550 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2551 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2552 'mkdir (GNU coreutils) '* | \
2553 'mkdir (coreutils) '* | \
2554 'mkdir (fileutils) '4.1*)
2555 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2565 test -d ./--version && rmdir ./--version
2566 if test "${ac_cv_path_mkdir+set}" = set; then
2567 MKDIR_P="$ac_cv_path_mkdir -p"
2569 # As a last resort, use the slow shell script. Don't cache a
2570 # value for MKDIR_P within a source directory, because that will
2571 # break other packages using the cache if that directory is
2572 # removed, or if the value is a relative name.
2573 MKDIR_P="$ac_install_sh -d"
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2577 $as_echo "$MKDIR_P" >&6; }
2581 [\\/$]* | ?:[\\/]*) ;;
2582 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2585 for ac_prog in gawk mawk nawk awk
2587 # Extract the first word of "$ac_prog", so it can be a program name with args.
2588 set dummy $ac_prog; ac_word=$2
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2590 $as_echo_n "checking for $ac_word... " >&6; }
2591 if ${ac_cv_prog_AWK+:} false; then :
2592 $as_echo_n "(cached) " >&6
2594 if test -n "$AWK"; then
2595 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2604 ac_cv_prog_AWK="$ac_prog"
2605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 if test -n "$AWK"; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2617 $as_echo "$AWK" >&6; }
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2620 $as_echo "no" >&6; }
2624 test -n "$AWK" && break
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2628 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2630 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2631 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2632 $as_echo_n "(cached) " >&6
2634 cat >conftest.make <<\_ACEOF
2637 @echo '@@@%%%=$(MAKE)=@@@%%%'
2639 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2640 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2642 eval ac_cv_prog_make_${ac_make}_set=yes;;
2644 eval ac_cv_prog_make_${ac_make}_set=no;;
2648 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2650 $as_echo "yes" >&6; }
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654 $as_echo "no" >&6; }
2655 SET_MAKE="MAKE=${MAKE-make}"
2658 rm -rf .tst 2>/dev/null
2659 mkdir .tst 2>/dev/null
2660 if test -d .tst; then
2665 rmdir .tst 2>/dev/null
2667 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2668 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2669 # is not polluted with repeated "-I."
2670 am__isrc=' -I$(srcdir)'
2671 # test to see if srcdir already configured
2672 if test -f $srcdir/config.status; then
2673 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2677 # test whether we have cygpath
2678 if test -z "$CYGPATH_W"; then
2679 if (cygpath --version) >/dev/null 2>/dev/null; then
2680 CYGPATH_W='cygpath -w'
2687 # Define the identity of the package.
2692 # Some tools Automake needs.
2694 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2697 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2700 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2703 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2706 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2708 # We need awk for the "check" target. The system "awk" is bad on
2710 # Always define AMTAR for backward compatibility.
2712 AMTAR=${AMTAR-"${am_missing_run}tar"}
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2716 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
2717 # Loop over all known methods to create a tar archive until one works.
2718 _am_tools='gnutar plaintar pax cpio none'
2719 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2720 # Do not fold the above two line into one, because Tru64 sh and
2721 # Solaris sh will not grok spaces in the rhs of `-'.
2722 for _am_tool in $_am_tools
2726 for _am_tar in tar gnutar gtar;
2728 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2729 ($_am_tar --version) >&5 2>&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); } && break
2734 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2735 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2736 am__untar="$_am_tar -xf -"
2739 # Must skip GNU tar: if it does not support --format= it doesn't create
2740 # ustar tarball either.
2741 (tar --version) >/dev/null 2>&1 && continue
2742 am__tar='tar chf - "$$tardir"'
2743 am__tar_='tar chf - "$tardir"'
2744 am__untar='tar xf -'
2747 am__tar='pax -L -x ustar -w "$$tardir"'
2748 am__tar_='pax -L -x ustar -w "$tardir"'
2752 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2753 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2754 am__untar='cpio -i -H ustar -d'
2763 # If the value was cached, stop now. We just wanted to have am__tar
2764 # and am__untar set.
2765 test -n "${am_cv_prog_tar_ustar}" && break
2767 # tar/untar a dummy directory, and stop if the command works
2770 echo GrepMe > conftest.dir/file
2771 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2772 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }
2777 if test -s conftest.tar; then
2778 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2779 ($am__untar <conftest.tar) >&5 2>&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }
2783 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2788 if ${am_cv_prog_tar_ustar+:} false; then :
2789 $as_echo_n "(cached) " >&6
2791 am_cv_prog_tar_ustar=$_am_tool
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
2795 $as_echo "$am_cv_prog_tar_ustar" >&6; }
2802 # Check whether --enable-silent-rules was given.
2803 if test "${enable_silent_rules+set}" = set; then :
2804 enableval=$enable_silent_rules;
2807 case $enable_silent_rules in
2808 yes) AM_DEFAULT_VERBOSITY=0;;
2809 no) AM_DEFAULT_VERBOSITY=1;;
2810 *) AM_DEFAULT_VERBOSITY=0;;
2814 DEPDIR="${am__leading_dot}deps"
2816 ac_config_commands="$ac_config_commands depfiles"
2819 am_make=${MAKE-make}
2820 cat > confinc << 'END'
2822 @echo this is the am__doit target
2825 # If we don't find an include directive, just comment out the code.
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2827 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2831 # First try GNU make style include.
2832 echo "include confinc" > confmf
2833 # Ignore all kinds of additional output from `make'.
2834 case `$am_make -s -f confmf 2> /dev/null` in #(
2835 *the\ am__doit\ target*)
2841 # Now try BSD make style include.
2842 if test "$am__include" = "#"; then
2843 echo '.include "confinc"' > confmf
2844 case `$am_make -s -f confmf 2> /dev/null` in #(
2845 *the\ am__doit\ target*)
2846 am__include=.include
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2855 $as_echo "$_am_result" >&6; }
2856 rm -f confinc confmf
2858 # Check whether --enable-dependency-tracking was given.
2859 if test "${enable_dependency_tracking+set}" = set; then :
2860 enableval=$enable_dependency_tracking;
2863 if test "x$enable_dependency_tracking" != xno; then
2864 am_depcomp="$ac_aux_dir/depcomp"
2867 if test "x$enable_dependency_tracking" != xno; then
2877 ac_cpp='$CPP $CPPFLAGS'
2878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881 if test -n "$ac_tool_prefix"; then
2882 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2883 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885 $as_echo_n "checking for $ac_word... " >&6; }
2886 if ${ac_cv_prog_CC+:} false; then :
2887 $as_echo_n "(cached) " >&6
2889 if test -n "$CC"; then
2890 ac_cv_prog_CC="$CC" # Let the user override the test.
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910 if test -n "$CC"; then
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2912 $as_echo "$CC" >&6; }
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915 $as_echo "no" >&6; }
2920 if test -z "$ac_cv_prog_CC"; then
2922 # Extract the first word of "gcc", so it can be a program name with args.
2923 set dummy gcc; ac_word=$2
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2927 $as_echo_n "(cached) " >&6
2929 if test -n "$ac_ct_CC"; then
2930 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939 ac_cv_prog_ac_ct_CC="gcc"
2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2950 if test -n "$ac_ct_CC"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2952 $as_echo "$ac_ct_CC" >&6; }
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2958 if test "x$ac_ct_CC" = x; then
2961 case $cross_compiling:$ac_tool_warned in
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2965 ac_tool_warned=yes ;;
2973 if test -z "$CC"; then
2974 if test -n "$ac_tool_prefix"; then
2975 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2976 set dummy ${ac_tool_prefix}cc; ac_word=$2
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978 $as_echo_n "checking for $ac_word... " >&6; }
2979 if ${ac_cv_prog_CC+:} false; then :
2980 $as_echo_n "(cached) " >&6
2982 if test -n "$CC"; then
2983 ac_cv_prog_CC="$CC" # Let the user override the test.
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2992 ac_cv_prog_CC="${ac_tool_prefix}cc"
2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 if test -n "$CC"; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3005 $as_echo "$CC" >&6; }
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008 $as_echo "no" >&6; }
3014 if test -z "$CC"; then
3015 # Extract the first word of "cc", so it can be a program name with args.
3016 set dummy cc; ac_word=$2
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018 $as_echo_n "checking for $ac_word... " >&6; }
3019 if ${ac_cv_prog_CC+:} false; then :
3020 $as_echo_n "(cached) " >&6
3022 if test -n "$CC"; then
3023 ac_cv_prog_CC="$CC" # Let the user override the test.
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3034 ac_prog_rejected=yes
3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045 if test $ac_prog_rejected = yes; then
3046 # We found a bogon in the path, so make sure we never use it.
3047 set dummy $ac_cv_prog_CC
3049 if test $# != 0; then
3050 # We chose a different compiler from the bogus one.
3051 # However, it has the same basename, so the bogon will be chosen
3052 # first if we set CC to just the basename; use the full file name.
3054 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3060 if test -n "$CC"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3062 $as_echo "$CC" >&6; }
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3070 if test -z "$CC"; then
3071 if test -n "$ac_tool_prefix"; then
3072 for ac_prog in cl.exe
3074 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3075 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if ${ac_cv_prog_CC+:} false; then :
3079 $as_echo_n "(cached) " >&6
3081 if test -n "$CC"; then
3082 ac_cv_prog_CC="$CC" # Let the user override the test.
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 if test -n "$CC"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3104 $as_echo "$CC" >&6; }
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3111 test -n "$CC" && break
3114 if test -z "$CC"; then
3116 for ac_prog in cl.exe
3118 # Extract the first word of "$ac_prog", so it can be a program name with args.
3119 set dummy $ac_prog; ac_word=$2
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121 $as_echo_n "checking for $ac_word... " >&6; }
3122 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3123 $as_echo_n "(cached) " >&6
3125 if test -n "$ac_ct_CC"; then
3126 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3135 ac_cv_prog_ac_ct_CC="$ac_prog"
3136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3146 if test -n "$ac_ct_CC"; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3148 $as_echo "$ac_ct_CC" >&6; }
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3155 test -n "$ac_ct_CC" && break
3158 if test "x$ac_ct_CC" = x; then
3161 case $cross_compiling:$ac_tool_warned in
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3165 ac_tool_warned=yes ;;
3174 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3176 as_fn_error $? "no acceptable C compiler found in \$PATH
3177 See \`config.log' for more details" "$LINENO" 5; }
3179 # Provide some information about the compiler.
3180 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3183 for ac_option in --version -v -V -qversion; do
3184 { { ac_try="$ac_compiler $ac_option >&5"
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3190 $as_echo "$ac_try_echo"; } >&5
3191 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3193 if test -s conftest.err; then
3195 ... rest of stderr output deleted ...
3196 10q' conftest.err >conftest.er1
3197 cat conftest.er1 >&5
3199 rm -f conftest.er1 conftest.err
3200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201 test $ac_status = 0; }
3204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3205 /* end confdefs.h. */
3215 ac_clean_files_save=$ac_clean_files
3216 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3217 # Try to create an executable without -o first, disregard a.out.
3218 # It will help us diagnose broken compilers, and finding out an intuition
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3221 $as_echo_n "checking whether the C compiler works... " >&6; }
3222 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3224 # The possible output files:
3225 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3228 for ac_file in $ac_files
3231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3232 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3237 if { { ac_try="$ac_link_default"
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3243 $as_echo "$ac_try_echo"; } >&5
3244 (eval "$ac_link_default") 2>&5
3246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3247 test $ac_status = 0; }; then :
3248 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3249 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3250 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3251 # so that the user can short-circuit this test for compilers unknown to
3253 for ac_file in $ac_files ''
3255 test -f "$ac_file" || continue
3257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3260 # We found the default executable, but exeext='' is most
3264 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3266 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3268 # We set ac_cv_exeext here because the later test for it is not
3269 # safe: cross compilers may not add the suffix if given an `-o'
3270 # argument, so we may need to know it at that point already.
3271 # Even if this section looks crufty: it has the advantage of
3278 test "$ac_cv_exeext" = no && ac_cv_exeext=
3283 if test -z "$ac_file"; then :
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 $as_echo "no" >&6; }
3286 $as_echo "$as_me: failed program was:" >&5
3287 sed 's/^/| /' conftest.$ac_ext >&5
3289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291 as_fn_error 77 "C compiler cannot create executables
3292 See \`config.log' for more details" "$LINENO" 5; }
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3295 $as_echo "yes" >&6; }
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3298 $as_echo_n "checking for C compiler default output file name... " >&6; }
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3300 $as_echo "$ac_file" >&6; }
3301 ac_exeext=$ac_cv_exeext
3303 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3304 ac_clean_files=$ac_clean_files_save
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3306 $as_echo_n "checking for suffix of executables... " >&6; }
3307 if { { ac_try="$ac_link"
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313 $as_echo "$ac_try_echo"; } >&5
3314 (eval "$ac_link") 2>&5
3316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317 test $ac_status = 0; }; then :
3318 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3319 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3320 # work properly (i.e., refer to `conftest.exe'), while it won't with
3322 for ac_file in conftest.exe conftest conftest.*; do
3323 test -f "$ac_file" || continue
3325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3326 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3334 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3335 See \`config.log' for more details" "$LINENO" 5; }
3337 rm -f conftest conftest$ac_cv_exeext
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3339 $as_echo "$ac_cv_exeext" >&6; }
3341 rm -f conftest.$ac_ext
3342 EXEEXT=$ac_cv_exeext
3344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3345 /* end confdefs.h. */
3350 FILE *f = fopen ("conftest.out", "w");
3351 return ferror (f) || fclose (f) != 0;
3357 ac_clean_files="$ac_clean_files conftest.out"
3358 # Check that the compiler produces executables we can run. If not, either
3359 # the compiler is broken, or we cross compile.
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3361 $as_echo_n "checking whether we are cross compiling... " >&6; }
3362 if test "$cross_compiling" != yes; then
3363 { { ac_try="$ac_link"
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3369 $as_echo "$ac_try_echo"; } >&5
3370 (eval "$ac_link") 2>&5
3372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3373 test $ac_status = 0; }
3374 if { ac_try='./conftest$ac_cv_exeext'
3375 { { case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380 $as_echo "$ac_try_echo"; } >&5
3381 (eval "$ac_try") 2>&5
3383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384 test $ac_status = 0; }; }; then
3387 if test "$cross_compiling" = maybe; then
3390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392 as_fn_error $? "cannot run C compiled programs.
3393 If you meant to cross compile, use \`--host'.
3394 See \`config.log' for more details" "$LINENO" 5; }
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3399 $as_echo "$cross_compiling" >&6; }
3401 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3402 ac_clean_files=$ac_clean_files_save
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3404 $as_echo_n "checking for suffix of object files... " >&6; }
3405 if ${ac_cv_objext+:} false; then :
3406 $as_echo_n "(cached) " >&6
3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h. */
3419 rm -f conftest.o conftest.obj
3420 if { { ac_try="$ac_compile"
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426 $as_echo "$ac_try_echo"; } >&5
3427 (eval "$ac_compile") 2>&5
3429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430 test $ac_status = 0; }; then :
3431 for ac_file in conftest.o conftest.obj conftest.*; do
3432 test -f "$ac_file" || continue;
3434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3435 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3440 $as_echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445 as_fn_error $? "cannot compute suffix of object files: cannot compile
3446 See \`config.log' for more details" "$LINENO" 5; }
3448 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3451 $as_echo "$ac_cv_objext" >&6; }
3452 OBJEXT=$ac_cv_objext
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3455 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3456 if ${ac_cv_c_compiler_gnu+:} false; then :
3457 $as_echo_n "(cached) " >&6
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3473 if ac_fn_c_try_compile "$LINENO"; then :
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3483 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3484 if test $ac_compiler_gnu = yes; then
3489 ac_test_CFLAGS=${CFLAGS+set}
3490 ac_save_CFLAGS=$CFLAGS
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3492 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3493 if ${ac_cv_prog_cc_g+:} false; then :
3494 $as_echo_n "(cached) " >&6
3496 ac_save_c_werror_flag=$ac_c_werror_flag
3497 ac_c_werror_flag=yes
3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501 /* end confdefs.h. */
3511 if ac_fn_c_try_compile "$LINENO"; then :
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3526 if ac_fn_c_try_compile "$LINENO"; then :
3529 ac_c_werror_flag=$ac_save_c_werror_flag
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h. */
3542 if ac_fn_c_try_compile "$LINENO"; then :
3545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3550 ac_c_werror_flag=$ac_save_c_werror_flag
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3553 $as_echo "$ac_cv_prog_cc_g" >&6; }
3554 if test "$ac_test_CFLAGS" = set; then
3555 CFLAGS=$ac_save_CFLAGS
3556 elif test $ac_cv_prog_cc_g = yes; then
3557 if test "$GCC" = yes; then
3563 if test "$GCC" = yes; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3570 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3571 if ${ac_cv_prog_cc_c89+:} false; then :
3572 $as_echo_n "(cached) " >&6
3574 ac_cv_prog_cc_c89=no
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3580 #include <sys/types.h>
3581 #include <sys/stat.h>
3582 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3583 struct buf { int x; };
3584 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3585 static char *e (p, i)
3591 static char *f (char * (*g) (char **, int), char **p, ...)
3596 s = g (p, va_arg (v,int));
3601 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3602 function prototypes and stuff, but not '\xHH' hex character constants.
3603 These don't provoke an error unfortunately, instead are silently treated
3604 as 'x'. The following induces an error, until -std is added to get
3605 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3606 array size at least. It's necessary to write '\x00'==0 to get something
3607 that's true only with -std. */
3608 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3610 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3611 inside strings and character constants. */
3613 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3615 int test (int i, double x);
3616 struct s1 {int (*f) (int a);};
3617 struct s2 {int (*f) (double a);};
3618 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3624 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3629 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3630 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3632 CC="$ac_save_CC $ac_arg"
3633 if ac_fn_c_try_compile "$LINENO"; then :
3634 ac_cv_prog_cc_c89=$ac_arg
3636 rm -f core conftest.err conftest.$ac_objext
3637 test "x$ac_cv_prog_cc_c89" != "xno" && break
3639 rm -f conftest.$ac_ext
3644 case "x$ac_cv_prog_cc_c89" in
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3647 $as_echo "none needed" >&6; } ;;
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3650 $as_echo "unsupported" >&6; } ;;
3652 CC="$CC $ac_cv_prog_cc_c89"
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3654 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3656 if test "x$ac_cv_prog_cc_c89" != xno; then :
3661 ac_cpp='$CPP $CPPFLAGS'
3662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3666 depcc="$CC" am_compiler_list=
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3669 $as_echo_n "checking dependency style of $depcc... " >&6; }
3670 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3671 $as_echo_n "(cached) " >&6
3673 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3674 # We make a subdir and do the tests there. Otherwise we can end up
3675 # making bogus files that we don't know about and never remove. For
3676 # instance it was reported that on HP-UX the gcc test will end up
3677 # making a dummy file named `D' -- because `-MD' means `put the output
3680 # Copy depcomp to subdir because otherwise we won't find it if we're
3681 # using a relative directory.
3682 cp "$am_depcomp" conftest.dir
3684 # We will build objects and dependencies in a subdirectory because
3685 # it helps to detect inapplicable dependency modes. For instance
3686 # both Tru64's cc and ICC support -MD to output dependencies as a
3687 # side effect of compilation, but ICC will put the dependencies in
3688 # the current directory while Tru64 will put them in the object
3692 am_cv_CC_dependencies_compiler_type=none
3693 if test "$am_compiler_list" = ""; then
3694 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3697 case " $depcc " in #(
3698 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3701 for depmode in $am_compiler_list; do
3702 # Setup a source with many dependencies, because some compilers
3703 # like to wrap large dependency lists on column 80 (with \), and
3704 # we should not choose a depcomp mode which is confused by this.
3706 # We need to recreate these files for each test, as the compiler may
3707 # overwrite some of them when testing with obscure command lines.
3708 # This happens at least with the AIX C compiler.
3710 for i in 1 2 3 4 5 6; do
3711 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3712 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3713 # Solaris 8's {/usr,}/bin/sh.
3714 touch sub/conftst$i.h
3716 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3718 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3719 # mode. It turns out that the SunPro C++ compiler does not properly
3720 # handle `-M -o', and we need to detect this. Also, some Intel
3721 # versions had trouble with output in subdirs
3722 am__obj=sub/conftest.${OBJEXT-o}
3723 am__minus_obj="-o $am__obj"
3726 # This depmode causes a compiler race in universal mode.
3727 test "$am__universal" = false || continue
3730 # after this tag, mechanisms are not by side-effect, so they'll
3731 # only be used when explicitly requested
3732 if test "x$enable_dependency_tracking" = xyes; then
3738 msvisualcpp | msvcmsys)
3739 # This compiler won't grok `-c -o', but also, the minuso test has
3740 # not run yet. These depmodes are late enough in the game, and
3741 # so weak that their functioning should not be impacted.
3742 am__obj=conftest.${OBJEXT-o}
3747 if depmode=$depmode \
3748 source=sub/conftest.c object=$am__obj \
3749 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3750 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3751 >/dev/null 2>conftest.err &&
3752 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3753 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3754 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3755 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3756 # icc doesn't choke on unknown options, it will just issue warnings
3757 # or remarks (even with -Werror). So we grep stderr for any message
3758 # that says an option was ignored or not supported.
3759 # When given -MP, icc 7.0 and 7.1 complain thusly:
3760 # icc: Command line warning: ignoring option '-M'; no argument required
3761 # The diagnosis changed in icc 8.0:
3762 # icc: Command line remark: option '-MP' not supported
3763 if (grep 'ignoring option' conftest.err ||
3764 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3765 am_cv_CC_dependencies_compiler_type=$depmode
3774 am_cv_CC_dependencies_compiler_type=none
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3779 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3780 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3783 test "x$enable_dependency_tracking" != xno \
3784 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3786 am__fastdepCC_FALSE='#'
3788 am__fastdepCC_TRUE='#'
3789 am__fastdepCC_FALSE=
3794 # Check whether --enable-glibtest was given.
3795 if test "${enable_glibtest+set}" = set; then :
3796 enableval=$enable_glibtest;
3802 pkg_config_args=glib-2.0
3807 pkg_config_args="$pkg_config_args gmodule-2.0"
3810 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
3813 pkg_config_args="$pkg_config_args gobject-2.0"
3816 pkg_config_args="$pkg_config_args gthread-2.0"
3819 pkg_config_args="$pkg_config_args $module-2.0"
3830 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3831 if test -n "$ac_tool_prefix"; then
3832 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3833 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3835 $as_echo_n "checking for $ac_word... " >&6; }
3836 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3837 $as_echo_n "(cached) " >&6
3841 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848 test -z "$as_dir" && as_dir=.
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3851 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3862 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3863 if test -n "$PKG_CONFIG"; then
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3865 $as_echo "$PKG_CONFIG" >&6; }
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868 $as_echo "no" >&6; }
3873 if test -z "$ac_cv_path_PKG_CONFIG"; then
3874 ac_pt_PKG_CONFIG=$PKG_CONFIG
3875 # Extract the first word of "pkg-config", so it can be a program name with args.
3876 set dummy pkg-config; ac_word=$2
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878 $as_echo_n "checking for $ac_word... " >&6; }
3879 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3880 $as_echo_n "(cached) " >&6
3882 case $ac_pt_PKG_CONFIG in
3884 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891 test -z "$as_dir" && as_dir=.
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3894 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3905 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3906 if test -n "$ac_pt_PKG_CONFIG"; then
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3908 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911 $as_echo "no" >&6; }
3914 if test "x$ac_pt_PKG_CONFIG" = x; then
3917 case $cross_compiling:$ac_tool_warned in
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3921 ac_tool_warned=yes ;;
3923 PKG_CONFIG=$ac_pt_PKG_CONFIG
3926 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3930 if test -n "$PKG_CONFIG"; then
3931 _pkg_min_version=0.16
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3933 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3934 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3936 $as_echo "yes" >&6; }
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939 $as_echo "no" >&6; }
3946 if test "x$PKG_CONFIG" = x ; then
3951 min_glib_version=2.0.0
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
3953 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
3955 if test x$PKG_CONFIG != xno ; then
3956 ## don't try to run the test against uninstalled libtool libs
3957 if $PKG_CONFIG --uninstalled $pkg_config_args; then
3958 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
3962 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
3969 if test x"$no_glib" = x ; then
3970 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
3971 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
3972 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
3974 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
3975 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
3976 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
3977 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3978 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
3979 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3980 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
3981 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3982 if test "x$enable_glibtest" = "xyes" ; then
3983 ac_save_CFLAGS="$CFLAGS"
3984 ac_save_LIBS="$LIBS"
3985 CFLAGS="$CFLAGS $GLIB_CFLAGS"
3986 LIBS="$GLIB_LIBS $LIBS"
3988 if test "$cross_compiling" = yes; then :
3989 echo $ac_n "cross compiling; assumed OK... $ac_c"
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h. */
4001 unsigned int major, minor, micro;
4004 fclose (fopen ("conf.glibtest", "w"));
4006 /* HP/UX 9 (%@#!) writes to sscanf strings */
4007 tmp_version = g_strdup("$min_glib_version");
4008 if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, µ) != 3) {
4009 printf("%s, bad version string\n", "$min_glib_version");
4013 if ((glib_major_version != $glib_config_major_version) ||
4014 (glib_minor_version != $glib_config_minor_version) ||
4015 (glib_micro_version != $glib_config_micro_version))
4017 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
4018 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
4019 glib_major_version, glib_minor_version, glib_micro_version);
4020 printf ("*** was found! If pkg-config was correct, then it is best\n");
4021 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
4022 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
4023 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
4024 printf("*** required on your system.\n");
4025 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
4026 printf("*** to point to the correct configuration files\n");
4028 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
4029 (glib_minor_version != GLIB_MINOR_VERSION) ||
4030 (glib_micro_version != GLIB_MICRO_VERSION))
4032 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
4033 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
4034 printf("*** library (version %d.%d.%d)\n",
4035 glib_major_version, glib_minor_version, glib_micro_version);
4039 if ((glib_major_version > major) ||
4040 ((glib_major_version == major) && (glib_minor_version > minor)) ||
4041 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
4047 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
4048 glib_major_version, glib_minor_version, glib_micro_version);
4049 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
4050 major, minor, micro);
4051 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
4053 printf("*** If you have already installed a sufficiently new version, this error\n");
4054 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
4055 printf("*** being found. The easiest way to fix this is to remove the old version\n");
4056 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
4057 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
4058 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
4059 printf("*** so that the correct libraries are found at run-time))\n");
4066 if ac_fn_c_try_run "$LINENO"; then :
4071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4072 conftest.$ac_objext conftest.beam conftest.$ac_ext
4075 CFLAGS="$ac_save_CFLAGS"
4076 LIBS="$ac_save_LIBS"
4079 if test "x$no_glib" = x ; then
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
4081 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4085 $as_echo "no" >&6; }
4086 if test "$PKG_CONFIG" = "no" ; then
4087 echo "*** A new enough version of pkg-config was not found."
4088 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
4090 if test -f conf.glibtest ; then
4093 echo "*** Could not run GLIB test program, checking why..."
4094 ac_save_CFLAGS="$CFLAGS"
4095 ac_save_LIBS="$LIBS"
4096 CFLAGS="$CFLAGS $GLIB_CFLAGS"
4097 LIBS="$LIBS $GLIB_LIBS"
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4107 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
4112 if ac_fn_c_try_link "$LINENO"; then :
4113 echo "*** The test program compiled, but did not run. This usually means"
4114 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
4115 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
4116 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
4117 echo "*** to the installed location Also, make sure you have run ldconfig if that"
4118 echo "*** is required on your system"
4120 echo "*** If you have an old version installed, it is best to remove it, although"
4121 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
4123 echo "*** The test program failed to compile or link. See the file config.log for the"
4124 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
4126 rm -f core conftest.err conftest.$ac_objext \
4127 conftest$ac_exeext conftest.$ac_ext
4128 CFLAGS="$ac_save_CFLAGS"
4129 LIBS="$ac_save_LIBS"
4146 if test "x$CC" != xcc; then
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4148 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4151 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4153 set dummy $CC; ac_cc=`$as_echo "$2" |
4154 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4155 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4156 $as_echo_n "(cached) " >&6
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4169 # Make sure it works both with $CC and with simple cc.
4170 # We do the test twice because some compilers refuse to overwrite an
4171 # existing .o file with -o, though they will create one.
4172 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4174 if { { case "(($ac_try" in
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4179 $as_echo "$ac_try_echo"; } >&5
4180 (eval "$ac_try") 2>&5
4182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4183 test $ac_status = 0; } &&
4184 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4189 $as_echo "$ac_try_echo"; } >&5
4190 (eval "$ac_try") 2>&5
4192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4193 test $ac_status = 0; };
4195 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4196 if test "x$CC" != xcc; then
4197 # Test first that cc exists at all.
4198 if { ac_try='cc -c conftest.$ac_ext >&5'
4199 { { case "(($ac_try" in
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4204 $as_echo "$ac_try_echo"; } >&5
4205 (eval "$ac_try") 2>&5
4207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4208 test $ac_status = 0; }; }; then
4209 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4211 if { { case "(($ac_try" in
4212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213 *) ac_try_echo=$ac_try;;
4215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4216 $as_echo "$ac_try_echo"; } >&5
4217 (eval "$ac_try") 2>&5
4219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4220 test $ac_status = 0; } &&
4221 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4226 $as_echo "$ac_try_echo"; } >&5
4227 (eval "$ac_try") 2>&5
4229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4230 test $ac_status = 0; };
4235 # cc exists but doesn't like -o.
4236 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4241 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4243 rm -f core conftest*
4246 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4248 $as_echo "yes" >&6; }
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 $as_echo "no" >&6; }
4253 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4257 # FIXME: we rely on the cache variable name because
4258 # there is no other way.
4260 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4261 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4262 if test "$am_t" != yes; then
4263 # Losing compiler, so override with the script.
4264 # FIXME: It is wrong to rewrite CC.
4265 # But if we don't then we get into trouble of one sort or another.
4266 # A longer-term fix would be to have automake use am__CC in this case,
4267 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4268 CC="$am_aux_dir/compile $CC"
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4277 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4283 macro_revision='1.3293'
4297 ltmain="$ac_aux_dir/ltmain.sh"
4299 # Make sure we can run config.sub.
4300 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4301 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4304 $as_echo_n "checking build system type... " >&6; }
4305 if ${ac_cv_build+:} false; then :
4306 $as_echo_n "(cached) " >&6
4308 ac_build_alias=$build_alias
4309 test "x$ac_build_alias" = x &&
4310 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4311 test "x$ac_build_alias" = x &&
4312 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4313 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4314 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4318 $as_echo "$ac_cv_build" >&6; }
4319 case $ac_cv_build in
4321 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4324 ac_save_IFS=$IFS; IFS='-'
4330 # Remember, the first character of IFS is used to create $*,
4331 # except with old shells:
4334 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4338 $as_echo_n "checking host system type... " >&6; }
4339 if ${ac_cv_host+:} false; then :
4340 $as_echo_n "(cached) " >&6
4342 if test "x$host_alias" = x; then
4343 ac_cv_host=$ac_cv_build
4345 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4346 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4351 $as_echo "$ac_cv_host" >&6; }
4354 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4357 ac_save_IFS=$IFS; IFS='-'
4363 # Remember, the first character of IFS is used to create $*,
4364 # except with old shells:
4367 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4370 # Backslashify metacharacters that are still active within
4371 # double-quoted strings.
4372 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4374 # Same as above, but do not quote variable references.
4375 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4377 # Sed substitution to delay expansion of an escaped shell variable in a
4378 # double_quote_subst'ed string.
4379 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4381 # Sed substitution to delay expansion of an escaped single quote.
4382 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4384 # Sed substitution to avoid accidental globbing in evaled expressions
4385 no_glob_subst='s/\*/\\\*/g'
4387 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4388 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4389 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4392 $as_echo_n "checking how to print strings... " >&6; }
4393 # Test print first, because it will be a builtin if present.
4394 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4395 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4397 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4400 # Use this function as a fallback that always works.
4401 func_fallback_echo ()
4403 eval 'cat <<_LTECHO_EOF
4407 ECHO='func_fallback_echo'
4410 # func_echo_all arg...
4411 # Invoke $ECHO with all args, space-separated.
4418 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4419 $as_echo "printf" >&6; } ;;
4420 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4421 $as_echo "print -r" >&6; } ;;
4422 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4423 $as_echo "cat" >&6; } ;;
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4440 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4441 if ${ac_cv_path_SED+:} false; then :
4442 $as_echo_n "(cached) " >&6
4444 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4445 for ac_i in 1 2 3 4 5 6 7; do
4446 ac_script="$ac_script$as_nl$ac_script"
4448 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4449 { ac_script=; unset ac_script;}
4450 if test -z "$SED"; then
4451 ac_path_SED_found=false
4452 # Loop through the user's path and test for each of PROGNAME-LIST
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 test -z "$as_dir" && as_dir=.
4458 for ac_prog in sed gsed; do
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4461 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4462 # Check for GNU ac_path_SED and select it if it is found.
4463 # Check for GNU $ac_path_SED
4464 case `"$ac_path_SED" --version 2>&1` in
4466 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4469 $as_echo_n 0123456789 >"conftest.in"
4472 cat "conftest.in" "conftest.in" >"conftest.tmp"
4473 mv "conftest.tmp" "conftest.in"
4474 cp "conftest.in" "conftest.nl"
4475 $as_echo '' >> "conftest.nl"
4476 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4477 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4478 as_fn_arith $ac_count + 1 && ac_count=$as_val
4479 if test $ac_count -gt ${ac_path_SED_max-0}; then
4480 # Best one so far, save it but keep looking for a better one
4481 ac_cv_path_SED="$ac_path_SED"
4482 ac_path_SED_max=$ac_count
4484 # 10*(2^10) chars as input seems more than enough
4485 test $ac_count -gt 10 && break
4487 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4490 $ac_path_SED_found && break 3
4495 if test -z "$ac_cv_path_SED"; then
4496 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4504 $as_echo "$ac_cv_path_SED" >&6; }
4505 SED="$ac_cv_path_SED"
4508 test -z "$SED" && SED=sed
4509 Xsed="$SED -e 1s/^X//"
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4522 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4523 if ${ac_cv_path_GREP+:} false; then :
4524 $as_echo_n "(cached) " >&6
4526 if test -z "$GREP"; then
4527 ac_path_GREP_found=false
4528 # Loop through the user's path and test for each of PROGNAME-LIST
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4533 test -z "$as_dir" && as_dir=.
4534 for ac_prog in grep ggrep; do
4535 for ac_exec_ext in '' $ac_executable_extensions; do
4536 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4537 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4538 # Check for GNU ac_path_GREP and select it if it is found.
4539 # Check for GNU $ac_path_GREP
4540 case `"$ac_path_GREP" --version 2>&1` in
4542 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4545 $as_echo_n 0123456789 >"conftest.in"
4548 cat "conftest.in" "conftest.in" >"conftest.tmp"
4549 mv "conftest.tmp" "conftest.in"
4550 cp "conftest.in" "conftest.nl"
4551 $as_echo 'GREP' >> "conftest.nl"
4552 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4553 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4554 as_fn_arith $ac_count + 1 && ac_count=$as_val
4555 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4556 # Best one so far, save it but keep looking for a better one
4557 ac_cv_path_GREP="$ac_path_GREP"
4558 ac_path_GREP_max=$ac_count
4560 # 10*(2^10) chars as input seems more than enough
4561 test $ac_count -gt 10 && break
4563 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4566 $ac_path_GREP_found && break 3
4571 if test -z "$ac_cv_path_GREP"; then
4572 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4575 ac_cv_path_GREP=$GREP
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4580 $as_echo "$ac_cv_path_GREP" >&6; }
4581 GREP="$ac_cv_path_GREP"
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4585 $as_echo_n "checking for egrep... " >&6; }
4586 if ${ac_cv_path_EGREP+:} false; then :
4587 $as_echo_n "(cached) " >&6
4589 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4590 then ac_cv_path_EGREP="$GREP -E"
4592 if test -z "$EGREP"; then
4593 ac_path_EGREP_found=false
4594 # Loop through the user's path and test for each of PROGNAME-LIST
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4599 test -z "$as_dir" && as_dir=.
4600 for ac_prog in egrep; do
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4603 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4604 # Check for GNU ac_path_EGREP and select it if it is found.
4605 # Check for GNU $ac_path_EGREP
4606 case `"$ac_path_EGREP" --version 2>&1` in
4608 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4611 $as_echo_n 0123456789 >"conftest.in"
4614 cat "conftest.in" "conftest.in" >"conftest.tmp"
4615 mv "conftest.tmp" "conftest.in"
4616 cp "conftest.in" "conftest.nl"
4617 $as_echo 'EGREP' >> "conftest.nl"
4618 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4619 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4620 as_fn_arith $ac_count + 1 && ac_count=$as_val
4621 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4622 # Best one so far, save it but keep looking for a better one
4623 ac_cv_path_EGREP="$ac_path_EGREP"
4624 ac_path_EGREP_max=$ac_count
4626 # 10*(2^10) chars as input seems more than enough
4627 test $ac_count -gt 10 && break
4629 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4632 $ac_path_EGREP_found && break 3
4637 if test -z "$ac_cv_path_EGREP"; then
4638 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4641 ac_cv_path_EGREP=$EGREP
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4647 $as_echo "$ac_cv_path_EGREP" >&6; }
4648 EGREP="$ac_cv_path_EGREP"
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4652 $as_echo_n "checking for fgrep... " >&6; }
4653 if ${ac_cv_path_FGREP+:} false; then :
4654 $as_echo_n "(cached) " >&6
4656 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4657 then ac_cv_path_FGREP="$GREP -F"
4659 if test -z "$FGREP"; then
4660 ac_path_FGREP_found=false
4661 # Loop through the user's path and test for each of PROGNAME-LIST
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4666 test -z "$as_dir" && as_dir=.
4667 for ac_prog in fgrep; do
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4670 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4671 # Check for GNU ac_path_FGREP and select it if it is found.
4672 # Check for GNU $ac_path_FGREP
4673 case `"$ac_path_FGREP" --version 2>&1` in
4675 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4678 $as_echo_n 0123456789 >"conftest.in"
4681 cat "conftest.in" "conftest.in" >"conftest.tmp"
4682 mv "conftest.tmp" "conftest.in"
4683 cp "conftest.in" "conftest.nl"
4684 $as_echo 'FGREP' >> "conftest.nl"
4685 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4686 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4687 as_fn_arith $ac_count + 1 && ac_count=$as_val
4688 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4689 # Best one so far, save it but keep looking for a better one
4690 ac_cv_path_FGREP="$ac_path_FGREP"
4691 ac_path_FGREP_max=$ac_count
4693 # 10*(2^10) chars as input seems more than enough
4694 test $ac_count -gt 10 && break
4696 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4699 $ac_path_FGREP_found && break 3
4704 if test -z "$ac_cv_path_FGREP"; then
4705 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4708 ac_cv_path_FGREP=$FGREP
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4714 $as_echo "$ac_cv_path_FGREP" >&6; }
4715 FGREP="$ac_cv_path_FGREP"
4718 test -z "$GREP" && GREP=grep
4738 # Check whether --with-gnu-ld was given.
4739 if test "${with_gnu_ld+set}" = set; then :
4740 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4746 if test "$GCC" = yes; then
4747 # Check if gcc -print-prog-name=ld gives a path.
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4749 $as_echo_n "checking for ld used by $CC... " >&6; }
4752 # gcc leaves a trailing carriage return which upsets mingw
4753 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4755 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4758 # Accept absolute paths.
4760 re_direlt='/[^/][^/]*/\.\./'
4761 # Canonicalize the pathname of ld
4762 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4763 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4764 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4766 test -z "$LD" && LD="$ac_prog"
4769 # If it fails, then pretend we aren't using GCC.
4773 # If it is relative, then search for the first ld in PATH.
4777 elif test "$with_gnu_ld" = yes; then
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4779 $as_echo_n "checking for GNU ld... " >&6; }
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4782 $as_echo_n "checking for non-GNU ld... " >&6; }
4784 if ${lt_cv_path_LD+:} false; then :
4785 $as_echo_n "(cached) " >&6
4787 if test -z "$LD"; then
4788 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4789 for ac_dir in $PATH; do
4791 test -z "$ac_dir" && ac_dir=.
4792 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4793 lt_cv_path_LD="$ac_dir/$ac_prog"
4794 # Check to see if the program is GNU ld. I'd rather use --version,
4795 # but apparently some variants of GNU ld only accept -v.
4796 # Break only if it was the GNU/non-GNU ld that we prefer.
4797 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4798 *GNU* | *'with BFD'*)
4799 test "$with_gnu_ld" != no && break
4802 test "$with_gnu_ld" != yes && break
4809 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4814 if test -n "$LD"; then
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4816 $as_echo "$LD" >&6; }
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819 $as_echo "no" >&6; }
4821 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4823 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4824 if ${lt_cv_prog_gnu_ld+:} false; then :
4825 $as_echo_n "(cached) " >&6
4827 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4828 case `$LD -v 2>&1 </dev/null` in
4829 *GNU* | *'with BFD'*)
4830 lt_cv_prog_gnu_ld=yes
4833 lt_cv_prog_gnu_ld=no
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4838 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4839 with_gnu_ld=$lt_cv_prog_gnu_ld
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4850 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4851 if ${lt_cv_path_NM+:} false; then :
4852 $as_echo_n "(cached) " >&6
4854 if test -n "$NM"; then
4855 # Let the user override the test.
4858 lt_nm_to_check="${ac_tool_prefix}nm"
4859 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4860 lt_nm_to_check="$lt_nm_to_check nm"
4862 for lt_tmp_nm in $lt_nm_to_check; do
4863 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4864 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4866 test -z "$ac_dir" && ac_dir=.
4867 tmp_nm="$ac_dir/$lt_tmp_nm"
4868 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4869 # Check to see if the nm accepts a BSD-compat flag.
4870 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4871 # nm: unknown option "B" ignored
4872 # Tru64's nm complains that /dev/null is an invalid object file
4873 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4874 */dev/null* | *'Invalid file or object type'*)
4875 lt_cv_path_NM="$tmp_nm -B"
4879 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4881 lt_cv_path_NM="$tmp_nm -p"
4885 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4886 continue # so that we can try to find one that supports BSD flags
4895 : ${lt_cv_path_NM=no}
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4899 $as_echo "$lt_cv_path_NM" >&6; }
4900 if test "$lt_cv_path_NM" != "no"; then
4903 # Didn't find any BSD compatible name lister, look for dumpbin.
4904 if test -n "$DUMPBIN"; then :
4905 # Let the user override the test.
4907 if test -n "$ac_tool_prefix"; then
4908 for ac_prog in dumpbin "link -dump"
4910 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4911 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913 $as_echo_n "checking for $ac_word... " >&6; }
4914 if ${ac_cv_prog_DUMPBIN+:} false; then :
4915 $as_echo_n "(cached) " >&6
4917 if test -n "$DUMPBIN"; then
4918 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 test -z "$as_dir" && as_dir=.
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4927 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 DUMPBIN=$ac_cv_prog_DUMPBIN
4938 if test -n "$DUMPBIN"; then
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4940 $as_echo "$DUMPBIN" >&6; }
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4947 test -n "$DUMPBIN" && break
4950 if test -z "$DUMPBIN"; then
4951 ac_ct_DUMPBIN=$DUMPBIN
4952 for ac_prog in dumpbin "link -dump"
4954 # Extract the first word of "$ac_prog", so it can be a program name with args.
4955 set dummy $ac_prog; ac_word=$2
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957 $as_echo_n "checking for $ac_word... " >&6; }
4958 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4959 $as_echo_n "(cached) " >&6
4961 if test -n "$ac_ct_DUMPBIN"; then
4962 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968 test -z "$as_dir" && as_dir=.
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4971 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4982 if test -n "$ac_ct_DUMPBIN"; then
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4984 $as_echo "$ac_ct_DUMPBIN" >&6; }
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4991 test -n "$ac_ct_DUMPBIN" && break
4994 if test "x$ac_ct_DUMPBIN" = x; then
4997 case $cross_compiling:$ac_tool_warned in
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5001 ac_tool_warned=yes ;;
5003 DUMPBIN=$ac_ct_DUMPBIN
5007 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5009 DUMPBIN="$DUMPBIN -symbols"
5017 if test "$DUMPBIN" != ":"; then
5021 test -z "$NM" && NM=nm
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5029 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5030 if ${lt_cv_nm_interface+:} false; then :
5031 $as_echo_n "(cached) " >&6
5033 lt_cv_nm_interface="BSD nm"
5034 echo "int some_variable = 0;" > conftest.$ac_ext
5035 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5036 (eval "$ac_compile" 2>conftest.err)
5037 cat conftest.err >&5
5038 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5039 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5040 cat conftest.err >&5
5041 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5042 cat conftest.out >&5
5043 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5044 lt_cv_nm_interface="MS dumpbin"
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5049 $as_echo "$lt_cv_nm_interface" >&6; }
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5052 $as_echo_n "checking whether ln -s works... " >&6; }
5054 if test "$LN_S" = "ln -s"; then
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5056 $as_echo "yes" >&6; }
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5059 $as_echo "no, using $LN_S" >&6; }
5062 # find the maximum length of command line arguments
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5064 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5065 if ${lt_cv_sys_max_cmd_len+:} false; then :
5066 $as_echo_n "(cached) " >&6
5073 # On DJGPP, this test can blow up pretty badly due to problems in libc
5074 # (any single argument exceeding 2000 bytes causes a buffer overrun
5075 # during glob expansion). Even if it were fixed, the result of this
5076 # check would be larger than it should be.
5077 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5081 # Under GNU Hurd, this test is not required because there is
5082 # no limit to the length of command line arguments.
5083 # Libtool will interpret -1 as no limit whatsoever
5084 lt_cv_sys_max_cmd_len=-1;
5087 cygwin* | mingw* | cegcc*)
5088 # On Win9x/ME, this test blows up -- it succeeds, but takes
5089 # about 5 minutes as the teststring grows exponentially.
5090 # Worse, since 9x/ME are not pre-emptively multitasking,
5091 # you end up with a "frozen" computer, even though with patience
5092 # the test eventually succeeds (with a max line length of 256k).
5093 # Instead, let's just punt: use the minimum linelength reported by
5094 # all of the supported platforms: 8192 (on NT/2K/XP).
5095 lt_cv_sys_max_cmd_len=8192;
5099 # On MiNT this can take a long time and run out of memory.
5100 lt_cv_sys_max_cmd_len=8192;
5104 # On AmigaOS with pdksh, this test takes hours, literally.
5105 # So we just punt and use a minimum line length of 8192.
5106 lt_cv_sys_max_cmd_len=8192;
5109 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5110 # This has been around since 386BSD, at least. Likely further.
5111 if test -x /sbin/sysctl; then
5112 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5113 elif test -x /usr/sbin/sysctl; then
5114 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5116 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5118 # And add a safety zone
5119 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5120 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5124 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5125 lt_cv_sys_max_cmd_len=196608
5129 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5130 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5131 # nice to cause kernel panics so lets avoid the loop below.
5132 # First set a reasonable default.
5133 lt_cv_sys_max_cmd_len=16384
5135 if test -x /sbin/sysconfig; then
5136 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5137 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5142 lt_cv_sys_max_cmd_len=102400
5144 sysv5* | sco5v6* | sysv4.2uw2*)
5145 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5146 if test -n "$kargmax"; then
5147 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5149 lt_cv_sys_max_cmd_len=32768
5153 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5154 if test -n "$lt_cv_sys_max_cmd_len"; then
5155 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5156 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5158 # Make teststring a little bigger before we do anything with it.
5159 # a 1K string should be a reasonable start.
5160 for i in 1 2 3 4 5 6 7 8 ; do
5161 teststring=$teststring$teststring
5163 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5164 # If test is not a shell built-in, we'll probably end up computing a
5165 # maximum length that is only half of the actual maximum length, but
5167 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5168 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5169 test $i != 17 # 1/2 MB should be enough
5172 teststring=$teststring$teststring
5174 # Only check the string length outside the loop.
5175 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5177 # Add a significant safety factor because C++ compilers can tack on
5178 # massive amounts of additional arguments before passing them to the
5179 # linker. It appears as though 1/2 is a usable value.
5180 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5187 if test -n $lt_cv_sys_max_cmd_len ; then
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5189 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5192 $as_echo "none" >&6; }
5194 max_cmd_len=$lt_cv_sys_max_cmd_len
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5206 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5207 # Try some XSI features
5210 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5212 && eval 'test $(( 1 + 1 )) -eq 2 \
5213 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5216 $as_echo "$xsi_shell" >&6; }
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5220 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5222 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5224 && lt_shell_append=yes
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5226 $as_echo "$lt_shell_append" >&6; }
5229 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5239 # test EBCDIC or ASCII
5240 case `echo X|tr X '\101'` in
5241 A) # ASCII based system
5242 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5243 lt_SP2NL='tr \040 \012'
5244 lt_NL2SP='tr \015\012 \040\040'
5246 *) # EBCDIC based system
5247 lt_SP2NL='tr \100 \n'
5248 lt_NL2SP='tr \r\n \100\100'
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5261 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5262 if ${lt_cv_to_host_file_cmd+:} false; then :
5263 $as_echo_n "(cached) " >&6
5268 *-*-mingw* ) # actually msys
5269 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5272 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5274 * ) # otherwise, assume *nix
5275 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5281 *-*-mingw* ) # actually msys
5282 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5285 lt_cv_to_host_file_cmd=func_convert_file_noop
5287 * ) # otherwise, assume *nix
5288 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5292 * ) # unhandled hosts (and "normal" native builds)
5293 lt_cv_to_host_file_cmd=func_convert_file_noop
5299 to_host_file_cmd=$lt_cv_to_host_file_cmd
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5301 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5308 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5309 if ${lt_cv_to_tool_file_cmd+:} false; then :
5310 $as_echo_n "(cached) " >&6
5312 #assume ordinary cross tools, or native build.
5313 lt_cv_to_tool_file_cmd=func_convert_file_noop
5317 *-*-mingw* ) # actually msys
5318 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5326 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5328 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5335 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5336 if ${lt_cv_ld_reload_flag+:} false; then :
5337 $as_echo_n "(cached) " >&6
5339 lt_cv_ld_reload_flag='-r'
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5342 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5343 reload_flag=$lt_cv_ld_reload_flag
5344 case $reload_flag in
5346 *) reload_flag=" $reload_flag" ;;
5348 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5350 cygwin* | mingw* | pw32* | cegcc*)
5351 if test "$GCC" != yes; then
5356 if test "$GCC" = yes; then
5357 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5359 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5372 if test -n "$ac_tool_prefix"; then
5373 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5374 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5376 $as_echo_n "checking for $ac_word... " >&6; }
5377 if ${ac_cv_prog_OBJDUMP+:} false; then :
5378 $as_echo_n "(cached) " >&6
5380 if test -n "$OBJDUMP"; then
5381 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 test -z "$as_dir" && as_dir=.
5388 for ac_exec_ext in '' $ac_executable_extensions; do
5389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5390 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5400 OBJDUMP=$ac_cv_prog_OBJDUMP
5401 if test -n "$OBJDUMP"; then
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5403 $as_echo "$OBJDUMP" >&6; }
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406 $as_echo "no" >&6; }
5411 if test -z "$ac_cv_prog_OBJDUMP"; then
5412 ac_ct_OBJDUMP=$OBJDUMP
5413 # Extract the first word of "objdump", so it can be a program name with args.
5414 set dummy objdump; ac_word=$2
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5416 $as_echo_n "checking for $ac_word... " >&6; }
5417 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5418 $as_echo_n "(cached) " >&6
5420 if test -n "$ac_ct_OBJDUMP"; then
5421 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 test -z "$as_dir" && as_dir=.
5428 for ac_exec_ext in '' $ac_executable_extensions; do
5429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5430 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5440 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5441 if test -n "$ac_ct_OBJDUMP"; then
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5443 $as_echo "$ac_ct_OBJDUMP" >&6; }
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 $as_echo "no" >&6; }
5449 if test "x$ac_ct_OBJDUMP" = x; then
5452 case $cross_compiling:$ac_tool_warned in
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5456 ac_tool_warned=yes ;;
5458 OBJDUMP=$ac_ct_OBJDUMP
5461 OBJDUMP="$ac_cv_prog_OBJDUMP"
5464 test -z "$OBJDUMP" && OBJDUMP=objdump
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5475 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5476 if ${lt_cv_deplibs_check_method+:} false; then :
5477 $as_echo_n "(cached) " >&6
5479 lt_cv_file_magic_cmd='$MAGIC_CMD'
5480 lt_cv_file_magic_test_file=
5481 lt_cv_deplibs_check_method='unknown'
5482 # Need to set the preceding variable on all platforms that support
5483 # interlibrary dependencies.
5484 # 'none' -- dependencies not supported.
5485 # `unknown' -- same as none, but documents that we really don't know.
5486 # 'pass_all' -- all dependencies passed with no checks.
5487 # 'test_compile' -- check by making test program.
5488 # 'file_magic [[regex]]' -- check by looking for files in library path
5489 # which responds to the $file_magic_cmd with a given extended regex.
5490 # If you have `file' or equivalent on your system and you're not sure
5491 # whether `pass_all' will *always* work, you probably want this one.
5495 lt_cv_deplibs_check_method=pass_all
5499 lt_cv_deplibs_check_method=pass_all
5503 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5504 lt_cv_file_magic_cmd='/usr/bin/file -L'
5505 lt_cv_file_magic_test_file=/shlib/libc.so
5509 # func_win32_libid is a shell function defined in ltmain.sh
5510 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5511 lt_cv_file_magic_cmd='func_win32_libid'
5515 # Base MSYS/MinGW do not provide the 'file' command needed by
5516 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5517 # unless we find 'file', for example because we are cross-compiling.
5518 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5519 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5520 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5521 lt_cv_file_magic_cmd='func_win32_libid'
5523 # Keep this pattern in sync with the one in func_win32_libid.
5524 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5525 lt_cv_file_magic_cmd='$OBJDUMP -f'
5530 # use the weaker test based on 'objdump'. See mingw*.
5531 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5532 lt_cv_file_magic_cmd='$OBJDUMP -f'
5535 darwin* | rhapsody*)
5536 lt_cv_deplibs_check_method=pass_all
5539 freebsd* | dragonfly*)
5540 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5543 # Not sure whether the presence of OpenBSD here was a mistake.
5544 # Let's accept both of them until this is cleared up.
5545 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5546 lt_cv_file_magic_cmd=/usr/bin/file
5547 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5551 lt_cv_deplibs_check_method=pass_all
5556 lt_cv_deplibs_check_method=pass_all
5560 lt_cv_deplibs_check_method=pass_all
5563 hpux10.20* | hpux11*)
5564 lt_cv_file_magic_cmd=/usr/bin/file
5567 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5568 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5571 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]'
5572 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5575 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5576 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5582 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5583 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5586 irix5* | irix6* | nonstopux*)
5588 *-32|*"-32 ") libmagic=32-bit;;
5589 *-n32|*"-n32 ") libmagic=N32;;
5590 *-64|*"-64 ") libmagic=64-bit;;
5591 *) libmagic=never-match;;
5593 lt_cv_deplibs_check_method=pass_all
5596 # This must be Linux ELF.
5597 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5598 lt_cv_deplibs_check_method=pass_all
5602 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5603 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5605 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5610 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5611 lt_cv_file_magic_cmd=/usr/bin/file
5612 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5616 lt_cv_deplibs_check_method=pass_all
5620 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5623 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5627 osf3* | osf4* | osf5*)
5628 lt_cv_deplibs_check_method=pass_all
5632 lt_cv_deplibs_check_method=pass_all
5636 lt_cv_deplibs_check_method=pass_all
5639 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5640 lt_cv_deplibs_check_method=pass_all
5644 case $host_vendor in
5646 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]'
5647 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5650 lt_cv_deplibs_check_method=pass_all
5653 lt_cv_file_magic_cmd='/bin/file'
5654 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5657 lt_cv_file_magic_cmd='/bin/file'
5658 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5659 lt_cv_file_magic_test_file=/lib/libc.so
5662 lt_cv_deplibs_check_method=pass_all
5665 lt_cv_deplibs_check_method=pass_all
5671 lt_cv_deplibs_check_method=pass_all
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5677 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5681 if test "$build" = "$host"; then
5684 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5687 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5693 file_magic_cmd=$lt_cv_file_magic_cmd
5694 deplibs_check_method=$lt_cv_deplibs_check_method
5695 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5718 if test -n "$ac_tool_prefix"; then
5719 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5720 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722 $as_echo_n "checking for $ac_word... " >&6; }
5723 if ${ac_cv_prog_DLLTOOL+:} false; then :
5724 $as_echo_n "(cached) " >&6
5726 if test -n "$DLLTOOL"; then
5727 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733 test -z "$as_dir" && as_dir=.
5734 for ac_exec_ext in '' $ac_executable_extensions; do
5735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5736 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 DLLTOOL=$ac_cv_prog_DLLTOOL
5747 if test -n "$DLLTOOL"; then
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5749 $as_echo "$DLLTOOL" >&6; }
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752 $as_echo "no" >&6; }
5757 if test -z "$ac_cv_prog_DLLTOOL"; then
5758 ac_ct_DLLTOOL=$DLLTOOL
5759 # Extract the first word of "dlltool", so it can be a program name with args.
5760 set dummy dlltool; ac_word=$2
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762 $as_echo_n "checking for $ac_word... " >&6; }
5763 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5764 $as_echo_n "(cached) " >&6
5766 if test -n "$ac_ct_DLLTOOL"; then
5767 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 test -z "$as_dir" && as_dir=.
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5776 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5786 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5787 if test -n "$ac_ct_DLLTOOL"; then
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5789 $as_echo "$ac_ct_DLLTOOL" >&6; }
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5795 if test "x$ac_ct_DLLTOOL" = x; then
5798 case $cross_compiling:$ac_tool_warned in
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5802 ac_tool_warned=yes ;;
5804 DLLTOOL=$ac_ct_DLLTOOL
5807 DLLTOOL="$ac_cv_prog_DLLTOOL"
5810 test -z "$DLLTOOL" && DLLTOOL=dlltool
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5822 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5823 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5824 $as_echo_n "(cached) " >&6
5826 lt_cv_sharedlib_from_linklib_cmd='unknown'
5829 cygwin* | mingw* | pw32* | cegcc*)
5830 # two different shell functions defined in ltmain.sh
5831 # decide which to use based on capabilities of $DLLTOOL
5832 case `$DLLTOOL --help 2>&1` in
5833 *--identify-strict*)
5834 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5837 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5842 # fallback: assume linklib IS sharedlib
5843 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5849 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5850 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5851 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5859 if test -n "$ac_tool_prefix"; then
5862 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5863 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5865 $as_echo_n "checking for $ac_word... " >&6; }
5866 if ${ac_cv_prog_AR+:} false; then :
5867 $as_echo_n "(cached) " >&6
5869 if test -n "$AR"; then
5870 ac_cv_prog_AR="$AR" # Let the user override the test.
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 if test -n "$AR"; then
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5892 $as_echo "$AR" >&6; }
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5899 test -n "$AR" && break
5902 if test -z "$AR"; then
5906 # Extract the first word of "$ac_prog", so it can be a program name with args.
5907 set dummy $ac_prog; ac_word=$2
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909 $as_echo_n "checking for $ac_word... " >&6; }
5910 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5911 $as_echo_n "(cached) " >&6
5913 if test -n "$ac_ct_AR"; then
5914 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5923 ac_cv_prog_ac_ct_AR="$ac_prog"
5924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5934 if test -n "$ac_ct_AR"; then
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5936 $as_echo "$ac_ct_AR" >&6; }
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939 $as_echo "no" >&6; }
5943 test -n "$ac_ct_AR" && break
5946 if test "x$ac_ct_AR" = x; then
5949 case $cross_compiling:$ac_tool_warned in
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5953 ac_tool_warned=yes ;;
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5973 $as_echo_n "checking for archiver @FILE support... " >&6; }
5974 if ${lt_cv_ar_at_file+:} false; then :
5975 $as_echo_n "(cached) " >&6
5978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5979 /* end confdefs.h. */
5989 if ac_fn_c_try_compile "$LINENO"; then :
5990 echo conftest.$ac_objext > conftest.lst
5991 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5993 (eval $lt_ar_try) 2>&5
5995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5996 test $ac_status = 0; }
5997 if test "$ac_status" -eq 0; then
5998 # Ensure the archiver fails upon bogus file names.
5999 rm -f conftest.$ac_objext libconftest.a
6000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6001 (eval $lt_ar_try) 2>&5
6003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6004 test $ac_status = 0; }
6005 if test "$ac_status" -ne 0; then
6009 rm -f conftest.* libconftest.a
6012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6016 $as_echo "$lt_cv_ar_at_file" >&6; }
6018 if test "x$lt_cv_ar_at_file" = xno; then
6021 archiver_list_spec=$lt_cv_ar_at_file
6030 if test -n "$ac_tool_prefix"; then
6031 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6032 set dummy ${ac_tool_prefix}strip; ac_word=$2
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034 $as_echo_n "checking for $ac_word... " >&6; }
6035 if ${ac_cv_prog_STRIP+:} false; then :
6036 $as_echo_n "(cached) " >&6
6038 if test -n "$STRIP"; then
6039 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 STRIP=$ac_cv_prog_STRIP
6059 if test -n "$STRIP"; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6061 $as_echo "$STRIP" >&6; }
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6069 if test -z "$ac_cv_prog_STRIP"; then
6071 # Extract the first word of "strip", so it can be a program name with args.
6072 set dummy strip; ac_word=$2
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074 $as_echo_n "checking for $ac_word... " >&6; }
6075 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6076 $as_echo_n "(cached) " >&6
6078 if test -n "$ac_ct_STRIP"; then
6079 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 test -z "$as_dir" && as_dir=.
6086 for ac_exec_ext in '' $ac_executable_extensions; do
6087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6088 ac_cv_prog_ac_ct_STRIP="strip"
6089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6098 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6099 if test -n "$ac_ct_STRIP"; then
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6101 $as_echo "$ac_ct_STRIP" >&6; }
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6107 if test "x$ac_ct_STRIP" = x; then
6110 case $cross_compiling:$ac_tool_warned in
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6114 ac_tool_warned=yes ;;
6119 STRIP="$ac_cv_prog_STRIP"
6122 test -z "$STRIP" && STRIP=:
6129 if test -n "$ac_tool_prefix"; then
6130 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6131 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133 $as_echo_n "checking for $ac_word... " >&6; }
6134 if ${ac_cv_prog_RANLIB+:} false; then :
6135 $as_echo_n "(cached) " >&6
6137 if test -n "$RANLIB"; then
6138 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 test -z "$as_dir" && as_dir=.
6145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6147 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 RANLIB=$ac_cv_prog_RANLIB
6158 if test -n "$RANLIB"; then
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6160 $as_echo "$RANLIB" >&6; }
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163 $as_echo "no" >&6; }
6168 if test -z "$ac_cv_prog_RANLIB"; then
6169 ac_ct_RANLIB=$RANLIB
6170 # Extract the first word of "ranlib", so it can be a program name with args.
6171 set dummy ranlib; ac_word=$2
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6173 $as_echo_n "checking for $ac_word... " >&6; }
6174 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6175 $as_echo_n "(cached) " >&6
6177 if test -n "$ac_ct_RANLIB"; then
6178 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 test -z "$as_dir" && as_dir=.
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6187 ac_cv_prog_ac_ct_RANLIB="ranlib"
6188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6198 if test -n "$ac_ct_RANLIB"; then
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6200 $as_echo "$ac_ct_RANLIB" >&6; }
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6203 $as_echo "no" >&6; }
6206 if test "x$ac_ct_RANLIB" = x; then
6209 case $cross_compiling:$ac_tool_warned in
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6213 ac_tool_warned=yes ;;
6215 RANLIB=$ac_ct_RANLIB
6218 RANLIB="$ac_cv_prog_RANLIB"
6221 test -z "$RANLIB" && RANLIB=:
6228 # Determine commands to create old-style static archives.
6229 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6230 old_postinstall_cmds='chmod 644 $oldlib'
6231 old_postuninstall_cmds=
6233 if test -n "$RANLIB"; then
6236 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6239 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6242 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6247 lock_old_archive_extraction=yes ;;
6249 lock_old_archive_extraction=no ;;
6290 # If no C compiler was specified, use CC.
6293 # If no C compiler flags were specified, use CFLAGS.
6294 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6296 # Allow CC to be a program name with arguments.
6300 # Check for command to grab the raw symbol name followed by C symbol from nm.
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6302 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6303 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6304 $as_echo_n "(cached) " >&6
6307 # These are sane defaults that work on at least a few old systems.
6308 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6310 # Character class describing NM global symbol codes.
6311 symcode='[BCDEGRST]'
6313 # Regexp to match symbols that can be accessed directly from C.
6314 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6316 # Define system-specific variables.
6321 cygwin* | mingw* | pw32* | cegcc*)
6322 symcode='[ABCDGISTW]'
6325 if test "$host_cpu" = ia64; then
6326 symcode='[ABCDEGRST]'
6330 symcode='[BCDEGRST]'
6333 symcode='[BCDEGQRST]'
6344 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6352 # If we're using GNU nm, then use its standard symbol codes.
6353 case `$NM -V 2>&1` in
6354 *GNU* | *'with BFD'*)
6355 symcode='[ABCDGIRSTW]' ;;
6358 # Transform an extracted symbol line into a proper C declaration.
6359 # Some systems (esp. on ia64) link data and code symbols differently,
6360 # so use this general approach.
6361 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6363 # Transform an extracted symbol line into symbol name and symbol address
6364 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6365 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6367 # Handle CRLF in mingw tool chain
6371 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6375 # Try without a prefix underscore, then with it.
6376 for ac_symprfx in "" "_"; do
6378 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6379 symxfrm="\\1 $ac_symprfx\\2 \\2"
6381 # Write the raw and C identifiers.
6382 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6383 # Fake it for dumpbin and say T for any non-static function
6384 # and D for any global variable.
6385 # Also find C++ and __fastcall symbols from MSVC++,
6386 # which start with @ or ?.
6387 lt_cv_sys_global_symbol_pipe="$AWK '"\
6388 " {last_section=section; section=\$ 3};"\
6389 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6390 " \$ 0!~/External *\|/{next};"\
6391 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6392 " {if(hide[section]) next};"\
6393 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6394 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6395 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6396 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6397 " ' prfx=^$ac_symprfx"
6399 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6401 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6403 # Check to see that the pipe works correctly.
6407 cat > conftest.$ac_ext <<_LT_EOF
6412 void nm_test_func(void);
6413 void nm_test_func(void){}
6417 int main(){nm_test_var='a';nm_test_func();return(0);}
6420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6421 (eval $ac_compile) 2>&5
6423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6424 test $ac_status = 0; }; then
6425 # Now try to grab the symbols.
6427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6428 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6431 test $ac_status = 0; } && test -s "$nlist"; then
6432 # Try sorting and uniquifying the output.
6433 if sort "$nlist" | uniq > "$nlist"T; then
6434 mv -f "$nlist"T "$nlist"
6439 # Make sure that we snagged all the symbols we need.
6440 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6441 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6442 cat <<_LT_EOF > conftest.$ac_ext
6443 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6444 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6445 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6446 relocations are performed -- see ld's documentation on pseudo-relocs. */
6447 # define LT_DLSYM_CONST
6448 #elif defined(__osf__)
6449 /* This system does not cope well with relocations in const data. */
6450 # define LT_DLSYM_CONST
6452 # define LT_DLSYM_CONST const
6460 # Now generate the symbol file.
6461 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6463 cat <<_LT_EOF >> conftest.$ac_ext
6465 /* The mapping between symbol names and symbols. */
6466 LT_DLSYM_CONST struct {
6470 lt__PROGRAM__LTX_preloaded_symbols[] =
6472 { "@PROGRAM@", (void *) 0 },
6474 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6475 cat <<\_LT_EOF >> conftest.$ac_ext
6479 /* This works around a problem in FreeBSD linker */
6480 #ifdef FREEBSD_WORKAROUND
6481 static const void *lt_preloaded_setup() {
6482 return lt__PROGRAM__LTX_preloaded_symbols;
6490 # Now try linking the two files.
6491 mv conftest.$ac_objext conftstm.$ac_objext
6492 lt_globsym_save_LIBS=$LIBS
6493 lt_globsym_save_CFLAGS=$CFLAGS
6494 LIBS="conftstm.$ac_objext"
6495 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6497 (eval $ac_link) 2>&5
6499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6500 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6503 LIBS=$lt_globsym_save_LIBS
6504 CFLAGS=$lt_globsym_save_CFLAGS
6506 echo "cannot find nm_test_func in $nlist" >&5
6509 echo "cannot find nm_test_var in $nlist" >&5
6512 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6515 echo "$progname: failed program was:" >&5
6516 cat conftest.$ac_ext >&5
6518 rm -rf conftest* conftst*
6520 # Do not use the global_symbol_pipe unless it works.
6521 if test "$pipe_works" = yes; then
6524 lt_cv_sys_global_symbol_pipe=
6530 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6531 lt_cv_sys_global_symbol_to_cdecl=
6533 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6535 $as_echo "failed" >&6; }
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6538 $as_echo "ok" >&6; }
6541 # Response file support.
6542 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6543 nm_file_list_spec='@'
6544 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6545 nm_file_list_spec='@'
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6575 $as_echo_n "checking for sysroot... " >&6; }
6577 # Check whether --with-sysroot was given.
6578 if test "${with_sysroot+set}" = set; then :
6579 withval=$with_sysroot;
6586 case ${with_sysroot} in #(
6588 if test "$GCC" = yes; then
6589 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6593 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6599 $as_echo "${with_sysroot}" >&6; }
6600 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6605 $as_echo "${lt_sysroot:-no}" >&6; }
6611 # Check whether --enable-libtool-lock was given.
6612 if test "${enable_libtool_lock+set}" = set; then :
6613 enableval=$enable_libtool_lock;
6616 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6618 # Some flags need to be propagated to the compiler or linker for good
6622 # Find out which ABI we are using.
6623 echo 'int i;' > conftest.$ac_ext
6624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6625 (eval $ac_compile) 2>&5
6627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6628 test $ac_status = 0; }; then
6629 case `/usr/bin/file conftest.$ac_objext` in
6641 # Find out which ABI we are using.
6642 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6644 (eval $ac_compile) 2>&5
6646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6647 test $ac_status = 0; }; then
6648 if test "$lt_cv_prog_gnu_ld" = yes; then
6649 case `/usr/bin/file conftest.$ac_objext` in
6651 LD="${LD-ld} -melf32bsmip"
6654 LD="${LD-ld} -melf32bmipn32"
6657 LD="${LD-ld} -melf64bmip"
6661 case `/usr/bin/file conftest.$ac_objext` in
6677 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6678 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6679 # Find out which ABI we are using.
6680 echo 'int i;' > conftest.$ac_ext
6681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6682 (eval $ac_compile) 2>&5
6684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6685 test $ac_status = 0; }; then
6686 case `/usr/bin/file conftest.o` in
6689 x86_64-*kfreebsd*-gnu)
6690 LD="${LD-ld} -m elf_i386_fbsd"
6693 LD="${LD-ld} -m elf_i386"
6695 ppc64-*linux*|powerpc64-*linux*)
6696 LD="${LD-ld} -m elf32ppclinux"
6699 LD="${LD-ld} -m elf_s390"
6702 LD="${LD-ld} -m elf32_sparc"
6708 x86_64-*kfreebsd*-gnu)
6709 LD="${LD-ld} -m elf_x86_64_fbsd"
6712 LD="${LD-ld} -m elf_x86_64"
6714 ppc*-*linux*|powerpc*-*linux*)
6715 LD="${LD-ld} -m elf64ppc"
6717 s390*-*linux*|s390*-*tpf*)
6718 LD="${LD-ld} -m elf64_s390"
6721 LD="${LD-ld} -m elf64_sparc"
6731 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6732 SAVE_CFLAGS="$CFLAGS"
6733 CFLAGS="$CFLAGS -belf"
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6735 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6736 if ${lt_cv_cc_needs_belf+:} false; then :
6737 $as_echo_n "(cached) " >&6
6740 ac_cpp='$CPP $CPPFLAGS'
6741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6756 if ac_fn_c_try_link "$LINENO"; then :
6757 lt_cv_cc_needs_belf=yes
6759 lt_cv_cc_needs_belf=no
6761 rm -f core conftest.err conftest.$ac_objext \
6762 conftest$ac_exeext conftest.$ac_ext
6764 ac_cpp='$CPP $CPPFLAGS'
6765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6771 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6772 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6773 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6774 CFLAGS="$SAVE_CFLAGS"
6778 # Find out which ABI we are using.
6779 echo 'int i;' > conftest.$ac_ext
6780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6781 (eval $ac_compile) 2>&5
6783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6784 test $ac_status = 0; }; then
6785 case `/usr/bin/file conftest.o` in
6787 case $lt_cv_prog_gnu_ld in
6788 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6790 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6802 need_locks="$enable_libtool_lock"
6804 if test -n "$ac_tool_prefix"; then
6805 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6806 set dummy ${ac_tool_prefix}mt; ac_word=$2
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6808 $as_echo_n "checking for $ac_word... " >&6; }
6809 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6810 $as_echo_n "(cached) " >&6
6812 if test -n "$MANIFEST_TOOL"; then
6813 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6822 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6832 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6833 if test -n "$MANIFEST_TOOL"; then
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6835 $as_echo "$MANIFEST_TOOL" >&6; }
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838 $as_echo "no" >&6; }
6843 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6844 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6845 # Extract the first word of "mt", so it can be a program name with args.
6846 set dummy mt; ac_word=$2
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6848 $as_echo_n "checking for $ac_word... " >&6; }
6849 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6850 $as_echo_n "(cached) " >&6
6852 if test -n "$ac_ct_MANIFEST_TOOL"; then
6853 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859 test -z "$as_dir" && as_dir=.
6860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6862 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6872 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6873 if test -n "$ac_ct_MANIFEST_TOOL"; then
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6875 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6878 $as_echo "no" >&6; }
6881 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6884 case $cross_compiling:$ac_tool_warned in
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6888 ac_tool_warned=yes ;;
6890 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6893 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6896 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6898 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6899 if ${lt_cv_path_mainfest_tool+:} false; then :
6900 $as_echo_n "(cached) " >&6
6902 lt_cv_path_mainfest_tool=no
6903 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6904 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6905 cat conftest.err >&5
6906 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6907 lt_cv_path_mainfest_tool=yes
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6912 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6913 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6923 rhapsody* | darwin*)
6924 if test -n "$ac_tool_prefix"; then
6925 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6926 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6928 $as_echo_n "checking for $ac_word... " >&6; }
6929 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6930 $as_echo_n "(cached) " >&6
6932 if test -n "$DSYMUTIL"; then
6933 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6942 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6953 if test -n "$DSYMUTIL"; then
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6955 $as_echo "$DSYMUTIL" >&6; }
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958 $as_echo "no" >&6; }
6963 if test -z "$ac_cv_prog_DSYMUTIL"; then
6964 ac_ct_DSYMUTIL=$DSYMUTIL
6965 # Extract the first word of "dsymutil", so it can be a program name with args.
6966 set dummy dsymutil; ac_word=$2
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6968 $as_echo_n "checking for $ac_word... " >&6; }
6969 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6970 $as_echo_n "(cached) " >&6
6972 if test -n "$ac_ct_DSYMUTIL"; then
6973 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 test -z "$as_dir" && as_dir=.
6980 for ac_exec_ext in '' $ac_executable_extensions; do
6981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6982 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6992 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6993 if test -n "$ac_ct_DSYMUTIL"; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6995 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998 $as_echo "no" >&6; }
7001 if test "x$ac_ct_DSYMUTIL" = x; then
7004 case $cross_compiling:$ac_tool_warned in
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7008 ac_tool_warned=yes ;;
7010 DSYMUTIL=$ac_ct_DSYMUTIL
7013 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7016 if test -n "$ac_tool_prefix"; then
7017 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7018 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020 $as_echo_n "checking for $ac_word... " >&6; }
7021 if ${ac_cv_prog_NMEDIT+:} false; then :
7022 $as_echo_n "(cached) " >&6
7024 if test -n "$NMEDIT"; then
7025 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 test -z "$as_dir" && as_dir=.
7032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7034 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 NMEDIT=$ac_cv_prog_NMEDIT
7045 if test -n "$NMEDIT"; then
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7047 $as_echo "$NMEDIT" >&6; }
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050 $as_echo "no" >&6; }
7055 if test -z "$ac_cv_prog_NMEDIT"; then
7056 ac_ct_NMEDIT=$NMEDIT
7057 # Extract the first word of "nmedit", so it can be a program name with args.
7058 set dummy nmedit; ac_word=$2
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7060 $as_echo_n "checking for $ac_word... " >&6; }
7061 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7062 $as_echo_n "(cached) " >&6
7064 if test -n "$ac_ct_NMEDIT"; then
7065 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 test -z "$as_dir" && as_dir=.
7072 for ac_exec_ext in '' $ac_executable_extensions; do
7073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7074 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7084 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7085 if test -n "$ac_ct_NMEDIT"; then
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7087 $as_echo "$ac_ct_NMEDIT" >&6; }
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090 $as_echo "no" >&6; }
7093 if test "x$ac_ct_NMEDIT" = x; then
7096 case $cross_compiling:$ac_tool_warned in
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7100 ac_tool_warned=yes ;;
7102 NMEDIT=$ac_ct_NMEDIT
7105 NMEDIT="$ac_cv_prog_NMEDIT"
7108 if test -n "$ac_tool_prefix"; then
7109 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7110 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112 $as_echo_n "checking for $ac_word... " >&6; }
7113 if ${ac_cv_prog_LIPO+:} false; then :
7114 $as_echo_n "(cached) " >&6
7116 if test -n "$LIPO"; then
7117 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7126 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 LIPO=$ac_cv_prog_LIPO
7137 if test -n "$LIPO"; then
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7139 $as_echo "$LIPO" >&6; }
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142 $as_echo "no" >&6; }
7147 if test -z "$ac_cv_prog_LIPO"; then
7149 # Extract the first word of "lipo", so it can be a program name with args.
7150 set dummy lipo; ac_word=$2
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7152 $as_echo_n "checking for $ac_word... " >&6; }
7153 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7154 $as_echo_n "(cached) " >&6
7156 if test -n "$ac_ct_LIPO"; then
7157 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163 test -z "$as_dir" && as_dir=.
7164 for ac_exec_ext in '' $ac_executable_extensions; do
7165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7166 ac_cv_prog_ac_ct_LIPO="lipo"
7167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7176 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7177 if test -n "$ac_ct_LIPO"; then
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7179 $as_echo "$ac_ct_LIPO" >&6; }
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7182 $as_echo "no" >&6; }
7185 if test "x$ac_ct_LIPO" = x; then
7188 case $cross_compiling:$ac_tool_warned in
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7192 ac_tool_warned=yes ;;
7197 LIPO="$ac_cv_prog_LIPO"
7200 if test -n "$ac_tool_prefix"; then
7201 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7202 set dummy ${ac_tool_prefix}otool; ac_word=$2
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204 $as_echo_n "checking for $ac_word... " >&6; }
7205 if ${ac_cv_prog_OTOOL+:} false; then :
7206 $as_echo_n "(cached) " >&6
7208 if test -n "$OTOOL"; then
7209 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 test -z "$as_dir" && as_dir=.
7216 for ac_exec_ext in '' $ac_executable_extensions; do
7217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7218 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7228 OTOOL=$ac_cv_prog_OTOOL
7229 if test -n "$OTOOL"; then
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7231 $as_echo "$OTOOL" >&6; }
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234 $as_echo "no" >&6; }
7239 if test -z "$ac_cv_prog_OTOOL"; then
7241 # Extract the first word of "otool", so it can be a program name with args.
7242 set dummy otool; ac_word=$2
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7244 $as_echo_n "checking for $ac_word... " >&6; }
7245 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7246 $as_echo_n "(cached) " >&6
7248 if test -n "$ac_ct_OTOOL"; then
7249 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 test -z "$as_dir" && as_dir=.
7256 for ac_exec_ext in '' $ac_executable_extensions; do
7257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7258 ac_cv_prog_ac_ct_OTOOL="otool"
7259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7268 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7269 if test -n "$ac_ct_OTOOL"; then
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7271 $as_echo "$ac_ct_OTOOL" >&6; }
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274 $as_echo "no" >&6; }
7277 if test "x$ac_ct_OTOOL" = x; then
7280 case $cross_compiling:$ac_tool_warned in
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7284 ac_tool_warned=yes ;;
7289 OTOOL="$ac_cv_prog_OTOOL"
7292 if test -n "$ac_tool_prefix"; then
7293 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7294 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7296 $as_echo_n "checking for $ac_word... " >&6; }
7297 if ${ac_cv_prog_OTOOL64+:} false; then :
7298 $as_echo_n "(cached) " >&6
7300 if test -n "$OTOOL64"; then
7301 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 test -z "$as_dir" && as_dir=.
7308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7310 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320 OTOOL64=$ac_cv_prog_OTOOL64
7321 if test -n "$OTOOL64"; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7323 $as_echo "$OTOOL64" >&6; }
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7331 if test -z "$ac_cv_prog_OTOOL64"; then
7332 ac_ct_OTOOL64=$OTOOL64
7333 # Extract the first word of "otool64", so it can be a program name with args.
7334 set dummy otool64; ac_word=$2
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336 $as_echo_n "checking for $ac_word... " >&6; }
7337 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7338 $as_echo_n "(cached) " >&6
7340 if test -n "$ac_ct_OTOOL64"; then
7341 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7350 ac_cv_prog_ac_ct_OTOOL64="otool64"
7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7361 if test -n "$ac_ct_OTOOL64"; then
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7363 $as_echo "$ac_ct_OTOOL64" >&6; }
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366 $as_echo "no" >&6; }
7369 if test "x$ac_ct_OTOOL64" = x; then
7372 case $cross_compiling:$ac_tool_warned in
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7376 ac_tool_warned=yes ;;
7378 OTOOL64=$ac_ct_OTOOL64
7381 OTOOL64="$ac_cv_prog_OTOOL64"
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7411 $as_echo_n "checking for -single_module linker flag... " >&6; }
7412 if ${lt_cv_apple_cc_single_mod+:} false; then :
7413 $as_echo_n "(cached) " >&6
7415 lt_cv_apple_cc_single_mod=no
7416 if test -z "${LT_MULTI_MODULE}"; then
7417 # By default we will add the -single_module flag. You can override
7418 # by either setting the environment variable LT_MULTI_MODULE
7419 # non-empty at configure time, or by adding -multi_module to the
7421 rm -rf libconftest.dylib*
7422 echo "int foo(void){return 1;}" > conftest.c
7423 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7424 -dynamiclib -Wl,-single_module conftest.c" >&5
7425 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7426 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7428 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7429 lt_cv_apple_cc_single_mod=yes
7431 cat conftest.err >&5
7433 rm -rf libconftest.dylib*
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7438 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7440 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7441 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7442 $as_echo_n "(cached) " >&6
7444 lt_cv_ld_exported_symbols_list=no
7445 save_LDFLAGS=$LDFLAGS
7446 echo "_main" > conftest.sym
7447 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449 /* end confdefs.h. */
7459 if ac_fn_c_try_link "$LINENO"; then :
7460 lt_cv_ld_exported_symbols_list=yes
7462 lt_cv_ld_exported_symbols_list=no
7464 rm -f core conftest.err conftest.$ac_objext \
7465 conftest$ac_exeext conftest.$ac_ext
7466 LDFLAGS="$save_LDFLAGS"
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7470 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7472 $as_echo_n "checking for -force_load linker flag... " >&6; }
7473 if ${lt_cv_ld_force_load+:} false; then :
7474 $as_echo_n "(cached) " >&6
7476 lt_cv_ld_force_load=no
7477 cat > conftest.c << _LT_EOF
7478 int forced_loaded() { return 2;}
7480 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7481 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7482 echo "$AR cru libconftest.a conftest.o" >&5
7483 $AR cru libconftest.a conftest.o 2>&5
7484 echo "$RANLIB libconftest.a" >&5
7485 $RANLIB libconftest.a 2>&5
7486 cat > conftest.c << _LT_EOF
7487 int main() { return 0;}
7489 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7490 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7492 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7493 lt_cv_ld_force_load=yes
7495 cat conftest.err >&5
7497 rm -f conftest.err libconftest.a conftest conftest.c
7498 rm -rf conftest.dSYM
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7502 $as_echo "$lt_cv_ld_force_load" >&6; }
7504 rhapsody* | darwin1.[012])
7505 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7507 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7508 darwin*) # darwin 5.x on
7509 # if running on 10.5 or later, the deployment target defaults
7510 # to the OS version, if on x86, and 10.4, the deployment
7511 # target defaults to 10.4. Don't you love it?
7512 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7513 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7514 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7516 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7518 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7522 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7523 _lt_dar_single_mod='$single_module'
7525 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7526 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7528 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7530 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7531 _lt_dsymutil='~$DSYMUTIL $lib || :'
7539 ac_cpp='$CPP $CPPFLAGS'
7540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7544 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7545 # On Suns, sometimes $CPP names a directory.
7546 if test -n "$CPP" && test -d "$CPP"; then
7549 if test -z "$CPP"; then
7550 if ${ac_cv_prog_CPP+:} false; then :
7551 $as_echo_n "(cached) " >&6
7553 # Double quotes because CPP needs to be expanded
7554 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7557 for ac_c_preproc_warn_flag in '' yes
7559 # Use a header file that comes with gcc, so configuring glibc
7560 # with a fresh cross-compiler works.
7561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7562 # <limits.h> exists even on freestanding compilers.
7563 # On the NeXT, cc -E runs the code through the compiler's parser,
7564 # not just through cpp. "Syntax error" is here to catch this case.
7565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566 /* end confdefs.h. */
7568 # include <limits.h>
7570 # include <assert.h>
7574 if ac_fn_c_try_cpp "$LINENO"; then :
7577 # Broken: fails on valid input.
7580 rm -f conftest.err conftest.i conftest.$ac_ext
7582 # OK, works on sane cases. Now check whether nonexistent headers
7583 # can be detected and how.
7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585 /* end confdefs.h. */
7586 #include <ac_nonexistent.h>
7588 if ac_fn_c_try_cpp "$LINENO"; then :
7589 # Broken: success on invalid input.
7592 # Passes both tests.
7596 rm -f conftest.err conftest.i conftest.$ac_ext
7599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7600 rm -f conftest.i conftest.err conftest.$ac_ext
7601 if $ac_preproc_ok; then :
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7614 $as_echo "$CPP" >&6; }
7616 for ac_c_preproc_warn_flag in '' yes
7618 # Use a header file that comes with gcc, so configuring glibc
7619 # with a fresh cross-compiler works.
7620 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7621 # <limits.h> exists even on freestanding compilers.
7622 # On the NeXT, cc -E runs the code through the compiler's parser,
7623 # not just through cpp. "Syntax error" is here to catch this case.
7624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625 /* end confdefs.h. */
7627 # include <limits.h>
7629 # include <assert.h>
7633 if ac_fn_c_try_cpp "$LINENO"; then :
7636 # Broken: fails on valid input.
7639 rm -f conftest.err conftest.i conftest.$ac_ext
7641 # OK, works on sane cases. Now check whether nonexistent headers
7642 # can be detected and how.
7643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h. */
7645 #include <ac_nonexistent.h>
7647 if ac_fn_c_try_cpp "$LINENO"; then :
7648 # Broken: success on invalid input.
7651 # Passes both tests.
7655 rm -f conftest.err conftest.i conftest.$ac_ext
7658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7659 rm -f conftest.i conftest.err conftest.$ac_ext
7660 if $ac_preproc_ok; then :
7663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7665 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7666 See \`config.log' for more details" "$LINENO" 5; }
7670 ac_cpp='$CPP $CPPFLAGS'
7671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7677 $as_echo_n "checking for ANSI C header files... " >&6; }
7678 if ${ac_cv_header_stdc+:} false; then :
7679 $as_echo_n "(cached) " >&6
7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h. */
7696 if ac_fn_c_try_compile "$LINENO"; then :
7697 ac_cv_header_stdc=yes
7699 ac_cv_header_stdc=no
7701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7703 if test $ac_cv_header_stdc = yes; then
7704 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706 /* end confdefs.h. */
7710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7711 $EGREP "memchr" >/dev/null 2>&1; then :
7714 ac_cv_header_stdc=no
7720 if test $ac_cv_header_stdc = yes; then
7721 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h. */
7727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7728 $EGREP "free" >/dev/null 2>&1; then :
7731 ac_cv_header_stdc=no
7737 if test $ac_cv_header_stdc = yes; then
7738 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7739 if test "$cross_compiling" = yes; then :
7742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743 /* end confdefs.h. */
7746 #if ((' ' & 0x0FF) == 0x020)
7747 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7748 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7750 # define ISLOWER(c) \
7751 (('a' <= (c) && (c) <= 'i') \
7752 || ('j' <= (c) && (c) <= 'r') \
7753 || ('s' <= (c) && (c) <= 'z'))
7754 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7757 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7762 for (i = 0; i < 256; i++)
7763 if (XOR (islower (i), ISLOWER (i))
7764 || toupper (i) != TOUPPER (i))
7769 if ac_fn_c_try_run "$LINENO"; then :
7772 ac_cv_header_stdc=no
7774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7775 conftest.$ac_objext conftest.beam conftest.$ac_ext
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7781 $as_echo "$ac_cv_header_stdc" >&6; }
7782 if test $ac_cv_header_stdc = yes; then
7784 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7788 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7789 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7790 inttypes.h stdint.h unistd.h
7792 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7793 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7795 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7796 cat >>confdefs.h <<_ACEOF
7797 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7805 for ac_header in dlfcn.h
7807 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7809 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7810 cat >>confdefs.h <<_ACEOF
7811 #define HAVE_DLFCN_H 1
7823 # Check whether --enable-static was given.
7824 if test "${enable_static+set}" = set; then :
7825 enableval=$enable_static; p=${PACKAGE-default}
7827 yes) enable_static=yes ;;
7828 no) enable_static=no ;;
7831 # Look at the argument we got. We use all the common list separators.
7832 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7833 for pkg in $enableval; do
7835 if test "X$pkg" = "X$p"; then
7861 # Check whether --enable-shared was given.
7862 if test "${enable_shared+set}" = set; then :
7863 enableval=$enable_shared; p=${PACKAGE-default}
7865 yes) enable_shared=yes ;;
7866 no) enable_shared=no ;;
7869 # Look at the argument we got. We use all the common list separators.
7870 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7871 for pkg in $enableval; do
7873 if test "X$pkg" = "X$p"; then
7894 # Check whether --with-pic was given.
7895 if test "${with_pic+set}" = set; then :
7896 withval=$with_pic; pic_mode="$withval"
7902 test -z "$pic_mode" && pic_mode=default
7910 # Check whether --enable-fast-install was given.
7911 if test "${enable_fast_install+set}" = set; then :
7912 enableval=$enable_fast_install; p=${PACKAGE-default}
7914 yes) enable_fast_install=yes ;;
7915 no) enable_fast_install=no ;;
7917 enable_fast_install=no
7918 # Look at the argument we got. We use all the common list separators.
7919 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7920 for pkg in $enableval; do
7922 if test "X$pkg" = "X$p"; then
7923 enable_fast_install=yes
7930 enable_fast_install=yes
7943 # This can be used to rebuild libtool when needed
7944 LIBTOOL_DEPS="$ltmain"
7946 # Always use our own libtool.
7947 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7974 test -z "$LN_S" && LN_S="ln -s"
7989 if test -n "${ZSH_VERSION+set}" ; then
7990 setopt NO_GLOB_SUBST
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7994 $as_echo_n "checking for objdir... " >&6; }
7995 if ${lt_cv_objdir+:} false; then :
7996 $as_echo_n "(cached) " >&6
7998 rm -f .libs 2>/dev/null
7999 mkdir .libs 2>/dev/null
8000 if test -d .libs; then
8003 # MS-DOS does not allow filenames that begin with a dot.
8006 rmdir .libs 2>/dev/null
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8009 $as_echo "$lt_cv_objdir" >&6; }
8010 objdir=$lt_cv_objdir
8016 cat >>confdefs.h <<_ACEOF
8017 #define LT_OBJDIR "$lt_cv_objdir/"
8025 # AIX sometimes has problems with the GCC collect2 program. For some
8026 # reason, if we set the COLLECT_NAMES environment variable, the problems
8027 # vanish in a puff of smoke.
8028 if test "X${COLLECT_NAMES+set}" != Xset; then
8030 export COLLECT_NAMES
8037 can_build_shared=yes
8039 # All known linkers require a `.a' archive for static linking (except MSVC,
8040 # which needs '.lib').
8043 with_gnu_ld="$lt_cv_prog_gnu_ld"
8046 old_CFLAGS="$CFLAGS"
8048 # Set sane defaults for various variables
8049 test -z "$CC" && CC=cc
8050 test -z "$LTCC" && LTCC=$CC
8051 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8052 test -z "$LD" && LD=ld
8053 test -z "$ac_objext" && ac_objext=o
8055 for cc_temp in $compiler""; do
8057 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8058 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8063 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8066 # Only perform the check for file, if the check method requires it
8067 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8068 case $deplibs_check_method in
8070 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8072 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8073 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8074 $as_echo_n "(cached) " >&6
8078 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8081 lt_save_MAGIC_CMD="$MAGIC_CMD"
8082 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8083 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8084 for ac_dir in $ac_dummy; do
8086 test -z "$ac_dir" && ac_dir=.
8087 if test -f $ac_dir/${ac_tool_prefix}file; then
8088 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8089 if test -n "$file_magic_test_file"; then
8090 case $deplibs_check_method in
8092 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8093 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8094 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8095 $EGREP "$file_magic_regex" > /dev/null; then
8100 *** Warning: the command libtool uses to detect shared libraries,
8101 *** $file_magic_cmd, produces output that libtool cannot recognize.
8102 *** The result is that libtool may fail to recognize shared libraries
8103 *** as such. This will affect the creation of libtool libraries that
8104 *** depend on shared libraries, but programs linked with such libtool
8105 *** libraries will work regardless of this problem. Nevertheless, you
8106 *** may want to report the problem to your system manager and/or to
8107 *** bug-libtool@gnu.org
8117 MAGIC_CMD="$lt_save_MAGIC_CMD"
8122 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8123 if test -n "$MAGIC_CMD"; then
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8125 $as_echo "$MAGIC_CMD" >&6; }
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8128 $as_echo "no" >&6; }
8135 if test -z "$lt_cv_path_MAGIC_CMD"; then
8136 if test -n "$ac_tool_prefix"; then
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8138 $as_echo_n "checking for file... " >&6; }
8139 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8140 $as_echo_n "(cached) " >&6
8144 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8147 lt_save_MAGIC_CMD="$MAGIC_CMD"
8148 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8149 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8150 for ac_dir in $ac_dummy; do
8152 test -z "$ac_dir" && ac_dir=.
8153 if test -f $ac_dir/file; then
8154 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8155 if test -n "$file_magic_test_file"; then
8156 case $deplibs_check_method in
8158 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8159 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8160 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8161 $EGREP "$file_magic_regex" > /dev/null; then
8166 *** Warning: the command libtool uses to detect shared libraries,
8167 *** $file_magic_cmd, produces output that libtool cannot recognize.
8168 *** The result is that libtool may fail to recognize shared libraries
8169 *** as such. This will affect the creation of libtool libraries that
8170 *** depend on shared libraries, but programs linked with such libtool
8171 *** libraries will work regardless of this problem. Nevertheless, you
8172 *** may want to report the problem to your system manager and/or to
8173 *** bug-libtool@gnu.org
8183 MAGIC_CMD="$lt_save_MAGIC_CMD"
8188 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8189 if test -n "$MAGIC_CMD"; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8191 $as_echo "$MAGIC_CMD" >&6; }
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 $as_echo "no" >&6; }
8207 # Use C for the default configuration in the libtool script
8211 ac_cpp='$CPP $CPPFLAGS'
8212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8217 # Source file extension for C test sources.
8220 # Object file extension for compiled C test sources.
8224 # Code to be used in simple compile tests
8225 lt_simple_compile_test_code="int some_variable = 0;"
8227 # Code to be used in simple link tests
8228 lt_simple_link_test_code='int main(){return(0);}'
8236 # If no C compiler was specified, use CC.
8239 # If no C compiler flags were specified, use CFLAGS.
8240 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8242 # Allow CC to be a program name with arguments.
8245 # Save the default compiler, since it gets overwritten when the other
8246 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8247 compiler_DEFAULT=$CC
8249 # save warnings/boilerplate of simple test code
8250 ac_outfile=conftest.$ac_objext
8251 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8252 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8253 _lt_compiler_boilerplate=`cat conftest.err`
8256 ac_outfile=conftest.$ac_objext
8257 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8258 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8259 _lt_linker_boilerplate=`cat conftest.err`
8264 ## There is no encapsulation within the following macros, do not change
8265 ## the running order or otherwise move them around unless you know exactly
8266 ## what you are doing...
8267 if test -n "$compiler"; then
8269 lt_prog_compiler_no_builtin_flag=
8271 if test "$GCC" = yes; then
8272 case $cc_basename in
8274 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8276 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8280 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8281 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8282 $as_echo_n "(cached) " >&6
8284 lt_cv_prog_compiler_rtti_exceptions=no
8285 ac_outfile=conftest.$ac_objext
8286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8287 lt_compiler_flag="-fno-rtti -fno-exceptions"
8288 # Insert the option either (1) after the last *FLAGS variable, or
8289 # (2) before a word containing "conftest.", or (3) at the end.
8290 # Note that $ac_compile itself does not contain backslashes and begins
8291 # with a dollar sign (not a hyphen), so the echo should work correctly.
8292 # The option is referenced via a variable to avoid confusing sed.
8293 lt_compile=`echo "$ac_compile" | $SED \
8294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8296 -e 's:$: $lt_compiler_flag:'`
8297 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8298 (eval "$lt_compile" 2>conftest.err)
8300 cat conftest.err >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 if (exit $ac_status) && test -s "$ac_outfile"; then
8303 # The compiler can only warn and ignore the option if not recognized
8304 # So say no if there are warnings other than the usual output.
8305 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8306 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8307 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8308 lt_cv_prog_compiler_rtti_exceptions=yes
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8315 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8317 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8318 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8330 lt_prog_compiler_wl=
8331 lt_prog_compiler_pic=
8332 lt_prog_compiler_static=
8335 if test "$GCC" = yes; then
8336 lt_prog_compiler_wl='-Wl,'
8337 lt_prog_compiler_static='-static'
8341 # All AIX code is PIC.
8342 if test "$host_cpu" = ia64; then
8343 # AIX 5 now supports IA64 processor
8344 lt_prog_compiler_static='-Bstatic'
8351 # see comment about AmigaOS4 .so support
8352 lt_prog_compiler_pic='-fPIC'
8355 # FIXME: we need at least 68020 code to build shared libraries, but
8356 # adding the `-m68020' flag to GCC prevents building anything better,
8358 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8363 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8364 # PIC is the default for these OSes.
8367 mingw* | cygwin* | pw32* | os2* | cegcc*)
8368 # This hack is so that the source file can tell whether it is being
8369 # built for inclusion in a dll (and should export symbols for example).
8370 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8371 # (--disable-auto-import) libraries
8372 lt_prog_compiler_pic='-DDLL_EXPORT'
8375 darwin* | rhapsody*)
8376 # PIC is the default on this platform
8377 # Common symbols not allowed in MH_DYLIB files
8378 lt_prog_compiler_pic='-fno-common'
8382 # PIC is the default for Haiku.
8383 # The "-static" flag exists, but is broken.
8384 lt_prog_compiler_static=
8388 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8389 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8390 # sets the default TLS model and affects inlining.
8396 lt_prog_compiler_pic='-fPIC'
8402 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8403 # Instead, we relocate shared libraries at runtime.
8407 # Just because we use GCC doesn't mean we suddenly get shared libraries
8408 # on systems that don't support them.
8409 lt_prog_compiler_can_build_shared=no
8414 # QNX uses GNU C++, but need to define -shared option too, otherwise
8416 lt_prog_compiler_pic='-fPIC -shared'
8420 if test -d /usr/nec; then
8421 lt_prog_compiler_pic=-Kconform_pic
8426 lt_prog_compiler_pic='-fPIC'
8430 case $cc_basename in
8431 nvcc*) # Cuda Compiler Driver 2.2
8432 lt_prog_compiler_wl='-Xlinker '
8433 lt_prog_compiler_pic='-Xcompiler -fPIC'
8437 # PORTME Check for flag to pass linker flags through the system compiler.
8440 lt_prog_compiler_wl='-Wl,'
8441 if test "$host_cpu" = ia64; then
8442 # AIX 5 now supports IA64 processor
8443 lt_prog_compiler_static='-Bstatic'
8445 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8449 mingw* | cygwin* | pw32* | os2* | cegcc*)
8450 # This hack is so that the source file can tell whether it is being
8451 # built for inclusion in a dll (and should export symbols for example).
8452 lt_prog_compiler_pic='-DDLL_EXPORT'
8455 hpux9* | hpux10* | hpux11*)
8456 lt_prog_compiler_wl='-Wl,'
8457 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8464 lt_prog_compiler_pic='+Z'
8467 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8468 lt_prog_compiler_static='${wl}-a ${wl}archive'
8471 irix5* | irix6* | nonstopux*)
8472 lt_prog_compiler_wl='-Wl,'
8473 # PIC (with -KPIC) is the default.
8474 lt_prog_compiler_static='-non_shared'
8477 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8478 case $cc_basename in
8479 # old Intel for x86_64 which still supported -KPIC.
8481 lt_prog_compiler_wl='-Wl,'
8482 lt_prog_compiler_pic='-KPIC'
8483 lt_prog_compiler_static='-static'
8485 # icc used to be incompatible with GCC.
8486 # ICC 10 doesn't accept -KPIC any more.
8488 lt_prog_compiler_wl='-Wl,'
8489 lt_prog_compiler_pic='-fPIC'
8490 lt_prog_compiler_static='-static'
8492 # Lahey Fortran 8.1.
8494 lt_prog_compiler_wl='-Wl,'
8495 lt_prog_compiler_pic='--shared'
8496 lt_prog_compiler_static='--static'
8499 # NAG Fortran compiler
8500 lt_prog_compiler_wl='-Wl,-Wl,,'
8501 lt_prog_compiler_pic='-PIC'
8502 lt_prog_compiler_static='-Bstatic'
8504 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8505 # Portland Group compilers (*not* the Pentium gcc compiler,
8506 # which looks to be a dead project)
8507 lt_prog_compiler_wl='-Wl,'
8508 lt_prog_compiler_pic='-fpic'
8509 lt_prog_compiler_static='-Bstatic'
8512 lt_prog_compiler_wl='-Wl,'
8513 # All Alpha code is PIC.
8514 lt_prog_compiler_static='-non_shared'
8516 xl* | bgxl* | bgf* | mpixl*)
8517 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8518 lt_prog_compiler_wl='-Wl,'
8519 lt_prog_compiler_pic='-qpic'
8520 lt_prog_compiler_static='-qstaticlink'
8523 case `$CC -V 2>&1 | sed 5q` in
8524 *Sun\ F* | *Sun*Fortran*)
8525 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8526 lt_prog_compiler_pic='-KPIC'
8527 lt_prog_compiler_static='-Bstatic'
8528 lt_prog_compiler_wl=''
8532 lt_prog_compiler_pic='-KPIC'
8533 lt_prog_compiler_static='-Bstatic'
8534 lt_prog_compiler_wl='-Wl,'
8542 lt_prog_compiler_pic='-KPIC'
8543 lt_prog_compiler_static='-Bstatic'
8547 # QNX uses GNU C++, but need to define -shared option too, otherwise
8549 lt_prog_compiler_pic='-fPIC -shared'
8552 osf3* | osf4* | osf5*)
8553 lt_prog_compiler_wl='-Wl,'
8554 # All OSF/1 code is PIC.
8555 lt_prog_compiler_static='-non_shared'
8559 lt_prog_compiler_static='-non_shared'
8563 lt_prog_compiler_pic='-KPIC'
8564 lt_prog_compiler_static='-Bstatic'
8565 case $cc_basename in
8566 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8567 lt_prog_compiler_wl='-Qoption ld ';;
8569 lt_prog_compiler_wl='-Wl,';;
8574 lt_prog_compiler_wl='-Qoption ld '
8575 lt_prog_compiler_pic='-PIC'
8576 lt_prog_compiler_static='-Bstatic'
8579 sysv4 | sysv4.2uw2* | sysv4.3*)
8580 lt_prog_compiler_wl='-Wl,'
8581 lt_prog_compiler_pic='-KPIC'
8582 lt_prog_compiler_static='-Bstatic'
8586 if test -d /usr/nec ;then
8587 lt_prog_compiler_pic='-Kconform_pic'
8588 lt_prog_compiler_static='-Bstatic'
8592 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8593 lt_prog_compiler_wl='-Wl,'
8594 lt_prog_compiler_pic='-KPIC'
8595 lt_prog_compiler_static='-Bstatic'
8599 lt_prog_compiler_wl='-Wl,'
8600 lt_prog_compiler_can_build_shared=no
8604 lt_prog_compiler_pic='-pic'
8605 lt_prog_compiler_static='-Bstatic'
8609 lt_prog_compiler_can_build_shared=no
8615 # For platforms which do not support PIC, -DPIC is meaningless:
8617 lt_prog_compiler_pic=
8620 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8625 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8626 if ${lt_cv_prog_compiler_pic+:} false; then :
8627 $as_echo_n "(cached) " >&6
8629 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8632 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8633 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8636 # Check to make sure the PIC flag actually works.
8638 if test -n "$lt_prog_compiler_pic"; then
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8640 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8641 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8642 $as_echo_n "(cached) " >&6
8644 lt_cv_prog_compiler_pic_works=no
8645 ac_outfile=conftest.$ac_objext
8646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8647 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8648 # Insert the option either (1) after the last *FLAGS variable, or
8649 # (2) before a word containing "conftest.", or (3) at the end.
8650 # Note that $ac_compile itself does not contain backslashes and begins
8651 # with a dollar sign (not a hyphen), so the echo should work correctly.
8652 # The option is referenced via a variable to avoid confusing sed.
8653 lt_compile=`echo "$ac_compile" | $SED \
8654 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8655 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8656 -e 's:$: $lt_compiler_flag:'`
8657 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8658 (eval "$lt_compile" 2>conftest.err)
8660 cat conftest.err >&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 if (exit $ac_status) && test -s "$ac_outfile"; then
8663 # The compiler can only warn and ignore the option if not recognized
8664 # So say no if there are warnings other than the usual output.
8665 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8666 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8667 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8668 lt_cv_prog_compiler_pic_works=yes
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8675 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8677 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8678 case $lt_prog_compiler_pic in
8680 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8683 lt_prog_compiler_pic=
8684 lt_prog_compiler_can_build_shared=no
8700 # Check to make sure the static flag actually works.
8702 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8704 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8705 if ${lt_cv_prog_compiler_static_works+:} false; then :
8706 $as_echo_n "(cached) " >&6
8708 lt_cv_prog_compiler_static_works=no
8709 save_LDFLAGS="$LDFLAGS"
8710 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8711 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8712 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8713 # The linker can only warn and ignore the option if not recognized
8714 # So say no if there are warnings
8715 if test -s conftest.err; then
8716 # Append any errors to the config.log.
8717 cat conftest.err 1>&5
8718 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8720 if diff conftest.exp conftest.er2 >/dev/null; then
8721 lt_cv_prog_compiler_static_works=yes
8724 lt_cv_prog_compiler_static_works=yes
8728 LDFLAGS="$save_LDFLAGS"
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8732 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8734 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8737 lt_prog_compiler_static=
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8747 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8748 if ${lt_cv_prog_compiler_c_o+:} false; then :
8749 $as_echo_n "(cached) " >&6
8751 lt_cv_prog_compiler_c_o=no
8752 $RM -r conftest 2>/dev/null
8756 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8758 lt_compiler_flag="-o out/conftest2.$ac_objext"
8759 # Insert the option either (1) after the last *FLAGS variable, or
8760 # (2) before a word containing "conftest.", or (3) at the end.
8761 # Note that $ac_compile itself does not contain backslashes and begins
8762 # with a dollar sign (not a hyphen), so the echo should work correctly.
8763 lt_compile=`echo "$ac_compile" | $SED \
8764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8766 -e 's:$: $lt_compiler_flag:'`
8767 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8768 (eval "$lt_compile" 2>out/conftest.err)
8770 cat out/conftest.err >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8774 # The compiler can only warn and ignore the option if not recognized
8775 # So say no if there are warnings
8776 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8777 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8778 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8779 lt_cv_prog_compiler_c_o=yes
8784 # SGI C++ compiler will create directory out/ii_files/ for
8785 # template instantiation
8786 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8787 $RM out/* && rmdir out
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8794 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8802 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8803 if ${lt_cv_prog_compiler_c_o+:} false; then :
8804 $as_echo_n "(cached) " >&6
8806 lt_cv_prog_compiler_c_o=no
8807 $RM -r conftest 2>/dev/null
8811 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8813 lt_compiler_flag="-o out/conftest2.$ac_objext"
8814 # Insert the option either (1) after the last *FLAGS variable, or
8815 # (2) before a word containing "conftest.", or (3) at the end.
8816 # Note that $ac_compile itself does not contain backslashes and begins
8817 # with a dollar sign (not a hyphen), so the echo should work correctly.
8818 lt_compile=`echo "$ac_compile" | $SED \
8819 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8820 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8821 -e 's:$: $lt_compiler_flag:'`
8822 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8823 (eval "$lt_compile" 2>out/conftest.err)
8825 cat out/conftest.err >&5
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8829 # The compiler can only warn and ignore the option if not recognized
8830 # So say no if there are warnings
8831 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8832 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8833 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8834 lt_cv_prog_compiler_c_o=yes
8839 # SGI C++ compiler will create directory out/ii_files/ for
8840 # template instantiation
8841 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8842 $RM out/* && rmdir out
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8849 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8854 hard_links="nottested"
8855 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8856 # do not overwrite the value of need_locks provided by the user
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8858 $as_echo_n "checking if we can lock with hard links... " >&6; }
8861 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8863 ln conftest.a conftest.b 2>&5 || hard_links=no
8864 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8866 $as_echo "$hard_links" >&6; }
8867 if test "$hard_links" = no; then
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8869 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8882 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8885 allow_undefined_flag=
8886 always_export_symbols=no
8888 archive_expsym_cmds=
8889 compiler_needs_object=no
8890 enable_shared_with_static_runtimes=no
8891 export_dynamic_flag_spec=
8892 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8893 hardcode_automatic=no
8895 hardcode_direct_absolute=no
8896 hardcode_libdir_flag_spec=
8897 hardcode_libdir_flag_spec_ld=
8898 hardcode_libdir_separator=
8900 hardcode_shlibpath_var=unsupported
8902 link_all_deplibs=unknown
8905 old_archive_from_new_cmds=
8906 old_archive_from_expsyms_cmds=
8907 thread_safe_flag_spec=
8908 whole_archive_flag_spec=
8909 # include_expsyms should be a list of space-separated symbols to be *always*
8910 # included in the symbol list
8912 # exclude_expsyms can be an extended regexp of symbols to exclude
8913 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8914 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8915 # as well as any symbol that contains `d'.
8916 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8917 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8918 # platforms (ab)use it in PIC code, but their linkers get confused if
8919 # the symbol is explicitly referenced. Since portable code cannot
8920 # rely on this symbol name, it's probably fine to never include it in
8921 # preloaded symbol tables.
8922 # Exclude shared library initialization/finalization symbols.
8923 extract_expsyms_cmds=
8926 cygwin* | mingw* | pw32* | cegcc*)
8927 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8928 # When not using gcc, we currently assume that we are using
8929 # Microsoft Visual C++.
8930 if test "$GCC" != yes; then
8935 # we just hope/assume this is gcc and not c89 (= MSVC++)
8945 # On some targets, GNU ld is compatible enough with the native linker
8946 # that we're better off using the native interface for both.
8947 lt_use_gnu_ld_interface=no
8948 if test "$with_gnu_ld" = yes; then
8951 # The AIX port of GNU ld has always aspired to compatibility
8952 # with the native linker. However, as the warning in the GNU ld
8953 # block says, versions before 2.19.5* couldn't really create working
8954 # shared libraries, regardless of the interface used.
8955 case `$LD -v 2>&1` in
8956 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8957 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8958 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8960 lt_use_gnu_ld_interface=yes
8965 lt_use_gnu_ld_interface=yes
8970 if test "$lt_use_gnu_ld_interface" = yes; then
8971 # If archive_cmds runs LD, not CC, wlarc should be empty
8974 # Set some defaults for GNU ld with shared library support. These
8975 # are reset later if shared libraries are not supported. Putting them
8976 # here allows them to be overridden if necessary.
8977 runpath_var=LD_RUN_PATH
8978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8979 export_dynamic_flag_spec='${wl}--export-dynamic'
8980 # ancient GNU ld didn't support --whole-archive et. al.
8981 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8982 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8984 whole_archive_flag_spec=
8986 supports_anon_versioning=no
8987 case `$LD -v 2>&1` in
8988 *GNU\ gold*) supports_anon_versioning=yes ;;
8989 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8990 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8991 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8992 *\ 2.11.*) ;; # other 2.11 versions
8993 *) supports_anon_versioning=yes ;;
8996 # See if GNU ld supports shared libraries.
8999 # On AIX/PPC, the GNU linker is very broken
9000 if test "$host_cpu" != ia64; then
9004 *** Warning: the GNU linker, at least up to release 2.19, is reported
9005 *** to be unable to reliably create shared libraries on AIX.
9006 *** Therefore, libtool is disabling shared libraries support. If you
9007 *** really care for shared libraries, you may want to install binutils
9008 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9009 *** You will then need to restart the configuration process.
9018 # see comment about AmigaOS4 .so support
9019 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9020 archive_expsym_cmds=''
9023 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)'
9024 hardcode_libdir_flag_spec='-L$libdir'
9025 hardcode_minus_L=yes
9031 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9032 allow_undefined_flag=unsupported
9033 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9034 # support --undefined. This deserves some investigation. FIXME
9035 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9041 cygwin* | mingw* | pw32* | cegcc*)
9042 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9043 # as there is no search path for DLLs.
9044 hardcode_libdir_flag_spec='-L$libdir'
9045 export_dynamic_flag_spec='${wl}--export-all-symbols'
9046 allow_undefined_flag=unsupported
9047 always_export_symbols=no
9048 enable_shared_with_static_runtimes=yes
9049 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'
9050 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9052 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9054 # If the export-symbols file already is a .def file (1st line
9055 # is EXPORTS), use it as is; otherwise, prepend...
9056 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9057 cp $export_symbols $output_objdir/$soname.def;
9059 echo EXPORTS > $output_objdir/$soname.def;
9060 cat $export_symbols >> $output_objdir/$soname.def;
9062 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9069 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9070 link_all_deplibs=yes
9075 hardcode_shlibpath_var=no
9076 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9077 export_dynamic_flag_spec='${wl}-E'
9078 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9079 # Instead, shared libraries are loaded at an image base (0x10000000 by
9080 # default) and relocated if they conflict, which is a slow very memory
9081 # consuming and fragmenting process. To avoid this, we pick a random,
9082 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9083 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9084 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9085 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'
9088 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9090 if test "$host_os" = linux-dietlibc; then
9091 case $cc_basename in
9092 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9095 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9096 && test "$tmp_diet" = no
9098 tmp_addflag=' $pic_flag'
9099 tmp_sharedflag='-shared'
9100 case $cc_basename,$host_cpu in
9101 pgcc*) # Portland Group C compiler
9102 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'
9103 tmp_addflag=' $pic_flag'
9105 pgf77* | pgf90* | pgf95* | pgfortran*)
9106 # Portland Group f77 and f90 compilers
9107 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'
9108 tmp_addflag=' $pic_flag -Mnomain' ;;
9109 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9110 tmp_addflag=' -i_dynamic' ;;
9111 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9112 tmp_addflag=' -i_dynamic -nofor_main' ;;
9113 ifc* | ifort*) # Intel Fortran compiler
9114 tmp_addflag=' -nofor_main' ;;
9115 lf95*) # Lahey Fortran 8.1
9116 whole_archive_flag_spec=
9117 tmp_sharedflag='--shared' ;;
9118 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9119 tmp_sharedflag='-qmkshrobj'
9121 nvcc*) # Cuda Compiler Driver 2.2
9122 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'
9123 compiler_needs_object=yes
9126 case `$CC -V 2>&1 | sed 5q` in
9127 *Sun\ C*) # Sun C 5.9
9128 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'
9129 compiler_needs_object=yes
9130 tmp_sharedflag='-G' ;;
9131 *Sun\ F*) # Sun Fortran 8.3
9132 tmp_sharedflag='-G' ;;
9134 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9136 if test "x$supports_anon_versioning" = xyes; then
9137 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9138 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9139 echo "local: *; };" >> $output_objdir/$libname.ver~
9140 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9143 case $cc_basename in
9144 xlf* | bgf* | bgxlf* | mpixlf*)
9145 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9146 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9147 hardcode_libdir_flag_spec=
9148 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9149 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9150 if test "x$supports_anon_versioning" = xyes; then
9151 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9152 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9153 echo "local: *; };" >> $output_objdir/$libname.ver~
9154 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9164 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9165 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9168 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9169 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9174 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9178 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9179 *** create shared libraries on Solaris systems. Therefore, libtool
9180 *** is disabling shared libraries support. We urge you to upgrade GNU
9181 *** binutils to release 2.9.1 or newer. Another option is to modify
9182 *** your PATH or compiler configuration so that the native linker is
9183 *** used, and then restart.
9186 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9187 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9188 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9194 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9195 case `$LD -v 2>&1` in
9196 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9200 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9201 *** reliably create shared libraries on SCO systems. Therefore, libtool
9202 *** is disabling shared libraries support. We urge you to upgrade GNU
9203 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9204 *** your PATH or compiler configuration so that the native linker is
9205 *** used, and then restart.
9210 # For security reasons, it is highly recommended that you always
9211 # use absolute paths for naming shared libraries, and exclude the
9212 # DT_RUNPATH tag from executables and libraries. But doing so
9213 # requires that you compile everything twice, which is a pain.
9214 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9215 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9216 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9217 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9226 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9229 hardcode_shlibpath_var=no
9233 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9234 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9235 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9242 if test "$ld_shlibs" = no; then
9244 hardcode_libdir_flag_spec=
9245 export_dynamic_flag_spec=
9246 whole_archive_flag_spec=
9249 # PORTME fill in a description of your system's linker (not GNU ld)
9252 allow_undefined_flag=unsupported
9253 always_export_symbols=yes
9254 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'
9255 # Note: this linker hardcodes the directories in LIBPATH if there
9256 # are no directories specified by -L.
9257 hardcode_minus_L=yes
9258 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9259 # Neither direct hardcoding nor static linking is supported with a
9261 hardcode_direct=unsupported
9266 if test "$host_cpu" = ia64; then
9267 # On IA64, the linker does run time linking by default, so we don't
9268 # have to do anything special.
9269 aix_use_runtimelinking=no
9270 exp_sym_flag='-Bexport'
9273 # If we're using GNU nm, then we don't want the "-C" option.
9274 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9275 # Also, AIX nm treats weak defined symbols like other global
9276 # defined symbols, whereas GNU nm marks them as "W".
9277 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9278 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9280 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9282 aix_use_runtimelinking=no
9284 # Test if we are trying to use run time linking or normal
9285 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9286 # need to do runtime linking.
9287 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9288 for ld_flag in $LDFLAGS; do
9289 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9290 aix_use_runtimelinking=yes
9297 exp_sym_flag='-bexport'
9298 no_entry_flag='-bnoentry'
9301 # When large executables or shared objects are built, AIX ld can
9302 # have problems creating the table of contents. If linking a library
9303 # or program results in "error TOC overflow" add -mminimal-toc to
9304 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9305 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9309 hardcode_direct_absolute=yes
9310 hardcode_libdir_separator=':'
9311 link_all_deplibs=yes
9312 file_list_spec='${wl}-f,'
9314 if test "$GCC" = yes; then
9315 case $host_os in aix4.[012]|aix4.[012].*)
9316 # We only want to do this on AIX 4.2 and lower, the check
9317 # below for broken collect2 doesn't work under 4.3+
9318 collect2name=`${CC} -print-prog-name=collect2`
9319 if test -f "$collect2name" &&
9320 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9322 # We have reworked collect2
9325 # We have old collect2
9326 hardcode_direct=unsupported
9327 # It fails to find uninstalled libraries when the uninstalled
9328 # path is not listed in the libpath. Setting hardcode_minus_L
9329 # to unsupported forces relinking
9330 hardcode_minus_L=yes
9331 hardcode_libdir_flag_spec='-L$libdir'
9332 hardcode_libdir_separator=
9336 shared_flag='-shared'
9337 if test "$aix_use_runtimelinking" = yes; then
9338 shared_flag="$shared_flag "'${wl}-G'
9342 if test "$host_cpu" = ia64; then
9343 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9344 # chokes on -Wl,-G. The following line is correct:
9347 if test "$aix_use_runtimelinking" = yes; then
9348 shared_flag='${wl}-G'
9350 shared_flag='${wl}-bM:SRE'
9355 export_dynamic_flag_spec='${wl}-bexpall'
9356 # It seems that -bexpall does not export symbols beginning with
9357 # underscore (_), so it is better to generate a list of symbols to export.
9358 always_export_symbols=yes
9359 if test "$aix_use_runtimelinking" = yes; then
9360 # Warning - without using the other runtime loading flags (-brtl),
9361 # -berok will link without error, but may produce a broken library.
9362 allow_undefined_flag='-berok'
9363 # Determine the default libpath from the value encoded in an
9365 if test "${lt_cv_aix_libpath+set}" = set; then
9366 aix_libpath=$lt_cv_aix_libpath
9368 if ${lt_cv_aix_libpath_+:} false; then :
9369 $as_echo_n "(cached) " >&6
9371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9372 /* end confdefs.h. */
9382 if ac_fn_c_try_link "$LINENO"; then :
9384 lt_aix_libpath_sed='
9385 /Import File Strings/,/^$/ {
9387 s/^0 *\([^ ]*\) *$/\1/
9391 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9392 # Check for a 64-bit object if we didn't find anything.
9393 if test -z "$lt_cv_aix_libpath_"; then
9394 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9397 rm -f core conftest.err conftest.$ac_objext \
9398 conftest$ac_exeext conftest.$ac_ext
9399 if test -z "$lt_cv_aix_libpath_"; then
9400 lt_cv_aix_libpath_="/usr/lib:/lib"
9405 aix_libpath=$lt_cv_aix_libpath_
9408 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9409 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9411 if test "$host_cpu" = ia64; then
9412 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9413 allow_undefined_flag="-z nodefs"
9414 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"
9416 # Determine the default libpath from the value encoded in an
9418 if test "${lt_cv_aix_libpath+set}" = set; then
9419 aix_libpath=$lt_cv_aix_libpath
9421 if ${lt_cv_aix_libpath_+:} false; then :
9422 $as_echo_n "(cached) " >&6
9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h. */
9435 if ac_fn_c_try_link "$LINENO"; then :
9437 lt_aix_libpath_sed='
9438 /Import File Strings/,/^$/ {
9440 s/^0 *\([^ ]*\) *$/\1/
9444 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9445 # Check for a 64-bit object if we didn't find anything.
9446 if test -z "$lt_cv_aix_libpath_"; then
9447 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9450 rm -f core conftest.err conftest.$ac_objext \
9451 conftest$ac_exeext conftest.$ac_ext
9452 if test -z "$lt_cv_aix_libpath_"; then
9453 lt_cv_aix_libpath_="/usr/lib:/lib"
9458 aix_libpath=$lt_cv_aix_libpath_
9461 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9462 # Warning - without using the other run time loading flags,
9463 # -berok will link without error, but may produce a broken library.
9464 no_undefined_flag=' ${wl}-bernotok'
9465 allow_undefined_flag=' ${wl}-berok'
9466 if test "$with_gnu_ld" = yes; then
9467 # We only use this code for GNU lds that support --whole-archive.
9468 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9470 # Exported symbols can be pulled into shared objects from archives
9471 whole_archive_flag_spec='$convenience'
9473 archive_cmds_need_lc=yes
9474 # This is similar to how AIX traditionally builds its shared libraries.
9475 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9483 # see comment about AmigaOS4 .so support
9484 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9485 archive_expsym_cmds=''
9488 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)'
9489 hardcode_libdir_flag_spec='-L$libdir'
9490 hardcode_minus_L=yes
9496 export_dynamic_flag_spec=-rdynamic
9499 cygwin* | mingw* | pw32* | cegcc*)
9500 # When not using gcc, we currently assume that we are using
9501 # Microsoft Visual C++.
9502 # hardcode_libdir_flag_spec is actually meaningless, as there is
9503 # no search path for DLLs.
9504 case $cc_basename in
9507 hardcode_libdir_flag_spec=' '
9508 allow_undefined_flag=unsupported
9509 always_export_symbols=yes
9511 # Tell ltmain to make .lib files, not .a files.
9513 # Tell ltmain to make .dll files, not .so files.
9515 # FIXME: Setting linknames here is a bad hack.
9516 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9517 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9518 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9520 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9522 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9524 # The linker will not automatically build a static lib if we build a DLL.
9525 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9526 enable_shared_with_static_runtimes=yes
9527 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9529 old_postinstall_cmds='chmod 644 $oldlib'
9530 postlink_cmds='lt_outputfile="@OUTPUT@"~
9531 lt_tool_outputfile="@TOOL_OUTPUT@"~
9532 case $lt_outputfile in
9535 lt_outputfile="$lt_outputfile.exe"
9536 lt_tool_outputfile="$lt_tool_outputfile.exe"
9539 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9540 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9541 $RM "$lt_outputfile.manifest";
9545 # Assume MSVC wrapper
9546 hardcode_libdir_flag_spec=' '
9547 allow_undefined_flag=unsupported
9548 # Tell ltmain to make .lib files, not .a files.
9550 # Tell ltmain to make .dll files, not .so files.
9552 # FIXME: Setting linknames here is a bad hack.
9553 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9554 # The linker will automatically build a .lib file if we build a DLL.
9555 old_archive_from_new_cmds='true'
9556 # FIXME: Should let the user specify the lib program.
9557 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9558 enable_shared_with_static_runtimes=yes
9563 darwin* | rhapsody*)
9566 archive_cmds_need_lc=no
9568 hardcode_automatic=yes
9569 hardcode_shlibpath_var=unsupported
9570 if test "$lt_cv_ld_force_load" = "yes"; then
9571 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\"`'
9573 whole_archive_flag_spec=''
9575 link_all_deplibs=yes
9576 allow_undefined_flag="$_lt_dar_allow_undefined"
9577 case $cc_basename in
9578 ifort*) _lt_dar_can_shared=yes ;;
9579 *) _lt_dar_can_shared=$GCC ;;
9581 if test "$_lt_dar_can_shared" = "yes"; then
9582 output_verbose_link_cmd=func_echo_all
9583 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9584 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9585 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}"
9586 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}"
9595 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9596 hardcode_libdir_flag_spec='-L$libdir'
9597 hardcode_shlibpath_var=no
9604 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9605 # support. Future versions do this automatically, but an explicit c++rt0.o
9606 # does not break anything, and helps significantly (at the cost of a little
9609 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9610 hardcode_libdir_flag_spec='-R$libdir'
9612 hardcode_shlibpath_var=no
9615 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9617 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9619 hardcode_minus_L=yes
9620 hardcode_shlibpath_var=no
9623 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9624 freebsd* | dragonfly*)
9625 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9626 hardcode_libdir_flag_spec='-R$libdir'
9628 hardcode_shlibpath_var=no
9632 if test "$GCC" = yes; then
9633 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9635 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9637 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9638 hardcode_libdir_separator=:
9641 # hardcode_minus_L: Not really in the search PATH,
9642 # but as the default location of the library.
9643 hardcode_minus_L=yes
9644 export_dynamic_flag_spec='${wl}-E'
9648 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9649 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9651 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9653 if test "$with_gnu_ld" = no; then
9654 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9655 hardcode_libdir_flag_spec_ld='+b $libdir'
9656 hardcode_libdir_separator=:
9658 hardcode_direct_absolute=yes
9659 export_dynamic_flag_spec='${wl}-E'
9660 # hardcode_minus_L: Not really in the search PATH,
9661 # but as the default location of the library.
9662 hardcode_minus_L=yes
9667 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9670 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9673 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9676 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9682 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9685 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9689 # Older versions of the 11.00 compiler do not understand -b yet
9690 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9692 $as_echo_n "checking if $CC understands -b... " >&6; }
9693 if ${lt_cv_prog_compiler__b+:} false; then :
9694 $as_echo_n "(cached) " >&6
9696 lt_cv_prog_compiler__b=no
9697 save_LDFLAGS="$LDFLAGS"
9698 LDFLAGS="$LDFLAGS -b"
9699 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9700 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9701 # The linker can only warn and ignore the option if not recognized
9702 # So say no if there are warnings
9703 if test -s conftest.err; then
9704 # Append any errors to the config.log.
9705 cat conftest.err 1>&5
9706 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9707 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9708 if diff conftest.exp conftest.er2 >/dev/null; then
9709 lt_cv_prog_compiler__b=yes
9712 lt_cv_prog_compiler__b=yes
9716 LDFLAGS="$save_LDFLAGS"
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9720 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9722 if test x"$lt_cv_prog_compiler__b" = xyes; then
9723 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9725 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9731 if test "$with_gnu_ld" = no; then
9732 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9733 hardcode_libdir_separator=:
9738 hardcode_shlibpath_var=no
9742 hardcode_direct_absolute=yes
9743 export_dynamic_flag_spec='${wl}-E'
9745 # hardcode_minus_L: Not really in the search PATH,
9746 # but as the default location of the library.
9747 hardcode_minus_L=yes
9753 irix5* | irix6* | nonstopux*)
9754 if test "$GCC" = yes; then
9755 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'
9756 # Try to use the -exported_symbol ld option, if it does not
9757 # work, assume that -exports_file does not work either and
9758 # implicitly export all symbols.
9759 # This should be the same for all languages, so no per-tag cache variable.
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9761 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9762 if ${lt_cv_irix_exported_symbol+:} false; then :
9763 $as_echo_n "(cached) " >&6
9765 save_LDFLAGS="$LDFLAGS"
9766 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9769 int foo (void) { return 0; }
9771 if ac_fn_c_try_link "$LINENO"; then :
9772 lt_cv_irix_exported_symbol=yes
9774 lt_cv_irix_exported_symbol=no
9776 rm -f core conftest.err conftest.$ac_objext \
9777 conftest$ac_exeext conftest.$ac_ext
9778 LDFLAGS="$save_LDFLAGS"
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9781 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9782 if test "$lt_cv_irix_exported_symbol" = yes; then
9783 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'
9786 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'
9787 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'
9789 archive_cmds_need_lc='no'
9790 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9791 hardcode_libdir_separator=:
9793 link_all_deplibs=yes
9797 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9798 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9800 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9802 hardcode_libdir_flag_spec='-R$libdir'
9804 hardcode_shlibpath_var=no
9808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9811 hardcode_libdir_separator=:
9812 hardcode_shlibpath_var=no
9819 if test -f /usr/libexec/ld.so; then
9821 hardcode_shlibpath_var=no
9822 hardcode_direct_absolute=yes
9823 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9824 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9825 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9826 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9827 export_dynamic_flag_spec='${wl}-E'
9830 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9831 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9832 hardcode_libdir_flag_spec='-R$libdir'
9835 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9836 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9846 hardcode_libdir_flag_spec='-L$libdir'
9847 hardcode_minus_L=yes
9848 allow_undefined_flag=unsupported
9849 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9850 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9854 if test "$GCC" = yes; then
9855 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9856 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'
9858 allow_undefined_flag=' -expect_unresolved \*'
9859 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'
9861 archive_cmds_need_lc='no'
9862 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9863 hardcode_libdir_separator=:
9866 osf4* | osf5*) # as osf3* with the addition of -msym flag
9867 if test "$GCC" = yes; then
9868 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9869 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'
9870 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9872 allow_undefined_flag=' -expect_unresolved \*'
9873 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'
9874 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~
9875 $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'
9877 # Both c and cxx compiler support -rpath directly
9878 hardcode_libdir_flag_spec='-rpath $libdir'
9880 archive_cmds_need_lc='no'
9881 hardcode_libdir_separator=:
9885 no_undefined_flag=' -z defs'
9886 if test "$GCC" = yes; then
9888 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9889 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9890 $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'
9892 case `$CC -V 2>&1` in
9895 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9896 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9897 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9901 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9902 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9903 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9907 hardcode_libdir_flag_spec='-R$libdir'
9908 hardcode_shlibpath_var=no
9910 solaris2.[0-5] | solaris2.[0-5].*) ;;
9912 # The compiler driver will combine and reorder linker options,
9913 # but understands `-z linker_flag'. GCC discards it without `$wl',
9914 # but is careful enough not to reorder.
9915 # Supported since Solaris 2.6 (maybe 2.5.1?)
9916 if test "$GCC" = yes; then
9917 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9919 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9923 link_all_deplibs=yes
9927 if test "x$host_vendor" = xsequent; then
9928 # Use $CC to link under sequent, because it throws in some extra .o
9929 # files that make .init and .fini sections work.
9930 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9932 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9934 hardcode_libdir_flag_spec='-L$libdir'
9936 hardcode_minus_L=yes
9937 hardcode_shlibpath_var=no
9941 case $host_vendor in
9943 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9944 hardcode_direct=yes # is this really true???
9947 ## LD is ld it makes a PLAMLIB
9948 ## CC just makes a GrossModule.
9949 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9950 reload_cmds='$CC -r -o $output$reload_objs'
9954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9955 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9958 runpath_var='LD_RUN_PATH'
9959 hardcode_shlibpath_var=no
9963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9964 hardcode_shlibpath_var=no
9965 export_dynamic_flag_spec='-Bexport'
9969 if test -d /usr/nec; then
9970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9971 hardcode_shlibpath_var=no
9972 runpath_var=LD_RUN_PATH
9973 hardcode_runpath_var=yes
9978 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9979 no_undefined_flag='${wl}-z,text'
9980 archive_cmds_need_lc=no
9981 hardcode_shlibpath_var=no
9982 runpath_var='LD_RUN_PATH'
9984 if test "$GCC" = yes; then
9985 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9986 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9988 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9989 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9993 sysv5* | sco3.2v5* | sco5v6*)
9994 # Note: We can NOT use -z defs as we might desire, because we do not
9995 # link with -lc, and that would cause any symbols used from libc to
9996 # always be unresolved, which means just about no library would
9997 # ever link correctly. If we're not using GNU ld we use -z text
9998 # though, which does catch some bad symbols but isn't as heavy-handed
10000 no_undefined_flag='${wl}-z,text'
10001 allow_undefined_flag='${wl}-z,nodefs'
10002 archive_cmds_need_lc=no
10003 hardcode_shlibpath_var=no
10004 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10005 hardcode_libdir_separator=':'
10006 link_all_deplibs=yes
10007 export_dynamic_flag_spec='${wl}-Bexport'
10008 runpath_var='LD_RUN_PATH'
10010 if test "$GCC" = yes; then
10011 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10012 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10014 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10015 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10021 hardcode_libdir_flag_spec='-L$libdir'
10022 hardcode_shlibpath_var=no
10030 if test x$host_vendor = xsni; then
10032 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10033 export_dynamic_flag_spec='${wl}-Blargedynsym'
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10040 $as_echo "$ld_shlibs" >&6; }
10041 test "$ld_shlibs" = no && can_build_shared=no
10043 with_gnu_ld=$with_gnu_ld
10060 # Do we need to explicitly link libc?
10062 case "x$archive_cmds_need_lc" in
10064 # Assume -lc should be added
10065 archive_cmds_need_lc=yes
10067 if test "$enable_shared" = yes && test "$GCC" = yes; then
10068 case $archive_cmds in
10070 # FIXME: we may have to deal with multi-command sequences.
10073 # Test whether the compiler implicitly links with -lc since on some
10074 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10075 # to ld, don't add -lc before -lgcc.
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10077 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10078 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10079 $as_echo_n "(cached) " >&6
10082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10085 (eval $ac_compile) 2>&5
10087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10088 test $ac_status = 0; } 2>conftest.err; then
10091 libobjs=conftest.$ac_objext
10093 wl=$lt_prog_compiler_wl
10094 pic_flag=$lt_prog_compiler_pic
10100 lt_save_allow_undefined_flag=$allow_undefined_flag
10101 allow_undefined_flag=
10102 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10103 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10106 test $ac_status = 0; }
10108 lt_cv_archive_cmds_need_lc=no
10110 lt_cv_archive_cmds_need_lc=yes
10112 allow_undefined_flag=$lt_save_allow_undefined_flag
10114 cat conftest.err 1>&5
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10120 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10121 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10285 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10287 if test "$GCC" = yes; then
10289 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10290 *) lt_awk_arg="/^libraries:/" ;;
10293 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10294 *) lt_sed_strip_eq="s,=/,/,g" ;;
10296 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10297 case $lt_search_path_spec in
10299 # if the path contains ";" then we assume it to be the separator
10300 # otherwise default to the standard path separator (i.e. ":") - it is
10301 # assumed that no part of a normal pathname contains ";" but that should
10302 # okay in the real world where ";" in dirpaths is itself problematic.
10303 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10306 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10309 # Ok, now we have the path, separated by spaces, we can step through it
10310 # and add multilib dir if necessary.
10311 lt_tmp_lt_search_path_spec=
10312 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10313 for lt_sys_path in $lt_search_path_spec; do
10314 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10315 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10317 test -d "$lt_sys_path" && \
10318 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10321 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10322 BEGIN {RS=" "; FS="/|\n";} {
10325 for (lt_i = NF; lt_i > 0; lt_i--) {
10326 if ($lt_i != "" && $lt_i != ".") {
10327 if ($lt_i == "..") {
10330 if (lt_count == 0) {
10331 lt_foo="/" $lt_i lt_foo;
10338 if (lt_foo != "") { lt_freq[lt_foo]++; }
10339 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10341 # AWK program above erroneously prepends '/' to C:/dos/paths
10344 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10345 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10347 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10349 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10351 library_names_spec=
10352 libname_spec='lib$name'
10356 postuninstall_cmds=
10360 shlibpath_overrides_runpath=unknown
10362 dynamic_linker="$host_os ld.so"
10363 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10364 need_lib_prefix=unknown
10365 hardcode_into_libs=no
10367 # when you set need_version to no, make sure it does not cause -set_version
10368 # flags to be left without arguments
10369 need_version=unknown
10374 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10375 shlibpath_var=LIBPATH
10377 # AIX 3 has no versioning support, so we append a major version to the name.
10378 soname_spec='${libname}${release}${shared_ext}$major'
10385 hardcode_into_libs=yes
10386 if test "$host_cpu" = ia64; then
10387 # AIX 5 supports IA64
10388 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10389 shlibpath_var=LD_LIBRARY_PATH
10391 # With GCC up to 2.95.x, collect2 would create an import file
10392 # for dependence libraries. The import file would start with
10393 # the line `#! .'. This would cause the generated library to
10394 # depend on `.', always an invalid library. This was fixed in
10395 # development snapshots of GCC prior to 3.0.
10397 aix4 | aix4.[01] | aix4.[01].*)
10398 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10400 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10403 can_build_shared=no
10407 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10408 # soname into executable. Probably we can add versioning support to
10409 # collect2, so additional links can be useful in future.
10410 if test "$aix_use_runtimelinking" = yes; then
10411 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10412 # instead of lib<name>.a to let people know that these are not
10413 # typical AIX shared libraries.
10414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10416 # We preserve .a as extension for shared libraries through AIX4.2
10417 # and later when we are not doing run time linking.
10418 library_names_spec='${libname}${release}.a $libname.a'
10419 soname_spec='${libname}${release}${shared_ext}$major'
10421 shlibpath_var=LIBPATH
10428 # Since July 2007 AmigaOS4 officially supports .so libraries.
10429 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10433 library_names_spec='$libname.ixlibrary $libname.a'
10434 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10435 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
10441 library_names_spec='${libname}${shared_ext}'
10442 dynamic_linker="$host_os ld.so"
10443 shlibpath_var=LIBRARY_PATH
10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450 soname_spec='${libname}${release}${shared_ext}$major'
10451 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10452 shlibpath_var=LD_LIBRARY_PATH
10453 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10454 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10455 # the default ld.so.conf also contains /usr/contrib/lib and
10456 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10457 # libtool to hard-code these into programs
10460 cygwin* | mingw* | pw32* | cegcc*)
10461 version_type=windows
10466 case $GCC,$cc_basename in
10469 library_names_spec='$libname.dll.a'
10470 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10471 postinstall_cmds='base_file=`basename \${file}`~
10472 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10473 dldir=$destdir/`dirname \$dlpath`~
10474 test -d \$dldir || mkdir -p \$dldir~
10475 $install_prog $dir/$dlname \$dldir/$dlname~
10476 chmod a+x \$dldir/$dlname~
10477 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10478 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10480 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10481 dlpath=$dir/\$dldll~
10483 shlibpath_overrides_runpath=yes
10487 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10488 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10490 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10493 # MinGW DLLs use traditional 'lib' prefix
10494 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10497 # pw32 DLLs use 'pw' prefix rather than 'lib'
10498 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10501 dynamic_linker='Win32 ld.exe'
10506 libname_spec='$name'
10507 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10508 library_names_spec='${libname}.dll.lib'
10512 sys_lib_search_path_spec=
10515 for lt_path in $LIB
10518 # Let DOS variable expansion print the short 8.3 style file name.
10519 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10520 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10523 # Convert to MSYS style.
10524 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10527 # Convert to unix form, then to dos form, then back to unix form
10528 # but this time dos style (no spaces!) so that the unix form looks
10529 # like /cygdrive/c/PROGRA~1:/cygdr...
10530 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10531 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10532 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10535 sys_lib_search_path_spec="$LIB"
10536 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10537 # It is most probably a Windows format PATH.
10538 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10540 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10542 # FIXME: find the short name or the path components, as spaces are
10543 # common. (e.g. "Program Files" -> "PROGRA~1")
10547 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10548 postinstall_cmds='base_file=`basename \${file}`~
10549 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10550 dldir=$destdir/`dirname \$dlpath`~
10551 test -d \$dldir || mkdir -p \$dldir~
10552 $install_prog $dir/$dlname \$dldir/$dlname'
10553 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10554 dlpath=$dir/\$dldll~
10556 shlibpath_overrides_runpath=yes
10557 dynamic_linker='Win32 link.exe'
10561 # Assume MSVC wrapper
10562 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10563 dynamic_linker='Win32 ld.exe'
10566 # FIXME: first we should search . and the directory the executable is in
10570 darwin* | rhapsody*)
10571 dynamic_linker="$host_os dyld"
10572 version_type=darwin
10575 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10576 soname_spec='${libname}${release}${major}$shared_ext'
10577 shlibpath_overrides_runpath=yes
10578 shlibpath_var=DYLD_LIBRARY_PATH
10579 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10581 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10582 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10590 soname_spec='${libname}${release}${shared_ext}$major'
10591 shlibpath_var=LD_LIBRARY_PATH
10598 freebsd* | dragonfly*)
10599 # DragonFly does not have aout. When/if they implement a new
10600 # versioning mechanism, adjust this.
10601 if test -x /usr/bin/objformat; then
10602 objformat=`/usr/bin/objformat`
10605 freebsd[123]*) objformat=aout ;;
10606 *) objformat=elf ;;
10609 version_type=freebsd-$objformat
10610 case $version_type in
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10617 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10621 shlibpath_var=LD_LIBRARY_PATH
10624 shlibpath_overrides_runpath=yes
10626 freebsd3.[01]* | freebsdelf3.[01]*)
10627 shlibpath_overrides_runpath=yes
10628 hardcode_into_libs=yes
10630 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10631 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10632 shlibpath_overrides_runpath=no
10633 hardcode_into_libs=yes
10635 *) # from 4.6 on, and DragonFly
10636 shlibpath_overrides_runpath=yes
10637 hardcode_into_libs=yes
10646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10647 soname_spec='${libname}${release}${shared_ext}$major'
10648 shlibpath_var=LD_LIBRARY_PATH
10649 hardcode_into_libs=yes
10656 dynamic_linker="$host_os runtime_loader"
10657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10658 soname_spec='${libname}${release}${shared_ext}$major'
10659 shlibpath_var=LIBRARY_PATH
10660 shlibpath_overrides_runpath=yes
10661 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10662 hardcode_into_libs=yes
10665 hpux9* | hpux10* | hpux11*)
10666 # Give a soname corresponding to the major version so that dld.sl refuses to
10667 # link against other versions.
10674 hardcode_into_libs=yes
10675 dynamic_linker="$host_os dld.so"
10676 shlibpath_var=LD_LIBRARY_PATH
10677 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679 soname_spec='${libname}${release}${shared_ext}$major'
10680 if test "X$HPUX_IA64_MODE" = X32; then
10681 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10683 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10685 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10689 hardcode_into_libs=yes
10690 dynamic_linker="$host_os dld.sl"
10691 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10692 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694 soname_spec='${libname}${release}${shared_ext}$major'
10695 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10696 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10700 dynamic_linker="$host_os dld.sl"
10701 shlibpath_var=SHLIB_PATH
10702 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10704 soname_spec='${libname}${release}${shared_ext}$major'
10707 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10708 postinstall_cmds='chmod 555 $lib'
10709 # or fails outright, so override atomically:
10710 install_override_mode=555
10717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10718 soname_spec='${libname}${release}${shared_ext}$major'
10719 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10720 shlibpath_var=LD_LIBRARY_PATH
10721 shlibpath_overrides_runpath=no
10722 hardcode_into_libs=yes
10725 irix5* | irix6* | nonstopux*)
10727 nonstopux*) version_type=nonstopux ;;
10729 if test "$lt_cv_prog_gnu_ld" = yes; then
10737 soname_spec='${libname}${release}${shared_ext}$major'
10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10740 irix5* | nonstopux*)
10741 libsuff= shlibsuff=
10744 case $LD in # libtool.m4 will add one of these switches to LD
10745 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10746 libsuff= shlibsuff= libmagic=32-bit;;
10747 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10748 libsuff=32 shlibsuff=N32 libmagic=N32;;
10749 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10750 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10751 *) libsuff= shlibsuff= libmagic=never-match;;
10755 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10756 shlibpath_overrides_runpath=no
10757 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10758 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10759 hardcode_into_libs=yes
10762 # No shared lib support for Linux oldld, aout, or coff.
10763 linux*oldld* | linux*aout* | linux*coff*)
10767 # This must be Linux ELF.
10768 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10773 soname_spec='${libname}${release}${shared_ext}$major'
10774 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10775 shlibpath_var=LD_LIBRARY_PATH
10776 shlibpath_overrides_runpath=no
10778 # Some binutils ld are patched to set DT_RUNPATH
10779 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10780 $as_echo_n "(cached) " >&6
10782 lt_cv_shlibpath_overrides_runpath=no
10783 save_LDFLAGS=$LDFLAGS
10784 save_libdir=$libdir
10785 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10786 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10788 /* end confdefs.h. */
10798 if ac_fn_c_try_link "$LINENO"; then :
10799 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10800 lt_cv_shlibpath_overrides_runpath=yes
10803 rm -f core conftest.err conftest.$ac_objext \
10804 conftest$ac_exeext conftest.$ac_ext
10805 LDFLAGS=$save_LDFLAGS
10806 libdir=$save_libdir
10810 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10812 # This implies no fast_install, which is unacceptable.
10813 # Some rework will be needed to allow for fast_install
10814 # before this can be enabled.
10815 hardcode_into_libs=yes
10817 # Add ABI-specific directories to the system library path.
10818 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10820 # Append ld.so.conf contents to the search path
10821 if test -f /etc/ld.so.conf; then
10822 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' ' '`
10823 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10827 # We used to test for /lib/ld.so.1 and disable shared libraries on
10828 # powerpc, because MkLinux only supported shared libraries with the
10829 # GNU dynamic linker. Since this was broken with cross compilers,
10830 # most powerpc-linux boxes support dynamic linking these days and
10831 # people can always --disable-shared, the test was removed, and we
10832 # assume the GNU/Linux dynamic linker is in use.
10833 dynamic_linker='GNU/Linux ld.so'
10840 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10843 dynamic_linker='NetBSD (a.out) ld.so'
10845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10846 soname_spec='${libname}${release}${shared_ext}$major'
10847 dynamic_linker='NetBSD ld.elf_so'
10849 shlibpath_var=LD_LIBRARY_PATH
10850 shlibpath_overrides_runpath=yes
10851 hardcode_into_libs=yes
10856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10857 shlibpath_var=LD_LIBRARY_PATH
10858 shlibpath_overrides_runpath=yes
10865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10866 soname_spec='${libname}${release}${shared_ext}$major'
10867 shlibpath_var=LD_LIBRARY_PATH
10868 shlibpath_overrides_runpath=no
10869 hardcode_into_libs=yes
10870 dynamic_linker='ldqnx.so'
10875 sys_lib_dlsearch_path_spec="/usr/lib"
10877 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10879 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10880 *) need_version=no ;;
10882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10883 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10884 shlibpath_var=LD_LIBRARY_PATH
10885 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10887 openbsd2.[89] | openbsd2.[89].*)
10888 shlibpath_overrides_runpath=no
10891 shlibpath_overrides_runpath=yes
10895 shlibpath_overrides_runpath=yes
10900 libname_spec='$name'
10903 library_names_spec='$libname${shared_ext} $libname.a'
10904 dynamic_linker='OS/2 ld.exe'
10905 shlibpath_var=LIBPATH
10908 osf3* | osf4* | osf5*)
10912 soname_spec='${libname}${release}${shared_ext}$major'
10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10914 shlibpath_var=LD_LIBRARY_PATH
10915 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10916 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10928 soname_spec='${libname}${release}${shared_ext}$major'
10929 shlibpath_var=LD_LIBRARY_PATH
10930 shlibpath_overrides_runpath=yes
10931 hardcode_into_libs=yes
10932 # ldd complains unless libraries are executable
10933 postinstall_cmds='chmod +x $lib'
10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10939 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10940 shlibpath_var=LD_LIBRARY_PATH
10941 shlibpath_overrides_runpath=yes
10942 if test "$with_gnu_ld" = yes; then
10950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10951 soname_spec='${libname}${release}${shared_ext}$major'
10952 shlibpath_var=LD_LIBRARY_PATH
10953 case $host_vendor in
10955 shlibpath_overrides_runpath=no
10957 runpath_var=LD_RUN_PATH
10965 shlibpath_overrides_runpath=no
10966 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10972 if test -d /usr/nec ;then
10974 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10975 soname_spec='$libname${shared_ext}.$major'
10976 shlibpath_var=LD_LIBRARY_PATH
10980 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10981 version_type=freebsd-elf
10984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10985 soname_spec='${libname}${release}${shared_ext}$major'
10986 shlibpath_var=LD_LIBRARY_PATH
10987 shlibpath_overrides_runpath=yes
10988 hardcode_into_libs=yes
10989 if test "$with_gnu_ld" = yes; then
10990 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10992 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10995 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10999 sys_lib_dlsearch_path_spec='/usr/lib'
11003 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11008 shlibpath_var=LD_LIBRARY_PATH
11009 shlibpath_overrides_runpath=no
11010 hardcode_into_libs=yes
11015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11016 soname_spec='${libname}${release}${shared_ext}$major'
11017 shlibpath_var=LD_LIBRARY_PATH
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11025 $as_echo "$dynamic_linker" >&6; }
11026 test "$dynamic_linker" = no && can_build_shared=no
11028 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11029 if test "$GCC" = yes; then
11030 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11033 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11034 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11036 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11037 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11132 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11134 if test -n "$hardcode_libdir_flag_spec" ||
11135 test -n "$runpath_var" ||
11136 test "X$hardcode_automatic" = "Xyes" ; then
11138 # We can hardcode non-existent directories.
11139 if test "$hardcode_direct" != no &&
11140 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11141 # have to relink, otherwise we might link with an installed library
11142 # when we should be linking with a yet-to-be-installed one
11143 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11144 test "$hardcode_minus_L" != no; then
11145 # Linking always hardcodes the temporary library directory.
11146 hardcode_action=relink
11148 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11149 hardcode_action=immediate
11152 # We cannot hardcode anything, or else we can only hardcode existing
11154 hardcode_action=unsupported
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11157 $as_echo "$hardcode_action" >&6; }
11159 if test "$hardcode_action" = relink ||
11160 test "$inherit_rpath" = yes; then
11161 # Fast installation is not supported
11162 enable_fast_install=no
11163 elif test "$shlibpath_overrides_runpath" = yes ||
11164 test "$enable_shared" = no; then
11165 # Fast installation is not necessary
11166 enable_fast_install=needless
11174 if test "x$enable_dlopen" != xyes; then
11175 enable_dlopen=unknown
11176 enable_dlopen_self=unknown
11177 enable_dlopen_self_static=unknown
11184 lt_cv_dlopen="load_add_on"
11186 lt_cv_dlopen_self=yes
11189 mingw* | pw32* | cegcc*)
11190 lt_cv_dlopen="LoadLibrary"
11195 lt_cv_dlopen="dlopen"
11200 # if libdl is installed we need to link against it
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11202 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11203 if ${ac_cv_lib_dl_dlopen+:} false; then :
11204 $as_echo_n "(cached) " >&6
11206 ac_check_lib_save_LIBS=$LIBS
11208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209 /* end confdefs.h. */
11211 /* Override any GCC internal prototype to avoid an error.
11212 Use char because int might match the return type of a GCC
11213 builtin and then its argument prototype would still apply. */
11226 if ac_fn_c_try_link "$LINENO"; then :
11227 ac_cv_lib_dl_dlopen=yes
11229 ac_cv_lib_dl_dlopen=no
11231 rm -f core conftest.err conftest.$ac_objext \
11232 conftest$ac_exeext conftest.$ac_ext
11233 LIBS=$ac_check_lib_save_LIBS
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11236 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11237 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11238 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11241 lt_cv_dlopen="dyld"
11243 lt_cv_dlopen_self=yes
11250 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11251 if test "x$ac_cv_func_shl_load" = xyes; then :
11252 lt_cv_dlopen="shl_load"
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11255 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11256 if ${ac_cv_lib_dld_shl_load+:} false; then :
11257 $as_echo_n "(cached) " >&6
11259 ac_check_lib_save_LIBS=$LIBS
11261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11262 /* end confdefs.h. */
11264 /* Override any GCC internal prototype to avoid an error.
11265 Use char because int might match the return type of a GCC
11266 builtin and then its argument prototype would still apply. */
11274 return shl_load ();
11279 if ac_fn_c_try_link "$LINENO"; then :
11280 ac_cv_lib_dld_shl_load=yes
11282 ac_cv_lib_dld_shl_load=no
11284 rm -f core conftest.err conftest.$ac_objext \
11285 conftest$ac_exeext conftest.$ac_ext
11286 LIBS=$ac_check_lib_save_LIBS
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11289 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11290 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11291 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11293 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11294 if test "x$ac_cv_func_dlopen" = xyes; then :
11295 lt_cv_dlopen="dlopen"
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11298 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11299 if ${ac_cv_lib_dl_dlopen+:} false; then :
11300 $as_echo_n "(cached) " >&6
11302 ac_check_lib_save_LIBS=$LIBS
11304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11305 /* end confdefs.h. */
11307 /* Override any GCC internal prototype to avoid an error.
11308 Use char because int might match the return type of a GCC
11309 builtin and then its argument prototype would still apply. */
11322 if ac_fn_c_try_link "$LINENO"; then :
11323 ac_cv_lib_dl_dlopen=yes
11325 ac_cv_lib_dl_dlopen=no
11327 rm -f core conftest.err conftest.$ac_objext \
11328 conftest$ac_exeext conftest.$ac_ext
11329 LIBS=$ac_check_lib_save_LIBS
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11332 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11333 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11334 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11337 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11338 if ${ac_cv_lib_svld_dlopen+:} false; then :
11339 $as_echo_n "(cached) " >&6
11341 ac_check_lib_save_LIBS=$LIBS
11342 LIBS="-lsvld $LIBS"
11343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11346 /* Override any GCC internal prototype to avoid an error.
11347 Use char because int might match the return type of a GCC
11348 builtin and then its argument prototype would still apply. */
11361 if ac_fn_c_try_link "$LINENO"; then :
11362 ac_cv_lib_svld_dlopen=yes
11364 ac_cv_lib_svld_dlopen=no
11366 rm -f core conftest.err conftest.$ac_objext \
11367 conftest$ac_exeext conftest.$ac_ext
11368 LIBS=$ac_check_lib_save_LIBS
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11371 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11372 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11373 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11376 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11377 if ${ac_cv_lib_dld_dld_link+:} false; then :
11378 $as_echo_n "(cached) " >&6
11380 ac_check_lib_save_LIBS=$LIBS
11382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11383 /* end confdefs.h. */
11385 /* Override any GCC internal prototype to avoid an error.
11386 Use char because int might match the return type of a GCC
11387 builtin and then its argument prototype would still apply. */
11395 return dld_link ();
11400 if ac_fn_c_try_link "$LINENO"; then :
11401 ac_cv_lib_dld_dld_link=yes
11403 ac_cv_lib_dld_dld_link=no
11405 rm -f core conftest.err conftest.$ac_objext \
11406 conftest$ac_exeext conftest.$ac_ext
11407 LIBS=$ac_check_lib_save_LIBS
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11410 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11411 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11412 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11433 if test "x$lt_cv_dlopen" != xno; then
11439 case $lt_cv_dlopen in
11441 save_CPPFLAGS="$CPPFLAGS"
11442 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11444 save_LDFLAGS="$LDFLAGS"
11445 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11448 LIBS="$lt_cv_dlopen_libs $LIBS"
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11451 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11452 if ${lt_cv_dlopen_self+:} false; then :
11453 $as_echo_n "(cached) " >&6
11455 if test "$cross_compiling" = yes; then :
11456 lt_cv_dlopen_self=cross
11458 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11459 lt_status=$lt_dlunknown
11460 cat > conftest.$ac_ext <<_LT_EOF
11461 #line $LINENO "configure"
11462 #include "confdefs.h"
11471 # define LT_DLGLOBAL RTLD_GLOBAL
11474 # define LT_DLGLOBAL DL_GLOBAL
11476 # define LT_DLGLOBAL 0
11480 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11481 find out it does not work in some platform. */
11482 #ifndef LT_DLLAZY_OR_NOW
11484 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11487 # define LT_DLLAZY_OR_NOW DL_LAZY
11490 # define LT_DLLAZY_OR_NOW RTLD_NOW
11493 # define LT_DLLAZY_OR_NOW DL_NOW
11495 # define LT_DLLAZY_OR_NOW 0
11502 /* When -fvisbility=hidden is used, assume the code has been annotated
11503 correspondingly for the symbols needed. */
11504 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11505 int fnord () __attribute__((visibility("default")));
11508 int fnord () { return 42; }
11511 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11512 int status = $lt_dlunknown;
11516 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11519 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11520 else puts (dlerror ());
11522 /* dlclose (self); */
11530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11531 (eval $ac_link) 2>&5
11533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11534 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11535 (./conftest; exit; ) >&5 2>/dev/null
11537 case x$lt_status in
11538 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11539 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11540 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11543 # compilation failed
11544 lt_cv_dlopen_self=no
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11552 $as_echo "$lt_cv_dlopen_self" >&6; }
11554 if test "x$lt_cv_dlopen_self" = xyes; then
11555 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11557 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11558 if ${lt_cv_dlopen_self_static+:} false; then :
11559 $as_echo_n "(cached) " >&6
11561 if test "$cross_compiling" = yes; then :
11562 lt_cv_dlopen_self_static=cross
11564 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11565 lt_status=$lt_dlunknown
11566 cat > conftest.$ac_ext <<_LT_EOF
11567 #line $LINENO "configure"
11568 #include "confdefs.h"
11577 # define LT_DLGLOBAL RTLD_GLOBAL
11580 # define LT_DLGLOBAL DL_GLOBAL
11582 # define LT_DLGLOBAL 0
11586 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11587 find out it does not work in some platform. */
11588 #ifndef LT_DLLAZY_OR_NOW
11590 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11593 # define LT_DLLAZY_OR_NOW DL_LAZY
11596 # define LT_DLLAZY_OR_NOW RTLD_NOW
11599 # define LT_DLLAZY_OR_NOW DL_NOW
11601 # define LT_DLLAZY_OR_NOW 0
11608 /* When -fvisbility=hidden is used, assume the code has been annotated
11609 correspondingly for the symbols needed. */
11610 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11611 int fnord () __attribute__((visibility("default")));
11614 int fnord () { return 42; }
11617 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11618 int status = $lt_dlunknown;
11622 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11625 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11626 else puts (dlerror ());
11628 /* dlclose (self); */
11636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11637 (eval $ac_link) 2>&5
11639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11640 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11641 (./conftest; exit; ) >&5 2>/dev/null
11643 case x$lt_status in
11644 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11645 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11646 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11649 # compilation failed
11650 lt_cv_dlopen_self_static=no
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11658 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11661 CPPFLAGS="$save_CPPFLAGS"
11662 LDFLAGS="$save_LDFLAGS"
11667 case $lt_cv_dlopen_self in
11668 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11669 *) enable_dlopen_self=unknown ;;
11672 case $lt_cv_dlopen_self_static in
11673 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11674 *) enable_dlopen_self_static=unknown ;;
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11697 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11698 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11699 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11700 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11702 $as_echo "yes" >&6; }
11704 # FIXME - insert some real tests, host_os isn't really good enough
11707 if test -n "$STRIP" ; then
11708 striplib="$STRIP -x"
11709 old_striplib="$STRIP -S"
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11711 $as_echo "yes" >&6; }
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714 $as_echo "no" >&6; }
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11719 $as_echo "no" >&6; }
11735 # Report which library types will actually be built
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11737 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11739 $as_echo "$can_build_shared" >&6; }
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11742 $as_echo_n "checking whether to build shared libraries... " >&6; }
11743 test "$can_build_shared" = "no" && enable_shared=no
11745 # On AIX, shared libraries and static libraries use the same namespace, and
11746 # are all built from PIC.
11749 test "$enable_shared" = yes && enable_static=no
11750 if test -n "$RANLIB"; then
11751 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11752 postinstall_cmds='$RANLIB $lib'
11757 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11758 test "$enable_shared" = yes && enable_static=no
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11763 $as_echo "$enable_shared" >&6; }
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11766 $as_echo_n "checking whether to build static libraries... " >&6; }
11767 # Make sure either enable_shared or enable_static is yes.
11768 test "$enable_shared" = yes || enable_static=yes
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11770 $as_echo "$enable_static" >&6; }
11777 ac_cpp='$CPP $CPPFLAGS'
11778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11796 ac_config_commands="$ac_config_commands libtool"
11801 # Only expand once:
11805 # Honor aclocal flags
11806 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
11808 JSON_MAJOR_VERSION=0
11809 JSON_MINOR_VERSION=14
11810 JSON_MICRO_VERSION=2
11811 JSON_VERSION=0.14.2
11812 JSON_RELEASE_STATUS=release
11819 JSON_LT_CURRENT=1400
11822 JSON_LT_VERSION="$JSON_LT_CURRENT:$JSON_LT_REVISION:$JSON_LT_AGE"
11823 JSON_LT_LDFLAGS="-version-info $JSON_LT_VERSION"
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for some Win32 platform" >&5
11827 $as_echo_n "checking if building for some Win32 platform... " >&6; }
11829 *-*-mingw*|*-*-cygwin*) :
11831 JSON_LT_LDFLAGS="$JSON_LT_LDFLAGS -no-undefined"
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
11839 $as_echo "$platform_win32" >&6; }
11843 GLIB_PREFIX="`$PKG_CONFIG --variable=prefix glib-2.0`"
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
11849 $as_echo_n "checking for JSON... " >&6; }
11851 if test -n "$JSON_CFLAGS"; then
11852 pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
11853 elif test -n "$PKG_CONFIG"; then
11854 if test -n "$PKG_CONFIG" && \
11855 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 >= 2.26 gio-2.0\""; } >&5
11856 ($PKG_CONFIG --exists --print-errors "gobject-2.0 >= 2.26 gio-2.0") 2>&5
11858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11859 test $ac_status = 0; }; then
11860 pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 >= 2.26 gio-2.0" 2>/dev/null`
11867 if test -n "$JSON_LIBS"; then
11868 pkg_cv_JSON_LIBS="$JSON_LIBS"
11869 elif test -n "$PKG_CONFIG"; then
11870 if test -n "$PKG_CONFIG" && \
11871 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 >= 2.26 gio-2.0\""; } >&5
11872 ($PKG_CONFIG --exists --print-errors "gobject-2.0 >= 2.26 gio-2.0") 2>&5
11874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11875 test $ac_status = 0; }; then
11876 pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "gobject-2.0 >= 2.26 gio-2.0" 2>/dev/null`
11886 if test $pkg_failed = yes; then
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11888 $as_echo "no" >&6; }
11890 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11891 _pkg_short_errors_supported=yes
11893 _pkg_short_errors_supported=no
11895 if test $_pkg_short_errors_supported = yes; then
11896 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gobject-2.0 >= 2.26 gio-2.0" 2>&1`
11898 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors "gobject-2.0 >= 2.26 gio-2.0" 2>&1`
11900 # Put the nasty error message in config.log where it belongs
11901 echo "$JSON_PKG_ERRORS" >&5
11903 as_fn_error $? "Package requirements (gobject-2.0 >= 2.26 gio-2.0) were not met:
11907 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11908 installed software in a non-standard prefix.
11910 Alternatively, you may set the environment variables JSON_CFLAGS
11911 and JSON_LIBS to avoid the need to call pkg-config.
11912 See the pkg-config man page for more details." "$LINENO" 5
11914 elif test $pkg_failed = untried; then
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916 $as_echo "no" >&6; }
11917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11919 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11920 is in your PATH or set the PKG_CONFIG environment variable to the full
11921 path to pkg-config.
11923 Alternatively, you may set the environment variables JSON_CFLAGS
11924 and JSON_LIBS to avoid the need to call pkg-config.
11925 See the pkg-config man page for more details.
11927 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11928 See \`config.log' for more details" "$LINENO" 5; }
11931 JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
11932 JSON_LIBS=$pkg_cv_JSON_LIBS
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11934 $as_echo "yes" >&6; }
11940 if test "x$enable_glibtest" = "xyes"; then
11941 ENABLE_GLIB_TEST_TRUE=
11942 ENABLE_GLIB_TEST_FALSE='#'
11944 ENABLE_GLIB_TEST_TRUE='#'
11945 ENABLE_GLIB_TEST_FALSE=
11952 # Check whether --enable-debug was given.
11953 if test "${enable_debug+set}" = set; then :
11954 enableval=$enable_debug;
11956 enable_debug=minimum
11960 case $enable_debug in #(
11963 test "$cflags_set" = set || CFLAGS="$CFLAGS -g"
11964 JSON_DEBUG_CFLAGS="-DJSON_ENABLE_DEBUG"
11968 JSON_DEBUG_CFLAGS="-DJSON_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS"
11972 JSON_DEBUG_CFLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS"
11975 as_fn_error $? "Unknown argument to --enable-debug" "$LINENO" 5
11982 # use strict compiler flags only on development releases
11984 # Check whether --enable-maintainer-flags was given.
11985 if test "${enable_maintainer_flags+set}" = set; then :
11986 enableval=$enable_maintainer_flags;
11988 enable_maintainer_flags=no
11992 if test "x$enable_maintainer_flags" = "xyes" && test "x$GCC" = "xyes"; then :
11995 list="-Wall -Wshadow -Wcast-align
11996 -Wno-uninitialized -Wformat -Wformat-security
11997 -Wno-strict-aliasing -Winit-self
11998 -Wempty-body -Wdeclaration-after-statement
11999 -Wno-strict-aliasing"
12001 flags_unsupported=""
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported compiler flags" >&5
12003 $as_echo_n "checking for supported compiler flags... " >&6; }
12006 save_CFLAGS="$CFLAGS"
12007 CFLAGS="$CFLAGS $each"
12008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h. */
12019 if ac_fn_c_try_compile "$LINENO"; then :
12024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12025 CFLAGS="$save_CFLAGS"
12027 if test "X$flag_ok" = Xyes ; then
12028 flags_supported="$flags_supported $each"
12030 flags_unsupported="$flags_unsupported $each"
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flags_supported" >&5
12034 $as_echo "$flags_supported" >&6; }
12035 if test "X$flags_unsupported" != X ; then
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsupported compiler flags: $flags_unsupported" >&5
12037 $as_echo "$as_me: WARNING: unsupported compiler flags: $flags_unsupported" >&2;}
12039 MAINTAINER_CFLAGS="$MAINTAINER_CFLAGS $flags_supported"
12044 MAINTAINER_CFLAGS="${MAINTAINER_CFLAGS#* }"
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with gcov testing" >&5
12048 $as_echo_n "checking whether to build with gcov testing... " >&6; }
12049 # Check whether --enable-gcov was given.
12050 if test "${enable_gcov+set}" = set; then :
12051 enableval=$enable_gcov;
12057 if test "x$enable_gcov" = "xyes" && test "x$GCC" = "xyes"; then :
12059 GCOV_CFLAGS="$CFLAGS -O0 -g -fprofile-arcs -ftest-coverage"
12060 GCOV_LDFLAGS="$LDFLAGS -lgcov"
12065 if test "x$enable_gcov" = "xyes"; then
12067 GCOV_ENABLED_FALSE='#'
12069 GCOV_ENABLED_TRUE='#'
12070 GCOV_ENABLED_FALSE=
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gcov" >&5
12076 $as_echo "$enable_gcov" >&6; }
12081 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
12082 set dummy gtkdoc-check; ac_word=$2
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12084 $as_echo_n "checking for $ac_word... " >&6; }
12085 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
12086 $as_echo_n "(cached) " >&6
12088 case $GTKDOC_CHECK in
12090 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
12093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12094 for as_dir in $PATH
12097 test -z "$as_dir" && as_dir=.
12098 for ac_exec_ext in '' $ac_executable_extensions; do
12099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12100 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
12101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12111 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
12112 if test -n "$GTKDOC_CHECK"; then
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
12114 $as_echo "$GTKDOC_CHECK" >&6; }
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 $as_echo "no" >&6; }
12121 for ac_prog in gtkdoc-rebase
12123 # Extract the first word of "$ac_prog", so it can be a program name with args.
12124 set dummy $ac_prog; ac_word=$2
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12126 $as_echo_n "checking for $ac_word... " >&6; }
12127 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
12128 $as_echo_n "(cached) " >&6
12130 case $GTKDOC_REBASE in
12132 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
12135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12136 for as_dir in $PATH
12139 test -z "$as_dir" && as_dir=.
12140 for ac_exec_ext in '' $ac_executable_extensions; do
12141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12142 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
12143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12153 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
12154 if test -n "$GTKDOC_REBASE"; then
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
12156 $as_echo "$GTKDOC_REBASE" >&6; }
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12159 $as_echo "no" >&6; }
12163 test -n "$GTKDOC_REBASE" && break
12165 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
12167 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
12168 set dummy gtkdoc-mkpdf; ac_word=$2
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12170 $as_echo_n "checking for $ac_word... " >&6; }
12171 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
12172 $as_echo_n "(cached) " >&6
12174 case $GTKDOC_MKPDF in
12176 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
12179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12180 for as_dir in $PATH
12183 test -z "$as_dir" && as_dir=.
12184 for ac_exec_ext in '' $ac_executable_extensions; do
12185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12186 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
12187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12197 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
12198 if test -n "$GTKDOC_MKPDF"; then
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
12200 $as_echo "$GTKDOC_MKPDF" >&6; }
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12203 $as_echo "no" >&6; }
12209 # Check whether --with-html-dir was given.
12210 if test "${with_html_dir+set}" = set; then :
12211 withval=$with_html_dir;
12213 with_html_dir='${datadir}/gtk-doc/html'
12216 HTML_DIR="$with_html_dir"
12219 # Check whether --enable-gtk-doc was given.
12220 if test "${enable_gtk_doc+set}" = set; then :
12221 enableval=$enable_gtk_doc;
12227 if test x$enable_gtk_doc = xyes; then
12228 if test -n "$PKG_CONFIG" && \
12229 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.13\""; } >&5
12230 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.13") 2>&5
12232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12233 test $ac_status = 0; }; then
12236 as_fn_error $? "You need to have gtk-doc >= 1.13 installed to build $PACKAGE_NAME" "$LINENO" 5
12238 if test "x$PACKAGE_NAME" != "xglib"; then
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
12242 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
12244 if test -n "$GTKDOC_DEPS_CFLAGS"; then
12245 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
12246 elif test -n "$PKG_CONFIG"; then
12247 if test -n "$PKG_CONFIG" && \
12248 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
12249 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
12251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12252 test $ac_status = 0; }; then
12253 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
12260 if test -n "$GTKDOC_DEPS_LIBS"; then
12261 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
12262 elif test -n "$PKG_CONFIG"; then
12263 if test -n "$PKG_CONFIG" && \
12264 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
12265 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
12267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12268 test $ac_status = 0; }; then
12269 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
12279 if test $pkg_failed = yes; then
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281 $as_echo "no" >&6; }
12283 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12284 _pkg_short_errors_supported=yes
12286 _pkg_short_errors_supported=no
12288 if test $_pkg_short_errors_supported = yes; then
12289 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
12291 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
12293 # Put the nasty error message in config.log where it belongs
12294 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
12296 as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0) were not met:
12298 $GTKDOC_DEPS_PKG_ERRORS
12300 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12301 installed software in a non-standard prefix.
12303 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
12304 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
12305 See the pkg-config man page for more details." "$LINENO" 5
12307 elif test $pkg_failed = untried; then
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12309 $as_echo "no" >&6; }
12310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12312 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12313 is in your PATH or set the PKG_CONFIG environment variable to the full
12314 path to pkg-config.
12316 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
12317 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
12318 See the pkg-config man page for more details.
12320 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12321 See \`config.log' for more details" "$LINENO" 5; }
12324 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
12325 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12327 $as_echo "yes" >&6; }
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
12334 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
12336 $as_echo "$enable_gtk_doc" >&6; }
12338 # Check whether --enable-gtk-doc-html was given.
12339 if test "${enable_gtk_doc_html+set}" = set; then :
12340 enableval=$enable_gtk_doc_html;
12342 enable_gtk_doc_html=yes
12345 # Check whether --enable-gtk-doc-pdf was given.
12346 if test "${enable_gtk_doc_pdf+set}" = set; then :
12347 enableval=$enable_gtk_doc_pdf;
12349 enable_gtk_doc_pdf=no
12353 if test -z "$GTKDOC_MKPDF"; then
12354 enable_gtk_doc_pdf=no
12358 if test x$enable_gtk_doc = xyes; then
12359 ENABLE_GTK_DOC_TRUE=
12360 ENABLE_GTK_DOC_FALSE='#'
12362 ENABLE_GTK_DOC_TRUE='#'
12363 ENABLE_GTK_DOC_FALSE=
12366 if test x$enable_gtk_doc_html = xyes; then
12367 GTK_DOC_BUILD_HTML_TRUE=
12368 GTK_DOC_BUILD_HTML_FALSE='#'
12370 GTK_DOC_BUILD_HTML_TRUE='#'
12371 GTK_DOC_BUILD_HTML_FALSE=
12374 if test x$enable_gtk_doc_pdf = xyes; then
12375 GTK_DOC_BUILD_PDF_TRUE=
12376 GTK_DOC_BUILD_PDF_FALSE='#'
12378 GTK_DOC_BUILD_PDF_TRUE='#'
12379 GTK_DOC_BUILD_PDF_FALSE=
12382 if test -n "$LIBTOOL"; then
12383 GTK_DOC_USE_LIBTOOL_TRUE=
12384 GTK_DOC_USE_LIBTOOL_FALSE='#'
12386 GTK_DOC_USE_LIBTOOL_TRUE='#'
12387 GTK_DOC_USE_LIBTOOL_FALSE=
12390 if test -n "$GTKDOC_REBASE"; then
12391 GTK_DOC_USE_REBASE_TRUE=
12392 GTK_DOC_USE_REBASE_FALSE='#'
12394 GTK_DOC_USE_REBASE_TRUE='#'
12395 GTK_DOC_USE_REBASE_FALSE=
12403 # Check whether --enable-introspection was given.
12404 if test "${enable_introspection+set}" = set; then :
12405 enableval=$enable_introspection;
12407 enable_introspection=auto
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
12412 $as_echo_n "checking for gobject-introspection... " >&6; }
12414 case $enable_introspection in #(
12416 found_introspection="no (disabled, use --enable-introspection to enable)"
12419 if test -n "$PKG_CONFIG" && \
12420 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
12421 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
12423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12424 test $ac_status = 0; }; then
12427 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
12429 if test -n "$PKG_CONFIG" && \
12430 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.5\""; } >&5
12431 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.5") 2>&5
12433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12434 test $ac_status = 0; }; then
12435 found_introspection=yes
12437 as_fn_error $? "You need to have gobject-introspection >= 0.9.5 installed to build json-glib" "$LINENO" 5
12441 if test -n "$PKG_CONFIG" && \
12442 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.5\""; } >&5
12443 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.5") 2>&5
12445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12446 test $ac_status = 0; }; then
12447 found_introspection=yes
12449 found_introspection=no
12453 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
12457 $as_echo "$found_introspection" >&6; }
12459 INTROSPECTION_SCANNER=
12460 INTROSPECTION_COMPILER=
12461 INTROSPECTION_GENERATE=
12462 INTROSPECTION_GIRDIR=
12463 INTROSPECTION_TYPELIBDIR=
12464 if test "x$found_introspection" = "xyes"; then
12465 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
12466 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
12467 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
12468 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
12469 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
12470 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
12471 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
12472 INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
12483 if test "x$found_introspection" = "xyes"; then
12484 HAVE_INTROSPECTION_TRUE=
12485 HAVE_INTROSPECTION_FALSE='#'
12487 HAVE_INTROSPECTION_TRUE='#'
12488 HAVE_INTROSPECTION_FALSE=
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12497 $as_echo_n "checking whether NLS is requested... " >&6; }
12498 # Check whether --enable-nls was given.
12499 if test "${enable_nls+set}" = set; then :
12500 enableval=$enable_nls; USE_NLS=$enableval
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12506 $as_echo "$USE_NLS" >&6; }
12511 GETTEXT_MACRO_VERSION=0.18
12516 # Prepare PATH_SEPARATOR.
12517 # The user is always right.
12518 if test "${PATH_SEPARATOR+set}" != set; then
12519 echo "#! /bin/sh" >conf$$.sh
12520 echo "exit 0" >>conf$$.sh
12522 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12530 # Find out how to test for executable files. Don't use a zero-byte file,
12531 # as systems may use methods other than mode bits to determine executability.
12532 cat >conf$$.file <<_ASEOF
12536 chmod +x conf$$.file
12537 if test -x conf$$.file >/dev/null 2>&1; then
12538 ac_executable_p="test -x"
12540 ac_executable_p="test -f"
12544 # Extract the first word of "msgfmt", so it can be a program name with args.
12545 set dummy msgfmt; ac_word=$2
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12547 $as_echo_n "checking for $ac_word... " >&6; }
12548 if ${ac_cv_path_MSGFMT+:} false; then :
12549 $as_echo_n "(cached) " >&6
12553 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12556 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12557 for ac_dir in $PATH; do
12559 test -z "$ac_dir" && ac_dir=.
12560 for ac_exec_ext in '' $ac_executable_extensions; do
12561 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12562 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12563 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12564 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12565 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12572 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12576 MSGFMT="$ac_cv_path_MSGFMT"
12577 if test "$MSGFMT" != ":"; then
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12579 $as_echo "$MSGFMT" >&6; }
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12582 $as_echo "no" >&6; }
12585 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12586 set dummy gmsgfmt; ac_word=$2
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12588 $as_echo_n "checking for $ac_word... " >&6; }
12589 if ${ac_cv_path_GMSGFMT+:} false; then :
12590 $as_echo_n "(cached) " >&6
12594 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598 for as_dir in $PATH
12601 test -z "$as_dir" && as_dir=.
12602 for ac_exec_ext in '' $ac_executable_extensions; do
12603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12604 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12612 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12616 GMSGFMT=$ac_cv_path_GMSGFMT
12617 if test -n "$GMSGFMT"; then
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12619 $as_echo "$GMSGFMT" >&6; }
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12622 $as_echo "no" >&6; }
12627 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12628 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12629 *) MSGFMT_015=$MSGFMT ;;
12632 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12633 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12634 *) GMSGFMT_015=$GMSGFMT ;;
12639 # Prepare PATH_SEPARATOR.
12640 # The user is always right.
12641 if test "${PATH_SEPARATOR+set}" != set; then
12642 echo "#! /bin/sh" >conf$$.sh
12643 echo "exit 0" >>conf$$.sh
12645 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12653 # Find out how to test for executable files. Don't use a zero-byte file,
12654 # as systems may use methods other than mode bits to determine executability.
12655 cat >conf$$.file <<_ASEOF
12659 chmod +x conf$$.file
12660 if test -x conf$$.file >/dev/null 2>&1; then
12661 ac_executable_p="test -x"
12663 ac_executable_p="test -f"
12667 # Extract the first word of "xgettext", so it can be a program name with args.
12668 set dummy xgettext; ac_word=$2
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12670 $as_echo_n "checking for $ac_word... " >&6; }
12671 if ${ac_cv_path_XGETTEXT+:} false; then :
12672 $as_echo_n "(cached) " >&6
12674 case "$XGETTEXT" in
12676 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12679 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12680 for ac_dir in $PATH; do
12682 test -z "$ac_dir" && ac_dir=.
12683 for ac_exec_ext in '' $ac_executable_extensions; do
12684 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12685 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12686 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12687 (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
12688 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12695 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12699 XGETTEXT="$ac_cv_path_XGETTEXT"
12700 if test "$XGETTEXT" != ":"; then
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12702 $as_echo "$XGETTEXT" >&6; }
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12705 $as_echo "no" >&6; }
12710 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12711 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12712 *) XGETTEXT_015=$XGETTEXT ;;
12717 # Prepare PATH_SEPARATOR.
12718 # The user is always right.
12719 if test "${PATH_SEPARATOR+set}" != set; then
12720 echo "#! /bin/sh" >conf$$.sh
12721 echo "exit 0" >>conf$$.sh
12723 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12731 # Find out how to test for executable files. Don't use a zero-byte file,
12732 # as systems may use methods other than mode bits to determine executability.
12733 cat >conf$$.file <<_ASEOF
12737 chmod +x conf$$.file
12738 if test -x conf$$.file >/dev/null 2>&1; then
12739 ac_executable_p="test -x"
12741 ac_executable_p="test -f"
12745 # Extract the first word of "msgmerge", so it can be a program name with args.
12746 set dummy msgmerge; ac_word=$2
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12748 $as_echo_n "checking for $ac_word... " >&6; }
12749 if ${ac_cv_path_MSGMERGE+:} false; then :
12750 $as_echo_n "(cached) " >&6
12752 case "$MSGMERGE" in
12754 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12757 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12758 for ac_dir in $PATH; do
12760 test -z "$ac_dir" && ac_dir=.
12761 for ac_exec_ext in '' $ac_executable_extensions; do
12762 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12763 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12764 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12765 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12772 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12776 MSGMERGE="$ac_cv_path_MSGMERGE"
12777 if test "$MSGMERGE" != ":"; then
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12779 $as_echo "$MSGMERGE" >&6; }
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12782 $as_echo "no" >&6; }
12786 test -n "$localedir" || localedir='${datadir}/locale'
12789 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12792 ac_config_commands="$ac_config_commands po-directories"
12796 if test "X$prefix" = "XNONE"; then
12797 acl_final_prefix="$ac_default_prefix"
12799 acl_final_prefix="$prefix"
12801 if test "X$exec_prefix" = "XNONE"; then
12802 acl_final_exec_prefix='${prefix}'
12804 acl_final_exec_prefix="$exec_prefix"
12806 acl_save_prefix="$prefix"
12807 prefix="$acl_final_prefix"
12808 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12809 prefix="$acl_save_prefix"
12812 # Check whether --with-gnu-ld was given.
12813 if test "${with_gnu_ld+set}" = set; then :
12814 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12819 # Prepare PATH_SEPARATOR.
12820 # The user is always right.
12821 if test "${PATH_SEPARATOR+set}" != set; then
12822 echo "#! /bin/sh" >conf$$.sh
12823 echo "exit 0" >>conf$$.sh
12825 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12833 if test "$GCC" = yes; then
12834 # Check if gcc -print-prog-name=ld gives a path.
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12836 $as_echo_n "checking for ld used by GCC... " >&6; }
12839 # gcc leaves a trailing carriage return which upsets mingw
12840 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12842 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12845 # Accept absolute paths.
12846 [\\/]* | [A-Za-z]:[\\/]*)
12847 re_direlt='/[^/][^/]*/\.\./'
12848 # Canonicalize the path of ld
12849 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12850 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12851 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12853 test -z "$LD" && LD="$ac_prog"
12856 # If it fails, then pretend we aren't using GCC.
12860 # If it is relative, then search for the first ld in PATH.
12861 with_gnu_ld=unknown
12864 elif test "$with_gnu_ld" = yes; then
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12866 $as_echo_n "checking for GNU ld... " >&6; }
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12869 $as_echo_n "checking for non-GNU ld... " >&6; }
12871 if ${acl_cv_path_LD+:} false; then :
12872 $as_echo_n "(cached) " >&6
12874 if test -z "$LD"; then
12875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12876 for ac_dir in $PATH; do
12877 test -z "$ac_dir" && ac_dir=.
12878 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12879 acl_cv_path_LD="$ac_dir/$ac_prog"
12880 # Check to see if the program is GNU ld. I'd rather use --version,
12881 # but apparently some GNU ld's only accept -v.
12882 # Break only if it was the GNU/non-GNU ld that we prefer.
12883 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12884 *GNU* | *'with BFD'*)
12885 test "$with_gnu_ld" != no && break ;;
12887 test "$with_gnu_ld" != yes && break ;;
12893 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12897 LD="$acl_cv_path_LD"
12898 if test -n "$LD"; then
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12900 $as_echo "$LD" >&6; }
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903 $as_echo "no" >&6; }
12905 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12907 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12908 if ${acl_cv_prog_gnu_ld+:} false; then :
12909 $as_echo_n "(cached) " >&6
12911 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12912 case `$LD -v 2>&1 </dev/null` in
12913 *GNU* | *'with BFD'*)
12914 acl_cv_prog_gnu_ld=yes ;;
12916 acl_cv_prog_gnu_ld=no ;;
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12920 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12921 with_gnu_ld=$acl_cv_prog_gnu_ld
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12927 $as_echo_n "checking for shared library run path origin... " >&6; }
12928 if ${acl_cv_rpath+:} false; then :
12929 $as_echo_n "(cached) " >&6
12932 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12933 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12935 rm -f ./conftest.sh
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12940 $as_echo "$acl_cv_rpath" >&6; }
12942 acl_libext="$acl_cv_libext"
12943 acl_shlibext="$acl_cv_shlibext"
12944 acl_libname_spec="$acl_cv_libname_spec"
12945 acl_library_names_spec="$acl_cv_library_names_spec"
12946 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12947 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12948 acl_hardcode_direct="$acl_cv_hardcode_direct"
12949 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12950 # Check whether --enable-rpath was given.
12951 if test "${enable_rpath+set}" = set; then :
12952 enableval=$enable_rpath; :
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12965 $as_echo_n "checking for 64-bit host... " >&6; }
12966 if ${gl_cv_solaris_64bit+:} false; then :
12967 $as_echo_n "(cached) " >&6
12969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12970 /* end confdefs.h. */
12977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12978 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
12979 gl_cv_solaris_64bit=yes
12981 gl_cv_solaris_64bit=no
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12988 $as_echo "$gl_cv_solaris_64bit" >&6; }
12989 if test $gl_cv_solaris_64bit = yes; then
12990 acl_libdirstem=lib/64
12991 case "$host_cpu" in
12992 sparc*) acl_libdirstem2=lib/sparcv9 ;;
12993 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
12998 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12999 if test -n "$searchpath"; then
13000 acl_save_IFS="${IFS= }"; IFS=":"
13001 for searchdir in $searchpath; do
13002 if test -d "$searchdir"; then
13003 case "$searchdir" in
13004 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13006 # Better ignore directories of this form. They are misleading.
13008 *) searchdir=`cd "$searchdir" && pwd`
13009 case "$searchdir" in
13010 */lib64 ) acl_libdirstem=lib64 ;;
13015 IFS="$acl_save_IFS"
13019 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
13034 acl_save_prefix="$prefix"
13035 prefix="$acl_final_prefix"
13036 acl_save_exec_prefix="$exec_prefix"
13037 exec_prefix="$acl_final_exec_prefix"
13039 eval additional_includedir=\"$includedir\"
13040 eval additional_libdir=\"$libdir\"
13042 exec_prefix="$acl_save_exec_prefix"
13043 prefix="$acl_save_prefix"
13046 # Check whether --with-libiconv-prefix was given.
13047 if test "${with_libiconv_prefix+set}" = set; then :
13048 withval=$with_libiconv_prefix;
13049 if test "X$withval" = "Xno"; then
13052 if test "X$withval" = "X"; then
13054 acl_save_prefix="$prefix"
13055 prefix="$acl_final_prefix"
13056 acl_save_exec_prefix="$exec_prefix"
13057 exec_prefix="$acl_final_exec_prefix"
13059 eval additional_includedir=\"$includedir\"
13060 eval additional_libdir=\"$libdir\"
13062 exec_prefix="$acl_save_exec_prefix"
13063 prefix="$acl_save_prefix"
13066 additional_includedir="$withval/include"
13067 additional_libdir="$withval/$acl_libdirstem"
13068 if test "$acl_libdirstem2" != "$acl_libdirstem" \
13069 && ! test -d "$withval/$acl_libdirstem"; then
13070 additional_libdir="$withval/$acl_libdirstem2"
13084 names_already_handled=
13085 names_next_round='iconv '
13086 while test -n "$names_next_round"; do
13087 names_this_round="$names_next_round"
13089 for name in $names_this_round; do
13091 for n in $names_already_handled; do
13092 if test "$n" = "$name"; then
13093 already_handled=yes
13097 if test -z "$already_handled"; then
13098 names_already_handled="$names_already_handled $name"
13099 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13100 eval value=\"\$HAVE_LIB$uppername\"
13101 if test -n "$value"; then
13102 if test "$value" = yes; then
13103 eval value=\"\$LIB$uppername\"
13104 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13105 eval value=\"\$LTLIB$uppername\"
13106 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13115 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13116 if test -n "$acl_shlibext"; then
13117 shrext=".$acl_shlibext" # typically: shrext=.so
13121 if test $use_additional = yes; then
13122 dir="$additional_libdir"
13123 if test -n "$acl_shlibext"; then
13124 if test -f "$dir/$libname$shrext"; then
13126 found_so="$dir/$libname$shrext"
13128 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13129 ver=`(cd "$dir" && \
13130 for f in "$libname$shrext".*; do echo "$f"; done \
13131 | sed -e "s,^$libname$shrext\\\\.,," \
13132 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13133 | sed 1q ) 2>/dev/null`
13134 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13136 found_so="$dir/$libname$shrext.$ver"
13139 eval library_names=\"$acl_library_names_spec\"
13140 for f in $library_names; do
13141 if test -f "$dir/$f"; then
13150 if test "X$found_dir" = "X"; then
13151 if test -f "$dir/$libname.$acl_libext"; then
13153 found_a="$dir/$libname.$acl_libext"
13156 if test "X$found_dir" != "X"; then
13157 if test -f "$dir/$libname.la"; then
13158 found_la="$dir/$libname.la"
13162 if test "X$found_dir" = "X"; then
13163 for x in $LDFLAGS $LTLIBICONV; do
13165 acl_save_prefix="$prefix"
13166 prefix="$acl_final_prefix"
13167 acl_save_exec_prefix="$exec_prefix"
13168 exec_prefix="$acl_final_exec_prefix"
13170 exec_prefix="$acl_save_exec_prefix"
13171 prefix="$acl_save_prefix"
13175 dir=`echo "X$x" | sed -e 's/^X-L//'`
13176 if test -n "$acl_shlibext"; then
13177 if test -f "$dir/$libname$shrext"; then
13179 found_so="$dir/$libname$shrext"
13181 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13182 ver=`(cd "$dir" && \
13183 for f in "$libname$shrext".*; do echo "$f"; done \
13184 | sed -e "s,^$libname$shrext\\\\.,," \
13185 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13186 | sed 1q ) 2>/dev/null`
13187 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13189 found_so="$dir/$libname$shrext.$ver"
13192 eval library_names=\"$acl_library_names_spec\"
13193 for f in $library_names; do
13194 if test -f "$dir/$f"; then
13203 if test "X$found_dir" = "X"; then
13204 if test -f "$dir/$libname.$acl_libext"; then
13206 found_a="$dir/$libname.$acl_libext"
13209 if test "X$found_dir" != "X"; then
13210 if test -f "$dir/$libname.la"; then
13211 found_la="$dir/$libname.la"
13216 if test "X$found_dir" != "X"; then
13221 if test "X$found_dir" != "X"; then
13222 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13223 if test "X$found_so" != "X"; then
13224 if test "$enable_rpath" = no \
13225 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13226 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13227 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13230 for x in $ltrpathdirs; do
13231 if test "X$x" = "X$found_dir"; then
13236 if test -z "$haveit"; then
13237 ltrpathdirs="$ltrpathdirs $found_dir"
13239 if test "$acl_hardcode_direct" = yes; then
13240 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13242 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13243 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13245 for x in $rpathdirs; do
13246 if test "X$x" = "X$found_dir"; then
13251 if test -z "$haveit"; then
13252 rpathdirs="$rpathdirs $found_dir"
13256 for x in $LDFLAGS $LIBICONV; do
13258 acl_save_prefix="$prefix"
13259 prefix="$acl_final_prefix"
13260 acl_save_exec_prefix="$exec_prefix"
13261 exec_prefix="$acl_final_exec_prefix"
13263 exec_prefix="$acl_save_exec_prefix"
13264 prefix="$acl_save_prefix"
13266 if test "X$x" = "X-L$found_dir"; then
13271 if test -z "$haveit"; then
13272 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13274 if test "$acl_hardcode_minus_L" != no; then
13275 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13277 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13283 if test "X$found_a" != "X"; then
13284 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13286 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13289 additional_includedir=
13290 case "$found_dir" in
13291 */$acl_libdirstem | */$acl_libdirstem/)
13292 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13293 if test "$name" = 'iconv'; then
13294 LIBICONV_PREFIX="$basedir"
13296 additional_includedir="$basedir/include"
13298 */$acl_libdirstem2 | */$acl_libdirstem2/)
13299 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13300 if test "$name" = 'iconv'; then
13301 LIBICONV_PREFIX="$basedir"
13303 additional_includedir="$basedir/include"
13306 if test "X$additional_includedir" != "X"; then
13307 if test "X$additional_includedir" != "X/usr/include"; then
13309 if test "X$additional_includedir" = "X/usr/local/include"; then
13310 if test -n "$GCC"; then
13312 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13316 if test -z "$haveit"; then
13317 for x in $CPPFLAGS $INCICONV; do
13319 acl_save_prefix="$prefix"
13320 prefix="$acl_final_prefix"
13321 acl_save_exec_prefix="$exec_prefix"
13322 exec_prefix="$acl_final_exec_prefix"
13324 exec_prefix="$acl_save_exec_prefix"
13325 prefix="$acl_save_prefix"
13327 if test "X$x" = "X-I$additional_includedir"; then
13332 if test -z "$haveit"; then
13333 if test -d "$additional_includedir"; then
13334 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13340 if test -n "$found_la"; then
13341 save_libdir="$libdir"
13342 case "$found_la" in
13343 */* | *\\*) . "$found_la" ;;
13344 *) . "./$found_la" ;;
13346 libdir="$save_libdir"
13347 for dep in $dependency_libs; do
13350 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13351 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13352 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13354 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13355 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13356 if test -n "$GCC"; then
13358 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13362 if test -z "$haveit"; then
13364 for x in $LDFLAGS $LIBICONV; do
13366 acl_save_prefix="$prefix"
13367 prefix="$acl_final_prefix"
13368 acl_save_exec_prefix="$exec_prefix"
13369 exec_prefix="$acl_final_exec_prefix"
13371 exec_prefix="$acl_save_exec_prefix"
13372 prefix="$acl_save_prefix"
13374 if test "X$x" = "X-L$additional_libdir"; then
13379 if test -z "$haveit"; then
13380 if test -d "$additional_libdir"; then
13381 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13385 for x in $LDFLAGS $LTLIBICONV; do
13387 acl_save_prefix="$prefix"
13388 prefix="$acl_final_prefix"
13389 acl_save_exec_prefix="$exec_prefix"
13390 exec_prefix="$acl_final_exec_prefix"
13392 exec_prefix="$acl_save_exec_prefix"
13393 prefix="$acl_save_prefix"
13395 if test "X$x" = "X-L$additional_libdir"; then
13400 if test -z "$haveit"; then
13401 if test -d "$additional_libdir"; then
13402 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13409 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13410 if test "$enable_rpath" != no; then
13412 for x in $rpathdirs; do
13413 if test "X$x" = "X$dir"; then
13418 if test -z "$haveit"; then
13419 rpathdirs="$rpathdirs $dir"
13422 for x in $ltrpathdirs; do
13423 if test "X$x" = "X$dir"; then
13428 if test -z "$haveit"; then
13429 ltrpathdirs="$ltrpathdirs $dir"
13434 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13437 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13440 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13441 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13447 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13448 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13454 if test "X$rpathdirs" != "X"; then
13455 if test -n "$acl_hardcode_libdir_separator"; then
13457 for found_dir in $rpathdirs; do
13458 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13460 acl_save_libdir="$libdir"
13462 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13463 libdir="$acl_save_libdir"
13464 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13466 for found_dir in $rpathdirs; do
13467 acl_save_libdir="$libdir"
13468 libdir="$found_dir"
13469 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13470 libdir="$acl_save_libdir"
13471 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13475 if test "X$ltrpathdirs" != "X"; then
13476 for found_dir in $ltrpathdirs; do
13477 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13512 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13513 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13514 $as_echo_n "(cached) " >&6
13516 gt_save_LIBS="$LIBS"
13517 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13519 /* end confdefs.h. */
13520 #include <CoreFoundation/CFPreferences.h>
13524 CFPreferencesCopyAppValue(NULL, NULL)
13529 if ac_fn_c_try_link "$LINENO"; then :
13530 gt_cv_func_CFPreferencesCopyAppValue=yes
13532 gt_cv_func_CFPreferencesCopyAppValue=no
13534 rm -f core conftest.err conftest.$ac_objext \
13535 conftest$ac_exeext conftest.$ac_ext
13536 LIBS="$gt_save_LIBS"
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13539 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13540 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13542 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
13546 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
13547 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
13548 $as_echo_n "(cached) " >&6
13550 gt_save_LIBS="$LIBS"
13551 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13553 /* end confdefs.h. */
13554 #include <CoreFoundation/CFLocale.h>
13558 CFLocaleCopyCurrent();
13563 if ac_fn_c_try_link "$LINENO"; then :
13564 gt_cv_func_CFLocaleCopyCurrent=yes
13566 gt_cv_func_CFLocaleCopyCurrent=no
13568 rm -f core conftest.err conftest.$ac_objext \
13569 conftest$ac_exeext conftest.$ac_ext
13570 LIBS="$gt_save_LIBS"
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13573 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13574 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13576 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
13580 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13581 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13593 case " $gt_needs " in
13594 *" need-formatstring-macros "*) gt_api_version=3 ;;
13595 *" need-ngettext "*) gt_api_version=2 ;;
13596 *) gt_api_version=1 ;;
13598 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13599 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13601 if test "$USE_NLS" = "yes"; then
13602 gt_use_preinstalled_gnugettext=no
13605 if test $gt_api_version -ge 3; then
13606 gt_revision_test_code='
13607 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13608 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13610 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13613 gt_revision_test_code=
13615 if test $gt_api_version -ge 2; then
13616 gt_expression_test_code=' + * ngettext ("", "", 0)'
13618 gt_expression_test_code=
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13622 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13623 if eval \${$gt_func_gnugettext_libc+:} false; then :
13624 $as_echo_n "(cached) " >&6
13626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h. */
13628 #include <libintl.h>
13629 $gt_revision_test_code
13630 extern int _nl_msg_cat_cntr;
13631 extern int *_nl_domain_bindings;
13635 bindtextdomain ("", "");
13636 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
13641 if ac_fn_c_try_link "$LINENO"; then :
13642 eval "$gt_func_gnugettext_libc=yes"
13644 eval "$gt_func_gnugettext_libc=no"
13646 rm -f core conftest.err conftest.$ac_objext \
13647 conftest$ac_exeext conftest.$ac_ext
13649 eval ac_res=\$$gt_func_gnugettext_libc
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13651 $as_echo "$ac_res" >&6; }
13653 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13659 am_save_CPPFLAGS="$CPPFLAGS"
13661 for element in $INCICONV; do
13663 for x in $CPPFLAGS; do
13665 acl_save_prefix="$prefix"
13666 prefix="$acl_final_prefix"
13667 acl_save_exec_prefix="$exec_prefix"
13668 exec_prefix="$acl_final_exec_prefix"
13670 exec_prefix="$acl_save_exec_prefix"
13671 prefix="$acl_save_prefix"
13673 if test "X$x" = "X$element"; then
13678 if test -z "$haveit"; then
13679 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13685 $as_echo_n "checking for iconv... " >&6; }
13686 if ${am_cv_func_iconv+:} false; then :
13687 $as_echo_n "(cached) " >&6
13690 am_cv_func_iconv="no, consider installing GNU libiconv"
13692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13693 /* end confdefs.h. */
13694 #include <stdlib.h>
13699 iconv_t cd = iconv_open("","");
13700 iconv(cd,NULL,NULL,NULL,NULL);
13706 if ac_fn_c_try_link "$LINENO"; then :
13707 am_cv_func_iconv=yes
13709 rm -f core conftest.err conftest.$ac_objext \
13710 conftest$ac_exeext conftest.$ac_ext
13711 if test "$am_cv_func_iconv" != yes; then
13712 am_save_LIBS="$LIBS"
13713 LIBS="$LIBS $LIBICONV"
13714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13715 /* end confdefs.h. */
13716 #include <stdlib.h>
13721 iconv_t cd = iconv_open("","");
13722 iconv(cd,NULL,NULL,NULL,NULL);
13728 if ac_fn_c_try_link "$LINENO"; then :
13729 am_cv_lib_iconv=yes
13730 am_cv_func_iconv=yes
13732 rm -f core conftest.err conftest.$ac_objext \
13733 conftest$ac_exeext conftest.$ac_ext
13734 LIBS="$am_save_LIBS"
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13739 $as_echo "$am_cv_func_iconv" >&6; }
13740 if test "$am_cv_func_iconv" = yes; then
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13742 $as_echo_n "checking for working iconv... " >&6; }
13743 if ${am_cv_func_iconv_works+:} false; then :
13744 $as_echo_n "(cached) " >&6
13747 am_save_LIBS="$LIBS"
13748 if test $am_cv_lib_iconv = yes; then
13749 LIBS="$LIBS $LIBICONV"
13751 if test "$cross_compiling" = yes; then :
13753 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13754 *) am_cv_func_iconv_works="guessing yes" ;;
13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h. */
13761 #include <string.h>
13764 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13767 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13768 if (cd_utf8_to_88591 != (iconv_t)(-1))
13770 static const char input[] = "\342\202\254"; /* EURO SIGN */
13772 const char *inptr = input;
13773 size_t inbytesleft = strlen (input);
13774 char *outptr = buf;
13775 size_t outbytesleft = sizeof (buf);
13776 size_t res = iconv (cd_utf8_to_88591,
13777 (char **) &inptr, &inbytesleft,
13778 &outptr, &outbytesleft);
13783 /* Test against Solaris 10 bug: Failures are not distinguishable from
13784 successful returns. */
13786 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
13787 if (cd_ascii_to_88591 != (iconv_t)(-1))
13789 static const char input[] = "\263";
13791 const char *inptr = input;
13792 size_t inbytesleft = strlen (input);
13793 char *outptr = buf;
13794 size_t outbytesleft = sizeof (buf);
13795 size_t res = iconv (cd_ascii_to_88591,
13796 (char **) &inptr, &inbytesleft,
13797 &outptr, &outbytesleft);
13802 #if 0 /* This bug could be worked around by the caller. */
13803 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
13805 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13806 if (cd_88591_to_utf8 != (iconv_t)(-1))
13808 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13810 const char *inptr = input;
13811 size_t inbytesleft = strlen (input);
13812 char *outptr = buf;
13813 size_t outbytesleft = sizeof (buf);
13814 size_t res = iconv (cd_88591_to_utf8,
13815 (char **) &inptr, &inbytesleft,
13816 &outptr, &outbytesleft);
13822 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13824 if (/* Try standardized names. */
13825 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13826 /* Try IRIX, OSF/1 names. */
13827 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13828 /* Try AIX names. */
13829 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13830 /* Try HP-UX names. */
13831 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13836 if ac_fn_c_try_run "$LINENO"; then :
13837 am_cv_func_iconv_works=yes
13839 am_cv_func_iconv_works=no
13841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13842 conftest.$ac_objext conftest.beam conftest.$ac_ext
13845 LIBS="$am_save_LIBS"
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13849 $as_echo "$am_cv_func_iconv_works" >&6; }
13850 case "$am_cv_func_iconv_works" in
13851 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13852 *) am_func_iconv=yes ;;
13855 am_func_iconv=no am_cv_lib_iconv=no
13857 if test "$am_func_iconv" = yes; then
13859 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13862 if test "$am_cv_lib_iconv" = yes; then
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13864 $as_echo_n "checking how to link with libiconv... " >&6; }
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13866 $as_echo "$LIBICONV" >&6; }
13868 CPPFLAGS="$am_save_CPPFLAGS"
13885 acl_save_prefix="$prefix"
13886 prefix="$acl_final_prefix"
13887 acl_save_exec_prefix="$exec_prefix"
13888 exec_prefix="$acl_final_exec_prefix"
13890 eval additional_includedir=\"$includedir\"
13891 eval additional_libdir=\"$libdir\"
13893 exec_prefix="$acl_save_exec_prefix"
13894 prefix="$acl_save_prefix"
13897 # Check whether --with-libintl-prefix was given.
13898 if test "${with_libintl_prefix+set}" = set; then :
13899 withval=$with_libintl_prefix;
13900 if test "X$withval" = "Xno"; then
13903 if test "X$withval" = "X"; then
13905 acl_save_prefix="$prefix"
13906 prefix="$acl_final_prefix"
13907 acl_save_exec_prefix="$exec_prefix"
13908 exec_prefix="$acl_final_exec_prefix"
13910 eval additional_includedir=\"$includedir\"
13911 eval additional_libdir=\"$libdir\"
13913 exec_prefix="$acl_save_exec_prefix"
13914 prefix="$acl_save_prefix"
13917 additional_includedir="$withval/include"
13918 additional_libdir="$withval/$acl_libdirstem"
13919 if test "$acl_libdirstem2" != "$acl_libdirstem" \
13920 && ! test -d "$withval/$acl_libdirstem"; then
13921 additional_libdir="$withval/$acl_libdirstem2"
13935 names_already_handled=
13936 names_next_round='intl '
13937 while test -n "$names_next_round"; do
13938 names_this_round="$names_next_round"
13940 for name in $names_this_round; do
13942 for n in $names_already_handled; do
13943 if test "$n" = "$name"; then
13944 already_handled=yes
13948 if test -z "$already_handled"; then
13949 names_already_handled="$names_already_handled $name"
13950 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13951 eval value=\"\$HAVE_LIB$uppername\"
13952 if test -n "$value"; then
13953 if test "$value" = yes; then
13954 eval value=\"\$LIB$uppername\"
13955 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13956 eval value=\"\$LTLIB$uppername\"
13957 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13966 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13967 if test -n "$acl_shlibext"; then
13968 shrext=".$acl_shlibext" # typically: shrext=.so
13972 if test $use_additional = yes; then
13973 dir="$additional_libdir"
13974 if test -n "$acl_shlibext"; then
13975 if test -f "$dir/$libname$shrext"; then
13977 found_so="$dir/$libname$shrext"
13979 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13980 ver=`(cd "$dir" && \
13981 for f in "$libname$shrext".*; do echo "$f"; done \
13982 | sed -e "s,^$libname$shrext\\\\.,," \
13983 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13984 | sed 1q ) 2>/dev/null`
13985 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13987 found_so="$dir/$libname$shrext.$ver"
13990 eval library_names=\"$acl_library_names_spec\"
13991 for f in $library_names; do
13992 if test -f "$dir/$f"; then
14001 if test "X$found_dir" = "X"; then
14002 if test -f "$dir/$libname.$acl_libext"; then
14004 found_a="$dir/$libname.$acl_libext"
14007 if test "X$found_dir" != "X"; then
14008 if test -f "$dir/$libname.la"; then
14009 found_la="$dir/$libname.la"
14013 if test "X$found_dir" = "X"; then
14014 for x in $LDFLAGS $LTLIBINTL; do
14016 acl_save_prefix="$prefix"
14017 prefix="$acl_final_prefix"
14018 acl_save_exec_prefix="$exec_prefix"
14019 exec_prefix="$acl_final_exec_prefix"
14021 exec_prefix="$acl_save_exec_prefix"
14022 prefix="$acl_save_prefix"
14026 dir=`echo "X$x" | sed -e 's/^X-L//'`
14027 if test -n "$acl_shlibext"; then
14028 if test -f "$dir/$libname$shrext"; then
14030 found_so="$dir/$libname$shrext"
14032 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14033 ver=`(cd "$dir" && \
14034 for f in "$libname$shrext".*; do echo "$f"; done \
14035 | sed -e "s,^$libname$shrext\\\\.,," \
14036 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14037 | sed 1q ) 2>/dev/null`
14038 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14040 found_so="$dir/$libname$shrext.$ver"
14043 eval library_names=\"$acl_library_names_spec\"
14044 for f in $library_names; do
14045 if test -f "$dir/$f"; then
14054 if test "X$found_dir" = "X"; then
14055 if test -f "$dir/$libname.$acl_libext"; then
14057 found_a="$dir/$libname.$acl_libext"
14060 if test "X$found_dir" != "X"; then
14061 if test -f "$dir/$libname.la"; then
14062 found_la="$dir/$libname.la"
14067 if test "X$found_dir" != "X"; then
14072 if test "X$found_dir" != "X"; then
14073 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14074 if test "X$found_so" != "X"; then
14075 if test "$enable_rpath" = no \
14076 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14077 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14078 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14081 for x in $ltrpathdirs; do
14082 if test "X$x" = "X$found_dir"; then
14087 if test -z "$haveit"; then
14088 ltrpathdirs="$ltrpathdirs $found_dir"
14090 if test "$acl_hardcode_direct" = yes; then
14091 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14093 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14094 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14096 for x in $rpathdirs; do
14097 if test "X$x" = "X$found_dir"; then
14102 if test -z "$haveit"; then
14103 rpathdirs="$rpathdirs $found_dir"
14107 for x in $LDFLAGS $LIBINTL; do
14109 acl_save_prefix="$prefix"
14110 prefix="$acl_final_prefix"
14111 acl_save_exec_prefix="$exec_prefix"
14112 exec_prefix="$acl_final_exec_prefix"
14114 exec_prefix="$acl_save_exec_prefix"
14115 prefix="$acl_save_prefix"
14117 if test "X$x" = "X-L$found_dir"; then
14122 if test -z "$haveit"; then
14123 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14125 if test "$acl_hardcode_minus_L" != no; then
14126 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14128 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14134 if test "X$found_a" != "X"; then
14135 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14137 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14140 additional_includedir=
14141 case "$found_dir" in
14142 */$acl_libdirstem | */$acl_libdirstem/)
14143 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14144 if test "$name" = 'intl'; then
14145 LIBINTL_PREFIX="$basedir"
14147 additional_includedir="$basedir/include"
14149 */$acl_libdirstem2 | */$acl_libdirstem2/)
14150 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14151 if test "$name" = 'intl'; then
14152 LIBINTL_PREFIX="$basedir"
14154 additional_includedir="$basedir/include"
14157 if test "X$additional_includedir" != "X"; then
14158 if test "X$additional_includedir" != "X/usr/include"; then
14160 if test "X$additional_includedir" = "X/usr/local/include"; then
14161 if test -n "$GCC"; then
14163 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14167 if test -z "$haveit"; then
14168 for x in $CPPFLAGS $INCINTL; do
14170 acl_save_prefix="$prefix"
14171 prefix="$acl_final_prefix"
14172 acl_save_exec_prefix="$exec_prefix"
14173 exec_prefix="$acl_final_exec_prefix"
14175 exec_prefix="$acl_save_exec_prefix"
14176 prefix="$acl_save_prefix"
14178 if test "X$x" = "X-I$additional_includedir"; then
14183 if test -z "$haveit"; then
14184 if test -d "$additional_includedir"; then
14185 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14191 if test -n "$found_la"; then
14192 save_libdir="$libdir"
14193 case "$found_la" in
14194 */* | *\\*) . "$found_la" ;;
14195 *) . "./$found_la" ;;
14197 libdir="$save_libdir"
14198 for dep in $dependency_libs; do
14201 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14202 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14203 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14205 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14206 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14207 if test -n "$GCC"; then
14209 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14213 if test -z "$haveit"; then
14215 for x in $LDFLAGS $LIBINTL; do
14217 acl_save_prefix="$prefix"
14218 prefix="$acl_final_prefix"
14219 acl_save_exec_prefix="$exec_prefix"
14220 exec_prefix="$acl_final_exec_prefix"
14222 exec_prefix="$acl_save_exec_prefix"
14223 prefix="$acl_save_prefix"
14225 if test "X$x" = "X-L$additional_libdir"; then
14230 if test -z "$haveit"; then
14231 if test -d "$additional_libdir"; then
14232 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14236 for x in $LDFLAGS $LTLIBINTL; do
14238 acl_save_prefix="$prefix"
14239 prefix="$acl_final_prefix"
14240 acl_save_exec_prefix="$exec_prefix"
14241 exec_prefix="$acl_final_exec_prefix"
14243 exec_prefix="$acl_save_exec_prefix"
14244 prefix="$acl_save_prefix"
14246 if test "X$x" = "X-L$additional_libdir"; then
14251 if test -z "$haveit"; then
14252 if test -d "$additional_libdir"; then
14253 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14260 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14261 if test "$enable_rpath" != no; then
14263 for x in $rpathdirs; do
14264 if test "X$x" = "X$dir"; then
14269 if test -z "$haveit"; then
14270 rpathdirs="$rpathdirs $dir"
14273 for x in $ltrpathdirs; do
14274 if test "X$x" = "X$dir"; then
14279 if test -z "$haveit"; then
14280 ltrpathdirs="$ltrpathdirs $dir"
14285 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14288 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14291 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14292 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14298 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14299 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14305 if test "X$rpathdirs" != "X"; then
14306 if test -n "$acl_hardcode_libdir_separator"; then
14308 for found_dir in $rpathdirs; do
14309 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14311 acl_save_libdir="$libdir"
14313 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14314 libdir="$acl_save_libdir"
14315 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14317 for found_dir in $rpathdirs; do
14318 acl_save_libdir="$libdir"
14319 libdir="$found_dir"
14320 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14321 libdir="$acl_save_libdir"
14322 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14326 if test "X$ltrpathdirs" != "X"; then
14327 for found_dir in $ltrpathdirs; do
14328 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14338 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14339 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14340 $as_echo_n "(cached) " >&6
14342 gt_save_CPPFLAGS="$CPPFLAGS"
14343 CPPFLAGS="$CPPFLAGS $INCINTL"
14344 gt_save_LIBS="$LIBS"
14345 LIBS="$LIBS $LIBINTL"
14346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14347 /* end confdefs.h. */
14348 #include <libintl.h>
14349 $gt_revision_test_code
14350 extern int _nl_msg_cat_cntr;
14355 const char *_nl_expand_alias (const char *);
14359 bindtextdomain ("", "");
14360 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14365 if ac_fn_c_try_link "$LINENO"; then :
14366 eval "$gt_func_gnugettext_libintl=yes"
14368 eval "$gt_func_gnugettext_libintl=no"
14370 rm -f core conftest.err conftest.$ac_objext \
14371 conftest$ac_exeext conftest.$ac_ext
14372 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14373 LIBS="$LIBS $LIBICONV"
14374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14375 /* end confdefs.h. */
14376 #include <libintl.h>
14377 $gt_revision_test_code
14378 extern int _nl_msg_cat_cntr;
14383 const char *_nl_expand_alias (const char *);
14387 bindtextdomain ("", "");
14388 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14393 if ac_fn_c_try_link "$LINENO"; then :
14394 LIBINTL="$LIBINTL $LIBICONV"
14395 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14396 eval "$gt_func_gnugettext_libintl=yes"
14399 rm -f core conftest.err conftest.$ac_objext \
14400 conftest$ac_exeext conftest.$ac_ext
14402 CPPFLAGS="$gt_save_CPPFLAGS"
14403 LIBS="$gt_save_LIBS"
14405 eval ac_res=\$$gt_func_gnugettext_libintl
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14407 $as_echo "$ac_res" >&6; }
14410 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14411 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14412 && test "$PACKAGE" != gettext-runtime \
14413 && test "$PACKAGE" != gettext-tools; }; then
14414 gt_use_preinstalled_gnugettext=yes
14423 if test -n "$INTL_MACOSX_LIBS"; then
14424 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14425 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14426 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14427 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14431 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14432 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14434 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14442 $as_echo_n "checking whether to use NLS... " >&6; }
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14444 $as_echo "$USE_NLS" >&6; }
14445 if test "$USE_NLS" = "yes"; then
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14447 $as_echo_n "checking where the gettext function comes from... " >&6; }
14448 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14449 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14450 gt_source="external libintl"
14455 gt_source="included intl directory"
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14458 $as_echo "$gt_source" >&6; }
14461 if test "$USE_NLS" = "yes"; then
14463 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14464 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14466 $as_echo_n "checking how to link with libintl... " >&6; }
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14468 $as_echo "$LIBINTL" >&6; }
14470 for element in $INCINTL; do
14472 for x in $CPPFLAGS; do
14474 acl_save_prefix="$prefix"
14475 prefix="$acl_final_prefix"
14476 acl_save_exec_prefix="$exec_prefix"
14477 exec_prefix="$acl_final_exec_prefix"
14479 exec_prefix="$acl_save_exec_prefix"
14480 prefix="$acl_save_prefix"
14482 if test "X$x" = "X$element"; then
14487 if test -z "$haveit"; then
14488 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14495 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14498 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14507 INTLLIBS="$LIBINTL"
14515 GETTEXT_PACKAGE="json-glib-1.0"
14518 cat >>confdefs.h <<_ACEOF
14519 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linguas" >&5
14524 $as_echo_n "checking for linguas... " >&6; }
14526 linguas=`cd $podir && ls *.po 2>/dev/null | awk 'BEGIN { FS="."; ORS=" " } { print $1 }'`
14527 if test -f "$podir/LINGUAS.ignore"; then
14529 ignore_linguas=`sed -n -e 's/^\s\+\|\s\+$//g' -e '/^#/b' -e '/\S/!b' \
14530 -e 's/\s\+/\n/g' -e p "$podir/LINGUAS.ignore"`;
14531 for lang in $linguas; do
14532 if ! echo "$ignore_linguas" | grep -q "^${lang}$"; then
14533 ALL_LINGUAS="$ALL_LINGUAS $lang";
14537 ALL_LINGUAS="$linguas";
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALL_LINGUAS" >&5
14541 $as_echo "$ALL_LINGUAS" >&6; }
14544 ac_config_files="$ac_config_files Makefile build/Makefile build/autotools/Makefile build/win32/Makefile build/win32/config.h.win32 build/win32/vs9/Makefile build/win32/vs10/Makefile json-glib/Makefile json-glib/json-version.h json-glib/tests/Makefile doc/Makefile doc/reference/Makefile doc/reference/version.xml po/Makefile.in json-glib.pc"
14547 cat >confcache <<\_ACEOF
14548 # This file is a shell script that caches the results of configure
14549 # tests run on this system so they can be shared between configure
14550 # scripts and configure runs, see configure's option --config-cache.
14551 # It is not useful on other systems. If it contains results you don't
14552 # want to keep, you may remove or edit it.
14554 # config.status only pays attention to the cache file if you give it
14555 # the --recheck option to rerun configure.
14557 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14558 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14559 # following values.
14563 # The following way of writing the cache mishandles newlines in values,
14564 # but we know of no workaround that is simple, portable, and efficient.
14565 # So, we kill variables containing newlines.
14566 # Ultrix sh set writes to stderr and can't be redirected directly,
14567 # and sets the high bit in the cache file unless we assign to the vars.
14569 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14570 eval ac_val=\$$ac_var
14574 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14575 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14578 _ | IFS | as_nl) ;; #(
14579 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14580 *) { eval $ac_var=; unset $ac_var;} ;;
14586 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14587 *${as_nl}ac_space=\ *)
14588 # `set' does not quote correctly, so add quotes: double-quote
14589 # substitution turns \\\\ into \\, and sed turns \\ into \.
14592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14595 # `set' quotes correctly as required by POSIX, so do not add quotes.
14596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14605 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14607 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14609 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14610 if test -w "$cache_file"; then
14611 if test "x$cache_file" != "x/dev/null"; then
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14613 $as_echo "$as_me: updating cache $cache_file" >&6;}
14614 if test ! -f "$cache_file" || test -h "$cache_file"; then
14615 cat confcache >"$cache_file"
14617 case $cache_file in #(
14619 mv -f confcache "$cache_file"$$ &&
14620 mv -f "$cache_file"$$ "$cache_file" ;; #(
14622 mv -f confcache "$cache_file" ;;
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14628 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14633 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14634 # Let make expand exec_prefix.
14635 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14637 DEFS=-DHAVE_CONFIG_H
14642 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14643 # 1. Remove the extension, and $U if already installed.
14644 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14645 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14646 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14647 # will be set to the directory where LIBOBJS objects are built.
14648 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14649 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14651 LIBOBJS=$ac_libobjs
14653 LTLIBOBJS=$ac_ltlibobjs
14656 if test -n "$EXEEXT"; then
14658 am__EXEEXT_FALSE='#'
14660 am__EXEEXT_TRUE='#'
14664 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14665 as_fn_error $? "conditional \"AMDEP\" was never defined.
14666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14668 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14669 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14672 if test -z "${ENABLE_GLIB_TEST_TRUE}" && test -z "${ENABLE_GLIB_TEST_FALSE}"; then
14673 as_fn_error $? "conditional \"ENABLE_GLIB_TEST\" was never defined.
14674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14676 if test -z "${GCOV_ENABLED_TRUE}" && test -z "${GCOV_ENABLED_FALSE}"; then
14677 as_fn_error $? "conditional \"GCOV_ENABLED\" was never defined.
14678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14680 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
14681 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
14682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14684 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
14685 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
14686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14688 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
14689 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
14690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14692 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
14693 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
14694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14696 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
14697 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
14698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14700 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
14701 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
14702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14705 : "${CONFIG_STATUS=./config.status}"
14707 ac_clean_files_save=$ac_clean_files
14708 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14710 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14712 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14714 # Generated by $as_me.
14715 # Run this file to recreate the current configuration.
14716 # Compiler output produced by configure, useful for debugging
14717 # configure, is in config.log if it exists.
14720 ac_cs_recheck=false
14723 SHELL=\${CONFIG_SHELL-$SHELL}
14726 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14727 ## -------------------- ##
14728 ## M4sh Initialization. ##
14729 ## -------------------- ##
14731 # Be more Bourne compatible
14732 DUALCASE=1; export DUALCASE # for MKS sh
14733 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14736 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14737 # is contrary to our usage. Disable this feature.
14738 alias -g '${1+"$@"}'='"$@"'
14739 setopt NO_GLOB_SUBST
14741 case `(set -o) 2>/dev/null` in #(
14753 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14754 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14755 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14756 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14757 # Prefer a ksh shell builtin over an external printf program on Solaris,
14758 # but without wasting forks for bash or zsh.
14759 if test -z "$BASH_VERSION$ZSH_VERSION" \
14760 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14761 as_echo='print -r --'
14762 as_echo_n='print -rn --'
14763 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14764 as_echo='printf %s\n'
14765 as_echo_n='printf %s'
14767 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14768 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14769 as_echo_n='/usr/ucb/echo -n'
14771 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14772 as_echo_n_body='eval
14776 expr "X$arg" : "X\\(.*\\)$as_nl";
14777 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14779 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14781 export as_echo_n_body
14782 as_echo_n='sh -c $as_echo_n_body as_echo'
14784 export as_echo_body
14785 as_echo='sh -c $as_echo_body as_echo'
14788 # The user is always right.
14789 if test "${PATH_SEPARATOR+set}" != set; then
14791 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14792 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14799 # We need space, tab and new line, in precisely that order. Quoting is
14800 # there to prevent editors from complaining about space-tab.
14801 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14802 # splitting by setting IFS to empty value.)
14805 # Find who we are. Look in the path if we contain no directory separator.
14808 *[\\/]* ) as_myself=$0 ;;
14809 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14810 for as_dir in $PATH
14813 test -z "$as_dir" && as_dir=.
14814 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14820 # We did not find ourselves, most probably we were run as `sh COMMAND'
14821 # in which case we are not to be found in the path.
14822 if test "x$as_myself" = x; then
14825 if test ! -f "$as_myself"; then
14826 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14830 # Unset variables that we do not need and which cause bugs (e.g. in
14831 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14832 # suppresses any "Segmentation fault" message there. '((' could
14833 # trigger a bug in pdksh 5.2.14.
14834 for as_var in BASH_ENV ENV MAIL MAILPATH
14835 do eval test x\${$as_var+set} = xset \
14836 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14849 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14852 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14853 # ----------------------------------------
14854 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14855 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14856 # script with STATUS, using 1 if that was 0.
14859 as_status=$1; test $as_status -eq 0 && as_status=1
14861 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14862 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14864 $as_echo "$as_me: error: $2" >&2
14865 as_fn_exit $as_status
14869 # as_fn_set_status STATUS
14870 # -----------------------
14871 # Set $? to STATUS, without forking.
14872 as_fn_set_status ()
14875 } # as_fn_set_status
14877 # as_fn_exit STATUS
14878 # -----------------
14879 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14883 as_fn_set_status $1
14889 # Portably unset VAR.
14892 { eval $1=; unset $1;}
14894 as_unset=as_fn_unset
14895 # as_fn_append VAR VALUE
14896 # ----------------------
14897 # Append the text in VALUE to the end of the definition contained in VAR. Take
14898 # advantage of any shell optimizations that allow amortized linear growth over
14899 # repeated appends, instead of the typical quadratic growth present in naive
14901 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14902 eval 'as_fn_append ()
14913 # as_fn_arith ARG...
14914 # ------------------
14915 # Perform arithmetic evaluation on the ARGs, and store the result in the
14916 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14917 # must be portable across $(()) and expr.
14918 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14919 eval 'as_fn_arith ()
14926 as_val=`expr "$@" || test $? -eq 1`
14931 if expr a : '\(a\)' >/dev/null 2>&1 &&
14932 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14938 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14939 as_basename=basename
14944 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14950 as_me=`$as_basename -- "$0" ||
14951 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14952 X"$0" : 'X\(//\)$' \| \
14953 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14955 sed '/^.*\/\([^/][^/]*\)\/*$/{
14969 # Avoid depending upon Character Ranges.
14970 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14971 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14972 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14973 as_cr_digits='0123456789'
14974 as_cr_alnum=$as_cr_Letters$as_cr_digits
14976 ECHO_C= ECHO_N= ECHO_T=
14977 case `echo -n x` in #(((((
14979 case `echo 'xy\c'` in
14980 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14982 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14989 rm -f conf$$ conf$$.exe conf$$.file
14990 if test -d conf$$.dir; then
14991 rm -f conf$$.dir/conf$$.file
14994 mkdir conf$$.dir 2>/dev/null
14996 if (echo >conf$$.file) 2>/dev/null; then
14997 if ln -s conf$$.file conf$$ 2>/dev/null; then
14999 # ... but there are two gotchas:
15000 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15001 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15002 # In both cases, we have to default to `cp -p'.
15003 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15005 elif ln conf$$.file conf$$ 2>/dev/null; then
15013 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15014 rmdir conf$$.dir 2>/dev/null
15019 # Create "$as_dir" as a directory, including parents if necessary.
15024 -*) as_dir=./$as_dir;;
15026 test -d "$as_dir" || eval $as_mkdir_p || {
15030 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15031 *) as_qdir=$as_dir;;
15033 as_dirs="'$as_qdir' $as_dirs"
15034 as_dir=`$as_dirname -- "$as_dir" ||
15035 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15036 X"$as_dir" : 'X\(//\)[^/]' \| \
15037 X"$as_dir" : 'X\(//\)$' \| \
15038 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15039 $as_echo X"$as_dir" |
15040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15044 /^X\(\/\/\)[^/].*/{
15057 test -d "$as_dir" && break
15059 test -z "$as_dirs" || eval "mkdir $as_dirs"
15060 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15064 if mkdir -p . 2>/dev/null; then
15065 as_mkdir_p='mkdir -p "$as_dir"'
15067 test -d ./-p && rmdir ./-p
15071 if test -x / >/dev/null 2>&1; then
15072 as_test_x='test -x'
15074 if ls -dL / >/dev/null 2>&1; then
15081 if test -d "$1"; then
15087 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15088 ???[sx]*):;;*)false;;esac;fi
15092 as_executable_p=$as_test_x
15094 # Sed expression to map a string onto a valid CPP name.
15095 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15097 # Sed expression to map a string onto a valid variable name.
15098 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15102 ## ----------------------------------- ##
15103 ## Main body of $CONFIG_STATUS script. ##
15104 ## ----------------------------------- ##
15106 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15109 # Save the log message, to keep $0 and so on meaningful, and to
15110 # report actual input values of CONFIG_FILES etc. instead of their
15111 # values after options handling.
15113 This file was extended by json-glib $as_me 0.14.2, which was
15114 generated by GNU Autoconf 2.68. Invocation command line was
15116 CONFIG_FILES = $CONFIG_FILES
15117 CONFIG_HEADERS = $CONFIG_HEADERS
15118 CONFIG_LINKS = $CONFIG_LINKS
15119 CONFIG_COMMANDS = $CONFIG_COMMANDS
15122 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15127 case $ac_config_files in *"
15128 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15131 case $ac_config_headers in *"
15132 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15137 # Files that config.status was made for.
15138 config_files="$ac_config_files"
15139 config_headers="$ac_config_headers"
15140 config_commands="$ac_config_commands"
15144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15146 \`$as_me' instantiates files and other configuration actions
15147 from templates according to the current configuration. Unless the files
15148 and actions are specified as TAGs, all are instantiated by default.
15150 Usage: $0 [OPTION]... [TAG]...
15152 -h, --help print this help, then exit
15153 -V, --version print version number and configuration settings, then exit
15154 --config print configuration, then exit
15155 -q, --quiet, --silent
15156 do not print progress messages
15157 -d, --debug don't remove temporary files
15158 --recheck update $as_me by reconfiguring in the same conditions
15159 --file=FILE[:TEMPLATE]
15160 instantiate the configuration file FILE
15161 --header=FILE[:TEMPLATE]
15162 instantiate the configuration header FILE
15164 Configuration files:
15167 Configuration headers:
15170 Configuration commands:
15173 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib>.
15174 json-glib home page: <http://live.gnome.org/JsonGlib>."
15177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15178 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15180 json-glib config.status 0.14.2
15181 configured by $0, generated by GNU Autoconf 2.68,
15182 with options \\"\$ac_cs_config\\"
15184 Copyright (C) 2010 Free Software Foundation, Inc.
15185 This config.status script is free software; the Free Software Foundation
15186 gives unlimited permission to copy, distribute and modify it."
15193 test -n "\$AWK" || AWK=awk
15196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15197 # The default lists apply if the user does not specify any file.
15203 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15204 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15208 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15220 # Handling of the options.
15221 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15223 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15224 $as_echo "$ac_cs_version"; exit ;;
15225 --config | --confi | --conf | --con | --co | --c )
15226 $as_echo "$ac_cs_config"; exit ;;
15227 --debug | --debu | --deb | --de | --d | -d )
15229 --file | --fil | --fi | --f )
15232 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15233 '') as_fn_error $? "missing file argument" ;;
15235 as_fn_append CONFIG_FILES " '$ac_optarg'"
15236 ac_need_defaults=false;;
15237 --header | --heade | --head | --hea )
15240 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15242 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15243 ac_need_defaults=false;;
15245 # Conflict between --help and --header
15246 as_fn_error $? "ambiguous option: \`$1'
15247 Try \`$0 --help' for more information.";;
15248 --help | --hel | -h )
15249 $as_echo "$ac_cs_usage"; exit ;;
15250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15251 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15254 # This is an error.
15255 -*) as_fn_error $? "unrecognized option: \`$1'
15256 Try \`$0 --help' for more information." ;;
15258 *) as_fn_append ac_config_targets " $1"
15259 ac_need_defaults=false ;;
15265 ac_configure_extra_args=
15267 if $ac_cs_silent; then
15269 ac_configure_extra_args="$ac_configure_extra_args --silent"
15273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15274 if \$ac_cs_recheck; then
15275 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15277 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15278 CONFIG_SHELL='$SHELL'
15279 export CONFIG_SHELL
15284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15288 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15289 ## Running $as_me. ##
15295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15299 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15302 # The HP-UX ksh and POSIX shell print the target directory to stdout
15303 # if CDPATH is set.
15304 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15306 sed_quote_subst='$sed_quote_subst'
15307 double_quote_subst='$double_quote_subst'
15308 delay_variable_subst='$delay_variable_subst'
15309 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15310 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15311 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15312 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15313 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15314 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15315 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15316 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15317 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15318 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15319 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15320 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15321 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15322 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15323 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15324 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15325 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15326 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15327 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15328 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15329 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15330 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15331 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15332 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15333 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15334 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15335 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15336 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15337 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15338 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15339 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15340 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15341 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15342 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15343 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15344 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15345 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15346 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15347 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15348 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15349 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15350 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15351 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15352 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15353 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15354 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15355 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15356 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15357 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15358 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15359 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15360 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15361 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15362 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15363 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15364 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"`'
15365 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15366 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15367 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15368 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15369 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15370 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15371 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15372 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15373 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15374 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15375 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15376 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15377 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15378 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15379 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15380 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15381 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15382 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15383 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15384 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15385 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15386 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15387 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15388 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15389 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15390 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15391 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15392 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15393 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15394 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15395 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15396 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15397 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15398 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15399 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15400 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15401 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15402 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15403 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15404 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15405 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15406 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15407 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15408 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15409 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15410 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15411 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15412 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15413 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15414 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15415 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15416 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15417 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15418 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15419 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15420 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15421 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15422 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15423 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15424 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15425 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15426 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15427 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15428 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15429 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15430 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15431 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15432 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15433 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15434 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15435 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15436 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15437 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15438 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15441 LTCFLAGS='$LTCFLAGS'
15442 compiler='$compiler_DEFAULT'
15444 # A function that is used when there is no print builtin or printf.
15445 func_fallback_echo ()
15447 eval 'cat <<_LTECHO_EOF
15452 # Quote evaled strings.
15466 deplibs_check_method \
15471 sharedlib_from_linklib_cmd \
15474 archiver_list_spec \
15480 lt_cv_sys_global_symbol_pipe \
15481 lt_cv_sys_global_symbol_to_cdecl \
15482 lt_cv_sys_global_symbol_to_c_name_address \
15483 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15484 nm_file_list_spec \
15485 lt_prog_compiler_no_builtin_flag \
15486 lt_prog_compiler_pic \
15487 lt_prog_compiler_wl \
15488 lt_prog_compiler_static \
15489 lt_cv_prog_compiler_c_o \
15498 export_dynamic_flag_spec \
15499 whole_archive_flag_spec \
15500 compiler_needs_object \
15502 allow_undefined_flag \
15503 no_undefined_flag \
15504 hardcode_libdir_flag_spec \
15505 hardcode_libdir_flag_spec_ld \
15506 hardcode_libdir_separator \
15510 variables_saved_for_relink \
15512 library_names_spec \
15514 install_override_mode \
15518 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15519 *[\\\\\\\`\\"\\\$]*)
15520 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15523 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15528 # Double-quote double-evaled strings.
15529 for var in reload_cmds \
15530 old_postinstall_cmds \
15531 old_postuninstall_cmds \
15533 extract_expsyms_cmds \
15534 old_archive_from_new_cmds \
15535 old_archive_from_expsyms_cmds \
15537 archive_expsym_cmds \
15539 module_expsym_cmds \
15540 export_symbols_cmds \
15544 postuninstall_cmds \
15546 sys_lib_search_path_spec \
15547 sys_lib_dlsearch_path_spec; do
15548 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15549 *[\\\\\\\`\\"\\\$]*)
15550 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15553 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15558 ac_aux_dir='$ac_aux_dir'
15559 xsi_shell='$xsi_shell'
15560 lt_shell_append='$lt_shell_append'
15562 # See if we are running on zsh, and set the options which allow our
15563 # commands through without removal of \ escapes INIT.
15564 if test -n "\${ZSH_VERSION+set}" ; then
15565 setopt NO_GLOB_SUBST
15571 TIMESTAMP='$TIMESTAMP'
15577 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15578 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15579 # from automake < 1.5.
15580 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15581 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15582 LINGUAS="${LINGUAS-%UNSET%}"
15587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15589 # Handling of arguments.
15590 for ac_config_target in $ac_config_targets
15592 case $ac_config_target in
15593 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15594 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15595 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15596 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
15597 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15598 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
15599 "build/autotools/Makefile") CONFIG_FILES="$CONFIG_FILES build/autotools/Makefile" ;;
15600 "build/win32/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/Makefile" ;;
15601 "build/win32/config.h.win32") CONFIG_FILES="$CONFIG_FILES build/win32/config.h.win32" ;;
15602 "build/win32/vs9/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs9/Makefile" ;;
15603 "build/win32/vs10/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs10/Makefile" ;;
15604 "json-glib/Makefile") CONFIG_FILES="$CONFIG_FILES json-glib/Makefile" ;;
15605 "json-glib/json-version.h") CONFIG_FILES="$CONFIG_FILES json-glib/json-version.h" ;;
15606 "json-glib/tests/Makefile") CONFIG_FILES="$CONFIG_FILES json-glib/tests/Makefile" ;;
15607 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15608 "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;;
15609 "doc/reference/version.xml") CONFIG_FILES="$CONFIG_FILES doc/reference/version.xml" ;;
15610 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15611 "json-glib.pc") CONFIG_FILES="$CONFIG_FILES json-glib.pc" ;;
15613 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15618 # If the user did not use the arguments to specify the items to instantiate,
15619 # then the envvar interface is used. Set only those that are not.
15620 # We use the long form for the default assignment because of an extremely
15621 # bizarre bug on SunOS 4.1.3.
15622 if $ac_need_defaults; then
15623 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15624 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15625 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15628 # Have a temporary directory for convenience. Make it in the build tree
15629 # simply because there is no reason against having it here, and in addition,
15630 # creating and moving files from /tmp can sometimes cause problems.
15631 # Hook for its removal unless debugging.
15632 # Note that there is a small window in which the directory will not be cleaned:
15633 # after its creation but before its name has been assigned to `$tmp'.
15637 trap 'exit_status=$?
15638 : "${ac_tmp:=$tmp}"
15639 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15641 trap 'as_fn_exit 1' 1 2 13 15
15643 # Create a (secure) tmp directory for tmp files.
15646 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15650 tmp=./conf$$-$RANDOM
15651 (umask 077 && mkdir "$tmp")
15652 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15655 # Set up the scripts for CONFIG_FILES section.
15656 # No need to generate them if there are no CONFIG_FILES.
15657 # This happens for instance with `./config.status config.h'.
15658 if test -n "$CONFIG_FILES"; then
15661 ac_cr=`echo X | tr X '\015'`
15662 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15663 # But we know of no other shell where ac_cr would be empty at this
15664 # point, so we can use a bashism as a fallback.
15665 if test "x$ac_cr" = x; then
15666 eval ac_cr=\$\'\\r\'
15668 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15669 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15672 ac_cs_awk_cr=$ac_cr
15675 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15680 echo "cat >conf$$subs.awk <<_ACEOF" &&
15681 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15683 } >conf$$subs.sh ||
15684 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15685 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15687 for ac_last_try in false false false false false :; do
15688 . ./conf$$subs.sh ||
15689 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15691 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15692 if test $ac_delim_n = $ac_delim_num; then
15694 elif $ac_last_try; then
15695 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15697 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15700 rm -f conf$$subs.sh
15702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15703 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15707 s/^/S["/; s/!.*/"]=/
15717 s/\(.\{148\}\)..*/\1/
15719 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15724 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15731 s/\(.\{148\}\)..*/\1/
15733 s/["\\]/\\&/g; s/^/"/; s/$/"/
15737 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15742 ' <conf$$subs.awk | sed '
15747 ' >>$CONFIG_STATUS || ac_write_fail=1
15748 rm -f conf$$subs.awk
15749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15751 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15752 for (key in S) S_is_set[key] = 1
15758 nfields = split(line, field, "@")
15760 len = length(field[1])
15761 for (i = 2; i < nfields; i++) {
15763 keylen = length(key)
15764 if (S_is_set[key]) {
15766 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15767 len += length(value) + length(field[++i])
15778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15779 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15780 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15783 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15784 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15787 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15788 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15789 # trailing colons and then remove the whole line if VPATH becomes empty
15790 # (actually we leave an empty line to preserve line numbers).
15791 if test "x$srcdir" = x.; then
15792 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15811 fi # test -n "$CONFIG_FILES"
15813 # Set up the scripts for CONFIG_HEADERS section.
15814 # No need to generate them if there are no CONFIG_HEADERS.
15815 # This happens for instance with `./config.status Makefile'.
15816 if test -n "$CONFIG_HEADERS"; then
15817 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15821 # Transform confdefs.h into an awk script `defines.awk', embedded as
15822 # here-document in config.status, that substitutes the proper values into
15823 # config.h.in to produce config.h.
15825 # Create a delimiter string that does not exist in confdefs.h, to ease
15826 # handling of long lines.
15828 for ac_last_try in false false :; do
15829 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15830 if test -z "$ac_tt"; then
15832 elif $ac_last_try; then
15833 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15835 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15839 # For the awk script, D is an array of macro values keyed by name,
15840 # likewise P contains macro parameters if any. Preserve backslash
15841 # newline sequences.
15843 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15845 s/.\{148\}/&'"$ac_delim"'/g
15848 s/^[ ]*#[ ]*define[ ][ ]*/ /
15855 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15857 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15861 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15862 D["\1"]=" \3\\\\\\n"\\/p
15864 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15869 s/.\{148\}/&'"$ac_delim"'/g
15874 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15877 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15879 ' <confdefs.h | sed '
15880 s/'"$ac_delim"'/"\\\
15881 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15884 for (key in D) D_is_set[key] = 1
15887 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15889 split(line, arg, " ")
15890 if (arg[1] == "#") {
15894 defundef = substr(arg[1], 2)
15897 split(mac1, mac2, "(") #)
15899 prefix = substr(line, 1, index(line, defundef) - 1)
15900 if (D_is_set[macro]) {
15901 # Preserve the white space surrounding the "#".
15902 print prefix "define", macro P[macro] D[macro]
15905 # Replace #undef with comments. This is necessary, for example,
15906 # in the case of _POSIX_SOURCE, which is predefined and required
15907 # on some systems where configure will not decide to define it.
15908 if (defundef == "undef") {
15909 print "/*", prefix defundef, macro, "*/"
15917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15918 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15919 fi # test -n "$CONFIG_HEADERS"
15922 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15927 :[FHLC]) ac_mode=$ac_tag; continue;;
15929 case $ac_mode$ac_tag in
15931 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15932 :[FH]-) ac_tag=-:-;;
15933 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15950 -) ac_f="$ac_tmp/stdin";;
15951 *) # Look for the file first in the build tree, then in the source tree
15952 # (if the path is not absolute). The absolute path cannot be DOS-style,
15953 # because $ac_f cannot contain `:'.
15957 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15959 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15961 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15962 as_fn_append ac_file_inputs " '$ac_f'"
15965 # Let's still pretend it is `configure' which instantiates (i.e., don't
15966 # use $as_me), people would be surprised to read:
15967 # /* config.h. Generated by config.status. */
15968 configure_input='Generated from '`
15969 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15971 if test x"$ac_file" != x-; then
15972 configure_input="$ac_file. $configure_input"
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15974 $as_echo "$as_me: creating $ac_file" >&6;}
15976 # Neutralize special characters interpreted by sed in replacement strings.
15977 case $configure_input in #(
15978 *\&* | *\|* | *\\* )
15979 ac_sed_conf_input=`$as_echo "$configure_input" |
15980 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15981 *) ac_sed_conf_input=$configure_input;;
15985 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15986 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15991 ac_dir=`$as_dirname -- "$ac_file" ||
15992 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15993 X"$ac_file" : 'X\(//\)[^/]' \| \
15994 X"$ac_file" : 'X\(//\)$' \| \
15995 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15996 $as_echo X"$ac_file" |
15997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16001 /^X\(\/\/\)[^/].*/{
16014 as_dir="$ac_dir"; as_fn_mkdir_p
16018 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16020 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16021 # A ".." for each directory in $ac_dir_suffix.
16022 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16023 case $ac_top_builddir_sub in
16024 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16025 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16028 ac_abs_top_builddir=$ac_pwd
16029 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16030 # for backward compatibility:
16031 ac_top_builddir=$ac_top_build_prefix
16034 .) # We are building in place.
16036 ac_top_srcdir=$ac_top_builddir_sub
16037 ac_abs_top_srcdir=$ac_pwd ;;
16038 [\\/]* | ?:[\\/]* ) # Absolute name.
16039 ac_srcdir=$srcdir$ac_dir_suffix;
16040 ac_top_srcdir=$srcdir
16041 ac_abs_top_srcdir=$srcdir ;;
16042 *) # Relative name.
16043 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16044 ac_top_srcdir=$ac_top_build_prefix$srcdir
16045 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16047 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16057 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16058 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16060 ac_MKDIR_P=$MKDIR_P
16062 [\\/$]* | ?:[\\/]* ) ;;
16063 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16068 # If the template does not know about datarootdir, expand it.
16069 # FIXME: This hack should be removed a few years after 2.60.
16070 ac_datarootdir_hack=; ac_datarootdir_seen=
16081 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16082 *datarootdir*) ac_datarootdir_seen=yes;;
16083 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16085 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16088 ac_datarootdir_hack='
16089 s&@datadir@&$datadir&g
16090 s&@docdir@&$docdir&g
16091 s&@infodir@&$infodir&g
16092 s&@localedir@&$localedir&g
16093 s&@mandir@&$mandir&g
16094 s&\\\${datarootdir}&$datarootdir&g' ;;
16098 # Neutralize VPATH when `$srcdir' = `.'.
16099 # Shell code in configure.ac might set extrasub.
16100 # FIXME: do we really want to maintain this feature?
16101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16102 ac_sed_extra="$ac_vpsub
16105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16107 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16108 s|@configure_input@|$ac_sed_conf_input|;t t
16109 s&@top_builddir@&$ac_top_builddir_sub&;t t
16110 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16111 s&@srcdir@&$ac_srcdir&;t t
16112 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16113 s&@top_srcdir@&$ac_top_srcdir&;t t
16114 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16115 s&@builddir@&$ac_builddir&;t t
16116 s&@abs_builddir@&$ac_abs_builddir&;t t
16117 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16118 s&@INSTALL@&$ac_INSTALL&;t t
16119 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16120 $ac_datarootdir_hack
16122 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16123 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16125 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16126 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16127 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16128 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16130 which seems to be undefined. Please make sure it is defined" >&5
16131 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16132 which seems to be undefined. Please make sure it is defined" >&2;}
16134 rm -f "$ac_tmp/stdin"
16136 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16137 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16139 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16145 if test x"$ac_file" != x-; then
16147 $as_echo "/* $configure_input */" \
16148 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16149 } >"$ac_tmp/config.h" \
16150 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16151 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16153 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16156 mv "$ac_tmp/config.h" "$ac_file" \
16157 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16160 $as_echo "/* $configure_input */" \
16161 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16162 || as_fn_error $? "could not create -" "$LINENO" 5
16164 # Compute "$ac_file"'s index in $config_headers.
16167 for _am_header in $config_headers :; do
16168 case $_am_header in
16169 $_am_arg | $_am_arg:* )
16172 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16175 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16176 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16177 X"$_am_arg" : 'X\(//\)[^/]' \| \
16178 X"$_am_arg" : 'X\(//\)$' \| \
16179 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16180 $as_echo X"$_am_arg" |
16181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16185 /^X\(\/\/\)[^/].*/{
16197 s/.*/./; q'`/stamp-h$_am_stamp_count
16200 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16201 $as_echo "$as_me: executing $ac_file commands" >&6;}
16206 case $ac_file$ac_mode in
16207 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16208 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16209 # are listed without --file. Let's play safe and only enable the eval
16210 # if we detect the quoting.
16211 case $CONFIG_FILES in
16212 *\'*) eval set x "$CONFIG_FILES" ;;
16213 *) set x $CONFIG_FILES ;;
16218 # Strip MF so we end up with the name of the file.
16219 mf=`echo "$mf" | sed -e 's/:.*$//'`
16220 # Check whether this is an Automake generated Makefile or not.
16221 # We used to match only the files named `Makefile.in', but
16222 # some people rename them; so instead we look at the file content.
16223 # Grep'ing the first line is not enough: some people post-process
16224 # each Makefile.in and add a new line on top of each file to say so.
16225 # Grep'ing the whole file is not good either: AIX grep has a line
16226 # limit of 2048, but all sed's we know have understand at least 4000.
16227 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16228 dirpart=`$as_dirname -- "$mf" ||
16229 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16230 X"$mf" : 'X\(//\)[^/]' \| \
16231 X"$mf" : 'X\(//\)$' \| \
16232 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16238 /^X\(\/\/\)[^/].*/{
16254 # Extract the definition of DEPDIR, am__include, and am__quote
16255 # from the Makefile without running `make'.
16256 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16257 test -z "$DEPDIR" && continue
16258 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16259 test -z "am__include" && continue
16260 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16261 # When using ansi2knr, U may be empty or an underscore; expand it
16262 U=`sed -n 's/^U = //p' < "$mf"`
16263 # Find all dependency output files, they are included files with
16264 # $(DEPDIR) in their names. We invoke sed twice because it is the
16265 # simplest approach to changing $(DEPDIR) to its actual value in the
16267 for file in `sed -n "
16268 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16269 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16270 # Make sure the directory exists.
16271 test -f "$dirpart/$file" && continue
16272 fdir=`$as_dirname -- "$file" ||
16273 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16274 X"$file" : 'X\(//\)[^/]' \| \
16275 X"$file" : 'X\(//\)$' \| \
16276 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16277 $as_echo X"$file" |
16278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16282 /^X\(\/\/\)[^/].*/{
16295 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16296 # echo "creating $dirpart/$file"
16297 echo '# dummy' > "$dirpart/$file"
16304 # See if we are running on zsh, and set the options which allow our
16305 # commands through without removal of \ escapes.
16306 if test -n "${ZSH_VERSION+set}" ; then
16307 setopt NO_GLOB_SUBST
16310 cfgfile="${ofile}T"
16311 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16314 cat <<_LT_EOF >> "$cfgfile"
16317 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16318 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16319 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16320 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16322 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16323 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16325 # Written by Gordon Matzigkeit, 1996
16327 # This file is part of GNU Libtool.
16329 # GNU Libtool is free software; you can redistribute it and/or
16330 # modify it under the terms of the GNU General Public License as
16331 # published by the Free Software Foundation; either version 2 of
16332 # the License, or (at your option) any later version.
16334 # As a special exception to the GNU General Public License,
16335 # if you distribute this file as part of a program or library that
16336 # is built using GNU Libtool, you may include this file under the
16337 # same distribution terms that you use for the rest of that program.
16339 # GNU Libtool is distributed in the hope that it will be useful,
16340 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16341 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16342 # GNU General Public License for more details.
16344 # You should have received a copy of the GNU General Public License
16345 # along with GNU Libtool; see the file COPYING. If not, a copy
16346 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16347 # obtained by writing to the Free Software Foundation, Inc.,
16348 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16351 # The names of the tagged configurations supported by this script.
16354 # ### BEGIN LIBTOOL CONFIG
16356 # Which release of libtool.m4 was used?
16357 macro_version=$macro_version
16358 macro_revision=$macro_revision
16360 # Whether or not to build static libraries.
16361 build_old_libs=$enable_static
16363 # Whether or not to build shared libraries.
16364 build_libtool_libs=$enable_shared
16366 # What type of objects to build.
16369 # Whether or not to optimize for fast installation.
16370 fast_install=$enable_fast_install
16372 # Shell to use when invoking shell scripts.
16375 # An echo program that protects backslashes.
16379 host_alias=$host_alias
16383 # The build system.
16384 build_alias=$build_alias
16388 # A sed program that does not truncate output.
16391 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16392 Xsed="\$SED -e 1s/^X//"
16394 # A grep program that handles long lines.
16400 # A literal string matcher.
16403 # A BSD- or MS-compatible name lister.
16406 # Whether we need soft or hard links.
16409 # What is the maximum length of a command?
16410 max_cmd_len=$max_cmd_len
16412 # Object file suffix (normally "o").
16415 # Executable file suffix (normally "").
16418 # whether the shell understands "unset".
16421 # turn spaces into newlines.
16424 # turn newlines into spaces.
16427 # convert \$build file names to \$host format.
16428 to_host_file_cmd=$lt_cv_to_host_file_cmd
16430 # convert \$build files to toolchain format.
16431 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16433 # An object symbol dumper.
16434 OBJDUMP=$lt_OBJDUMP
16436 # Method to check whether dependent libraries are shared objects.
16437 deplibs_check_method=$lt_deplibs_check_method
16439 # Command to use when deplibs_check_method = "file_magic".
16440 file_magic_cmd=$lt_file_magic_cmd
16442 # How to find potential files when deplibs_check_method = "file_magic".
16443 file_magic_glob=$lt_file_magic_glob
16445 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16446 want_nocaseglob=$lt_want_nocaseglob
16448 # DLL creation program.
16449 DLLTOOL=$lt_DLLTOOL
16451 # Command to associate shared and link libraries.
16452 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16457 # Flags to create an archive.
16458 AR_FLAGS=$lt_AR_FLAGS
16460 # How to feed a file listing to the archiver.
16461 archiver_list_spec=$lt_archiver_list_spec
16463 # A symbol stripping program.
16466 # Commands used to install an old-style archive.
16468 old_postinstall_cmds=$lt_old_postinstall_cmds
16469 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16471 # Whether to use a lock for old archive extraction.
16472 lock_old_archive_extraction=$lock_old_archive_extraction
16477 # LTCC compiler flags.
16478 LTCFLAGS=$lt_CFLAGS
16480 # Take the output of nm and produce a listing of raw symbols and C names.
16481 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16483 # Transform the output of nm in a proper C declaration.
16484 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16486 # Transform the output of nm in a C name address pair.
16487 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16489 # Transform the output of nm in a C name address pair when lib prefix is needed.
16490 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16492 # Specify filename containing input files for \$NM.
16493 nm_file_list_spec=$lt_nm_file_list_spec
16495 # The root where to search for dependent libraries,and in which our libraries should be installed.
16496 lt_sysroot=$lt_sysroot
16498 # The name of the directory that contains temporary libtool files.
16501 # Used to examine libraries when file_magic_cmd begins with "file".
16502 MAGIC_CMD=$MAGIC_CMD
16504 # Must we lock files when doing compilation?
16505 need_locks=$lt_need_locks
16508 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16510 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16511 DSYMUTIL=$lt_DSYMUTIL
16513 # Tool to change global to local symbols on Mac OS X.
16516 # Tool to manipulate fat objects and archives on Mac OS X.
16519 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16522 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16523 OTOOL64=$lt_OTOOL64
16525 # Old archive suffix (normally "a").
16528 # Shared library suffix (normally ".so").
16529 shrext_cmds=$lt_shrext_cmds
16531 # The commands to extract the exported symbol list from a shared archive.
16532 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16534 # Variables whose values should be saved in libtool wrapper scripts and
16535 # restored at link time.
16536 variables_saved_for_relink=$lt_variables_saved_for_relink
16538 # Do we need the "lib" prefix for modules?
16539 need_lib_prefix=$need_lib_prefix
16541 # Do we need a version for libraries?
16542 need_version=$need_version
16544 # Library versioning type.
16545 version_type=$version_type
16547 # Shared library runtime path variable.
16548 runpath_var=$runpath_var
16550 # Shared library path variable.
16551 shlibpath_var=$shlibpath_var
16553 # Is shlibpath searched before the hard-coded library search path?
16554 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16556 # Format of library name prefix.
16557 libname_spec=$lt_libname_spec
16559 # List of archive names. First name is the real one, the rest are links.
16560 # The last name is the one that the linker finds with -lNAME
16561 library_names_spec=$lt_library_names_spec
16563 # The coded name of the library, if different from the real name.
16564 soname_spec=$lt_soname_spec
16566 # Permission mode override for installation of shared libraries.
16567 install_override_mode=$lt_install_override_mode
16569 # Command to use after installation of a shared archive.
16570 postinstall_cmds=$lt_postinstall_cmds
16572 # Command to use after uninstallation of a shared archive.
16573 postuninstall_cmds=$lt_postuninstall_cmds
16575 # Commands used to finish a libtool library installation in a directory.
16576 finish_cmds=$lt_finish_cmds
16578 # As "finish_cmds", except a single script fragment to be evaled but
16580 finish_eval=$lt_finish_eval
16582 # Whether we should hardcode library paths into libraries.
16583 hardcode_into_libs=$hardcode_into_libs
16585 # Compile-time system search path for libraries.
16586 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16588 # Run-time system search path for libraries.
16589 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16591 # Whether dlopen is supported.
16592 dlopen_support=$enable_dlopen
16594 # Whether dlopen of programs is supported.
16595 dlopen_self=$enable_dlopen_self
16597 # Whether dlopen of statically linked programs is supported.
16598 dlopen_self_static=$enable_dlopen_self_static
16600 # Commands to strip libraries.
16601 old_striplib=$lt_old_striplib
16602 striplib=$lt_striplib
16605 # The linker used to build libraries.
16608 # How to create reloadable object files.
16609 reload_flag=$lt_reload_flag
16610 reload_cmds=$lt_reload_cmds
16612 # Commands used to build an old-style archive.
16613 old_archive_cmds=$lt_old_archive_cmds
16615 # A language specific compiler.
16618 # Is the compiler the GNU compiler?
16621 # Compiler flag to turn off builtin functions.
16622 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16624 # Additional compiler flags for building library objects.
16625 pic_flag=$lt_lt_prog_compiler_pic
16627 # How to pass a linker flag through the compiler.
16628 wl=$lt_lt_prog_compiler_wl
16630 # Compiler flag to prevent dynamic linking.
16631 link_static_flag=$lt_lt_prog_compiler_static
16633 # Does compiler simultaneously support -c and -o options?
16634 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16636 # Whether or not to add -lc for building shared libraries.
16637 build_libtool_need_lc=$archive_cmds_need_lc
16639 # Whether or not to disallow shared libs when runtime libs are static.
16640 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16642 # Compiler flag to allow reflexive dlopens.
16643 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16645 # Compiler flag to generate shared objects directly from archives.
16646 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16648 # Whether the compiler copes with passing no objects directly.
16649 compiler_needs_object=$lt_compiler_needs_object
16651 # Create an old-style archive from a shared archive.
16652 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16654 # Create a temporary old-style archive to link instead of a shared archive.
16655 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16657 # Commands used to build a shared archive.
16658 archive_cmds=$lt_archive_cmds
16659 archive_expsym_cmds=$lt_archive_expsym_cmds
16661 # Commands used to build a loadable module if different from building
16662 # a shared archive.
16663 module_cmds=$lt_module_cmds
16664 module_expsym_cmds=$lt_module_expsym_cmds
16666 # Whether we are building with GNU ld or not.
16667 with_gnu_ld=$lt_with_gnu_ld
16669 # Flag that allows shared libraries with undefined symbols to be built.
16670 allow_undefined_flag=$lt_allow_undefined_flag
16672 # Flag that enforces no undefined symbols.
16673 no_undefined_flag=$lt_no_undefined_flag
16675 # Flag to hardcode \$libdir into a binary during linking.
16676 # This must work even if \$libdir does not exist
16677 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16679 # If ld is used when linking, flag to hardcode \$libdir into a binary
16680 # during linking. This must work even if \$libdir does not exist.
16681 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16683 # Whether we need a single "-rpath" flag with a separated argument.
16684 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16686 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16687 # DIR into the resulting binary.
16688 hardcode_direct=$hardcode_direct
16690 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16691 # DIR into the resulting binary and the resulting library dependency is
16692 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16693 # library is relocated.
16694 hardcode_direct_absolute=$hardcode_direct_absolute
16696 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16697 # into the resulting binary.
16698 hardcode_minus_L=$hardcode_minus_L
16700 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16701 # into the resulting binary.
16702 hardcode_shlibpath_var=$hardcode_shlibpath_var
16704 # Set to "yes" if building a shared library automatically hardcodes DIR
16705 # into the library and all subsequent libraries and executables linked
16707 hardcode_automatic=$hardcode_automatic
16709 # Set to yes if linker adds runtime paths of dependent libraries
16710 # to runtime path list.
16711 inherit_rpath=$inherit_rpath
16713 # Whether libtool must link a program against all its dependency libraries.
16714 link_all_deplibs=$link_all_deplibs
16716 # Set to "yes" if exported symbols are required.
16717 always_export_symbols=$always_export_symbols
16719 # The commands to list exported symbols.
16720 export_symbols_cmds=$lt_export_symbols_cmds
16722 # Symbols that should not be listed in the preloaded symbols.
16723 exclude_expsyms=$lt_exclude_expsyms
16725 # Symbols that must always be exported.
16726 include_expsyms=$lt_include_expsyms
16728 # Commands necessary for linking programs (against libraries) with templates.
16729 prelink_cmds=$lt_prelink_cmds
16731 # Commands necessary for finishing linking programs.
16732 postlink_cmds=$lt_postlink_cmds
16734 # Specify filename containing input files.
16735 file_list_spec=$lt_file_list_spec
16737 # How to hardcode a shared library path into an executable.
16738 hardcode_action=$hardcode_action
16740 # ### END LIBTOOL CONFIG
16746 cat <<\_LT_EOF >> "$cfgfile"
16747 # AIX sometimes has problems with the GCC collect2 program. For some
16748 # reason, if we set the COLLECT_NAMES environment variable, the problems
16749 # vanish in a puff of smoke.
16750 if test "X${COLLECT_NAMES+set}" != Xset; then
16752 export COLLECT_NAMES
16759 ltmain="$ac_aux_dir/ltmain.sh"
16762 # We use sed instead of cat because bash on DJGPP gets confused if
16763 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16764 # text mode, it properly converts lines to CR/LF. This bash problem
16765 # is reportedly fixed, but why not run on old versions too?
16766 sed '$q' "$ltmain" >> "$cfgfile" \
16767 || (rm -f "$cfgfile"; exit 1)
16769 if test x"$xsi_shell" = xyes; then
16770 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16774 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16775 \ * ) func_dirname_result="${3}" ;;\
16777 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16778 && mv -f "$cfgfile.tmp" "$cfgfile" \
16779 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16780 test 0 -eq $? || _lt_function_replace_fail=:
16783 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16786 \ func_basename_result="${1##*/}"\
16787 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16788 && mv -f "$cfgfile.tmp" "$cfgfile" \
16789 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16790 test 0 -eq $? || _lt_function_replace_fail=:
16793 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16794 func_dirname_and_basename ()\
16797 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16798 \ * ) func_dirname_result="${3}" ;;\
16800 \ func_basename_result="${1##*/}"\
16801 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16802 && mv -f "$cfgfile.tmp" "$cfgfile" \
16803 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16804 test 0 -eq $? || _lt_function_replace_fail=:
16807 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16810 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16811 \ # positional parameters, so assign one to ordinary parameter first.\
16812 \ func_stripname_result=${3}\
16813 \ func_stripname_result=${func_stripname_result#"${1}"}\
16814 \ func_stripname_result=${func_stripname_result%"${2}"}\
16815 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16816 && mv -f "$cfgfile.tmp" "$cfgfile" \
16817 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16818 test 0 -eq $? || _lt_function_replace_fail=:
16821 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16822 func_split_long_opt ()\
16824 \ func_split_long_opt_name=${1%%=*}\
16825 \ func_split_long_opt_arg=${1#*=}\
16826 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16827 && mv -f "$cfgfile.tmp" "$cfgfile" \
16828 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16829 test 0 -eq $? || _lt_function_replace_fail=:
16832 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16833 func_split_short_opt ()\
16835 \ func_split_short_opt_arg=${1#??}\
16836 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16837 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16838 && mv -f "$cfgfile.tmp" "$cfgfile" \
16839 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16840 test 0 -eq $? || _lt_function_replace_fail=:
16843 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16847 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16848 \ *) func_lo2o_result=${1} ;;\
16850 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16851 && mv -f "$cfgfile.tmp" "$cfgfile" \
16852 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16853 test 0 -eq $? || _lt_function_replace_fail=:
16856 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16859 func_xform_result=${1%.*}.lo\
16860 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16861 && mv -f "$cfgfile.tmp" "$cfgfile" \
16862 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16863 test 0 -eq $? || _lt_function_replace_fail=:
16866 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16869 func_arith_result=$(( $* ))\
16870 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16871 && mv -f "$cfgfile.tmp" "$cfgfile" \
16872 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16873 test 0 -eq $? || _lt_function_replace_fail=:
16876 sed -e '/^func_len ()$/,/^} # func_len /c\
16879 func_len_result=${#1}\
16880 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16881 && mv -f "$cfgfile.tmp" "$cfgfile" \
16882 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16883 test 0 -eq $? || _lt_function_replace_fail=:
16887 if test x"$lt_shell_append" = xyes; then
16888 sed -e '/^func_append ()$/,/^} # func_append /c\
16891 eval "${1}+=\\${2}"\
16892 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16893 && mv -f "$cfgfile.tmp" "$cfgfile" \
16894 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16895 test 0 -eq $? || _lt_function_replace_fail=:
16898 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16899 func_append_quoted ()\
16901 \ func_quote_for_eval "${2}"\
16902 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16903 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16904 && mv -f "$cfgfile.tmp" "$cfgfile" \
16905 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16906 test 0 -eq $? || _lt_function_replace_fail=:
16909 # Save a `func_append' function call where possible by direct use of '+='
16910 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16911 && mv -f "$cfgfile.tmp" "$cfgfile" \
16912 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16913 test 0 -eq $? || _lt_function_replace_fail=:
16915 # Save a `func_append' function call even when '+=' is not available
16916 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16917 && mv -f "$cfgfile.tmp" "$cfgfile" \
16918 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16919 test 0 -eq $? || _lt_function_replace_fail=:
16922 if test x"$_lt_function_replace_fail" = x":"; then
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16924 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16928 mv -f "$cfgfile" "$ofile" ||
16929 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16933 "po-directories":C)
16934 for ac_file in $CONFIG_FILES; do
16935 # Support "outfile[:infile[:infile...]]"
16937 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16939 # PO directories have a Makefile.in generated from Makefile.in.in.
16940 case "$ac_file" in */Makefile.in)
16941 # Adjust a relative srcdir.
16942 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16943 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16944 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16945 # In autoconf-2.13 it is called $ac_given_srcdir.
16946 # In autoconf-2.50 it is called $srcdir.
16947 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16948 case "$ac_given_srcdir" in
16949 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16950 /*) top_srcdir="$ac_given_srcdir" ;;
16951 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16953 # Treat a directory as a PO directory if and only if it has a
16954 # POTFILES.in file. This allows packages to have multiple PO
16955 # directories under different names or in different locations.
16956 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16957 rm -f "$ac_dir/POTFILES"
16958 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16959 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16960 POMAKEFILEDEPS="POTFILES.in"
16961 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16962 # on $ac_dir but don't depend on user-specified configuration
16964 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16965 # The LINGUAS file contains the set of available languages.
16966 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16967 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16969 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16970 # Hide the ALL_LINGUAS assigment from automake < 1.5.
16971 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16972 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16974 # The set of available languages was given in configure.in.
16975 # Hide the ALL_LINGUAS assigment from automake < 1.5.
16976 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16979 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16980 # Compute UPDATEPOFILES
16981 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16982 # Compute DUMMYPOFILES
16983 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16985 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16986 case "$ac_given_srcdir" in
16988 *) srcdirpre='$(srcdir)/' ;;
16994 for lang in $ALL_LINGUAS; do
16995 POFILES="$POFILES $srcdirpre$lang.po"
16996 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16997 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16998 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17000 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17001 # environment variable.
17003 if test -n "$ALL_LINGUAS"; then
17004 for presentlang in $ALL_LINGUAS; do
17006 if test "%UNSET%" != "$LINGUAS"; then
17007 desiredlanguages="$LINGUAS"
17009 desiredlanguages="$ALL_LINGUAS"
17011 for desiredlang in $desiredlanguages; do
17012 # Use the presentlang catalog if desiredlang is
17013 # a. equal to presentlang, or
17014 # b. a variant of presentlang (because in this case,
17015 # presentlang can be used as a fallback for messages
17016 # which are not translated in the desiredlang catalog).
17017 case "$desiredlang" in
17018 "$presentlang"*) useit=yes;;
17021 if test $useit = yes; then
17022 INST_LINGUAS="$INST_LINGUAS $presentlang"
17027 if test -n "$INST_LINGUAS"; then
17028 for lang in $INST_LINGUAS; do
17029 CATALOGS="$CATALOGS $lang.gmo"
17032 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17033 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"
17034 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17035 if test -f "$f"; then
17037 *.orig | *.bak | *~) ;;
17038 *) cat "$f" >> "$ac_dir/Makefile" ;;
17053 ac_clean_files=$ac_clean_files_save
17055 test $ac_write_fail = 0 ||
17056 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17059 # configure is writing to config.log, and then calls config.status.
17060 # config.status does its own redirection, appending to config.log.
17061 # Unfortunately, on DOS this fails, as config.log is still kept open
17062 # by configure, so config.status won't be able to write to it; its
17063 # output is simply discarded. So we exec the FD to /dev/null,
17064 # effectively closing config.log, so it can be properly (re)opened and
17065 # appended to by config.status. When coming back to configure, we
17066 # need to make the FD available again.
17067 if test "$no_create" != yes; then
17069 ac_config_status_args=
17070 test "$silent" = yes &&
17071 ac_config_status_args="$ac_config_status_args --quiet"
17073 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17075 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17076 # would make configure fail if this is the last instruction.
17077 $ac_cs_success || as_fn_exit 1
17079 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17081 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17087 echo " Json-GLib - $VERSION (${JSON_RELEASE_STATUS})"
17089 echo " • Prefix: ${prefix}"
17091 echo " • Debug level: ${enable_debug}"
17092 echo " • Compiler flags: ${CFLAGS} ${MAINTAINER_CFLAGS}"
17094 echo " • API reference: ${enable_gtk_doc}"
17096 echo " • Enable test suite: ${enable_glibtest}"
17097 echo " • Build introspection data: ${enable_introspection}"
17098 echo " • Enable coverage test: ${enable_gcov}"