2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for json-glib 1.2.4.
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Create "$as_dir" as a directory, including parents if necessary.
331 -*) as_dir=./$as_dir;;
333 test -d "$as_dir" || eval $as_mkdir_p || {
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364 test -d "$as_dir" && break
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410 as_val=`expr "$@" || test $? -eq 1`
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
422 as_status=$1; test $as_status -eq 0 && as_status=1
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
508 # Exit status is that of the last command.
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
530 mkdir conf$$.dir 2>/dev/null
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 elif ln conf$$.file conf$$ 2>/dev/null; then
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
555 test -d ./-p && rmdir ./-p
560 as_executable_p=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL=${CONFIG_SHELL-/bin/sh}
571 test -n "$DJDIR" || exec 7<&0 </dev/null
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 ac_default_prefix=/usr/local
584 ac_config_libobj_dir=.
591 # Identity of this package.
592 PACKAGE_NAME='json-glib'
593 PACKAGE_TARNAME='json-glib'
594 PACKAGE_VERSION='1.2.4'
595 PACKAGE_STRING='json-glib 1.2.4'
596 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib'
597 PACKAGE_URL='http://live.gnome.org/JsonGlib'
599 ac_unique_file="json-glib/json-glib.h"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
613 # ifdef HAVE_STDLIB_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
637 ac_subst_vars='am__EXEEXT_FALSE
641 MSVC_NO_TOOLSET_SET_FALSE
642 MSVC_NO_TOOLSET_SET_TRUE
643 MSVC_BASE_NO_TOOLSET_SET_FALSE
644 MSVC_BASE_NO_TOOLSET_SET_TRUE
654 XGETTEXT_EXTRA_OPTIONS
662 GETTEXT_MACRO_VERSION
664 HAVE_INTROSPECTION_FALSE
665 HAVE_INTROSPECTION_TRUE
666 INTROSPECTION_MAKEFILE
669 INTROSPECTION_TYPELIBDIR
671 INTROSPECTION_GENERATE
672 INTROSPECTION_COMPILER
673 INTROSPECTION_SCANNER
679 GTK_DOC_USE_REBASE_FALSE
680 GTK_DOC_USE_REBASE_TRUE
681 GTK_DOC_USE_LIBTOOL_FALSE
682 GTK_DOC_USE_LIBTOOL_TRUE
683 GTK_DOC_BUILD_PDF_FALSE
684 GTK_DOC_BUILD_PDF_TRUE
685 GTK_DOC_BUILD_HTML_FALSE
686 GTK_DOC_BUILD_HTML_TRUE
706 installed_test_metadir
707 ENABLE_ALWAYS_BUILD_TESTS_FALSE
708 ENABLE_ALWAYS_BUILD_TESTS_TRUE
709 ENABLE_INSTALLED_TESTS_FALSE
710 ENABLE_INSTALLED_TESTS_TRUE
716 JSON_HIDDEN_VISIBILITY_CFLAGS
758 GLIB_COMPILE_RESOURCES
796 INSTALL_STRIP_PROGRAM
838 program_transform_name
851 enable_option_checking
854 enable_dependency_tracking
865 enable_maintainer_flags
866 enable_installed_tests
867 enable_always_build_tests
881 ac_precious_vars='build_alias
900 # Initialize some variables set by options.
902 ac_init_version=false
903 ac_unrecognized_opts=
905 # The variables have the same names as the options, with
906 # dashes changed to underlines.
914 program_transform_name=s,x,x,
922 # Installation directory options.
923 # These are left unexpanded so users can "make install exec_prefix=/foo"
924 # and all the variables that are supposed to be based on exec_prefix
925 # by default will actually change.
926 # Use braces instead of parens because sh, perl, etc. also accept them.
927 # (The list follows the same order as the GNU Coding Standards.)
928 bindir='${exec_prefix}/bin'
929 sbindir='${exec_prefix}/sbin'
930 libexecdir='${exec_prefix}/libexec'
931 datarootdir='${prefix}/share'
932 datadir='${datarootdir}'
933 sysconfdir='${prefix}/etc'
934 sharedstatedir='${prefix}/com'
935 localstatedir='${prefix}/var'
936 includedir='${prefix}/include'
937 oldincludedir='/usr/include'
938 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
939 infodir='${datarootdir}/info'
944 libdir='${exec_prefix}/lib'
945 localedir='${datarootdir}/locale'
946 mandir='${datarootdir}/man'
952 # If the previous option needs an argument, assign it.
953 if test -n "$ac_prev"; then
954 eval $ac_prev=\$ac_option
960 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
965 # Accept the important Cygnus configure options, so we can diagnose typos.
967 case $ac_dashdash$ac_option in
971 -bindir | --bindir | --bindi | --bind | --bin | --bi)
973 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
976 -build | --build | --buil | --bui | --bu)
977 ac_prev=build_alias ;;
978 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979 build_alias=$ac_optarg ;;
981 -cache-file | --cache-file | --cache-fil | --cache-fi \
982 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
983 ac_prev=cache_file ;;
984 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
985 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
986 cache_file=$ac_optarg ;;
989 cache_file=config.cache ;;
991 -datadir | --datadir | --datadi | --datad)
993 -datadir=* | --datadir=* | --datadi=* | --datad=*)
994 datadir=$ac_optarg ;;
996 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
997 | --dataroo | --dataro | --datar)
998 ac_prev=datarootdir ;;
999 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1000 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1001 datarootdir=$ac_optarg ;;
1003 -disable-* | --disable-*)
1004 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007 as_fn_error $? "invalid feature name: $ac_useropt"
1008 ac_useropt_orig=$ac_useropt
1009 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1012 "enable_$ac_useropt"
1014 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1015 ac_unrecognized_sep=', ';;
1017 eval enable_$ac_useropt=no ;;
1019 -docdir | --docdir | --docdi | --doc | --do)
1021 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1022 docdir=$ac_optarg ;;
1024 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1027 dvidir=$ac_optarg ;;
1029 -enable-* | --enable-*)
1030 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1033 as_fn_error $? "invalid feature name: $ac_useropt"
1034 ac_useropt_orig=$ac_useropt
1035 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036 case $ac_user_opts in
1038 "enable_$ac_useropt"
1040 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1041 ac_unrecognized_sep=', ';;
1043 eval enable_$ac_useropt=\$ac_optarg ;;
1045 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1046 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1047 | --exec | --exe | --ex)
1048 ac_prev=exec_prefix ;;
1049 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1050 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1051 | --exec=* | --exe=* | --ex=*)
1052 exec_prefix=$ac_optarg ;;
1054 -gas | --gas | --ga | --g)
1055 # Obsolete; use --with-gas.
1058 -help | --help | --hel | --he | -h)
1059 ac_init_help=long ;;
1060 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1061 ac_init_help=recursive ;;
1062 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1063 ac_init_help=short ;;
1065 -host | --host | --hos | --ho)
1066 ac_prev=host_alias ;;
1067 -host=* | --host=* | --hos=* | --ho=*)
1068 host_alias=$ac_optarg ;;
1070 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074 htmldir=$ac_optarg ;;
1076 -includedir | --includedir | --includedi | --included | --include \
1077 | --includ | --inclu | --incl | --inc)
1078 ac_prev=includedir ;;
1079 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1080 | --includ=* | --inclu=* | --incl=* | --inc=*)
1081 includedir=$ac_optarg ;;
1083 -infodir | --infodir | --infodi | --infod | --info | --inf)
1085 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1086 infodir=$ac_optarg ;;
1088 -libdir | --libdir | --libdi | --libd)
1090 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1091 libdir=$ac_optarg ;;
1093 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1094 | --libexe | --libex | --libe)
1095 ac_prev=libexecdir ;;
1096 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1097 | --libexe=* | --libex=* | --libe=*)
1098 libexecdir=$ac_optarg ;;
1100 -localedir | --localedir | --localedi | --localed | --locale)
1101 ac_prev=localedir ;;
1102 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1103 localedir=$ac_optarg ;;
1105 -localstatedir | --localstatedir | --localstatedi | --localstated \
1106 | --localstate | --localstat | --localsta | --localst | --locals)
1107 ac_prev=localstatedir ;;
1108 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1109 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1110 localstatedir=$ac_optarg ;;
1112 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1115 mandir=$ac_optarg ;;
1117 -nfp | --nfp | --nf)
1118 # Obsolete; use --without-fp.
1121 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1122 | --no-cr | --no-c | -n)
1125 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1126 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1129 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1130 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1131 | --oldin | --oldi | --old | --ol | --o)
1132 ac_prev=oldincludedir ;;
1133 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1134 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1135 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1136 oldincludedir=$ac_optarg ;;
1138 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1141 prefix=$ac_optarg ;;
1143 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1144 | --program-pre | --program-pr | --program-p)
1145 ac_prev=program_prefix ;;
1146 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1147 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1148 program_prefix=$ac_optarg ;;
1150 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1151 | --program-suf | --program-su | --program-s)
1152 ac_prev=program_suffix ;;
1153 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1154 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1155 program_suffix=$ac_optarg ;;
1157 -program-transform-name | --program-transform-name \
1158 | --program-transform-nam | --program-transform-na \
1159 | --program-transform-n | --program-transform- \
1160 | --program-transform | --program-transfor \
1161 | --program-transfo | --program-transf \
1162 | --program-trans | --program-tran \
1163 | --progr-tra | --program-tr | --program-t)
1164 ac_prev=program_transform_name ;;
1165 -program-transform-name=* | --program-transform-name=* \
1166 | --program-transform-nam=* | --program-transform-na=* \
1167 | --program-transform-n=* | --program-transform-=* \
1168 | --program-transform=* | --program-transfor=* \
1169 | --program-transfo=* | --program-transf=* \
1170 | --program-trans=* | --program-tran=* \
1171 | --progr-tra=* | --program-tr=* | --program-t=*)
1172 program_transform_name=$ac_optarg ;;
1174 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1177 pdfdir=$ac_optarg ;;
1179 -psdir | --psdir | --psdi | --psd | --ps)
1181 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1185 | -silent | --silent | --silen | --sile | --sil)
1188 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192 sbindir=$ac_optarg ;;
1194 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1195 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1196 | --sharedst | --shareds | --shared | --share | --shar \
1198 ac_prev=sharedstatedir ;;
1199 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1200 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1201 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203 sharedstatedir=$ac_optarg ;;
1205 -site | --site | --sit)
1207 -site=* | --site=* | --sit=*)
1210 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1213 srcdir=$ac_optarg ;;
1215 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1216 | --syscon | --sysco | --sysc | --sys | --sy)
1217 ac_prev=sysconfdir ;;
1218 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1219 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1220 sysconfdir=$ac_optarg ;;
1222 -target | --target | --targe | --targ | --tar | --ta | --t)
1223 ac_prev=target_alias ;;
1224 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1225 target_alias=$ac_optarg ;;
1227 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1230 -version | --version | --versio | --versi | --vers | -V)
1231 ac_init_version=: ;;
1234 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237 as_fn_error $? "invalid package name: $ac_useropt"
1238 ac_useropt_orig=$ac_useropt
1239 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240 case $ac_user_opts in
1244 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1245 ac_unrecognized_sep=', ';;
1247 eval with_$ac_useropt=\$ac_optarg ;;
1249 -without-* | --without-*)
1250 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1253 as_fn_error $? "invalid package name: $ac_useropt"
1254 ac_useropt_orig=$ac_useropt
1255 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1260 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1261 ac_unrecognized_sep=', ';;
1263 eval with_$ac_useropt=no ;;
1266 # Obsolete; use --with-x.
1269 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1270 | --x-incl | --x-inc | --x-in | --x-i)
1271 ac_prev=x_includes ;;
1272 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1273 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1274 x_includes=$ac_optarg ;;
1276 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1277 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1278 ac_prev=x_libraries ;;
1279 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1280 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1281 x_libraries=$ac_optarg ;;
1283 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1284 Try \`$0 --help' for more information"
1288 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1289 # Reject names that are not valid shell variable names.
1290 case $ac_envvar in #(
1291 '' | [0-9]* | *[!_$as_cr_alnum]* )
1292 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1294 eval $ac_envvar=\$ac_optarg
1295 export $ac_envvar ;;
1298 # FIXME: should be removed in autoconf 3.0.
1299 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1300 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1301 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1302 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1308 if test -n "$ac_prev"; then
1309 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1310 as_fn_error $? "missing argument to $ac_option"
1313 if test -n "$ac_unrecognized_opts"; then
1314 case $enable_option_checking in
1316 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1317 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1321 # Check all directory arguments for consistency.
1322 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1323 datadir sysconfdir sharedstatedir localstatedir includedir \
1324 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1325 libdir localedir mandir
1327 eval ac_val=\$$ac_var
1328 # Remove trailing slashes.
1331 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1332 eval $ac_var=\$ac_val;;
1334 # Be sure to have absolute directory names.
1336 [\\/$]* | ?:[\\/]* ) continue;;
1337 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1342 # There might be people who depend on the old broken behavior: `$host'
1343 # used to hold the argument of --host etc.
1344 # FIXME: To remove some day.
1347 target=$target_alias
1349 # FIXME: To remove some day.
1350 if test "x$host_alias" != x; then
1351 if test "x$build_alias" = x; then
1352 cross_compiling=maybe
1353 elif test "x$build_alias" != "x$host_alias"; then
1359 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1361 test "$silent" = yes && exec 6>/dev/null
1364 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1365 ac_ls_di=`ls -di .` &&
1366 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1367 as_fn_error $? "working directory cannot be determined"
1368 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1369 as_fn_error $? "pwd does not report name of working directory"
1372 # Find the source files, if location was not specified.
1373 if test -z "$srcdir"; then
1374 ac_srcdir_defaulted=yes
1375 # Try the directory containing this script, then the parent directory.
1376 ac_confdir=`$as_dirname -- "$as_myself" ||
1377 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1378 X"$as_myself" : 'X\(//\)[^/]' \| \
1379 X"$as_myself" : 'X\(//\)$' \| \
1380 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1381 $as_echo X"$as_myself" |
1382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1404 ac_srcdir_defaulted=no
1406 if test ! -r "$srcdir/$ac_unique_file"; then
1407 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1408 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1410 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1414 # When building in place, set srcdir=.
1415 if test "$ac_abs_confdir" = "$ac_pwd"; then
1418 # Remove unnecessary trailing slashes from srcdir.
1419 # Double slashes in file names in object file debugging info
1420 # mess up M-x gdb in Emacs.
1422 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424 for ac_var in $ac_precious_vars; do
1425 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1426 eval ac_env_${ac_var}_value=\$${ac_var}
1427 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1428 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1432 # Report the --help message.
1434 if test "$ac_init_help" = "long"; then
1435 # Omit some internal or obsolete options to make the list less imposing.
1436 # This message is too long to be a string in the A/UX 3.1 sh.
1438 \`configure' configures json-glib 1.2.4 to adapt to many kinds of systems.
1440 Usage: $0 [OPTION]... [VAR=VALUE]...
1442 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1443 VAR=VALUE. See below for descriptions of some of the useful variables.
1445 Defaults for the options are specified in brackets.
1448 -h, --help display this help and exit
1449 --help=short display options specific to this package
1450 --help=recursive display the short help of all the included packages
1451 -V, --version display version information and exit
1452 -q, --quiet, --silent do not print \`checking ...' messages
1453 --cache-file=FILE cache test results in FILE [disabled]
1454 -C, --config-cache alias for \`--cache-file=config.cache'
1455 -n, --no-create do not create output files
1456 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1458 Installation directories:
1459 --prefix=PREFIX install architecture-independent files in PREFIX
1460 [$ac_default_prefix]
1461 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1464 By default, \`make install' will install all the files in
1465 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1466 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1467 for instance \`--prefix=\$HOME'.
1469 For better control, use the options below.
1471 Fine tuning of the installation directories:
1472 --bindir=DIR user executables [EPREFIX/bin]
1473 --sbindir=DIR system admin executables [EPREFIX/sbin]
1474 --libexecdir=DIR program executables [EPREFIX/libexec]
1475 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1476 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1477 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1478 --libdir=DIR object code libraries [EPREFIX/lib]
1479 --includedir=DIR C header files [PREFIX/include]
1480 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1481 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1482 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1483 --infodir=DIR info documentation [DATAROOTDIR/info]
1484 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1485 --mandir=DIR man documentation [DATAROOTDIR/man]
1486 --docdir=DIR documentation root [DATAROOTDIR/doc/json-glib]
1487 --htmldir=DIR html documentation [DOCDIR]
1488 --dvidir=DIR dvi documentation [DOCDIR]
1489 --pdfdir=DIR pdf documentation [DOCDIR]
1490 --psdir=DIR ps documentation [DOCDIR]
1496 --program-prefix=PREFIX prepend PREFIX to installed program names
1497 --program-suffix=SUFFIX append SUFFIX to installed program names
1498 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1501 --build=BUILD configure for building on BUILD [guessed]
1502 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1506 if test -n "$ac_init_help"; then
1507 case $ac_init_help in
1508 short | recursive ) echo "Configuration of json-glib 1.2.4:";;
1513 --disable-option-checking ignore unrecognized --enable/--with options
1514 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1515 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1516 --enable-silent-rules less verbose build output (undo: "make V=1")
1517 --disable-silent-rules verbose build output (undo: "make V=0")
1518 --disable-glibtest do not try to compile and run a test GLIB program
1519 --enable-dependency-tracking
1520 do not reject slow dependency extractors
1521 --disable-dependency-tracking
1522 speeds up one-time build
1523 --enable-static[=PKGS] build static libraries [default=no]
1524 --enable-shared[=PKGS] build shared libraries [default=yes]
1525 --enable-fast-install[=PKGS]
1526 optimize for fast installation [default=yes]
1527 --disable-libtool-lock avoid locking (might break parallel builds)
1528 --disable-Bsymbolic Avoid linking with -Bsymbolic
1529 --enable-debug=[no/minimum/yes]
1530 turn on debugging [default=minimum]
1531 --enable-maintainer-flags=[no/yes]
1532 Use strict compiler flags [default=no]
1533 --enable-installed-tests
1534 Enable installation of some test cases
1535 --enable-always-build-tests
1536 Enable always building tests during 'make all'
1537 --enable-gcov Enable gcov
1538 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1539 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1540 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1541 --enable-man generate man pages [default=auto]
1542 --enable-introspection=[no/auto/yes]
1543 Enable introspection for this build
1544 --disable-nls do not use Native Language Support
1545 --disable-rpath do not hardcode runtime library paths
1548 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1549 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1550 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1552 --with-aix-soname=aix|svr4|both
1553 shared library versioning (aka "SONAME") variant to
1554 provide on AIX, [default=aix].
1555 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1556 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1557 compiler's sysroot if not specified).
1558 --with-html-dir=PATH path to installed docs
1559 --with-xml-catalog=CATALOG
1560 path to xml catalog to use
1561 --with-gnu-ld assume the C compiler uses GNU ld default=no
1562 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1563 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1564 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1565 --without-libintl-prefix don't search for libintl in includedir and libdir
1567 Some influential environment variables:
1568 PKG_CONFIG path to pkg-config utility
1570 directories to add to pkg-config's search path
1572 path overriding pkg-config's built-in search path
1573 CC C compiler command
1574 CFLAGS C compiler flags
1575 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1576 nonstandard directory <lib dir>
1577 LIBS libraries to pass to the linker, e.g. -l<library>
1578 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1579 you have headers in a nonstandard directory <include dir>
1581 User-defined run-time library search path.
1583 JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1584 JSON_LIBS linker flags for JSON, overriding pkg-config
1586 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1588 linker flags for GTKDOC_DEPS, overriding pkg-config
1590 Use these variables to override the choices made by `configure' or to help
1591 it to find libraries and programs with nonstandard names/locations.
1593 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib>.
1594 json-glib home page: <http://live.gnome.org/JsonGlib>.
1599 if test "$ac_init_help" = "recursive"; then
1600 # If there are subdirs, report their specific --help.
1601 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602 test -d "$ac_dir" ||
1603 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1608 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1611 # A ".." for each directory in $ac_dir_suffix.
1612 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1613 case $ac_top_builddir_sub in
1614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618 ac_abs_top_builddir=$ac_pwd
1619 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1620 # for backward compatibility:
1621 ac_top_builddir=$ac_top_build_prefix
1624 .) # We are building in place.
1626 ac_top_srcdir=$ac_top_builddir_sub
1627 ac_abs_top_srcdir=$ac_pwd ;;
1628 [\\/]* | ?:[\\/]* ) # Absolute name.
1629 ac_srcdir=$srcdir$ac_dir_suffix;
1630 ac_top_srcdir=$srcdir
1631 ac_abs_top_srcdir=$srcdir ;;
1633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634 ac_top_srcdir=$ac_top_build_prefix$srcdir
1635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1637 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639 cd "$ac_dir" || { ac_status=$?; continue; }
1640 # Check for guested configure.
1641 if test -f "$ac_srcdir/configure.gnu"; then
1643 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644 elif test -f "$ac_srcdir/configure"; then
1646 $SHELL "$ac_srcdir/configure" --help=recursive
1648 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1650 cd "$ac_pwd" || { ac_status=$?; break; }
1654 test -n "$ac_init_help" && exit $ac_status
1655 if $ac_init_version; then
1657 json-glib configure 1.2.4
1658 generated by GNU Autoconf 2.69
1660 Copyright (C) 2012 Free Software Foundation, Inc.
1661 This configure script is free software; the Free Software Foundation
1662 gives unlimited permission to copy, distribute and modify it.
1667 ## ------------------------ ##
1668 ## Autoconf initialization. ##
1669 ## ------------------------ ##
1671 # ac_fn_c_try_compile LINENO
1672 # --------------------------
1673 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1674 ac_fn_c_try_compile ()
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 rm -f conftest.$ac_objext
1678 if { { ac_try="$ac_compile"
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_compile") 2>conftest.err
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest.$ac_objext; then :
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status $ac_retval
1707 } # ac_fn_c_try_compile
1709 # ac_fn_c_try_run LINENO
1710 # ----------------------
1711 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1712 # that executables *can* be run.
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if { { ac_try="$ac_link"
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_link") 2>&5
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1727 { { case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_try") 2>&5
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; }; }; then :
1739 $as_echo "$as_me: program exited with status $ac_status" >&5
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1743 ac_retval=$ac_status
1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747 as_fn_set_status $ac_retval
1751 # ac_fn_c_try_link LINENO
1752 # -----------------------
1753 # Try to link conftest.$ac_ext, and return whether this succeeded.
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 rm -f conftest.$ac_objext conftest$ac_exeext
1758 if { { ac_try="$ac_link"
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_link") 2>conftest.err
1767 if test -s conftest.err; then
1768 grep -v '^ *+' conftest.err >conftest.er1
1769 cat conftest.er1 >&5
1770 mv -f conftest.er1 conftest.err
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } && {
1774 test -z "$ac_c_werror_flag" ||
1775 test ! -s conftest.err
1776 } && test -s conftest$ac_exeext && {
1777 test "$cross_compiling" = yes ||
1778 test -x conftest$ac_exeext
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1787 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1788 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1789 # interfere with the next link command; also delete a directory that is
1790 # left behind by Apple's compiler. We do this before executing the actions.
1791 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 as_fn_set_status $ac_retval
1795 } # ac_fn_c_try_link
1797 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1798 # -------------------------------------------------------
1799 # Tests whether HEADER exists and can be compiled using the include files in
1800 # INCLUDES, setting the cache variable VAR accordingly.
1801 ac_fn_c_check_header_compile ()
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if eval \${$3+:} false; then :
1807 $as_echo_n "(cached) " >&6
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1814 if ac_fn_c_try_compile "$LINENO"; then :
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 } # ac_fn_c_check_header_compile
1828 # ac_fn_c_try_cpp LINENO
1829 # ----------------------
1830 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 if { { ac_try="$ac_cpp conftest.$ac_ext"
1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1843 if test -s conftest.err; then
1844 grep -v '^ *+' conftest.err >conftest.er1
1845 cat conftest.er1 >&5
1846 mv -f conftest.er1 conftest.err
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } > conftest.i && {
1850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1851 test ! -s conftest.err
1855 $as_echo "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861 as_fn_set_status $ac_retval
1865 # ac_fn_c_check_func LINENO FUNC VAR
1866 # ----------------------------------
1867 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1868 ac_fn_c_check_func ()
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if eval \${$3+:} false; then :
1874 $as_echo_n "(cached) " >&6
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h. */
1878 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1880 #define $2 innocuous_$2
1882 /* System header to define __stub macros and hopefully few prototypes,
1883 which can conflict with char $2 (); below.
1884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1885 <limits.h> exists even on freestanding compilers. */
1888 # include <limits.h>
1890 # include <assert.h>
1895 /* Override any GCC internal prototype to avoid an error.
1896 Use char because int might match the return type of a GCC
1897 builtin and then its argument prototype would still apply. */
1902 /* The GNU C library defines this for functions which it implements
1903 to always fail with ENOSYS. Some functions are actually named
1904 something starting with __ and the normal name is an alias. */
1905 #if defined __stub_$2 || defined __stub___$2
1917 if ac_fn_c_try_link "$LINENO"; then :
1922 rm -f core conftest.err conftest.$ac_objext \
1923 conftest$ac_exeext conftest.$ac_ext
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930 } # ac_fn_c_check_func
1931 cat >config.log <<_ACEOF
1932 This file contains any messages produced by compilers while
1933 running configure, to aid debugging if configure makes a mistake.
1935 It was created by json-glib $as_me 1.2.4, which was
1936 generated by GNU Autoconf 2.69. Invocation command line was
1948 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1949 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1950 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1951 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1952 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1954 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1955 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1957 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1958 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1959 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1960 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1961 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1962 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1963 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 test -z "$as_dir" && as_dir=.
1972 $as_echo "PATH: $as_dir"
1988 # Keep a trace of the command line.
1989 # Strip out --no-create and --no-recursion so they do not pile up.
1990 # Strip out --silent because we don't want to record it for future runs.
1991 # Also quote any args containing shell meta-characters.
1992 # Make two passes to allow for proper duplicate-argument suppression.
1996 ac_must_keep_next=false
2002 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2004 | -silent | --silent | --silen | --sile | --sil)
2007 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2010 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2012 as_fn_append ac_configure_args1 " '$ac_arg'"
2013 if test $ac_must_keep_next = true; then
2014 ac_must_keep_next=false # Got value, back to normal.
2017 *=* | --config-cache | -C | -disable-* | --disable-* \
2018 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2019 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2020 | -with-* | --with-* | -without-* | --without-* | --x)
2021 case "$ac_configure_args0 " in
2022 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2025 -* ) ac_must_keep_next=true ;;
2028 as_fn_append ac_configure_args " '$ac_arg'"
2033 { ac_configure_args0=; unset ac_configure_args0;}
2034 { ac_configure_args1=; unset ac_configure_args1;}
2036 # When interrupted or exit'd, cleanup temporary files, and complete
2037 # config.log. We remove comments because anyway the quotes in there
2038 # would cause problems or look ugly.
2039 # WARNING: Use '\'' to represent an apostrophe within the trap.
2040 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2041 trap 'exit_status=$?
2042 # Save into config.log some information that might help in debugging.
2046 $as_echo "## ---------------- ##
2047 ## Cache variables. ##
2048 ## ---------------- ##"
2050 # The following way of writing the cache mishandles newlines in values,
2052 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2053 eval ac_val=\$$ac_var
2057 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2058 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2061 _ | IFS | as_nl) ;; #(
2062 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2063 *) { eval $ac_var=; unset $ac_var;} ;;
2068 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2069 *${as_nl}ac_space=\ *)
2071 "s/'\''/'\''\\\\'\'''\''/g;
2072 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2075 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2082 $as_echo "## ----------------- ##
2083 ## Output variables. ##
2084 ## ----------------- ##"
2086 for ac_var in $ac_subst_vars
2088 eval ac_val=\$$ac_var
2090 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2092 $as_echo "$ac_var='\''$ac_val'\''"
2096 if test -n "$ac_subst_files"; then
2097 $as_echo "## ------------------- ##
2098 ## File substitutions. ##
2099 ## ------------------- ##"
2101 for ac_var in $ac_subst_files
2103 eval ac_val=\$$ac_var
2105 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2107 $as_echo "$ac_var='\''$ac_val'\''"
2112 if test -s confdefs.h; then
2113 $as_echo "## ----------- ##
2120 test "$ac_signal" != 0 &&
2121 $as_echo "$as_me: caught signal $ac_signal"
2122 $as_echo "$as_me: exit $exit_status"
2124 rm -f core *.core core.conftest.* &&
2125 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2128 for ac_signal in 1 2 13 15; do
2129 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2133 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2134 rm -f -r conftest* confdefs.h
2136 $as_echo "/* confdefs.h */" > confdefs.h
2138 # Predefined preprocessor variables.
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_NAME "$PACKAGE_NAME"
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_STRING "$PACKAGE_STRING"
2156 cat >>confdefs.h <<_ACEOF
2157 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2160 cat >>confdefs.h <<_ACEOF
2161 #define PACKAGE_URL "$PACKAGE_URL"
2165 # Let the site file select an alternate cache file if it wants to.
2166 # Prefer an explicitly selected file to automatically selected ones.
2169 if test -n "$CONFIG_SITE"; then
2170 # We do not want a PATH search for config.site.
2171 case $CONFIG_SITE in #((
2172 -*) ac_site_file1=./$CONFIG_SITE;;
2173 */*) ac_site_file1=$CONFIG_SITE;;
2174 *) ac_site_file1=./$CONFIG_SITE;;
2176 elif test "x$prefix" != xNONE; then
2177 ac_site_file1=$prefix/share/config.site
2178 ac_site_file2=$prefix/etc/config.site
2180 ac_site_file1=$ac_default_prefix/share/config.site
2181 ac_site_file2=$ac_default_prefix/etc/config.site
2183 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2185 test "x$ac_site_file" = xNONE && continue
2186 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2188 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2189 sed 's/^/| /' "$ac_site_file" >&5
2191 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2193 as_fn_error $? "failed to load site script $ac_site_file
2194 See \`config.log' for more details" "$LINENO" 5; }
2198 if test -r "$cache_file"; then
2199 # Some versions of bash will fail to source /dev/null (special files
2200 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2201 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2203 $as_echo "$as_me: loading cache $cache_file" >&6;}
2205 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2206 *) . "./$cache_file";;
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2211 $as_echo "$as_me: creating cache $cache_file" >&6;}
2215 gt_needs="$gt_needs "
2216 # Check that the precious variables saved in the cache have kept the same
2218 ac_cache_corrupted=false
2219 for ac_var in $ac_precious_vars; do
2220 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2221 eval ac_new_set=\$ac_env_${ac_var}_set
2222 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2223 eval ac_new_val=\$ac_env_${ac_var}_value
2224 case $ac_old_set,$ac_new_set in
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2227 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2228 ac_cache_corrupted=: ;;
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2231 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2232 ac_cache_corrupted=: ;;
2235 if test "x$ac_old_val" != "x$ac_new_val"; then
2236 # differences in whitespace do not lead to failure.
2237 ac_old_val_w=`echo x $ac_old_val`
2238 ac_new_val_w=`echo x $ac_new_val`
2239 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2241 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2242 ac_cache_corrupted=:
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2245 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2246 eval $ac_var=\$ac_old_val
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2249 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2251 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2254 # Pass precious variables to config.status.
2255 if test "$ac_new_set" = set; then
2257 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2258 *) ac_arg=$ac_var=$ac_new_val ;;
2260 case " $ac_configure_args " in
2261 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2262 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2266 if $ac_cache_corrupted; then
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2270 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2271 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2273 ## -------------------- ##
2274 ## Main body of script. ##
2275 ## -------------------- ##
2278 ac_cpp='$CPP $CPPFLAGS'
2279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2285 ac_config_headers="$ac_config_headers config.h"
2289 for ac_dir in build "$srcdir"/build; do
2290 if test -f "$ac_dir/install-sh"; then
2292 ac_install_sh="$ac_aux_dir/install-sh -c"
2294 elif test -f "$ac_dir/install.sh"; then
2296 ac_install_sh="$ac_aux_dir/install.sh -c"
2298 elif test -f "$ac_dir/shtool"; then
2300 ac_install_sh="$ac_aux_dir/shtool install -c"
2304 if test -z "$ac_aux_dir"; then
2305 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2308 # These three variables are undocumented and unsupported,
2309 # and are intended to be withdrawn in a future Autoconf release.
2310 # They can cause serious problems if a builder's source tree is in a directory
2311 # whose full name contains unusual characters.
2312 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2313 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2314 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2319 am__api_version='1.15'
2321 # Find a good install program. We prefer a C program (faster),
2322 # so one script is as good as another. But avoid the broken or
2323 # incompatible versions:
2324 # SysV /etc/install, /usr/sbin/install
2325 # SunOS /usr/etc/install
2326 # IRIX /sbin/install
2328 # AmigaOS /C/install, which installs bootblocks on floppy discs
2329 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2330 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2331 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2332 # OS/2's system install, which has a completely different semantic
2333 # ./install, which can be erroneously created by make from ./install.sh.
2334 # Reject install programs that cannot install multiple files.
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2336 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2337 if test -z "$INSTALL"; then
2338 if ${ac_cv_path_install+:} false; then :
2339 $as_echo_n "(cached) " >&6
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 test -z "$as_dir" && as_dir=.
2346 # Account for people who put trailing slashes in PATH elements.
2347 case $as_dir/ in #((
2348 ./ | .// | /[cC]/* | \
2349 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2350 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2353 # OSF1 and SCO ODT 3.0 have their own names for install.
2354 # Don't use installbsd from OSF since it installs stuff as root
2356 for ac_prog in ginstall scoinst install; do
2357 for ac_exec_ext in '' $ac_executable_extensions; do
2358 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2359 if test $ac_prog = install &&
2360 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2361 # AIX install. It has an incompatible calling convention.
2363 elif test $ac_prog = install &&
2364 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2365 # program-specific install script used by HP pwplus--don't use.
2368 rm -rf conftest.one conftest.two conftest.dir
2369 echo one > conftest.one
2370 echo two > conftest.two
2372 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2373 test -s conftest.one && test -s conftest.two &&
2374 test -s conftest.dir/conftest.one &&
2375 test -s conftest.dir/conftest.two
2377 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2390 rm -rf conftest.one conftest.two conftest.dir
2393 if test "${ac_cv_path_install+set}" = set; then
2394 INSTALL=$ac_cv_path_install
2396 # As a last resort, use the slow shell script. Don't cache a
2397 # value for INSTALL within a source directory, because that will
2398 # break other packages using the cache if that directory is
2399 # removed, or if the value is a relative name.
2400 INSTALL=$ac_install_sh
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2404 $as_echo "$INSTALL" >&6; }
2406 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2407 # It thinks the first close brace ends the variable substitution.
2408 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2410 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2412 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2415 $as_echo_n "checking whether build environment is sane... " >&6; }
2416 # Reject unsafe characters in $srcdir or the absolute working directory
2417 # name. Accept space and tab only in the latter.
2421 *[\\\"\#\$\&\'\`$am_lf]*)
2422 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2425 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2426 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2429 # Do 'set' in a subshell so we don't clobber the current shell's
2430 # arguments. Must try -L first in case configure is actually a
2431 # symlink; some systems play weird games with the mod time of symlinks
2432 # (eg FreeBSD returns the mod time of the symlink's containing
2436 for am_try in 1 2; do
2437 echo "timestamp, slept: $am_has_slept" > conftest.file
2438 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2439 if test "$*" = "X"; then
2441 set X `ls -t "$srcdir/configure" conftest.file`
2443 if test "$*" != "X $srcdir/configure conftest.file" \
2444 && test "$*" != "X conftest.file $srcdir/configure"; then
2446 # If neither matched, then we have a broken ls. This can happen
2447 # if, for instance, CONFIG_SHELL is bash and it inherits a
2448 # broken ls alias from the environment. This has actually
2449 # happened. Such a system could not be considered "sane".
2450 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2451 alias in your environment" "$LINENO" 5
2453 if test "$2" = conftest.file || test $am_try -eq 2; then
2460 test "$2" = conftest.file
2466 as_fn_error $? "newly created file is older than distributed files!
2467 Check your system clock" "$LINENO" 5
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2470 $as_echo "yes" >&6; }
2471 # If we didn't sleep, we still need to ensure time stamps of config.status and
2472 # generated files are strictly newer.
2474 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2481 test "$program_prefix" != NONE &&
2482 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2483 # Use a double $ so make ignores it.
2484 test "$program_suffix" != NONE &&
2485 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2486 # Double any \ or $.
2487 # By default was `s,x,x', remove it if useless.
2488 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2489 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2491 # Expand $ac_aux_dir to an absolute path.
2492 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2494 if test x"${MISSING+set}" != xset; then
2497 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2499 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2502 # Use eval to expand $SHELL
2503 if eval "$MISSING --is-lightweight"; then
2504 am_missing_run="$MISSING "
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2508 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2511 if test x"${install_sh+set}" != xset; then
2514 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2516 install_sh="\${SHELL} $am_aux_dir/install-sh"
2520 # Installed binaries are usually stripped using 'strip' when the user
2521 # run "make install-strip". However 'strip' might not be the right
2522 # tool to use in cross-compilation environments, therefore Automake
2523 # will honor the 'STRIP' environment variable to overrule this program.
2524 if test "$cross_compiling" != no; then
2525 if test -n "$ac_tool_prefix"; then
2526 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2527 set dummy ${ac_tool_prefix}strip; ac_word=$2
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2529 $as_echo_n "checking for $ac_word... " >&6; }
2530 if ${ac_cv_prog_STRIP+:} false; then :
2531 $as_echo_n "(cached) " >&6
2533 if test -n "$STRIP"; then
2534 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2543 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2553 STRIP=$ac_cv_prog_STRIP
2554 if test -n "$STRIP"; then
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2556 $as_echo "$STRIP" >&6; }
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2559 $as_echo "no" >&6; }
2564 if test -z "$ac_cv_prog_STRIP"; then
2566 # Extract the first word of "strip", so it can be a program name with args.
2567 set dummy strip; ac_word=$2
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2569 $as_echo_n "checking for $ac_word... " >&6; }
2570 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2571 $as_echo_n "(cached) " >&6
2573 if test -n "$ac_ct_STRIP"; then
2574 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 test -z "$as_dir" && as_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2583 ac_cv_prog_ac_ct_STRIP="strip"
2584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2594 if test -n "$ac_ct_STRIP"; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2596 $as_echo "$ac_ct_STRIP" >&6; }
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2599 $as_echo "no" >&6; }
2602 if test "x$ac_ct_STRIP" = x; then
2605 case $cross_compiling:$ac_tool_warned in
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2609 ac_tool_warned=yes ;;
2614 STRIP="$ac_cv_prog_STRIP"
2618 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2621 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2622 if test -z "$MKDIR_P"; then
2623 if ${ac_cv_path_mkdir+:} false; then :
2624 $as_echo_n "(cached) " >&6
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2630 test -z "$as_dir" && as_dir=.
2631 for ac_prog in mkdir gmkdir; do
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2634 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2635 'mkdir (GNU coreutils) '* | \
2636 'mkdir (coreutils) '* | \
2637 'mkdir (fileutils) '4.1*)
2638 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2648 test -d ./--version && rmdir ./--version
2649 if test "${ac_cv_path_mkdir+set}" = set; then
2650 MKDIR_P="$ac_cv_path_mkdir -p"
2652 # As a last resort, use the slow shell script. Don't cache a
2653 # value for MKDIR_P within a source directory, because that will
2654 # break other packages using the cache if that directory is
2655 # removed, or if the value is a relative name.
2656 MKDIR_P="$ac_install_sh -d"
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2660 $as_echo "$MKDIR_P" >&6; }
2662 for ac_prog in gawk mawk nawk awk
2664 # Extract the first word of "$ac_prog", so it can be a program name with args.
2665 set dummy $ac_prog; ac_word=$2
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2667 $as_echo_n "checking for $ac_word... " >&6; }
2668 if ${ac_cv_prog_AWK+:} false; then :
2669 $as_echo_n "(cached) " >&6
2671 if test -n "$AWK"; then
2672 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 test -z "$as_dir" && as_dir=.
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2681 ac_cv_prog_AWK="$ac_prog"
2682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 if test -n "$AWK"; then
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2694 $as_echo "$AWK" >&6; }
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2697 $as_echo "no" >&6; }
2701 test -n "$AWK" && break
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2705 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2707 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2708 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2709 $as_echo_n "(cached) " >&6
2711 cat >conftest.make <<\_ACEOF
2714 @echo '@@@%%%=$(MAKE)=@@@%%%'
2716 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2717 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2719 eval ac_cv_prog_make_${ac_make}_set=yes;;
2721 eval ac_cv_prog_make_${ac_make}_set=no;;
2725 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2727 $as_echo "yes" >&6; }
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2731 $as_echo "no" >&6; }
2732 SET_MAKE="MAKE=${MAKE-make}"
2735 rm -rf .tst 2>/dev/null
2736 mkdir .tst 2>/dev/null
2737 if test -d .tst; then
2742 rmdir .tst 2>/dev/null
2744 # Check whether --enable-silent-rules was given.
2745 if test "${enable_silent_rules+set}" = set; then :
2746 enableval=$enable_silent_rules;
2749 case $enable_silent_rules in # (((
2750 yes) AM_DEFAULT_VERBOSITY=0;;
2751 no) AM_DEFAULT_VERBOSITY=1;;
2752 *) AM_DEFAULT_VERBOSITY=1;;
2754 am_make=${MAKE-make}
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2756 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2757 if ${am_cv_make_support_nested_variables+:} false; then :
2758 $as_echo_n "(cached) " >&6
2760 if $as_echo 'TRUE=$(BAR$(V))
2766 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2767 am_cv_make_support_nested_variables=yes
2769 am_cv_make_support_nested_variables=no
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2773 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2774 if test $am_cv_make_support_nested_variables = yes; then
2776 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2778 AM_V=$AM_DEFAULT_VERBOSITY
2779 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2783 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2784 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2785 # is not polluted with repeated "-I."
2786 am__isrc=' -I$(srcdir)'
2787 # test to see if srcdir already configured
2788 if test -f $srcdir/config.status; then
2789 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2793 # test whether we have cygpath
2794 if test -z "$CYGPATH_W"; then
2795 if (cygpath --version) >/dev/null 2>/dev/null; then
2796 CYGPATH_W='cygpath -w'
2803 # Define the identity of the package.
2808 # Some tools Automake needs.
2810 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2813 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2816 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2819 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2822 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2824 # For better backward compatibility. To be removed once Automake 1.9.x
2825 # dies out for good. For more background, see:
2826 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2827 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2828 mkdir_p='$(MKDIR_P)'
2830 # We need awk for the "check" target (and possibly the TAP driver). The
2831 # system "awk" is bad on some platforms.
2832 # Always define AMTAR for backward compatibility. Yes, it's still used
2833 # in the wild :-( We should find a proper way to deprecate it ...
2837 # We'll loop over all known methods to create a tar archive until one works.
2838 _am_tools='gnutar plaintar pax cpio none'
2840 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
2841 # There is notably a 21 bits limit for the UID and the GID. In fact,
2842 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
2844 am_max_uid=2097151 # 2^21 - 1
2845 am_max_gid=$am_max_uid
2846 # The $UID and $GID variables are not portable, so we need to resort
2847 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
2848 # below are definitely unexpected, so allow the users to see them
2849 # (that is, avoid stderr redirection).
2850 am_uid=`id -u || echo unknown`
2851 am_gid=`id -g || echo unknown`
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
2853 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
2854 if test $am_uid -le $am_max_uid; then
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2856 $as_echo "yes" >&6; }
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2859 $as_echo "no" >&6; }
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
2863 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
2864 if test $am_gid -le $am_max_gid; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2866 $as_echo "yes" >&6; }
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2874 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
2876 # Go ahead even if we have the value already cached. We do so because we
2877 # need to set the values for the 'am__tar' and 'am__untar' variables.
2878 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2880 for _am_tool in $_am_tools; do
2883 for _am_tar in tar gnutar gtar; do
2884 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2885 ($_am_tar --version) >&5 2>&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); } && break
2890 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2891 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2892 am__untar="$_am_tar -xf -"
2895 # Must skip GNU tar: if it does not support --format= it doesn't create
2896 # ustar tarball either.
2897 (tar --version) >/dev/null 2>&1 && continue
2898 am__tar='tar chf - "$$tardir"'
2899 am__tar_='tar chf - "$tardir"'
2900 am__untar='tar xf -'
2903 am__tar='pax -L -x ustar -w "$$tardir"'
2904 am__tar_='pax -L -x ustar -w "$tardir"'
2908 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2909 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2910 am__untar='cpio -i -H ustar -d'
2919 # If the value was cached, stop now. We just wanted to have am__tar
2920 # and am__untar set.
2921 test -n "${am_cv_prog_tar_ustar}" && break
2923 # tar/untar a dummy directory, and stop if the command works.
2926 echo GrepMe > conftest.dir/file
2927 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2928 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }
2933 if test -s conftest.tar; then
2934 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2935 ($am__untar <conftest.tar) >&5 2>&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }
2939 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
2940 (cat conftest.dir/file) >&5 2>&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }
2944 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2949 if ${am_cv_prog_tar_ustar+:} false; then :
2950 $as_echo_n "(cached) " >&6
2952 am_cv_prog_tar_ustar=$_am_tool
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
2956 $as_echo "$am_cv_prog_tar_ustar" >&6; }
2963 # POSIX will say in a future version that running "rm -f" with no argument
2964 # is OK; and we want to be able to make that assumption in our Makefile
2965 # recipes. So use an aggressive probe to check that the usage we want is
2966 # actually supported "in the wild" to an acceptable degree.
2967 # See automake bug#10828.
2968 # To make any issue more visible, cause the running configure to be aborted
2969 # by default if the 'rm' program in use doesn't match our expectations; the
2970 # user can still override this though.
2971 if rm -f && rm -fr && rm -rf; then : OK; else
2975 Your 'rm' program seems unable to run without file operands specified
2976 on the command line, even when the '-f' option is present. This is contrary
2977 to the behaviour of most rm programs out there, and not conforming with
2978 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2980 Please tell bug-automake@gnu.org about your system, including the value
2981 of your $PATH and any error possibly output before this message. This
2982 can help us improve future automake versions.
2985 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2986 echo 'Configuration will proceed anyway, since you have set the' >&2
2987 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2991 Aborting the configuration process, to ensure you take notice of the issue.
2993 You can download and install GNU coreutils to get an 'rm' implementation
2994 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2996 If you want to complete the configuration process using your problematic
2997 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2998 to "yes", and re-run configure.
3001 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3006 # Check whether --enable-silent-rules was given.
3007 if test "${enable_silent_rules+set}" = set; then :
3008 enableval=$enable_silent_rules;
3011 case $enable_silent_rules in # (((
3012 yes) AM_DEFAULT_VERBOSITY=0;;
3013 no) AM_DEFAULT_VERBOSITY=1;;
3014 *) AM_DEFAULT_VERBOSITY=0;;
3016 am_make=${MAKE-make}
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3018 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3019 if ${am_cv_make_support_nested_variables+:} false; then :
3020 $as_echo_n "(cached) " >&6
3022 if $as_echo 'TRUE=$(BAR$(V))
3028 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3029 am_cv_make_support_nested_variables=yes
3031 am_cv_make_support_nested_variables=no
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3035 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3036 if test $am_cv_make_support_nested_variables = yes; then
3038 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3040 AM_V=$AM_DEFAULT_VERBOSITY
3041 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3045 DEPDIR="${am__leading_dot}deps"
3047 ac_config_commands="$ac_config_commands depfiles"
3050 am_make=${MAKE-make}
3051 cat > confinc << 'END'
3053 @echo this is the am__doit target
3056 # If we don't find an include directive, just comment out the code.
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3058 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3062 # First try GNU make style include.
3063 echo "include confinc" > confmf
3064 # Ignore all kinds of additional output from 'make'.
3065 case `$am_make -s -f confmf 2> /dev/null` in #(
3066 *the\ am__doit\ target*)
3072 # Now try BSD make style include.
3073 if test "$am__include" = "#"; then
3074 echo '.include "confinc"' > confmf
3075 case `$am_make -s -f confmf 2> /dev/null` in #(
3076 *the\ am__doit\ target*)
3077 am__include=.include
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3086 $as_echo "$_am_result" >&6; }
3087 rm -f confinc confmf
3089 # Check whether --enable-dependency-tracking was given.
3090 if test "${enable_dependency_tracking+set}" = set; then :
3091 enableval=$enable_dependency_tracking;
3094 if test "x$enable_dependency_tracking" != xno; then
3095 am_depcomp="$ac_aux_dir/depcomp"
3099 if test "x$enable_dependency_tracking" != xno; then
3109 ac_cpp='$CPP $CPPFLAGS'
3110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3113 if test -n "$ac_tool_prefix"; then
3114 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3115 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if ${ac_cv_prog_CC+:} false; then :
3119 $as_echo_n "(cached) " >&6
3121 if test -n "$CC"; then
3122 ac_cv_prog_CC="$CC" # Let the user override the test.
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 test -z "$as_dir" && as_dir=.
3129 for ac_exec_ext in '' $ac_executable_extensions; do
3130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3131 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 if test -n "$CC"; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3144 $as_echo "$CC" >&6; }
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3152 if test -z "$ac_cv_prog_CC"; then
3154 # Extract the first word of "gcc", so it can be a program name with args.
3155 set dummy gcc; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3159 $as_echo_n "(cached) " >&6
3161 if test -n "$ac_ct_CC"; then
3162 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171 ac_cv_prog_ac_ct_CC="gcc"
3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3182 if test -n "$ac_ct_CC"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3184 $as_echo "$ac_ct_CC" >&6; }
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3190 if test "x$ac_ct_CC" = x; then
3193 case $cross_compiling:$ac_tool_warned in
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3197 ac_tool_warned=yes ;;
3205 if test -z "$CC"; then
3206 if test -n "$ac_tool_prefix"; then
3207 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3208 set dummy ${ac_tool_prefix}cc; ac_word=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if ${ac_cv_prog_CC+:} false; then :
3212 $as_echo_n "(cached) " >&6
3214 if test -n "$CC"; then
3215 ac_cv_prog_CC="$CC" # Let the user override the test.
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 test -z "$as_dir" && as_dir=.
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3224 ac_cv_prog_CC="${ac_tool_prefix}cc"
3225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235 if test -n "$CC"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3237 $as_echo "$CC" >&6; }
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3246 if test -z "$CC"; then
3247 # Extract the first word of "cc", so it can be a program name with args.
3248 set dummy cc; ac_word=$2
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250 $as_echo_n "checking for $ac_word... " >&6; }
3251 if ${ac_cv_prog_CC+:} false; then :
3252 $as_echo_n "(cached) " >&6
3254 if test -n "$CC"; then
3255 ac_cv_prog_CC="$CC" # Let the user override the test.
3258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 test -z "$as_dir" && as_dir=.
3263 for ac_exec_ext in '' $ac_executable_extensions; do
3264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3265 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3266 ac_prog_rejected=yes
3270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 if test $ac_prog_rejected = yes; then
3278 # We found a bogon in the path, so make sure we never use it.
3279 set dummy $ac_cv_prog_CC
3281 if test $# != 0; then
3282 # We chose a different compiler from the bogus one.
3283 # However, it has the same basename, so the bogon will be chosen
3284 # first if we set CC to just the basename; use the full file name.
3286 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3292 if test -n "$CC"; then
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3294 $as_echo "$CC" >&6; }
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 $as_echo "no" >&6; }
3302 if test -z "$CC"; then
3303 if test -n "$ac_tool_prefix"; then
3304 for ac_prog in cl.exe
3306 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3307 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309 $as_echo_n "checking for $ac_word... " >&6; }
3310 if ${ac_cv_prog_CC+:} false; then :
3311 $as_echo_n "(cached) " >&6
3313 if test -n "$CC"; then
3314 ac_cv_prog_CC="$CC" # Let the user override the test.
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 if test -n "$CC"; then
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3336 $as_echo "$CC" >&6; }
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3343 test -n "$CC" && break
3346 if test -z "$CC"; then
3348 for ac_prog in cl.exe
3350 # Extract the first word of "$ac_prog", so it can be a program name with args.
3351 set dummy $ac_prog; ac_word=$2
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3353 $as_echo_n "checking for $ac_word... " >&6; }
3354 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3355 $as_echo_n "(cached) " >&6
3357 if test -n "$ac_ct_CC"; then
3358 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367 ac_cv_prog_ac_ct_CC="$ac_prog"
3368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3377 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3378 if test -n "$ac_ct_CC"; then
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3380 $as_echo "$ac_ct_CC" >&6; }
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3383 $as_echo "no" >&6; }
3387 test -n "$ac_ct_CC" && break
3390 if test "x$ac_ct_CC" = x; then
3393 case $cross_compiling:$ac_tool_warned in
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3397 ac_tool_warned=yes ;;
3406 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408 as_fn_error $? "no acceptable C compiler found in \$PATH
3409 See \`config.log' for more details" "$LINENO" 5; }
3411 # Provide some information about the compiler.
3412 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3415 for ac_option in --version -v -V -qversion; do
3416 { { ac_try="$ac_compiler $ac_option >&5"
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3422 $as_echo "$ac_try_echo"; } >&5
3423 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3425 if test -s conftest.err; then
3427 ... rest of stderr output deleted ...
3428 10q' conftest.err >conftest.er1
3429 cat conftest.er1 >&5
3431 rm -f conftest.er1 conftest.err
3432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3433 test $ac_status = 0; }
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h. */
3447 ac_clean_files_save=$ac_clean_files
3448 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3449 # Try to create an executable without -o first, disregard a.out.
3450 # It will help us diagnose broken compilers, and finding out an intuition
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3453 $as_echo_n "checking whether the C compiler works... " >&6; }
3454 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3456 # The possible output files:
3457 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3460 for ac_file in $ac_files
3463 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3464 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3469 if { { ac_try="$ac_link_default"
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3475 $as_echo "$ac_try_echo"; } >&5
3476 (eval "$ac_link_default") 2>&5
3478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479 test $ac_status = 0; }; then :
3480 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3481 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3482 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3483 # so that the user can short-circuit this test for compilers unknown to
3485 for ac_file in $ac_files ''
3487 test -f "$ac_file" || continue
3489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3492 # We found the default executable, but exeext='' is most
3496 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3498 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3500 # We set ac_cv_exeext here because the later test for it is not
3501 # safe: cross compilers may not add the suffix if given an `-o'
3502 # argument, so we may need to know it at that point already.
3503 # Even if this section looks crufty: it has the advantage of
3510 test "$ac_cv_exeext" = no && ac_cv_exeext=
3515 if test -z "$ac_file"; then :
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517 $as_echo "no" >&6; }
3518 $as_echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523 as_fn_error 77 "C compiler cannot create executables
3524 See \`config.log' for more details" "$LINENO" 5; }
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3527 $as_echo "yes" >&6; }
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3530 $as_echo_n "checking for C compiler default output file name... " >&6; }
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3532 $as_echo "$ac_file" >&6; }
3533 ac_exeext=$ac_cv_exeext
3535 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3536 ac_clean_files=$ac_clean_files_save
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3538 $as_echo_n "checking for suffix of executables... " >&6; }
3539 if { { ac_try="$ac_link"
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3545 $as_echo "$ac_try_echo"; } >&5
3546 (eval "$ac_link") 2>&5
3548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3549 test $ac_status = 0; }; then :
3550 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3551 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3552 # work properly (i.e., refer to `conftest.exe'), while it won't with
3554 for ac_file in conftest.exe conftest conftest.*; do
3555 test -f "$ac_file" || continue
3557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3558 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3566 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3567 See \`config.log' for more details" "$LINENO" 5; }
3569 rm -f conftest conftest$ac_cv_exeext
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3571 $as_echo "$ac_cv_exeext" >&6; }
3573 rm -f conftest.$ac_ext
3574 EXEEXT=$ac_cv_exeext
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3582 FILE *f = fopen ("conftest.out", "w");
3583 return ferror (f) || fclose (f) != 0;
3589 ac_clean_files="$ac_clean_files conftest.out"
3590 # Check that the compiler produces executables we can run. If not, either
3591 # the compiler is broken, or we cross compile.
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3593 $as_echo_n "checking whether we are cross compiling... " >&6; }
3594 if test "$cross_compiling" != yes; then
3595 { { ac_try="$ac_link"
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3601 $as_echo "$ac_try_echo"; } >&5
3602 (eval "$ac_link") 2>&5
3604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3605 test $ac_status = 0; }
3606 if { ac_try='./conftest$ac_cv_exeext'
3607 { { case "(($ac_try" in
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 $as_echo "$ac_try_echo"; } >&5
3613 (eval "$ac_try") 2>&5
3615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616 test $ac_status = 0; }; }; then
3619 if test "$cross_compiling" = maybe; then
3622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3624 as_fn_error $? "cannot run C compiled programs.
3625 If you meant to cross compile, use \`--host'.
3626 See \`config.log' for more details" "$LINENO" 5; }
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3631 $as_echo "$cross_compiling" >&6; }
3633 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3634 ac_clean_files=$ac_clean_files_save
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3636 $as_echo_n "checking for suffix of object files... " >&6; }
3637 if ${ac_cv_objext+:} false; then :
3638 $as_echo_n "(cached) " >&6
3640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641 /* end confdefs.h. */
3651 rm -f conftest.o conftest.obj
3652 if { { ac_try="$ac_compile"
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3658 $as_echo "$ac_try_echo"; } >&5
3659 (eval "$ac_compile") 2>&5
3661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662 test $ac_status = 0; }; then :
3663 for ac_file in conftest.o conftest.obj conftest.*; do
3664 test -f "$ac_file" || continue;
3666 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3667 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3672 $as_echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3677 as_fn_error $? "cannot compute suffix of object files: cannot compile
3678 See \`config.log' for more details" "$LINENO" 5; }
3680 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3683 $as_echo "$ac_cv_objext" >&6; }
3684 OBJEXT=$ac_cv_objext
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3687 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3688 if ${ac_cv_c_compiler_gnu+:} false; then :
3689 $as_echo_n "(cached) " >&6
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h. */
3705 if ac_fn_c_try_compile "$LINENO"; then :
3710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3711 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3715 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3716 if test $ac_compiler_gnu = yes; then
3721 ac_test_CFLAGS=${CFLAGS+set}
3722 ac_save_CFLAGS=$CFLAGS
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3724 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3725 if ${ac_cv_prog_cc_g+:} false; then :
3726 $as_echo_n "(cached) " >&6
3728 ac_save_c_werror_flag=$ac_c_werror_flag
3729 ac_c_werror_flag=yes
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3743 if ac_fn_c_try_compile "$LINENO"; then :
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3758 if ac_fn_c_try_compile "$LINENO"; then :
3761 ac_c_werror_flag=$ac_save_c_werror_flag
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3774 if ac_fn_c_try_compile "$LINENO"; then :
3777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3782 ac_c_werror_flag=$ac_save_c_werror_flag
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3785 $as_echo "$ac_cv_prog_cc_g" >&6; }
3786 if test "$ac_test_CFLAGS" = set; then
3787 CFLAGS=$ac_save_CFLAGS
3788 elif test $ac_cv_prog_cc_g = yes; then
3789 if test "$GCC" = yes; then
3795 if test "$GCC" = yes; then
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3802 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3803 if ${ac_cv_prog_cc_c89+:} false; then :
3804 $as_echo_n "(cached) " >&6
3806 ac_cv_prog_cc_c89=no
3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809 /* end confdefs.h. */
3813 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3814 struct buf { int x; };
3815 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3816 static char *e (p, i)
3822 static char *f (char * (*g) (char **, int), char **p, ...)
3827 s = g (p, va_arg (v,int));
3832 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3833 function prototypes and stuff, but not '\xHH' hex character constants.
3834 These don't provoke an error unfortunately, instead are silently treated
3835 as 'x'. The following induces an error, until -std is added to get
3836 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3837 array size at least. It's necessary to write '\x00'==0 to get something
3838 that's true only with -std. */
3839 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3841 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3842 inside strings and character constants. */
3844 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3846 int test (int i, double x);
3847 struct s1 {int (*f) (int a);};
3848 struct s2 {int (*f) (double a);};
3849 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3855 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3860 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3861 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3863 CC="$ac_save_CC $ac_arg"
3864 if ac_fn_c_try_compile "$LINENO"; then :
3865 ac_cv_prog_cc_c89=$ac_arg
3867 rm -f core conftest.err conftest.$ac_objext
3868 test "x$ac_cv_prog_cc_c89" != "xno" && break
3870 rm -f conftest.$ac_ext
3875 case "x$ac_cv_prog_cc_c89" in
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3878 $as_echo "none needed" >&6; } ;;
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3881 $as_echo "unsupported" >&6; } ;;
3883 CC="$CC $ac_cv_prog_cc_c89"
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3885 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3887 if test "x$ac_cv_prog_cc_c89" != xno; then :
3892 ac_cpp='$CPP $CPPFLAGS'
3893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3898 ac_cpp='$CPP $CPPFLAGS'
3899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3903 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3904 if ${am_cv_prog_cc_c_o+:} false; then :
3905 $as_echo_n "(cached) " >&6
3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h. */
3918 # Make sure it works both with $CC and with simple cc.
3919 # Following AC_PROG_CC_C_O, we do the test twice because some
3920 # compilers refuse to overwrite an existing .o file with -o,
3921 # though they will create one.
3922 am_cv_prog_cc_c_o=yes
3924 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3925 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); } \
3929 && test -f conftest2.$ac_objext; then
3932 am_cv_prog_cc_c_o=no
3936 rm -f core conftest*
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3940 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3941 if test "$am_cv_prog_cc_c_o" != yes; then
3942 # Losing compiler, so override with the script.
3943 # FIXME: It is wrong to rewrite CC.
3944 # But if we don't then we get into trouble of one sort or another.
3945 # A longer-term fix would be to have automake use am__CC in this case,
3946 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3947 CC="$am_aux_dir/compile $CC"
3950 ac_cpp='$CPP $CPPFLAGS'
3951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3956 depcc="$CC" am_compiler_list=
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3959 $as_echo_n "checking dependency style of $depcc... " >&6; }
3960 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3961 $as_echo_n "(cached) " >&6
3963 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3964 # We make a subdir and do the tests there. Otherwise we can end up
3965 # making bogus files that we don't know about and never remove. For
3966 # instance it was reported that on HP-UX the gcc test will end up
3967 # making a dummy file named 'D' -- because '-MD' means "put the output
3971 # Copy depcomp to subdir because otherwise we won't find it if we're
3972 # using a relative directory.
3973 cp "$am_depcomp" conftest.dir
3975 # We will build objects and dependencies in a subdirectory because
3976 # it helps to detect inapplicable dependency modes. For instance
3977 # both Tru64's cc and ICC support -MD to output dependencies as a
3978 # side effect of compilation, but ICC will put the dependencies in
3979 # the current directory while Tru64 will put them in the object
3983 am_cv_CC_dependencies_compiler_type=none
3984 if test "$am_compiler_list" = ""; then
3985 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3988 case " $depcc " in #(
3989 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3992 for depmode in $am_compiler_list; do
3993 # Setup a source with many dependencies, because some compilers
3994 # like to wrap large dependency lists on column 80 (with \), and
3995 # we should not choose a depcomp mode which is confused by this.
3997 # We need to recreate these files for each test, as the compiler may
3998 # overwrite some of them when testing with obscure command lines.
3999 # This happens at least with the AIX C compiler.
4001 for i in 1 2 3 4 5 6; do
4002 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4003 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4004 # Solaris 10 /bin/sh.
4005 echo '/* dummy */' > sub/conftst$i.h
4007 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4009 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4010 # mode. It turns out that the SunPro C++ compiler does not properly
4011 # handle '-M -o', and we need to detect this. Also, some Intel
4012 # versions had trouble with output in subdirs.
4013 am__obj=sub/conftest.${OBJEXT-o}
4014 am__minus_obj="-o $am__obj"
4017 # This depmode causes a compiler race in universal mode.
4018 test "$am__universal" = false || continue
4021 # After this tag, mechanisms are not by side-effect, so they'll
4022 # only be used when explicitly requested.
4023 if test "x$enable_dependency_tracking" = xyes; then
4029 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4030 # This compiler won't grok '-c -o', but also, the minuso test has
4031 # not run yet. These depmodes are late enough in the game, and
4032 # so weak that their functioning should not be impacted.
4033 am__obj=conftest.${OBJEXT-o}
4038 if depmode=$depmode \
4039 source=sub/conftest.c object=$am__obj \
4040 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4041 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4042 >/dev/null 2>conftest.err &&
4043 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4044 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4045 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4046 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4047 # icc doesn't choke on unknown options, it will just issue warnings
4048 # or remarks (even with -Werror). So we grep stderr for any message
4049 # that says an option was ignored or not supported.
4050 # When given -MP, icc 7.0 and 7.1 complain thusly:
4051 # icc: Command line warning: ignoring option '-M'; no argument required
4052 # The diagnosis changed in icc 8.0:
4053 # icc: Command line remark: option '-MP' not supported
4054 if (grep 'ignoring option' conftest.err ||
4055 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4056 am_cv_CC_dependencies_compiler_type=$depmode
4065 am_cv_CC_dependencies_compiler_type=none
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4070 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4071 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4074 test "x$enable_dependency_tracking" != xno \
4075 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4077 am__fastdepCC_FALSE='#'
4079 am__fastdepCC_TRUE='#'
4080 am__fastdepCC_FALSE=
4085 # Check whether --enable-glibtest was given.
4086 if test "${enable_glibtest+set}" = set; then :
4087 enableval=$enable_glibtest;
4093 pkg_config_args=glib-2.0
4098 pkg_config_args="$pkg_config_args gmodule-2.0"
4101 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
4104 pkg_config_args="$pkg_config_args gobject-2.0"
4107 pkg_config_args="$pkg_config_args gthread-2.0"
4110 pkg_config_args="$pkg_config_args $module-2.0"
4122 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4123 if test -n "$ac_tool_prefix"; then
4124 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4125 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4127 $as_echo_n "checking for $ac_word... " >&6; }
4128 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4129 $as_echo_n "(cached) " >&6
4133 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 test -z "$as_dir" && as_dir=.
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4143 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4154 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4155 if test -n "$PKG_CONFIG"; then
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4157 $as_echo "$PKG_CONFIG" >&6; }
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 $as_echo "no" >&6; }
4165 if test -z "$ac_cv_path_PKG_CONFIG"; then
4166 ac_pt_PKG_CONFIG=$PKG_CONFIG
4167 # Extract the first word of "pkg-config", so it can be a program name with args.
4168 set dummy pkg-config; ac_word=$2
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 $as_echo_n "checking for $ac_word... " >&6; }
4171 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4172 $as_echo_n "(cached) " >&6
4174 case $ac_pt_PKG_CONFIG in
4176 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 test -z "$as_dir" && as_dir=.
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4186 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4197 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4198 if test -n "$ac_pt_PKG_CONFIG"; then
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4200 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 $as_echo "no" >&6; }
4206 if test "x$ac_pt_PKG_CONFIG" = x; then
4209 case $cross_compiling:$ac_tool_warned in
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4213 ac_tool_warned=yes ;;
4215 PKG_CONFIG=$ac_pt_PKG_CONFIG
4218 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4222 if test -n "$PKG_CONFIG"; then
4223 _pkg_min_version=0.16
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4225 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4226 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4228 $as_echo "yes" >&6; }
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4231 $as_echo "no" >&6; }
4238 if test "x$PKG_CONFIG" = x ; then
4243 min_glib_version=2.0.0
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
4245 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
4247 if test x$PKG_CONFIG != xno ; then
4248 ## don't try to run the test against uninstalled libtool libs
4249 if $PKG_CONFIG --uninstalled $pkg_config_args; then
4250 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
4254 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
4261 if test x"$no_glib" = x ; then
4262 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
4263 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
4264 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
4265 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
4267 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
4268 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
4269 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
4270 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4271 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
4272 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4273 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
4274 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4275 if test "x$enable_glibtest" = "xyes" ; then
4276 ac_save_CFLAGS="$CFLAGS"
4277 ac_save_LIBS="$LIBS"
4278 CFLAGS="$CFLAGS $GLIB_CFLAGS"
4279 LIBS="$GLIB_LIBS $LIBS"
4281 if test "$cross_compiling" = yes; then :
4282 echo $ac_n "cross compiling; assumed OK... $ac_c"
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4294 unsigned int major, minor, micro;
4296 fclose (fopen ("conf.glibtest", "w"));
4298 if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, µ) != 3) {
4299 printf("%s, bad version string\n", "$min_glib_version");
4303 if ((glib_major_version != $glib_config_major_version) ||
4304 (glib_minor_version != $glib_config_minor_version) ||
4305 (glib_micro_version != $glib_config_micro_version))
4307 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
4308 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
4309 glib_major_version, glib_minor_version, glib_micro_version);
4310 printf ("*** was found! If pkg-config was correct, then it is best\n");
4311 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
4312 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
4313 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
4314 printf("*** required on your system.\n");
4315 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
4316 printf("*** to point to the correct configuration files\n");
4318 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
4319 (glib_minor_version != GLIB_MINOR_VERSION) ||
4320 (glib_micro_version != GLIB_MICRO_VERSION))
4322 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
4323 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
4324 printf("*** library (version %d.%d.%d)\n",
4325 glib_major_version, glib_minor_version, glib_micro_version);
4329 if ((glib_major_version > major) ||
4330 ((glib_major_version == major) && (glib_minor_version > minor)) ||
4331 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
4337 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
4338 glib_major_version, glib_minor_version, glib_micro_version);
4339 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
4340 major, minor, micro);
4341 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
4343 printf("*** If you have already installed a sufficiently new version, this error\n");
4344 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
4345 printf("*** being found. The easiest way to fix this is to remove the old version\n");
4346 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
4347 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
4348 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
4349 printf("*** so that the correct libraries are found at run-time))\n");
4356 if ac_fn_c_try_run "$LINENO"; then :
4361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4362 conftest.$ac_objext conftest.beam conftest.$ac_ext
4365 CFLAGS="$ac_save_CFLAGS"
4366 LIBS="$ac_save_LIBS"
4369 if test "x$no_glib" = x ; then
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
4371 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4375 $as_echo "no" >&6; }
4376 if test "$PKG_CONFIG" = "no" ; then
4377 echo "*** A new enough version of pkg-config was not found."
4378 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
4380 if test -f conf.glibtest ; then
4383 echo "*** Could not run GLIB test program, checking why..."
4384 ac_save_CFLAGS="$CFLAGS"
4385 ac_save_LIBS="$LIBS"
4386 CFLAGS="$CFLAGS $GLIB_CFLAGS"
4387 LIBS="$LIBS $GLIB_LIBS"
4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389 /* end confdefs.h. */
4397 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
4402 if ac_fn_c_try_link "$LINENO"; then :
4403 echo "*** The test program compiled, but did not run. This usually means"
4404 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
4405 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
4406 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
4407 echo "*** to the installed location Also, make sure you have run ldconfig if that"
4408 echo "*** is required on your system"
4410 echo "*** If you have an old version installed, it is best to remove it, although"
4411 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
4413 echo "*** The test program failed to compile or link. See the file config.log for the"
4414 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
4416 rm -f core conftest.err conftest.$ac_objext \
4417 conftest$ac_exeext conftest.$ac_ext
4418 CFLAGS="$ac_save_CFLAGS"
4419 LIBS="$ac_save_LIBS"
4427 GLIB_COMPILE_RESOURCES=""
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4444 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4449 macro_version='2.4.6'
4450 macro_revision='2.4.6'
4464 ltmain=$ac_aux_dir/ltmain.sh
4466 # Make sure we can run config.sub.
4467 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4468 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4471 $as_echo_n "checking build system type... " >&6; }
4472 if ${ac_cv_build+:} false; then :
4473 $as_echo_n "(cached) " >&6
4475 ac_build_alias=$build_alias
4476 test "x$ac_build_alias" = x &&
4477 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4478 test "x$ac_build_alias" = x &&
4479 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4480 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4481 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4485 $as_echo "$ac_cv_build" >&6; }
4486 case $ac_cv_build in
4488 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4491 ac_save_IFS=$IFS; IFS='-'
4497 # Remember, the first character of IFS is used to create $*,
4498 # except with old shells:
4501 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4505 $as_echo_n "checking host system type... " >&6; }
4506 if ${ac_cv_host+:} false; then :
4507 $as_echo_n "(cached) " >&6
4509 if test "x$host_alias" = x; then
4510 ac_cv_host=$ac_cv_build
4512 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4513 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4518 $as_echo "$ac_cv_host" >&6; }
4521 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4524 ac_save_IFS=$IFS; IFS='-'
4530 # Remember, the first character of IFS is used to create $*,
4531 # except with old shells:
4534 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4537 # Backslashify metacharacters that are still active within
4538 # double-quoted strings.
4539 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4541 # Same as above, but do not quote variable references.
4542 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4544 # Sed substitution to delay expansion of an escaped shell variable in a
4545 # double_quote_subst'ed string.
4546 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4548 # Sed substitution to delay expansion of an escaped single quote.
4549 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4551 # Sed substitution to avoid accidental globbing in evaled expressions
4552 no_glob_subst='s/\*/\\\*/g'
4554 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4555 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4556 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4559 $as_echo_n "checking how to print strings... " >&6; }
4560 # Test print first, because it will be a builtin if present.
4561 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4562 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4564 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4567 # Use this function as a fallback that always works.
4568 func_fallback_echo ()
4570 eval 'cat <<_LTECHO_EOF
4574 ECHO='func_fallback_echo'
4577 # func_echo_all arg...
4578 # Invoke $ECHO with all args, space-separated.
4585 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4586 $as_echo "printf" >&6; } ;;
4587 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4588 $as_echo "print -r" >&6; } ;;
4589 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4590 $as_echo "cat" >&6; } ;;
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4607 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4608 if ${ac_cv_path_SED+:} false; then :
4609 $as_echo_n "(cached) " >&6
4611 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4612 for ac_i in 1 2 3 4 5 6 7; do
4613 ac_script="$ac_script$as_nl$ac_script"
4615 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4616 { ac_script=; unset ac_script;}
4617 if test -z "$SED"; then
4618 ac_path_SED_found=false
4619 # Loop through the user's path and test for each of PROGNAME-LIST
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 test -z "$as_dir" && as_dir=.
4625 for ac_prog in sed gsed; do
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4628 as_fn_executable_p "$ac_path_SED" || continue
4629 # Check for GNU ac_path_SED and select it if it is found.
4630 # Check for GNU $ac_path_SED
4631 case `"$ac_path_SED" --version 2>&1` in
4633 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4636 $as_echo_n 0123456789 >"conftest.in"
4639 cat "conftest.in" "conftest.in" >"conftest.tmp"
4640 mv "conftest.tmp" "conftest.in"
4641 cp "conftest.in" "conftest.nl"
4642 $as_echo '' >> "conftest.nl"
4643 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4644 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4645 as_fn_arith $ac_count + 1 && ac_count=$as_val
4646 if test $ac_count -gt ${ac_path_SED_max-0}; then
4647 # Best one so far, save it but keep looking for a better one
4648 ac_cv_path_SED="$ac_path_SED"
4649 ac_path_SED_max=$ac_count
4651 # 10*(2^10) chars as input seems more than enough
4652 test $ac_count -gt 10 && break
4654 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4657 $ac_path_SED_found && break 3
4662 if test -z "$ac_cv_path_SED"; then
4663 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4671 $as_echo "$ac_cv_path_SED" >&6; }
4672 SED="$ac_cv_path_SED"
4675 test -z "$SED" && SED=sed
4676 Xsed="$SED -e 1s/^X//"
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4689 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4690 if ${ac_cv_path_GREP+:} false; then :
4691 $as_echo_n "(cached) " >&6
4693 if test -z "$GREP"; then
4694 ac_path_GREP_found=false
4695 # Loop through the user's path and test for each of PROGNAME-LIST
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4700 test -z "$as_dir" && as_dir=.
4701 for ac_prog in grep ggrep; do
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4704 as_fn_executable_p "$ac_path_GREP" || continue
4705 # Check for GNU ac_path_GREP and select it if it is found.
4706 # Check for GNU $ac_path_GREP
4707 case `"$ac_path_GREP" --version 2>&1` in
4709 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4712 $as_echo_n 0123456789 >"conftest.in"
4715 cat "conftest.in" "conftest.in" >"conftest.tmp"
4716 mv "conftest.tmp" "conftest.in"
4717 cp "conftest.in" "conftest.nl"
4718 $as_echo 'GREP' >> "conftest.nl"
4719 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4720 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4721 as_fn_arith $ac_count + 1 && ac_count=$as_val
4722 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4723 # Best one so far, save it but keep looking for a better one
4724 ac_cv_path_GREP="$ac_path_GREP"
4725 ac_path_GREP_max=$ac_count
4727 # 10*(2^10) chars as input seems more than enough
4728 test $ac_count -gt 10 && break
4730 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4733 $ac_path_GREP_found && break 3
4738 if test -z "$ac_cv_path_GREP"; then
4739 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4742 ac_cv_path_GREP=$GREP
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4747 $as_echo "$ac_cv_path_GREP" >&6; }
4748 GREP="$ac_cv_path_GREP"
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4752 $as_echo_n "checking for egrep... " >&6; }
4753 if ${ac_cv_path_EGREP+:} false; then :
4754 $as_echo_n "(cached) " >&6
4756 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4757 then ac_cv_path_EGREP="$GREP -E"
4759 if test -z "$EGREP"; then
4760 ac_path_EGREP_found=false
4761 # Loop through the user's path and test for each of PROGNAME-LIST
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4766 test -z "$as_dir" && as_dir=.
4767 for ac_prog in egrep; do
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4770 as_fn_executable_p "$ac_path_EGREP" || continue
4771 # Check for GNU ac_path_EGREP and select it if it is found.
4772 # Check for GNU $ac_path_EGREP
4773 case `"$ac_path_EGREP" --version 2>&1` in
4775 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4778 $as_echo_n 0123456789 >"conftest.in"
4781 cat "conftest.in" "conftest.in" >"conftest.tmp"
4782 mv "conftest.tmp" "conftest.in"
4783 cp "conftest.in" "conftest.nl"
4784 $as_echo 'EGREP' >> "conftest.nl"
4785 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4786 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4787 as_fn_arith $ac_count + 1 && ac_count=$as_val
4788 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4789 # Best one so far, save it but keep looking for a better one
4790 ac_cv_path_EGREP="$ac_path_EGREP"
4791 ac_path_EGREP_max=$ac_count
4793 # 10*(2^10) chars as input seems more than enough
4794 test $ac_count -gt 10 && break
4796 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4799 $ac_path_EGREP_found && break 3
4804 if test -z "$ac_cv_path_EGREP"; then
4805 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4808 ac_cv_path_EGREP=$EGREP
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4814 $as_echo "$ac_cv_path_EGREP" >&6; }
4815 EGREP="$ac_cv_path_EGREP"
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4819 $as_echo_n "checking for fgrep... " >&6; }
4820 if ${ac_cv_path_FGREP+:} false; then :
4821 $as_echo_n "(cached) " >&6
4823 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4824 then ac_cv_path_FGREP="$GREP -F"
4826 if test -z "$FGREP"; then
4827 ac_path_FGREP_found=false
4828 # Loop through the user's path and test for each of PROGNAME-LIST
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4833 test -z "$as_dir" && as_dir=.
4834 for ac_prog in fgrep; do
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4837 as_fn_executable_p "$ac_path_FGREP" || continue
4838 # Check for GNU ac_path_FGREP and select it if it is found.
4839 # Check for GNU $ac_path_FGREP
4840 case `"$ac_path_FGREP" --version 2>&1` in
4842 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4845 $as_echo_n 0123456789 >"conftest.in"
4848 cat "conftest.in" "conftest.in" >"conftest.tmp"
4849 mv "conftest.tmp" "conftest.in"
4850 cp "conftest.in" "conftest.nl"
4851 $as_echo 'FGREP' >> "conftest.nl"
4852 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4853 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4854 as_fn_arith $ac_count + 1 && ac_count=$as_val
4855 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4856 # Best one so far, save it but keep looking for a better one
4857 ac_cv_path_FGREP="$ac_path_FGREP"
4858 ac_path_FGREP_max=$ac_count
4860 # 10*(2^10) chars as input seems more than enough
4861 test $ac_count -gt 10 && break
4863 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4866 $ac_path_FGREP_found && break 3
4871 if test -z "$ac_cv_path_FGREP"; then
4872 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4875 ac_cv_path_FGREP=$FGREP
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4881 $as_echo "$ac_cv_path_FGREP" >&6; }
4882 FGREP="$ac_cv_path_FGREP"
4885 test -z "$GREP" && GREP=grep
4905 # Check whether --with-gnu-ld was given.
4906 if test "${with_gnu_ld+set}" = set; then :
4907 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4913 if test yes = "$GCC"; then
4914 # Check if gcc -print-prog-name=ld gives a path.
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4916 $as_echo_n "checking for ld used by $CC... " >&6; }
4919 # gcc leaves a trailing carriage return, which upsets mingw
4920 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4922 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4925 # Accept absolute paths.
4927 re_direlt='/[^/][^/]*/\.\./'
4928 # Canonicalize the pathname of ld
4929 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4930 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4931 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4933 test -z "$LD" && LD=$ac_prog
4936 # If it fails, then pretend we aren't using GCC.
4940 # If it is relative, then search for the first ld in PATH.
4944 elif test yes = "$with_gnu_ld"; then
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4946 $as_echo_n "checking for GNU ld... " >&6; }
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4949 $as_echo_n "checking for non-GNU ld... " >&6; }
4951 if ${lt_cv_path_LD+:} false; then :
4952 $as_echo_n "(cached) " >&6
4954 if test -z "$LD"; then
4955 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4956 for ac_dir in $PATH; do
4958 test -z "$ac_dir" && ac_dir=.
4959 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4960 lt_cv_path_LD=$ac_dir/$ac_prog
4961 # Check to see if the program is GNU ld. I'd rather use --version,
4962 # but apparently some variants of GNU ld only accept -v.
4963 # Break only if it was the GNU/non-GNU ld that we prefer.
4964 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4965 *GNU* | *'with BFD'*)
4966 test no != "$with_gnu_ld" && break
4969 test yes != "$with_gnu_ld" && break
4976 lt_cv_path_LD=$LD # Let the user override the test with a path.
4981 if test -n "$LD"; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4983 $as_echo "$LD" >&6; }
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986 $as_echo "no" >&6; }
4988 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4990 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4991 if ${lt_cv_prog_gnu_ld+:} false; then :
4992 $as_echo_n "(cached) " >&6
4994 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4995 case `$LD -v 2>&1 </dev/null` in
4996 *GNU* | *'with BFD'*)
4997 lt_cv_prog_gnu_ld=yes
5000 lt_cv_prog_gnu_ld=no
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5005 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5006 with_gnu_ld=$lt_cv_prog_gnu_ld
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5017 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5018 if ${lt_cv_path_NM+:} false; then :
5019 $as_echo_n "(cached) " >&6
5021 if test -n "$NM"; then
5022 # Let the user override the test.
5025 lt_nm_to_check=${ac_tool_prefix}nm
5026 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5027 lt_nm_to_check="$lt_nm_to_check nm"
5029 for lt_tmp_nm in $lt_nm_to_check; do
5030 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5031 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5033 test -z "$ac_dir" && ac_dir=.
5034 tmp_nm=$ac_dir/$lt_tmp_nm
5035 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5036 # Check to see if the nm accepts a BSD-compat flag.
5037 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5038 # nm: unknown option "B" ignored
5039 # Tru64's nm complains that /dev/null is an invalid object file
5040 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5042 mingw*) lt_bad_file=conftest.nm/nofile ;;
5043 *) lt_bad_file=/dev/null ;;
5045 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5046 *$lt_bad_file* | *'Invalid file or object type'*)
5047 lt_cv_path_NM="$tmp_nm -B"
5051 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5053 lt_cv_path_NM="$tmp_nm -p"
5057 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5058 continue # so that we can try to find one that supports BSD flags
5067 : ${lt_cv_path_NM=no}
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5071 $as_echo "$lt_cv_path_NM" >&6; }
5072 if test no != "$lt_cv_path_NM"; then
5075 # Didn't find any BSD compatible name lister, look for dumpbin.
5076 if test -n "$DUMPBIN"; then :
5077 # Let the user override the test.
5079 if test -n "$ac_tool_prefix"; then
5080 for ac_prog in dumpbin "link -dump"
5082 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5083 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5085 $as_echo_n "checking for $ac_word... " >&6; }
5086 if ${ac_cv_prog_DUMPBIN+:} false; then :
5087 $as_echo_n "(cached) " >&6
5089 if test -n "$DUMPBIN"; then
5090 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 test -z "$as_dir" && as_dir=.
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5099 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5109 DUMPBIN=$ac_cv_prog_DUMPBIN
5110 if test -n "$DUMPBIN"; then
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5112 $as_echo "$DUMPBIN" >&6; }
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115 $as_echo "no" >&6; }
5119 test -n "$DUMPBIN" && break
5122 if test -z "$DUMPBIN"; then
5123 ac_ct_DUMPBIN=$DUMPBIN
5124 for ac_prog in dumpbin "link -dump"
5126 # Extract the first word of "$ac_prog", so it can be a program name with args.
5127 set dummy $ac_prog; ac_word=$2
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5129 $as_echo_n "checking for $ac_word... " >&6; }
5130 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5131 $as_echo_n "(cached) " >&6
5133 if test -n "$ac_ct_DUMPBIN"; then
5134 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 test -z "$as_dir" && as_dir=.
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5143 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5154 if test -n "$ac_ct_DUMPBIN"; then
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5156 $as_echo "$ac_ct_DUMPBIN" >&6; }
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5163 test -n "$ac_ct_DUMPBIN" && break
5166 if test "x$ac_ct_DUMPBIN" = x; then
5169 case $cross_compiling:$ac_tool_warned in
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5173 ac_tool_warned=yes ;;
5175 DUMPBIN=$ac_ct_DUMPBIN
5179 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5181 DUMPBIN="$DUMPBIN -symbols -headers"
5189 if test : != "$DUMPBIN"; then
5193 test -z "$NM" && NM=nm
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5201 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5202 if ${lt_cv_nm_interface+:} false; then :
5203 $as_echo_n "(cached) " >&6
5205 lt_cv_nm_interface="BSD nm"
5206 echo "int some_variable = 0;" > conftest.$ac_ext
5207 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5208 (eval "$ac_compile" 2>conftest.err)
5209 cat conftest.err >&5
5210 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5211 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5212 cat conftest.err >&5
5213 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5214 cat conftest.out >&5
5215 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5216 lt_cv_nm_interface="MS dumpbin"
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5221 $as_echo "$lt_cv_nm_interface" >&6; }
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5224 $as_echo_n "checking whether ln -s works... " >&6; }
5226 if test "$LN_S" = "ln -s"; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5228 $as_echo "yes" >&6; }
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5231 $as_echo "no, using $LN_S" >&6; }
5234 # find the maximum length of command line arguments
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5236 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5237 if ${lt_cv_sys_max_cmd_len+:} false; then :
5238 $as_echo_n "(cached) " >&6
5245 # On DJGPP, this test can blow up pretty badly due to problems in libc
5246 # (any single argument exceeding 2000 bytes causes a buffer overrun
5247 # during glob expansion). Even if it were fixed, the result of this
5248 # check would be larger than it should be.
5249 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5253 # Under GNU Hurd, this test is not required because there is
5254 # no limit to the length of command line arguments.
5255 # Libtool will interpret -1 as no limit whatsoever
5256 lt_cv_sys_max_cmd_len=-1;
5259 cygwin* | mingw* | cegcc*)
5260 # On Win9x/ME, this test blows up -- it succeeds, but takes
5261 # about 5 minutes as the teststring grows exponentially.
5262 # Worse, since 9x/ME are not pre-emptively multitasking,
5263 # you end up with a "frozen" computer, even though with patience
5264 # the test eventually succeeds (with a max line length of 256k).
5265 # Instead, let's just punt: use the minimum linelength reported by
5266 # all of the supported platforms: 8192 (on NT/2K/XP).
5267 lt_cv_sys_max_cmd_len=8192;
5271 # On MiNT this can take a long time and run out of memory.
5272 lt_cv_sys_max_cmd_len=8192;
5276 # On AmigaOS with pdksh, this test takes hours, literally.
5277 # So we just punt and use a minimum line length of 8192.
5278 lt_cv_sys_max_cmd_len=8192;
5281 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5282 # This has been around since 386BSD, at least. Likely further.
5283 if test -x /sbin/sysctl; then
5284 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5285 elif test -x /usr/sbin/sysctl; then
5286 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5288 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5290 # And add a safety zone
5291 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5292 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5296 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5297 lt_cv_sys_max_cmd_len=196608
5301 # The test takes a long time on OS/2.
5302 lt_cv_sys_max_cmd_len=8192
5306 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5307 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5308 # nice to cause kernel panics so lets avoid the loop below.
5309 # First set a reasonable default.
5310 lt_cv_sys_max_cmd_len=16384
5312 if test -x /sbin/sysconfig; then
5313 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5314 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5319 lt_cv_sys_max_cmd_len=102400
5321 sysv5* | sco5v6* | sysv4.2uw2*)
5322 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5323 if test -n "$kargmax"; then
5324 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5326 lt_cv_sys_max_cmd_len=32768
5330 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5331 if test -n "$lt_cv_sys_max_cmd_len" && \
5332 test undefined != "$lt_cv_sys_max_cmd_len"; then
5333 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5334 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5336 # Make teststring a little bigger before we do anything with it.
5337 # a 1K string should be a reasonable start.
5338 for i in 1 2 3 4 5 6 7 8; do
5339 teststring=$teststring$teststring
5341 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5342 # If test is not a shell built-in, we'll probably end up computing a
5343 # maximum length that is only half of the actual maximum length, but
5345 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5346 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5347 test 17 != "$i" # 1/2 MB should be enough
5350 teststring=$teststring$teststring
5352 # Only check the string length outside the loop.
5353 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5355 # Add a significant safety factor because C++ compilers can tack on
5356 # massive amounts of additional arguments before passing them to the
5357 # linker. It appears as though 1/2 is a usable value.
5358 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5365 if test -n "$lt_cv_sys_max_cmd_len"; then
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5367 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5370 $as_echo "none" >&6; }
5372 max_cmd_len=$lt_cv_sys_max_cmd_len
5383 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5393 # test EBCDIC or ASCII
5394 case `echo X|tr X '\101'` in
5395 A) # ASCII based system
5396 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5397 lt_SP2NL='tr \040 \012'
5398 lt_NL2SP='tr \015\012 \040\040'
5400 *) # EBCDIC based system
5401 lt_SP2NL='tr \100 \n'
5402 lt_NL2SP='tr \r\n \100\100'
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5415 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5416 if ${lt_cv_to_host_file_cmd+:} false; then :
5417 $as_echo_n "(cached) " >&6
5422 *-*-mingw* ) # actually msys
5423 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5426 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5428 * ) # otherwise, assume *nix
5429 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5435 *-*-mingw* ) # actually msys
5436 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5439 lt_cv_to_host_file_cmd=func_convert_file_noop
5441 * ) # otherwise, assume *nix
5442 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5446 * ) # unhandled hosts (and "normal" native builds)
5447 lt_cv_to_host_file_cmd=func_convert_file_noop
5453 to_host_file_cmd=$lt_cv_to_host_file_cmd
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5455 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5462 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5463 if ${lt_cv_to_tool_file_cmd+:} false; then :
5464 $as_echo_n "(cached) " >&6
5466 #assume ordinary cross tools, or native build.
5467 lt_cv_to_tool_file_cmd=func_convert_file_noop
5471 *-*-mingw* ) # actually msys
5472 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5480 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5482 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5489 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5490 if ${lt_cv_ld_reload_flag+:} false; then :
5491 $as_echo_n "(cached) " >&6
5493 lt_cv_ld_reload_flag='-r'
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5496 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5497 reload_flag=$lt_cv_ld_reload_flag
5498 case $reload_flag in
5500 *) reload_flag=" $reload_flag" ;;
5502 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5504 cygwin* | mingw* | pw32* | cegcc*)
5505 if test yes != "$GCC"; then
5510 if test yes = "$GCC"; then
5511 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5513 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5526 if test -n "$ac_tool_prefix"; then
5527 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5528 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5530 $as_echo_n "checking for $ac_word... " >&6; }
5531 if ${ac_cv_prog_OBJDUMP+:} false; then :
5532 $as_echo_n "(cached) " >&6
5534 if test -n "$OBJDUMP"; then
5535 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 test -z "$as_dir" && as_dir=.
5542 for ac_exec_ext in '' $ac_executable_extensions; do
5543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5544 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5554 OBJDUMP=$ac_cv_prog_OBJDUMP
5555 if test -n "$OBJDUMP"; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5557 $as_echo "$OBJDUMP" >&6; }
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 $as_echo "no" >&6; }
5565 if test -z "$ac_cv_prog_OBJDUMP"; then
5566 ac_ct_OBJDUMP=$OBJDUMP
5567 # Extract the first word of "objdump", so it can be a program name with args.
5568 set dummy objdump; ac_word=$2
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5570 $as_echo_n "checking for $ac_word... " >&6; }
5571 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5572 $as_echo_n "(cached) " >&6
5574 if test -n "$ac_ct_OBJDUMP"; then
5575 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5595 if test -n "$ac_ct_OBJDUMP"; then
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5597 $as_echo "$ac_ct_OBJDUMP" >&6; }
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 $as_echo "no" >&6; }
5603 if test "x$ac_ct_OBJDUMP" = x; then
5606 case $cross_compiling:$ac_tool_warned in
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5610 ac_tool_warned=yes ;;
5612 OBJDUMP=$ac_ct_OBJDUMP
5615 OBJDUMP="$ac_cv_prog_OBJDUMP"
5618 test -z "$OBJDUMP" && OBJDUMP=objdump
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5629 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5630 if ${lt_cv_deplibs_check_method+:} false; then :
5631 $as_echo_n "(cached) " >&6
5633 lt_cv_file_magic_cmd='$MAGIC_CMD'
5634 lt_cv_file_magic_test_file=
5635 lt_cv_deplibs_check_method='unknown'
5636 # Need to set the preceding variable on all platforms that support
5637 # interlibrary dependencies.
5638 # 'none' -- dependencies not supported.
5639 # 'unknown' -- same as none, but documents that we really don't know.
5640 # 'pass_all' -- all dependencies passed with no checks.
5641 # 'test_compile' -- check by making test program.
5642 # 'file_magic [[regex]]' -- check by looking for files in library path
5643 # that responds to the $file_magic_cmd with a given extended regex.
5644 # If you have 'file' or equivalent on your system and you're not sure
5645 # whether 'pass_all' will *always* work, you probably want this one.
5649 lt_cv_deplibs_check_method=pass_all
5653 lt_cv_deplibs_check_method=pass_all
5657 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5658 lt_cv_file_magic_cmd='/usr/bin/file -L'
5659 lt_cv_file_magic_test_file=/shlib/libc.so
5663 # func_win32_libid is a shell function defined in ltmain.sh
5664 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5665 lt_cv_file_magic_cmd='func_win32_libid'
5669 # Base MSYS/MinGW do not provide the 'file' command needed by
5670 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5671 # unless we find 'file', for example because we are cross-compiling.
5672 if ( file / ) >/dev/null 2>&1; then
5673 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5674 lt_cv_file_magic_cmd='func_win32_libid'
5676 # Keep this pattern in sync with the one in func_win32_libid.
5677 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5678 lt_cv_file_magic_cmd='$OBJDUMP -f'
5683 # use the weaker test based on 'objdump'. See mingw*.
5684 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5685 lt_cv_file_magic_cmd='$OBJDUMP -f'
5688 darwin* | rhapsody*)
5689 lt_cv_deplibs_check_method=pass_all
5692 freebsd* | dragonfly*)
5693 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5696 # Not sure whether the presence of OpenBSD here was a mistake.
5697 # Let's accept both of them until this is cleared up.
5698 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5699 lt_cv_file_magic_cmd=/usr/bin/file
5700 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5704 lt_cv_deplibs_check_method=pass_all
5709 lt_cv_deplibs_check_method=pass_all
5712 hpux10.20* | hpux11*)
5713 lt_cv_file_magic_cmd=/usr/bin/file
5716 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5717 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5720 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]'
5721 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5724 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5725 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5731 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5732 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5735 irix5* | irix6* | nonstopux*)
5737 *-32|*"-32 ") libmagic=32-bit;;
5738 *-n32|*"-n32 ") libmagic=N32;;
5739 *-64|*"-64 ") libmagic=64-bit;;
5740 *) libmagic=never-match;;
5742 lt_cv_deplibs_check_method=pass_all
5745 # This must be glibc/ELF.
5746 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5747 lt_cv_deplibs_check_method=pass_all
5751 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5752 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5754 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5759 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5760 lt_cv_file_magic_cmd=/usr/bin/file
5761 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5765 lt_cv_deplibs_check_method=pass_all
5769 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5770 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5772 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5776 osf3* | osf4* | osf5*)
5777 lt_cv_deplibs_check_method=pass_all
5781 lt_cv_deplibs_check_method=pass_all
5785 lt_cv_deplibs_check_method=pass_all
5788 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5789 lt_cv_deplibs_check_method=pass_all
5793 case $host_vendor in
5795 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]'
5796 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5799 lt_cv_deplibs_check_method=pass_all
5802 lt_cv_file_magic_cmd='/bin/file'
5803 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5806 lt_cv_file_magic_cmd='/bin/file'
5807 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5808 lt_cv_file_magic_test_file=/lib/libc.so
5811 lt_cv_deplibs_check_method=pass_all
5814 lt_cv_deplibs_check_method=pass_all
5820 lt_cv_deplibs_check_method=pass_all
5823 lt_cv_deplibs_check_method=pass_all
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5829 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5833 if test "$build" = "$host"; then
5836 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5839 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5845 file_magic_cmd=$lt_cv_file_magic_cmd
5846 deplibs_check_method=$lt_cv_deplibs_check_method
5847 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5870 if test -n "$ac_tool_prefix"; then
5871 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5872 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5874 $as_echo_n "checking for $ac_word... " >&6; }
5875 if ${ac_cv_prog_DLLTOOL+:} false; then :
5876 $as_echo_n "(cached) " >&6
5878 if test -n "$DLLTOOL"; then
5879 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5888 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5898 DLLTOOL=$ac_cv_prog_DLLTOOL
5899 if test -n "$DLLTOOL"; then
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5901 $as_echo "$DLLTOOL" >&6; }
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904 $as_echo "no" >&6; }
5909 if test -z "$ac_cv_prog_DLLTOOL"; then
5910 ac_ct_DLLTOOL=$DLLTOOL
5911 # Extract the first word of "dlltool", so it can be a program name with args.
5912 set dummy dlltool; ac_word=$2
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5914 $as_echo_n "checking for $ac_word... " >&6; }
5915 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5916 $as_echo_n "(cached) " >&6
5918 if test -n "$ac_ct_DLLTOOL"; then
5919 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 test -z "$as_dir" && as_dir=.
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5928 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5939 if test -n "$ac_ct_DLLTOOL"; then
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5941 $as_echo "$ac_ct_DLLTOOL" >&6; }
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944 $as_echo "no" >&6; }
5947 if test "x$ac_ct_DLLTOOL" = x; then
5950 case $cross_compiling:$ac_tool_warned in
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5954 ac_tool_warned=yes ;;
5956 DLLTOOL=$ac_ct_DLLTOOL
5959 DLLTOOL="$ac_cv_prog_DLLTOOL"
5962 test -z "$DLLTOOL" && DLLTOOL=dlltool
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5974 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5975 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5976 $as_echo_n "(cached) " >&6
5978 lt_cv_sharedlib_from_linklib_cmd='unknown'
5981 cygwin* | mingw* | pw32* | cegcc*)
5982 # two different shell functions defined in ltmain.sh;
5983 # decide which one to use based on capabilities of $DLLTOOL
5984 case `$DLLTOOL --help 2>&1` in
5985 *--identify-strict*)
5986 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5989 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5994 # fallback: assume linklib IS sharedlib
5995 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6001 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6002 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6003 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6011 if test -n "$ac_tool_prefix"; then
6014 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6015 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017 $as_echo_n "checking for $ac_word... " >&6; }
6018 if ${ac_cv_prog_AR+:} false; then :
6019 $as_echo_n "(cached) " >&6
6021 if test -n "$AR"; then
6022 ac_cv_prog_AR="$AR" # Let the user override the test.
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6031 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6042 if test -n "$AR"; then
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6044 $as_echo "$AR" >&6; }
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047 $as_echo "no" >&6; }
6051 test -n "$AR" && break
6054 if test -z "$AR"; then
6058 # Extract the first word of "$ac_prog", so it can be a program name with args.
6059 set dummy $ac_prog; ac_word=$2
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6061 $as_echo_n "checking for $ac_word... " >&6; }
6062 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6063 $as_echo_n "(cached) " >&6
6065 if test -n "$ac_ct_AR"; then
6066 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 test -z "$as_dir" && as_dir=.
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6075 ac_cv_prog_ac_ct_AR="$ac_prog"
6076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6085 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6086 if test -n "$ac_ct_AR"; then
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6088 $as_echo "$ac_ct_AR" >&6; }
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091 $as_echo "no" >&6; }
6095 test -n "$ac_ct_AR" && break
6098 if test "x$ac_ct_AR" = x; then
6101 case $cross_compiling:$ac_tool_warned in
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6105 ac_tool_warned=yes ;;
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6125 $as_echo_n "checking for archiver @FILE support... " >&6; }
6126 if ${lt_cv_ar_at_file+:} false; then :
6127 $as_echo_n "(cached) " >&6
6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6141 if ac_fn_c_try_compile "$LINENO"; then :
6142 echo conftest.$ac_objext > conftest.lst
6143 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6145 (eval $lt_ar_try) 2>&5
6147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6148 test $ac_status = 0; }
6149 if test 0 -eq "$ac_status"; then
6150 # Ensure the archiver fails upon bogus file names.
6151 rm -f conftest.$ac_objext libconftest.a
6152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6153 (eval $lt_ar_try) 2>&5
6155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6156 test $ac_status = 0; }
6157 if test 0 -ne "$ac_status"; then
6161 rm -f conftest.* libconftest.a
6164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6168 $as_echo "$lt_cv_ar_at_file" >&6; }
6170 if test no = "$lt_cv_ar_at_file"; then
6173 archiver_list_spec=$lt_cv_ar_at_file
6182 if test -n "$ac_tool_prefix"; then
6183 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6184 set dummy ${ac_tool_prefix}strip; ac_word=$2
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6186 $as_echo_n "checking for $ac_word... " >&6; }
6187 if ${ac_cv_prog_STRIP+:} false; then :
6188 $as_echo_n "(cached) " >&6
6190 if test -n "$STRIP"; then
6191 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
6199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6200 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6210 STRIP=$ac_cv_prog_STRIP
6211 if test -n "$STRIP"; then
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6213 $as_echo "$STRIP" >&6; }
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216 $as_echo "no" >&6; }
6221 if test -z "$ac_cv_prog_STRIP"; then
6223 # Extract the first word of "strip", so it can be a program name with args.
6224 set dummy strip; ac_word=$2
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226 $as_echo_n "checking for $ac_word... " >&6; }
6227 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6228 $as_echo_n "(cached) " >&6
6230 if test -n "$ac_ct_STRIP"; then
6231 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 test -z "$as_dir" && as_dir=.
6238 for ac_exec_ext in '' $ac_executable_extensions; do
6239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6240 ac_cv_prog_ac_ct_STRIP="strip"
6241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6250 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6251 if test -n "$ac_ct_STRIP"; then
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6253 $as_echo "$ac_ct_STRIP" >&6; }
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256 $as_echo "no" >&6; }
6259 if test "x$ac_ct_STRIP" = x; then
6262 case $cross_compiling:$ac_tool_warned in
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6266 ac_tool_warned=yes ;;
6271 STRIP="$ac_cv_prog_STRIP"
6274 test -z "$STRIP" && STRIP=:
6281 if test -n "$ac_tool_prefix"; then
6282 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6283 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285 $as_echo_n "checking for $ac_word... " >&6; }
6286 if ${ac_cv_prog_RANLIB+:} false; then :
6287 $as_echo_n "(cached) " >&6
6289 if test -n "$RANLIB"; then
6290 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 test -z "$as_dir" && as_dir=.
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6299 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6309 RANLIB=$ac_cv_prog_RANLIB
6310 if test -n "$RANLIB"; then
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6312 $as_echo "$RANLIB" >&6; }
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315 $as_echo "no" >&6; }
6320 if test -z "$ac_cv_prog_RANLIB"; then
6321 ac_ct_RANLIB=$RANLIB
6322 # Extract the first word of "ranlib", so it can be a program name with args.
6323 set dummy ranlib; ac_word=$2
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325 $as_echo_n "checking for $ac_word... " >&6; }
6326 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6327 $as_echo_n "(cached) " >&6
6329 if test -n "$ac_ct_RANLIB"; then
6330 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 test -z "$as_dir" && as_dir=.
6337 for ac_exec_ext in '' $ac_executable_extensions; do
6338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6339 ac_cv_prog_ac_ct_RANLIB="ranlib"
6340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6349 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6350 if test -n "$ac_ct_RANLIB"; then
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6352 $as_echo "$ac_ct_RANLIB" >&6; }
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355 $as_echo "no" >&6; }
6358 if test "x$ac_ct_RANLIB" = x; then
6361 case $cross_compiling:$ac_tool_warned in
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6365 ac_tool_warned=yes ;;
6367 RANLIB=$ac_ct_RANLIB
6370 RANLIB="$ac_cv_prog_RANLIB"
6373 test -z "$RANLIB" && RANLIB=:
6380 # Determine commands to create old-style static archives.
6381 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6382 old_postinstall_cmds='chmod 644 $oldlib'
6383 old_postuninstall_cmds=
6385 if test -n "$RANLIB"; then
6388 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6391 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6394 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6399 lock_old_archive_extraction=yes ;;
6401 lock_old_archive_extraction=no ;;
6442 # If no C compiler was specified, use CC.
6445 # If no C compiler flags were specified, use CFLAGS.
6446 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6448 # Allow CC to be a program name with arguments.
6452 # Check for command to grab the raw symbol name followed by C symbol from nm.
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6454 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6455 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6456 $as_echo_n "(cached) " >&6
6459 # These are sane defaults that work on at least a few old systems.
6460 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6462 # Character class describing NM global symbol codes.
6463 symcode='[BCDEGRST]'
6465 # Regexp to match symbols that can be accessed directly from C.
6466 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6468 # Define system-specific variables.
6473 cygwin* | mingw* | pw32* | cegcc*)
6474 symcode='[ABCDGISTW]'
6477 if test ia64 = "$host_cpu"; then
6478 symcode='[ABCDEGRST]'
6482 symcode='[BCDEGRST]'
6485 symcode='[BCDEGQRST]'
6496 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6504 # If we're using GNU nm, then use its standard symbol codes.
6505 case `$NM -V 2>&1` in
6506 *GNU* | *'with BFD'*)
6507 symcode='[ABCDGIRSTW]' ;;
6510 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6511 # Gets list of data symbols to import.
6512 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6513 # Adjust the below global symbol transforms to fixup imported variables.
6514 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6515 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6516 lt_c_name_lib_hook="\
6517 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6518 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6520 # Disable hooks by default.
6521 lt_cv_sys_global_symbol_to_import=
6527 # Transform an extracted symbol line into a proper C declaration.
6528 # Some systems (esp. on ia64) link data and code symbols differently,
6529 # so use this general approach.
6530 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6532 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6533 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6535 # Transform an extracted symbol line into symbol name and symbol address
6536 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6538 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6539 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6541 # Transform an extracted symbol line into symbol name with lib prefix and
6543 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6544 $lt_c_name_lib_hook\
6545 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6546 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6547 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6549 # Handle CRLF in mingw tool chain
6553 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6557 # Try without a prefix underscore, then with it.
6558 for ac_symprfx in "" "_"; do
6560 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6561 symxfrm="\\1 $ac_symprfx\\2 \\2"
6563 # Write the raw and C identifiers.
6564 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6565 # Fake it for dumpbin and say T for any non-static function,
6566 # D for any global variable and I for any imported variable.
6567 # Also find C++ and __fastcall symbols from MSVC++,
6568 # which start with @ or ?.
6569 lt_cv_sys_global_symbol_pipe="$AWK '"\
6570 " {last_section=section; section=\$ 3};"\
6571 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6572 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6573 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6574 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6575 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6576 " \$ 0!~/External *\|/{next};"\
6577 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6578 " {if(hide[section]) next};"\
6579 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6580 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6581 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6582 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6583 " ' prfx=^$ac_symprfx"
6585 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6587 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6589 # Check to see that the pipe works correctly.
6593 cat > conftest.$ac_ext <<_LT_EOF
6598 void nm_test_func(void);
6599 void nm_test_func(void){}
6603 int main(){nm_test_var='a';nm_test_func();return(0);}
6606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6607 (eval $ac_compile) 2>&5
6609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6610 test $ac_status = 0; }; then
6611 # Now try to grab the symbols.
6613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6614 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6617 test $ac_status = 0; } && test -s "$nlist"; then
6618 # Try sorting and uniquifying the output.
6619 if sort "$nlist" | uniq > "$nlist"T; then
6620 mv -f "$nlist"T "$nlist"
6625 # Make sure that we snagged all the symbols we need.
6626 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6627 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6628 cat <<_LT_EOF > conftest.$ac_ext
6629 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6630 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6631 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6632 relocations are performed -- see ld's documentation on pseudo-relocs. */
6633 # define LT_DLSYM_CONST
6634 #elif defined __osf__
6635 /* This system does not cope well with relocations in const data. */
6636 # define LT_DLSYM_CONST
6638 # define LT_DLSYM_CONST const
6646 # Now generate the symbol file.
6647 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6649 cat <<_LT_EOF >> conftest.$ac_ext
6651 /* The mapping between symbol names and symbols. */
6652 LT_DLSYM_CONST struct {
6656 lt__PROGRAM__LTX_preloaded_symbols[] =
6658 { "@PROGRAM@", (void *) 0 },
6660 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6661 cat <<\_LT_EOF >> conftest.$ac_ext
6665 /* This works around a problem in FreeBSD linker */
6666 #ifdef FREEBSD_WORKAROUND
6667 static const void *lt_preloaded_setup() {
6668 return lt__PROGRAM__LTX_preloaded_symbols;
6676 # Now try linking the two files.
6677 mv conftest.$ac_objext conftstm.$ac_objext
6678 lt_globsym_save_LIBS=$LIBS
6679 lt_globsym_save_CFLAGS=$CFLAGS
6680 LIBS=conftstm.$ac_objext
6681 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6683 (eval $ac_link) 2>&5
6685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6686 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6689 LIBS=$lt_globsym_save_LIBS
6690 CFLAGS=$lt_globsym_save_CFLAGS
6692 echo "cannot find nm_test_func in $nlist" >&5
6695 echo "cannot find nm_test_var in $nlist" >&5
6698 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6701 echo "$progname: failed program was:" >&5
6702 cat conftest.$ac_ext >&5
6704 rm -rf conftest* conftst*
6706 # Do not use the global_symbol_pipe unless it works.
6707 if test yes = "$pipe_works"; then
6710 lt_cv_sys_global_symbol_pipe=
6716 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6717 lt_cv_sys_global_symbol_to_cdecl=
6719 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6721 $as_echo "failed" >&6; }
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6724 $as_echo "ok" >&6; }
6727 # Response file support.
6728 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6729 nm_file_list_spec='@'
6730 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6731 nm_file_list_spec='@'
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6771 $as_echo_n "checking for sysroot... " >&6; }
6773 # Check whether --with-sysroot was given.
6774 if test "${with_sysroot+set}" = set; then :
6775 withval=$with_sysroot;
6782 case $with_sysroot in #(
6784 if test yes = "$GCC"; then
6785 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6789 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6795 $as_echo "$with_sysroot" >&6; }
6796 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6801 $as_echo "${lt_sysroot:-no}" >&6; }
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6808 $as_echo_n "checking for a working dd... " >&6; }
6809 if ${ac_cv_path_lt_DD+:} false; then :
6810 $as_echo_n "(cached) " >&6
6812 printf 0123456789abcdef0123456789abcdef >conftest.i
6813 cat conftest.i conftest.i >conftest2.i
6815 if test -z "$lt_DD"; then
6816 ac_path_lt_DD_found=false
6817 # Loop through the user's path and test for each of PROGNAME-LIST
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 test -z "$as_dir" && as_dir=.
6823 for ac_prog in dd; do
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6826 as_fn_executable_p "$ac_path_lt_DD" || continue
6827 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6828 cmp -s conftest.i conftest.out \
6829 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6831 $ac_path_lt_DD_found && break 3
6836 if test -z "$ac_cv_path_lt_DD"; then
6840 ac_cv_path_lt_DD=$lt_DD
6843 rm -f conftest.i conftest2.i conftest.out
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6846 $as_echo "$ac_cv_path_lt_DD" >&6; }
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6850 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6851 if ${lt_cv_truncate_bin+:} false; then :
6852 $as_echo_n "(cached) " >&6
6854 printf 0123456789abcdef0123456789abcdef >conftest.i
6855 cat conftest.i conftest.i >conftest2.i
6857 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6858 cmp -s conftest.i conftest.out \
6859 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6861 rm -f conftest.i conftest2.i conftest.out
6862 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6865 $as_echo "$lt_cv_truncate_bin" >&6; }
6873 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6876 for cc_temp in $*""; do
6878 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6879 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6884 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6887 # Check whether --enable-libtool-lock was given.
6888 if test "${enable_libtool_lock+set}" = set; then :
6889 enableval=$enable_libtool_lock;
6892 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6894 # Some flags need to be propagated to the compiler or linker for good
6898 # Find out what ABI is being produced by ac_compile, and set mode
6899 # options accordingly.
6900 echo 'int i;' > conftest.$ac_ext
6901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6902 (eval $ac_compile) 2>&5
6904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6905 test $ac_status = 0; }; then
6906 case `/usr/bin/file conftest.$ac_objext` in
6918 # Find out what ABI is being produced by ac_compile, and set linker
6919 # options accordingly.
6920 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6922 (eval $ac_compile) 2>&5
6924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6925 test $ac_status = 0; }; then
6926 if test yes = "$lt_cv_prog_gnu_ld"; then
6927 case `/usr/bin/file conftest.$ac_objext` in
6929 LD="${LD-ld} -melf32bsmip"
6932 LD="${LD-ld} -melf32bmipn32"
6935 LD="${LD-ld} -melf64bmip"
6939 case `/usr/bin/file conftest.$ac_objext` in
6956 # Find out what ABI is being produced by ac_compile, and set linker
6957 # options accordingly.
6958 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6960 (eval $ac_compile) 2>&5
6962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6963 test $ac_status = 0; }; then
6965 case `/usr/bin/file conftest.$ac_objext` in
6973 case `/usr/bin/file conftest.$ac_objext` in
6975 emul="${emul}btsmip"
6978 emul="${emul}ltsmip"
6981 case `/usr/bin/file conftest.$ac_objext` in
6986 LD="${LD-ld} -m $emul"
6991 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6992 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6993 # Find out what ABI is being produced by ac_compile, and set linker
6994 # options accordingly. Note that the listed cases only cover the
6995 # situations where additional linker options are needed (such as when
6996 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6997 # vice versa); the common cases where no linker options are needed do
6998 # not appear in the list.
6999 echo 'int i;' > conftest.$ac_ext
7000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7001 (eval $ac_compile) 2>&5
7003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7004 test $ac_status = 0; }; then
7005 case `/usr/bin/file conftest.o` in
7008 x86_64-*kfreebsd*-gnu)
7009 LD="${LD-ld} -m elf_i386_fbsd"
7012 case `/usr/bin/file conftest.o` in
7014 LD="${LD-ld} -m elf32_x86_64"
7017 LD="${LD-ld} -m elf_i386"
7021 powerpc64le-*linux*)
7022 LD="${LD-ld} -m elf32lppclinux"
7025 LD="${LD-ld} -m elf32ppclinux"
7028 LD="${LD-ld} -m elf_s390"
7031 LD="${LD-ld} -m elf32_sparc"
7037 x86_64-*kfreebsd*-gnu)
7038 LD="${LD-ld} -m elf_x86_64_fbsd"
7041 LD="${LD-ld} -m elf_x86_64"
7044 LD="${LD-ld} -m elf64lppc"
7047 LD="${LD-ld} -m elf64ppc"
7049 s390*-*linux*|s390*-*tpf*)
7050 LD="${LD-ld} -m elf64_s390"
7053 LD="${LD-ld} -m elf64_sparc"
7063 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7065 CFLAGS="$CFLAGS -belf"
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7067 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7068 if ${lt_cv_cc_needs_belf+:} false; then :
7069 $as_echo_n "(cached) " >&6
7072 ac_cpp='$CPP $CPPFLAGS'
7073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078 /* end confdefs.h. */
7088 if ac_fn_c_try_link "$LINENO"; then :
7089 lt_cv_cc_needs_belf=yes
7091 lt_cv_cc_needs_belf=no
7093 rm -f core conftest.err conftest.$ac_objext \
7094 conftest$ac_exeext conftest.$ac_ext
7096 ac_cpp='$CPP $CPPFLAGS'
7097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7103 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7104 if test yes != "$lt_cv_cc_needs_belf"; then
7105 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7110 # Find out what ABI is being produced by ac_compile, and set linker
7111 # options accordingly.
7112 echo 'int i;' > conftest.$ac_ext
7113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7114 (eval $ac_compile) 2>&5
7116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7117 test $ac_status = 0; }; then
7118 case `/usr/bin/file conftest.o` in
7120 case $lt_cv_prog_gnu_ld in
7123 i?86-*-solaris*|x86_64-*-solaris*)
7124 LD="${LD-ld} -m elf_x86_64"
7127 LD="${LD-ld} -m elf64_sparc"
7130 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7131 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7136 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7148 need_locks=$enable_libtool_lock
7150 if test -n "$ac_tool_prefix"; then
7151 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7152 set dummy ${ac_tool_prefix}mt; ac_word=$2
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7154 $as_echo_n "checking for $ac_word... " >&6; }
7155 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7156 $as_echo_n "(cached) " >&6
7158 if test -n "$MANIFEST_TOOL"; then
7159 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 test -z "$as_dir" && as_dir=.
7166 for ac_exec_ext in '' $ac_executable_extensions; do
7167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7168 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7179 if test -n "$MANIFEST_TOOL"; then
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7181 $as_echo "$MANIFEST_TOOL" >&6; }
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7184 $as_echo "no" >&6; }
7189 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7190 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7191 # Extract the first word of "mt", so it can be a program name with args.
7192 set dummy mt; ac_word=$2
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194 $as_echo_n "checking for $ac_word... " >&6; }
7195 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7196 $as_echo_n "(cached) " >&6
7198 if test -n "$ac_ct_MANIFEST_TOOL"; then
7199 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7208 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7218 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7219 if test -n "$ac_ct_MANIFEST_TOOL"; then
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7221 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224 $as_echo "no" >&6; }
7227 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7230 case $cross_compiling:$ac_tool_warned in
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7234 ac_tool_warned=yes ;;
7236 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7239 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7242 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7244 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7245 if ${lt_cv_path_mainfest_tool+:} false; then :
7246 $as_echo_n "(cached) " >&6
7248 lt_cv_path_mainfest_tool=no
7249 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7250 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7251 cat conftest.err >&5
7252 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7253 lt_cv_path_mainfest_tool=yes
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7258 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7259 if test yes != "$lt_cv_path_mainfest_tool"; then
7269 rhapsody* | darwin*)
7270 if test -n "$ac_tool_prefix"; then
7271 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7272 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7274 $as_echo_n "checking for $ac_word... " >&6; }
7275 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7276 $as_echo_n "(cached) " >&6
7278 if test -n "$DSYMUTIL"; then
7279 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7288 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7298 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7299 if test -n "$DSYMUTIL"; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7301 $as_echo "$DSYMUTIL" >&6; }
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 $as_echo "no" >&6; }
7309 if test -z "$ac_cv_prog_DSYMUTIL"; then
7310 ac_ct_DSYMUTIL=$DSYMUTIL
7311 # Extract the first word of "dsymutil", so it can be a program name with args.
7312 set dummy dsymutil; ac_word=$2
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7314 $as_echo_n "checking for $ac_word... " >&6; }
7315 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7316 $as_echo_n "(cached) " >&6
7318 if test -n "$ac_ct_DSYMUTIL"; then
7319 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325 test -z "$as_dir" && as_dir=.
7326 for ac_exec_ext in '' $ac_executable_extensions; do
7327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7328 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7338 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7339 if test -n "$ac_ct_DSYMUTIL"; then
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7341 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344 $as_echo "no" >&6; }
7347 if test "x$ac_ct_DSYMUTIL" = x; then
7350 case $cross_compiling:$ac_tool_warned in
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7354 ac_tool_warned=yes ;;
7356 DSYMUTIL=$ac_ct_DSYMUTIL
7359 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7362 if test -n "$ac_tool_prefix"; then
7363 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7364 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7366 $as_echo_n "checking for $ac_word... " >&6; }
7367 if ${ac_cv_prog_NMEDIT+:} false; then :
7368 $as_echo_n "(cached) " >&6
7370 if test -n "$NMEDIT"; then
7371 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377 test -z "$as_dir" && as_dir=.
7378 for ac_exec_ext in '' $ac_executable_extensions; do
7379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7380 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7390 NMEDIT=$ac_cv_prog_NMEDIT
7391 if test -n "$NMEDIT"; then
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7393 $as_echo "$NMEDIT" >&6; }
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396 $as_echo "no" >&6; }
7401 if test -z "$ac_cv_prog_NMEDIT"; then
7402 ac_ct_NMEDIT=$NMEDIT
7403 # Extract the first word of "nmedit", so it can be a program name with args.
7404 set dummy nmedit; ac_word=$2
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7406 $as_echo_n "checking for $ac_word... " >&6; }
7407 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7408 $as_echo_n "(cached) " >&6
7410 if test -n "$ac_ct_NMEDIT"; then
7411 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 test -z "$as_dir" && as_dir=.
7418 for ac_exec_ext in '' $ac_executable_extensions; do
7419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7420 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7430 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7431 if test -n "$ac_ct_NMEDIT"; then
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7433 $as_echo "$ac_ct_NMEDIT" >&6; }
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436 $as_echo "no" >&6; }
7439 if test "x$ac_ct_NMEDIT" = x; then
7442 case $cross_compiling:$ac_tool_warned in
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7446 ac_tool_warned=yes ;;
7448 NMEDIT=$ac_ct_NMEDIT
7451 NMEDIT="$ac_cv_prog_NMEDIT"
7454 if test -n "$ac_tool_prefix"; then
7455 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7456 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7458 $as_echo_n "checking for $ac_word... " >&6; }
7459 if ${ac_cv_prog_LIPO+:} false; then :
7460 $as_echo_n "(cached) " >&6
7462 if test -n "$LIPO"; then
7463 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7472 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7482 LIPO=$ac_cv_prog_LIPO
7483 if test -n "$LIPO"; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7485 $as_echo "$LIPO" >&6; }
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488 $as_echo "no" >&6; }
7493 if test -z "$ac_cv_prog_LIPO"; then
7495 # Extract the first word of "lipo", so it can be a program name with args.
7496 set dummy lipo; ac_word=$2
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498 $as_echo_n "checking for $ac_word... " >&6; }
7499 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7500 $as_echo_n "(cached) " >&6
7502 if test -n "$ac_ct_LIPO"; then
7503 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 test -z "$as_dir" && as_dir=.
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7512 ac_cv_prog_ac_ct_LIPO="lipo"
7513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7522 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7523 if test -n "$ac_ct_LIPO"; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7525 $as_echo "$ac_ct_LIPO" >&6; }
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7531 if test "x$ac_ct_LIPO" = x; then
7534 case $cross_compiling:$ac_tool_warned in
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7538 ac_tool_warned=yes ;;
7543 LIPO="$ac_cv_prog_LIPO"
7546 if test -n "$ac_tool_prefix"; then
7547 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7548 set dummy ${ac_tool_prefix}otool; ac_word=$2
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7550 $as_echo_n "checking for $ac_word... " >&6; }
7551 if ${ac_cv_prog_OTOOL+:} false; then :
7552 $as_echo_n "(cached) " >&6
7554 if test -n "$OTOOL"; then
7555 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 test -z "$as_dir" && as_dir=.
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7564 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7574 OTOOL=$ac_cv_prog_OTOOL
7575 if test -n "$OTOOL"; then
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7577 $as_echo "$OTOOL" >&6; }
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580 $as_echo "no" >&6; }
7585 if test -z "$ac_cv_prog_OTOOL"; then
7587 # Extract the first word of "otool", so it can be a program name with args.
7588 set dummy otool; ac_word=$2
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7590 $as_echo_n "checking for $ac_word... " >&6; }
7591 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7592 $as_echo_n "(cached) " >&6
7594 if test -n "$ac_ct_OTOOL"; then
7595 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7604 ac_cv_prog_ac_ct_OTOOL="otool"
7605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7614 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7615 if test -n "$ac_ct_OTOOL"; then
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7617 $as_echo "$ac_ct_OTOOL" >&6; }
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620 $as_echo "no" >&6; }
7623 if test "x$ac_ct_OTOOL" = x; then
7626 case $cross_compiling:$ac_tool_warned in
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7630 ac_tool_warned=yes ;;
7635 OTOOL="$ac_cv_prog_OTOOL"
7638 if test -n "$ac_tool_prefix"; then
7639 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7640 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7642 $as_echo_n "checking for $ac_word... " >&6; }
7643 if ${ac_cv_prog_OTOOL64+:} false; then :
7644 $as_echo_n "(cached) " >&6
7646 if test -n "$OTOOL64"; then
7647 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653 test -z "$as_dir" && as_dir=.
7654 for ac_exec_ext in '' $ac_executable_extensions; do
7655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7656 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7666 OTOOL64=$ac_cv_prog_OTOOL64
7667 if test -n "$OTOOL64"; then
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7669 $as_echo "$OTOOL64" >&6; }
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7672 $as_echo "no" >&6; }
7677 if test -z "$ac_cv_prog_OTOOL64"; then
7678 ac_ct_OTOOL64=$OTOOL64
7679 # Extract the first word of "otool64", so it can be a program name with args.
7680 set dummy otool64; ac_word=$2
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7682 $as_echo_n "checking for $ac_word... " >&6; }
7683 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7684 $as_echo_n "(cached) " >&6
7686 if test -n "$ac_ct_OTOOL64"; then
7687 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7696 ac_cv_prog_ac_ct_OTOOL64="otool64"
7697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7706 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7707 if test -n "$ac_ct_OTOOL64"; then
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7709 $as_echo "$ac_ct_OTOOL64" >&6; }
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712 $as_echo "no" >&6; }
7715 if test "x$ac_ct_OTOOL64" = x; then
7718 case $cross_compiling:$ac_tool_warned in
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7722 ac_tool_warned=yes ;;
7724 OTOOL64=$ac_ct_OTOOL64
7727 OTOOL64="$ac_cv_prog_OTOOL64"
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7757 $as_echo_n "checking for -single_module linker flag... " >&6; }
7758 if ${lt_cv_apple_cc_single_mod+:} false; then :
7759 $as_echo_n "(cached) " >&6
7761 lt_cv_apple_cc_single_mod=no
7762 if test -z "$LT_MULTI_MODULE"; then
7763 # By default we will add the -single_module flag. You can override
7764 # by either setting the environment variable LT_MULTI_MODULE
7765 # non-empty at configure time, or by adding -multi_module to the
7767 rm -rf libconftest.dylib*
7768 echo "int foo(void){return 1;}" > conftest.c
7769 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7770 -dynamiclib -Wl,-single_module conftest.c" >&5
7771 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7772 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7774 # If there is a non-empty error log, and "single_module"
7775 # appears in it, assume the flag caused a linker warning
7776 if test -s conftest.err && $GREP single_module conftest.err; then
7777 cat conftest.err >&5
7778 # Otherwise, if the output was created with a 0 exit code from
7779 # the compiler, it worked.
7780 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7781 lt_cv_apple_cc_single_mod=yes
7783 cat conftest.err >&5
7785 rm -rf libconftest.dylib*
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7790 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7793 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7794 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7795 $as_echo_n "(cached) " >&6
7797 lt_cv_ld_exported_symbols_list=no
7798 save_LDFLAGS=$LDFLAGS
7799 echo "_main" > conftest.sym
7800 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7802 /* end confdefs.h. */
7812 if ac_fn_c_try_link "$LINENO"; then :
7813 lt_cv_ld_exported_symbols_list=yes
7815 lt_cv_ld_exported_symbols_list=no
7817 rm -f core conftest.err conftest.$ac_objext \
7818 conftest$ac_exeext conftest.$ac_ext
7819 LDFLAGS=$save_LDFLAGS
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7823 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7826 $as_echo_n "checking for -force_load linker flag... " >&6; }
7827 if ${lt_cv_ld_force_load+:} false; then :
7828 $as_echo_n "(cached) " >&6
7830 lt_cv_ld_force_load=no
7831 cat > conftest.c << _LT_EOF
7832 int forced_loaded() { return 2;}
7834 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7835 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7836 echo "$AR cru libconftest.a conftest.o" >&5
7837 $AR cru libconftest.a conftest.o 2>&5
7838 echo "$RANLIB libconftest.a" >&5
7839 $RANLIB libconftest.a 2>&5
7840 cat > conftest.c << _LT_EOF
7841 int main() { return 0;}
7843 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7844 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7846 if test -s conftest.err && $GREP force_load conftest.err; then
7847 cat conftest.err >&5
7848 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7849 lt_cv_ld_force_load=yes
7851 cat conftest.err >&5
7853 rm -f conftest.err libconftest.a conftest conftest.c
7854 rm -rf conftest.dSYM
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7858 $as_echo "$lt_cv_ld_force_load" >&6; }
7860 rhapsody* | darwin1.[012])
7861 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7863 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7864 darwin*) # darwin 5.x on
7865 # if running on 10.5 or later, the deployment target defaults
7866 # to the OS version, if on x86, and 10.4, the deployment
7867 # target defaults to 10.4. Don't you love it?
7868 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7869 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7870 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7872 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7874 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7878 if test yes = "$lt_cv_apple_cc_single_mod"; then
7879 _lt_dar_single_mod='$single_module'
7881 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7882 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7884 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7886 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7887 _lt_dsymutil='~$DSYMUTIL $lib || :'
7894 # func_munge_path_list VARIABLE PATH
7895 # -----------------------------------
7896 # VARIABLE is name of variable containing _space_ separated list of
7897 # directories to be munged by the contents of PATH, which is string
7900 # string "DIR[ DIR]" will be prepended to VARIABLE
7902 # string "DIR[ DIR]" will be appended to VARIABLE
7903 # "DIRP[:DIRP]::[DIRA:]DIRA"
7904 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7905 # "DIRA[ DIRA]" will be appended to VARIABLE
7907 # VARIABLE will be replaced by "DIR[ DIR]"
7908 func_munge_path_list ()
7914 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7917 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7920 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7921 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7924 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7930 ac_cpp='$CPP $CPPFLAGS'
7931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7935 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7936 # On Suns, sometimes $CPP names a directory.
7937 if test -n "$CPP" && test -d "$CPP"; then
7940 if test -z "$CPP"; then
7941 if ${ac_cv_prog_CPP+:} false; then :
7942 $as_echo_n "(cached) " >&6
7944 # Double quotes because CPP needs to be expanded
7945 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7948 for ac_c_preproc_warn_flag in '' yes
7950 # Use a header file that comes with gcc, so configuring glibc
7951 # with a fresh cross-compiler works.
7952 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7953 # <limits.h> exists even on freestanding compilers.
7954 # On the NeXT, cc -E runs the code through the compiler's parser,
7955 # not just through cpp. "Syntax error" is here to catch this case.
7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h. */
7959 # include <limits.h>
7961 # include <assert.h>
7965 if ac_fn_c_try_cpp "$LINENO"; then :
7968 # Broken: fails on valid input.
7971 rm -f conftest.err conftest.i conftest.$ac_ext
7973 # OK, works on sane cases. Now check whether nonexistent headers
7974 # can be detected and how.
7975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976 /* end confdefs.h. */
7977 #include <ac_nonexistent.h>
7979 if ac_fn_c_try_cpp "$LINENO"; then :
7980 # Broken: success on invalid input.
7983 # Passes both tests.
7987 rm -f conftest.err conftest.i conftest.$ac_ext
7990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7991 rm -f conftest.i conftest.err conftest.$ac_ext
7992 if $ac_preproc_ok; then :
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8005 $as_echo "$CPP" >&6; }
8007 for ac_c_preproc_warn_flag in '' yes
8009 # Use a header file that comes with gcc, so configuring glibc
8010 # with a fresh cross-compiler works.
8011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8012 # <limits.h> exists even on freestanding compilers.
8013 # On the NeXT, cc -E runs the code through the compiler's parser,
8014 # not just through cpp. "Syntax error" is here to catch this case.
8015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016 /* end confdefs.h. */
8018 # include <limits.h>
8020 # include <assert.h>
8024 if ac_fn_c_try_cpp "$LINENO"; then :
8027 # Broken: fails on valid input.
8030 rm -f conftest.err conftest.i conftest.$ac_ext
8032 # OK, works on sane cases. Now check whether nonexistent headers
8033 # can be detected and how.
8034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035 /* end confdefs.h. */
8036 #include <ac_nonexistent.h>
8038 if ac_fn_c_try_cpp "$LINENO"; then :
8039 # Broken: success on invalid input.
8042 # Passes both tests.
8046 rm -f conftest.err conftest.i conftest.$ac_ext
8049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8050 rm -f conftest.i conftest.err conftest.$ac_ext
8051 if $ac_preproc_ok; then :
8054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8056 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8057 See \`config.log' for more details" "$LINENO" 5; }
8061 ac_cpp='$CPP $CPPFLAGS'
8062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8068 $as_echo_n "checking for ANSI C header files... " >&6; }
8069 if ${ac_cv_header_stdc+:} false; then :
8070 $as_echo_n "(cached) " >&6
8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h. */
8087 if ac_fn_c_try_compile "$LINENO"; then :
8088 ac_cv_header_stdc=yes
8090 ac_cv_header_stdc=no
8092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8094 if test $ac_cv_header_stdc = yes; then
8095 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097 /* end confdefs.h. */
8101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8102 $EGREP "memchr" >/dev/null 2>&1; then :
8105 ac_cv_header_stdc=no
8111 if test $ac_cv_header_stdc = yes; then
8112 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h. */
8118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8119 $EGREP "free" >/dev/null 2>&1; then :
8122 ac_cv_header_stdc=no
8128 if test $ac_cv_header_stdc = yes; then
8129 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8130 if test "$cross_compiling" = yes; then :
8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h. */
8137 #if ((' ' & 0x0FF) == 0x020)
8138 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8139 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8141 # define ISLOWER(c) \
8142 (('a' <= (c) && (c) <= 'i') \
8143 || ('j' <= (c) && (c) <= 'r') \
8144 || ('s' <= (c) && (c) <= 'z'))
8145 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8148 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8153 for (i = 0; i < 256; i++)
8154 if (XOR (islower (i), ISLOWER (i))
8155 || toupper (i) != TOUPPER (i))
8160 if ac_fn_c_try_run "$LINENO"; then :
8163 ac_cv_header_stdc=no
8165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8166 conftest.$ac_objext conftest.beam conftest.$ac_ext
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8172 $as_echo "$ac_cv_header_stdc" >&6; }
8173 if test $ac_cv_header_stdc = yes; then
8175 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8179 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8180 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8181 inttypes.h stdint.h unistd.h
8183 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8184 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8186 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8187 cat >>confdefs.h <<_ACEOF
8188 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8196 for ac_header in dlfcn.h
8198 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8200 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8201 cat >>confdefs.h <<_ACEOF
8202 #define HAVE_DLFCN_H 1
8214 # Check whether --enable-static was given.
8215 if test "${enable_static+set}" = set; then :
8216 enableval=$enable_static; p=${PACKAGE-default}
8218 yes) enable_static=yes ;;
8219 no) enable_static=no ;;
8222 # Look at the argument we got. We use all the common list separators.
8223 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8224 for pkg in $enableval; do
8226 if test "X$pkg" = "X$p"; then
8252 # Check whether --enable-shared was given.
8253 if test "${enable_shared+set}" = set; then :
8254 enableval=$enable_shared; p=${PACKAGE-default}
8256 yes) enable_shared=yes ;;
8257 no) enable_shared=no ;;
8260 # Look at the argument we got. We use all the common list separators.
8261 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8262 for pkg in $enableval; do
8264 if test "X$pkg" = "X$p"; then
8285 # Check whether --with-pic was given.
8286 if test "${with_pic+set}" = set; then :
8287 withval=$with_pic; lt_p=${PACKAGE-default}
8289 yes|no) pic_mode=$withval ;;
8292 # Look at the argument we got. We use all the common list separators.
8293 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8294 for lt_pkg in $withval; do
8296 if test "X$lt_pkg" = "X$lt_p"; then
8314 # Check whether --enable-fast-install was given.
8315 if test "${enable_fast_install+set}" = set; then :
8316 enableval=$enable_fast_install; p=${PACKAGE-default}
8318 yes) enable_fast_install=yes ;;
8319 no) enable_fast_install=no ;;
8321 enable_fast_install=no
8322 # Look at the argument we got. We use all the common list separators.
8323 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8324 for pkg in $enableval; do
8326 if test "X$pkg" = "X$p"; then
8327 enable_fast_install=yes
8334 enable_fast_install=yes
8344 shared_archive_member_spec=
8345 case $host,$enable_shared in
8346 power*-*-aix[5-9]*,yes)
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8348 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8350 # Check whether --with-aix-soname was given.
8351 if test "${with_aix_soname+set}" = set; then :
8352 withval=$with_aix_soname; case $withval in
8356 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8359 lt_cv_with_aix_soname=$with_aix_soname
8361 if ${lt_cv_with_aix_soname+:} false; then :
8362 $as_echo_n "(cached) " >&6
8364 lt_cv_with_aix_soname=aix
8367 with_aix_soname=$lt_cv_with_aix_soname
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8371 $as_echo "$with_aix_soname" >&6; }
8372 if test aix != "$with_aix_soname"; then
8373 # For the AIX way of multilib, we name the shared archive member
8374 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8375 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8376 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8377 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8378 if test 64 = "${OBJECT_MODE-32}"; then
8379 shared_archive_member_spec=shr_64
8381 shared_archive_member_spec=shr
8399 # This can be used to rebuild libtool when needed
8400 LIBTOOL_DEPS=$ltmain
8402 # Always use our own libtool.
8403 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8434 test -z "$LN_S" && LN_S="ln -s"
8449 if test -n "${ZSH_VERSION+set}"; then
8450 setopt NO_GLOB_SUBST
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8454 $as_echo_n "checking for objdir... " >&6; }
8455 if ${lt_cv_objdir+:} false; then :
8456 $as_echo_n "(cached) " >&6
8458 rm -f .libs 2>/dev/null
8459 mkdir .libs 2>/dev/null
8460 if test -d .libs; then
8463 # MS-DOS does not allow filenames that begin with a dot.
8466 rmdir .libs 2>/dev/null
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8469 $as_echo "$lt_cv_objdir" >&6; }
8470 objdir=$lt_cv_objdir
8476 cat >>confdefs.h <<_ACEOF
8477 #define LT_OBJDIR "$lt_cv_objdir/"
8485 # AIX sometimes has problems with the GCC collect2 program. For some
8486 # reason, if we set the COLLECT_NAMES environment variable, the problems
8487 # vanish in a puff of smoke.
8488 if test set != "${COLLECT_NAMES+set}"; then
8490 export COLLECT_NAMES
8497 can_build_shared=yes
8499 # All known linkers require a '.a' archive for static linking (except MSVC,
8500 # which needs '.lib').
8503 with_gnu_ld=$lt_cv_prog_gnu_ld
8508 # Set sane defaults for various variables
8509 test -z "$CC" && CC=cc
8510 test -z "$LTCC" && LTCC=$CC
8511 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8512 test -z "$LD" && LD=ld
8513 test -z "$ac_objext" && ac_objext=o
8515 func_cc_basename $compiler
8516 cc_basename=$func_cc_basename_result
8519 # Only perform the check for file, if the check method requires it
8520 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8521 case $deplibs_check_method in
8523 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8525 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8526 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8527 $as_echo_n "(cached) " >&6
8531 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8534 lt_save_MAGIC_CMD=$MAGIC_CMD
8535 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8536 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8537 for ac_dir in $ac_dummy; do
8539 test -z "$ac_dir" && ac_dir=.
8540 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8541 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8542 if test -n "$file_magic_test_file"; then
8543 case $deplibs_check_method in
8545 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8546 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8547 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8548 $EGREP "$file_magic_regex" > /dev/null; then
8553 *** Warning: the command libtool uses to detect shared libraries,
8554 *** $file_magic_cmd, produces output that libtool cannot recognize.
8555 *** The result is that libtool may fail to recognize shared libraries
8556 *** as such. This will affect the creation of libtool libraries that
8557 *** depend on shared libraries, but programs linked with such libtool
8558 *** libraries will work regardless of this problem. Nevertheless, you
8559 *** may want to report the problem to your system manager and/or to
8560 *** bug-libtool@gnu.org
8570 MAGIC_CMD=$lt_save_MAGIC_CMD
8575 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8576 if test -n "$MAGIC_CMD"; then
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8578 $as_echo "$MAGIC_CMD" >&6; }
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581 $as_echo "no" >&6; }
8588 if test -z "$lt_cv_path_MAGIC_CMD"; then
8589 if test -n "$ac_tool_prefix"; then
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8591 $as_echo_n "checking for file... " >&6; }
8592 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8593 $as_echo_n "(cached) " >&6
8597 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8600 lt_save_MAGIC_CMD=$MAGIC_CMD
8601 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8602 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8603 for ac_dir in $ac_dummy; do
8605 test -z "$ac_dir" && ac_dir=.
8606 if test -f "$ac_dir/file"; then
8607 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8608 if test -n "$file_magic_test_file"; then
8609 case $deplibs_check_method in
8611 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8612 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8613 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8614 $EGREP "$file_magic_regex" > /dev/null; then
8619 *** Warning: the command libtool uses to detect shared libraries,
8620 *** $file_magic_cmd, produces output that libtool cannot recognize.
8621 *** The result is that libtool may fail to recognize shared libraries
8622 *** as such. This will affect the creation of libtool libraries that
8623 *** depend on shared libraries, but programs linked with such libtool
8624 *** libraries will work regardless of this problem. Nevertheless, you
8625 *** may want to report the problem to your system manager and/or to
8626 *** bug-libtool@gnu.org
8636 MAGIC_CMD=$lt_save_MAGIC_CMD
8641 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8642 if test -n "$MAGIC_CMD"; then
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8644 $as_echo "$MAGIC_CMD" >&6; }
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8647 $as_echo "no" >&6; }
8660 # Use C for the default configuration in the libtool script
8664 ac_cpp='$CPP $CPPFLAGS'
8665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8670 # Source file extension for C test sources.
8673 # Object file extension for compiled C test sources.
8677 # Code to be used in simple compile tests
8678 lt_simple_compile_test_code="int some_variable = 0;"
8680 # Code to be used in simple link tests
8681 lt_simple_link_test_code='int main(){return(0);}'
8689 # If no C compiler was specified, use CC.
8692 # If no C compiler flags were specified, use CFLAGS.
8693 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8695 # Allow CC to be a program name with arguments.
8698 # Save the default compiler, since it gets overwritten when the other
8699 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8700 compiler_DEFAULT=$CC
8702 # save warnings/boilerplate of simple test code
8703 ac_outfile=conftest.$ac_objext
8704 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8705 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8706 _lt_compiler_boilerplate=`cat conftest.err`
8709 ac_outfile=conftest.$ac_objext
8710 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8711 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8712 _lt_linker_boilerplate=`cat conftest.err`
8717 ## There is no encapsulation within the following macros, do not change
8718 ## the running order or otherwise move them around unless you know exactly
8719 ## what you are doing...
8720 if test -n "$compiler"; then
8722 lt_prog_compiler_no_builtin_flag=
8724 if test yes = "$GCC"; then
8725 case $cc_basename in
8727 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8729 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8733 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8734 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8735 $as_echo_n "(cached) " >&6
8737 lt_cv_prog_compiler_rtti_exceptions=no
8738 ac_outfile=conftest.$ac_objext
8739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8740 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8741 # Insert the option either (1) after the last *FLAGS variable, or
8742 # (2) before a word containing "conftest.", or (3) at the end.
8743 # Note that $ac_compile itself does not contain backslashes and begins
8744 # with a dollar sign (not a hyphen), so the echo should work correctly.
8745 # The option is referenced via a variable to avoid confusing sed.
8746 lt_compile=`echo "$ac_compile" | $SED \
8747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8749 -e 's:$: $lt_compiler_flag:'`
8750 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8751 (eval "$lt_compile" 2>conftest.err)
8753 cat conftest.err >&5
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 if (exit $ac_status) && test -s "$ac_outfile"; then
8756 # The compiler can only warn and ignore the option if not recognized
8757 # So say no if there are warnings other than the usual output.
8758 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8760 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8761 lt_cv_prog_compiler_rtti_exceptions=yes
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8768 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8770 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8771 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8783 lt_prog_compiler_wl=
8784 lt_prog_compiler_pic=
8785 lt_prog_compiler_static=
8788 if test yes = "$GCC"; then
8789 lt_prog_compiler_wl='-Wl,'
8790 lt_prog_compiler_static='-static'
8794 # All AIX code is PIC.
8795 if test ia64 = "$host_cpu"; then
8796 # AIX 5 now supports IA64 processor
8797 lt_prog_compiler_static='-Bstatic'
8799 lt_prog_compiler_pic='-fPIC'
8805 # see comment about AmigaOS4 .so support
8806 lt_prog_compiler_pic='-fPIC'
8809 # FIXME: we need at least 68020 code to build shared libraries, but
8810 # adding the '-m68020' flag to GCC prevents building anything better,
8812 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8817 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8818 # PIC is the default for these OSes.
8821 mingw* | cygwin* | pw32* | os2* | cegcc*)
8822 # This hack is so that the source file can tell whether it is being
8823 # built for inclusion in a dll (and should export symbols for example).
8824 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8825 # (--disable-auto-import) libraries
8826 lt_prog_compiler_pic='-DDLL_EXPORT'
8829 lt_prog_compiler_static='$wl-static'
8834 darwin* | rhapsody*)
8835 # PIC is the default on this platform
8836 # Common symbols not allowed in MH_DYLIB files
8837 lt_prog_compiler_pic='-fno-common'
8841 # PIC is the default for Haiku.
8842 # The "-static" flag exists, but is broken.
8843 lt_prog_compiler_static=
8847 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8848 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8849 # sets the default TLS model and affects inlining.
8855 lt_prog_compiler_pic='-fPIC'
8861 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8862 # Instead, we relocate shared libraries at runtime.
8866 # Just because we use GCC doesn't mean we suddenly get shared libraries
8867 # on systems that don't support them.
8868 lt_prog_compiler_can_build_shared=no
8873 # QNX uses GNU C++, but need to define -shared option too, otherwise
8875 lt_prog_compiler_pic='-fPIC -shared'
8879 if test -d /usr/nec; then
8880 lt_prog_compiler_pic=-Kconform_pic
8885 lt_prog_compiler_pic='-fPIC'
8889 case $cc_basename in
8890 nvcc*) # Cuda Compiler Driver 2.2
8891 lt_prog_compiler_wl='-Xlinker '
8892 if test -n "$lt_prog_compiler_pic"; then
8893 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8898 # PORTME Check for flag to pass linker flags through the system compiler.
8901 lt_prog_compiler_wl='-Wl,'
8902 if test ia64 = "$host_cpu"; then
8903 # AIX 5 now supports IA64 processor
8904 lt_prog_compiler_static='-Bstatic'
8906 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8910 darwin* | rhapsody*)
8911 # PIC is the default on this platform
8912 # Common symbols not allowed in MH_DYLIB files
8913 lt_prog_compiler_pic='-fno-common'
8914 case $cc_basename in
8916 # NAG Fortran compiler
8917 lt_prog_compiler_wl='-Wl,-Wl,,'
8918 lt_prog_compiler_pic='-PIC'
8919 lt_prog_compiler_static='-Bstatic'
8924 mingw* | cygwin* | pw32* | os2* | cegcc*)
8925 # This hack is so that the source file can tell whether it is being
8926 # built for inclusion in a dll (and should export symbols for example).
8927 lt_prog_compiler_pic='-DDLL_EXPORT'
8930 lt_prog_compiler_static='$wl-static'
8935 hpux9* | hpux10* | hpux11*)
8936 lt_prog_compiler_wl='-Wl,'
8937 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8944 lt_prog_compiler_pic='+Z'
8947 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8948 lt_prog_compiler_static='$wl-a ${wl}archive'
8951 irix5* | irix6* | nonstopux*)
8952 lt_prog_compiler_wl='-Wl,'
8953 # PIC (with -KPIC) is the default.
8954 lt_prog_compiler_static='-non_shared'
8957 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8958 case $cc_basename in
8959 # old Intel for x86_64, which still supported -KPIC.
8961 lt_prog_compiler_wl='-Wl,'
8962 lt_prog_compiler_pic='-KPIC'
8963 lt_prog_compiler_static='-static'
8965 # icc used to be incompatible with GCC.
8966 # ICC 10 doesn't accept -KPIC any more.
8968 lt_prog_compiler_wl='-Wl,'
8969 lt_prog_compiler_pic='-fPIC'
8970 lt_prog_compiler_static='-static'
8972 # Lahey Fortran 8.1.
8974 lt_prog_compiler_wl='-Wl,'
8975 lt_prog_compiler_pic='--shared'
8976 lt_prog_compiler_static='--static'
8979 # NAG Fortran compiler
8980 lt_prog_compiler_wl='-Wl,-Wl,,'
8981 lt_prog_compiler_pic='-PIC'
8982 lt_prog_compiler_static='-Bstatic'
8985 # Fabrice Bellard et al's Tiny C Compiler
8986 lt_prog_compiler_wl='-Wl,'
8987 lt_prog_compiler_pic='-fPIC'
8988 lt_prog_compiler_static='-static'
8990 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8991 # Portland Group compilers (*not* the Pentium gcc compiler,
8992 # which looks to be a dead project)
8993 lt_prog_compiler_wl='-Wl,'
8994 lt_prog_compiler_pic='-fpic'
8995 lt_prog_compiler_static='-Bstatic'
8998 lt_prog_compiler_wl='-Wl,'
8999 # All Alpha code is PIC.
9000 lt_prog_compiler_static='-non_shared'
9002 xl* | bgxl* | bgf* | mpixl*)
9003 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9004 lt_prog_compiler_wl='-Wl,'
9005 lt_prog_compiler_pic='-qpic'
9006 lt_prog_compiler_static='-qstaticlink'
9009 case `$CC -V 2>&1 | sed 5q` in
9010 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9011 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9012 lt_prog_compiler_pic='-KPIC'
9013 lt_prog_compiler_static='-Bstatic'
9014 lt_prog_compiler_wl=''
9016 *Sun\ F* | *Sun*Fortran*)
9017 lt_prog_compiler_pic='-KPIC'
9018 lt_prog_compiler_static='-Bstatic'
9019 lt_prog_compiler_wl='-Qoption ld '
9023 lt_prog_compiler_pic='-KPIC'
9024 lt_prog_compiler_static='-Bstatic'
9025 lt_prog_compiler_wl='-Wl,'
9027 *Intel*\ [CF]*Compiler*)
9028 lt_prog_compiler_wl='-Wl,'
9029 lt_prog_compiler_pic='-fPIC'
9030 lt_prog_compiler_static='-static'
9033 lt_prog_compiler_wl='-Wl,'
9034 lt_prog_compiler_pic='-fpic'
9035 lt_prog_compiler_static='-Bstatic'
9043 lt_prog_compiler_pic='-KPIC'
9044 lt_prog_compiler_static='-Bstatic'
9048 # QNX uses GNU C++, but need to define -shared option too, otherwise
9050 lt_prog_compiler_pic='-fPIC -shared'
9053 osf3* | osf4* | osf5*)
9054 lt_prog_compiler_wl='-Wl,'
9055 # All OSF/1 code is PIC.
9056 lt_prog_compiler_static='-non_shared'
9060 lt_prog_compiler_static='-non_shared'
9064 lt_prog_compiler_pic='-KPIC'
9065 lt_prog_compiler_static='-Bstatic'
9066 case $cc_basename in
9067 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9068 lt_prog_compiler_wl='-Qoption ld ';;
9070 lt_prog_compiler_wl='-Wl,';;
9075 lt_prog_compiler_wl='-Qoption ld '
9076 lt_prog_compiler_pic='-PIC'
9077 lt_prog_compiler_static='-Bstatic'
9080 sysv4 | sysv4.2uw2* | sysv4.3*)
9081 lt_prog_compiler_wl='-Wl,'
9082 lt_prog_compiler_pic='-KPIC'
9083 lt_prog_compiler_static='-Bstatic'
9087 if test -d /usr/nec; then
9088 lt_prog_compiler_pic='-Kconform_pic'
9089 lt_prog_compiler_static='-Bstatic'
9093 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9094 lt_prog_compiler_wl='-Wl,'
9095 lt_prog_compiler_pic='-KPIC'
9096 lt_prog_compiler_static='-Bstatic'
9100 lt_prog_compiler_wl='-Wl,'
9101 lt_prog_compiler_can_build_shared=no
9105 lt_prog_compiler_pic='-pic'
9106 lt_prog_compiler_static='-Bstatic'
9110 lt_prog_compiler_can_build_shared=no
9116 # For platforms that do not support PIC, -DPIC is meaningless:
9118 lt_prog_compiler_pic=
9121 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9126 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9127 if ${lt_cv_prog_compiler_pic+:} false; then :
9128 $as_echo_n "(cached) " >&6
9130 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9133 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9134 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9137 # Check to make sure the PIC flag actually works.
9139 if test -n "$lt_prog_compiler_pic"; then
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9141 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9142 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9143 $as_echo_n "(cached) " >&6
9145 lt_cv_prog_compiler_pic_works=no
9146 ac_outfile=conftest.$ac_objext
9147 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9148 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9149 # Insert the option either (1) after the last *FLAGS variable, or
9150 # (2) before a word containing "conftest.", or (3) at the end.
9151 # Note that $ac_compile itself does not contain backslashes and begins
9152 # with a dollar sign (not a hyphen), so the echo should work correctly.
9153 # The option is referenced via a variable to avoid confusing sed.
9154 lt_compile=`echo "$ac_compile" | $SED \
9155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9157 -e 's:$: $lt_compiler_flag:'`
9158 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9159 (eval "$lt_compile" 2>conftest.err)
9161 cat conftest.err >&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 if (exit $ac_status) && test -s "$ac_outfile"; then
9164 # The compiler can only warn and ignore the option if not recognized
9165 # So say no if there are warnings other than the usual output.
9166 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9167 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9168 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9169 lt_cv_prog_compiler_pic_works=yes
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9176 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9178 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9179 case $lt_prog_compiler_pic in
9181 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9184 lt_prog_compiler_pic=
9185 lt_prog_compiler_can_build_shared=no
9201 # Check to make sure the static flag actually works.
9203 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9205 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9206 if ${lt_cv_prog_compiler_static_works+:} false; then :
9207 $as_echo_n "(cached) " >&6
9209 lt_cv_prog_compiler_static_works=no
9210 save_LDFLAGS=$LDFLAGS
9211 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9212 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9213 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9214 # The linker can only warn and ignore the option if not recognized
9215 # So say no if there are warnings
9216 if test -s conftest.err; then
9217 # Append any errors to the config.log.
9218 cat conftest.err 1>&5
9219 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9220 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9221 if diff conftest.exp conftest.er2 >/dev/null; then
9222 lt_cv_prog_compiler_static_works=yes
9225 lt_cv_prog_compiler_static_works=yes
9229 LDFLAGS=$save_LDFLAGS
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9233 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9235 if test yes = "$lt_cv_prog_compiler_static_works"; then
9238 lt_prog_compiler_static=
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9248 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9249 if ${lt_cv_prog_compiler_c_o+:} false; then :
9250 $as_echo_n "(cached) " >&6
9252 lt_cv_prog_compiler_c_o=no
9253 $RM -r conftest 2>/dev/null
9257 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9259 lt_compiler_flag="-o out/conftest2.$ac_objext"
9260 # Insert the option either (1) after the last *FLAGS variable, or
9261 # (2) before a word containing "conftest.", or (3) at the end.
9262 # Note that $ac_compile itself does not contain backslashes and begins
9263 # with a dollar sign (not a hyphen), so the echo should work correctly.
9264 lt_compile=`echo "$ac_compile" | $SED \
9265 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9266 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9267 -e 's:$: $lt_compiler_flag:'`
9268 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9269 (eval "$lt_compile" 2>out/conftest.err)
9271 cat out/conftest.err >&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9275 # The compiler can only warn and ignore the option if not recognized
9276 # So say no if there are warnings
9277 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9278 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9279 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9280 lt_cv_prog_compiler_c_o=yes
9285 # SGI C++ compiler will create directory out/ii_files/ for
9286 # template instantiation
9287 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9288 $RM out/* && rmdir out
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9295 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9303 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9304 if ${lt_cv_prog_compiler_c_o+:} false; then :
9305 $as_echo_n "(cached) " >&6
9307 lt_cv_prog_compiler_c_o=no
9308 $RM -r conftest 2>/dev/null
9312 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9314 lt_compiler_flag="-o out/conftest2.$ac_objext"
9315 # Insert the option either (1) after the last *FLAGS variable, or
9316 # (2) before a word containing "conftest.", or (3) at the end.
9317 # Note that $ac_compile itself does not contain backslashes and begins
9318 # with a dollar sign (not a hyphen), so the echo should work correctly.
9319 lt_compile=`echo "$ac_compile" | $SED \
9320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9322 -e 's:$: $lt_compiler_flag:'`
9323 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9324 (eval "$lt_compile" 2>out/conftest.err)
9326 cat out/conftest.err >&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9330 # The compiler can only warn and ignore the option if not recognized
9331 # So say no if there are warnings
9332 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9333 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9334 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9335 lt_cv_prog_compiler_c_o=yes
9340 # SGI C++ compiler will create directory out/ii_files/ for
9341 # template instantiation
9342 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9343 $RM out/* && rmdir out
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9350 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9355 hard_links=nottested
9356 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9357 # do not overwrite the value of need_locks provided by the user
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9359 $as_echo_n "checking if we can lock with hard links... " >&6; }
9362 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9364 ln conftest.a conftest.b 2>&5 || hard_links=no
9365 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9367 $as_echo "$hard_links" >&6; }
9368 if test no = "$hard_links"; then
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9370 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9383 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9386 allow_undefined_flag=
9387 always_export_symbols=no
9389 archive_expsym_cmds=
9390 compiler_needs_object=no
9391 enable_shared_with_static_runtimes=no
9392 export_dynamic_flag_spec=
9393 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9394 hardcode_automatic=no
9396 hardcode_direct_absolute=no
9397 hardcode_libdir_flag_spec=
9398 hardcode_libdir_separator=
9400 hardcode_shlibpath_var=unsupported
9402 link_all_deplibs=unknown
9405 old_archive_from_new_cmds=
9406 old_archive_from_expsyms_cmds=
9407 thread_safe_flag_spec=
9408 whole_archive_flag_spec=
9409 # include_expsyms should be a list of space-separated symbols to be *always*
9410 # included in the symbol list
9412 # exclude_expsyms can be an extended regexp of symbols to exclude
9413 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9414 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9415 # as well as any symbol that contains 'd'.
9416 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9417 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9418 # platforms (ab)use it in PIC code, but their linkers get confused if
9419 # the symbol is explicitly referenced. Since portable code cannot
9420 # rely on this symbol name, it's probably fine to never include it in
9421 # preloaded symbol tables.
9422 # Exclude shared library initialization/finalization symbols.
9423 extract_expsyms_cmds=
9426 cygwin* | mingw* | pw32* | cegcc*)
9427 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9428 # When not using gcc, we currently assume that we are using
9429 # Microsoft Visual C++.
9430 if test yes != "$GCC"; then
9435 # we just hope/assume this is gcc and not c89 (= MSVC++)
9445 # On some targets, GNU ld is compatible enough with the native linker
9446 # that we're better off using the native interface for both.
9447 lt_use_gnu_ld_interface=no
9448 if test yes = "$with_gnu_ld"; then
9451 # The AIX port of GNU ld has always aspired to compatibility
9452 # with the native linker. However, as the warning in the GNU ld
9453 # block says, versions before 2.19.5* couldn't really create working
9454 # shared libraries, regardless of the interface used.
9455 case `$LD -v 2>&1` in
9456 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9457 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9458 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9460 lt_use_gnu_ld_interface=yes
9465 lt_use_gnu_ld_interface=yes
9470 if test yes = "$lt_use_gnu_ld_interface"; then
9471 # If archive_cmds runs LD, not CC, wlarc should be empty
9474 # Set some defaults for GNU ld with shared library support. These
9475 # are reset later if shared libraries are not supported. Putting them
9476 # here allows them to be overridden if necessary.
9477 runpath_var=LD_RUN_PATH
9478 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9479 export_dynamic_flag_spec='$wl--export-dynamic'
9480 # ancient GNU ld didn't support --whole-archive et. al.
9481 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9482 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9484 whole_archive_flag_spec=
9486 supports_anon_versioning=no
9487 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9488 *GNU\ gold*) supports_anon_versioning=yes ;;
9489 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9490 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9491 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9492 *\ 2.11.*) ;; # other 2.11 versions
9493 *) supports_anon_versioning=yes ;;
9496 # See if GNU ld supports shared libraries.
9499 # On AIX/PPC, the GNU linker is very broken
9500 if test ia64 != "$host_cpu"; then
9504 *** Warning: the GNU linker, at least up to release 2.19, is reported
9505 *** to be unable to reliably create shared libraries on AIX.
9506 *** Therefore, libtool is disabling shared libraries support. If you
9507 *** really care for shared libraries, you may want to install binutils
9508 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9509 *** You will then need to restart the configuration process.
9518 # see comment about AmigaOS4 .so support
9519 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9520 archive_expsym_cmds=''
9523 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)'
9524 hardcode_libdir_flag_spec='-L$libdir'
9525 hardcode_minus_L=yes
9531 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9532 allow_undefined_flag=unsupported
9533 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9534 # support --undefined. This deserves some investigation. FIXME
9535 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9541 cygwin* | mingw* | pw32* | cegcc*)
9542 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9543 # as there is no search path for DLLs.
9544 hardcode_libdir_flag_spec='-L$libdir'
9545 export_dynamic_flag_spec='$wl--export-all-symbols'
9546 allow_undefined_flag=unsupported
9547 always_export_symbols=no
9548 enable_shared_with_static_runtimes=yes
9549 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'
9550 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9552 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9553 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9554 # If the export-symbols file already is a .def file, use it as
9555 # is; otherwise, prepend EXPORTS...
9556 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9557 cp $export_symbols $output_objdir/$soname.def;
9559 echo EXPORTS > $output_objdir/$soname.def;
9560 cat $export_symbols >> $output_objdir/$soname.def;
9562 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9569 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9570 link_all_deplibs=yes
9574 hardcode_libdir_flag_spec='-L$libdir'
9575 hardcode_minus_L=yes
9576 allow_undefined_flag=unsupported
9578 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9579 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9580 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9581 $ECHO EXPORTS >> $output_objdir/$libname.def~
9582 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9583 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9584 emximp -o $lib $output_objdir/$libname.def'
9585 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9586 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9587 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9588 $ECHO EXPORTS >> $output_objdir/$libname.def~
9590 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9591 prefix_cmds="$prefix_cmds -e 1d";
9593 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9594 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9595 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9596 emximp -o $lib $output_objdir/$libname.def'
9597 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9598 enable_shared_with_static_runtimes=yes
9603 hardcode_shlibpath_var=no
9604 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9605 export_dynamic_flag_spec='$wl-E'
9606 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9607 # Instead, shared libraries are loaded at an image base (0x10000000 by
9608 # default) and relocated if they conflict, which is a slow very memory
9609 # consuming and fragmenting process. To avoid this, we pick a random,
9610 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9611 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9612 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9613 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'
9616 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9618 if test linux-dietlibc = "$host_os"; then
9619 case $cc_basename in
9620 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9623 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9624 && test no = "$tmp_diet"
9626 tmp_addflag=' $pic_flag'
9627 tmp_sharedflag='-shared'
9628 case $cc_basename,$host_cpu in
9629 pgcc*) # Portland Group C compiler
9630 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'
9631 tmp_addflag=' $pic_flag'
9633 pgf77* | pgf90* | pgf95* | pgfortran*)
9634 # Portland Group f77 and f90 compilers
9635 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'
9636 tmp_addflag=' $pic_flag -Mnomain' ;;
9637 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9638 tmp_addflag=' -i_dynamic' ;;
9639 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9640 tmp_addflag=' -i_dynamic -nofor_main' ;;
9641 ifc* | ifort*) # Intel Fortran compiler
9642 tmp_addflag=' -nofor_main' ;;
9643 lf95*) # Lahey Fortran 8.1
9644 whole_archive_flag_spec=
9645 tmp_sharedflag='--shared' ;;
9646 nagfor*) # NAGFOR 5.3
9647 tmp_sharedflag='-Wl,-shared' ;;
9648 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9649 tmp_sharedflag='-qmkshrobj'
9651 nvcc*) # Cuda Compiler Driver 2.2
9652 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'
9653 compiler_needs_object=yes
9656 case `$CC -V 2>&1 | sed 5q` in
9657 *Sun\ C*) # Sun C 5.9
9658 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'
9659 compiler_needs_object=yes
9660 tmp_sharedflag='-G' ;;
9661 *Sun\ F*) # Sun Fortran 8.3
9662 tmp_sharedflag='-G' ;;
9664 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9666 if test yes = "$supports_anon_versioning"; then
9667 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9668 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9669 echo "local: *; };" >> $output_objdir/$libname.ver~
9670 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9673 case $cc_basename in
9675 export_dynamic_flag_spec='-rdynamic'
9677 xlf* | bgf* | bgxlf* | mpixlf*)
9678 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9679 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9680 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9681 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9682 if test yes = "$supports_anon_versioning"; then
9683 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9684 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9685 echo "local: *; };" >> $output_objdir/$libname.ver~
9686 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9696 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9697 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9700 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9701 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9706 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9710 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9711 *** create shared libraries on Solaris systems. Therefore, libtool
9712 *** is disabling shared libraries support. We urge you to upgrade GNU
9713 *** binutils to release 2.9.1 or newer. Another option is to modify
9714 *** your PATH or compiler configuration so that the native linker is
9715 *** used, and then restart.
9718 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9719 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9720 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9726 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9727 case `$LD -v 2>&1` in
9728 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9732 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9733 *** reliably create shared libraries on SCO systems. Therefore, libtool
9734 *** is disabling shared libraries support. We urge you to upgrade GNU
9735 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9736 *** your PATH or compiler configuration so that the native linker is
9737 *** used, and then restart.
9742 # For security reasons, it is highly recommended that you always
9743 # use absolute paths for naming shared libraries, and exclude the
9744 # DT_RUNPATH tag from executables and libraries. But doing so
9745 # requires that you compile everything twice, which is a pain.
9746 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9747 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9748 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9749 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9758 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9761 hardcode_shlibpath_var=no
9765 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9766 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9767 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9774 if test no = "$ld_shlibs"; then
9776 hardcode_libdir_flag_spec=
9777 export_dynamic_flag_spec=
9778 whole_archive_flag_spec=
9781 # PORTME fill in a description of your system's linker (not GNU ld)
9784 allow_undefined_flag=unsupported
9785 always_export_symbols=yes
9786 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'
9787 # Note: this linker hardcodes the directories in LIBPATH if there
9788 # are no directories specified by -L.
9789 hardcode_minus_L=yes
9790 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9791 # Neither direct hardcoding nor static linking is supported with a
9793 hardcode_direct=unsupported
9798 if test ia64 = "$host_cpu"; then
9799 # On IA64, the linker does run time linking by default, so we don't
9800 # have to do anything special.
9801 aix_use_runtimelinking=no
9802 exp_sym_flag='-Bexport'
9805 # If we're using GNU nm, then we don't want the "-C" option.
9806 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9807 # Without the "-l" option, or with the "-B" option, AIX nm treats
9808 # weak defined symbols like other global defined symbols, whereas
9809 # GNU nm marks them as "W".
9810 # While the 'weak' keyword is ignored in the Export File, we need
9811 # it in the Import File for the 'aix-soname' feature, so we have
9812 # to replace the "-B" option with "-P" for AIX nm.
9813 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9814 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9816 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9818 aix_use_runtimelinking=no
9820 # Test if we are trying to use run time linking or normal
9821 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9822 # have runtime linking enabled, and use it for executables.
9823 # For shared libraries, we enable/disable runtime linking
9824 # depending on the kind of the shared library created -
9825 # when "with_aix_soname,aix_use_runtimelinking" is:
9826 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9827 # "aix,yes" lib.so shared, rtl:yes, for executables
9828 # lib.a static archive
9829 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9830 # lib.a(lib.so.V) shared, rtl:no, for executables
9831 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9832 # lib.a(lib.so.V) shared, rtl:no
9833 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9834 # lib.a static archive
9835 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9836 for ld_flag in $LDFLAGS; do
9837 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9838 aix_use_runtimelinking=yes
9842 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9843 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9844 # so we don't have lib.a shared libs to link our executables.
9845 # We have to force runtime linking in this case.
9846 aix_use_runtimelinking=yes
9847 LDFLAGS="$LDFLAGS -Wl,-brtl"
9852 exp_sym_flag='-bexport'
9853 no_entry_flag='-bnoentry'
9856 # When large executables or shared objects are built, AIX ld can
9857 # have problems creating the table of contents. If linking a library
9858 # or program results in "error TOC overflow" add -mminimal-toc to
9859 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9860 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9864 hardcode_direct_absolute=yes
9865 hardcode_libdir_separator=':'
9866 link_all_deplibs=yes
9867 file_list_spec='$wl-f,'
9868 case $with_aix_soname,$aix_use_runtimelinking in
9869 aix,*) ;; # traditional, no import file
9870 svr4,* | *,yes) # use import file
9871 # The Import File defines what to hardcode.
9873 hardcode_direct_absolute=no
9877 if test yes = "$GCC"; then
9878 case $host_os in aix4.[012]|aix4.[012].*)
9879 # We only want to do this on AIX 4.2 and lower, the check
9880 # below for broken collect2 doesn't work under 4.3+
9881 collect2name=`$CC -print-prog-name=collect2`
9882 if test -f "$collect2name" &&
9883 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9885 # We have reworked collect2
9888 # We have old collect2
9889 hardcode_direct=unsupported
9890 # It fails to find uninstalled libraries when the uninstalled
9891 # path is not listed in the libpath. Setting hardcode_minus_L
9892 # to unsupported forces relinking
9893 hardcode_minus_L=yes
9894 hardcode_libdir_flag_spec='-L$libdir'
9895 hardcode_libdir_separator=
9899 shared_flag='-shared'
9900 if test yes = "$aix_use_runtimelinking"; then
9901 shared_flag="$shared_flag "'$wl-G'
9903 # Need to ensure runtime linking is disabled for the traditional
9904 # shared library, or the linker may eventually find shared libraries
9905 # /with/ Import File - we do not want to mix them.
9906 shared_flag_aix='-shared'
9907 shared_flag_svr4='-shared $wl-G'
9910 if test ia64 = "$host_cpu"; then
9911 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9912 # chokes on -Wl,-G. The following line is correct:
9915 if test yes = "$aix_use_runtimelinking"; then
9918 shared_flag='$wl-bM:SRE'
9920 shared_flag_aix='$wl-bM:SRE'
9921 shared_flag_svr4='$wl-G'
9925 export_dynamic_flag_spec='$wl-bexpall'
9926 # It seems that -bexpall does not export symbols beginning with
9927 # underscore (_), so it is better to generate a list of symbols to export.
9928 always_export_symbols=yes
9929 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9930 # Warning - without using the other runtime loading flags (-brtl),
9931 # -berok will link without error, but may produce a broken library.
9932 allow_undefined_flag='-berok'
9933 # Determine the default libpath from the value encoded in an
9935 if test set = "${lt_cv_aix_libpath+set}"; then
9936 aix_libpath=$lt_cv_aix_libpath
9938 if ${lt_cv_aix_libpath_+:} false; then :
9939 $as_echo_n "(cached) " >&6
9941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h. */
9952 if ac_fn_c_try_link "$LINENO"; then :
9954 lt_aix_libpath_sed='
9955 /Import File Strings/,/^$/ {
9957 s/^0 *\([^ ]*\) *$/\1/
9961 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9962 # Check for a 64-bit object if we didn't find anything.
9963 if test -z "$lt_cv_aix_libpath_"; then
9964 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9967 rm -f core conftest.err conftest.$ac_objext \
9968 conftest$ac_exeext conftest.$ac_ext
9969 if test -z "$lt_cv_aix_libpath_"; then
9970 lt_cv_aix_libpath_=/usr/lib:/lib
9975 aix_libpath=$lt_cv_aix_libpath_
9978 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9979 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9981 if test ia64 = "$host_cpu"; then
9982 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9983 allow_undefined_flag="-z nodefs"
9984 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"
9986 # Determine the default libpath from the value encoded in an
9988 if test set = "${lt_cv_aix_libpath+set}"; then
9989 aix_libpath=$lt_cv_aix_libpath
9991 if ${lt_cv_aix_libpath_+:} false; then :
9992 $as_echo_n "(cached) " >&6
9994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9995 /* end confdefs.h. */
10005 if ac_fn_c_try_link "$LINENO"; then :
10007 lt_aix_libpath_sed='
10008 /Import File Strings/,/^$/ {
10010 s/^0 *\([^ ]*\) *$/\1/
10014 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10015 # Check for a 64-bit object if we didn't find anything.
10016 if test -z "$lt_cv_aix_libpath_"; then
10017 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10020 rm -f core conftest.err conftest.$ac_objext \
10021 conftest$ac_exeext conftest.$ac_ext
10022 if test -z "$lt_cv_aix_libpath_"; then
10023 lt_cv_aix_libpath_=/usr/lib:/lib
10028 aix_libpath=$lt_cv_aix_libpath_
10031 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10032 # Warning - without using the other run time loading flags,
10033 # -berok will link without error, but may produce a broken library.
10034 no_undefined_flag=' $wl-bernotok'
10035 allow_undefined_flag=' $wl-berok'
10036 if test yes = "$with_gnu_ld"; then
10037 # We only use this code for GNU lds that support --whole-archive.
10038 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10040 # Exported symbols can be pulled into shared objects from archives
10041 whole_archive_flag_spec='$convenience'
10043 archive_cmds_need_lc=yes
10044 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10045 # -brtl affects multiple linker settings, -berok does not and is overridden later
10046 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10047 if test svr4 != "$with_aix_soname"; then
10048 # This is similar to how AIX traditionally builds its shared libraries.
10049 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10051 if test aix != "$with_aix_soname"; then
10052 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10054 # used by -dlpreopen to get the symbols
10055 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10057 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10065 # see comment about AmigaOS4 .so support
10066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10067 archive_expsym_cmds=''
10070 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)'
10071 hardcode_libdir_flag_spec='-L$libdir'
10072 hardcode_minus_L=yes
10078 export_dynamic_flag_spec=-rdynamic
10081 cygwin* | mingw* | pw32* | cegcc*)
10082 # When not using gcc, we currently assume that we are using
10083 # Microsoft Visual C++.
10084 # hardcode_libdir_flag_spec is actually meaningless, as there is
10085 # no search path for DLLs.
10086 case $cc_basename in
10089 hardcode_libdir_flag_spec=' '
10090 allow_undefined_flag=unsupported
10091 always_export_symbols=yes
10093 # Tell ltmain to make .lib files, not .a files.
10095 # Tell ltmain to make .dll files, not .so files.
10097 # FIXME: Setting linknames here is a bad hack.
10098 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10099 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10100 cp "$export_symbols" "$output_objdir/$soname.def";
10101 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10103 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10105 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10107 # The linker will not automatically build a static lib if we build a DLL.
10108 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10109 enable_shared_with_static_runtimes=yes
10110 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10111 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10113 old_postinstall_cmds='chmod 644 $oldlib'
10114 postlink_cmds='lt_outputfile="@OUTPUT@"~
10115 lt_tool_outputfile="@TOOL_OUTPUT@"~
10116 case $lt_outputfile in
10119 lt_outputfile=$lt_outputfile.exe
10120 lt_tool_outputfile=$lt_tool_outputfile.exe
10123 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10124 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10125 $RM "$lt_outputfile.manifest";
10129 # Assume MSVC wrapper
10130 hardcode_libdir_flag_spec=' '
10131 allow_undefined_flag=unsupported
10132 # Tell ltmain to make .lib files, not .a files.
10134 # Tell ltmain to make .dll files, not .so files.
10136 # FIXME: Setting linknames here is a bad hack.
10137 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10138 # The linker will automatically build a .lib file if we build a DLL.
10139 old_archive_from_new_cmds='true'
10140 # FIXME: Should let the user specify the lib program.
10141 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10142 enable_shared_with_static_runtimes=yes
10147 darwin* | rhapsody*)
10150 archive_cmds_need_lc=no
10152 hardcode_automatic=yes
10153 hardcode_shlibpath_var=unsupported
10154 if test yes = "$lt_cv_ld_force_load"; then
10155 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\"`'
10158 whole_archive_flag_spec=''
10160 link_all_deplibs=yes
10161 allow_undefined_flag=$_lt_dar_allow_undefined
10162 case $cc_basename in
10163 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10164 *) _lt_dar_can_shared=$GCC ;;
10166 if test yes = "$_lt_dar_can_shared"; then
10167 output_verbose_link_cmd=func_echo_all
10168 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10169 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10170 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"
10171 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"
10180 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10181 hardcode_libdir_flag_spec='-L$libdir'
10182 hardcode_shlibpath_var=no
10185 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10186 # support. Future versions do this automatically, but an explicit c++rt0.o
10187 # does not break anything, and helps significantly (at the cost of a little
10190 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10191 hardcode_libdir_flag_spec='-R$libdir'
10192 hardcode_direct=yes
10193 hardcode_shlibpath_var=no
10196 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10198 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10199 hardcode_direct=yes
10200 hardcode_minus_L=yes
10201 hardcode_shlibpath_var=no
10204 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10205 freebsd* | dragonfly*)
10206 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10207 hardcode_libdir_flag_spec='-R$libdir'
10208 hardcode_direct=yes
10209 hardcode_shlibpath_var=no
10213 if test yes = "$GCC"; then
10214 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10216 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10218 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10219 hardcode_libdir_separator=:
10220 hardcode_direct=yes
10222 # hardcode_minus_L: Not really in the search PATH,
10223 # but as the default location of the library.
10224 hardcode_minus_L=yes
10225 export_dynamic_flag_spec='$wl-E'
10229 if test yes,no = "$GCC,$with_gnu_ld"; then
10230 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10232 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10234 if test no = "$with_gnu_ld"; then
10235 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10236 hardcode_libdir_separator=:
10237 hardcode_direct=yes
10238 hardcode_direct_absolute=yes
10239 export_dynamic_flag_spec='$wl-E'
10240 # hardcode_minus_L: Not really in the search PATH,
10241 # but as the default location of the library.
10242 hardcode_minus_L=yes
10247 if test yes,no = "$GCC,$with_gnu_ld"; then
10250 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10253 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10256 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10262 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10265 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10269 # Older versions of the 11.00 compiler do not understand -b yet
10270 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10272 $as_echo_n "checking if $CC understands -b... " >&6; }
10273 if ${lt_cv_prog_compiler__b+:} false; then :
10274 $as_echo_n "(cached) " >&6
10276 lt_cv_prog_compiler__b=no
10277 save_LDFLAGS=$LDFLAGS
10278 LDFLAGS="$LDFLAGS -b"
10279 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10280 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10281 # The linker can only warn and ignore the option if not recognized
10282 # So say no if there are warnings
10283 if test -s conftest.err; then
10284 # Append any errors to the config.log.
10285 cat conftest.err 1>&5
10286 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10287 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10288 if diff conftest.exp conftest.er2 >/dev/null; then
10289 lt_cv_prog_compiler__b=yes
10292 lt_cv_prog_compiler__b=yes
10296 LDFLAGS=$save_LDFLAGS
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10300 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10302 if test yes = "$lt_cv_prog_compiler__b"; then
10303 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10305 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10311 if test no = "$with_gnu_ld"; then
10312 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10313 hardcode_libdir_separator=:
10318 hardcode_shlibpath_var=no
10321 hardcode_direct=yes
10322 hardcode_direct_absolute=yes
10323 export_dynamic_flag_spec='$wl-E'
10325 # hardcode_minus_L: Not really in the search PATH,
10326 # but as the default location of the library.
10327 hardcode_minus_L=yes
10333 irix5* | irix6* | nonstopux*)
10334 if test yes = "$GCC"; then
10335 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'
10336 # Try to use the -exported_symbol ld option, if it does not
10337 # work, assume that -exports_file does not work either and
10338 # implicitly export all symbols.
10339 # This should be the same for all languages, so no per-tag cache variable.
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10341 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10342 if ${lt_cv_irix_exported_symbol+:} false; then :
10343 $as_echo_n "(cached) " >&6
10345 save_LDFLAGS=$LDFLAGS
10346 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348 /* end confdefs.h. */
10349 int foo (void) { return 0; }
10351 if ac_fn_c_try_link "$LINENO"; then :
10352 lt_cv_irix_exported_symbol=yes
10354 lt_cv_irix_exported_symbol=no
10356 rm -f core conftest.err conftest.$ac_objext \
10357 conftest$ac_exeext conftest.$ac_ext
10358 LDFLAGS=$save_LDFLAGS
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10361 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10362 if test yes = "$lt_cv_irix_exported_symbol"; then
10363 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'
10366 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'
10367 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'
10369 archive_cmds_need_lc='no'
10370 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10371 hardcode_libdir_separator=:
10373 link_all_deplibs=yes
10377 case $cc_basename in
10379 # Fabrice Bellard et al's Tiny C Compiler
10381 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10387 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10388 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10390 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10392 hardcode_libdir_flag_spec='-R$libdir'
10393 hardcode_direct=yes
10394 hardcode_shlibpath_var=no
10398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10399 hardcode_direct=yes
10400 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10401 hardcode_libdir_separator=:
10402 hardcode_shlibpath_var=no
10408 openbsd* | bitrig*)
10409 if test -f /usr/libexec/ld.so; then
10410 hardcode_direct=yes
10411 hardcode_shlibpath_var=no
10412 hardcode_direct_absolute=yes
10413 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10414 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10415 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10416 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10417 export_dynamic_flag_spec='$wl-E'
10419 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10420 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10428 hardcode_libdir_flag_spec='-L$libdir'
10429 hardcode_minus_L=yes
10430 allow_undefined_flag=unsupported
10432 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10433 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10434 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10435 $ECHO EXPORTS >> $output_objdir/$libname.def~
10436 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10437 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10438 emximp -o $lib $output_objdir/$libname.def'
10439 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10440 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10441 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10442 $ECHO EXPORTS >> $output_objdir/$libname.def~
10443 prefix_cmds="$SED"~
10444 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10445 prefix_cmds="$prefix_cmds -e 1d";
10447 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10448 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10449 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10450 emximp -o $lib $output_objdir/$libname.def'
10451 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10452 enable_shared_with_static_runtimes=yes
10456 if test yes = "$GCC"; then
10457 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10458 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'
10460 allow_undefined_flag=' -expect_unresolved \*'
10461 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'
10463 archive_cmds_need_lc='no'
10464 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10465 hardcode_libdir_separator=:
10468 osf4* | osf5*) # as osf3* with the addition of -msym flag
10469 if test yes = "$GCC"; then
10470 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10471 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'
10472 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10474 allow_undefined_flag=' -expect_unresolved \*'
10475 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'
10476 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~
10477 $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'
10479 # Both c and cxx compiler support -rpath directly
10480 hardcode_libdir_flag_spec='-rpath $libdir'
10482 archive_cmds_need_lc='no'
10483 hardcode_libdir_separator=:
10487 no_undefined_flag=' -z defs'
10488 if test yes = "$GCC"; then
10490 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10491 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10492 $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'
10494 case `$CC -V 2>&1` in
10497 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10498 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10499 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10503 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10504 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10505 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10509 hardcode_libdir_flag_spec='-R$libdir'
10510 hardcode_shlibpath_var=no
10512 solaris2.[0-5] | solaris2.[0-5].*) ;;
10514 # The compiler driver will combine and reorder linker options,
10515 # but understands '-z linker_flag'. GCC discards it without '$wl',
10516 # but is careful enough not to reorder.
10517 # Supported since Solaris 2.6 (maybe 2.5.1?)
10518 if test yes = "$GCC"; then
10519 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10521 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10525 link_all_deplibs=yes
10529 if test sequent = "$host_vendor"; then
10530 # Use $CC to link under sequent, because it throws in some extra .o
10531 # files that make .init and .fini sections work.
10532 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10534 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10536 hardcode_libdir_flag_spec='-L$libdir'
10537 hardcode_direct=yes
10538 hardcode_minus_L=yes
10539 hardcode_shlibpath_var=no
10543 case $host_vendor in
10545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10546 hardcode_direct=yes # is this really true???
10549 ## LD is ld it makes a PLAMLIB
10550 ## CC just makes a GrossModule.
10551 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10552 reload_cmds='$CC -r -o $output$reload_objs'
10556 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10557 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10560 runpath_var='LD_RUN_PATH'
10561 hardcode_shlibpath_var=no
10565 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10566 hardcode_shlibpath_var=no
10567 export_dynamic_flag_spec='-Bexport'
10571 if test -d /usr/nec; then
10572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10573 hardcode_shlibpath_var=no
10574 runpath_var=LD_RUN_PATH
10575 hardcode_runpath_var=yes
10580 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10581 no_undefined_flag='$wl-z,text'
10582 archive_cmds_need_lc=no
10583 hardcode_shlibpath_var=no
10584 runpath_var='LD_RUN_PATH'
10586 if test yes = "$GCC"; then
10587 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10588 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10590 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10591 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10595 sysv5* | sco3.2v5* | sco5v6*)
10596 # Note: We CANNOT use -z defs as we might desire, because we do not
10597 # link with -lc, and that would cause any symbols used from libc to
10598 # always be unresolved, which means just about no library would
10599 # ever link correctly. If we're not using GNU ld we use -z text
10600 # though, which does catch some bad symbols but isn't as heavy-handed
10602 no_undefined_flag='$wl-z,text'
10603 allow_undefined_flag='$wl-z,nodefs'
10604 archive_cmds_need_lc=no
10605 hardcode_shlibpath_var=no
10606 hardcode_libdir_flag_spec='$wl-R,$libdir'
10607 hardcode_libdir_separator=':'
10608 link_all_deplibs=yes
10609 export_dynamic_flag_spec='$wl-Bexport'
10610 runpath_var='LD_RUN_PATH'
10612 if test yes = "$GCC"; then
10613 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10614 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10616 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10617 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10622 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10623 hardcode_libdir_flag_spec='-L$libdir'
10624 hardcode_shlibpath_var=no
10632 if test sni = "$host_vendor"; then
10634 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10635 export_dynamic_flag_spec='$wl-Blargedynsym'
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10642 $as_echo "$ld_shlibs" >&6; }
10643 test no = "$ld_shlibs" && can_build_shared=no
10645 with_gnu_ld=$with_gnu_ld
10662 # Do we need to explicitly link libc?
10664 case "x$archive_cmds_need_lc" in
10666 # Assume -lc should be added
10667 archive_cmds_need_lc=yes
10669 if test yes,yes = "$GCC,$enable_shared"; then
10670 case $archive_cmds in
10672 # FIXME: we may have to deal with multi-command sequences.
10675 # Test whether the compiler implicitly links with -lc since on some
10676 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10677 # to ld, don't add -lc before -lgcc.
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10679 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10680 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10681 $as_echo_n "(cached) " >&6
10684 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10687 (eval $ac_compile) 2>&5
10689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10690 test $ac_status = 0; } 2>conftest.err; then
10693 libobjs=conftest.$ac_objext
10695 wl=$lt_prog_compiler_wl
10696 pic_flag=$lt_prog_compiler_pic
10702 lt_save_allow_undefined_flag=$allow_undefined_flag
10703 allow_undefined_flag=
10704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10705 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10708 test $ac_status = 0; }
10710 lt_cv_archive_cmds_need_lc=no
10712 lt_cv_archive_cmds_need_lc=yes
10714 allow_undefined_flag=$lt_save_allow_undefined_flag
10716 cat conftest.err 1>&5
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10722 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10723 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10882 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10884 if test yes = "$GCC"; then
10886 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10887 *) lt_awk_arg='/^libraries:/' ;;
10890 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10891 *) lt_sed_strip_eq='s|=/|/|g' ;;
10893 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10894 case $lt_search_path_spec in
10896 # if the path contains ";" then we assume it to be the separator
10897 # otherwise default to the standard path separator (i.e. ":") - it is
10898 # assumed that no part of a normal pathname contains ";" but that should
10899 # okay in the real world where ";" in dirpaths is itself problematic.
10900 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10903 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10906 # Ok, now we have the path, separated by spaces, we can step through it
10907 # and add multilib dir if necessary...
10908 lt_tmp_lt_search_path_spec=
10909 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10910 # ...but if some path component already ends with the multilib dir we assume
10911 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10912 case "$lt_multi_os_dir; $lt_search_path_spec " in
10913 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10917 for lt_sys_path in $lt_search_path_spec; do
10918 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10919 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10920 elif test -n "$lt_multi_os_dir"; then
10921 test -d "$lt_sys_path" && \
10922 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10925 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10926 BEGIN {RS = " "; FS = "/|\n";} {
10929 for (lt_i = NF; lt_i > 0; lt_i--) {
10930 if ($lt_i != "" && $lt_i != ".") {
10931 if ($lt_i == "..") {
10934 if (lt_count == 0) {
10935 lt_foo = "/" $lt_i lt_foo;
10942 if (lt_foo != "") { lt_freq[lt_foo]++; }
10943 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10945 # AWK program above erroneously prepends '/' to C:/dos/paths
10948 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10949 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10951 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10953 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10955 library_names_spec=
10956 libname_spec='lib$name'
10960 postuninstall_cmds=
10964 shlibpath_overrides_runpath=unknown
10966 dynamic_linker="$host_os ld.so"
10967 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10968 need_lib_prefix=unknown
10969 hardcode_into_libs=no
10971 # when you set need_version to no, make sure it does not cause -set_version
10972 # flags to be left without arguments
10973 need_version=unknown
10979 version_type=linux # correct to gnu/linux during the next big refactor
10980 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10981 shlibpath_var=LIBPATH
10983 # AIX 3 has no versioning support, so we append a major version to the name.
10984 soname_spec='$libname$release$shared_ext$major'
10988 version_type=linux # correct to gnu/linux during the next big refactor
10991 hardcode_into_libs=yes
10992 if test ia64 = "$host_cpu"; then
10993 # AIX 5 supports IA64
10994 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10995 shlibpath_var=LD_LIBRARY_PATH
10997 # With GCC up to 2.95.x, collect2 would create an import file
10998 # for dependence libraries. The import file would start with
10999 # the line '#! .'. This would cause the generated library to
11000 # depend on '.', always an invalid library. This was fixed in
11001 # development snapshots of GCC prior to 3.0.
11003 aix4 | aix4.[01] | aix4.[01].*)
11004 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11006 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11009 can_build_shared=no
11013 # Using Import Files as archive members, it is possible to support
11014 # filename-based versioning of shared library archives on AIX. While
11015 # this would work for both with and without runtime linking, it will
11016 # prevent static linking of such archives. So we do filename-based
11017 # shared library versioning with .so extension only, which is used
11018 # when both runtime linking and shared linking is enabled.
11019 # Unfortunately, runtime linking may impact performance, so we do
11020 # not want this to be the default eventually. Also, we use the
11021 # versioned .so libs for executables only if there is the -brtl
11022 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11023 # To allow for filename-based versioning support, we need to create
11024 # libNAME.so.V as an archive file, containing:
11025 # *) an Import File, referring to the versioned filename of the
11026 # archive as well as the shared archive member, telling the
11027 # bitwidth (32 or 64) of that shared object, and providing the
11028 # list of exported symbols of that shared object, eventually
11029 # decorated with the 'weak' keyword
11030 # *) the shared object with the F_LOADONLY flag set, to really avoid
11031 # it being seen by the linker.
11032 # At run time we better use the real file rather than another symlink,
11033 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11035 case $with_aix_soname,$aix_use_runtimelinking in
11036 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11037 # soname into executable. Probably we can add versioning support to
11038 # collect2, so additional links can be useful in future.
11039 aix,yes) # traditional libtool
11040 dynamic_linker='AIX unversionable lib.so'
11041 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11042 # instead of lib<name>.a to let people know that these are not
11043 # typical AIX shared libraries.
11044 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11046 aix,no) # traditional AIX only
11047 dynamic_linker='AIX lib.a(lib.so.V)'
11048 # We preserve .a as extension for shared libraries through AIX4.2
11049 # and later when we are not doing run time linking.
11050 library_names_spec='$libname$release.a $libname.a'
11051 soname_spec='$libname$release$shared_ext$major'
11053 svr4,*) # full svr4 only
11054 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11055 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11056 # We do not specify a path in Import Files, so LIBPATH fires.
11057 shlibpath_overrides_runpath=yes
11059 *,yes) # both, prefer svr4
11060 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11061 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11062 # unpreferred sharedlib libNAME.a needs extra handling
11063 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11064 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11065 # We do not specify a path in Import Files, so LIBPATH fires.
11066 shlibpath_overrides_runpath=yes
11068 *,no) # both, prefer aix
11069 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11070 library_names_spec='$libname$release.a $libname.a'
11071 soname_spec='$libname$release$shared_ext$major'
11072 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11073 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11074 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11077 shlibpath_var=LIBPATH
11084 # Since July 2007 AmigaOS4 officially supports .so libraries.
11085 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11086 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11089 library_names_spec='$libname.ixlibrary $libname.a'
11090 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11091 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11097 library_names_spec='$libname$shared_ext'
11098 dynamic_linker="$host_os ld.so"
11099 shlibpath_var=LIBRARY_PATH
11103 version_type=linux # correct to gnu/linux during the next big refactor
11105 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11106 soname_spec='$libname$release$shared_ext$major'
11107 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11108 shlibpath_var=LD_LIBRARY_PATH
11109 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11110 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11111 # the default ld.so.conf also contains /usr/contrib/lib and
11112 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11113 # libtool to hard-code these into programs
11116 cygwin* | mingw* | pw32* | cegcc*)
11117 version_type=windows
11122 case $GCC,$cc_basename in
11125 library_names_spec='$libname.dll.a'
11126 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11127 postinstall_cmds='base_file=`basename \$file`~
11128 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11129 dldir=$destdir/`dirname \$dlpath`~
11130 test -d \$dldir || mkdir -p \$dldir~
11131 $install_prog $dir/$dlname \$dldir/$dlname~
11132 chmod a+x \$dldir/$dlname~
11133 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11134 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11136 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11137 dlpath=$dir/\$dldll~
11139 shlibpath_overrides_runpath=yes
11143 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11144 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11146 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11149 # MinGW DLLs use traditional 'lib' prefix
11150 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11153 # pw32 DLLs use 'pw' prefix rather than 'lib'
11154 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11157 dynamic_linker='Win32 ld.exe'
11162 libname_spec='$name'
11163 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11164 library_names_spec='$libname.dll.lib'
11168 sys_lib_search_path_spec=
11171 for lt_path in $LIB
11174 # Let DOS variable expansion print the short 8.3 style file name.
11175 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11176 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11179 # Convert to MSYS style.
11180 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11183 # Convert to unix form, then to dos form, then back to unix form
11184 # but this time dos style (no spaces!) so that the unix form looks
11185 # like /cygdrive/c/PROGRA~1:/cygdr...
11186 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11187 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11188 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11191 sys_lib_search_path_spec=$LIB
11192 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11193 # It is most probably a Windows format PATH.
11194 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11196 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11198 # FIXME: find the short name or the path components, as spaces are
11199 # common. (e.g. "Program Files" -> "PROGRA~1")
11203 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11204 postinstall_cmds='base_file=`basename \$file`~
11205 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11206 dldir=$destdir/`dirname \$dlpath`~
11207 test -d \$dldir || mkdir -p \$dldir~
11208 $install_prog $dir/$dlname \$dldir/$dlname'
11209 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11210 dlpath=$dir/\$dldll~
11212 shlibpath_overrides_runpath=yes
11213 dynamic_linker='Win32 link.exe'
11217 # Assume MSVC wrapper
11218 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11219 dynamic_linker='Win32 ld.exe'
11222 # FIXME: first we should search . and the directory the executable is in
11226 darwin* | rhapsody*)
11227 dynamic_linker="$host_os dyld"
11228 version_type=darwin
11231 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11232 soname_spec='$libname$release$major$shared_ext'
11233 shlibpath_overrides_runpath=yes
11234 shlibpath_var=DYLD_LIBRARY_PATH
11235 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11237 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11238 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11242 version_type=linux # correct to gnu/linux during the next big refactor
11245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11246 soname_spec='$libname$release$shared_ext$major'
11247 shlibpath_var=LD_LIBRARY_PATH
11250 freebsd* | dragonfly*)
11251 # DragonFly does not have aout. When/if they implement a new
11252 # versioning mechanism, adjust this.
11253 if test -x /usr/bin/objformat; then
11254 objformat=`/usr/bin/objformat`
11257 freebsd[23].*) objformat=aout ;;
11258 *) objformat=elf ;;
11261 version_type=freebsd-$objformat
11262 case $version_type in
11264 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11265 soname_spec='$libname$release$shared_ext$major'
11270 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11274 shlibpath_var=LD_LIBRARY_PATH
11277 shlibpath_overrides_runpath=yes
11279 freebsd3.[01]* | freebsdelf3.[01]*)
11280 shlibpath_overrides_runpath=yes
11281 hardcode_into_libs=yes
11283 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11284 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11285 shlibpath_overrides_runpath=no
11286 hardcode_into_libs=yes
11288 *) # from 4.6 on, and DragonFly
11289 shlibpath_overrides_runpath=yes
11290 hardcode_into_libs=yes
11296 version_type=linux # correct to gnu/linux during the next big refactor
11299 dynamic_linker="$host_os runtime_loader"
11300 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11301 soname_spec='$libname$release$shared_ext$major'
11302 shlibpath_var=LIBRARY_PATH
11303 shlibpath_overrides_runpath=no
11304 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11305 hardcode_into_libs=yes
11308 hpux9* | hpux10* | hpux11*)
11309 # Give a soname corresponding to the major version so that dld.sl refuses to
11310 # link against other versions.
11317 hardcode_into_libs=yes
11318 dynamic_linker="$host_os dld.so"
11319 shlibpath_var=LD_LIBRARY_PATH
11320 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11321 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11322 soname_spec='$libname$release$shared_ext$major'
11323 if test 32 = "$HPUX_IA64_MODE"; then
11324 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11325 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11327 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11328 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11333 hardcode_into_libs=yes
11334 dynamic_linker="$host_os dld.sl"
11335 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11336 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11338 soname_spec='$libname$release$shared_ext$major'
11339 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11340 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11344 dynamic_linker="$host_os dld.sl"
11345 shlibpath_var=SHLIB_PATH
11346 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11347 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11348 soname_spec='$libname$release$shared_ext$major'
11351 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11352 postinstall_cmds='chmod 555 $lib'
11353 # or fails outright, so override atomically:
11354 install_override_mode=555
11358 version_type=linux # correct to gnu/linux during the next big refactor
11361 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11362 soname_spec='$libname$release$shared_ext$major'
11363 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11364 shlibpath_var=LD_LIBRARY_PATH
11365 shlibpath_overrides_runpath=no
11366 hardcode_into_libs=yes
11369 irix5* | irix6* | nonstopux*)
11371 nonstopux*) version_type=nonstopux ;;
11373 if test yes = "$lt_cv_prog_gnu_ld"; then
11374 version_type=linux # correct to gnu/linux during the next big refactor
11381 soname_spec='$libname$release$shared_ext$major'
11382 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11384 irix5* | nonstopux*)
11385 libsuff= shlibsuff=
11388 case $LD in # libtool.m4 will add one of these switches to LD
11389 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11390 libsuff= shlibsuff= libmagic=32-bit;;
11391 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11392 libsuff=32 shlibsuff=N32 libmagic=N32;;
11393 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11394 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11395 *) libsuff= shlibsuff= libmagic=never-match;;
11399 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11400 shlibpath_overrides_runpath=no
11401 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11402 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11403 hardcode_into_libs=yes
11406 # No shared lib support for Linux oldld, aout, or coff.
11407 linux*oldld* | linux*aout* | linux*coff*)
11412 version_type=none # Android doesn't support versioned libraries.
11415 library_names_spec='$libname$release$shared_ext'
11416 soname_spec='$libname$release$shared_ext'
11418 shlibpath_var=LD_LIBRARY_PATH
11419 shlibpath_overrides_runpath=yes
11421 # This implies no fast_install, which is unacceptable.
11422 # Some rework will be needed to allow for fast_install
11423 # before this can be enabled.
11424 hardcode_into_libs=yes
11426 dynamic_linker='Android linker'
11427 # Don't embed -rpath directories since the linker doesn't support them.
11428 hardcode_libdir_flag_spec='-L$libdir'
11431 # This must be glibc/ELF.
11432 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11433 version_type=linux # correct to gnu/linux during the next big refactor
11436 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11437 soname_spec='$libname$release$shared_ext$major'
11438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11439 shlibpath_var=LD_LIBRARY_PATH
11440 shlibpath_overrides_runpath=no
11442 # Some binutils ld are patched to set DT_RUNPATH
11443 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11444 $as_echo_n "(cached) " >&6
11446 lt_cv_shlibpath_overrides_runpath=no
11447 save_LDFLAGS=$LDFLAGS
11448 save_libdir=$libdir
11449 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11450 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11452 /* end confdefs.h. */
11462 if ac_fn_c_try_link "$LINENO"; then :
11463 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11464 lt_cv_shlibpath_overrides_runpath=yes
11467 rm -f core conftest.err conftest.$ac_objext \
11468 conftest$ac_exeext conftest.$ac_ext
11469 LDFLAGS=$save_LDFLAGS
11470 libdir=$save_libdir
11474 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11476 # This implies no fast_install, which is unacceptable.
11477 # Some rework will be needed to allow for fast_install
11478 # before this can be enabled.
11479 hardcode_into_libs=yes
11481 # Add ABI-specific directories to the system library path.
11482 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11484 # Ideally, we could use ldconfig to report *all* directores which are
11485 # searched for libraries, however this is still not possible. Aside from not
11486 # being certain /sbin/ldconfig is available, command
11487 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11488 # even though it is searched at run-time. Try to do the best guess by
11489 # appending ld.so.conf contents (and includes) to the search path.
11490 if test -f /etc/ld.so.conf; then
11491 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' ' '`
11492 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11495 # We used to test for /lib/ld.so.1 and disable shared libraries on
11496 # powerpc, because MkLinux only supported shared libraries with the
11497 # GNU dynamic linker. Since this was broken with cross compilers,
11498 # most powerpc-linux boxes support dynamic linking these days and
11499 # people can always --disable-shared, the test was removed, and we
11500 # assume the GNU/Linux dynamic linker is in use.
11501 dynamic_linker='GNU/Linux ld.so'
11508 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11509 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11510 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11511 dynamic_linker='NetBSD (a.out) ld.so'
11513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11514 soname_spec='$libname$release$shared_ext$major'
11515 dynamic_linker='NetBSD ld.elf_so'
11517 shlibpath_var=LD_LIBRARY_PATH
11518 shlibpath_overrides_runpath=yes
11519 hardcode_into_libs=yes
11523 version_type=linux # correct to gnu/linux during the next big refactor
11524 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11525 shlibpath_var=LD_LIBRARY_PATH
11526 shlibpath_overrides_runpath=yes
11533 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11534 soname_spec='$libname$release$shared_ext$major'
11535 shlibpath_var=LD_LIBRARY_PATH
11536 shlibpath_overrides_runpath=no
11537 hardcode_into_libs=yes
11538 dynamic_linker='ldqnx.so'
11541 openbsd* | bitrig*)
11543 sys_lib_dlsearch_path_spec=/usr/lib
11545 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11550 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11551 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11552 shlibpath_var=LD_LIBRARY_PATH
11553 shlibpath_overrides_runpath=yes
11557 libname_spec='$name'
11558 version_type=windows
11562 # OS/2 can only load a DLL with a base name of 8 characters or less.
11563 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11564 v=$($ECHO $release$versuffix | tr -d .-);
11565 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11566 $ECHO $n$v`$shared_ext'
11567 library_names_spec='${libname}_dll.$libext'
11568 dynamic_linker='OS/2 ld.exe'
11569 shlibpath_var=BEGINLIBPATH
11570 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11572 postinstall_cmds='base_file=`basename \$file`~
11573 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11574 dldir=$destdir/`dirname \$dlpath`~
11575 test -d \$dldir || mkdir -p \$dldir~
11576 $install_prog $dir/$dlname \$dldir/$dlname~
11577 chmod a+x \$dldir/$dlname~
11578 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11579 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11581 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11582 dlpath=$dir/\$dldll~
11586 osf3* | osf4* | osf5*)
11590 soname_spec='$libname$release$shared_ext$major'
11591 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11592 shlibpath_var=LD_LIBRARY_PATH
11593 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11594 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11602 version_type=linux # correct to gnu/linux during the next big refactor
11605 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11606 soname_spec='$libname$release$shared_ext$major'
11607 shlibpath_var=LD_LIBRARY_PATH
11608 shlibpath_overrides_runpath=yes
11609 hardcode_into_libs=yes
11610 # ldd complains unless libraries are executable
11611 postinstall_cmds='chmod +x $lib'
11616 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11617 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11618 shlibpath_var=LD_LIBRARY_PATH
11619 shlibpath_overrides_runpath=yes
11620 if test yes = "$with_gnu_ld"; then
11627 version_type=linux # correct to gnu/linux during the next big refactor
11628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11629 soname_spec='$libname$release$shared_ext$major'
11630 shlibpath_var=LD_LIBRARY_PATH
11631 case $host_vendor in
11633 shlibpath_overrides_runpath=no
11635 runpath_var=LD_RUN_PATH
11643 shlibpath_overrides_runpath=no
11644 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11650 if test -d /usr/nec; then
11651 version_type=linux # correct to gnu/linux during the next big refactor
11652 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11653 soname_spec='$libname$shared_ext.$major'
11654 shlibpath_var=LD_LIBRARY_PATH
11658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11662 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11663 soname_spec='$libname$release$shared_ext$major'
11664 shlibpath_var=LD_LIBRARY_PATH
11665 shlibpath_overrides_runpath=yes
11666 hardcode_into_libs=yes
11667 if test yes = "$with_gnu_ld"; then
11668 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11670 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11673 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11677 sys_lib_dlsearch_path_spec='/usr/lib'
11681 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11682 version_type=linux # correct to gnu/linux during the next big refactor
11685 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11686 shlibpath_var=LD_LIBRARY_PATH
11687 shlibpath_overrides_runpath=no
11688 hardcode_into_libs=yes
11692 version_type=linux # correct to gnu/linux during the next big refactor
11693 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11694 soname_spec='$libname$release$shared_ext$major'
11695 shlibpath_var=LD_LIBRARY_PATH
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11703 $as_echo "$dynamic_linker" >&6; }
11704 test no = "$dynamic_linker" && can_build_shared=no
11706 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11707 if test yes = "$GCC"; then
11708 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11711 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11712 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11715 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11716 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11719 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11720 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11722 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11723 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11725 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11726 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11825 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11827 if test -n "$hardcode_libdir_flag_spec" ||
11828 test -n "$runpath_var" ||
11829 test yes = "$hardcode_automatic"; then
11831 # We can hardcode non-existent directories.
11832 if test no != "$hardcode_direct" &&
11833 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11834 # have to relink, otherwise we might link with an installed library
11835 # when we should be linking with a yet-to-be-installed one
11836 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11837 test no != "$hardcode_minus_L"; then
11838 # Linking always hardcodes the temporary library directory.
11839 hardcode_action=relink
11841 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11842 hardcode_action=immediate
11845 # We cannot hardcode anything, or else we can only hardcode existing
11847 hardcode_action=unsupported
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11850 $as_echo "$hardcode_action" >&6; }
11852 if test relink = "$hardcode_action" ||
11853 test yes = "$inherit_rpath"; then
11854 # Fast installation is not supported
11855 enable_fast_install=no
11856 elif test yes = "$shlibpath_overrides_runpath" ||
11857 test no = "$enable_shared"; then
11858 # Fast installation is not necessary
11859 enable_fast_install=needless
11867 if test yes != "$enable_dlopen"; then
11868 enable_dlopen=unknown
11869 enable_dlopen_self=unknown
11870 enable_dlopen_self_static=unknown
11877 lt_cv_dlopen=load_add_on
11879 lt_cv_dlopen_self=yes
11882 mingw* | pw32* | cegcc*)
11883 lt_cv_dlopen=LoadLibrary
11888 lt_cv_dlopen=dlopen
11893 # if libdl is installed we need to link against it
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11895 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11896 if ${ac_cv_lib_dl_dlopen+:} false; then :
11897 $as_echo_n "(cached) " >&6
11899 ac_check_lib_save_LIBS=$LIBS
11901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11902 /* end confdefs.h. */
11904 /* Override any GCC internal prototype to avoid an error.
11905 Use char because int might match the return type of a GCC
11906 builtin and then its argument prototype would still apply. */
11919 if ac_fn_c_try_link "$LINENO"; then :
11920 ac_cv_lib_dl_dlopen=yes
11922 ac_cv_lib_dl_dlopen=no
11924 rm -f core conftest.err conftest.$ac_objext \
11925 conftest$ac_exeext conftest.$ac_ext
11926 LIBS=$ac_check_lib_save_LIBS
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11929 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11930 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11931 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11936 lt_cv_dlopen_self=yes
11943 # Don't try to run any link tests for TPF. We know it's impossible
11944 # because TPF is a cross-compiler, and we know how we open DSOs.
11945 lt_cv_dlopen=dlopen
11947 lt_cv_dlopen_self=no
11951 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11952 if test "x$ac_cv_func_shl_load" = xyes; then :
11953 lt_cv_dlopen=shl_load
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11956 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11957 if ${ac_cv_lib_dld_shl_load+:} false; then :
11958 $as_echo_n "(cached) " >&6
11960 ac_check_lib_save_LIBS=$LIBS
11962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963 /* end confdefs.h. */
11965 /* Override any GCC internal prototype to avoid an error.
11966 Use char because int might match the return type of a GCC
11967 builtin and then its argument prototype would still apply. */
11975 return shl_load ();
11980 if ac_fn_c_try_link "$LINENO"; then :
11981 ac_cv_lib_dld_shl_load=yes
11983 ac_cv_lib_dld_shl_load=no
11985 rm -f core conftest.err conftest.$ac_objext \
11986 conftest$ac_exeext conftest.$ac_ext
11987 LIBS=$ac_check_lib_save_LIBS
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11990 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11991 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11992 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11994 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11995 if test "x$ac_cv_func_dlopen" = xyes; then :
11996 lt_cv_dlopen=dlopen
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11999 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12000 if ${ac_cv_lib_dl_dlopen+:} false; then :
12001 $as_echo_n "(cached) " >&6
12003 ac_check_lib_save_LIBS=$LIBS
12005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12006 /* end confdefs.h. */
12008 /* Override any GCC internal prototype to avoid an error.
12009 Use char because int might match the return type of a GCC
12010 builtin and then its argument prototype would still apply. */
12023 if ac_fn_c_try_link "$LINENO"; then :
12024 ac_cv_lib_dl_dlopen=yes
12026 ac_cv_lib_dl_dlopen=no
12028 rm -f core conftest.err conftest.$ac_objext \
12029 conftest$ac_exeext conftest.$ac_ext
12030 LIBS=$ac_check_lib_save_LIBS
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12033 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12034 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12035 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12038 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12039 if ${ac_cv_lib_svld_dlopen+:} false; then :
12040 $as_echo_n "(cached) " >&6
12042 ac_check_lib_save_LIBS=$LIBS
12043 LIBS="-lsvld $LIBS"
12044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045 /* end confdefs.h. */
12047 /* Override any GCC internal prototype to avoid an error.
12048 Use char because int might match the return type of a GCC
12049 builtin and then its argument prototype would still apply. */
12062 if ac_fn_c_try_link "$LINENO"; then :
12063 ac_cv_lib_svld_dlopen=yes
12065 ac_cv_lib_svld_dlopen=no
12067 rm -f core conftest.err conftest.$ac_objext \
12068 conftest$ac_exeext conftest.$ac_ext
12069 LIBS=$ac_check_lib_save_LIBS
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12072 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12073 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12074 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12077 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12078 if ${ac_cv_lib_dld_dld_link+:} false; then :
12079 $as_echo_n "(cached) " >&6
12081 ac_check_lib_save_LIBS=$LIBS
12083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h. */
12086 /* Override any GCC internal prototype to avoid an error.
12087 Use char because int might match the return type of a GCC
12088 builtin and then its argument prototype would still apply. */
12096 return dld_link ();
12101 if ac_fn_c_try_link "$LINENO"; then :
12102 ac_cv_lib_dld_dld_link=yes
12104 ac_cv_lib_dld_dld_link=no
12106 rm -f core conftest.err conftest.$ac_objext \
12107 conftest$ac_exeext conftest.$ac_ext
12108 LIBS=$ac_check_lib_save_LIBS
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12111 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12112 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12113 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12134 if test no = "$lt_cv_dlopen"; then
12140 case $lt_cv_dlopen in
12142 save_CPPFLAGS=$CPPFLAGS
12143 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12145 save_LDFLAGS=$LDFLAGS
12146 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12149 LIBS="$lt_cv_dlopen_libs $LIBS"
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12152 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12153 if ${lt_cv_dlopen_self+:} false; then :
12154 $as_echo_n "(cached) " >&6
12156 if test yes = "$cross_compiling"; then :
12157 lt_cv_dlopen_self=cross
12159 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12160 lt_status=$lt_dlunknown
12161 cat > conftest.$ac_ext <<_LT_EOF
12162 #line $LINENO "configure"
12163 #include "confdefs.h"
12172 # define LT_DLGLOBAL RTLD_GLOBAL
12175 # define LT_DLGLOBAL DL_GLOBAL
12177 # define LT_DLGLOBAL 0
12181 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12182 find out it does not work in some platform. */
12183 #ifndef LT_DLLAZY_OR_NOW
12185 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12188 # define LT_DLLAZY_OR_NOW DL_LAZY
12191 # define LT_DLLAZY_OR_NOW RTLD_NOW
12194 # define LT_DLLAZY_OR_NOW DL_NOW
12196 # define LT_DLLAZY_OR_NOW 0
12203 /* When -fvisibility=hidden is used, assume the code has been annotated
12204 correspondingly for the symbols needed. */
12205 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12206 int fnord () __attribute__((visibility("default")));
12209 int fnord () { return 42; }
12212 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12213 int status = $lt_dlunknown;
12217 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12220 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12221 else puts (dlerror ());
12223 /* dlclose (self); */
12231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12232 (eval $ac_link) 2>&5
12234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12235 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12236 (./conftest; exit; ) >&5 2>/dev/null
12238 case x$lt_status in
12239 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12240 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12241 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12244 # compilation failed
12245 lt_cv_dlopen_self=no
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12253 $as_echo "$lt_cv_dlopen_self" >&6; }
12255 if test yes = "$lt_cv_dlopen_self"; then
12256 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12258 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12259 if ${lt_cv_dlopen_self_static+:} false; then :
12260 $as_echo_n "(cached) " >&6
12262 if test yes = "$cross_compiling"; then :
12263 lt_cv_dlopen_self_static=cross
12265 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12266 lt_status=$lt_dlunknown
12267 cat > conftest.$ac_ext <<_LT_EOF
12268 #line $LINENO "configure"
12269 #include "confdefs.h"
12278 # define LT_DLGLOBAL RTLD_GLOBAL
12281 # define LT_DLGLOBAL DL_GLOBAL
12283 # define LT_DLGLOBAL 0
12287 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12288 find out it does not work in some platform. */
12289 #ifndef LT_DLLAZY_OR_NOW
12291 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12294 # define LT_DLLAZY_OR_NOW DL_LAZY
12297 # define LT_DLLAZY_OR_NOW RTLD_NOW
12300 # define LT_DLLAZY_OR_NOW DL_NOW
12302 # define LT_DLLAZY_OR_NOW 0
12309 /* When -fvisibility=hidden is used, assume the code has been annotated
12310 correspondingly for the symbols needed. */
12311 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12312 int fnord () __attribute__((visibility("default")));
12315 int fnord () { return 42; }
12318 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12319 int status = $lt_dlunknown;
12323 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12326 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12327 else puts (dlerror ());
12329 /* dlclose (self); */
12337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12338 (eval $ac_link) 2>&5
12340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12341 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12342 (./conftest; exit; ) >&5 2>/dev/null
12344 case x$lt_status in
12345 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12346 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12347 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12350 # compilation failed
12351 lt_cv_dlopen_self_static=no
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12359 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12362 CPPFLAGS=$save_CPPFLAGS
12363 LDFLAGS=$save_LDFLAGS
12368 case $lt_cv_dlopen_self in
12369 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12370 *) enable_dlopen_self=unknown ;;
12373 case $lt_cv_dlopen_self_static in
12374 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12375 *) enable_dlopen_self_static=unknown ;;
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12398 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12399 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12400 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12401 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12403 $as_echo "yes" >&6; }
12405 # FIXME - insert some real tests, host_os isn't really good enough
12408 if test -n "$STRIP"; then
12409 striplib="$STRIP -x"
12410 old_striplib="$STRIP -S"
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12412 $as_echo "yes" >&6; }
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12415 $as_echo "no" >&6; }
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12420 $as_echo "no" >&6; }
12436 # Report what library types will actually be built
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12438 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12440 $as_echo "$can_build_shared" >&6; }
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12443 $as_echo_n "checking whether to build shared libraries... " >&6; }
12444 test no = "$can_build_shared" && enable_shared=no
12446 # On AIX, shared libraries and static libraries use the same namespace, and
12447 # are all built from PIC.
12450 test yes = "$enable_shared" && enable_static=no
12451 if test -n "$RANLIB"; then
12452 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12453 postinstall_cmds='$RANLIB $lib'
12458 if test ia64 != "$host_cpu"; then
12459 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12460 yes,aix,yes) ;; # shared object as lib.so file only
12461 yes,svr4,*) ;; # shared object as lib.so archive member only
12462 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12468 $as_echo "$enable_shared" >&6; }
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12471 $as_echo_n "checking whether to build static libraries... " >&6; }
12472 # Make sure either enable_shared or enable_static is yes.
12473 test yes = "$enable_shared" || enable_static=yes
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12475 $as_echo "$enable_static" >&6; }
12482 ac_cpp='$CPP $CPPFLAGS'
12483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12503 ac_config_commands="$ac_config_commands libtool"
12508 # Only expand once:
12512 # Honor aclocal flags
12513 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
12516 JSON_MAJOR_VERSION=1
12517 JSON_MINOR_VERSION=2
12518 JSON_MICRO_VERSION=4
12520 JSON_RELEASE_STATUS=release
12527 JSON_LT_CURRENT=200
12530 JSON_LT_VERSION="$JSON_LT_CURRENT:$JSON_LT_REVISION:$JSON_LT_AGE"
12531 JSON_LT_LDFLAGS="-version-info $JSON_LT_VERSION"
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for some Win32 platform" >&5
12539 $as_echo_n "checking if building for some Win32 platform... " >&6; }
12541 *-*-mingw*|*-*-cygwin*) :
12543 JSON_LT_LDFLAGS="$JSON_LT_LDFLAGS -no-undefined"
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
12555 $as_echo "$platform_win32" >&6; }
12557 if test "$platform_linux" = "yes"; then
12565 if test "$platform_win32" = "yes"; then
12574 # Check for -Bsymbolic-functions to avoid intra-library PLT jumps
12575 # Check whether --enable-Bsymbolic was given.
12576 if test "${enable_Bsymbolic+set}" = set; then :
12577 enableval=$enable_Bsymbolic;
12580 saved_LDFLAGS="${LDFLAGS}"
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic-functions linker flag" >&5
12582 $as_echo_n "checking for -Bsymbolic-functions linker flag... " >&6; }
12583 LDFLAGS=-Wl,-Bsymbolic-functions
12584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585 /* end confdefs.h. */
12590 int main (void) { return 0; }
12595 if ac_fn_c_try_link "$LINENO"; then :
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12598 $as_echo "yes" >&6; }
12599 enable_Bsymbolic=yes
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12604 $as_echo "no" >&6; }
12605 enable_Bsymbolic=no
12608 rm -f core conftest.err conftest.$ac_objext \
12609 conftest$ac_exeext conftest.$ac_ext
12610 LDFLAGS="${saved_LDFLAGS}"
12615 if test "x$enable_Bsymbolic" = "xyes"; then :
12616 JSON_LINK_FLAGS=-Wl,-Bsymbolic-functions
12618 JSON_LT_LDFLAGS="$JSON_LT_LDFLAGS $JSON_LINK_FLAGS"
12623 JSON_HIDDEN_VISIBILITY_CFLAGS=""
12627 $as_echo "#define _JSON_EXTERN __attribute__((visibility(\"default\"))) __declspec(dllexport) extern" >>confdefs.h
12629 CFLAGS="${CFLAGS} -fvisibility=hidden"
12632 SAVED_CFLAGS="${CFLAGS}"
12633 CFLAGS="-fvisibility=hidden"
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fvisibility=hidden compiler flag" >&5
12635 $as_echo_n "checking for -fvisibility=hidden compiler flag... " >&6; }
12636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12637 /* end confdefs.h. */
12642 int main (void) { return 0; }
12647 if ac_fn_c_try_compile "$LINENO"; then :
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12649 $as_echo "yes" >&6; }
12650 enable_fvisibility_hidden=yes
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12653 $as_echo "no" >&6; }
12654 enable_fvisibility_hidden=no
12656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12657 CFLAGS="${SAVED_CFLAGS}"
12659 if test "${enable_fvisibility_hidden}" = "yes"; then :
12662 $as_echo "#define _JSON_EXTERN __attribute__((visibility(\"default\"))) extern" >>confdefs.h
12664 JSON_HIDDEN_VISIBILITY_CFLAGS="-fvisibility=hidden"
12672 GLIB_PREFIX="`$PKG_CONFIG --variable=prefix glib-2.0`"
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
12678 $as_echo_n "checking for JSON... " >&6; }
12680 if test -n "$JSON_CFLAGS"; then
12681 pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
12682 elif test -n "$PKG_CONFIG"; then
12683 if test -n "$PKG_CONFIG" && \
12684 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 >= 2.37.6 gio-2.0\""; } >&5
12685 ($PKG_CONFIG --exists --print-errors "gobject-2.0 >= 2.37.6 gio-2.0") 2>&5
12687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12688 test $ac_status = 0; }; then
12689 pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 >= 2.37.6 gio-2.0" 2>/dev/null`
12690 test "x$?" != "x0" && pkg_failed=yes
12697 if test -n "$JSON_LIBS"; then
12698 pkg_cv_JSON_LIBS="$JSON_LIBS"
12699 elif test -n "$PKG_CONFIG"; then
12700 if test -n "$PKG_CONFIG" && \
12701 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 >= 2.37.6 gio-2.0\""; } >&5
12702 ($PKG_CONFIG --exists --print-errors "gobject-2.0 >= 2.37.6 gio-2.0") 2>&5
12704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12705 test $ac_status = 0; }; then
12706 pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "gobject-2.0 >= 2.37.6 gio-2.0" 2>/dev/null`
12707 test "x$?" != "x0" && pkg_failed=yes
12717 if test $pkg_failed = yes; then
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12719 $as_echo "no" >&6; }
12721 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12722 _pkg_short_errors_supported=yes
12724 _pkg_short_errors_supported=no
12726 if test $_pkg_short_errors_supported = yes; then
12727 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0 >= 2.37.6 gio-2.0" 2>&1`
12729 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0 >= 2.37.6 gio-2.0" 2>&1`
12731 # Put the nasty error message in config.log where it belongs
12732 echo "$JSON_PKG_ERRORS" >&5
12734 as_fn_error $? "Package requirements (gobject-2.0 >= 2.37.6 gio-2.0) were not met:
12738 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12739 installed software in a non-standard prefix.
12741 Alternatively, you may set the environment variables JSON_CFLAGS
12742 and JSON_LIBS to avoid the need to call pkg-config.
12743 See the pkg-config man page for more details." "$LINENO" 5
12744 elif test $pkg_failed = untried; then
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746 $as_echo "no" >&6; }
12747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12749 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12750 is in your PATH or set the PKG_CONFIG environment variable to the full
12751 path to pkg-config.
12753 Alternatively, you may set the environment variables JSON_CFLAGS
12754 and JSON_LIBS to avoid the need to call pkg-config.
12755 See the pkg-config man page for more details.
12757 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12758 See \`config.log' for more details" "$LINENO" 5; }
12760 JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
12761 JSON_LIBS=$pkg_cv_JSON_LIBS
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12763 $as_echo "yes" >&6; }
12770 # Check whether --enable-debug was given.
12771 if test "${enable_debug+set}" = set; then :
12772 enableval=$enable_debug;
12774 enable_debug=minimum
12778 case $enable_debug in #(
12781 test "$cflags_set" = set || CFLAGS="$CFLAGS -g"
12782 JSON_DEBUG_CFLAGS="-DJSON_ENABLE_DEBUG"
12786 JSON_DEBUG_CFLAGS="-DJSON_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS"
12790 JSON_DEBUG_CFLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS"
12793 as_fn_error $? "Unknown argument to --enable-debug" "$LINENO" 5
12800 # use strict compiler flags only on development releases
12802 # Check whether --enable-maintainer-flags was given.
12803 if test "${enable_maintainer_flags+set}" = set; then :
12804 enableval=$enable_maintainer_flags;
12806 enable_maintainer_flags=no
12810 if test "x$enable_maintainer_flags" = "xyes" && test "x$GCC" = "xyes"; then :
12813 list="-Wall -Wshadow -Wcast-align
12814 -Wno-uninitialized -Wformat -Wformat-security
12815 -Wno-strict-aliasing -Winit-self
12816 -Wempty-body -Wdeclaration-after-statement
12817 -Wno-strict-aliasing"
12819 flags_unsupported=""
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported compiler flags" >&5
12821 $as_echo_n "checking for supported compiler flags... " >&6; }
12824 save_CFLAGS="$CFLAGS"
12825 CFLAGS="$CFLAGS $each"
12826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12827 /* end confdefs.h. */
12837 if ac_fn_c_try_compile "$LINENO"; then :
12842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12843 CFLAGS="$save_CFLAGS"
12845 if test "X$flag_ok" = Xyes ; then
12846 flags_supported="$flags_supported $each"
12848 flags_unsupported="$flags_unsupported $each"
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flags_supported" >&5
12852 $as_echo "$flags_supported" >&6; }
12853 if test "X$flags_unsupported" != X ; then
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsupported compiler flags: $flags_unsupported" >&5
12855 $as_echo "$as_me: WARNING: unsupported compiler flags: $flags_unsupported" >&2;}
12857 MAINTAINER_CFLAGS="$MAINTAINER_CFLAGS $flags_supported"
12862 MAINTAINER_CFLAGS="${MAINTAINER_CFLAGS#* }"
12867 # Check whether --enable-installed-tests was given.
12868 if test "${enable_installed_tests+set}" = set; then :
12869 enableval=$enable_installed_tests; case ${enableval} in
12870 yes) ENABLE_INSTALLED_TESTS="1" ;;
12871 no) ENABLE_INSTALLED_TESTS="" ;;
12872 *) as_fn_error $? "bad value ${enableval} for --enable-installed-tests" "$LINENO" 5 ;;
12876 if test "$ENABLE_INSTALLED_TESTS" = "1"; then
12877 ENABLE_INSTALLED_TESTS_TRUE=
12878 ENABLE_INSTALLED_TESTS_FALSE='#'
12880 ENABLE_INSTALLED_TESTS_TRUE='#'
12881 ENABLE_INSTALLED_TESTS_FALSE=
12884 # Check whether --enable-always-build-tests was given.
12885 if test "${enable_always_build_tests+set}" = set; then :
12886 enableval=$enable_always_build_tests; case ${enableval} in
12887 yes) ENABLE_ALWAYS_BUILD_TESTS="1" ;;
12888 no) ENABLE_ALWAYS_BUILD_TESTS="" ;;
12889 *) as_fn_error $? "bad value ${enableval} for --enable-always-build-tests" "$LINENO" 5 ;;
12893 if test "$ENABLE_ALWAYS_BUILD_TESTS" = "1"; then
12894 ENABLE_ALWAYS_BUILD_TESTS_TRUE=
12895 ENABLE_ALWAYS_BUILD_TESTS_FALSE='#'
12897 ENABLE_ALWAYS_BUILD_TESTS_TRUE='#'
12898 ENABLE_ALWAYS_BUILD_TESTS_FALSE=
12901 if test "$ENABLE_INSTALLED_TESTS" = "1"; then
12902 installed_test_metadir=${datadir}/installed-tests/json-glib
12904 installed_testdir=${libexecdir}/installed-tests/json-glib
12910 # Check whether --enable-gcov was given.
12911 if test "${enable_gcov+set}" = set; then :
12912 enableval=$enable_gcov; use_gcov=$enableval
12918 if test "x$use_gcov" = "xyes"; then :
12920 if test "$GCC" != "yes"; then :
12921 as_fn_error $? "GCC is required for --enable-gcov" "$LINENO" 5
12924 # Extract the first word of "shtool", so it can be a program name with args.
12925 set dummy shtool; ac_word=$2
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12927 $as_echo_n "checking for $ac_word... " >&6; }
12928 if ${ac_cv_prog_SHTOOL+:} false; then :
12929 $as_echo_n "(cached) " >&6
12931 if test -n "$SHTOOL"; then
12932 ac_cv_prog_SHTOOL="$SHTOOL" # Let the user override the test.
12934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12935 for as_dir in $PATH
12938 test -z "$as_dir" && as_dir=.
12939 for ac_exec_ext in '' $ac_executable_extensions; do
12940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12941 ac_cv_prog_SHTOOL="shtool"
12942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12951 SHTOOL=$ac_cv_prog_SHTOOL
12952 if test -n "$SHTOOL"; then
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
12954 $as_echo "$SHTOOL" >&6; }
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12957 $as_echo "no" >&6; }
12961 case `$SHTOOL path $CC` in #(
12963 gcc_ccache=yes ;; #(
12968 if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then
12969 as_fn_error $? "ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1." "$LINENO" 5
12972 ltp_version_list="1.6 1.7 1.8 1.9 1.10"
12973 # Extract the first word of "lcov", so it can be a program name with args.
12974 set dummy lcov; ac_word=$2
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12976 $as_echo_n "checking for $ac_word... " >&6; }
12977 if ${ac_cv_prog_LTP+:} false; then :
12978 $as_echo_n "(cached) " >&6
12980 if test -n "$LTP"; then
12981 ac_cv_prog_LTP="$LTP" # Let the user override the test.
12983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12984 for as_dir in $PATH
12987 test -z "$as_dir" && as_dir=.
12988 for ac_exec_ext in '' $ac_executable_extensions; do
12989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12990 ac_cv_prog_LTP="lcov"
12991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13000 LTP=$ac_cv_prog_LTP
13001 if test -n "$LTP"; then
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP" >&5
13003 $as_echo "$LTP" >&6; }
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13006 $as_echo "no" >&6; }
13010 # Extract the first word of "genhtml", so it can be a program name with args.
13011 set dummy genhtml; ac_word=$2
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13013 $as_echo_n "checking for $ac_word... " >&6; }
13014 if ${ac_cv_prog_LTP_GENHTML+:} false; then :
13015 $as_echo_n "(cached) " >&6
13017 if test -n "$LTP_GENHTML"; then
13018 ac_cv_prog_LTP_GENHTML="$LTP_GENHTML" # Let the user override the test.
13020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13021 for as_dir in $PATH
13024 test -z "$as_dir" && as_dir=.
13025 for ac_exec_ext in '' $ac_executable_extensions; do
13026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13027 ac_cv_prog_LTP_GENHTML="genhtml"
13028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13037 LTP_GENHTML=$ac_cv_prog_LTP_GENHTML
13038 if test -n "$LTP_GENHTML"; then
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP_GENHTML" >&5
13040 $as_echo "$LTP_GENHTML" >&6; }
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13043 $as_echo "no" >&6; }
13048 if test "$LTP"; then
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ltp version" >&5
13050 $as_echo_n "checking for ltp version... " >&6; }
13051 if ${json_cv_ltp_version+:} false; then :
13052 $as_echo_n "(cached) " >&6
13055 json_cv_ltp_version=invalid
13056 ltp_version=`$LTP -v 2>/dev/null | $SED -e 's/^.* //'`
13057 for ltp_check_version in $ltp_version_list; do
13058 if test "$ltp_version" = "$ltp_check_version"; then
13059 json_cv_ltp_version="$ltp_check_version (ok)"
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $json_cv_ltp_version" >&5
13065 $as_echo "$json_cv_ltp_version" >&6; }
13067 ltp_msg="To enable code coverage reporting you must have one of the following LTP versions installed: $ltp_version_list"
13068 as_fn_error $? "$ltp_msg" "$LINENO" 5
13071 case $json_cv_ltp_version in
13073 ltp_msg="You must have one of the following versions of LTP: $ltp_version_list (found: $ltp_version)."
13074 as_fn_error $? "$ltp_msg" "$LINENO" 5
13079 if test -z "$LTP_GENHTML"; then
13080 as_fn_error $? "Could not find genhtml from the LTP package" "$LINENO" 5
13084 $as_echo "#define HAVE_GCOV 1" >>confdefs.h
13088 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
13089 JSON_CFLAGS=`echo "$JSON_CFLAGS" | $SED -e 's/-O[0-9]*//g'`
13092 JSON_GCOV_CFLAGS="-O0 -fprofile-arcs -ftest-coverage"
13093 JSON_GCOV_LDADD="-lgcov"
13098 JSON_CFLAGS="$JSON_CFLAGS $CLUTTER_GCOV_CFLAGS"
13099 JSON_LIBS="$JSON_LIBS $CLUTTER_GCOV_LDADD"
13103 if test "x$use_gcov" = "xyes"; then
13105 ENABLE_GCOV_FALSE='#'
13107 ENABLE_GCOV_TRUE='#'
13116 gtk_doc_requires="gtk-doc >= 1.20"
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
13118 $as_echo_n "checking for gtk-doc... " >&6; }
13119 if test -n "$PKG_CONFIG" && \
13120 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
13121 ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
13123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13124 test $ac_status = 0; }; then
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
13130 $as_echo "$have_gtk_doc" >&6; }
13132 if test "$have_gtk_doc" = "no"; then
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13134 You will not be able to create source packages with 'make dist'
13135 because $gtk_doc_requires is not found." >&5
13136 $as_echo "$as_me: WARNING:
13137 You will not be able to create source packages with 'make dist'
13138 because $gtk_doc_requires is not found." >&2;}
13141 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
13142 set dummy gtkdoc-check; ac_word=$2
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13144 $as_echo_n "checking for $ac_word... " >&6; }
13145 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
13146 $as_echo_n "(cached) " >&6
13148 if test -n "$GTKDOC_CHECK"; then
13149 ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
13151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13152 for as_dir in $PATH
13155 test -z "$as_dir" && as_dir=.
13156 for ac_exec_ext in '' $ac_executable_extensions; do
13157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13158 ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
13159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13168 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
13169 if test -n "$GTKDOC_CHECK"; then
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
13171 $as_echo "$GTKDOC_CHECK" >&6; }
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13174 $as_echo "no" >&6; }
13178 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
13179 set dummy gtkdoc-check; ac_word=$2
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13181 $as_echo_n "checking for $ac_word... " >&6; }
13182 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
13183 $as_echo_n "(cached) " >&6
13185 case $GTKDOC_CHECK_PATH in
13187 ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
13190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13191 for as_dir in $PATH
13194 test -z "$as_dir" && as_dir=.
13195 for ac_exec_ext in '' $ac_executable_extensions; do
13196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13197 ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
13198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13208 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
13209 if test -n "$GTKDOC_CHECK_PATH"; then
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
13211 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13214 $as_echo "no" >&6; }
13218 for ac_prog in gtkdoc-rebase
13220 # Extract the first word of "$ac_prog", so it can be a program name with args.
13221 set dummy $ac_prog; ac_word=$2
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13223 $as_echo_n "checking for $ac_word... " >&6; }
13224 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
13225 $as_echo_n "(cached) " >&6
13227 case $GTKDOC_REBASE in
13229 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
13232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233 for as_dir in $PATH
13236 test -z "$as_dir" && as_dir=.
13237 for ac_exec_ext in '' $ac_executable_extensions; do
13238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13239 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
13240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13250 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
13251 if test -n "$GTKDOC_REBASE"; then
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
13253 $as_echo "$GTKDOC_REBASE" >&6; }
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13256 $as_echo "no" >&6; }
13260 test -n "$GTKDOC_REBASE" && break
13262 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
13264 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
13265 set dummy gtkdoc-mkpdf; ac_word=$2
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13267 $as_echo_n "checking for $ac_word... " >&6; }
13268 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
13269 $as_echo_n "(cached) " >&6
13271 case $GTKDOC_MKPDF in
13273 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
13276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13277 for as_dir in $PATH
13280 test -z "$as_dir" && as_dir=.
13281 for ac_exec_ext in '' $ac_executable_extensions; do
13282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13283 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
13284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13294 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
13295 if test -n "$GTKDOC_MKPDF"; then
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
13297 $as_echo "$GTKDOC_MKPDF" >&6; }
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13300 $as_echo "no" >&6; }
13306 # Check whether --with-html-dir was given.
13307 if test "${with_html_dir+set}" = set; then :
13308 withval=$with_html_dir;
13310 with_html_dir='${datadir}/gtk-doc/html'
13313 HTML_DIR="$with_html_dir"
13316 # Check whether --enable-gtk-doc was given.
13317 if test "${enable_gtk_doc+set}" = set; then :
13318 enableval=$enable_gtk_doc;
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
13325 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
13327 $as_echo "$enable_gtk_doc" >&6; }
13329 if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
13331 You must have $gtk_doc_requires installed to build documentation for
13332 $PACKAGE_NAME. Please install gtk-doc or disable building the
13333 documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
13336 if test "x$PACKAGE_NAME" != "xglib"; then
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
13340 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
13342 if test -n "$GTKDOC_DEPS_CFLAGS"; then
13343 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
13344 elif test -n "$PKG_CONFIG"; then
13345 if test -n "$PKG_CONFIG" && \
13346 { { $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
13347 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
13349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13350 test $ac_status = 0; }; then
13351 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
13352 test "x$?" != "x0" && pkg_failed=yes
13359 if test -n "$GTKDOC_DEPS_LIBS"; then
13360 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
13361 elif test -n "$PKG_CONFIG"; then
13362 if test -n "$PKG_CONFIG" && \
13363 { { $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
13364 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
13366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13367 test $ac_status = 0; }; then
13368 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
13369 test "x$?" != "x0" && pkg_failed=yes
13379 if test $pkg_failed = yes; then
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381 $as_echo "no" >&6; }
13383 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13384 _pkg_short_errors_supported=yes
13386 _pkg_short_errors_supported=no
13388 if test $_pkg_short_errors_supported = yes; then
13389 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
13391 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
13393 # Put the nasty error message in config.log where it belongs
13394 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
13397 elif test $pkg_failed = untried; then
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13399 $as_echo "no" >&6; }
13402 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
13403 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13405 $as_echo "yes" >&6; }
13410 # Check whether --enable-gtk-doc-html was given.
13411 if test "${enable_gtk_doc_html+set}" = set; then :
13412 enableval=$enable_gtk_doc_html;
13414 enable_gtk_doc_html=yes
13417 # Check whether --enable-gtk-doc-pdf was given.
13418 if test "${enable_gtk_doc_pdf+set}" = set; then :
13419 enableval=$enable_gtk_doc_pdf;
13421 enable_gtk_doc_pdf=no
13425 if test -z "$GTKDOC_MKPDF"; then
13426 enable_gtk_doc_pdf=no
13429 if test -z "$AM_DEFAULT_VERBOSITY"; then
13430 AM_DEFAULT_VERBOSITY=1
13434 if test x$have_gtk_doc = xyes; then
13436 HAVE_GTK_DOC_FALSE='#'
13438 HAVE_GTK_DOC_TRUE='#'
13439 HAVE_GTK_DOC_FALSE=
13442 if test x$enable_gtk_doc = xyes; then
13443 ENABLE_GTK_DOC_TRUE=
13444 ENABLE_GTK_DOC_FALSE='#'
13446 ENABLE_GTK_DOC_TRUE='#'
13447 ENABLE_GTK_DOC_FALSE=
13450 if test x$enable_gtk_doc_html = xyes; then
13451 GTK_DOC_BUILD_HTML_TRUE=
13452 GTK_DOC_BUILD_HTML_FALSE='#'
13454 GTK_DOC_BUILD_HTML_TRUE='#'
13455 GTK_DOC_BUILD_HTML_FALSE=
13458 if test x$enable_gtk_doc_pdf = xyes; then
13459 GTK_DOC_BUILD_PDF_TRUE=
13460 GTK_DOC_BUILD_PDF_FALSE='#'
13462 GTK_DOC_BUILD_PDF_TRUE='#'
13463 GTK_DOC_BUILD_PDF_FALSE=
13466 if test -n "$LIBTOOL"; then
13467 GTK_DOC_USE_LIBTOOL_TRUE=
13468 GTK_DOC_USE_LIBTOOL_FALSE='#'
13470 GTK_DOC_USE_LIBTOOL_TRUE='#'
13471 GTK_DOC_USE_LIBTOOL_FALSE=
13474 if test -n "$GTKDOC_REBASE"; then
13475 GTK_DOC_USE_REBASE_TRUE=
13476 GTK_DOC_USE_REBASE_FALSE='#'
13478 GTK_DOC_USE_REBASE_TRUE='#'
13479 GTK_DOC_USE_REBASE_FALSE=
13484 # Check whether --enable-man, was given.
13485 if test "${enable_man+set}" = set; then :
13486 enableval=$enable_man;
13490 if test "$enable_man" != no; then :
13492 # Extract the first word of "xsltproc", so it can be a program name with args.
13493 set dummy xsltproc; ac_word=$2
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13495 $as_echo_n "checking for $ac_word... " >&6; }
13496 if ${ac_cv_path_XSLTPROC+:} false; then :
13497 $as_echo_n "(cached) " >&6
13501 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
13504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13505 for as_dir in $PATH
13508 test -z "$as_dir" && as_dir=.
13509 for ac_exec_ext in '' $ac_executable_extensions; do
13510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13511 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
13512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13522 XSLTPROC=$ac_cv_path_XSLTPROC
13523 if test -n "$XSLTPROC"; then
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
13525 $as_echo "$XSLTPROC" >&6; }
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13528 $as_echo "no" >&6; }
13532 if test -z "$XSLTPROC"; then :
13534 if test "$enable_man" = yes; then :
13536 as_fn_error $? "xsltproc is required for --enable-man" "$LINENO" 5
13546 # check for the presence of the XML catalog
13548 # Check whether --with-xml-catalog was given.
13549 if test "${with_xml_catalog+set}" = set; then :
13550 withval=$with_xml_catalog;
13552 with_xml_catalog=/etc/xml/catalog
13555 jh_found_xmlcatalog=true
13556 XML_CATALOG_FILE="$with_xml_catalog"
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML catalog ($XML_CATALOG_FILE)" >&5
13559 $as_echo_n "checking for XML catalog ($XML_CATALOG_FILE)... " >&6; }
13560 if test -f "$XML_CATALOG_FILE"; then
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13562 $as_echo "found" >&6; }
13564 jh_found_xmlcatalog=false
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13566 $as_echo "not found" >&6; }
13569 # check for the xmlcatalog program
13570 # Extract the first word of "xmlcatalog", so it can be a program name with args.
13571 set dummy xmlcatalog; ac_word=$2
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13573 $as_echo_n "checking for $ac_word... " >&6; }
13574 if ${ac_cv_path_XMLCATALOG+:} false; then :
13575 $as_echo_n "(cached) " >&6
13577 case $XMLCATALOG in
13579 ac_cv_path_XMLCATALOG="$XMLCATALOG" # Let the user override the test with a path.
13582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13583 for as_dir in $PATH
13586 test -z "$as_dir" && as_dir=.
13587 for ac_exec_ext in '' $ac_executable_extensions; do
13588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13589 ac_cv_path_XMLCATALOG="$as_dir/$ac_word$ac_exec_ext"
13590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13597 test -z "$ac_cv_path_XMLCATALOG" && ac_cv_path_XMLCATALOG="no"
13601 XMLCATALOG=$ac_cv_path_XMLCATALOG
13602 if test -n "$XMLCATALOG"; then
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLCATALOG" >&5
13604 $as_echo "$XMLCATALOG" >&6; }
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13607 $as_echo "no" >&6; }
13611 if test "x$XMLCATALOG" = xno; then
13612 jh_found_xmlcatalog=false
13615 if $jh_found_xmlcatalog; then
13621 if test "$enable_man" != no ; then :
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XML DTD V4.1.2 in XML catalog" >&5
13625 $as_echo_n "checking for DocBook XML DTD V4.1.2 in XML catalog... " >&6; }
13626 if $jh_found_xmlcatalog && \
13627 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"-//OASIS//DTD DocBook XML V4.1.2//EN\" >&2"; } >&5
13628 ($XMLCATALOG --noout "$XML_CATALOG_FILE" "-//OASIS//DTD DocBook XML V4.1.2//EN" >&2) 2>&5
13630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13631 test $ac_status = 0; }; then
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13633 $as_echo "found" >&6; }
13634 have_docbook_dtd=yes
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13637 $as_echo "not found" >&6; }
13638 have_docbook_dtd=no
13641 if test "$have_docbook_dtd" != yes; then :
13643 if test "$enable_man" = yes ; then :
13645 as_fn_error $? "DocBook DTD is required for --enable-man" "$LINENO" 5
13654 if test "$enable_man" != no; then :
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XSL Stylesheets in XML catalog" >&5
13658 $as_echo_n "checking for DocBook XSL Stylesheets in XML catalog... " >&6; }
13659 if $jh_found_xmlcatalog && \
13660 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl\" >&2"; } >&5
13661 ($XMLCATALOG --noout "$XML_CATALOG_FILE" "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" >&2) 2>&5
13663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13664 test $ac_status = 0; }; then
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13666 $as_echo "found" >&6; }
13667 have_docbook_style=yes
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13670 $as_echo "not found" >&6; }
13671 have_docbook_style=no
13674 if test "$have_docbook_dtd" != yes ; then :
13676 if test "$enable_man" = yes ; then :
13678 as_fn_error $? "DocBook XSL Stylesheets are required for --enable-man" "$LINENO" 5
13687 if test "$enable_man" != no; then
13689 ENABLE_MAN_FALSE='#'
13691 ENABLE_MAN_TRUE='#'
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to generate man pages" >&5
13697 $as_echo_n "checking whether to generate man pages... " >&6; }
13698 if test "$enable_man" != no ; then :
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13702 $as_echo "yes" >&6; }
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13707 $as_echo "no" >&6; }
13715 # Check whether --enable-introspection was given.
13716 if test "${enable_introspection+set}" = set; then :
13717 enableval=$enable_introspection;
13719 enable_introspection=auto
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
13724 $as_echo_n "checking for gobject-introspection... " >&6; }
13726 case $enable_introspection in #(
13728 found_introspection="no (disabled, use --enable-introspection to enable)"
13731 if test -n "$PKG_CONFIG" && \
13732 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
13733 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
13735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13736 test $ac_status = 0; }; then
13739 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
13741 if test -n "$PKG_CONFIG" && \
13742 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.5\""; } >&5
13743 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.5") 2>&5
13745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13746 test $ac_status = 0; }; then
13747 found_introspection=yes
13749 as_fn_error $? "You need to have gobject-introspection >= 0.9.5 installed to build json-glib" "$LINENO" 5
13753 if test -n "$PKG_CONFIG" && \
13754 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.5\""; } >&5
13755 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.5") 2>&5
13757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13758 test $ac_status = 0; }; then
13759 found_introspection=yes
13761 found_introspection=no
13763 enable_introspection=$found_introspection
13766 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
13770 $as_echo "$found_introspection" >&6; }
13772 INTROSPECTION_SCANNER=
13773 INTROSPECTION_COMPILER=
13774 INTROSPECTION_GENERATE=
13775 INTROSPECTION_GIRDIR=
13776 INTROSPECTION_TYPELIBDIR=
13777 if test "x$found_introspection" = "xyes"; then
13778 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
13779 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
13780 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
13781 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
13782 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
13783 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
13784 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
13785 INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
13796 if test "x$found_introspection" = "xyes"; then
13797 HAVE_INTROSPECTION_TRUE=
13798 HAVE_INTROSPECTION_FALSE='#'
13800 HAVE_INTROSPECTION_TRUE='#'
13801 HAVE_INTROSPECTION_FALSE=
13812 [\\/$]* | ?:[\\/]*) ;;
13813 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13818 $as_echo_n "checking whether NLS is requested... " >&6; }
13819 # Check whether --enable-nls was given.
13820 if test "${enable_nls+set}" = set; then :
13821 enableval=$enable_nls; USE_NLS=$enableval
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13827 $as_echo "$USE_NLS" >&6; }
13832 GETTEXT_MACRO_VERSION=0.18
13837 # Prepare PATH_SEPARATOR.
13838 # The user is always right.
13839 if test "${PATH_SEPARATOR+set}" != set; then
13840 echo "#! /bin/sh" >conf$$.sh
13841 echo "exit 0" >>conf$$.sh
13843 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13851 # Find out how to test for executable files. Don't use a zero-byte file,
13852 # as systems may use methods other than mode bits to determine executability.
13853 cat >conf$$.file <<_ASEOF
13857 chmod +x conf$$.file
13858 if test -x conf$$.file >/dev/null 2>&1; then
13859 ac_executable_p="test -x"
13861 ac_executable_p="test -f"
13865 # Extract the first word of "msgfmt", so it can be a program name with args.
13866 set dummy msgfmt; ac_word=$2
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13868 $as_echo_n "checking for $ac_word... " >&6; }
13869 if ${ac_cv_path_MSGFMT+:} false; then :
13870 $as_echo_n "(cached) " >&6
13874 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13877 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13878 for ac_dir in $PATH; do
13880 test -z "$ac_dir" && ac_dir=.
13881 for ac_exec_ext in '' $ac_executable_extensions; do
13882 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13883 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13884 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13885 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13886 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13893 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13897 MSGFMT="$ac_cv_path_MSGFMT"
13898 if test "$MSGFMT" != ":"; then
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13900 $as_echo "$MSGFMT" >&6; }
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13903 $as_echo "no" >&6; }
13906 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13907 set dummy gmsgfmt; ac_word=$2
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13909 $as_echo_n "checking for $ac_word... " >&6; }
13910 if ${ac_cv_path_GMSGFMT+:} false; then :
13911 $as_echo_n "(cached) " >&6
13915 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13919 for as_dir in $PATH
13922 test -z "$as_dir" && as_dir=.
13923 for ac_exec_ext in '' $ac_executable_extensions; do
13924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13925 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13933 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13937 GMSGFMT=$ac_cv_path_GMSGFMT
13938 if test -n "$GMSGFMT"; then
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13940 $as_echo "$GMSGFMT" >&6; }
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13943 $as_echo "no" >&6; }
13948 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13949 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
13950 *) MSGFMT_015=$MSGFMT ;;
13953 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13954 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13955 *) GMSGFMT_015=$GMSGFMT ;;
13960 # Prepare PATH_SEPARATOR.
13961 # The user is always right.
13962 if test "${PATH_SEPARATOR+set}" != set; then
13963 echo "#! /bin/sh" >conf$$.sh
13964 echo "exit 0" >>conf$$.sh
13966 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13974 # Find out how to test for executable files. Don't use a zero-byte file,
13975 # as systems may use methods other than mode bits to determine executability.
13976 cat >conf$$.file <<_ASEOF
13980 chmod +x conf$$.file
13981 if test -x conf$$.file >/dev/null 2>&1; then
13982 ac_executable_p="test -x"
13984 ac_executable_p="test -f"
13988 # Extract the first word of "xgettext", so it can be a program name with args.
13989 set dummy xgettext; ac_word=$2
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13991 $as_echo_n "checking for $ac_word... " >&6; }
13992 if ${ac_cv_path_XGETTEXT+:} false; then :
13993 $as_echo_n "(cached) " >&6
13995 case "$XGETTEXT" in
13997 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14000 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14001 for ac_dir in $PATH; do
14003 test -z "$ac_dir" && ac_dir=.
14004 for ac_exec_ext in '' $ac_executable_extensions; do
14005 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14006 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14007 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14008 (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
14009 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14016 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14020 XGETTEXT="$ac_cv_path_XGETTEXT"
14021 if test "$XGETTEXT" != ":"; then
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14023 $as_echo "$XGETTEXT" >&6; }
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14026 $as_echo "no" >&6; }
14031 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14032 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14033 *) XGETTEXT_015=$XGETTEXT ;;
14038 # Prepare PATH_SEPARATOR.
14039 # The user is always right.
14040 if test "${PATH_SEPARATOR+set}" != set; then
14041 echo "#! /bin/sh" >conf$$.sh
14042 echo "exit 0" >>conf$$.sh
14044 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14052 # Find out how to test for executable files. Don't use a zero-byte file,
14053 # as systems may use methods other than mode bits to determine executability.
14054 cat >conf$$.file <<_ASEOF
14058 chmod +x conf$$.file
14059 if test -x conf$$.file >/dev/null 2>&1; then
14060 ac_executable_p="test -x"
14062 ac_executable_p="test -f"
14066 # Extract the first word of "msgmerge", so it can be a program name with args.
14067 set dummy msgmerge; ac_word=$2
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14069 $as_echo_n "checking for $ac_word... " >&6; }
14070 if ${ac_cv_path_MSGMERGE+:} false; then :
14071 $as_echo_n "(cached) " >&6
14073 case "$MSGMERGE" in
14075 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14078 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14079 for ac_dir in $PATH; do
14081 test -z "$ac_dir" && ac_dir=.
14082 for ac_exec_ext in '' $ac_executable_extensions; do
14083 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14084 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14085 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14086 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14093 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14097 MSGMERGE="$ac_cv_path_MSGMERGE"
14098 if test "$MSGMERGE" != ":"; then
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14100 $as_echo "$MSGMERGE" >&6; }
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14103 $as_echo "no" >&6; }
14107 test -n "$localedir" || localedir='${datadir}/locale'
14110 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14113 ac_config_commands="$ac_config_commands po-directories"
14117 if test "X$prefix" = "XNONE"; then
14118 acl_final_prefix="$ac_default_prefix"
14120 acl_final_prefix="$prefix"
14122 if test "X$exec_prefix" = "XNONE"; then
14123 acl_final_exec_prefix='${prefix}'
14125 acl_final_exec_prefix="$exec_prefix"
14127 acl_save_prefix="$prefix"
14128 prefix="$acl_final_prefix"
14129 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14130 prefix="$acl_save_prefix"
14133 # Check whether --with-gnu-ld was given.
14134 if test "${with_gnu_ld+set}" = set; then :
14135 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14140 # Prepare PATH_SEPARATOR.
14141 # The user is always right.
14142 if test "${PATH_SEPARATOR+set}" != set; then
14143 echo "#! /bin/sh" >conf$$.sh
14144 echo "exit 0" >>conf$$.sh
14146 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14154 if test "$GCC" = yes; then
14155 # Check if gcc -print-prog-name=ld gives a path.
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14157 $as_echo_n "checking for ld used by GCC... " >&6; }
14160 # gcc leaves a trailing carriage return which upsets mingw
14161 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14163 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14166 # Accept absolute paths.
14167 [\\/]* | [A-Za-z]:[\\/]*)
14168 re_direlt='/[^/][^/]*/\.\./'
14169 # Canonicalize the path of ld
14170 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14171 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14172 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14174 test -z "$LD" && LD="$ac_prog"
14177 # If it fails, then pretend we aren't using GCC.
14181 # If it is relative, then search for the first ld in PATH.
14182 with_gnu_ld=unknown
14185 elif test "$with_gnu_ld" = yes; then
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14187 $as_echo_n "checking for GNU ld... " >&6; }
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14190 $as_echo_n "checking for non-GNU ld... " >&6; }
14192 if ${acl_cv_path_LD+:} false; then :
14193 $as_echo_n "(cached) " >&6
14195 if test -z "$LD"; then
14196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14197 for ac_dir in $PATH; do
14198 test -z "$ac_dir" && ac_dir=.
14199 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14200 acl_cv_path_LD="$ac_dir/$ac_prog"
14201 # Check to see if the program is GNU ld. I'd rather use --version,
14202 # but apparently some GNU ld's only accept -v.
14203 # Break only if it was the GNU/non-GNU ld that we prefer.
14204 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14205 *GNU* | *'with BFD'*)
14206 test "$with_gnu_ld" != no && break ;;
14208 test "$with_gnu_ld" != yes && break ;;
14214 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14218 LD="$acl_cv_path_LD"
14219 if test -n "$LD"; then
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14221 $as_echo "$LD" >&6; }
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14224 $as_echo "no" >&6; }
14226 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14228 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14229 if ${acl_cv_prog_gnu_ld+:} false; then :
14230 $as_echo_n "(cached) " >&6
14232 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14233 case `$LD -v 2>&1 </dev/null` in
14234 *GNU* | *'with BFD'*)
14235 acl_cv_prog_gnu_ld=yes ;;
14237 acl_cv_prog_gnu_ld=no ;;
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14241 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14242 with_gnu_ld=$acl_cv_prog_gnu_ld
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14248 $as_echo_n "checking for shared library run path origin... " >&6; }
14249 if ${acl_cv_rpath+:} false; then :
14250 $as_echo_n "(cached) " >&6
14253 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14254 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14256 rm -f ./conftest.sh
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14261 $as_echo "$acl_cv_rpath" >&6; }
14263 acl_libext="$acl_cv_libext"
14264 acl_shlibext="$acl_cv_shlibext"
14265 acl_libname_spec="$acl_cv_libname_spec"
14266 acl_library_names_spec="$acl_cv_library_names_spec"
14267 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14268 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14269 acl_hardcode_direct="$acl_cv_hardcode_direct"
14270 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14271 # Check whether --enable-rpath was given.
14272 if test "${enable_rpath+set}" = set; then :
14273 enableval=$enable_rpath; :
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
14286 $as_echo_n "checking for 64-bit host... " >&6; }
14287 if ${gl_cv_solaris_64bit+:} false; then :
14288 $as_echo_n "(cached) " >&6
14290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14291 /* end confdefs.h. */
14298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14299 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
14300 gl_cv_solaris_64bit=yes
14302 gl_cv_solaris_64bit=no
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
14309 $as_echo "$gl_cv_solaris_64bit" >&6; }
14310 if test $gl_cv_solaris_64bit = yes; then
14311 acl_libdirstem=lib/64
14312 case "$host_cpu" in
14313 sparc*) acl_libdirstem2=lib/sparcv9 ;;
14314 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
14319 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14320 if test -n "$searchpath"; then
14321 acl_save_IFS="${IFS= }"; IFS=":"
14322 for searchdir in $searchpath; do
14323 if test -d "$searchdir"; then
14324 case "$searchdir" in
14325 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14327 # Better ignore directories of this form. They are misleading.
14329 *) searchdir=`cd "$searchdir" && pwd`
14330 case "$searchdir" in
14331 */lib64 ) acl_libdirstem=lib64 ;;
14336 IFS="$acl_save_IFS"
14340 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
14355 acl_save_prefix="$prefix"
14356 prefix="$acl_final_prefix"
14357 acl_save_exec_prefix="$exec_prefix"
14358 exec_prefix="$acl_final_exec_prefix"
14360 eval additional_includedir=\"$includedir\"
14361 eval additional_libdir=\"$libdir\"
14363 exec_prefix="$acl_save_exec_prefix"
14364 prefix="$acl_save_prefix"
14367 # Check whether --with-libiconv-prefix was given.
14368 if test "${with_libiconv_prefix+set}" = set; then :
14369 withval=$with_libiconv_prefix;
14370 if test "X$withval" = "Xno"; then
14373 if test "X$withval" = "X"; then
14375 acl_save_prefix="$prefix"
14376 prefix="$acl_final_prefix"
14377 acl_save_exec_prefix="$exec_prefix"
14378 exec_prefix="$acl_final_exec_prefix"
14380 eval additional_includedir=\"$includedir\"
14381 eval additional_libdir=\"$libdir\"
14383 exec_prefix="$acl_save_exec_prefix"
14384 prefix="$acl_save_prefix"
14387 additional_includedir="$withval/include"
14388 additional_libdir="$withval/$acl_libdirstem"
14389 if test "$acl_libdirstem2" != "$acl_libdirstem" \
14390 && ! test -d "$withval/$acl_libdirstem"; then
14391 additional_libdir="$withval/$acl_libdirstem2"
14405 names_already_handled=
14406 names_next_round='iconv '
14407 while test -n "$names_next_round"; do
14408 names_this_round="$names_next_round"
14410 for name in $names_this_round; do
14412 for n in $names_already_handled; do
14413 if test "$n" = "$name"; then
14414 already_handled=yes
14418 if test -z "$already_handled"; then
14419 names_already_handled="$names_already_handled $name"
14420 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14421 eval value=\"\$HAVE_LIB$uppername\"
14422 if test -n "$value"; then
14423 if test "$value" = yes; then
14424 eval value=\"\$LIB$uppername\"
14425 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14426 eval value=\"\$LTLIB$uppername\"
14427 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14436 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14437 if test -n "$acl_shlibext"; then
14438 shrext=".$acl_shlibext" # typically: shrext=.so
14442 if test $use_additional = yes; then
14443 dir="$additional_libdir"
14444 if test -n "$acl_shlibext"; then
14445 if test -f "$dir/$libname$shrext"; then
14447 found_so="$dir/$libname$shrext"
14449 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14450 ver=`(cd "$dir" && \
14451 for f in "$libname$shrext".*; do echo "$f"; done \
14452 | sed -e "s,^$libname$shrext\\\\.,," \
14453 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14454 | sed 1q ) 2>/dev/null`
14455 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14457 found_so="$dir/$libname$shrext.$ver"
14460 eval library_names=\"$acl_library_names_spec\"
14461 for f in $library_names; do
14462 if test -f "$dir/$f"; then
14471 if test "X$found_dir" = "X"; then
14472 if test -f "$dir/$libname.$acl_libext"; then
14474 found_a="$dir/$libname.$acl_libext"
14477 if test "X$found_dir" != "X"; then
14478 if test -f "$dir/$libname.la"; then
14479 found_la="$dir/$libname.la"
14483 if test "X$found_dir" = "X"; then
14484 for x in $LDFLAGS $LTLIBICONV; do
14486 acl_save_prefix="$prefix"
14487 prefix="$acl_final_prefix"
14488 acl_save_exec_prefix="$exec_prefix"
14489 exec_prefix="$acl_final_exec_prefix"
14491 exec_prefix="$acl_save_exec_prefix"
14492 prefix="$acl_save_prefix"
14496 dir=`echo "X$x" | sed -e 's/^X-L//'`
14497 if test -n "$acl_shlibext"; then
14498 if test -f "$dir/$libname$shrext"; then
14500 found_so="$dir/$libname$shrext"
14502 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14503 ver=`(cd "$dir" && \
14504 for f in "$libname$shrext".*; do echo "$f"; done \
14505 | sed -e "s,^$libname$shrext\\\\.,," \
14506 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14507 | sed 1q ) 2>/dev/null`
14508 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14510 found_so="$dir/$libname$shrext.$ver"
14513 eval library_names=\"$acl_library_names_spec\"
14514 for f in $library_names; do
14515 if test -f "$dir/$f"; then
14524 if test "X$found_dir" = "X"; then
14525 if test -f "$dir/$libname.$acl_libext"; then
14527 found_a="$dir/$libname.$acl_libext"
14530 if test "X$found_dir" != "X"; then
14531 if test -f "$dir/$libname.la"; then
14532 found_la="$dir/$libname.la"
14537 if test "X$found_dir" != "X"; then
14542 if test "X$found_dir" != "X"; then
14543 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14544 if test "X$found_so" != "X"; then
14545 if test "$enable_rpath" = no \
14546 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14547 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14548 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14551 for x in $ltrpathdirs; do
14552 if test "X$x" = "X$found_dir"; then
14557 if test -z "$haveit"; then
14558 ltrpathdirs="$ltrpathdirs $found_dir"
14560 if test "$acl_hardcode_direct" = yes; then
14561 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14563 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14564 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14566 for x in $rpathdirs; do
14567 if test "X$x" = "X$found_dir"; then
14572 if test -z "$haveit"; then
14573 rpathdirs="$rpathdirs $found_dir"
14577 for x in $LDFLAGS $LIBICONV; do
14579 acl_save_prefix="$prefix"
14580 prefix="$acl_final_prefix"
14581 acl_save_exec_prefix="$exec_prefix"
14582 exec_prefix="$acl_final_exec_prefix"
14584 exec_prefix="$acl_save_exec_prefix"
14585 prefix="$acl_save_prefix"
14587 if test "X$x" = "X-L$found_dir"; then
14592 if test -z "$haveit"; then
14593 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14595 if test "$acl_hardcode_minus_L" != no; then
14596 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14598 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14604 if test "X$found_a" != "X"; then
14605 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14607 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14610 additional_includedir=
14611 case "$found_dir" in
14612 */$acl_libdirstem | */$acl_libdirstem/)
14613 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14614 if test "$name" = 'iconv'; then
14615 LIBICONV_PREFIX="$basedir"
14617 additional_includedir="$basedir/include"
14619 */$acl_libdirstem2 | */$acl_libdirstem2/)
14620 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14621 if test "$name" = 'iconv'; then
14622 LIBICONV_PREFIX="$basedir"
14624 additional_includedir="$basedir/include"
14627 if test "X$additional_includedir" != "X"; then
14628 if test "X$additional_includedir" != "X/usr/include"; then
14630 if test "X$additional_includedir" = "X/usr/local/include"; then
14631 if test -n "$GCC"; then
14633 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14637 if test -z "$haveit"; then
14638 for x in $CPPFLAGS $INCICONV; do
14640 acl_save_prefix="$prefix"
14641 prefix="$acl_final_prefix"
14642 acl_save_exec_prefix="$exec_prefix"
14643 exec_prefix="$acl_final_exec_prefix"
14645 exec_prefix="$acl_save_exec_prefix"
14646 prefix="$acl_save_prefix"
14648 if test "X$x" = "X-I$additional_includedir"; then
14653 if test -z "$haveit"; then
14654 if test -d "$additional_includedir"; then
14655 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14661 if test -n "$found_la"; then
14662 save_libdir="$libdir"
14663 case "$found_la" in
14664 */* | *\\*) . "$found_la" ;;
14665 *) . "./$found_la" ;;
14667 libdir="$save_libdir"
14668 for dep in $dependency_libs; do
14671 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14672 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14673 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14675 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14676 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14677 if test -n "$GCC"; then
14679 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14683 if test -z "$haveit"; then
14685 for x in $LDFLAGS $LIBICONV; do
14687 acl_save_prefix="$prefix"
14688 prefix="$acl_final_prefix"
14689 acl_save_exec_prefix="$exec_prefix"
14690 exec_prefix="$acl_final_exec_prefix"
14692 exec_prefix="$acl_save_exec_prefix"
14693 prefix="$acl_save_prefix"
14695 if test "X$x" = "X-L$additional_libdir"; then
14700 if test -z "$haveit"; then
14701 if test -d "$additional_libdir"; then
14702 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14706 for x in $LDFLAGS $LTLIBICONV; do
14708 acl_save_prefix="$prefix"
14709 prefix="$acl_final_prefix"
14710 acl_save_exec_prefix="$exec_prefix"
14711 exec_prefix="$acl_final_exec_prefix"
14713 exec_prefix="$acl_save_exec_prefix"
14714 prefix="$acl_save_prefix"
14716 if test "X$x" = "X-L$additional_libdir"; then
14721 if test -z "$haveit"; then
14722 if test -d "$additional_libdir"; then
14723 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14730 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14731 if test "$enable_rpath" != no; then
14733 for x in $rpathdirs; do
14734 if test "X$x" = "X$dir"; then
14739 if test -z "$haveit"; then
14740 rpathdirs="$rpathdirs $dir"
14743 for x in $ltrpathdirs; do
14744 if test "X$x" = "X$dir"; then
14749 if test -z "$haveit"; then
14750 ltrpathdirs="$ltrpathdirs $dir"
14755 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14758 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14761 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14762 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14768 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14769 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14775 if test "X$rpathdirs" != "X"; then
14776 if test -n "$acl_hardcode_libdir_separator"; then
14778 for found_dir in $rpathdirs; do
14779 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14781 acl_save_libdir="$libdir"
14783 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14784 libdir="$acl_save_libdir"
14785 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14787 for found_dir in $rpathdirs; do
14788 acl_save_libdir="$libdir"
14789 libdir="$found_dir"
14790 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14791 libdir="$acl_save_libdir"
14792 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14796 if test "X$ltrpathdirs" != "X"; then
14797 for found_dir in $ltrpathdirs; do
14798 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14833 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14834 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
14835 $as_echo_n "(cached) " >&6
14837 gt_save_LIBS="$LIBS"
14838 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14840 /* end confdefs.h. */
14841 #include <CoreFoundation/CFPreferences.h>
14845 CFPreferencesCopyAppValue(NULL, NULL)
14850 if ac_fn_c_try_link "$LINENO"; then :
14851 gt_cv_func_CFPreferencesCopyAppValue=yes
14853 gt_cv_func_CFPreferencesCopyAppValue=no
14855 rm -f core conftest.err conftest.$ac_objext \
14856 conftest$ac_exeext conftest.$ac_ext
14857 LIBS="$gt_save_LIBS"
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14860 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14861 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14863 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14867 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14868 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
14869 $as_echo_n "(cached) " >&6
14871 gt_save_LIBS="$LIBS"
14872 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14874 /* end confdefs.h. */
14875 #include <CoreFoundation/CFLocale.h>
14879 CFLocaleCopyCurrent();
14884 if ac_fn_c_try_link "$LINENO"; then :
14885 gt_cv_func_CFLocaleCopyCurrent=yes
14887 gt_cv_func_CFLocaleCopyCurrent=no
14889 rm -f core conftest.err conftest.$ac_objext \
14890 conftest$ac_exeext conftest.$ac_ext
14891 LIBS="$gt_save_LIBS"
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14894 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14895 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14897 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14901 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14902 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14914 case " $gt_needs " in
14915 *" need-formatstring-macros "*) gt_api_version=3 ;;
14916 *" need-ngettext "*) gt_api_version=2 ;;
14917 *) gt_api_version=1 ;;
14919 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14920 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14922 if test "$USE_NLS" = "yes"; then
14923 gt_use_preinstalled_gnugettext=no
14926 if test $gt_api_version -ge 3; then
14927 gt_revision_test_code='
14928 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14929 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14931 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14934 gt_revision_test_code=
14936 if test $gt_api_version -ge 2; then
14937 gt_expression_test_code=' + * ngettext ("", "", 0)'
14939 gt_expression_test_code=
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14943 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14944 if eval \${$gt_func_gnugettext_libc+:} false; then :
14945 $as_echo_n "(cached) " >&6
14947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14948 /* end confdefs.h. */
14949 #include <libintl.h>
14950 $gt_revision_test_code
14951 extern int _nl_msg_cat_cntr;
14952 extern int *_nl_domain_bindings;
14956 bindtextdomain ("", "");
14957 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14962 if ac_fn_c_try_link "$LINENO"; then :
14963 eval "$gt_func_gnugettext_libc=yes"
14965 eval "$gt_func_gnugettext_libc=no"
14967 rm -f core conftest.err conftest.$ac_objext \
14968 conftest$ac_exeext conftest.$ac_ext
14970 eval ac_res=\$$gt_func_gnugettext_libc
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14972 $as_echo "$ac_res" >&6; }
14974 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14980 am_save_CPPFLAGS="$CPPFLAGS"
14982 for element in $INCICONV; do
14984 for x in $CPPFLAGS; do
14986 acl_save_prefix="$prefix"
14987 prefix="$acl_final_prefix"
14988 acl_save_exec_prefix="$exec_prefix"
14989 exec_prefix="$acl_final_exec_prefix"
14991 exec_prefix="$acl_save_exec_prefix"
14992 prefix="$acl_save_prefix"
14994 if test "X$x" = "X$element"; then
14999 if test -z "$haveit"; then
15000 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15006 $as_echo_n "checking for iconv... " >&6; }
15007 if ${am_cv_func_iconv+:} false; then :
15008 $as_echo_n "(cached) " >&6
15011 am_cv_func_iconv="no, consider installing GNU libiconv"
15013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15014 /* end confdefs.h. */
15015 #include <stdlib.h>
15020 iconv_t cd = iconv_open("","");
15021 iconv(cd,NULL,NULL,NULL,NULL);
15027 if ac_fn_c_try_link "$LINENO"; then :
15028 am_cv_func_iconv=yes
15030 rm -f core conftest.err conftest.$ac_objext \
15031 conftest$ac_exeext conftest.$ac_ext
15032 if test "$am_cv_func_iconv" != yes; then
15033 am_save_LIBS="$LIBS"
15034 LIBS="$LIBS $LIBICONV"
15035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15036 /* end confdefs.h. */
15037 #include <stdlib.h>
15042 iconv_t cd = iconv_open("","");
15043 iconv(cd,NULL,NULL,NULL,NULL);
15049 if ac_fn_c_try_link "$LINENO"; then :
15050 am_cv_lib_iconv=yes
15051 am_cv_func_iconv=yes
15053 rm -f core conftest.err conftest.$ac_objext \
15054 conftest$ac_exeext conftest.$ac_ext
15055 LIBS="$am_save_LIBS"
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15060 $as_echo "$am_cv_func_iconv" >&6; }
15061 if test "$am_cv_func_iconv" = yes; then
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15063 $as_echo_n "checking for working iconv... " >&6; }
15064 if ${am_cv_func_iconv_works+:} false; then :
15065 $as_echo_n "(cached) " >&6
15068 am_save_LIBS="$LIBS"
15069 if test $am_cv_lib_iconv = yes; then
15070 LIBS="$LIBS $LIBICONV"
15072 if test "$cross_compiling" = yes; then :
15074 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15075 *) am_cv_func_iconv_works="guessing yes" ;;
15078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15079 /* end confdefs.h. */
15082 #include <string.h>
15085 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15088 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15089 if (cd_utf8_to_88591 != (iconv_t)(-1))
15091 static const char input[] = "\342\202\254"; /* EURO SIGN */
15093 const char *inptr = input;
15094 size_t inbytesleft = strlen (input);
15095 char *outptr = buf;
15096 size_t outbytesleft = sizeof (buf);
15097 size_t res = iconv (cd_utf8_to_88591,
15098 (char **) &inptr, &inbytesleft,
15099 &outptr, &outbytesleft);
15104 /* Test against Solaris 10 bug: Failures are not distinguishable from
15105 successful returns. */
15107 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
15108 if (cd_ascii_to_88591 != (iconv_t)(-1))
15110 static const char input[] = "\263";
15112 const char *inptr = input;
15113 size_t inbytesleft = strlen (input);
15114 char *outptr = buf;
15115 size_t outbytesleft = sizeof (buf);
15116 size_t res = iconv (cd_ascii_to_88591,
15117 (char **) &inptr, &inbytesleft,
15118 &outptr, &outbytesleft);
15123 #if 0 /* This bug could be worked around by the caller. */
15124 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
15126 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15127 if (cd_88591_to_utf8 != (iconv_t)(-1))
15129 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15131 const char *inptr = input;
15132 size_t inbytesleft = strlen (input);
15133 char *outptr = buf;
15134 size_t outbytesleft = sizeof (buf);
15135 size_t res = iconv (cd_88591_to_utf8,
15136 (char **) &inptr, &inbytesleft,
15137 &outptr, &outbytesleft);
15143 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15145 if (/* Try standardized names. */
15146 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15147 /* Try IRIX, OSF/1 names. */
15148 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15149 /* Try AIX names. */
15150 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15151 /* Try HP-UX names. */
15152 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15157 if ac_fn_c_try_run "$LINENO"; then :
15158 am_cv_func_iconv_works=yes
15160 am_cv_func_iconv_works=no
15162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15163 conftest.$ac_objext conftest.beam conftest.$ac_ext
15166 LIBS="$am_save_LIBS"
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15170 $as_echo "$am_cv_func_iconv_works" >&6; }
15171 case "$am_cv_func_iconv_works" in
15172 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15173 *) am_func_iconv=yes ;;
15176 am_func_iconv=no am_cv_lib_iconv=no
15178 if test "$am_func_iconv" = yes; then
15180 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15183 if test "$am_cv_lib_iconv" = yes; then
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15185 $as_echo_n "checking how to link with libiconv... " >&6; }
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15187 $as_echo "$LIBICONV" >&6; }
15189 CPPFLAGS="$am_save_CPPFLAGS"
15206 acl_save_prefix="$prefix"
15207 prefix="$acl_final_prefix"
15208 acl_save_exec_prefix="$exec_prefix"
15209 exec_prefix="$acl_final_exec_prefix"
15211 eval additional_includedir=\"$includedir\"
15212 eval additional_libdir=\"$libdir\"
15214 exec_prefix="$acl_save_exec_prefix"
15215 prefix="$acl_save_prefix"
15218 # Check whether --with-libintl-prefix was given.
15219 if test "${with_libintl_prefix+set}" = set; then :
15220 withval=$with_libintl_prefix;
15221 if test "X$withval" = "Xno"; then
15224 if test "X$withval" = "X"; then
15226 acl_save_prefix="$prefix"
15227 prefix="$acl_final_prefix"
15228 acl_save_exec_prefix="$exec_prefix"
15229 exec_prefix="$acl_final_exec_prefix"
15231 eval additional_includedir=\"$includedir\"
15232 eval additional_libdir=\"$libdir\"
15234 exec_prefix="$acl_save_exec_prefix"
15235 prefix="$acl_save_prefix"
15238 additional_includedir="$withval/include"
15239 additional_libdir="$withval/$acl_libdirstem"
15240 if test "$acl_libdirstem2" != "$acl_libdirstem" \
15241 && ! test -d "$withval/$acl_libdirstem"; then
15242 additional_libdir="$withval/$acl_libdirstem2"
15256 names_already_handled=
15257 names_next_round='intl '
15258 while test -n "$names_next_round"; do
15259 names_this_round="$names_next_round"
15261 for name in $names_this_round; do
15263 for n in $names_already_handled; do
15264 if test "$n" = "$name"; then
15265 already_handled=yes
15269 if test -z "$already_handled"; then
15270 names_already_handled="$names_already_handled $name"
15271 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15272 eval value=\"\$HAVE_LIB$uppername\"
15273 if test -n "$value"; then
15274 if test "$value" = yes; then
15275 eval value=\"\$LIB$uppername\"
15276 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15277 eval value=\"\$LTLIB$uppername\"
15278 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15287 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
15288 if test -n "$acl_shlibext"; then
15289 shrext=".$acl_shlibext" # typically: shrext=.so
15293 if test $use_additional = yes; then
15294 dir="$additional_libdir"
15295 if test -n "$acl_shlibext"; then
15296 if test -f "$dir/$libname$shrext"; then
15298 found_so="$dir/$libname$shrext"
15300 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15301 ver=`(cd "$dir" && \
15302 for f in "$libname$shrext".*; do echo "$f"; done \
15303 | sed -e "s,^$libname$shrext\\\\.,," \
15304 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15305 | sed 1q ) 2>/dev/null`
15306 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15308 found_so="$dir/$libname$shrext.$ver"
15311 eval library_names=\"$acl_library_names_spec\"
15312 for f in $library_names; do
15313 if test -f "$dir/$f"; then
15322 if test "X$found_dir" = "X"; then
15323 if test -f "$dir/$libname.$acl_libext"; then
15325 found_a="$dir/$libname.$acl_libext"
15328 if test "X$found_dir" != "X"; then
15329 if test -f "$dir/$libname.la"; then
15330 found_la="$dir/$libname.la"
15334 if test "X$found_dir" = "X"; then
15335 for x in $LDFLAGS $LTLIBINTL; do
15337 acl_save_prefix="$prefix"
15338 prefix="$acl_final_prefix"
15339 acl_save_exec_prefix="$exec_prefix"
15340 exec_prefix="$acl_final_exec_prefix"
15342 exec_prefix="$acl_save_exec_prefix"
15343 prefix="$acl_save_prefix"
15347 dir=`echo "X$x" | sed -e 's/^X-L//'`
15348 if test -n "$acl_shlibext"; then
15349 if test -f "$dir/$libname$shrext"; then
15351 found_so="$dir/$libname$shrext"
15353 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15354 ver=`(cd "$dir" && \
15355 for f in "$libname$shrext".*; do echo "$f"; done \
15356 | sed -e "s,^$libname$shrext\\\\.,," \
15357 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15358 | sed 1q ) 2>/dev/null`
15359 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15361 found_so="$dir/$libname$shrext.$ver"
15364 eval library_names=\"$acl_library_names_spec\"
15365 for f in $library_names; do
15366 if test -f "$dir/$f"; then
15375 if test "X$found_dir" = "X"; then
15376 if test -f "$dir/$libname.$acl_libext"; then
15378 found_a="$dir/$libname.$acl_libext"
15381 if test "X$found_dir" != "X"; then
15382 if test -f "$dir/$libname.la"; then
15383 found_la="$dir/$libname.la"
15388 if test "X$found_dir" != "X"; then
15393 if test "X$found_dir" != "X"; then
15394 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15395 if test "X$found_so" != "X"; then
15396 if test "$enable_rpath" = no \
15397 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15398 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15399 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15402 for x in $ltrpathdirs; do
15403 if test "X$x" = "X$found_dir"; then
15408 if test -z "$haveit"; then
15409 ltrpathdirs="$ltrpathdirs $found_dir"
15411 if test "$acl_hardcode_direct" = yes; then
15412 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15414 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15415 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15417 for x in $rpathdirs; do
15418 if test "X$x" = "X$found_dir"; then
15423 if test -z "$haveit"; then
15424 rpathdirs="$rpathdirs $found_dir"
15428 for x in $LDFLAGS $LIBINTL; do
15430 acl_save_prefix="$prefix"
15431 prefix="$acl_final_prefix"
15432 acl_save_exec_prefix="$exec_prefix"
15433 exec_prefix="$acl_final_exec_prefix"
15435 exec_prefix="$acl_save_exec_prefix"
15436 prefix="$acl_save_prefix"
15438 if test "X$x" = "X-L$found_dir"; then
15443 if test -z "$haveit"; then
15444 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15446 if test "$acl_hardcode_minus_L" != no; then
15447 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15449 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15455 if test "X$found_a" != "X"; then
15456 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15458 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15461 additional_includedir=
15462 case "$found_dir" in
15463 */$acl_libdirstem | */$acl_libdirstem/)
15464 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15465 if test "$name" = 'intl'; then
15466 LIBINTL_PREFIX="$basedir"
15468 additional_includedir="$basedir/include"
15470 */$acl_libdirstem2 | */$acl_libdirstem2/)
15471 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15472 if test "$name" = 'intl'; then
15473 LIBINTL_PREFIX="$basedir"
15475 additional_includedir="$basedir/include"
15478 if test "X$additional_includedir" != "X"; then
15479 if test "X$additional_includedir" != "X/usr/include"; then
15481 if test "X$additional_includedir" = "X/usr/local/include"; then
15482 if test -n "$GCC"; then
15484 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15488 if test -z "$haveit"; then
15489 for x in $CPPFLAGS $INCINTL; do
15491 acl_save_prefix="$prefix"
15492 prefix="$acl_final_prefix"
15493 acl_save_exec_prefix="$exec_prefix"
15494 exec_prefix="$acl_final_exec_prefix"
15496 exec_prefix="$acl_save_exec_prefix"
15497 prefix="$acl_save_prefix"
15499 if test "X$x" = "X-I$additional_includedir"; then
15504 if test -z "$haveit"; then
15505 if test -d "$additional_includedir"; then
15506 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15512 if test -n "$found_la"; then
15513 save_libdir="$libdir"
15514 case "$found_la" in
15515 */* | *\\*) . "$found_la" ;;
15516 *) . "./$found_la" ;;
15518 libdir="$save_libdir"
15519 for dep in $dependency_libs; do
15522 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15523 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15524 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15526 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15527 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15528 if test -n "$GCC"; then
15530 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15534 if test -z "$haveit"; then
15536 for x in $LDFLAGS $LIBINTL; do
15538 acl_save_prefix="$prefix"
15539 prefix="$acl_final_prefix"
15540 acl_save_exec_prefix="$exec_prefix"
15541 exec_prefix="$acl_final_exec_prefix"
15543 exec_prefix="$acl_save_exec_prefix"
15544 prefix="$acl_save_prefix"
15546 if test "X$x" = "X-L$additional_libdir"; then
15551 if test -z "$haveit"; then
15552 if test -d "$additional_libdir"; then
15553 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15557 for x in $LDFLAGS $LTLIBINTL; do
15559 acl_save_prefix="$prefix"
15560 prefix="$acl_final_prefix"
15561 acl_save_exec_prefix="$exec_prefix"
15562 exec_prefix="$acl_final_exec_prefix"
15564 exec_prefix="$acl_save_exec_prefix"
15565 prefix="$acl_save_prefix"
15567 if test "X$x" = "X-L$additional_libdir"; then
15572 if test -z "$haveit"; then
15573 if test -d "$additional_libdir"; then
15574 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15581 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15582 if test "$enable_rpath" != no; then
15584 for x in $rpathdirs; do
15585 if test "X$x" = "X$dir"; then
15590 if test -z "$haveit"; then
15591 rpathdirs="$rpathdirs $dir"
15594 for x in $ltrpathdirs; do
15595 if test "X$x" = "X$dir"; then
15600 if test -z "$haveit"; then
15601 ltrpathdirs="$ltrpathdirs $dir"
15606 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15609 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15612 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15613 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15619 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15620 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15626 if test "X$rpathdirs" != "X"; then
15627 if test -n "$acl_hardcode_libdir_separator"; then
15629 for found_dir in $rpathdirs; do
15630 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15632 acl_save_libdir="$libdir"
15634 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15635 libdir="$acl_save_libdir"
15636 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15638 for found_dir in $rpathdirs; do
15639 acl_save_libdir="$libdir"
15640 libdir="$found_dir"
15641 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15642 libdir="$acl_save_libdir"
15643 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15647 if test "X$ltrpathdirs" != "X"; then
15648 for found_dir in $ltrpathdirs; do
15649 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15659 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
15660 if eval \${$gt_func_gnugettext_libintl+:} false; then :
15661 $as_echo_n "(cached) " >&6
15663 gt_save_CPPFLAGS="$CPPFLAGS"
15664 CPPFLAGS="$CPPFLAGS $INCINTL"
15665 gt_save_LIBS="$LIBS"
15666 LIBS="$LIBS $LIBINTL"
15667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15668 /* end confdefs.h. */
15669 #include <libintl.h>
15670 $gt_revision_test_code
15671 extern int _nl_msg_cat_cntr;
15676 const char *_nl_expand_alias (const char *);
15680 bindtextdomain ("", "");
15681 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15686 if ac_fn_c_try_link "$LINENO"; then :
15687 eval "$gt_func_gnugettext_libintl=yes"
15689 eval "$gt_func_gnugettext_libintl=no"
15691 rm -f core conftest.err conftest.$ac_objext \
15692 conftest$ac_exeext conftest.$ac_ext
15693 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15694 LIBS="$LIBS $LIBICONV"
15695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15696 /* end confdefs.h. */
15697 #include <libintl.h>
15698 $gt_revision_test_code
15699 extern int _nl_msg_cat_cntr;
15704 const char *_nl_expand_alias (const char *);
15708 bindtextdomain ("", "");
15709 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15714 if ac_fn_c_try_link "$LINENO"; then :
15715 LIBINTL="$LIBINTL $LIBICONV"
15716 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15717 eval "$gt_func_gnugettext_libintl=yes"
15720 rm -f core conftest.err conftest.$ac_objext \
15721 conftest$ac_exeext conftest.$ac_ext
15723 CPPFLAGS="$gt_save_CPPFLAGS"
15724 LIBS="$gt_save_LIBS"
15726 eval ac_res=\$$gt_func_gnugettext_libintl
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15728 $as_echo "$ac_res" >&6; }
15731 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15732 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15733 && test "$PACKAGE" != gettext-runtime \
15734 && test "$PACKAGE" != gettext-tools; }; then
15735 gt_use_preinstalled_gnugettext=yes
15744 if test -n "$INTL_MACOSX_LIBS"; then
15745 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15746 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15747 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15748 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15752 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15753 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15755 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15763 $as_echo_n "checking whether to use NLS... " >&6; }
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15765 $as_echo "$USE_NLS" >&6; }
15766 if test "$USE_NLS" = "yes"; then
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15768 $as_echo_n "checking where the gettext function comes from... " >&6; }
15769 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15770 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15771 gt_source="external libintl"
15776 gt_source="included intl directory"
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15779 $as_echo "$gt_source" >&6; }
15782 if test "$USE_NLS" = "yes"; then
15784 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15785 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15787 $as_echo_n "checking how to link with libintl... " >&6; }
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15789 $as_echo "$LIBINTL" >&6; }
15791 for element in $INCINTL; do
15793 for x in $CPPFLAGS; do
15795 acl_save_prefix="$prefix"
15796 prefix="$acl_final_prefix"
15797 acl_save_exec_prefix="$exec_prefix"
15798 exec_prefix="$acl_final_exec_prefix"
15800 exec_prefix="$acl_save_exec_prefix"
15801 prefix="$acl_save_prefix"
15803 if test "X$x" = "X$element"; then
15808 if test -z "$haveit"; then
15809 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15816 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15819 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15828 INTLLIBS="$LIBINTL"
15836 GETTEXT_PACKAGE="json-glib-1.0"
15839 cat >>confdefs.h <<_ACEOF
15840 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linguas" >&5
15845 $as_echo_n "checking for linguas... " >&6; }
15847 linguas=`cd $podir && ls *.po 2>/dev/null | awk 'BEGIN { FS="."; ORS=" " } { print $1 }'`
15848 if test -f "$podir/LINGUAS.ignore"; then
15850 ignore_linguas=`sed -n -e 's/^\s\+\|\s\+$//g' -e '/^#/b' -e '/\S/!b' \
15851 -e 's/\s\+/\n/g' -e p "$podir/LINGUAS.ignore"`;
15852 for lang in $linguas; do
15853 if ! echo "$ignore_linguas" | grep -q "^${lang}$"; then
15854 ALL_LINGUAS="$ALL_LINGUAS $lang";
15858 ALL_LINGUAS="$linguas";
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALL_LINGUAS" >&5
15862 $as_echo "$ALL_LINGUAS" >&6; }
15865 if test x$MSVC_BASE_TOOLSET = x; then
15866 MSVC_BASE_NO_TOOLSET_SET_TRUE=
15867 MSVC_BASE_NO_TOOLSET_SET_FALSE='#'
15869 MSVC_BASE_NO_TOOLSET_SET_TRUE='#'
15870 MSVC_BASE_NO_TOOLSET_SET_FALSE=
15873 if test x$MSVC_TOOLSET = x; then
15874 MSVC_NO_TOOLSET_SET_TRUE=
15875 MSVC_NO_TOOLSET_SET_FALSE='#'
15877 MSVC_NO_TOOLSET_SET_TRUE='#'
15878 MSVC_NO_TOOLSET_SET_FALSE=
15886 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/vs9/json-glib-version-paths.vsprops build/win32/vs10/Makefile build/win32/vs10/json-glib-version-paths.props build/win32/vs11/Makefile build/win32/vs12/Makefile build/win32/vs14/Makefile build/win32/vs15/Makefile json-glib/Makefile json-glib/json-glib.pc json-glib/json-version.h json-glib/tests/Makefile doc/Makefile doc/reference/Makefile doc/reference/version.xml po/Makefile.in"
15889 cat >confcache <<\_ACEOF
15890 # This file is a shell script that caches the results of configure
15891 # tests run on this system so they can be shared between configure
15892 # scripts and configure runs, see configure's option --config-cache.
15893 # It is not useful on other systems. If it contains results you don't
15894 # want to keep, you may remove or edit it.
15896 # config.status only pays attention to the cache file if you give it
15897 # the --recheck option to rerun configure.
15899 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15900 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15901 # following values.
15905 # The following way of writing the cache mishandles newlines in values,
15906 # but we know of no workaround that is simple, portable, and efficient.
15907 # So, we kill variables containing newlines.
15908 # Ultrix sh set writes to stderr and can't be redirected directly,
15909 # and sets the high bit in the cache file unless we assign to the vars.
15911 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15912 eval ac_val=\$$ac_var
15916 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15917 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15920 _ | IFS | as_nl) ;; #(
15921 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15922 *) { eval $ac_var=; unset $ac_var;} ;;
15928 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15929 *${as_nl}ac_space=\ *)
15930 # `set' does not quote correctly, so add quotes: double-quote
15931 # substitution turns \\\\ into \\, and sed turns \\ into \.
15934 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15937 # `set' quotes correctly as required by POSIX, so do not add quotes.
15938 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15947 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15949 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15951 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15952 if test -w "$cache_file"; then
15953 if test "x$cache_file" != "x/dev/null"; then
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15955 $as_echo "$as_me: updating cache $cache_file" >&6;}
15956 if test ! -f "$cache_file" || test -h "$cache_file"; then
15957 cat confcache >"$cache_file"
15959 case $cache_file in #(
15961 mv -f confcache "$cache_file"$$ &&
15962 mv -f "$cache_file"$$ "$cache_file" ;; #(
15964 mv -f confcache "$cache_file" ;;
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15970 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15975 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15976 # Let make expand exec_prefix.
15977 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15979 DEFS=-DHAVE_CONFIG_H
15984 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15985 # 1. Remove the extension, and $U if already installed.
15986 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15987 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15988 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15989 # will be set to the directory where LIBOBJS objects are built.
15990 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15991 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15993 LIBOBJS=$ac_libobjs
15995 LTLIBOBJS=$ac_ltlibobjs
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15999 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16000 if test -n "$am_sleep_pid"; then
16001 # Hide warnings about reused PIDs.
16002 wait $am_sleep_pid 2>/dev/null
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16005 $as_echo "done" >&6; }
16006 if test -n "$EXEEXT"; then
16008 am__EXEEXT_FALSE='#'
16010 am__EXEEXT_TRUE='#'
16014 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16015 as_fn_error $? "conditional \"AMDEP\" was never defined.
16016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16018 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16019 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16022 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
16023 as_fn_error $? "conditional \"OS_LINUX\" was never defined.
16024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16026 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
16027 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
16028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16030 if test -z "${ENABLE_INSTALLED_TESTS_TRUE}" && test -z "${ENABLE_INSTALLED_TESTS_FALSE}"; then
16031 as_fn_error $? "conditional \"ENABLE_INSTALLED_TESTS\" was never defined.
16032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16034 if test -z "${ENABLE_ALWAYS_BUILD_TESTS_TRUE}" && test -z "${ENABLE_ALWAYS_BUILD_TESTS_FALSE}"; then
16035 as_fn_error $? "conditional \"ENABLE_ALWAYS_BUILD_TESTS\" was never defined.
16036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16038 if test -z "${ENABLE_GCOV_TRUE}" && test -z "${ENABLE_GCOV_FALSE}"; then
16039 as_fn_error $? "conditional \"ENABLE_GCOV\" was never defined.
16040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16042 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
16043 as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
16044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16046 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
16047 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
16048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16050 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
16051 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
16052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16054 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
16055 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
16056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16058 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
16059 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
16060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16062 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
16063 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
16064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16066 if test -z "${ENABLE_MAN_TRUE}" && test -z "${ENABLE_MAN_FALSE}"; then
16067 as_fn_error $? "conditional \"ENABLE_MAN\" was never defined.
16068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16070 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
16071 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
16072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16074 if test -z "${MSVC_BASE_NO_TOOLSET_SET_TRUE}" && test -z "${MSVC_BASE_NO_TOOLSET_SET_FALSE}"; then
16075 as_fn_error $? "conditional \"MSVC_BASE_NO_TOOLSET_SET\" was never defined.
16076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16078 if test -z "${MSVC_NO_TOOLSET_SET_TRUE}" && test -z "${MSVC_NO_TOOLSET_SET_FALSE}"; then
16079 as_fn_error $? "conditional \"MSVC_NO_TOOLSET_SET\" was never defined.
16080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16083 : "${CONFIG_STATUS=./config.status}"
16085 ac_clean_files_save=$ac_clean_files
16086 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16088 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16090 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16092 # Generated by $as_me.
16093 # Run this file to recreate the current configuration.
16094 # Compiler output produced by configure, useful for debugging
16095 # configure, is in config.log if it exists.
16098 ac_cs_recheck=false
16101 SHELL=\${CONFIG_SHELL-$SHELL}
16104 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16105 ## -------------------- ##
16106 ## M4sh Initialization. ##
16107 ## -------------------- ##
16109 # Be more Bourne compatible
16110 DUALCASE=1; export DUALCASE # for MKS sh
16111 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16114 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16115 # is contrary to our usage. Disable this feature.
16116 alias -g '${1+"$@"}'='"$@"'
16117 setopt NO_GLOB_SUBST
16119 case `(set -o) 2>/dev/null` in #(
16131 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16132 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16133 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16134 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16135 # Prefer a ksh shell builtin over an external printf program on Solaris,
16136 # but without wasting forks for bash or zsh.
16137 if test -z "$BASH_VERSION$ZSH_VERSION" \
16138 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16139 as_echo='print -r --'
16140 as_echo_n='print -rn --'
16141 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16142 as_echo='printf %s\n'
16143 as_echo_n='printf %s'
16145 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16146 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16147 as_echo_n='/usr/ucb/echo -n'
16149 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16150 as_echo_n_body='eval
16154 expr "X$arg" : "X\\(.*\\)$as_nl";
16155 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16157 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16159 export as_echo_n_body
16160 as_echo_n='sh -c $as_echo_n_body as_echo'
16162 export as_echo_body
16163 as_echo='sh -c $as_echo_body as_echo'
16166 # The user is always right.
16167 if test "${PATH_SEPARATOR+set}" != set; then
16169 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16170 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16177 # We need space, tab and new line, in precisely that order. Quoting is
16178 # there to prevent editors from complaining about space-tab.
16179 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16180 # splitting by setting IFS to empty value.)
16183 # Find who we are. Look in the path if we contain no directory separator.
16186 *[\\/]* ) as_myself=$0 ;;
16187 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16188 for as_dir in $PATH
16191 test -z "$as_dir" && as_dir=.
16192 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16198 # We did not find ourselves, most probably we were run as `sh COMMAND'
16199 # in which case we are not to be found in the path.
16200 if test "x$as_myself" = x; then
16203 if test ! -f "$as_myself"; then
16204 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16208 # Unset variables that we do not need and which cause bugs (e.g. in
16209 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16210 # suppresses any "Segmentation fault" message there. '((' could
16211 # trigger a bug in pdksh 5.2.14.
16212 for as_var in BASH_ENV ENV MAIL MAILPATH
16213 do eval test x\${$as_var+set} = xset \
16214 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16227 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16230 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16231 # ----------------------------------------
16232 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16233 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16234 # script with STATUS, using 1 if that was 0.
16237 as_status=$1; test $as_status -eq 0 && as_status=1
16239 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16240 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16242 $as_echo "$as_me: error: $2" >&2
16243 as_fn_exit $as_status
16247 # as_fn_set_status STATUS
16248 # -----------------------
16249 # Set $? to STATUS, without forking.
16250 as_fn_set_status ()
16253 } # as_fn_set_status
16255 # as_fn_exit STATUS
16256 # -----------------
16257 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16261 as_fn_set_status $1
16267 # Portably unset VAR.
16270 { eval $1=; unset $1;}
16272 as_unset=as_fn_unset
16273 # as_fn_append VAR VALUE
16274 # ----------------------
16275 # Append the text in VALUE to the end of the definition contained in VAR. Take
16276 # advantage of any shell optimizations that allow amortized linear growth over
16277 # repeated appends, instead of the typical quadratic growth present in naive
16279 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16280 eval 'as_fn_append ()
16291 # as_fn_arith ARG...
16292 # ------------------
16293 # Perform arithmetic evaluation on the ARGs, and store the result in the
16294 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16295 # must be portable across $(()) and expr.
16296 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16297 eval 'as_fn_arith ()
16304 as_val=`expr "$@" || test $? -eq 1`
16309 if expr a : '\(a\)' >/dev/null 2>&1 &&
16310 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16316 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16317 as_basename=basename
16322 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16328 as_me=`$as_basename -- "$0" ||
16329 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16330 X"$0" : 'X\(//\)$' \| \
16331 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16333 sed '/^.*\/\([^/][^/]*\)\/*$/{
16347 # Avoid depending upon Character Ranges.
16348 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16349 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16350 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16351 as_cr_digits='0123456789'
16352 as_cr_alnum=$as_cr_Letters$as_cr_digits
16354 ECHO_C= ECHO_N= ECHO_T=
16355 case `echo -n x` in #(((((
16357 case `echo 'xy\c'` in
16358 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16360 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16367 rm -f conf$$ conf$$.exe conf$$.file
16368 if test -d conf$$.dir; then
16369 rm -f conf$$.dir/conf$$.file
16372 mkdir conf$$.dir 2>/dev/null
16374 if (echo >conf$$.file) 2>/dev/null; then
16375 if ln -s conf$$.file conf$$ 2>/dev/null; then
16377 # ... but there are two gotchas:
16378 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16379 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16380 # In both cases, we have to default to `cp -pR'.
16381 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16383 elif ln conf$$.file conf$$ 2>/dev/null; then
16391 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16392 rmdir conf$$.dir 2>/dev/null
16397 # Create "$as_dir" as a directory, including parents if necessary.
16402 -*) as_dir=./$as_dir;;
16404 test -d "$as_dir" || eval $as_mkdir_p || {
16408 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16409 *) as_qdir=$as_dir;;
16411 as_dirs="'$as_qdir' $as_dirs"
16412 as_dir=`$as_dirname -- "$as_dir" ||
16413 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16414 X"$as_dir" : 'X\(//\)[^/]' \| \
16415 X"$as_dir" : 'X\(//\)$' \| \
16416 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16417 $as_echo X"$as_dir" |
16418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16422 /^X\(\/\/\)[^/].*/{
16435 test -d "$as_dir" && break
16437 test -z "$as_dirs" || eval "mkdir $as_dirs"
16438 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16442 if mkdir -p . 2>/dev/null; then
16443 as_mkdir_p='mkdir -p "$as_dir"'
16445 test -d ./-p && rmdir ./-p
16450 # as_fn_executable_p FILE
16451 # -----------------------
16452 # Test if FILE is an executable regular file.
16453 as_fn_executable_p ()
16455 test -f "$1" && test -x "$1"
16456 } # as_fn_executable_p
16457 as_test_x='test -x'
16458 as_executable_p=as_fn_executable_p
16460 # Sed expression to map a string onto a valid CPP name.
16461 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16463 # Sed expression to map a string onto a valid variable name.
16464 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16468 ## ----------------------------------- ##
16469 ## Main body of $CONFIG_STATUS script. ##
16470 ## ----------------------------------- ##
16472 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16475 # Save the log message, to keep $0 and so on meaningful, and to
16476 # report actual input values of CONFIG_FILES etc. instead of their
16477 # values after options handling.
16479 This file was extended by json-glib $as_me 1.2.4, which was
16480 generated by GNU Autoconf 2.69. Invocation command line was
16482 CONFIG_FILES = $CONFIG_FILES
16483 CONFIG_HEADERS = $CONFIG_HEADERS
16484 CONFIG_LINKS = $CONFIG_LINKS
16485 CONFIG_COMMANDS = $CONFIG_COMMANDS
16488 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16493 case $ac_config_files in *"
16494 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16497 case $ac_config_headers in *"
16498 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16503 # Files that config.status was made for.
16504 config_files="$ac_config_files"
16505 config_headers="$ac_config_headers"
16506 config_commands="$ac_config_commands"
16510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16512 \`$as_me' instantiates files and other configuration actions
16513 from templates according to the current configuration. Unless the files
16514 and actions are specified as TAGs, all are instantiated by default.
16516 Usage: $0 [OPTION]... [TAG]...
16518 -h, --help print this help, then exit
16519 -V, --version print version number and configuration settings, then exit
16520 --config print configuration, then exit
16521 -q, --quiet, --silent
16522 do not print progress messages
16523 -d, --debug don't remove temporary files
16524 --recheck update $as_me by reconfiguring in the same conditions
16525 --file=FILE[:TEMPLATE]
16526 instantiate the configuration file FILE
16527 --header=FILE[:TEMPLATE]
16528 instantiate the configuration header FILE
16530 Configuration files:
16533 Configuration headers:
16536 Configuration commands:
16539 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib>.
16540 json-glib home page: <http://live.gnome.org/JsonGlib>."
16543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16544 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16546 json-glib config.status 1.2.4
16547 configured by $0, generated by GNU Autoconf 2.69,
16548 with options \\"\$ac_cs_config\\"
16550 Copyright (C) 2012 Free Software Foundation, Inc.
16551 This config.status script is free software; the Free Software Foundation
16552 gives unlimited permission to copy, distribute and modify it."
16559 test -n "\$AWK" || AWK=awk
16562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16563 # The default lists apply if the user does not specify any file.
16569 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16570 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16574 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16586 # Handling of the options.
16587 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16589 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16590 $as_echo "$ac_cs_version"; exit ;;
16591 --config | --confi | --conf | --con | --co | --c )
16592 $as_echo "$ac_cs_config"; exit ;;
16593 --debug | --debu | --deb | --de | --d | -d )
16595 --file | --fil | --fi | --f )
16598 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16599 '') as_fn_error $? "missing file argument" ;;
16601 as_fn_append CONFIG_FILES " '$ac_optarg'"
16602 ac_need_defaults=false;;
16603 --header | --heade | --head | --hea )
16606 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16608 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16609 ac_need_defaults=false;;
16611 # Conflict between --help and --header
16612 as_fn_error $? "ambiguous option: \`$1'
16613 Try \`$0 --help' for more information.";;
16614 --help | --hel | -h )
16615 $as_echo "$ac_cs_usage"; exit ;;
16616 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16617 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16620 # This is an error.
16621 -*) as_fn_error $? "unrecognized option: \`$1'
16622 Try \`$0 --help' for more information." ;;
16624 *) as_fn_append ac_config_targets " $1"
16625 ac_need_defaults=false ;;
16631 ac_configure_extra_args=
16633 if $ac_cs_silent; then
16635 ac_configure_extra_args="$ac_configure_extra_args --silent"
16639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16640 if \$ac_cs_recheck; then
16641 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16643 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16644 CONFIG_SHELL='$SHELL'
16645 export CONFIG_SHELL
16650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16654 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16655 ## Running $as_me. ##
16661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16665 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16668 # The HP-UX ksh and POSIX shell print the target directory to stdout
16669 # if CDPATH is set.
16670 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16672 sed_quote_subst='$sed_quote_subst'
16673 double_quote_subst='$double_quote_subst'
16674 delay_variable_subst='$delay_variable_subst'
16675 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16676 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16677 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16678 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16679 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16680 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16681 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16682 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16683 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16684 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16685 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16686 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16687 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16688 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16689 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16690 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16691 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16692 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16693 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16694 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16695 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16696 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16697 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16698 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16699 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16700 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16701 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16702 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16703 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16704 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16705 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16706 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16707 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16708 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16709 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16710 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16711 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16712 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16713 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16714 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16715 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16716 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16717 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16718 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16719 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16720 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16721 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16722 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16723 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16724 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16725 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16726 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16727 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16728 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16729 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16730 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16731 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16732 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16733 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"`'
16734 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16735 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16736 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16737 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16738 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16739 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16740 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16741 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16742 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16743 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16744 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16745 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16746 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16747 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16748 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16749 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16750 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16751 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16752 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16753 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16754 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16755 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16756 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16757 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16758 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16759 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16760 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16761 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16762 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16763 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16764 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16765 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16766 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16767 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16768 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16769 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16770 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16771 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16772 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16773 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16774 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16775 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16776 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16777 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16778 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16779 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16780 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16781 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16782 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16783 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16784 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16785 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16786 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16787 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16788 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16789 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16790 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16791 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16792 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16793 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16794 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16795 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16796 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16797 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16798 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16799 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16800 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16801 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16802 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16803 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16804 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16805 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16806 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16807 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16808 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16809 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16812 LTCFLAGS='$LTCFLAGS'
16813 compiler='$compiler_DEFAULT'
16815 # A function that is used when there is no print builtin or printf.
16816 func_fallback_echo ()
16818 eval 'cat <<_LTECHO_EOF
16823 # Quote evaled strings.
16838 deplibs_check_method \
16843 sharedlib_from_linklib_cmd \
16846 archiver_list_spec \
16852 lt_cv_sys_global_symbol_pipe \
16853 lt_cv_sys_global_symbol_to_cdecl \
16854 lt_cv_sys_global_symbol_to_import \
16855 lt_cv_sys_global_symbol_to_c_name_address \
16856 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16857 lt_cv_nm_interface \
16858 nm_file_list_spec \
16859 lt_cv_truncate_bin \
16860 lt_prog_compiler_no_builtin_flag \
16861 lt_prog_compiler_pic \
16862 lt_prog_compiler_wl \
16863 lt_prog_compiler_static \
16864 lt_cv_prog_compiler_c_o \
16873 export_dynamic_flag_spec \
16874 whole_archive_flag_spec \
16875 compiler_needs_object \
16877 allow_undefined_flag \
16878 no_undefined_flag \
16879 hardcode_libdir_flag_spec \
16880 hardcode_libdir_separator \
16884 variables_saved_for_relink \
16886 library_names_spec \
16888 install_override_mode \
16892 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16893 *[\\\\\\\`\\"\\\$]*)
16894 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16897 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16902 # Double-quote double-evaled strings.
16903 for var in reload_cmds \
16904 old_postinstall_cmds \
16905 old_postuninstall_cmds \
16907 extract_expsyms_cmds \
16908 old_archive_from_new_cmds \
16909 old_archive_from_expsyms_cmds \
16911 archive_expsym_cmds \
16913 module_expsym_cmds \
16914 export_symbols_cmds \
16918 postuninstall_cmds \
16920 sys_lib_search_path_spec \
16921 configure_time_dlsearch_path \
16922 configure_time_lt_sys_library_path; do
16923 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16924 *[\\\\\\\`\\"\\\$]*)
16925 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16928 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16933 ac_aux_dir='$ac_aux_dir'
16935 # See if we are running on zsh, and set the options that allow our
16936 # commands through without removal of \ escapes INIT.
16937 if test -n "\${ZSH_VERSION+set}"; then
16938 setopt NO_GLOB_SUBST
16949 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16950 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
16951 # from automake < 1.5.
16952 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16953 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16954 LINGUAS="${LINGUAS-%UNSET%}"
16959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16961 # Handling of arguments.
16962 for ac_config_target in $ac_config_targets
16964 case $ac_config_target in
16965 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16966 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16967 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16968 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16969 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16970 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
16971 "build/autotools/Makefile") CONFIG_FILES="$CONFIG_FILES build/autotools/Makefile" ;;
16972 "build/win32/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/Makefile" ;;
16973 "build/win32/config.h.win32") CONFIG_FILES="$CONFIG_FILES build/win32/config.h.win32" ;;
16974 "build/win32/vs9/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs9/Makefile" ;;
16975 "build/win32/vs9/json-glib-version-paths.vsprops") CONFIG_FILES="$CONFIG_FILES build/win32/vs9/json-glib-version-paths.vsprops" ;;
16976 "build/win32/vs10/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs10/Makefile" ;;
16977 "build/win32/vs10/json-glib-version-paths.props") CONFIG_FILES="$CONFIG_FILES build/win32/vs10/json-glib-version-paths.props" ;;
16978 "build/win32/vs11/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs11/Makefile" ;;
16979 "build/win32/vs12/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs12/Makefile" ;;
16980 "build/win32/vs14/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs14/Makefile" ;;
16981 "build/win32/vs15/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs15/Makefile" ;;
16982 "json-glib/Makefile") CONFIG_FILES="$CONFIG_FILES json-glib/Makefile" ;;
16983 "json-glib/json-glib.pc") CONFIG_FILES="$CONFIG_FILES json-glib/json-glib.pc" ;;
16984 "json-glib/json-version.h") CONFIG_FILES="$CONFIG_FILES json-glib/json-version.h" ;;
16985 "json-glib/tests/Makefile") CONFIG_FILES="$CONFIG_FILES json-glib/tests/Makefile" ;;
16986 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16987 "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;;
16988 "doc/reference/version.xml") CONFIG_FILES="$CONFIG_FILES doc/reference/version.xml" ;;
16989 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16991 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16996 # If the user did not use the arguments to specify the items to instantiate,
16997 # then the envvar interface is used. Set only those that are not.
16998 # We use the long form for the default assignment because of an extremely
16999 # bizarre bug on SunOS 4.1.3.
17000 if $ac_need_defaults; then
17001 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17002 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17003 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17006 # Have a temporary directory for convenience. Make it in the build tree
17007 # simply because there is no reason against having it here, and in addition,
17008 # creating and moving files from /tmp can sometimes cause problems.
17009 # Hook for its removal unless debugging.
17010 # Note that there is a small window in which the directory will not be cleaned:
17011 # after its creation but before its name has been assigned to `$tmp'.
17015 trap 'exit_status=$?
17016 : "${ac_tmp:=$tmp}"
17017 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17019 trap 'as_fn_exit 1' 1 2 13 15
17021 # Create a (secure) tmp directory for tmp files.
17024 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17028 tmp=./conf$$-$RANDOM
17029 (umask 077 && mkdir "$tmp")
17030 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17033 # Set up the scripts for CONFIG_FILES section.
17034 # No need to generate them if there are no CONFIG_FILES.
17035 # This happens for instance with `./config.status config.h'.
17036 if test -n "$CONFIG_FILES"; then
17039 ac_cr=`echo X | tr X '\015'`
17040 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17041 # But we know of no other shell where ac_cr would be empty at this
17042 # point, so we can use a bashism as a fallback.
17043 if test "x$ac_cr" = x; then
17044 eval ac_cr=\$\'\\r\'
17046 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17047 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17050 ac_cs_awk_cr=$ac_cr
17053 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17058 echo "cat >conf$$subs.awk <<_ACEOF" &&
17059 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17061 } >conf$$subs.sh ||
17062 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17063 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17065 for ac_last_try in false false false false false :; do
17066 . ./conf$$subs.sh ||
17067 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17069 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17070 if test $ac_delim_n = $ac_delim_num; then
17072 elif $ac_last_try; then
17073 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17075 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17078 rm -f conf$$subs.sh
17080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17081 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17085 s/^/S["/; s/!.*/"]=/
17095 s/\(.\{148\}\)..*/\1/
17097 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17102 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17109 s/\(.\{148\}\)..*/\1/
17111 s/["\\]/\\&/g; s/^/"/; s/$/"/
17115 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17120 ' <conf$$subs.awk | sed '
17125 ' >>$CONFIG_STATUS || ac_write_fail=1
17126 rm -f conf$$subs.awk
17127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17129 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17130 for (key in S) S_is_set[key] = 1
17136 nfields = split(line, field, "@")
17138 len = length(field[1])
17139 for (i = 2; i < nfields; i++) {
17141 keylen = length(key)
17142 if (S_is_set[key]) {
17144 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17145 len += length(value) + length(field[++i])
17156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17157 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17158 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17161 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17162 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17165 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17166 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17167 # trailing colons and then remove the whole line if VPATH becomes empty
17168 # (actually we leave an empty line to preserve line numbers).
17169 if test "x$srcdir" = x.; then
17170 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17189 fi # test -n "$CONFIG_FILES"
17191 # Set up the scripts for CONFIG_HEADERS section.
17192 # No need to generate them if there are no CONFIG_HEADERS.
17193 # This happens for instance with `./config.status Makefile'.
17194 if test -n "$CONFIG_HEADERS"; then
17195 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17199 # Transform confdefs.h into an awk script `defines.awk', embedded as
17200 # here-document in config.status, that substitutes the proper values into
17201 # config.h.in to produce config.h.
17203 # Create a delimiter string that does not exist in confdefs.h, to ease
17204 # handling of long lines.
17206 for ac_last_try in false false :; do
17207 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17208 if test -z "$ac_tt"; then
17210 elif $ac_last_try; then
17211 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17213 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17217 # For the awk script, D is an array of macro values keyed by name,
17218 # likewise P contains macro parameters if any. Preserve backslash
17219 # newline sequences.
17221 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17223 s/.\{148\}/&'"$ac_delim"'/g
17226 s/^[ ]*#[ ]*define[ ][ ]*/ /
17233 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17235 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17239 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17240 D["\1"]=" \3\\\\\\n"\\/p
17242 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17247 s/.\{148\}/&'"$ac_delim"'/g
17252 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17255 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17257 ' <confdefs.h | sed '
17258 s/'"$ac_delim"'/"\\\
17259 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17262 for (key in D) D_is_set[key] = 1
17265 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17267 split(line, arg, " ")
17268 if (arg[1] == "#") {
17272 defundef = substr(arg[1], 2)
17275 split(mac1, mac2, "(") #)
17277 prefix = substr(line, 1, index(line, defundef) - 1)
17278 if (D_is_set[macro]) {
17279 # Preserve the white space surrounding the "#".
17280 print prefix "define", macro P[macro] D[macro]
17283 # Replace #undef with comments. This is necessary, for example,
17284 # in the case of _POSIX_SOURCE, which is predefined and required
17285 # on some systems where configure will not decide to define it.
17286 if (defundef == "undef") {
17287 print "/*", prefix defundef, macro, "*/"
17295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17296 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17297 fi # test -n "$CONFIG_HEADERS"
17300 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17305 :[FHLC]) ac_mode=$ac_tag; continue;;
17307 case $ac_mode$ac_tag in
17309 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17310 :[FH]-) ac_tag=-:-;;
17311 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17328 -) ac_f="$ac_tmp/stdin";;
17329 *) # Look for the file first in the build tree, then in the source tree
17330 # (if the path is not absolute). The absolute path cannot be DOS-style,
17331 # because $ac_f cannot contain `:'.
17335 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17337 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17339 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17340 as_fn_append ac_file_inputs " '$ac_f'"
17343 # Let's still pretend it is `configure' which instantiates (i.e., don't
17344 # use $as_me), people would be surprised to read:
17345 # /* config.h. Generated by config.status. */
17346 configure_input='Generated from '`
17347 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17349 if test x"$ac_file" != x-; then
17350 configure_input="$ac_file. $configure_input"
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17352 $as_echo "$as_me: creating $ac_file" >&6;}
17354 # Neutralize special characters interpreted by sed in replacement strings.
17355 case $configure_input in #(
17356 *\&* | *\|* | *\\* )
17357 ac_sed_conf_input=`$as_echo "$configure_input" |
17358 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17359 *) ac_sed_conf_input=$configure_input;;
17363 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17364 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17369 ac_dir=`$as_dirname -- "$ac_file" ||
17370 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17371 X"$ac_file" : 'X\(//\)[^/]' \| \
17372 X"$ac_file" : 'X\(//\)$' \| \
17373 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17374 $as_echo X"$ac_file" |
17375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17379 /^X\(\/\/\)[^/].*/{
17392 as_dir="$ac_dir"; as_fn_mkdir_p
17396 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17398 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17399 # A ".." for each directory in $ac_dir_suffix.
17400 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17401 case $ac_top_builddir_sub in
17402 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17403 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17406 ac_abs_top_builddir=$ac_pwd
17407 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17408 # for backward compatibility:
17409 ac_top_builddir=$ac_top_build_prefix
17412 .) # We are building in place.
17414 ac_top_srcdir=$ac_top_builddir_sub
17415 ac_abs_top_srcdir=$ac_pwd ;;
17416 [\\/]* | ?:[\\/]* ) # Absolute name.
17417 ac_srcdir=$srcdir$ac_dir_suffix;
17418 ac_top_srcdir=$srcdir
17419 ac_abs_top_srcdir=$srcdir ;;
17420 *) # Relative name.
17421 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17422 ac_top_srcdir=$ac_top_build_prefix$srcdir
17423 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17425 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17435 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17436 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17438 ac_MKDIR_P=$MKDIR_P
17440 [\\/$]* | ?:[\\/]* ) ;;
17441 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17446 # If the template does not know about datarootdir, expand it.
17447 # FIXME: This hack should be removed a few years after 2.60.
17448 ac_datarootdir_hack=; ac_datarootdir_seen=
17459 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17460 *datarootdir*) ac_datarootdir_seen=yes;;
17461 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17463 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17466 ac_datarootdir_hack='
17467 s&@datadir@&$datadir&g
17468 s&@docdir@&$docdir&g
17469 s&@infodir@&$infodir&g
17470 s&@localedir@&$localedir&g
17471 s&@mandir@&$mandir&g
17472 s&\\\${datarootdir}&$datarootdir&g' ;;
17476 # Neutralize VPATH when `$srcdir' = `.'.
17477 # Shell code in configure.ac might set extrasub.
17478 # FIXME: do we really want to maintain this feature?
17479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17480 ac_sed_extra="$ac_vpsub
17483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17485 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17486 s|@configure_input@|$ac_sed_conf_input|;t t
17487 s&@top_builddir@&$ac_top_builddir_sub&;t t
17488 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17489 s&@srcdir@&$ac_srcdir&;t t
17490 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17491 s&@top_srcdir@&$ac_top_srcdir&;t t
17492 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17493 s&@builddir@&$ac_builddir&;t t
17494 s&@abs_builddir@&$ac_abs_builddir&;t t
17495 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17496 s&@INSTALL@&$ac_INSTALL&;t t
17497 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17498 $ac_datarootdir_hack
17500 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17501 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17503 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17504 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17505 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17506 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17508 which seems to be undefined. Please make sure it is defined" >&5
17509 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17510 which seems to be undefined. Please make sure it is defined" >&2;}
17512 rm -f "$ac_tmp/stdin"
17514 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17515 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17517 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17523 if test x"$ac_file" != x-; then
17525 $as_echo "/* $configure_input */" \
17526 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17527 } >"$ac_tmp/config.h" \
17528 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17529 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17531 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17534 mv "$ac_tmp/config.h" "$ac_file" \
17535 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17538 $as_echo "/* $configure_input */" \
17539 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17540 || as_fn_error $? "could not create -" "$LINENO" 5
17542 # Compute "$ac_file"'s index in $config_headers.
17545 for _am_header in $config_headers :; do
17546 case $_am_header in
17547 $_am_arg | $_am_arg:* )
17550 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17553 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17554 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17555 X"$_am_arg" : 'X\(//\)[^/]' \| \
17556 X"$_am_arg" : 'X\(//\)$' \| \
17557 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17558 $as_echo X"$_am_arg" |
17559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17563 /^X\(\/\/\)[^/].*/{
17575 s/.*/./; q'`/stamp-h$_am_stamp_count
17578 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17579 $as_echo "$as_me: executing $ac_file commands" >&6;}
17584 case $ac_file$ac_mode in
17585 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17586 # Older Autoconf quotes --file arguments for eval, but not when files
17587 # are listed without --file. Let's play safe and only enable the eval
17588 # if we detect the quoting.
17589 case $CONFIG_FILES in
17590 *\'*) eval set x "$CONFIG_FILES" ;;
17591 *) set x $CONFIG_FILES ;;
17596 # Strip MF so we end up with the name of the file.
17597 mf=`echo "$mf" | sed -e 's/:.*$//'`
17598 # Check whether this is an Automake generated Makefile or not.
17599 # We used to match only the files named 'Makefile.in', but
17600 # some people rename them; so instead we look at the file content.
17601 # Grep'ing the first line is not enough: some people post-process
17602 # each Makefile.in and add a new line on top of each file to say so.
17603 # Grep'ing the whole file is not good either: AIX grep has a line
17604 # limit of 2048, but all sed's we know have understand at least 4000.
17605 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17606 dirpart=`$as_dirname -- "$mf" ||
17607 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17608 X"$mf" : 'X\(//\)[^/]' \| \
17609 X"$mf" : 'X\(//\)$' \| \
17610 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17616 /^X\(\/\/\)[^/].*/{
17632 # Extract the definition of DEPDIR, am__include, and am__quote
17633 # from the Makefile without running 'make'.
17634 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17635 test -z "$DEPDIR" && continue
17636 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17637 test -z "$am__include" && continue
17638 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17639 # Find all dependency output files, they are included files with
17640 # $(DEPDIR) in their names. We invoke sed twice because it is the
17641 # simplest approach to changing $(DEPDIR) to its actual value in the
17643 for file in `sed -n "
17644 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17645 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17646 # Make sure the directory exists.
17647 test -f "$dirpart/$file" && continue
17648 fdir=`$as_dirname -- "$file" ||
17649 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17650 X"$file" : 'X\(//\)[^/]' \| \
17651 X"$file" : 'X\(//\)$' \| \
17652 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17653 $as_echo X"$file" |
17654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17658 /^X\(\/\/\)[^/].*/{
17671 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17672 # echo "creating $dirpart/$file"
17673 echo '# dummy' > "$dirpart/$file"
17680 # See if we are running on zsh, and set the options that allow our
17681 # commands through without removal of \ escapes.
17682 if test -n "${ZSH_VERSION+set}"; then
17683 setopt NO_GLOB_SUBST
17687 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17690 cat <<_LT_EOF >> "$cfgfile"
17692 # Generated automatically by $as_me ($PACKAGE) $VERSION
17693 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17694 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17696 # Provide generalized library-building support services.
17697 # Written by Gordon Matzigkeit, 1996
17699 # Copyright (C) 2014 Free Software Foundation, Inc.
17700 # This is free software; see the source for copying conditions. There is NO
17701 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17703 # GNU Libtool is free software; you can redistribute it and/or modify
17704 # it under the terms of the GNU General Public License as published by
17705 # the Free Software Foundation; either version 2 of of the License, or
17706 # (at your option) any later version.
17708 # As a special exception to the GNU General Public License, if you
17709 # distribute this file as part of a program or library that is built
17710 # using GNU Libtool, you may include this file under the same
17711 # distribution terms that you use for the rest of that program.
17713 # GNU Libtool is distributed in the hope that it will be useful, but
17714 # WITHOUT ANY WARRANTY; without even the implied warranty of
17715 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17716 # GNU General Public License for more details.
17718 # You should have received a copy of the GNU General Public License
17719 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17722 # The names of the tagged configurations supported by this script.
17725 # Configured defaults for sys_lib_dlsearch_path munging.
17726 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17728 # ### BEGIN LIBTOOL CONFIG
17730 # Which release of libtool.m4 was used?
17731 macro_version=$macro_version
17732 macro_revision=$macro_revision
17734 # Whether or not to build static libraries.
17735 build_old_libs=$enable_static
17737 # Whether or not to build shared libraries.
17738 build_libtool_libs=$enable_shared
17740 # What type of objects to build.
17743 # Whether or not to optimize for fast installation.
17744 fast_install=$enable_fast_install
17746 # Shared archive member basename,for filename based shared library versioning on AIX.
17747 shared_archive_member_spec=$shared_archive_member_spec
17749 # Shell to use when invoking shell scripts.
17752 # An echo program that protects backslashes.
17755 # The PATH separator for the build system.
17756 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17759 host_alias=$host_alias
17763 # The build system.
17764 build_alias=$build_alias
17768 # A sed program that does not truncate output.
17771 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17772 Xsed="\$SED -e 1s/^X//"
17774 # A grep program that handles long lines.
17780 # A literal string matcher.
17783 # A BSD- or MS-compatible name lister.
17786 # Whether we need soft or hard links.
17789 # What is the maximum length of a command?
17790 max_cmd_len=$max_cmd_len
17792 # Object file suffix (normally "o").
17795 # Executable file suffix (normally "").
17798 # whether the shell understands "unset".
17801 # turn spaces into newlines.
17804 # turn newlines into spaces.
17807 # convert \$build file names to \$host format.
17808 to_host_file_cmd=$lt_cv_to_host_file_cmd
17810 # convert \$build files to toolchain format.
17811 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17813 # An object symbol dumper.
17814 OBJDUMP=$lt_OBJDUMP
17816 # Method to check whether dependent libraries are shared objects.
17817 deplibs_check_method=$lt_deplibs_check_method
17819 # Command to use when deplibs_check_method = "file_magic".
17820 file_magic_cmd=$lt_file_magic_cmd
17822 # How to find potential files when deplibs_check_method = "file_magic".
17823 file_magic_glob=$lt_file_magic_glob
17825 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17826 want_nocaseglob=$lt_want_nocaseglob
17828 # DLL creation program.
17829 DLLTOOL=$lt_DLLTOOL
17831 # Command to associate shared and link libraries.
17832 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17837 # Flags to create an archive.
17838 AR_FLAGS=$lt_AR_FLAGS
17840 # How to feed a file listing to the archiver.
17841 archiver_list_spec=$lt_archiver_list_spec
17843 # A symbol stripping program.
17846 # Commands used to install an old-style archive.
17848 old_postinstall_cmds=$lt_old_postinstall_cmds
17849 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17851 # Whether to use a lock for old archive extraction.
17852 lock_old_archive_extraction=$lock_old_archive_extraction
17857 # LTCC compiler flags.
17858 LTCFLAGS=$lt_CFLAGS
17860 # Take the output of nm and produce a listing of raw symbols and C names.
17861 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17863 # Transform the output of nm in a proper C declaration.
17864 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17866 # Transform the output of nm into a list of symbols to manually relocate.
17867 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17869 # Transform the output of nm in a C name address pair.
17870 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17872 # Transform the output of nm in a C name address pair when lib prefix is needed.
17873 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17875 # The name lister interface.
17876 nm_interface=$lt_lt_cv_nm_interface
17878 # Specify filename containing input files for \$NM.
17879 nm_file_list_spec=$lt_nm_file_list_spec
17881 # The root where to search for dependent libraries,and where our libraries should be installed.
17882 lt_sysroot=$lt_sysroot
17884 # Command to truncate a binary pipe.
17885 lt_truncate_bin=$lt_lt_cv_truncate_bin
17887 # The name of the directory that contains temporary libtool files.
17890 # Used to examine libraries when file_magic_cmd begins with "file".
17891 MAGIC_CMD=$MAGIC_CMD
17893 # Must we lock files when doing compilation?
17894 need_locks=$lt_need_locks
17897 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17899 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17900 DSYMUTIL=$lt_DSYMUTIL
17902 # Tool to change global to local symbols on Mac OS X.
17905 # Tool to manipulate fat objects and archives on Mac OS X.
17908 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17911 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17912 OTOOL64=$lt_OTOOL64
17914 # Old archive suffix (normally "a").
17917 # Shared library suffix (normally ".so").
17918 shrext_cmds=$lt_shrext_cmds
17920 # The commands to extract the exported symbol list from a shared archive.
17921 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17923 # Variables whose values should be saved in libtool wrapper scripts and
17924 # restored at link time.
17925 variables_saved_for_relink=$lt_variables_saved_for_relink
17927 # Do we need the "lib" prefix for modules?
17928 need_lib_prefix=$need_lib_prefix
17930 # Do we need a version for libraries?
17931 need_version=$need_version
17933 # Library versioning type.
17934 version_type=$version_type
17936 # Shared library runtime path variable.
17937 runpath_var=$runpath_var
17939 # Shared library path variable.
17940 shlibpath_var=$shlibpath_var
17942 # Is shlibpath searched before the hard-coded library search path?
17943 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17945 # Format of library name prefix.
17946 libname_spec=$lt_libname_spec
17948 # List of archive names. First name is the real one, the rest are links.
17949 # The last name is the one that the linker finds with -lNAME
17950 library_names_spec=$lt_library_names_spec
17952 # The coded name of the library, if different from the real name.
17953 soname_spec=$lt_soname_spec
17955 # Permission mode override for installation of shared libraries.
17956 install_override_mode=$lt_install_override_mode
17958 # Command to use after installation of a shared archive.
17959 postinstall_cmds=$lt_postinstall_cmds
17961 # Command to use after uninstallation of a shared archive.
17962 postuninstall_cmds=$lt_postuninstall_cmds
17964 # Commands used to finish a libtool library installation in a directory.
17965 finish_cmds=$lt_finish_cmds
17967 # As "finish_cmds", except a single script fragment to be evaled but
17969 finish_eval=$lt_finish_eval
17971 # Whether we should hardcode library paths into libraries.
17972 hardcode_into_libs=$hardcode_into_libs
17974 # Compile-time system search path for libraries.
17975 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17977 # Detected run-time system search path for libraries.
17978 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17980 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17981 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17983 # Whether dlopen is supported.
17984 dlopen_support=$enable_dlopen
17986 # Whether dlopen of programs is supported.
17987 dlopen_self=$enable_dlopen_self
17989 # Whether dlopen of statically linked programs is supported.
17990 dlopen_self_static=$enable_dlopen_self_static
17992 # Commands to strip libraries.
17993 old_striplib=$lt_old_striplib
17994 striplib=$lt_striplib
17997 # The linker used to build libraries.
18000 # How to create reloadable object files.
18001 reload_flag=$lt_reload_flag
18002 reload_cmds=$lt_reload_cmds
18004 # Commands used to build an old-style archive.
18005 old_archive_cmds=$lt_old_archive_cmds
18007 # A language specific compiler.
18010 # Is the compiler the GNU compiler?
18013 # Compiler flag to turn off builtin functions.
18014 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18016 # Additional compiler flags for building library objects.
18017 pic_flag=$lt_lt_prog_compiler_pic
18019 # How to pass a linker flag through the compiler.
18020 wl=$lt_lt_prog_compiler_wl
18022 # Compiler flag to prevent dynamic linking.
18023 link_static_flag=$lt_lt_prog_compiler_static
18025 # Does compiler simultaneously support -c and -o options?
18026 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18028 # Whether or not to add -lc for building shared libraries.
18029 build_libtool_need_lc=$archive_cmds_need_lc
18031 # Whether or not to disallow shared libs when runtime libs are static.
18032 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18034 # Compiler flag to allow reflexive dlopens.
18035 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18037 # Compiler flag to generate shared objects directly from archives.
18038 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18040 # Whether the compiler copes with passing no objects directly.
18041 compiler_needs_object=$lt_compiler_needs_object
18043 # Create an old-style archive from a shared archive.
18044 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18046 # Create a temporary old-style archive to link instead of a shared archive.
18047 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18049 # Commands used to build a shared archive.
18050 archive_cmds=$lt_archive_cmds
18051 archive_expsym_cmds=$lt_archive_expsym_cmds
18053 # Commands used to build a loadable module if different from building
18054 # a shared archive.
18055 module_cmds=$lt_module_cmds
18056 module_expsym_cmds=$lt_module_expsym_cmds
18058 # Whether we are building with GNU ld or not.
18059 with_gnu_ld=$lt_with_gnu_ld
18061 # Flag that allows shared libraries with undefined symbols to be built.
18062 allow_undefined_flag=$lt_allow_undefined_flag
18064 # Flag that enforces no undefined symbols.
18065 no_undefined_flag=$lt_no_undefined_flag
18067 # Flag to hardcode \$libdir into a binary during linking.
18068 # This must work even if \$libdir does not exist
18069 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18071 # Whether we need a single "-rpath" flag with a separated argument.
18072 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18074 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18075 # DIR into the resulting binary.
18076 hardcode_direct=$hardcode_direct
18078 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18079 # DIR into the resulting binary and the resulting library dependency is
18080 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18081 # library is relocated.
18082 hardcode_direct_absolute=$hardcode_direct_absolute
18084 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18085 # into the resulting binary.
18086 hardcode_minus_L=$hardcode_minus_L
18088 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18089 # into the resulting binary.
18090 hardcode_shlibpath_var=$hardcode_shlibpath_var
18092 # Set to "yes" if building a shared library automatically hardcodes DIR
18093 # into the library and all subsequent libraries and executables linked
18095 hardcode_automatic=$hardcode_automatic
18097 # Set to yes if linker adds runtime paths of dependent libraries
18098 # to runtime path list.
18099 inherit_rpath=$inherit_rpath
18101 # Whether libtool must link a program against all its dependency libraries.
18102 link_all_deplibs=$link_all_deplibs
18104 # Set to "yes" if exported symbols are required.
18105 always_export_symbols=$always_export_symbols
18107 # The commands to list exported symbols.
18108 export_symbols_cmds=$lt_export_symbols_cmds
18110 # Symbols that should not be listed in the preloaded symbols.
18111 exclude_expsyms=$lt_exclude_expsyms
18113 # Symbols that must always be exported.
18114 include_expsyms=$lt_include_expsyms
18116 # Commands necessary for linking programs (against libraries) with templates.
18117 prelink_cmds=$lt_prelink_cmds
18119 # Commands necessary for finishing linking programs.
18120 postlink_cmds=$lt_postlink_cmds
18122 # Specify filename containing input files.
18123 file_list_spec=$lt_file_list_spec
18125 # How to hardcode a shared library path into an executable.
18126 hardcode_action=$hardcode_action
18128 # ### END LIBTOOL CONFIG
18132 cat <<'_LT_EOF' >> "$cfgfile"
18134 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18136 # func_munge_path_list VARIABLE PATH
18137 # -----------------------------------
18138 # VARIABLE is name of variable containing _space_ separated list of
18139 # directories to be munged by the contents of PATH, which is string
18142 # string "DIR[ DIR]" will be prepended to VARIABLE
18144 # string "DIR[ DIR]" will be appended to VARIABLE
18145 # "DIRP[:DIRP]::[DIRA:]DIRA"
18146 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18147 # "DIRA[ DIRA]" will be appended to VARIABLE
18149 # VARIABLE will be replaced by "DIR[ DIR]"
18150 func_munge_path_list ()
18156 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18159 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18162 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18163 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18166 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18172 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18173 func_cc_basename ()
18175 for cc_temp in $*""; do
18177 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18178 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18183 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18187 # ### END FUNCTIONS SHARED WITH CONFIGURE
18193 cat <<\_LT_EOF >> "$cfgfile"
18194 # AIX sometimes has problems with the GCC collect2 program. For some
18195 # reason, if we set the COLLECT_NAMES environment variable, the problems
18196 # vanish in a puff of smoke.
18197 if test set != "${COLLECT_NAMES+set}"; then
18199 export COLLECT_NAMES
18206 ltmain=$ac_aux_dir/ltmain.sh
18209 # We use sed instead of cat because bash on DJGPP gets confused if
18210 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18211 # text mode, it properly converts lines to CR/LF. This bash problem
18212 # is reportedly fixed, but why not run on old versions too?
18213 sed '$q' "$ltmain" >> "$cfgfile" \
18214 || (rm -f "$cfgfile"; exit 1)
18216 mv -f "$cfgfile" "$ofile" ||
18217 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18221 "po-directories":C)
18222 for ac_file in $CONFIG_FILES; do
18223 # Support "outfile[:infile[:infile...]]"
18225 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18227 # PO directories have a Makefile.in generated from Makefile.in.in.
18228 case "$ac_file" in */Makefile.in)
18229 # Adjust a relative srcdir.
18230 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18231 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18232 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18233 # In autoconf-2.13 it is called $ac_given_srcdir.
18234 # In autoconf-2.50 it is called $srcdir.
18235 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18236 case "$ac_given_srcdir" in
18237 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18238 /*) top_srcdir="$ac_given_srcdir" ;;
18239 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18241 # Treat a directory as a PO directory if and only if it has a
18242 # POTFILES.in file. This allows packages to have multiple PO
18243 # directories under different names or in different locations.
18244 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18245 rm -f "$ac_dir/POTFILES"
18246 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18247 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18248 POMAKEFILEDEPS="POTFILES.in"
18249 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18250 # on $ac_dir but don't depend on user-specified configuration
18252 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18253 # The LINGUAS file contains the set of available languages.
18254 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18255 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18257 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18258 # Hide the ALL_LINGUAS assigment from automake < 1.5.
18259 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18260 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18262 # The set of available languages was given in configure.in.
18263 # Hide the ALL_LINGUAS assigment from automake < 1.5.
18264 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18267 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18268 # Compute UPDATEPOFILES
18269 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18270 # Compute DUMMYPOFILES
18271 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18273 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18274 case "$ac_given_srcdir" in
18276 *) srcdirpre='$(srcdir)/' ;;
18282 for lang in $ALL_LINGUAS; do
18283 POFILES="$POFILES $srcdirpre$lang.po"
18284 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18285 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18286 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18288 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18289 # environment variable.
18291 if test -n "$ALL_LINGUAS"; then
18292 for presentlang in $ALL_LINGUAS; do
18294 if test "%UNSET%" != "$LINGUAS"; then
18295 desiredlanguages="$LINGUAS"
18297 desiredlanguages="$ALL_LINGUAS"
18299 for desiredlang in $desiredlanguages; do
18300 # Use the presentlang catalog if desiredlang is
18301 # a. equal to presentlang, or
18302 # b. a variant of presentlang (because in this case,
18303 # presentlang can be used as a fallback for messages
18304 # which are not translated in the desiredlang catalog).
18305 case "$desiredlang" in
18306 "$presentlang"*) useit=yes;;
18309 if test $useit = yes; then
18310 INST_LINGUAS="$INST_LINGUAS $presentlang"
18315 if test -n "$INST_LINGUAS"; then
18316 for lang in $INST_LINGUAS; do
18317 CATALOGS="$CATALOGS $lang.gmo"
18320 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18321 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"
18322 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18323 if test -f "$f"; then
18325 *.orig | *.bak | *~) ;;
18326 *) cat "$f" >> "$ac_dir/Makefile" ;;
18341 ac_clean_files=$ac_clean_files_save
18343 test $ac_write_fail = 0 ||
18344 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18347 # configure is writing to config.log, and then calls config.status.
18348 # config.status does its own redirection, appending to config.log.
18349 # Unfortunately, on DOS this fails, as config.log is still kept open
18350 # by configure, so config.status won't be able to write to it; its
18351 # output is simply discarded. So we exec the FD to /dev/null,
18352 # effectively closing config.log, so it can be properly (re)opened and
18353 # appended to by config.status. When coming back to configure, we
18354 # need to make the FD available again.
18355 if test "$no_create" != yes; then
18357 ac_config_status_args=
18358 test "$silent" = yes &&
18359 ac_config_status_args="$ac_config_status_args --quiet"
18361 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18363 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18364 # would make configure fail if this is the last instruction.
18365 $ac_cs_success || as_fn_exit 1
18367 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18369 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18375 echo " Json-GLib - $VERSION (${JSON_RELEASE_STATUS})"
18377 echo " • Prefix: ${prefix}"
18379 echo " • Debug level: ${enable_debug}"
18380 echo " • Compiler flags: ${CFLAGS} ${MAINTAINER_CFLAGS}"
18382 echo " • API reference: ${enable_gtk_doc}"
18383 echo " • Manual pages: ${enable_man}"
18385 echo " • Install tests: ${ENABLE_INSTALLED_TESTS}"
18386 echo " • Build introspection data: ${enable_introspection}"
18387 echo " • Enable test coverage: ${use_gcov}"