2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for json-glib 0.10.4.
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib
235 $0: about your system, including any error possibly output
236 $0: before this message. Then install a modern shell, or
237 $0: manually run the script under such a shell if you do
244 SHELL=${CONFIG_SHELL-/bin/sh}
246 # Unset more variables known to interfere with behavior of common tools.
247 CLICOLOR_FORCE= GREP_OPTIONS=
248 unset CLICOLOR_FORCE GREP_OPTIONS
250 ## --------------------- ##
251 ## M4sh Shell Functions. ##
252 ## --------------------- ##
255 # Portably unset VAR.
258 { eval $1=; unset $1;}
262 # as_fn_set_status STATUS
263 # -----------------------
264 # Set $? to STATUS, without forking.
272 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
282 # Create "$as_dir" as a directory, including parents if necessary.
287 -*) as_dir=./$as_dir;;
289 test -d "$as_dir" || eval $as_mkdir_p || {
293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 as_dirs="'$as_qdir' $as_dirs"
297 as_dir=`$as_dirname -- "$as_dir" ||
298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299 X"$as_dir" : 'X\(//\)[^/]' \| \
300 X"$as_dir" : 'X\(//\)$' \| \
301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302 $as_echo X"$as_dir" |
303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 test -d "$as_dir" && break
322 test -z "$as_dirs" || eval "mkdir $as_dirs"
323 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
327 # as_fn_append VAR VALUE
328 # ----------------------
329 # Append the text in VALUE to the end of the definition contained in VAR. Take
330 # advantage of any shell optimizations that allow amortized linear growth over
331 # repeated appends, instead of the typical quadratic growth present in naive
333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334 eval 'as_fn_append ()
347 # Perform arithmetic evaluation on the ARGs, and store the result in the
348 # global $as_val. Take advantage of shells that can avoid forks. The arguments
349 # must be portable across $(()) and expr.
350 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 as_val=`expr "$@" || test $? -eq 1`
363 # as_fn_error STATUS ERROR [LINENO LOG_FD]
364 # ----------------------------------------
365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367 # script with STATUS, using 1 if that was 0.
370 as_status=$1; test $as_status -eq 0 && as_status=1
372 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
375 $as_echo "$as_me: error: $2" >&2
376 as_fn_exit $as_status
379 if expr a : '\(a\)' >/dev/null 2>&1 &&
380 test "X`expr 00001 : '.*\(...\)'`" = X001; then
386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
398 as_me=`$as_basename -- "$0" ||
399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400 X"$0" : 'X\(//\)$' \| \
401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
403 sed '/^.*\/\([^/][^/]*\)\/*$/{
417 # Avoid depending upon Character Ranges.
418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421 as_cr_digits='0123456789'
422 as_cr_alnum=$as_cr_Letters$as_cr_digits
425 as_lineno_1=$LINENO as_lineno_1a=$LINENO
426 as_lineno_2=$LINENO as_lineno_2a=$LINENO
427 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
445 chmod +x "$as_me.lineno" ||
446 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
448 # Don't try to exec as it changes $[0], causing all sort of problems
449 # (the dirname of $[0] is not the place where we might find the
450 # original and so on. Autoconf is especially sensitive to this).
452 # Exit status is that of the last command.
456 ECHO_C= ECHO_N= ECHO_T=
457 case `echo -n x` in #(((((
459 case `echo 'xy\c'` in
460 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
469 rm -f conf$$ conf$$.exe conf$$.file
470 if test -d conf$$.dir; then
471 rm -f conf$$.dir/conf$$.file
474 mkdir conf$$.dir 2>/dev/null
476 if (echo >conf$$.file) 2>/dev/null; then
477 if ln -s conf$$.file conf$$ 2>/dev/null; then
479 # ... but there are two gotchas:
480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482 # In both cases, we have to default to `cp -p'.
483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
485 elif ln conf$$.file conf$$ 2>/dev/null; then
493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494 rmdir conf$$.dir 2>/dev/null
496 if mkdir -p . 2>/dev/null; then
497 as_mkdir_p='mkdir -p "$as_dir"'
499 test -d ./-p && rmdir ./-p
503 if test -x / >/dev/null 2>&1; then
506 if ls -dL / >/dev/null 2>&1; then
513 if test -d "$1"; then
519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520 ???[sx]*):;;*)false;;esac;fi
524 as_executable_p=$as_test_x
526 # Sed expression to map a string onto a valid CPP name.
527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
529 # Sed expression to map a string onto a valid variable name.
530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 # Check that we are running under the correct shell.
535 SHELL=${CONFIG_SHELL-/bin/sh}
539 # Remove one level of quotation (which was required for Make).
540 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
545 if test "X$1" = X--no-reexec; then
546 # Discard the --no-reexec flag, and continue.
548 elif test "X$1" = X--fallback-echo; then
549 # Avoid inline document here, it may be left over
551 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552 # Yippee, $ECHO works!
555 # Restart under the correct shell.
556 exec $SHELL "$0" --no-reexec ${1+"$@"}
559 if test "X$1" = X--fallback-echo; then
560 # used as fallback echo
568 # The HP-UX ksh and POSIX shell print the target directory to stdout
570 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
572 if test -z "$lt_ECHO"; then
573 if test "X${echo_test_string+set}" != Xset; then
574 # find a string as large as possible, as long as the shell can cope with it
575 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
585 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587 test "X$echo_testing_string" = "X$echo_test_string"; then
590 # The Solaris, AIX, and Digital Unix default echo programs unquote
591 # backslashes. This makes it impossible to quote backslashes using
592 # echo "$something" | sed 's/\\/\\\\/g'
594 # So, first we look for a working echo in the user's PATH.
596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597 for dir in $PATH /usr/ucb; do
599 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602 test "X$echo_testing_string" = "X$echo_test_string"; then
609 if test "X$ECHO" = Xecho; then
610 # We didn't find a better echo, so look for alternatives.
611 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613 test "X$echo_testing_string" = "X$echo_test_string"; then
614 # This shell has a builtin print -r that does the trick.
616 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617 test "X$CONFIG_SHELL" != X/bin/ksh; then
618 # If we have ksh, try running configure again with it.
619 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620 export ORIGINAL_CONFIG_SHELL
621 CONFIG_SHELL=/bin/ksh
623 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
627 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
632 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633 test "X$echo_testing_string" = 'X\t' &&
634 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
638 SHELL="$CONFIG_SHELL"
640 ECHO="$CONFIG_SHELL $0 --fallback-echo"
641 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 ECHO="$CONFIG_SHELL $0 --fallback-echo"
647 # maybe with a smaller string...
650 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
658 if test "$prev" != 'sed 50q "$0"'; then
659 echo_test_string=`eval $prev`
660 export echo_test_string
661 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
663 # Oops. We lost completely, so just stick with echo.
672 # Copy echo and quote the copy suitably for passing to libtool from
673 # the Makefile, instead of quoting the original, which is used later.
675 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
682 test -n "$DJDIR" || exec 7<&0 </dev/null
686 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
687 # so uname gets run too.
688 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
693 ac_default_prefix=/usr/local
695 ac_config_libobj_dir=.
702 # Identity of this package.
703 PACKAGE_NAME='json-glib'
704 PACKAGE_TARNAME='json-glib'
705 PACKAGE_VERSION='0.10.4'
706 PACKAGE_STRING='json-glib 0.10.4'
707 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib'
710 ac_unique_file="json-glib/json-glib.h"
711 # Factoring default headers for most tests.
712 ac_includes_default="\
714 #ifdef HAVE_SYS_TYPES_H
715 # include <sys/types.h>
717 #ifdef HAVE_SYS_STAT_H
718 # include <sys/stat.h>
724 # ifdef HAVE_STDLIB_H
729 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734 #ifdef HAVE_STRINGS_H
735 # include <strings.h>
737 #ifdef HAVE_INTTYPES_H
738 # include <inttypes.h>
748 ac_subst_vars='am__EXEEXT_FALSE
755 HAVE_INTROSPECTION_FALSE
756 HAVE_INTROSPECTION_TRUE
757 INTROSPECTION_TYPELIBDIR
759 INTROSPECTION_GENERATE
760 INTROSPECTION_COMPILER
761 INTROSPECTION_SCANNER
762 GTK_DOC_USE_REBASE_FALSE
763 GTK_DOC_USE_REBASE_TRUE
764 GTK_DOC_USE_LIBTOOL_FALSE
765 GTK_DOC_USE_LIBTOOL_TRUE
766 GTK_DOC_BUILD_PDF_FALSE
767 GTK_DOC_BUILD_PDF_TRUE
768 GTK_DOC_BUILD_HTML_FALSE
769 GTK_DOC_BUILD_HTML_TRUE
778 ENABLE_GLIB_TEST_FALSE
779 ENABLE_GLIB_TEST_TRUE
850 INSTALL_STRIP_PROGRAM
892 program_transform_name
905 enable_option_checking
908 enable_dependency_tracking
915 enable_maintainer_flags
923 ac_precious_vars='build_alias
939 # Initialize some variables set by options.
941 ac_init_version=false
942 ac_unrecognized_opts=
944 # The variables have the same names as the options, with
945 # dashes changed to underlines.
953 program_transform_name=s,x,x,
961 # Installation directory options.
962 # These are left unexpanded so users can "make install exec_prefix=/foo"
963 # and all the variables that are supposed to be based on exec_prefix
964 # by default will actually change.
965 # Use braces instead of parens because sh, perl, etc. also accept them.
966 # (The list follows the same order as the GNU Coding Standards.)
967 bindir='${exec_prefix}/bin'
968 sbindir='${exec_prefix}/sbin'
969 libexecdir='${exec_prefix}/libexec'
970 datarootdir='${prefix}/share'
971 datadir='${datarootdir}'
972 sysconfdir='${prefix}/etc'
973 sharedstatedir='${prefix}/com'
974 localstatedir='${prefix}/var'
975 includedir='${prefix}/include'
976 oldincludedir='/usr/include'
977 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
978 infodir='${datarootdir}/info'
983 libdir='${exec_prefix}/lib'
984 localedir='${datarootdir}/locale'
985 mandir='${datarootdir}/man'
991 # If the previous option needs an argument, assign it.
992 if test -n "$ac_prev"; then
993 eval $ac_prev=\$ac_option
999 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004 # Accept the important Cygnus configure options, so we can diagnose typos.
1006 case $ac_dashdash$ac_option in
1010 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1013 bindir=$ac_optarg ;;
1015 -build | --build | --buil | --bui | --bu)
1016 ac_prev=build_alias ;;
1017 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1018 build_alias=$ac_optarg ;;
1020 -cache-file | --cache-file | --cache-fil | --cache-fi \
1021 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1022 ac_prev=cache_file ;;
1023 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1024 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1025 cache_file=$ac_optarg ;;
1027 --config-cache | -C)
1028 cache_file=config.cache ;;
1030 -datadir | --datadir | --datadi | --datad)
1032 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1033 datadir=$ac_optarg ;;
1035 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1036 | --dataroo | --dataro | --datar)
1037 ac_prev=datarootdir ;;
1038 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1039 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1040 datarootdir=$ac_optarg ;;
1042 -disable-* | --disable-*)
1043 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046 as_fn_error $? "invalid feature name: $ac_useropt"
1047 ac_useropt_orig=$ac_useropt
1048 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049 case $ac_user_opts in
1051 "enable_$ac_useropt"
1053 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1054 ac_unrecognized_sep=', ';;
1056 eval enable_$ac_useropt=no ;;
1058 -docdir | --docdir | --docdi | --doc | --do)
1060 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1061 docdir=$ac_optarg ;;
1063 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1066 dvidir=$ac_optarg ;;
1068 -enable-* | --enable-*)
1069 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072 as_fn_error $? "invalid feature name: $ac_useropt"
1073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1077 "enable_$ac_useropt"
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
1082 eval enable_$ac_useropt=\$ac_optarg ;;
1084 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1085 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1086 | --exec | --exe | --ex)
1087 ac_prev=exec_prefix ;;
1088 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1089 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1090 | --exec=* | --exe=* | --ex=*)
1091 exec_prefix=$ac_optarg ;;
1093 -gas | --gas | --ga | --g)
1094 # Obsolete; use --with-gas.
1097 -help | --help | --hel | --he | -h)
1098 ac_init_help=long ;;
1099 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1100 ac_init_help=recursive ;;
1101 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1102 ac_init_help=short ;;
1104 -host | --host | --hos | --ho)
1105 ac_prev=host_alias ;;
1106 -host=* | --host=* | --hos=* | --ho=*)
1107 host_alias=$ac_optarg ;;
1109 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113 htmldir=$ac_optarg ;;
1115 -includedir | --includedir | --includedi | --included | --include \
1116 | --includ | --inclu | --incl | --inc)
1117 ac_prev=includedir ;;
1118 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1119 | --includ=* | --inclu=* | --incl=* | --inc=*)
1120 includedir=$ac_optarg ;;
1122 -infodir | --infodir | --infodi | --infod | --info | --inf)
1124 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1125 infodir=$ac_optarg ;;
1127 -libdir | --libdir | --libdi | --libd)
1129 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1130 libdir=$ac_optarg ;;
1132 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1133 | --libexe | --libex | --libe)
1134 ac_prev=libexecdir ;;
1135 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1136 | --libexe=* | --libex=* | --libe=*)
1137 libexecdir=$ac_optarg ;;
1139 -localedir | --localedir | --localedi | --localed | --locale)
1140 ac_prev=localedir ;;
1141 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1142 localedir=$ac_optarg ;;
1144 -localstatedir | --localstatedir | --localstatedi | --localstated \
1145 | --localstate | --localstat | --localsta | --localst | --locals)
1146 ac_prev=localstatedir ;;
1147 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1148 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1149 localstatedir=$ac_optarg ;;
1151 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1154 mandir=$ac_optarg ;;
1156 -nfp | --nfp | --nf)
1157 # Obsolete; use --without-fp.
1160 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161 | --no-cr | --no-c | -n)
1164 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1165 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1169 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1170 | --oldin | --oldi | --old | --ol | --o)
1171 ac_prev=oldincludedir ;;
1172 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1173 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1174 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1175 oldincludedir=$ac_optarg ;;
1177 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1180 prefix=$ac_optarg ;;
1182 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1183 | --program-pre | --program-pr | --program-p)
1184 ac_prev=program_prefix ;;
1185 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1186 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1187 program_prefix=$ac_optarg ;;
1189 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1190 | --program-suf | --program-su | --program-s)
1191 ac_prev=program_suffix ;;
1192 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1193 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1194 program_suffix=$ac_optarg ;;
1196 -program-transform-name | --program-transform-name \
1197 | --program-transform-nam | --program-transform-na \
1198 | --program-transform-n | --program-transform- \
1199 | --program-transform | --program-transfor \
1200 | --program-transfo | --program-transf \
1201 | --program-trans | --program-tran \
1202 | --progr-tra | --program-tr | --program-t)
1203 ac_prev=program_transform_name ;;
1204 -program-transform-name=* | --program-transform-name=* \
1205 | --program-transform-nam=* | --program-transform-na=* \
1206 | --program-transform-n=* | --program-transform-=* \
1207 | --program-transform=* | --program-transfor=* \
1208 | --program-transfo=* | --program-transf=* \
1209 | --program-trans=* | --program-tran=* \
1210 | --progr-tra=* | --program-tr=* | --program-t=*)
1211 program_transform_name=$ac_optarg ;;
1213 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1216 pdfdir=$ac_optarg ;;
1218 -psdir | --psdir | --psdi | --psd | --ps)
1220 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224 | -silent | --silent | --silen | --sile | --sil)
1227 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1229 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1231 sbindir=$ac_optarg ;;
1233 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1234 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1235 | --sharedst | --shareds | --shared | --share | --shar \
1237 ac_prev=sharedstatedir ;;
1238 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1239 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1240 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1242 sharedstatedir=$ac_optarg ;;
1244 -site | --site | --sit)
1246 -site=* | --site=* | --sit=*)
1249 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1251 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1252 srcdir=$ac_optarg ;;
1254 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1255 | --syscon | --sysco | --sysc | --sys | --sy)
1256 ac_prev=sysconfdir ;;
1257 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1258 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1259 sysconfdir=$ac_optarg ;;
1261 -target | --target | --targe | --targ | --tar | --ta | --t)
1262 ac_prev=target_alias ;;
1263 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1264 target_alias=$ac_optarg ;;
1266 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269 -version | --version | --versio | --versi | --vers | -V)
1270 ac_init_version=: ;;
1273 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276 as_fn_error $? "invalid package name: $ac_useropt"
1277 ac_useropt_orig=$ac_useropt
1278 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279 case $ac_user_opts in
1283 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1284 ac_unrecognized_sep=', ';;
1286 eval with_$ac_useropt=\$ac_optarg ;;
1288 -without-* | --without-*)
1289 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292 as_fn_error $? "invalid package name: $ac_useropt"
1293 ac_useropt_orig=$ac_useropt
1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1300 ac_unrecognized_sep=', ';;
1302 eval with_$ac_useropt=no ;;
1305 # Obsolete; use --with-x.
1308 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1309 | --x-incl | --x-inc | --x-in | --x-i)
1310 ac_prev=x_includes ;;
1311 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1312 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1313 x_includes=$ac_optarg ;;
1315 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1316 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1317 ac_prev=x_libraries ;;
1318 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1319 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1320 x_libraries=$ac_optarg ;;
1322 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1323 Try \`$0 --help' for more information"
1327 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1328 # Reject names that are not valid shell variable names.
1329 case $ac_envvar in #(
1330 '' | [0-9]* | *[!_$as_cr_alnum]* )
1331 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1333 eval $ac_envvar=\$ac_optarg
1334 export $ac_envvar ;;
1337 # FIXME: should be removed in autoconf 3.0.
1338 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1339 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1340 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1341 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1347 if test -n "$ac_prev"; then
1348 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1349 as_fn_error $? "missing argument to $ac_option"
1352 if test -n "$ac_unrecognized_opts"; then
1353 case $enable_option_checking in
1355 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1356 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360 # Check all directory arguments for consistency.
1361 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362 datadir sysconfdir sharedstatedir localstatedir includedir \
1363 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364 libdir localedir mandir
1366 eval ac_val=\$$ac_var
1367 # Remove trailing slashes.
1370 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1371 eval $ac_var=\$ac_val;;
1373 # Be sure to have absolute directory names.
1375 [\\/$]* | ?:[\\/]* ) continue;;
1376 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1378 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1381 # There might be people who depend on the old broken behavior: `$host'
1382 # used to hold the argument of --host etc.
1383 # FIXME: To remove some day.
1386 target=$target_alias
1388 # FIXME: To remove some day.
1389 if test "x$host_alias" != x; then
1390 if test "x$build_alias" = x; then
1391 cross_compiling=maybe
1392 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1393 If a cross compiler is detected then cross compile mode will be used" >&2
1394 elif test "x$build_alias" != "x$host_alias"; then
1400 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402 test "$silent" = yes && exec 6>/dev/null
1405 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1406 ac_ls_di=`ls -di .` &&
1407 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1408 as_fn_error $? "working directory cannot be determined"
1409 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1410 as_fn_error $? "pwd does not report name of working directory"
1413 # Find the source files, if location was not specified.
1414 if test -z "$srcdir"; then
1415 ac_srcdir_defaulted=yes
1416 # Try the directory containing this script, then the parent directory.
1417 ac_confdir=`$as_dirname -- "$as_myself" ||
1418 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1419 X"$as_myself" : 'X\(//\)[^/]' \| \
1420 X"$as_myself" : 'X\(//\)$' \| \
1421 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1422 $as_echo X"$as_myself" |
1423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1441 if test ! -r "$srcdir/$ac_unique_file"; then
1445 ac_srcdir_defaulted=no
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1448 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1449 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1451 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1455 # When building in place, set srcdir=.
1456 if test "$ac_abs_confdir" = "$ac_pwd"; then
1459 # Remove unnecessary trailing slashes from srcdir.
1460 # Double slashes in file names in object file debugging info
1461 # mess up M-x gdb in Emacs.
1463 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465 for ac_var in $ac_precious_vars; do
1466 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1467 eval ac_env_${ac_var}_value=\$${ac_var}
1468 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473 # Report the --help message.
1475 if test "$ac_init_help" = "long"; then
1476 # Omit some internal or obsolete options to make the list less imposing.
1477 # This message is too long to be a string in the A/UX 3.1 sh.
1479 \`configure' configures json-glib 0.10.4 to adapt to many kinds of systems.
1481 Usage: $0 [OPTION]... [VAR=VALUE]...
1483 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484 VAR=VALUE. See below for descriptions of some of the useful variables.
1486 Defaults for the options are specified in brackets.
1489 -h, --help display this help and exit
1490 --help=short display options specific to this package
1491 --help=recursive display the short help of all the included packages
1492 -V, --version display version information and exit
1493 -q, --quiet, --silent do not print \`checking ...' messages
1494 --cache-file=FILE cache test results in FILE [disabled]
1495 -C, --config-cache alias for \`--cache-file=config.cache'
1496 -n, --no-create do not create output files
1497 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1499 Installation directories:
1500 --prefix=PREFIX install architecture-independent files in PREFIX
1501 [$ac_default_prefix]
1502 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1505 By default, \`make install' will install all the files in
1506 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1507 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508 for instance \`--prefix=\$HOME'.
1510 For better control, use the options below.
1512 Fine tuning of the installation directories:
1513 --bindir=DIR user executables [EPREFIX/bin]
1514 --sbindir=DIR system admin executables [EPREFIX/sbin]
1515 --libexecdir=DIR program executables [EPREFIX/libexec]
1516 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1517 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1518 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1519 --libdir=DIR object code libraries [EPREFIX/lib]
1520 --includedir=DIR C header files [PREFIX/include]
1521 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1522 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1523 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1524 --infodir=DIR info documentation [DATAROOTDIR/info]
1525 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1526 --mandir=DIR man documentation [DATAROOTDIR/man]
1527 --docdir=DIR documentation root [DATAROOTDIR/doc/json-glib]
1528 --htmldir=DIR html documentation [DOCDIR]
1529 --dvidir=DIR dvi documentation [DOCDIR]
1530 --pdfdir=DIR pdf documentation [DOCDIR]
1531 --psdir=DIR ps documentation [DOCDIR]
1537 --program-prefix=PREFIX prepend PREFIX to installed program names
1538 --program-suffix=SUFFIX append SUFFIX to installed program names
1539 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1542 --build=BUILD configure for building on BUILD [guessed]
1543 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1547 if test -n "$ac_init_help"; then
1548 case $ac_init_help in
1549 short | recursive ) echo "Configuration of json-glib 0.10.4:";;
1554 --disable-option-checking ignore unrecognized --enable/--with options
1555 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1556 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1557 --enable-static[=PKGS] build static libraries [default=no]
1558 --disable-glibtest do not try to compile and run a test GLIB program
1559 --disable-dependency-tracking speeds up one-time build
1560 --enable-dependency-tracking do not reject slow dependency extractors
1561 --enable-shared[=PKGS] build shared libraries [default=yes]
1562 --enable-fast-install[=PKGS]
1563 optimize for fast installation [default=yes]
1564 --disable-libtool-lock avoid locking (might break parallel builds)
1565 --enable-debug=[no/minimum/yes]
1566 turn on debugging [default=debug_default]
1567 --enable-maintainer-flags=[no/yes]
1568 Use strict compiler flags
1569 [default=maintainer_flags_default]
1570 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1571 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1572 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1573 --enable-introspection=[no/auto/yes]
1574 Enable introspection for this build
1575 --enable-silent-rules less verbose build output (undo: `make V=1')
1576 --disable-silent-rules verbose build output (undo: `make V=0')
1579 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1580 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1581 --with-pic try to use only PIC/non-PIC objects [default=use
1583 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1584 --with-html-dir=PATH path to installed docs
1586 Some influential environment variables:
1587 PKG_CONFIG path to pkg-config utility
1589 directories to add to pkg-config's search path
1591 path overriding pkg-config's built-in search path
1592 CC C compiler command
1593 CFLAGS C compiler flags
1594 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1595 nonstandard directory <lib dir>
1596 LIBS libraries to pass to the linker, e.g. -l<library>
1597 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1598 you have headers in a nonstandard directory <include dir>
1600 JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1601 JSON_LIBS linker flags for JSON, overriding pkg-config
1603 Use these variables to override the choices made by `configure' or to help
1604 it to find libraries and programs with nonstandard names/locations.
1606 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib>.
1611 if test "$ac_init_help" = "recursive"; then
1612 # If there are subdirs, report their specific --help.
1613 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1614 test -d "$ac_dir" ||
1615 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1620 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1623 # A ".." for each directory in $ac_dir_suffix.
1624 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1625 case $ac_top_builddir_sub in
1626 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1630 ac_abs_top_builddir=$ac_pwd
1631 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1632 # for backward compatibility:
1633 ac_top_builddir=$ac_top_build_prefix
1636 .) # We are building in place.
1638 ac_top_srcdir=$ac_top_builddir_sub
1639 ac_abs_top_srcdir=$ac_pwd ;;
1640 [\\/]* | ?:[\\/]* ) # Absolute name.
1641 ac_srcdir=$srcdir$ac_dir_suffix;
1642 ac_top_srcdir=$srcdir
1643 ac_abs_top_srcdir=$srcdir ;;
1645 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1646 ac_top_srcdir=$ac_top_build_prefix$srcdir
1647 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1649 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1651 cd "$ac_dir" || { ac_status=$?; continue; }
1652 # Check for guested configure.
1653 if test -f "$ac_srcdir/configure.gnu"; then
1655 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1656 elif test -f "$ac_srcdir/configure"; then
1658 $SHELL "$ac_srcdir/configure" --help=recursive
1660 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1662 cd "$ac_pwd" || { ac_status=$?; break; }
1666 test -n "$ac_init_help" && exit $ac_status
1667 if $ac_init_version; then
1669 json-glib configure 0.10.4
1670 generated by GNU Autoconf 2.67
1672 Copyright (C) 2010 Free Software Foundation, Inc.
1673 This configure script is free software; the Free Software Foundation
1674 gives unlimited permission to copy, distribute and modify it.
1679 ## ------------------------ ##
1680 ## Autoconf initialization. ##
1681 ## ------------------------ ##
1683 # ac_fn_c_try_compile LINENO
1684 # --------------------------
1685 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1686 ac_fn_c_try_compile ()
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 rm -f conftest.$ac_objext
1690 if { { ac_try="$ac_compile"
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_compile") 2>conftest.err
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } && {
1706 test -z "$ac_c_werror_flag" ||
1707 test ! -s conftest.err
1708 } && test -s conftest.$ac_objext; then :
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1716 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1717 as_fn_set_status $ac_retval
1719 } # ac_fn_c_try_compile
1721 # ac_fn_c_try_run LINENO
1722 # ----------------------
1723 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1724 # that executables *can* be run.
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 if { { ac_try="$ac_link"
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_link") 2>&5
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1739 { { case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_try") 2>&5
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; }; }; then :
1751 $as_echo "$as_me: program exited with status $ac_status" >&5
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1755 ac_retval=$ac_status
1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759 as_fn_set_status $ac_retval
1763 # ac_fn_c_try_link LINENO
1764 # -----------------------
1765 # Try to link conftest.$ac_ext, and return whether this succeeded.
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 rm -f conftest.$ac_objext conftest$ac_exeext
1770 if { { ac_try="$ac_link"
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_link") 2>conftest.err
1779 if test -s conftest.err; then
1780 grep -v '^ *+' conftest.err >conftest.er1
1781 cat conftest.er1 >&5
1782 mv -f conftest.er1 conftest.err
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && {
1786 test -z "$ac_c_werror_flag" ||
1787 test ! -s conftest.err
1788 } && test -s conftest$ac_exeext && {
1789 test "$cross_compiling" = yes ||
1790 $as_test_x conftest$ac_exeext
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1799 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1800 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1801 # interfere with the next link command; also delete a directory that is
1802 # left behind by Apple's compiler. We do this before executing the actions.
1803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1805 as_fn_set_status $ac_retval
1807 } # ac_fn_c_try_link
1809 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1810 # -------------------------------------------------------
1811 # Tests whether HEADER exists and can be compiled using the include files in
1812 # INCLUDES, setting the cache variable VAR accordingly.
1813 ac_fn_c_check_header_compile ()
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if eval "test \"\${$3+set}\"" = set; then :
1819 $as_echo_n "(cached) " >&6
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1826 if ac_fn_c_try_compile "$LINENO"; then :
1831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838 } # ac_fn_c_check_header_compile
1840 # ac_fn_c_try_cpp LINENO
1841 # ----------------------
1842 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 if { { ac_try="$ac_cpp conftest.$ac_ext"
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1855 if test -s conftest.err; then
1856 grep -v '^ *+' conftest.err >conftest.er1
1857 cat conftest.er1 >&5
1858 mv -f conftest.er1 conftest.err
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } > conftest.i && {
1862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1863 test ! -s conftest.err
1867 $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1872 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1873 as_fn_set_status $ac_retval
1877 # ac_fn_c_check_func LINENO FUNC VAR
1878 # ----------------------------------
1879 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1880 ac_fn_c_check_func ()
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if eval "test \"\${$3+set}\"" = set; then :
1886 $as_echo_n "(cached) " >&6
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1890 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1892 #define $2 innocuous_$2
1894 /* System header to define __stub macros and hopefully few prototypes,
1895 which can conflict with char $2 (); below.
1896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1897 <limits.h> exists even on freestanding compilers. */
1900 # include <limits.h>
1902 # include <assert.h>
1907 /* Override any GCC internal prototype to avoid an error.
1908 Use char because int might match the return type of a GCC
1909 builtin and then its argument prototype would still apply. */
1914 /* The GNU C library defines this for functions which it implements
1915 to always fail with ENOSYS. Some functions are actually named
1916 something starting with __ and the normal name is an alias. */
1917 #if defined __stub_$2 || defined __stub___$2
1929 if ac_fn_c_try_link "$LINENO"; then :
1934 rm -f core conftest.err conftest.$ac_objext \
1935 conftest$ac_exeext conftest.$ac_ext
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1942 } # ac_fn_c_check_func
1944 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1945 # -------------------------------------------------------
1946 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1947 # the include files in INCLUDES and setting the cache variable VAR
1949 ac_fn_c_check_header_mongrel ()
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 if eval "test \"\${$3+set}\"" = set; then :
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 $as_echo_n "checking for $2... " >&6; }
1955 if eval "test \"\${$3+set}\"" = set; then :
1956 $as_echo_n "(cached) " >&6
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 $as_echo "$ac_res" >&6; }
1962 # Is the header compilable?
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1964 $as_echo_n "checking $2 usability... " >&6; }
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h. */
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971 ac_header_compiler=yes
1973 ac_header_compiler=no
1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1977 $as_echo "$ac_header_compiler" >&6; }
1979 # Is the header present?
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1981 $as_echo_n "checking $2 presence... " >&6; }
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1986 if ac_fn_c_try_cpp "$LINENO"; then :
1987 ac_header_preproc=yes
1989 ac_header_preproc=no
1991 rm -f conftest.err conftest.i conftest.$ac_ext
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1993 $as_echo "$ac_header_preproc" >&6; }
1995 # So? What about this header?
1996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1999 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2001 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2005 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2007 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2009 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2011 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2013 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2014 ( $as_echo "## ------------------------------------------------------------------------ ##
2015 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib ##
2016 ## ------------------------------------------------------------------------ ##"
2017 ) | sed "s/^/$as_me: WARNING: /" >&2
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021 $as_echo_n "checking for $2... " >&6; }
2022 if eval "test \"\${$3+set}\"" = set; then :
2023 $as_echo_n "(cached) " >&6
2025 eval "$3=\$ac_header_compiler"
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029 $as_echo "$ac_res" >&6; }
2031 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2033 } # ac_fn_c_check_header_mongrel
2034 cat >config.log <<_ACEOF
2035 This file contains any messages produced by compilers while
2036 running configure, to aid debugging if configure makes a mistake.
2038 It was created by json-glib $as_me 0.10.4, which was
2039 generated by GNU Autoconf 2.67. Invocation command line was
2051 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2052 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2053 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2054 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2055 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2057 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2058 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2060 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2061 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2062 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2063 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2064 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2065 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2066 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 test -z "$as_dir" && as_dir=.
2075 $as_echo "PATH: $as_dir"
2091 # Keep a trace of the command line.
2092 # Strip out --no-create and --no-recursion so they do not pile up.
2093 # Strip out --silent because we don't want to record it for future runs.
2094 # Also quote any args containing shell meta-characters.
2095 # Make two passes to allow for proper duplicate-argument suppression.
2099 ac_must_keep_next=false
2105 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2107 | -silent | --silent | --silen | --sile | --sil)
2110 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2113 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2115 as_fn_append ac_configure_args1 " '$ac_arg'"
2116 if test $ac_must_keep_next = true; then
2117 ac_must_keep_next=false # Got value, back to normal.
2120 *=* | --config-cache | -C | -disable-* | --disable-* \
2121 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2122 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2123 | -with-* | --with-* | -without-* | --without-* | --x)
2124 case "$ac_configure_args0 " in
2125 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2128 -* ) ac_must_keep_next=true ;;
2131 as_fn_append ac_configure_args " '$ac_arg'"
2136 { ac_configure_args0=; unset ac_configure_args0;}
2137 { ac_configure_args1=; unset ac_configure_args1;}
2139 # When interrupted or exit'd, cleanup temporary files, and complete
2140 # config.log. We remove comments because anyway the quotes in there
2141 # would cause problems or look ugly.
2142 # WARNING: Use '\'' to represent an apostrophe within the trap.
2143 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2144 trap 'exit_status=$?
2145 # Save into config.log some information that might help in debugging.
2149 $as_echo "## ---------------- ##
2150 ## Cache variables. ##
2151 ## ---------------- ##"
2153 # The following way of writing the cache mishandles newlines in values,
2155 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2156 eval ac_val=\$$ac_var
2160 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2161 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2164 _ | IFS | as_nl) ;; #(
2165 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2166 *) { eval $ac_var=; unset $ac_var;} ;;
2171 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2172 *${as_nl}ac_space=\ *)
2174 "s/'\''/'\''\\\\'\'''\''/g;
2175 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2178 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2185 $as_echo "## ----------------- ##
2186 ## Output variables. ##
2187 ## ----------------- ##"
2189 for ac_var in $ac_subst_vars
2191 eval ac_val=\$$ac_var
2193 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2195 $as_echo "$ac_var='\''$ac_val'\''"
2199 if test -n "$ac_subst_files"; then
2200 $as_echo "## ------------------- ##
2201 ## File substitutions. ##
2202 ## ------------------- ##"
2204 for ac_var in $ac_subst_files
2206 eval ac_val=\$$ac_var
2208 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2210 $as_echo "$ac_var='\''$ac_val'\''"
2215 if test -s confdefs.h; then
2216 $as_echo "## ----------- ##
2223 test "$ac_signal" != 0 &&
2224 $as_echo "$as_me: caught signal $ac_signal"
2225 $as_echo "$as_me: exit $exit_status"
2227 rm -f core *.core core.conftest.* &&
2228 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2231 for ac_signal in 1 2 13 15; do
2232 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2236 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2237 rm -f -r conftest* confdefs.h
2239 $as_echo "/* confdefs.h */" > confdefs.h
2241 # Predefined preprocessor variables.
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_NAME "$PACKAGE_NAME"
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2255 cat >>confdefs.h <<_ACEOF
2256 #define PACKAGE_STRING "$PACKAGE_STRING"
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_URL "$PACKAGE_URL"
2268 # Let the site file select an alternate cache file if it wants to.
2269 # Prefer an explicitly selected file to automatically selected ones.
2272 if test -n "$CONFIG_SITE"; then
2273 # We do not want a PATH search for config.site.
2274 case $CONFIG_SITE in #((
2275 -*) ac_site_file1=./$CONFIG_SITE;;
2276 */*) ac_site_file1=$CONFIG_SITE;;
2277 *) ac_site_file1=./$CONFIG_SITE;;
2279 elif test "x$prefix" != xNONE; then
2280 ac_site_file1=$prefix/share/config.site
2281 ac_site_file2=$prefix/etc/config.site
2283 ac_site_file1=$ac_default_prefix/share/config.site
2284 ac_site_file2=$ac_default_prefix/etc/config.site
2286 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2288 test "x$ac_site_file" = xNONE && continue
2289 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2291 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2292 sed 's/^/| /' "$ac_site_file" >&5
2294 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2296 as_fn_error $? "failed to load site script $ac_site_file
2297 See \`config.log' for more details" "$LINENO" 5 ; }
2301 if test -r "$cache_file"; then
2302 # Some versions of bash will fail to source /dev/null (special files
2303 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2304 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2306 $as_echo "$as_me: loading cache $cache_file" >&6;}
2308 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2309 *) . "./$cache_file";;
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2314 $as_echo "$as_me: creating cache $cache_file" >&6;}
2318 as_fn_append ac_header_list " stdlib.h"
2319 as_fn_append ac_header_list " unistd.h"
2320 as_fn_append ac_header_list " sys/param.h"
2321 # Check that the precious variables saved in the cache have kept the same
2323 ac_cache_corrupted=false
2324 for ac_var in $ac_precious_vars; do
2325 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2326 eval ac_new_set=\$ac_env_${ac_var}_set
2327 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2328 eval ac_new_val=\$ac_env_${ac_var}_value
2329 case $ac_old_set,$ac_new_set in
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2332 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2333 ac_cache_corrupted=: ;;
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2336 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2337 ac_cache_corrupted=: ;;
2340 if test "x$ac_old_val" != "x$ac_new_val"; then
2341 # differences in whitespace do not lead to failure.
2342 ac_old_val_w=`echo x $ac_old_val`
2343 ac_new_val_w=`echo x $ac_new_val`
2344 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2346 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2347 ac_cache_corrupted=:
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2350 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2351 eval $ac_var=\$ac_old_val
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2354 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2356 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2359 # Pass precious variables to config.status.
2360 if test "$ac_new_set" = set; then
2362 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2363 *) ac_arg=$ac_var=$ac_new_val ;;
2365 case " $ac_configure_args " in
2366 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2367 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2371 if $ac_cache_corrupted; then
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2375 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2376 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2378 ## -------------------- ##
2379 ## Main body of script. ##
2380 ## -------------------- ##
2383 ac_cpp='$CPP $CPPFLAGS'
2384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2393 am__api_version='1.11'
2396 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2397 if test -f "$ac_dir/install-sh"; then
2399 ac_install_sh="$ac_aux_dir/install-sh -c"
2401 elif test -f "$ac_dir/install.sh"; then
2403 ac_install_sh="$ac_aux_dir/install.sh -c"
2405 elif test -f "$ac_dir/shtool"; then
2407 ac_install_sh="$ac_aux_dir/shtool install -c"
2411 if test -z "$ac_aux_dir"; then
2412 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2415 # These three variables are undocumented and unsupported,
2416 # and are intended to be withdrawn in a future Autoconf release.
2417 # They can cause serious problems if a builder's source tree is in a directory
2418 # whose full name contains unusual characters.
2419 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2420 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2421 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2424 # Find a good install program. We prefer a C program (faster),
2425 # so one script is as good as another. But avoid the broken or
2426 # incompatible versions:
2427 # SysV /etc/install, /usr/sbin/install
2428 # SunOS /usr/etc/install
2429 # IRIX /sbin/install
2431 # AmigaOS /C/install, which installs bootblocks on floppy discs
2432 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2433 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2434 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2435 # OS/2's system install, which has a completely different semantic
2436 # ./install, which can be erroneously created by make from ./install.sh.
2437 # Reject install programs that cannot install multiple files.
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2439 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2440 if test -z "$INSTALL"; then
2441 if test "${ac_cv_path_install+set}" = set; then :
2442 $as_echo_n "(cached) " >&6
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 test -z "$as_dir" && as_dir=.
2449 # Account for people who put trailing slashes in PATH elements.
2450 case $as_dir/ in #((
2451 ./ | .// | /[cC]/* | \
2452 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2453 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2456 # OSF1 and SCO ODT 3.0 have their own names for install.
2457 # Don't use installbsd from OSF since it installs stuff as root
2459 for ac_prog in ginstall scoinst install; do
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2462 if test $ac_prog = install &&
2463 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2464 # AIX install. It has an incompatible calling convention.
2466 elif test $ac_prog = install &&
2467 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2468 # program-specific install script used by HP pwplus--don't use.
2471 rm -rf conftest.one conftest.two conftest.dir
2472 echo one > conftest.one
2473 echo two > conftest.two
2475 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2476 test -s conftest.one && test -s conftest.two &&
2477 test -s conftest.dir/conftest.one &&
2478 test -s conftest.dir/conftest.two
2480 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2493 rm -rf conftest.one conftest.two conftest.dir
2496 if test "${ac_cv_path_install+set}" = set; then
2497 INSTALL=$ac_cv_path_install
2499 # As a last resort, use the slow shell script. Don't cache a
2500 # value for INSTALL within a source directory, because that will
2501 # break other packages using the cache if that directory is
2502 # removed, or if the value is a relative name.
2503 INSTALL=$ac_install_sh
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2507 $as_echo "$INSTALL" >&6; }
2509 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2510 # It thinks the first close brace ends the variable substitution.
2511 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2513 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2515 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2518 $as_echo_n "checking whether build environment is sane... " >&6; }
2521 echo timestamp > conftest.file
2522 # Reject unsafe characters in $srcdir or the absolute working directory
2523 # name. Accept space and tab only in the latter.
2527 *[\\\"\#\$\&\'\`$am_lf]*)
2528 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2531 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2532 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2535 # Do `set' in a subshell so we don't clobber the current shell's
2536 # arguments. Must try -L first in case configure is actually a
2537 # symlink; some systems play weird games with the mod time of symlinks
2538 # (eg FreeBSD returns the mod time of the symlink's containing
2541 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2542 if test "$*" = "X"; then
2544 set X `ls -t "$srcdir/configure" conftest.file`
2547 if test "$*" != "X $srcdir/configure conftest.file" \
2548 && test "$*" != "X conftest.file $srcdir/configure"; then
2550 # If neither matched, then we have a broken ls. This can happen
2551 # if, for instance, CONFIG_SHELL is bash and it inherits a
2552 # broken ls alias from the environment. This has actually
2553 # happened. Such a system could not be considered "sane".
2554 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2555 alias in your environment" "$LINENO" 5
2558 test "$2" = conftest.file
2564 as_fn_error $? "newly created file is older than distributed files!
2565 Check your system clock" "$LINENO" 5
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2568 $as_echo "yes" >&6; }
2569 test "$program_prefix" != NONE &&
2570 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2571 # Use a double $ so make ignores it.
2572 test "$program_suffix" != NONE &&
2573 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2574 # Double any \ or $.
2575 # By default was `s,x,x', remove it if useless.
2576 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2577 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2579 # expand $ac_aux_dir to an absolute path
2580 am_aux_dir=`cd $ac_aux_dir && pwd`
2582 if test x"${MISSING+set}" != xset; then
2585 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2587 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2590 # Use eval to expand $SHELL
2591 if eval "$MISSING --run true"; then
2592 am_missing_run="$MISSING --run "
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2596 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2599 if test x"${install_sh}" != xset; then
2602 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2604 install_sh="\${SHELL} $am_aux_dir/install-sh"
2608 # Installed binaries are usually stripped using `strip' when the user
2609 # run `make install-strip'. However `strip' might not be the right
2610 # tool to use in cross-compilation environments, therefore Automake
2611 # will honor the `STRIP' environment variable to overrule this program.
2612 if test "$cross_compiling" != no; then
2613 if test -n "$ac_tool_prefix"; then
2614 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2615 set dummy ${ac_tool_prefix}strip; ac_word=$2
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2617 $as_echo_n "checking for $ac_word... " >&6; }
2618 if test "${ac_cv_prog_STRIP+set}" = set; then :
2619 $as_echo_n "(cached) " >&6
2621 if test -n "$STRIP"; then
2622 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 test -z "$as_dir" && as_dir=.
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2631 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2641 STRIP=$ac_cv_prog_STRIP
2642 if test -n "$STRIP"; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2644 $as_echo "$STRIP" >&6; }
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647 $as_echo "no" >&6; }
2652 if test -z "$ac_cv_prog_STRIP"; then
2654 # Extract the first word of "strip", so it can be a program name with args.
2655 set dummy strip; ac_word=$2
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2657 $as_echo_n "checking for $ac_word... " >&6; }
2658 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2659 $as_echo_n "(cached) " >&6
2661 if test -n "$ac_ct_STRIP"; then
2662 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2671 ac_cv_prog_ac_ct_STRIP="strip"
2672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2682 if test -n "$ac_ct_STRIP"; then
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2684 $as_echo "$ac_ct_STRIP" >&6; }
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687 $as_echo "no" >&6; }
2690 if test "x$ac_ct_STRIP" = x; then
2693 case $cross_compiling:$ac_tool_warned in
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2697 ac_tool_warned=yes ;;
2702 STRIP="$ac_cv_prog_STRIP"
2706 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2709 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2710 if test -z "$MKDIR_P"; then
2711 if test "${ac_cv_path_mkdir+set}" = set; then :
2712 $as_echo_n "(cached) " >&6
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2718 test -z "$as_dir" && as_dir=.
2719 for ac_prog in mkdir gmkdir; do
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2722 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2723 'mkdir (GNU coreutils) '* | \
2724 'mkdir (coreutils) '* | \
2725 'mkdir (fileutils) '4.1*)
2726 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2736 test -d ./--version && rmdir ./--version
2737 if test "${ac_cv_path_mkdir+set}" = set; then
2738 MKDIR_P="$ac_cv_path_mkdir -p"
2740 # As a last resort, use the slow shell script. Don't cache a
2741 # value for MKDIR_P within a source directory, because that will
2742 # break other packages using the cache if that directory is
2743 # removed, or if the value is a relative name.
2744 MKDIR_P="$ac_install_sh -d"
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2748 $as_echo "$MKDIR_P" >&6; }
2752 [\\/$]* | ?:[\\/]*) ;;
2753 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2756 for ac_prog in gawk mawk nawk awk
2758 # Extract the first word of "$ac_prog", so it can be a program name with args.
2759 set dummy $ac_prog; ac_word=$2
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761 $as_echo_n "checking for $ac_word... " >&6; }
2762 if test "${ac_cv_prog_AWK+set}" = set; then :
2763 $as_echo_n "(cached) " >&6
2765 if test -n "$AWK"; then
2766 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2775 ac_cv_prog_AWK="$ac_prog"
2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 if test -n "$AWK"; then
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2788 $as_echo "$AWK" >&6; }
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791 $as_echo "no" >&6; }
2795 test -n "$AWK" && break
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2799 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2801 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2802 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2803 $as_echo_n "(cached) " >&6
2805 cat >conftest.make <<\_ACEOF
2808 @echo '@@@%%%=$(MAKE)=@@@%%%'
2810 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2811 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2813 eval ac_cv_prog_make_${ac_make}_set=yes;;
2815 eval ac_cv_prog_make_${ac_make}_set=no;;
2819 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2821 $as_echo "yes" >&6; }
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 $as_echo "no" >&6; }
2826 SET_MAKE="MAKE=${MAKE-make}"
2829 rm -rf .tst 2>/dev/null
2830 mkdir .tst 2>/dev/null
2831 if test -d .tst; then
2836 rmdir .tst 2>/dev/null
2838 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2839 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2840 # is not polluted with repeated "-I."
2841 am__isrc=' -I$(srcdir)'
2842 # test to see if srcdir already configured
2843 if test -f $srcdir/config.status; then
2844 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2848 # test whether we have cygpath
2849 if test -z "$CYGPATH_W"; then
2850 if (cygpath --version) >/dev/null 2>/dev/null; then
2851 CYGPATH_W='cygpath -w'
2858 # Define the identity of the package.
2863 cat >>confdefs.h <<_ACEOF
2864 #define PACKAGE "$PACKAGE"
2868 cat >>confdefs.h <<_ACEOF
2869 #define VERSION "$VERSION"
2872 # Some tools Automake needs.
2874 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2877 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2880 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2883 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2886 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2888 # We need awk for the "check" target. The system "awk" is bad on
2890 # Always define AMTAR for backward compatibility.
2892 AMTAR=${AMTAR-"${am_missing_run}tar"}
2894 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2900 ac_config_headers="$ac_config_headers config.h"
2903 # Check whether --enable-static was given.
2904 if test "${enable_static+set}" = set; then :
2905 enableval=$enable_static; p=${PACKAGE-default}
2907 yes) enable_static=yes ;;
2908 no) enable_static=no ;;
2911 # Look at the argument we got. We use all the common list separators.
2912 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2913 for pkg in $enableval; do
2915 if test "X$pkg" = "X$p"; then
2934 DEPDIR="${am__leading_dot}deps"
2936 ac_config_commands="$ac_config_commands depfiles"
2939 am_make=${MAKE-make}
2940 cat > confinc << 'END'
2942 @echo this is the am__doit target
2945 # If we don't find an include directive, just comment out the code.
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2947 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2951 # First try GNU make style include.
2952 echo "include confinc" > confmf
2953 # Ignore all kinds of additional output from `make'.
2954 case `$am_make -s -f confmf 2> /dev/null` in #(
2955 *the\ am__doit\ target*)
2961 # Now try BSD make style include.
2962 if test "$am__include" = "#"; then
2963 echo '.include "confinc"' > confmf
2964 case `$am_make -s -f confmf 2> /dev/null` in #(
2965 *the\ am__doit\ target*)
2966 am__include=.include
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2975 $as_echo "$_am_result" >&6; }
2976 rm -f confinc confmf
2978 # Check whether --enable-dependency-tracking was given.
2979 if test "${enable_dependency_tracking+set}" = set; then :
2980 enableval=$enable_dependency_tracking;
2983 if test "x$enable_dependency_tracking" != xno; then
2984 am_depcomp="$ac_aux_dir/depcomp"
2987 if test "x$enable_dependency_tracking" != xno; then
2997 ac_cpp='$CPP $CPPFLAGS'
2998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3001 if test -n "$ac_tool_prefix"; then
3002 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3003 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if test "${ac_cv_prog_CC+set}" = set; then :
3007 $as_echo_n "(cached) " >&6
3009 if test -n "$CC"; then
3010 ac_cv_prog_CC="$CC" # Let the user override the test.
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 if test -n "$CC"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3032 $as_echo "$CC" >&6; }
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3040 if test -z "$ac_cv_prog_CC"; then
3042 # Extract the first word of "gcc", so it can be a program name with args.
3043 set dummy gcc; ac_word=$2
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045 $as_echo_n "checking for $ac_word... " >&6; }
3046 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3047 $as_echo_n "(cached) " >&6
3049 if test -n "$ac_ct_CC"; then
3050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3059 ac_cv_prog_ac_ct_CC="gcc"
3060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3070 if test -n "$ac_ct_CC"; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3072 $as_echo "$ac_ct_CC" >&6; }
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3078 if test "x$ac_ct_CC" = x; then
3081 case $cross_compiling:$ac_tool_warned in
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3085 ac_tool_warned=yes ;;
3093 if test -z "$CC"; then
3094 if test -n "$ac_tool_prefix"; then
3095 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3096 set dummy ${ac_tool_prefix}cc; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if test "${ac_cv_prog_CC+set}" = set; then :
3100 $as_echo_n "(cached) " >&6
3102 if test -n "$CC"; then
3103 ac_cv_prog_CC="$CC" # Let the user override the test.
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112 ac_cv_prog_CC="${ac_tool_prefix}cc"
3113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 if test -n "$CC"; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3125 $as_echo "$CC" >&6; }
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3134 if test -z "$CC"; then
3135 # Extract the first word of "cc", so it can be a program name with args.
3136 set dummy cc; ac_word=$2
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138 $as_echo_n "checking for $ac_word... " >&6; }
3139 if test "${ac_cv_prog_CC+set}" = set; then :
3140 $as_echo_n "(cached) " >&6
3142 if test -n "$CC"; then
3143 ac_cv_prog_CC="$CC" # Let the user override the test.
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 test -z "$as_dir" && as_dir=.
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3153 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3154 ac_prog_rejected=yes
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 if test $ac_prog_rejected = yes; then
3166 # We found a bogon in the path, so make sure we never use it.
3167 set dummy $ac_cv_prog_CC
3169 if test $# != 0; then
3170 # We chose a different compiler from the bogus one.
3171 # However, it has the same basename, so the bogon will be chosen
3172 # first if we set CC to just the basename; use the full file name.
3174 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3180 if test -n "$CC"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3182 $as_echo "$CC" >&6; }
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3190 if test -z "$CC"; then
3191 if test -n "$ac_tool_prefix"; then
3192 for ac_prog in cl.exe
3194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if test "${ac_cv_prog_CC+set}" = set; then :
3199 $as_echo_n "(cached) " >&6
3201 if test -n "$CC"; then
3202 ac_cv_prog_CC="$CC" # Let the user override the test.
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 test -z "$as_dir" && as_dir=.
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3211 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 if test -n "$CC"; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3224 $as_echo "$CC" >&6; }
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3231 test -n "$CC" && break
3234 if test -z "$CC"; then
3236 for ac_prog in cl.exe
3238 # Extract the first word of "$ac_prog", so it can be a program name with args.
3239 set dummy $ac_prog; ac_word=$2
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3241 $as_echo_n "checking for $ac_word... " >&6; }
3242 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3243 $as_echo_n "(cached) " >&6
3245 if test -n "$ac_ct_CC"; then
3246 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 test -z "$as_dir" && as_dir=.
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3255 ac_cv_prog_ac_ct_CC="$ac_prog"
3256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3266 if test -n "$ac_ct_CC"; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3268 $as_echo "$ac_ct_CC" >&6; }
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3275 test -n "$ac_ct_CC" && break
3278 if test "x$ac_ct_CC" = x; then
3281 case $cross_compiling:$ac_tool_warned in
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3285 ac_tool_warned=yes ;;
3294 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296 as_fn_error $? "no acceptable C compiler found in \$PATH
3297 See \`config.log' for more details" "$LINENO" 5 ; }
3299 # Provide some information about the compiler.
3300 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3303 for ac_option in --version -v -V -qversion; do
3304 { { ac_try="$ac_compiler $ac_option >&5"
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310 $as_echo "$ac_try_echo"; } >&5
3311 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3313 if test -s conftest.err; then
3315 ... rest of stderr output deleted ...
3316 10q' conftest.err >conftest.er1
3317 cat conftest.er1 >&5
3319 rm -f conftest.er1 conftest.err
3320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321 test $ac_status = 0; }
3324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325 /* end confdefs.h. */
3335 ac_clean_files_save=$ac_clean_files
3336 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3337 # Try to create an executable without -o first, disregard a.out.
3338 # It will help us diagnose broken compilers, and finding out an intuition
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3341 $as_echo_n "checking whether the C compiler works... " >&6; }
3342 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3344 # The possible output files:
3345 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3348 for ac_file in $ac_files
3351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3352 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3357 if { { ac_try="$ac_link_default"
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3363 $as_echo "$ac_try_echo"; } >&5
3364 (eval "$ac_link_default") 2>&5
3366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3367 test $ac_status = 0; }; then :
3368 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3369 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3370 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3371 # so that the user can short-circuit this test for compilers unknown to
3373 for ac_file in $ac_files ''
3375 test -f "$ac_file" || continue
3377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3380 # We found the default executable, but exeext='' is most
3384 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3386 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3388 # We set ac_cv_exeext here because the later test for it is not
3389 # safe: cross compilers may not add the suffix if given an `-o'
3390 # argument, so we may need to know it at that point already.
3391 # Even if this section looks crufty: it has the advantage of
3398 test "$ac_cv_exeext" = no && ac_cv_exeext=
3403 if test -z "$ac_file"; then :
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3406 $as_echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411 as_fn_error 77 "C compiler cannot create executables
3412 See \`config.log' for more details" "$LINENO" 5 ; }
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3415 $as_echo "yes" >&6; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3418 $as_echo_n "checking for C compiler default output file name... " >&6; }
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3420 $as_echo "$ac_file" >&6; }
3421 ac_exeext=$ac_cv_exeext
3423 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3424 ac_clean_files=$ac_clean_files_save
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3426 $as_echo_n "checking for suffix of executables... " >&6; }
3427 if { { ac_try="$ac_link"
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3433 $as_echo "$ac_try_echo"; } >&5
3434 (eval "$ac_link") 2>&5
3436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3437 test $ac_status = 0; }; then :
3438 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3439 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3440 # work properly (i.e., refer to `conftest.exe'), while it won't with
3442 for ac_file in conftest.exe conftest conftest.*; do
3443 test -f "$ac_file" || continue
3445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3446 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3455 See \`config.log' for more details" "$LINENO" 5 ; }
3457 rm -f conftest conftest$ac_cv_exeext
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3459 $as_echo "$ac_cv_exeext" >&6; }
3461 rm -f conftest.$ac_ext
3462 EXEEXT=$ac_cv_exeext
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3470 FILE *f = fopen ("conftest.out", "w");
3471 return ferror (f) || fclose (f) != 0;
3477 ac_clean_files="$ac_clean_files conftest.out"
3478 # Check that the compiler produces executables we can run. If not, either
3479 # the compiler is broken, or we cross compile.
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3481 $as_echo_n "checking whether we are cross compiling... " >&6; }
3482 if test "$cross_compiling" != yes; then
3483 { { ac_try="$ac_link"
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489 $as_echo "$ac_try_echo"; } >&5
3490 (eval "$ac_link") 2>&5
3492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3493 test $ac_status = 0; }
3494 if { ac_try='./conftest$ac_cv_exeext'
3495 { { case "(($ac_try" in
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3500 $as_echo "$ac_try_echo"; } >&5
3501 (eval "$ac_try") 2>&5
3503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504 test $ac_status = 0; }; }; then
3507 if test "$cross_compiling" = maybe; then
3510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3512 as_fn_error $? "cannot run C compiled programs.
3513 If you meant to cross compile, use \`--host'.
3514 See \`config.log' for more details" "$LINENO" 5 ; }
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3519 $as_echo "$cross_compiling" >&6; }
3521 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3522 ac_clean_files=$ac_clean_files_save
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3524 $as_echo_n "checking for suffix of object files... " >&6; }
3525 if test "${ac_cv_objext+set}" = set; then :
3526 $as_echo_n "(cached) " >&6
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3539 rm -f conftest.o conftest.obj
3540 if { { ac_try="$ac_compile"
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546 $as_echo "$ac_try_echo"; } >&5
3547 (eval "$ac_compile") 2>&5
3549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550 test $ac_status = 0; }; then :
3551 for ac_file in conftest.o conftest.obj conftest.*; do
3552 test -f "$ac_file" || continue;
3554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3555 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3560 $as_echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3565 as_fn_error $? "cannot compute suffix of object files: cannot compile
3566 See \`config.log' for more details" "$LINENO" 5 ; }
3568 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3571 $as_echo "$ac_cv_objext" >&6; }
3572 OBJEXT=$ac_cv_objext
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3575 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3576 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3577 $as_echo_n "(cached) " >&6
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h. */
3593 if ac_fn_c_try_compile "$LINENO"; then :
3598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3603 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3604 if test $ac_compiler_gnu = yes; then
3609 ac_test_CFLAGS=${CFLAGS+set}
3610 ac_save_CFLAGS=$CFLAGS
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3612 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3613 if test "${ac_cv_prog_cc_g+set}" = set; then :
3614 $as_echo_n "(cached) " >&6
3616 ac_save_c_werror_flag=$ac_c_werror_flag
3617 ac_c_werror_flag=yes
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3631 if ac_fn_c_try_compile "$LINENO"; then :
3635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h. */
3646 if ac_fn_c_try_compile "$LINENO"; then :
3649 ac_c_werror_flag=$ac_save_c_werror_flag
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h. */
3662 if ac_fn_c_try_compile "$LINENO"; then :
3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3670 ac_c_werror_flag=$ac_save_c_werror_flag
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3673 $as_echo "$ac_cv_prog_cc_g" >&6; }
3674 if test "$ac_test_CFLAGS" = set; then
3675 CFLAGS=$ac_save_CFLAGS
3676 elif test $ac_cv_prog_cc_g = yes; then
3677 if test "$GCC" = yes; then
3683 if test "$GCC" = yes; then
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3690 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3691 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3692 $as_echo_n "(cached) " >&6
3694 ac_cv_prog_cc_c89=no
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3700 #include <sys/types.h>
3701 #include <sys/stat.h>
3702 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3703 struct buf { int x; };
3704 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3705 static char *e (p, i)
3711 static char *f (char * (*g) (char **, int), char **p, ...)
3716 s = g (p, va_arg (v,int));
3721 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3722 function prototypes and stuff, but not '\xHH' hex character constants.
3723 These don't provoke an error unfortunately, instead are silently treated
3724 as 'x'. The following induces an error, until -std is added to get
3725 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3726 array size at least. It's necessary to write '\x00'==0 to get something
3727 that's true only with -std. */
3728 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3730 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3731 inside strings and character constants. */
3733 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3735 int test (int i, double x);
3736 struct s1 {int (*f) (int a);};
3737 struct s2 {int (*f) (double a);};
3738 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3744 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3749 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3750 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3752 CC="$ac_save_CC $ac_arg"
3753 if ac_fn_c_try_compile "$LINENO"; then :
3754 ac_cv_prog_cc_c89=$ac_arg
3756 rm -f core conftest.err conftest.$ac_objext
3757 test "x$ac_cv_prog_cc_c89" != "xno" && break
3759 rm -f conftest.$ac_ext
3764 case "x$ac_cv_prog_cc_c89" in
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3767 $as_echo "none needed" >&6; } ;;
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3770 $as_echo "unsupported" >&6; } ;;
3772 CC="$CC $ac_cv_prog_cc_c89"
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3774 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3776 if test "x$ac_cv_prog_cc_c89" != xno; then :
3781 ac_cpp='$CPP $CPPFLAGS'
3782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3786 depcc="$CC" am_compiler_list=
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3789 $as_echo_n "checking dependency style of $depcc... " >&6; }
3790 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3791 $as_echo_n "(cached) " >&6
3793 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3794 # We make a subdir and do the tests there. Otherwise we can end up
3795 # making bogus files that we don't know about and never remove. For
3796 # instance it was reported that on HP-UX the gcc test will end up
3797 # making a dummy file named `D' -- because `-MD' means `put the output
3800 # Copy depcomp to subdir because otherwise we won't find it if we're
3801 # using a relative directory.
3802 cp "$am_depcomp" conftest.dir
3804 # We will build objects and dependencies in a subdirectory because
3805 # it helps to detect inapplicable dependency modes. For instance
3806 # both Tru64's cc and ICC support -MD to output dependencies as a
3807 # side effect of compilation, but ICC will put the dependencies in
3808 # the current directory while Tru64 will put them in the object
3812 am_cv_CC_dependencies_compiler_type=none
3813 if test "$am_compiler_list" = ""; then
3814 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3817 case " $depcc " in #(
3818 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3821 for depmode in $am_compiler_list; do
3822 # Setup a source with many dependencies, because some compilers
3823 # like to wrap large dependency lists on column 80 (with \), and
3824 # we should not choose a depcomp mode which is confused by this.
3826 # We need to recreate these files for each test, as the compiler may
3827 # overwrite some of them when testing with obscure command lines.
3828 # This happens at least with the AIX C compiler.
3830 for i in 1 2 3 4 5 6; do
3831 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3832 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3833 # Solaris 8's {/usr,}/bin/sh.
3834 touch sub/conftst$i.h
3836 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3838 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3839 # mode. It turns out that the SunPro C++ compiler does not properly
3840 # handle `-M -o', and we need to detect this. Also, some Intel
3841 # versions had trouble with output in subdirs
3842 am__obj=sub/conftest.${OBJEXT-o}
3843 am__minus_obj="-o $am__obj"
3846 # This depmode causes a compiler race in universal mode.
3847 test "$am__universal" = false || continue
3850 # after this tag, mechanisms are not by side-effect, so they'll
3851 # only be used when explicitly requested
3852 if test "x$enable_dependency_tracking" = xyes; then
3858 msvisualcpp | msvcmsys)
3859 # This compiler won't grok `-c -o', but also, the minuso test has
3860 # not run yet. These depmodes are late enough in the game, and
3861 # so weak that their functioning should not be impacted.
3862 am__obj=conftest.${OBJEXT-o}
3867 if depmode=$depmode \
3868 source=sub/conftest.c object=$am__obj \
3869 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3870 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3871 >/dev/null 2>conftest.err &&
3872 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3873 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3874 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3875 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3876 # icc doesn't choke on unknown options, it will just issue warnings
3877 # or remarks (even with -Werror). So we grep stderr for any message
3878 # that says an option was ignored or not supported.
3879 # When given -MP, icc 7.0 and 7.1 complain thusly:
3880 # icc: Command line warning: ignoring option '-M'; no argument required
3881 # The diagnosis changed in icc 8.0:
3882 # icc: Command line remark: option '-MP' not supported
3883 if (grep 'ignoring option' conftest.err ||
3884 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3885 am_cv_CC_dependencies_compiler_type=$depmode
3894 am_cv_CC_dependencies_compiler_type=none
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3899 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3900 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3903 test "x$enable_dependency_tracking" != xno \
3904 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3906 am__fastdepCC_FALSE='#'
3908 am__fastdepCC_TRUE='#'
3909 am__fastdepCC_FALSE=
3914 # Check whether --enable-glibtest was given.
3915 if test "${enable_glibtest+set}" = set; then :
3916 enableval=$enable_glibtest;
3922 pkg_config_args=glib-2.0
3927 pkg_config_args="$pkg_config_args gmodule-2.0"
3930 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
3933 pkg_config_args="$pkg_config_args gobject-2.0"
3936 pkg_config_args="$pkg_config_args gthread-2.0"
3939 pkg_config_args="$pkg_config_args $module-2.0"
3950 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3951 if test -n "$ac_tool_prefix"; then
3952 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3953 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3955 $as_echo_n "checking for $ac_word... " >&6; }
3956 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
3957 $as_echo_n "(cached) " >&6
3961 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 test -z "$as_dir" && as_dir=.
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3971 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3983 if test -n "$PKG_CONFIG"; then
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3985 $as_echo "$PKG_CONFIG" >&6; }
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988 $as_echo "no" >&6; }
3993 if test -z "$ac_cv_path_PKG_CONFIG"; then
3994 ac_pt_PKG_CONFIG=$PKG_CONFIG
3995 # Extract the first word of "pkg-config", so it can be a program name with args.
3996 set dummy pkg-config; ac_word=$2
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3998 $as_echo_n "checking for $ac_word... " >&6; }
3999 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4000 $as_echo_n "(cached) " >&6
4002 case $ac_pt_PKG_CONFIG in
4004 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011 test -z "$as_dir" && as_dir=.
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4014 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4025 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4026 if test -n "$ac_pt_PKG_CONFIG"; then
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4028 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031 $as_echo "no" >&6; }
4034 if test "x$ac_pt_PKG_CONFIG" = x; then
4037 case $cross_compiling:$ac_tool_warned in
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4041 ac_tool_warned=yes ;;
4043 PKG_CONFIG=$ac_pt_PKG_CONFIG
4046 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4050 if test -n "$PKG_CONFIG"; then
4051 _pkg_min_version=0.16
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4053 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4054 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4056 $as_echo "yes" >&6; }
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 $as_echo "no" >&6; }
4066 if test "x$PKG_CONFIG" = x ; then
4071 min_glib_version=2.0.0
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
4073 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
4075 if test x$PKG_CONFIG != xno ; then
4076 ## don't try to run the test against uninstalled libtool libs
4077 if $PKG_CONFIG --uninstalled $pkg_config_args; then
4078 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
4082 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
4089 if test x"$no_glib" = x ; then
4090 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
4091 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
4092 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
4094 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
4095 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
4096 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
4097 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4098 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
4099 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4100 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
4101 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4102 if test "x$enable_glibtest" = "xyes" ; then
4103 ac_save_CFLAGS="$CFLAGS"
4104 ac_save_LIBS="$LIBS"
4105 CFLAGS="$CFLAGS $GLIB_CFLAGS"
4106 LIBS="$GLIB_LIBS $LIBS"
4108 if test "$cross_compiling" = yes; then :
4109 echo $ac_n "cross compiling; assumed OK... $ac_c"
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4121 unsigned int major, minor, micro;
4124 fclose (fopen ("conf.glibtest", "w"));
4126 /* HP/UX 9 (%@#!) writes to sscanf strings */
4127 tmp_version = g_strdup("$min_glib_version");
4128 if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, µ) != 3) {
4129 printf("%s, bad version string\n", "$min_glib_version");
4133 if ((glib_major_version != $glib_config_major_version) ||
4134 (glib_minor_version != $glib_config_minor_version) ||
4135 (glib_micro_version != $glib_config_micro_version))
4137 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
4138 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
4139 glib_major_version, glib_minor_version, glib_micro_version);
4140 printf ("*** was found! If pkg-config was correct, then it is best\n");
4141 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
4142 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
4143 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
4144 printf("*** required on your system.\n");
4145 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
4146 printf("*** to point to the correct configuration files\n");
4148 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
4149 (glib_minor_version != GLIB_MINOR_VERSION) ||
4150 (glib_micro_version != GLIB_MICRO_VERSION))
4152 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
4153 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
4154 printf("*** library (version %d.%d.%d)\n",
4155 glib_major_version, glib_minor_version, glib_micro_version);
4159 if ((glib_major_version > major) ||
4160 ((glib_major_version == major) && (glib_minor_version > minor)) ||
4161 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
4167 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
4168 glib_major_version, glib_minor_version, glib_micro_version);
4169 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
4170 major, minor, micro);
4171 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
4173 printf("*** If you have already installed a sufficiently new version, this error\n");
4174 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
4175 printf("*** being found. The easiest way to fix this is to remove the old version\n");
4176 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
4177 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
4178 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
4179 printf("*** so that the correct libraries are found at run-time))\n");
4186 if ac_fn_c_try_run "$LINENO"; then :
4191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4192 conftest.$ac_objext conftest.beam conftest.$ac_ext
4195 CFLAGS="$ac_save_CFLAGS"
4196 LIBS="$ac_save_LIBS"
4199 if test "x$no_glib" = x ; then
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
4201 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205 $as_echo "no" >&6; }
4206 if test "$PKG_CONFIG" = "no" ; then
4207 echo "*** A new enough version of pkg-config was not found."
4208 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
4210 if test -f conf.glibtest ; then
4213 echo "*** Could not run GLIB test program, checking why..."
4214 ac_save_CFLAGS="$CFLAGS"
4215 ac_save_LIBS="$LIBS"
4216 CFLAGS="$CFLAGS $GLIB_CFLAGS"
4217 LIBS="$LIBS $GLIB_LIBS"
4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h. */
4227 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
4232 if ac_fn_c_try_link "$LINENO"; then :
4233 echo "*** The test program compiled, but did not run. This usually means"
4234 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
4235 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
4236 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
4237 echo "*** to the installed location Also, make sure you have run ldconfig if that"
4238 echo "*** is required on your system"
4240 echo "*** If you have an old version installed, it is best to remove it, although"
4241 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
4243 echo "*** The test program failed to compile or link. See the file config.log for the"
4244 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
4246 rm -f core conftest.err conftest.$ac_objext \
4247 conftest$ac_exeext conftest.$ac_ext
4248 CFLAGS="$ac_save_CFLAGS"
4249 LIBS="$ac_save_LIBS"
4266 if test "x$CC" != xcc; then
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4268 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4271 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4273 set dummy $CC; ac_cc=`$as_echo "$2" |
4274 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4275 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
4276 $as_echo_n "(cached) " >&6
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4289 # Make sure it works both with $CC and with simple cc.
4290 # We do the test twice because some compilers refuse to overwrite an
4291 # existing .o file with -o, though they will create one.
4292 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4294 if { { case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4299 $as_echo "$ac_try_echo"; } >&5
4300 (eval "$ac_try") 2>&5
4302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4303 test $ac_status = 0; } &&
4304 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4309 $as_echo "$ac_try_echo"; } >&5
4310 (eval "$ac_try") 2>&5
4312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4313 test $ac_status = 0; };
4315 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4316 if test "x$CC" != xcc; then
4317 # Test first that cc exists at all.
4318 if { ac_try='cc -c conftest.$ac_ext >&5'
4319 { { case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324 $as_echo "$ac_try_echo"; } >&5
4325 (eval "$ac_try") 2>&5
4327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4328 test $ac_status = 0; }; }; then
4329 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4331 if { { case "(($ac_try" in
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4336 $as_echo "$ac_try_echo"; } >&5
4337 (eval "$ac_try") 2>&5
4339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4340 test $ac_status = 0; } &&
4341 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4346 $as_echo "$ac_try_echo"; } >&5
4347 (eval "$ac_try") 2>&5
4349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4350 test $ac_status = 0; };
4355 # cc exists but doesn't like -o.
4356 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4361 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4363 rm -f core conftest*
4366 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4368 $as_echo "yes" >&6; }
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4371 $as_echo "no" >&6; }
4373 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4377 # FIXME: we rely on the cache variable name because
4378 # there is no other way.
4380 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4381 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4382 if test "$am_t" != yes; then
4383 # Losing compiler, so override with the script.
4384 # FIXME: It is wrong to rewrite CC.
4385 # But if we don't then we get into trouble of one sort or another.
4386 # A longer-term fix would be to have automake use am__CC in this case,
4387 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4388 CC="$am_aux_dir/compile $CC"
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4395 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4400 macro_version='2.2.6b'
4401 macro_revision='1.3017'
4415 ltmain="$ac_aux_dir/ltmain.sh"
4417 # Make sure we can run config.sub.
4418 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4419 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4422 $as_echo_n "checking build system type... " >&6; }
4423 if test "${ac_cv_build+set}" = set; then :
4424 $as_echo_n "(cached) " >&6
4426 ac_build_alias=$build_alias
4427 test "x$ac_build_alias" = x &&
4428 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4429 test "x$ac_build_alias" = x &&
4430 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4431 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4432 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4436 $as_echo "$ac_cv_build" >&6; }
4437 case $ac_cv_build in
4439 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
4442 ac_save_IFS=$IFS; IFS='-'
4448 # Remember, the first character of IFS is used to create $*,
4449 # except with old shells:
4452 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4456 $as_echo_n "checking host system type... " >&6; }
4457 if test "${ac_cv_host+set}" = set; then :
4458 $as_echo_n "(cached) " >&6
4460 if test "x$host_alias" = x; then
4461 ac_cv_host=$ac_cv_build
4463 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4464 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4469 $as_echo "$ac_cv_host" >&6; }
4472 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
4475 ac_save_IFS=$IFS; IFS='-'
4481 # Remember, the first character of IFS is used to create $*,
4482 # except with old shells:
4485 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4489 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4490 if test "${ac_cv_path_SED+set}" = set; then :
4491 $as_echo_n "(cached) " >&6
4493 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4494 for ac_i in 1 2 3 4 5 6 7; do
4495 ac_script="$ac_script$as_nl$ac_script"
4497 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4498 { ac_script=; unset ac_script;}
4499 if test -z "$SED"; then
4500 ac_path_SED_found=false
4501 # Loop through the user's path and test for each of PROGNAME-LIST
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 test -z "$as_dir" && as_dir=.
4507 for ac_prog in sed gsed; do
4508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4510 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4511 # Check for GNU ac_path_SED and select it if it is found.
4512 # Check for GNU $ac_path_SED
4513 case `"$ac_path_SED" --version 2>&1` in
4515 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4518 $as_echo_n 0123456789 >"conftest.in"
4521 cat "conftest.in" "conftest.in" >"conftest.tmp"
4522 mv "conftest.tmp" "conftest.in"
4523 cp "conftest.in" "conftest.nl"
4524 $as_echo '' >> "conftest.nl"
4525 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4526 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4527 as_fn_arith $ac_count + 1 && ac_count=$as_val
4528 if test $ac_count -gt ${ac_path_SED_max-0}; then
4529 # Best one so far, save it but keep looking for a better one
4530 ac_cv_path_SED="$ac_path_SED"
4531 ac_path_SED_max=$ac_count
4533 # 10*(2^10) chars as input seems more than enough
4534 test $ac_count -gt 10 && break
4536 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4539 $ac_path_SED_found && break 3
4544 if test -z "$ac_cv_path_SED"; then
4545 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4553 $as_echo "$ac_cv_path_SED" >&6; }
4554 SED="$ac_cv_path_SED"
4557 test -z "$SED" && SED=sed
4558 Xsed="$SED -e 1s/^X//"
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4571 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4572 if test "${ac_cv_path_GREP+set}" = set; then :
4573 $as_echo_n "(cached) " >&6
4575 if test -z "$GREP"; then
4576 ac_path_GREP_found=false
4577 # Loop through the user's path and test for each of PROGNAME-LIST
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4582 test -z "$as_dir" && as_dir=.
4583 for ac_prog in grep ggrep; do
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4586 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4587 # Check for GNU ac_path_GREP and select it if it is found.
4588 # Check for GNU $ac_path_GREP
4589 case `"$ac_path_GREP" --version 2>&1` in
4591 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4594 $as_echo_n 0123456789 >"conftest.in"
4597 cat "conftest.in" "conftest.in" >"conftest.tmp"
4598 mv "conftest.tmp" "conftest.in"
4599 cp "conftest.in" "conftest.nl"
4600 $as_echo 'GREP' >> "conftest.nl"
4601 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4602 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4603 as_fn_arith $ac_count + 1 && ac_count=$as_val
4604 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4605 # Best one so far, save it but keep looking for a better one
4606 ac_cv_path_GREP="$ac_path_GREP"
4607 ac_path_GREP_max=$ac_count
4609 # 10*(2^10) chars as input seems more than enough
4610 test $ac_count -gt 10 && break
4612 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4615 $ac_path_GREP_found && break 3
4620 if test -z "$ac_cv_path_GREP"; then
4621 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4624 ac_cv_path_GREP=$GREP
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4629 $as_echo "$ac_cv_path_GREP" >&6; }
4630 GREP="$ac_cv_path_GREP"
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4634 $as_echo_n "checking for egrep... " >&6; }
4635 if test "${ac_cv_path_EGREP+set}" = set; then :
4636 $as_echo_n "(cached) " >&6
4638 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4639 then ac_cv_path_EGREP="$GREP -E"
4641 if test -z "$EGREP"; then
4642 ac_path_EGREP_found=false
4643 # Loop through the user's path and test for each of PROGNAME-LIST
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4648 test -z "$as_dir" && as_dir=.
4649 for ac_prog in egrep; do
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4652 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4653 # Check for GNU ac_path_EGREP and select it if it is found.
4654 # Check for GNU $ac_path_EGREP
4655 case `"$ac_path_EGREP" --version 2>&1` in
4657 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4660 $as_echo_n 0123456789 >"conftest.in"
4663 cat "conftest.in" "conftest.in" >"conftest.tmp"
4664 mv "conftest.tmp" "conftest.in"
4665 cp "conftest.in" "conftest.nl"
4666 $as_echo 'EGREP' >> "conftest.nl"
4667 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4668 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4669 as_fn_arith $ac_count + 1 && ac_count=$as_val
4670 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4671 # Best one so far, save it but keep looking for a better one
4672 ac_cv_path_EGREP="$ac_path_EGREP"
4673 ac_path_EGREP_max=$ac_count
4675 # 10*(2^10) chars as input seems more than enough
4676 test $ac_count -gt 10 && break
4678 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4681 $ac_path_EGREP_found && break 3
4686 if test -z "$ac_cv_path_EGREP"; then
4687 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4690 ac_cv_path_EGREP=$EGREP
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4696 $as_echo "$ac_cv_path_EGREP" >&6; }
4697 EGREP="$ac_cv_path_EGREP"
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4701 $as_echo_n "checking for fgrep... " >&6; }
4702 if test "${ac_cv_path_FGREP+set}" = set; then :
4703 $as_echo_n "(cached) " >&6
4705 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4706 then ac_cv_path_FGREP="$GREP -F"
4708 if test -z "$FGREP"; then
4709 ac_path_FGREP_found=false
4710 # Loop through the user's path and test for each of PROGNAME-LIST
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4715 test -z "$as_dir" && as_dir=.
4716 for ac_prog in fgrep; do
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4719 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4720 # Check for GNU ac_path_FGREP and select it if it is found.
4721 # Check for GNU $ac_path_FGREP
4722 case `"$ac_path_FGREP" --version 2>&1` in
4724 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4727 $as_echo_n 0123456789 >"conftest.in"
4730 cat "conftest.in" "conftest.in" >"conftest.tmp"
4731 mv "conftest.tmp" "conftest.in"
4732 cp "conftest.in" "conftest.nl"
4733 $as_echo 'FGREP' >> "conftest.nl"
4734 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4735 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4736 as_fn_arith $ac_count + 1 && ac_count=$as_val
4737 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4738 # Best one so far, save it but keep looking for a better one
4739 ac_cv_path_FGREP="$ac_path_FGREP"
4740 ac_path_FGREP_max=$ac_count
4742 # 10*(2^10) chars as input seems more than enough
4743 test $ac_count -gt 10 && break
4745 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4748 $ac_path_FGREP_found && break 3
4753 if test -z "$ac_cv_path_FGREP"; then
4754 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4757 ac_cv_path_FGREP=$FGREP
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4763 $as_echo "$ac_cv_path_FGREP" >&6; }
4764 FGREP="$ac_cv_path_FGREP"
4767 test -z "$GREP" && GREP=grep
4787 # Check whether --with-gnu-ld was given.
4788 if test "${with_gnu_ld+set}" = set; then :
4789 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4795 if test "$GCC" = yes; then
4796 # Check if gcc -print-prog-name=ld gives a path.
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4798 $as_echo_n "checking for ld used by $CC... " >&6; }
4801 # gcc leaves a trailing carriage return which upsets mingw
4802 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4804 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4807 # Accept absolute paths.
4809 re_direlt='/[^/][^/]*/\.\./'
4810 # Canonicalize the pathname of ld
4811 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4812 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4813 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4815 test -z "$LD" && LD="$ac_prog"
4818 # If it fails, then pretend we aren't using GCC.
4822 # If it is relative, then search for the first ld in PATH.
4826 elif test "$with_gnu_ld" = yes; then
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4828 $as_echo_n "checking for GNU ld... " >&6; }
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4831 $as_echo_n "checking for non-GNU ld... " >&6; }
4833 if test "${lt_cv_path_LD+set}" = set; then :
4834 $as_echo_n "(cached) " >&6
4836 if test -z "$LD"; then
4837 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4838 for ac_dir in $PATH; do
4840 test -z "$ac_dir" && ac_dir=.
4841 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4842 lt_cv_path_LD="$ac_dir/$ac_prog"
4843 # Check to see if the program is GNU ld. I'd rather use --version,
4844 # but apparently some variants of GNU ld only accept -v.
4845 # Break only if it was the GNU/non-GNU ld that we prefer.
4846 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4847 *GNU* | *'with BFD'*)
4848 test "$with_gnu_ld" != no && break
4851 test "$with_gnu_ld" != yes && break
4858 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4863 if test -n "$LD"; then
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4865 $as_echo "$LD" >&6; }
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4868 $as_echo "no" >&6; }
4870 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4872 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4873 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4874 $as_echo_n "(cached) " >&6
4876 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4877 case `$LD -v 2>&1 </dev/null` in
4878 *GNU* | *'with BFD'*)
4879 lt_cv_prog_gnu_ld=yes
4882 lt_cv_prog_gnu_ld=no
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4887 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4888 with_gnu_ld=$lt_cv_prog_gnu_ld
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4899 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4900 if test "${lt_cv_path_NM+set}" = set; then :
4901 $as_echo_n "(cached) " >&6
4903 if test -n "$NM"; then
4904 # Let the user override the test.
4907 lt_nm_to_check="${ac_tool_prefix}nm"
4908 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4909 lt_nm_to_check="$lt_nm_to_check nm"
4911 for lt_tmp_nm in $lt_nm_to_check; do
4912 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4913 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4915 test -z "$ac_dir" && ac_dir=.
4916 tmp_nm="$ac_dir/$lt_tmp_nm"
4917 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4918 # Check to see if the nm accepts a BSD-compat flag.
4919 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4920 # nm: unknown option "B" ignored
4921 # Tru64's nm complains that /dev/null is an invalid object file
4922 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4923 */dev/null* | *'Invalid file or object type'*)
4924 lt_cv_path_NM="$tmp_nm -B"
4928 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4930 lt_cv_path_NM="$tmp_nm -p"
4934 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4935 continue # so that we can try to find one that supports BSD flags
4944 : ${lt_cv_path_NM=no}
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4948 $as_echo "$lt_cv_path_NM" >&6; }
4949 if test "$lt_cv_path_NM" != "no"; then
4952 # Didn't find any BSD compatible name lister, look for dumpbin.
4953 if test -n "$ac_tool_prefix"; then
4954 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4956 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4957 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959 $as_echo_n "checking for $ac_word... " >&6; }
4960 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4961 $as_echo_n "(cached) " >&6
4963 if test -n "$DUMPBIN"; then
4964 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4973 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4983 DUMPBIN=$ac_cv_prog_DUMPBIN
4984 if test -n "$DUMPBIN"; then
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4986 $as_echo "$DUMPBIN" >&6; }
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
4993 test -n "$DUMPBIN" && break
4996 if test -z "$DUMPBIN"; then
4997 ac_ct_DUMPBIN=$DUMPBIN
4998 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5000 # Extract the first word of "$ac_prog", so it can be a program name with args.
5001 set dummy $ac_prog; ac_word=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5005 $as_echo_n "(cached) " >&6
5007 if test -n "$ac_ct_DUMPBIN"; then
5008 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5028 if test -n "$ac_ct_DUMPBIN"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5030 $as_echo "$ac_ct_DUMPBIN" >&6; }
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033 $as_echo "no" >&6; }
5037 test -n "$ac_ct_DUMPBIN" && break
5040 if test "x$ac_ct_DUMPBIN" = x; then
5043 case $cross_compiling:$ac_tool_warned in
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5047 ac_tool_warned=yes ;;
5049 DUMPBIN=$ac_ct_DUMPBIN
5054 if test "$DUMPBIN" != ":"; then
5058 test -z "$NM" && NM=nm
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5066 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5067 if test "${lt_cv_nm_interface+set}" = set; then :
5068 $as_echo_n "(cached) " >&6
5070 lt_cv_nm_interface="BSD nm"
5071 echo "int some_variable = 0;" > conftest.$ac_ext
5072 (eval echo "\"\$as_me:5072: $ac_compile\"" >&5)
5073 (eval "$ac_compile" 2>conftest.err)
5074 cat conftest.err >&5
5075 (eval echo "\"\$as_me:5075: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5076 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5077 cat conftest.err >&5
5078 (eval echo "\"\$as_me:5078: output\"" >&5)
5079 cat conftest.out >&5
5080 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5081 lt_cv_nm_interface="MS dumpbin"
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5086 $as_echo "$lt_cv_nm_interface" >&6; }
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5089 $as_echo_n "checking whether ln -s works... " >&6; }
5091 if test "$LN_S" = "ln -s"; then
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5093 $as_echo "yes" >&6; }
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5096 $as_echo "no, using $LN_S" >&6; }
5099 # find the maximum length of command line arguments
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5101 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5102 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
5110 # On DJGPP, this test can blow up pretty badly due to problems in libc
5111 # (any single argument exceeding 2000 bytes causes a buffer overrun
5112 # during glob expansion). Even if it were fixed, the result of this
5113 # check would be larger than it should be.
5114 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5118 # Under GNU Hurd, this test is not required because there is
5119 # no limit to the length of command line arguments.
5120 # Libtool will interpret -1 as no limit whatsoever
5121 lt_cv_sys_max_cmd_len=-1;
5124 cygwin* | mingw* | cegcc*)
5125 # On Win9x/ME, this test blows up -- it succeeds, but takes
5126 # about 5 minutes as the teststring grows exponentially.
5127 # Worse, since 9x/ME are not pre-emptively multitasking,
5128 # you end up with a "frozen" computer, even though with patience
5129 # the test eventually succeeds (with a max line length of 256k).
5130 # Instead, let's just punt: use the minimum linelength reported by
5131 # all of the supported platforms: 8192 (on NT/2K/XP).
5132 lt_cv_sys_max_cmd_len=8192;
5136 # On AmigaOS with pdksh, this test takes hours, literally.
5137 # So we just punt and use a minimum line length of 8192.
5138 lt_cv_sys_max_cmd_len=8192;
5141 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5142 # This has been around since 386BSD, at least. Likely further.
5143 if test -x /sbin/sysctl; then
5144 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5145 elif test -x /usr/sbin/sysctl; then
5146 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5148 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5150 # And add a safety zone
5151 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5152 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5156 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5157 lt_cv_sys_max_cmd_len=196608
5161 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5162 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5163 # nice to cause kernel panics so lets avoid the loop below.
5164 # First set a reasonable default.
5165 lt_cv_sys_max_cmd_len=16384
5167 if test -x /sbin/sysconfig; then
5168 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5169 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5174 lt_cv_sys_max_cmd_len=102400
5176 sysv5* | sco5v6* | sysv4.2uw2*)
5177 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5178 if test -n "$kargmax"; then
5179 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5181 lt_cv_sys_max_cmd_len=32768
5185 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5186 if test -n "$lt_cv_sys_max_cmd_len"; then
5187 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5188 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5190 # Make teststring a little bigger before we do anything with it.
5191 # a 1K string should be a reasonable start.
5192 for i in 1 2 3 4 5 6 7 8 ; do
5193 teststring=$teststring$teststring
5195 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5196 # If test is not a shell built-in, we'll probably end up computing a
5197 # maximum length that is only half of the actual maximum length, but
5199 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5200 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5201 test $i != 17 # 1/2 MB should be enough
5204 teststring=$teststring$teststring
5206 # Only check the string length outside the loop.
5207 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5209 # Add a significant safety factor because C++ compilers can tack on
5210 # massive amounts of additional arguments before passing them to the
5211 # linker. It appears as though 1/2 is a usable value.
5212 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5219 if test -n $lt_cv_sys_max_cmd_len ; then
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5221 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5224 $as_echo "none" >&6; }
5226 max_cmd_len=$lt_cv_sys_max_cmd_len
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5238 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5239 # Try some XSI features
5242 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5244 && eval 'test $(( 1 + 1 )) -eq 2 \
5245 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5248 $as_echo "$xsi_shell" >&6; }
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5252 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5254 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5256 && lt_shell_append=yes
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5258 $as_echo "$lt_shell_append" >&6; }
5261 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5271 # test EBCDIC or ASCII
5272 case `echo X|tr X '\101'` in
5273 A) # ASCII based system
5274 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5275 lt_SP2NL='tr \040 \012'
5276 lt_NL2SP='tr \015\012 \040\040'
5278 *) # EBCDIC based system
5279 lt_SP2NL='tr \100 \n'
5280 lt_NL2SP='tr \r\n \100\100'
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5293 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5294 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5295 $as_echo_n "(cached) " >&6
5297 lt_cv_ld_reload_flag='-r'
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5300 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5301 reload_flag=$lt_cv_ld_reload_flag
5302 case $reload_flag in
5304 *) reload_flag=" $reload_flag" ;;
5306 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5309 if test "$GCC" = yes; then
5310 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5312 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5325 if test -n "$ac_tool_prefix"; then
5326 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5327 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5329 $as_echo_n "checking for $ac_word... " >&6; }
5330 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5331 $as_echo_n "(cached) " >&6
5333 if test -n "$OBJDUMP"; then
5334 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 test -z "$as_dir" && as_dir=.
5341 for ac_exec_ext in '' $ac_executable_extensions; do
5342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5343 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 OBJDUMP=$ac_cv_prog_OBJDUMP
5354 if test -n "$OBJDUMP"; then
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5356 $as_echo "$OBJDUMP" >&6; }
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }
5364 if test -z "$ac_cv_prog_OBJDUMP"; then
5365 ac_ct_OBJDUMP=$OBJDUMP
5366 # Extract the first word of "objdump", so it can be a program name with args.
5367 set dummy objdump; ac_word=$2
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5369 $as_echo_n "checking for $ac_word... " >&6; }
5370 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5371 $as_echo_n "(cached) " >&6
5373 if test -n "$ac_ct_OBJDUMP"; then
5374 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 test -z "$as_dir" && as_dir=.
5381 for ac_exec_ext in '' $ac_executable_extensions; do
5382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5383 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5393 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5394 if test -n "$ac_ct_OBJDUMP"; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5396 $as_echo "$ac_ct_OBJDUMP" >&6; }
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5402 if test "x$ac_ct_OBJDUMP" = x; then
5405 case $cross_compiling:$ac_tool_warned in
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5409 ac_tool_warned=yes ;;
5411 OBJDUMP=$ac_ct_OBJDUMP
5414 OBJDUMP="$ac_cv_prog_OBJDUMP"
5417 test -z "$OBJDUMP" && OBJDUMP=objdump
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5428 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5429 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5430 $as_echo_n "(cached) " >&6
5432 lt_cv_file_magic_cmd='$MAGIC_CMD'
5433 lt_cv_file_magic_test_file=
5434 lt_cv_deplibs_check_method='unknown'
5435 # Need to set the preceding variable on all platforms that support
5436 # interlibrary dependencies.
5437 # 'none' -- dependencies not supported.
5438 # `unknown' -- same as none, but documents that we really don't know.
5439 # 'pass_all' -- all dependencies passed with no checks.
5440 # 'test_compile' -- check by making test program.
5441 # 'file_magic [[regex]]' -- check by looking for files in library path
5442 # which responds to the $file_magic_cmd with a given extended regex.
5443 # If you have `file' or equivalent on your system and you're not sure
5444 # whether `pass_all' will *always* work, you probably want this one.
5448 lt_cv_deplibs_check_method=pass_all
5452 lt_cv_deplibs_check_method=pass_all
5456 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5457 lt_cv_file_magic_cmd='/usr/bin/file -L'
5458 lt_cv_file_magic_test_file=/shlib/libc.so
5462 # func_win32_libid is a shell function defined in ltmain.sh
5463 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5464 lt_cv_file_magic_cmd='func_win32_libid'
5468 # Base MSYS/MinGW do not provide the 'file' command needed by
5469 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5470 # unless we find 'file', for example because we are cross-compiling.
5471 if ( file / ) >/dev/null 2>&1; then
5472 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5473 lt_cv_file_magic_cmd='func_win32_libid'
5475 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5476 lt_cv_file_magic_cmd='$OBJDUMP -f'
5481 # use the weaker test based on 'objdump'. See mingw*.
5482 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5483 lt_cv_file_magic_cmd='$OBJDUMP -f'
5486 darwin* | rhapsody*)
5487 lt_cv_deplibs_check_method=pass_all
5490 freebsd* | dragonfly*)
5491 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5494 # Not sure whether the presence of OpenBSD here was a mistake.
5495 # Let's accept both of them until this is cleared up.
5496 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5497 lt_cv_file_magic_cmd=/usr/bin/file
5498 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5502 lt_cv_deplibs_check_method=pass_all
5507 lt_cv_deplibs_check_method=pass_all
5510 hpux10.20* | hpux11*)
5511 lt_cv_file_magic_cmd=/usr/bin/file
5514 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5515 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5518 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5519 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5522 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5523 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5529 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5530 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5533 irix5* | irix6* | nonstopux*)
5535 *-32|*"-32 ") libmagic=32-bit;;
5536 *-n32|*"-n32 ") libmagic=N32;;
5537 *-64|*"-64 ") libmagic=64-bit;;
5538 *) libmagic=never-match;;
5540 lt_cv_deplibs_check_method=pass_all
5543 # This must be Linux ELF.
5544 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5545 lt_cv_deplibs_check_method=pass_all
5548 netbsd* | netbsdelf*-gnu)
5549 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5550 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5557 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5558 lt_cv_file_magic_cmd=/usr/bin/file
5559 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5563 lt_cv_deplibs_check_method=pass_all
5567 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5568 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5574 osf3* | osf4* | osf5*)
5575 lt_cv_deplibs_check_method=pass_all
5579 lt_cv_deplibs_check_method=pass_all
5583 lt_cv_deplibs_check_method=pass_all
5586 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5587 lt_cv_deplibs_check_method=pass_all
5591 case $host_vendor in
5593 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]'
5594 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5597 lt_cv_deplibs_check_method=pass_all
5600 lt_cv_file_magic_cmd='/bin/file'
5601 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5604 lt_cv_file_magic_cmd='/bin/file'
5605 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5606 lt_cv_file_magic_test_file=/lib/libc.so
5609 lt_cv_deplibs_check_method=pass_all
5612 lt_cv_deplibs_check_method=pass_all
5618 lt_cv_deplibs_check_method=pass_all
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5624 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5625 file_magic_cmd=$lt_cv_file_magic_cmd
5626 deplibs_check_method=$lt_cv_deplibs_check_method
5627 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5640 if test -n "$ac_tool_prefix"; then
5641 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5642 set dummy ${ac_tool_prefix}ar; ac_word=$2
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644 $as_echo_n "checking for $ac_word... " >&6; }
5645 if test "${ac_cv_prog_AR+set}" = set; then :
5646 $as_echo_n "(cached) " >&6
5648 if test -n "$AR"; then
5649 ac_cv_prog_AR="$AR" # Let the user override the test.
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 test -z "$as_dir" && as_dir=.
5656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5658 ac_cv_prog_AR="${ac_tool_prefix}ar"
5659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5669 if test -n "$AR"; then
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5671 $as_echo "$AR" >&6; }
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674 $as_echo "no" >&6; }
5679 if test -z "$ac_cv_prog_AR"; then
5681 # Extract the first word of "ar", so it can be a program name with args.
5682 set dummy ar; ac_word=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5686 $as_echo_n "(cached) " >&6
5688 if test -n "$ac_ct_AR"; then
5689 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 test -z "$as_dir" && as_dir=.
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5698 ac_cv_prog_ac_ct_AR="ar"
5699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5708 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5709 if test -n "$ac_ct_AR"; then
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5711 $as_echo "$ac_ct_AR" >&6; }
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 $as_echo "no" >&6; }
5717 if test "x$ac_ct_AR" = x; then
5720 case $cross_compiling:$ac_tool_warned in
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5724 ac_tool_warned=yes ;;
5732 test -z "$AR" && AR=ar
5733 test -z "$AR_FLAGS" && AR_FLAGS=cru
5745 if test -n "$ac_tool_prefix"; then
5746 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5747 set dummy ${ac_tool_prefix}strip; ac_word=$2
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5749 $as_echo_n "checking for $ac_word... " >&6; }
5750 if test "${ac_cv_prog_STRIP+set}" = set; then :
5751 $as_echo_n "(cached) " >&6
5753 if test -n "$STRIP"; then
5754 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760 test -z "$as_dir" && as_dir=.
5761 for ac_exec_ext in '' $ac_executable_extensions; do
5762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5763 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5773 STRIP=$ac_cv_prog_STRIP
5774 if test -n "$STRIP"; then
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5776 $as_echo "$STRIP" >&6; }
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779 $as_echo "no" >&6; }
5784 if test -z "$ac_cv_prog_STRIP"; then
5786 # Extract the first word of "strip", so it can be a program name with args.
5787 set dummy strip; ac_word=$2
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5789 $as_echo_n "checking for $ac_word... " >&6; }
5790 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5791 $as_echo_n "(cached) " >&6
5793 if test -n "$ac_ct_STRIP"; then
5794 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5803 ac_cv_prog_ac_ct_STRIP="strip"
5804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5814 if test -n "$ac_ct_STRIP"; then
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5816 $as_echo "$ac_ct_STRIP" >&6; }
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 $as_echo "no" >&6; }
5822 if test "x$ac_ct_STRIP" = x; then
5825 case $cross_compiling:$ac_tool_warned in
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5829 ac_tool_warned=yes ;;
5834 STRIP="$ac_cv_prog_STRIP"
5837 test -z "$STRIP" && STRIP=:
5844 if test -n "$ac_tool_prefix"; then
5845 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5846 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848 $as_echo_n "checking for $ac_word... " >&6; }
5849 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5850 $as_echo_n "(cached) " >&6
5852 if test -n "$RANLIB"; then
5853 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5862 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 RANLIB=$ac_cv_prog_RANLIB
5873 if test -n "$RANLIB"; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5875 $as_echo "$RANLIB" >&6; }
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5883 if test -z "$ac_cv_prog_RANLIB"; then
5884 ac_ct_RANLIB=$RANLIB
5885 # Extract the first word of "ranlib", so it can be a program name with args.
5886 set dummy ranlib; ac_word=$2
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888 $as_echo_n "checking for $ac_word... " >&6; }
5889 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5890 $as_echo_n "(cached) " >&6
5892 if test -n "$ac_ct_RANLIB"; then
5893 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5902 ac_cv_prog_ac_ct_RANLIB="ranlib"
5903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5912 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5913 if test -n "$ac_ct_RANLIB"; then
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5915 $as_echo "$ac_ct_RANLIB" >&6; }
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918 $as_echo "no" >&6; }
5921 if test "x$ac_ct_RANLIB" = x; then
5924 case $cross_compiling:$ac_tool_warned in
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5928 ac_tool_warned=yes ;;
5930 RANLIB=$ac_ct_RANLIB
5933 RANLIB="$ac_cv_prog_RANLIB"
5936 test -z "$RANLIB" && RANLIB=:
5943 # Determine commands to create old-style static archives.
5944 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5945 old_postinstall_cmds='chmod 644 $oldlib'
5946 old_postuninstall_cmds=
5948 if test -n "$RANLIB"; then
5951 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5954 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5957 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5993 # If no C compiler was specified, use CC.
5996 # If no C compiler flags were specified, use CFLAGS.
5997 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5999 # Allow CC to be a program name with arguments.
6003 # Check for command to grab the raw symbol name followed by C symbol from nm.
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6005 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6006 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6007 $as_echo_n "(cached) " >&6
6010 # These are sane defaults that work on at least a few old systems.
6011 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6013 # Character class describing NM global symbol codes.
6014 symcode='[BCDEGRST]'
6016 # Regexp to match symbols that can be accessed directly from C.
6017 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6019 # Define system-specific variables.
6024 cygwin* | mingw* | pw32* | cegcc*)
6025 symcode='[ABCDGISTW]'
6028 if test "$host_cpu" = ia64; then
6029 symcode='[ABCDEGRST]'
6033 symcode='[BCDEGRST]'
6036 symcode='[BCDEGQRST]'
6047 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6055 # If we're using GNU nm, then use its standard symbol codes.
6056 case `$NM -V 2>&1` in
6057 *GNU* | *'with BFD'*)
6058 symcode='[ABCDGIRSTW]' ;;
6061 # Transform an extracted symbol line into a proper C declaration.
6062 # Some systems (esp. on ia64) link data and code symbols differently,
6063 # so use this general approach.
6064 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6066 # Transform an extracted symbol line into symbol name and symbol address
6067 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6068 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6070 # Handle CRLF in mingw tool chain
6074 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6078 # Try without a prefix underscore, then with it.
6079 for ac_symprfx in "" "_"; do
6081 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6082 symxfrm="\\1 $ac_symprfx\\2 \\2"
6084 # Write the raw and C identifiers.
6085 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6086 # Fake it for dumpbin and say T for any non-static function
6087 # and D for any global variable.
6088 # Also find C++ and __fastcall symbols from MSVC++,
6089 # which start with @ or ?.
6090 lt_cv_sys_global_symbol_pipe="$AWK '"\
6091 " {last_section=section; section=\$ 3};"\
6092 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6093 " \$ 0!~/External *\|/{next};"\
6094 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6095 " {if(hide[section]) next};"\
6096 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6097 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6098 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6099 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6100 " ' prfx=^$ac_symprfx"
6102 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6105 # Check to see that the pipe works correctly.
6109 cat > conftest.$ac_ext <<_LT_EOF
6114 void nm_test_func(void);
6115 void nm_test_func(void){}
6119 int main(){nm_test_var='a';nm_test_func();return(0);}
6122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6123 (eval $ac_compile) 2>&5
6125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6126 test $ac_status = 0; }; then
6127 # Now try to grab the symbols.
6129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6130 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6133 test $ac_status = 0; } && test -s "$nlist"; then
6134 # Try sorting and uniquifying the output.
6135 if sort "$nlist" | uniq > "$nlist"T; then
6136 mv -f "$nlist"T "$nlist"
6141 # Make sure that we snagged all the symbols we need.
6142 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6143 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6144 cat <<_LT_EOF > conftest.$ac_ext
6150 # Now generate the symbol file.
6151 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6153 cat <<_LT_EOF >> conftest.$ac_ext
6155 /* The mapping between symbol names and symbols. */
6160 lt__PROGRAM__LTX_preloaded_symbols[] =
6162 { "@PROGRAM@", (void *) 0 },
6164 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6165 cat <<\_LT_EOF >> conftest.$ac_ext
6169 /* This works around a problem in FreeBSD linker */
6170 #ifdef FREEBSD_WORKAROUND
6171 static const void *lt_preloaded_setup() {
6172 return lt__PROGRAM__LTX_preloaded_symbols;
6180 # Now try linking the two files.
6181 mv conftest.$ac_objext conftstm.$ac_objext
6182 lt_save_LIBS="$LIBS"
6183 lt_save_CFLAGS="$CFLAGS"
6184 LIBS="conftstm.$ac_objext"
6185 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6187 (eval $ac_link) 2>&5
6189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6190 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6193 LIBS="$lt_save_LIBS"
6194 CFLAGS="$lt_save_CFLAGS"
6196 echo "cannot find nm_test_func in $nlist" >&5
6199 echo "cannot find nm_test_var in $nlist" >&5
6202 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6205 echo "$progname: failed program was:" >&5
6206 cat conftest.$ac_ext >&5
6208 rm -rf conftest* conftst*
6210 # Do not use the global_symbol_pipe unless it works.
6211 if test "$pipe_works" = yes; then
6214 lt_cv_sys_global_symbol_pipe=
6220 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6221 lt_cv_sys_global_symbol_to_cdecl=
6223 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6225 $as_echo "failed" >&6; }
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6228 $as_echo "ok" >&6; }
6252 # Check whether --enable-libtool-lock was given.
6253 if test "${enable_libtool_lock+set}" = set; then :
6254 enableval=$enable_libtool_lock;
6257 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6259 # Some flags need to be propagated to the compiler or linker for good
6263 # Find out which ABI we are using.
6264 echo 'int i;' > conftest.$ac_ext
6265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6266 (eval $ac_compile) 2>&5
6268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6269 test $ac_status = 0; }; then
6270 case `/usr/bin/file conftest.$ac_objext` in
6282 # Find out which ABI we are using.
6283 echo '#line 6283 "configure"' > conftest.$ac_ext
6284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6285 (eval $ac_compile) 2>&5
6287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6288 test $ac_status = 0; }; then
6289 if test "$lt_cv_prog_gnu_ld" = yes; then
6290 case `/usr/bin/file conftest.$ac_objext` in
6292 LD="${LD-ld} -melf32bsmip"
6295 LD="${LD-ld} -melf32bmipn32"
6298 LD="${LD-ld} -melf64bmip"
6302 case `/usr/bin/file conftest.$ac_objext` in
6318 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6319 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6320 # Find out which ABI we are using.
6321 echo 'int i;' > conftest.$ac_ext
6322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6323 (eval $ac_compile) 2>&5
6325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6326 test $ac_status = 0; }; then
6327 case `/usr/bin/file conftest.o` in
6330 x86_64-*kfreebsd*-gnu)
6331 LD="${LD-ld} -m elf_i386_fbsd"
6334 LD="${LD-ld} -m elf_i386"
6336 ppc64-*linux*|powerpc64-*linux*)
6337 LD="${LD-ld} -m elf32ppclinux"
6340 LD="${LD-ld} -m elf_s390"
6343 LD="${LD-ld} -m elf32_sparc"
6349 x86_64-*kfreebsd*-gnu)
6350 LD="${LD-ld} -m elf_x86_64_fbsd"
6353 LD="${LD-ld} -m elf_x86_64"
6355 ppc*-*linux*|powerpc*-*linux*)
6356 LD="${LD-ld} -m elf64ppc"
6358 s390*-*linux*|s390*-*tpf*)
6359 LD="${LD-ld} -m elf64_s390"
6362 LD="${LD-ld} -m elf64_sparc"
6372 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6373 SAVE_CFLAGS="$CFLAGS"
6374 CFLAGS="$CFLAGS -belf"
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6376 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6377 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6378 $as_echo_n "(cached) " >&6
6381 ac_cpp='$CPP $CPPFLAGS'
6382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387 /* end confdefs.h. */
6397 if ac_fn_c_try_link "$LINENO"; then :
6398 lt_cv_cc_needs_belf=yes
6400 lt_cv_cc_needs_belf=no
6402 rm -f core conftest.err conftest.$ac_objext \
6403 conftest$ac_exeext conftest.$ac_ext
6405 ac_cpp='$CPP $CPPFLAGS'
6406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6412 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6413 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6414 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6415 CFLAGS="$SAVE_CFLAGS"
6419 # Find out which ABI we are using.
6420 echo 'int i;' > conftest.$ac_ext
6421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6422 (eval $ac_compile) 2>&5
6424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6425 test $ac_status = 0; }; then
6426 case `/usr/bin/file conftest.o` in
6428 case $lt_cv_prog_gnu_ld in
6429 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6431 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6443 need_locks="$enable_libtool_lock"
6447 rhapsody* | darwin*)
6448 if test -n "$ac_tool_prefix"; then
6449 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6450 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452 $as_echo_n "checking for $ac_word... " >&6; }
6453 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6454 $as_echo_n "(cached) " >&6
6456 if test -n "$DSYMUTIL"; then
6457 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 test -z "$as_dir" && as_dir=.
6464 for ac_exec_ext in '' $ac_executable_extensions; do
6465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6466 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6477 if test -n "$DSYMUTIL"; then
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6479 $as_echo "$DSYMUTIL" >&6; }
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482 $as_echo "no" >&6; }
6487 if test -z "$ac_cv_prog_DSYMUTIL"; then
6488 ac_ct_DSYMUTIL=$DSYMUTIL
6489 # Extract the first word of "dsymutil", so it can be a program name with args.
6490 set dummy dsymutil; ac_word=$2
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492 $as_echo_n "checking for $ac_word... " >&6; }
6493 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6494 $as_echo_n "(cached) " >&6
6496 if test -n "$ac_ct_DSYMUTIL"; then
6497 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 test -z "$as_dir" && as_dir=.
6504 for ac_exec_ext in '' $ac_executable_extensions; do
6505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6506 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6517 if test -n "$ac_ct_DSYMUTIL"; then
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6519 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522 $as_echo "no" >&6; }
6525 if test "x$ac_ct_DSYMUTIL" = x; then
6528 case $cross_compiling:$ac_tool_warned in
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6532 ac_tool_warned=yes ;;
6534 DSYMUTIL=$ac_ct_DSYMUTIL
6537 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6540 if test -n "$ac_tool_prefix"; then
6541 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6542 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544 $as_echo_n "checking for $ac_word... " >&6; }
6545 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6546 $as_echo_n "(cached) " >&6
6548 if test -n "$NMEDIT"; then
6549 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 test -z "$as_dir" && as_dir=.
6556 for ac_exec_ext in '' $ac_executable_extensions; do
6557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6558 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6568 NMEDIT=$ac_cv_prog_NMEDIT
6569 if test -n "$NMEDIT"; then
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6571 $as_echo "$NMEDIT" >&6; }
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574 $as_echo "no" >&6; }
6579 if test -z "$ac_cv_prog_NMEDIT"; then
6580 ac_ct_NMEDIT=$NMEDIT
6581 # Extract the first word of "nmedit", so it can be a program name with args.
6582 set dummy nmedit; ac_word=$2
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6584 $as_echo_n "checking for $ac_word... " >&6; }
6585 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6586 $as_echo_n "(cached) " >&6
6588 if test -n "$ac_ct_NMEDIT"; then
6589 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 test -z "$as_dir" && as_dir=.
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6598 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6609 if test -n "$ac_ct_NMEDIT"; then
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6611 $as_echo "$ac_ct_NMEDIT" >&6; }
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614 $as_echo "no" >&6; }
6617 if test "x$ac_ct_NMEDIT" = x; then
6620 case $cross_compiling:$ac_tool_warned in
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6624 ac_tool_warned=yes ;;
6626 NMEDIT=$ac_ct_NMEDIT
6629 NMEDIT="$ac_cv_prog_NMEDIT"
6632 if test -n "$ac_tool_prefix"; then
6633 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6634 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636 $as_echo_n "checking for $ac_word... " >&6; }
6637 if test "${ac_cv_prog_LIPO+set}" = set; then :
6638 $as_echo_n "(cached) " >&6
6640 if test -n "$LIPO"; then
6641 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6650 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6660 LIPO=$ac_cv_prog_LIPO
6661 if test -n "$LIPO"; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6663 $as_echo "$LIPO" >&6; }
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6671 if test -z "$ac_cv_prog_LIPO"; then
6673 # Extract the first word of "lipo", so it can be a program name with args.
6674 set dummy lipo; ac_word=$2
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676 $as_echo_n "checking for $ac_word... " >&6; }
6677 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6678 $as_echo_n "(cached) " >&6
6680 if test -n "$ac_ct_LIPO"; then
6681 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690 ac_cv_prog_ac_ct_LIPO="lipo"
6691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6701 if test -n "$ac_ct_LIPO"; then
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6703 $as_echo "$ac_ct_LIPO" >&6; }
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 $as_echo "no" >&6; }
6709 if test "x$ac_ct_LIPO" = x; then
6712 case $cross_compiling:$ac_tool_warned in
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6716 ac_tool_warned=yes ;;
6721 LIPO="$ac_cv_prog_LIPO"
6724 if test -n "$ac_tool_prefix"; then
6725 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6726 set dummy ${ac_tool_prefix}otool; ac_word=$2
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728 $as_echo_n "checking for $ac_word... " >&6; }
6729 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6730 $as_echo_n "(cached) " >&6
6732 if test -n "$OTOOL"; then
6733 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6742 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 OTOOL=$ac_cv_prog_OTOOL
6753 if test -n "$OTOOL"; then
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6755 $as_echo "$OTOOL" >&6; }
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6763 if test -z "$ac_cv_prog_OTOOL"; then
6765 # Extract the first word of "otool", so it can be a program name with args.
6766 set dummy otool; ac_word=$2
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768 $as_echo_n "checking for $ac_word... " >&6; }
6769 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6770 $as_echo_n "(cached) " >&6
6772 if test -n "$ac_ct_OTOOL"; then
6773 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
6781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6782 ac_cv_prog_ac_ct_OTOOL="otool"
6783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6793 if test -n "$ac_ct_OTOOL"; then
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6795 $as_echo "$ac_ct_OTOOL" >&6; }
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798 $as_echo "no" >&6; }
6801 if test "x$ac_ct_OTOOL" = x; then
6804 case $cross_compiling:$ac_tool_warned in
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6808 ac_tool_warned=yes ;;
6813 OTOOL="$ac_cv_prog_OTOOL"
6816 if test -n "$ac_tool_prefix"; then
6817 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6818 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820 $as_echo_n "checking for $ac_word... " >&6; }
6821 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6822 $as_echo_n "(cached) " >&6
6824 if test -n "$OTOOL64"; then
6825 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6844 OTOOL64=$ac_cv_prog_OTOOL64
6845 if test -n "$OTOOL64"; then
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6847 $as_echo "$OTOOL64" >&6; }
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 $as_echo "no" >&6; }
6855 if test -z "$ac_cv_prog_OTOOL64"; then
6856 ac_ct_OTOOL64=$OTOOL64
6857 # Extract the first word of "otool64", so it can be a program name with args.
6858 set dummy otool64; ac_word=$2
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860 $as_echo_n "checking for $ac_word... " >&6; }
6861 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6862 $as_echo_n "(cached) " >&6
6864 if test -n "$ac_ct_OTOOL64"; then
6865 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6874 ac_cv_prog_ac_ct_OTOOL64="otool64"
6875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6884 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6885 if test -n "$ac_ct_OTOOL64"; then
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6887 $as_echo "$ac_ct_OTOOL64" >&6; }
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890 $as_echo "no" >&6; }
6893 if test "x$ac_ct_OTOOL64" = x; then
6896 case $cross_compiling:$ac_tool_warned in
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6900 ac_tool_warned=yes ;;
6902 OTOOL64=$ac_ct_OTOOL64
6905 OTOOL64="$ac_cv_prog_OTOOL64"
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6935 $as_echo_n "checking for -single_module linker flag... " >&6; }
6936 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6937 $as_echo_n "(cached) " >&6
6939 lt_cv_apple_cc_single_mod=no
6940 if test -z "${LT_MULTI_MODULE}"; then
6941 # By default we will add the -single_module flag. You can override
6942 # by either setting the environment variable LT_MULTI_MODULE
6943 # non-empty at configure time, or by adding -multi_module to the
6945 rm -rf libconftest.dylib*
6946 echo "int foo(void){return 1;}" > conftest.c
6947 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6948 -dynamiclib -Wl,-single_module conftest.c" >&5
6949 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6950 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6952 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6953 lt_cv_apple_cc_single_mod=yes
6955 cat conftest.err >&5
6957 rm -rf libconftest.dylib*
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6962 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6964 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6965 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6966 $as_echo_n "(cached) " >&6
6968 lt_cv_ld_exported_symbols_list=no
6969 save_LDFLAGS=$LDFLAGS
6970 echo "_main" > conftest.sym
6971 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6983 if ac_fn_c_try_link "$LINENO"; then :
6984 lt_cv_ld_exported_symbols_list=yes
6986 lt_cv_ld_exported_symbols_list=no
6988 rm -f core conftest.err conftest.$ac_objext \
6989 conftest$ac_exeext conftest.$ac_ext
6990 LDFLAGS="$save_LDFLAGS"
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6994 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6996 rhapsody* | darwin1.[012])
6997 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6999 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7000 darwin*) # darwin 5.x on
7001 # if running on 10.5 or later, the deployment target defaults
7002 # to the OS version, if on x86, and 10.4, the deployment
7003 # target defaults to 10.4. Don't you love it?
7004 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7005 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7006 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7008 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7010 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7014 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7015 _lt_dar_single_mod='$single_module'
7017 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7018 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7020 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7022 if test "$DSYMUTIL" != ":"; then
7023 _lt_dsymutil='~$DSYMUTIL $lib || :'
7031 ac_cpp='$CPP $CPPFLAGS'
7032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7036 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7037 # On Suns, sometimes $CPP names a directory.
7038 if test -n "$CPP" && test -d "$CPP"; then
7041 if test -z "$CPP"; then
7042 if test "${ac_cv_prog_CPP+set}" = set; then :
7043 $as_echo_n "(cached) " >&6
7045 # Double quotes because CPP needs to be expanded
7046 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7049 for ac_c_preproc_warn_flag in '' yes
7051 # Use a header file that comes with gcc, so configuring glibc
7052 # with a fresh cross-compiler works.
7053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7054 # <limits.h> exists even on freestanding compilers.
7055 # On the NeXT, cc -E runs the code through the compiler's parser,
7056 # not just through cpp. "Syntax error" is here to catch this case.
7057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058 /* end confdefs.h. */
7060 # include <limits.h>
7062 # include <assert.h>
7066 if ac_fn_c_try_cpp "$LINENO"; then :
7069 # Broken: fails on valid input.
7072 rm -f conftest.err conftest.i conftest.$ac_ext
7074 # OK, works on sane cases. Now check whether nonexistent headers
7075 # can be detected and how.
7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h. */
7078 #include <ac_nonexistent.h>
7080 if ac_fn_c_try_cpp "$LINENO"; then :
7081 # Broken: success on invalid input.
7084 # Passes both tests.
7088 rm -f conftest.err conftest.i conftest.$ac_ext
7091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7092 rm -f conftest.i conftest.err conftest.$ac_ext
7093 if $ac_preproc_ok; then :
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7106 $as_echo "$CPP" >&6; }
7108 for ac_c_preproc_warn_flag in '' yes
7110 # Use a header file that comes with gcc, so configuring glibc
7111 # with a fresh cross-compiler works.
7112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7113 # <limits.h> exists even on freestanding compilers.
7114 # On the NeXT, cc -E runs the code through the compiler's parser,
7115 # not just through cpp. "Syntax error" is here to catch this case.
7116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117 /* end confdefs.h. */
7119 # include <limits.h>
7121 # include <assert.h>
7125 if ac_fn_c_try_cpp "$LINENO"; then :
7128 # Broken: fails on valid input.
7131 rm -f conftest.err conftest.i conftest.$ac_ext
7133 # OK, works on sane cases. Now check whether nonexistent headers
7134 # can be detected and how.
7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136 /* end confdefs.h. */
7137 #include <ac_nonexistent.h>
7139 if ac_fn_c_try_cpp "$LINENO"; then :
7140 # Broken: success on invalid input.
7143 # Passes both tests.
7147 rm -f conftest.err conftest.i conftest.$ac_ext
7150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7151 rm -f conftest.i conftest.err conftest.$ac_ext
7152 if $ac_preproc_ok; then :
7155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7157 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7158 See \`config.log' for more details" "$LINENO" 5 ; }
7162 ac_cpp='$CPP $CPPFLAGS'
7163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7169 $as_echo_n "checking for ANSI C header files... " >&6; }
7170 if test "${ac_cv_header_stdc+set}" = set; then :
7171 $as_echo_n "(cached) " >&6
7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h. */
7188 if ac_fn_c_try_compile "$LINENO"; then :
7189 ac_cv_header_stdc=yes
7191 ac_cv_header_stdc=no
7193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7195 if test $ac_cv_header_stdc = yes; then
7196 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h. */
7202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7203 $EGREP "memchr" >/dev/null 2>&1; then :
7206 ac_cv_header_stdc=no
7212 if test $ac_cv_header_stdc = yes; then
7213 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h. */
7219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7220 $EGREP "free" >/dev/null 2>&1; then :
7223 ac_cv_header_stdc=no
7229 if test $ac_cv_header_stdc = yes; then
7230 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7231 if test "$cross_compiling" = yes; then :
7234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235 /* end confdefs.h. */
7238 #if ((' ' & 0x0FF) == 0x020)
7239 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7240 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7242 # define ISLOWER(c) \
7243 (('a' <= (c) && (c) <= 'i') \
7244 || ('j' <= (c) && (c) <= 'r') \
7245 || ('s' <= (c) && (c) <= 'z'))
7246 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7249 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7254 for (i = 0; i < 256; i++)
7255 if (XOR (islower (i), ISLOWER (i))
7256 || toupper (i) != TOUPPER (i))
7261 if ac_fn_c_try_run "$LINENO"; then :
7264 ac_cv_header_stdc=no
7266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7267 conftest.$ac_objext conftest.beam conftest.$ac_ext
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7273 $as_echo "$ac_cv_header_stdc" >&6; }
7274 if test $ac_cv_header_stdc = yes; then
7276 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7280 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7281 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7282 inttypes.h stdint.h unistd.h
7284 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7285 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7287 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7288 cat >>confdefs.h <<_ACEOF
7289 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7297 for ac_header in dlfcn.h
7299 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7301 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7302 cat >>confdefs.h <<_ACEOF
7303 #define HAVE_DLFCN_H 1
7322 # Check whether --enable-shared was given.
7323 if test "${enable_shared+set}" = set; then :
7324 enableval=$enable_shared; p=${PACKAGE-default}
7326 yes) enable_shared=yes ;;
7327 no) enable_shared=no ;;
7330 # Look at the argument we got. We use all the common list separators.
7331 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7332 for pkg in $enableval; do
7334 if test "X$pkg" = "X$p"; then
7355 # Check whether --with-pic was given.
7356 if test "${with_pic+set}" = set; then :
7357 withval=$with_pic; pic_mode="$withval"
7363 test -z "$pic_mode" && pic_mode=default
7371 # Check whether --enable-fast-install was given.
7372 if test "${enable_fast_install+set}" = set; then :
7373 enableval=$enable_fast_install; p=${PACKAGE-default}
7375 yes) enable_fast_install=yes ;;
7376 no) enable_fast_install=no ;;
7378 enable_fast_install=no
7379 # Look at the argument we got. We use all the common list separators.
7380 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7381 for pkg in $enableval; do
7383 if test "X$pkg" = "X$p"; then
7384 enable_fast_install=yes
7391 enable_fast_install=yes
7404 # This can be used to rebuild libtool when needed
7405 LIBTOOL_DEPS="$ltmain"
7407 # Always use our own libtool.
7408 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7434 test -z "$LN_S" && LN_S="ln -s"
7449 if test -n "${ZSH_VERSION+set}" ; then
7450 setopt NO_GLOB_SUBST
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7454 $as_echo_n "checking for objdir... " >&6; }
7455 if test "${lt_cv_objdir+set}" = set; then :
7456 $as_echo_n "(cached) " >&6
7458 rm -f .libs 2>/dev/null
7459 mkdir .libs 2>/dev/null
7460 if test -d .libs; then
7463 # MS-DOS does not allow filenames that begin with a dot.
7466 rmdir .libs 2>/dev/null
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7469 $as_echo "$lt_cv_objdir" >&6; }
7470 objdir=$lt_cv_objdir
7476 cat >>confdefs.h <<_ACEOF
7477 #define LT_OBJDIR "$lt_cv_objdir/"
7498 # AIX sometimes has problems with the GCC collect2 program. For some
7499 # reason, if we set the COLLECT_NAMES environment variable, the problems
7500 # vanish in a puff of smoke.
7501 if test "X${COLLECT_NAMES+set}" != Xset; then
7503 export COLLECT_NAMES
7508 # Sed substitution that helps us do robust quoting. It backslashifies
7509 # metacharacters that are still active within double-quoted strings.
7510 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7512 # Same as above, but do not quote variable references.
7513 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7515 # Sed substitution to delay expansion of an escaped shell variable in a
7516 # double_quote_subst'ed string.
7517 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7519 # Sed substitution to delay expansion of an escaped single quote.
7520 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7522 # Sed substitution to avoid accidental globbing in evaled expressions
7523 no_glob_subst='s/\*/\\\*/g'
7527 can_build_shared=yes
7529 # All known linkers require a `.a' archive for static linking (except MSVC,
7530 # which needs '.lib').
7533 with_gnu_ld="$lt_cv_prog_gnu_ld"
7536 old_CFLAGS="$CFLAGS"
7538 # Set sane defaults for various variables
7539 test -z "$CC" && CC=cc
7540 test -z "$LTCC" && LTCC=$CC
7541 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7542 test -z "$LD" && LD=ld
7543 test -z "$ac_objext" && ac_objext=o
7545 for cc_temp in $compiler""; do
7547 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7548 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7553 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7556 # Only perform the check for file, if the check method requires it
7557 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7558 case $deplibs_check_method in
7560 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7562 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7563 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7564 $as_echo_n "(cached) " >&6
7568 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7571 lt_save_MAGIC_CMD="$MAGIC_CMD"
7572 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7573 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7574 for ac_dir in $ac_dummy; do
7576 test -z "$ac_dir" && ac_dir=.
7577 if test -f $ac_dir/${ac_tool_prefix}file; then
7578 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7579 if test -n "$file_magic_test_file"; then
7580 case $deplibs_check_method in
7582 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7583 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7584 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7585 $EGREP "$file_magic_regex" > /dev/null; then
7590 *** Warning: the command libtool uses to detect shared libraries,
7591 *** $file_magic_cmd, produces output that libtool cannot recognize.
7592 *** The result is that libtool may fail to recognize shared libraries
7593 *** as such. This will affect the creation of libtool libraries that
7594 *** depend on shared libraries, but programs linked with such libtool
7595 *** libraries will work regardless of this problem. Nevertheless, you
7596 *** may want to report the problem to your system manager and/or to
7597 *** bug-libtool@gnu.org
7607 MAGIC_CMD="$lt_save_MAGIC_CMD"
7612 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7613 if test -n "$MAGIC_CMD"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7615 $as_echo "$MAGIC_CMD" >&6; }
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7625 if test -z "$lt_cv_path_MAGIC_CMD"; then
7626 if test -n "$ac_tool_prefix"; then
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7628 $as_echo_n "checking for file... " >&6; }
7629 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7630 $as_echo_n "(cached) " >&6
7634 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7637 lt_save_MAGIC_CMD="$MAGIC_CMD"
7638 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7639 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7640 for ac_dir in $ac_dummy; do
7642 test -z "$ac_dir" && ac_dir=.
7643 if test -f $ac_dir/file; then
7644 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7645 if test -n "$file_magic_test_file"; then
7646 case $deplibs_check_method in
7648 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7649 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7650 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7651 $EGREP "$file_magic_regex" > /dev/null; then
7656 *** Warning: the command libtool uses to detect shared libraries,
7657 *** $file_magic_cmd, produces output that libtool cannot recognize.
7658 *** The result is that libtool may fail to recognize shared libraries
7659 *** as such. This will affect the creation of libtool libraries that
7660 *** depend on shared libraries, but programs linked with such libtool
7661 *** libraries will work regardless of this problem. Nevertheless, you
7662 *** may want to report the problem to your system manager and/or to
7663 *** bug-libtool@gnu.org
7673 MAGIC_CMD="$lt_save_MAGIC_CMD"
7678 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7679 if test -n "$MAGIC_CMD"; then
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7681 $as_echo "$MAGIC_CMD" >&6; }
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7684 $as_echo "no" >&6; }
7697 # Use C for the default configuration in the libtool script
7701 ac_cpp='$CPP $CPPFLAGS'
7702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7707 # Source file extension for C test sources.
7710 # Object file extension for compiled C test sources.
7714 # Code to be used in simple compile tests
7715 lt_simple_compile_test_code="int some_variable = 0;"
7717 # Code to be used in simple link tests
7718 lt_simple_link_test_code='int main(){return(0);}'
7726 # If no C compiler was specified, use CC.
7729 # If no C compiler flags were specified, use CFLAGS.
7730 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7732 # Allow CC to be a program name with arguments.
7735 # Save the default compiler, since it gets overwritten when the other
7736 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7737 compiler_DEFAULT=$CC
7739 # save warnings/boilerplate of simple test code
7740 ac_outfile=conftest.$ac_objext
7741 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7742 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7743 _lt_compiler_boilerplate=`cat conftest.err`
7746 ac_outfile=conftest.$ac_objext
7747 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7748 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7749 _lt_linker_boilerplate=`cat conftest.err`
7754 ## There is no encapsulation within the following macros, do not change
7755 ## the running order or otherwise move them around unless you know exactly
7756 ## what you are doing...
7757 if test -n "$compiler"; then
7759 lt_prog_compiler_no_builtin_flag=
7761 if test "$GCC" = yes; then
7762 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7765 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7766 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7767 $as_echo_n "(cached) " >&6
7769 lt_cv_prog_compiler_rtti_exceptions=no
7770 ac_outfile=conftest.$ac_objext
7771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7772 lt_compiler_flag="-fno-rtti -fno-exceptions"
7773 # Insert the option either (1) after the last *FLAGS variable, or
7774 # (2) before a word containing "conftest.", or (3) at the end.
7775 # Note that $ac_compile itself does not contain backslashes and begins
7776 # with a dollar sign (not a hyphen), so the echo should work correctly.
7777 # The option is referenced via a variable to avoid confusing sed.
7778 lt_compile=`echo "$ac_compile" | $SED \
7779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7781 -e 's:$: $lt_compiler_flag:'`
7782 (eval echo "\"\$as_me:7782: $lt_compile\"" >&5)
7783 (eval "$lt_compile" 2>conftest.err)
7785 cat conftest.err >&5
7786 echo "$as_me:7786: \$? = $ac_status" >&5
7787 if (exit $ac_status) && test -s "$ac_outfile"; then
7788 # The compiler can only warn and ignore the option if not recognized
7789 # So say no if there are warnings other than the usual output.
7790 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7792 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7793 lt_cv_prog_compiler_rtti_exceptions=yes
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7800 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7802 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7803 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7815 lt_prog_compiler_wl=
7816 lt_prog_compiler_pic=
7817 lt_prog_compiler_static=
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7820 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7822 if test "$GCC" = yes; then
7823 lt_prog_compiler_wl='-Wl,'
7824 lt_prog_compiler_static='-static'
7828 # All AIX code is PIC.
7829 if test "$host_cpu" = ia64; then
7830 # AIX 5 now supports IA64 processor
7831 lt_prog_compiler_static='-Bstatic'
7838 # see comment about AmigaOS4 .so support
7839 lt_prog_compiler_pic='-fPIC'
7842 # FIXME: we need at least 68020 code to build shared libraries, but
7843 # adding the `-m68020' flag to GCC prevents building anything better,
7845 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7850 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7851 # PIC is the default for these OSes.
7854 mingw* | cygwin* | pw32* | os2* | cegcc*)
7855 # This hack is so that the source file can tell whether it is being
7856 # built for inclusion in a dll (and should export symbols for example).
7857 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7858 # (--disable-auto-import) libraries
7859 lt_prog_compiler_pic='-DDLL_EXPORT'
7862 darwin* | rhapsody*)
7863 # PIC is the default on this platform
7864 # Common symbols not allowed in MH_DYLIB files
7865 lt_prog_compiler_pic='-fno-common'
7869 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7870 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7871 # sets the default TLS model and affects inlining.
7877 lt_prog_compiler_pic='-fPIC'
7883 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7884 # Instead, we relocate shared libraries at runtime.
7888 # Just because we use GCC doesn't mean we suddenly get shared libraries
7889 # on systems that don't support them.
7890 lt_prog_compiler_can_build_shared=no
7895 # QNX uses GNU C++, but need to define -shared option too, otherwise
7897 lt_prog_compiler_pic='-fPIC -shared'
7901 if test -d /usr/nec; then
7902 lt_prog_compiler_pic=-Kconform_pic
7907 lt_prog_compiler_pic='-fPIC'
7911 # PORTME Check for flag to pass linker flags through the system compiler.
7914 lt_prog_compiler_wl='-Wl,'
7915 if test "$host_cpu" = ia64; then
7916 # AIX 5 now supports IA64 processor
7917 lt_prog_compiler_static='-Bstatic'
7919 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7923 mingw* | cygwin* | pw32* | os2* | cegcc*)
7924 # This hack is so that the source file can tell whether it is being
7925 # built for inclusion in a dll (and should export symbols for example).
7926 lt_prog_compiler_pic='-DDLL_EXPORT'
7929 hpux9* | hpux10* | hpux11*)
7930 lt_prog_compiler_wl='-Wl,'
7931 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7938 lt_prog_compiler_pic='+Z'
7941 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7942 lt_prog_compiler_static='${wl}-a ${wl}archive'
7945 irix5* | irix6* | nonstopux*)
7946 lt_prog_compiler_wl='-Wl,'
7947 # PIC (with -KPIC) is the default.
7948 lt_prog_compiler_static='-non_shared'
7951 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7952 case $cc_basename in
7953 # old Intel for x86_64 which still supported -KPIC.
7955 lt_prog_compiler_wl='-Wl,'
7956 lt_prog_compiler_pic='-KPIC'
7957 lt_prog_compiler_static='-static'
7959 # icc used to be incompatible with GCC.
7960 # ICC 10 doesn't accept -KPIC any more.
7962 lt_prog_compiler_wl='-Wl,'
7963 lt_prog_compiler_pic='-fPIC'
7964 lt_prog_compiler_static='-static'
7966 # Lahey Fortran 8.1.
7968 lt_prog_compiler_wl='-Wl,'
7969 lt_prog_compiler_pic='--shared'
7970 lt_prog_compiler_static='--static'
7972 pgcc* | pgf77* | pgf90* | pgf95*)
7973 # Portland Group compilers (*not* the Pentium gcc compiler,
7974 # which looks to be a dead project)
7975 lt_prog_compiler_wl='-Wl,'
7976 lt_prog_compiler_pic='-fpic'
7977 lt_prog_compiler_static='-Bstatic'
7980 lt_prog_compiler_wl='-Wl,'
7981 # All Alpha code is PIC.
7982 lt_prog_compiler_static='-non_shared'
7985 # IBM XL C 8.0/Fortran 10.1 on PPC
7986 lt_prog_compiler_wl='-Wl,'
7987 lt_prog_compiler_pic='-qpic'
7988 lt_prog_compiler_static='-qstaticlink'
7991 case `$CC -V 2>&1 | sed 5q` in
7994 lt_prog_compiler_pic='-KPIC'
7995 lt_prog_compiler_static='-Bstatic'
7996 lt_prog_compiler_wl='-Wl,'
7999 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8000 lt_prog_compiler_pic='-KPIC'
8001 lt_prog_compiler_static='-Bstatic'
8002 lt_prog_compiler_wl=''
8010 lt_prog_compiler_pic='-KPIC'
8011 lt_prog_compiler_static='-Bstatic'
8015 # QNX uses GNU C++, but need to define -shared option too, otherwise
8017 lt_prog_compiler_pic='-fPIC -shared'
8020 osf3* | osf4* | osf5*)
8021 lt_prog_compiler_wl='-Wl,'
8022 # All OSF/1 code is PIC.
8023 lt_prog_compiler_static='-non_shared'
8027 lt_prog_compiler_static='-non_shared'
8031 lt_prog_compiler_pic='-KPIC'
8032 lt_prog_compiler_static='-Bstatic'
8033 case $cc_basename in
8035 lt_prog_compiler_wl='-Qoption ld ';;
8037 lt_prog_compiler_wl='-Wl,';;
8042 lt_prog_compiler_wl='-Qoption ld '
8043 lt_prog_compiler_pic='-PIC'
8044 lt_prog_compiler_static='-Bstatic'
8047 sysv4 | sysv4.2uw2* | sysv4.3*)
8048 lt_prog_compiler_wl='-Wl,'
8049 lt_prog_compiler_pic='-KPIC'
8050 lt_prog_compiler_static='-Bstatic'
8054 if test -d /usr/nec ;then
8055 lt_prog_compiler_pic='-Kconform_pic'
8056 lt_prog_compiler_static='-Bstatic'
8060 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8061 lt_prog_compiler_wl='-Wl,'
8062 lt_prog_compiler_pic='-KPIC'
8063 lt_prog_compiler_static='-Bstatic'
8067 lt_prog_compiler_wl='-Wl,'
8068 lt_prog_compiler_can_build_shared=no
8072 lt_prog_compiler_pic='-pic'
8073 lt_prog_compiler_static='-Bstatic'
8077 lt_prog_compiler_can_build_shared=no
8083 # For platforms which do not support PIC, -DPIC is meaningless:
8085 lt_prog_compiler_pic=
8088 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8092 $as_echo "$lt_prog_compiler_pic" >&6; }
8100 # Check to make sure the PIC flag actually works.
8102 if test -n "$lt_prog_compiler_pic"; then
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8104 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8105 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8106 $as_echo_n "(cached) " >&6
8108 lt_cv_prog_compiler_pic_works=no
8109 ac_outfile=conftest.$ac_objext
8110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8111 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8112 # Insert the option either (1) after the last *FLAGS variable, or
8113 # (2) before a word containing "conftest.", or (3) at the end.
8114 # Note that $ac_compile itself does not contain backslashes and begins
8115 # with a dollar sign (not a hyphen), so the echo should work correctly.
8116 # The option is referenced via a variable to avoid confusing sed.
8117 lt_compile=`echo "$ac_compile" | $SED \
8118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8120 -e 's:$: $lt_compiler_flag:'`
8121 (eval echo "\"\$as_me:8121: $lt_compile\"" >&5)
8122 (eval "$lt_compile" 2>conftest.err)
8124 cat conftest.err >&5
8125 echo "$as_me:8125: \$? = $ac_status" >&5
8126 if (exit $ac_status) && test -s "$ac_outfile"; then
8127 # The compiler can only warn and ignore the option if not recognized
8128 # So say no if there are warnings other than the usual output.
8129 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8131 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8132 lt_cv_prog_compiler_pic_works=yes
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8139 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8141 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8142 case $lt_prog_compiler_pic in
8144 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8147 lt_prog_compiler_pic=
8148 lt_prog_compiler_can_build_shared=no
8159 # Check to make sure the static flag actually works.
8161 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8163 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8164 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8165 $as_echo_n "(cached) " >&6
8167 lt_cv_prog_compiler_static_works=no
8168 save_LDFLAGS="$LDFLAGS"
8169 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8170 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8171 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8172 # The linker can only warn and ignore the option if not recognized
8173 # So say no if there are warnings
8174 if test -s conftest.err; then
8175 # Append any errors to the config.log.
8176 cat conftest.err 1>&5
8177 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8178 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8179 if diff conftest.exp conftest.er2 >/dev/null; then
8180 lt_cv_prog_compiler_static_works=yes
8183 lt_cv_prog_compiler_static_works=yes
8187 LDFLAGS="$save_LDFLAGS"
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8191 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8193 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8196 lt_prog_compiler_static=
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8206 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8207 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8208 $as_echo_n "(cached) " >&6
8210 lt_cv_prog_compiler_c_o=no
8211 $RM -r conftest 2>/dev/null
8215 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8217 lt_compiler_flag="-o out/conftest2.$ac_objext"
8218 # Insert the option either (1) after the last *FLAGS variable, or
8219 # (2) before a word containing "conftest.", or (3) at the end.
8220 # Note that $ac_compile itself does not contain backslashes and begins
8221 # with a dollar sign (not a hyphen), so the echo should work correctly.
8222 lt_compile=`echo "$ac_compile" | $SED \
8223 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8225 -e 's:$: $lt_compiler_flag:'`
8226 (eval echo "\"\$as_me:8226: $lt_compile\"" >&5)
8227 (eval "$lt_compile" 2>out/conftest.err)
8229 cat out/conftest.err >&5
8230 echo "$as_me:8230: \$? = $ac_status" >&5
8231 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8233 # The compiler can only warn and ignore the option if not recognized
8234 # So say no if there are warnings
8235 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8236 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8237 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8238 lt_cv_prog_compiler_c_o=yes
8243 # SGI C++ compiler will create directory out/ii_files/ for
8244 # template instantiation
8245 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8246 $RM out/* && rmdir out
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8253 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8261 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8262 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8263 $as_echo_n "(cached) " >&6
8265 lt_cv_prog_compiler_c_o=no
8266 $RM -r conftest 2>/dev/null
8270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8272 lt_compiler_flag="-o out/conftest2.$ac_objext"
8273 # Insert the option either (1) after the last *FLAGS variable, or
8274 # (2) before a word containing "conftest.", or (3) at the end.
8275 # Note that $ac_compile itself does not contain backslashes and begins
8276 # with a dollar sign (not a hyphen), so the echo should work correctly.
8277 lt_compile=`echo "$ac_compile" | $SED \
8278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8280 -e 's:$: $lt_compiler_flag:'`
8281 (eval echo "\"\$as_me:8281: $lt_compile\"" >&5)
8282 (eval "$lt_compile" 2>out/conftest.err)
8284 cat out/conftest.err >&5
8285 echo "$as_me:8285: \$? = $ac_status" >&5
8286 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8288 # The compiler can only warn and ignore the option if not recognized
8289 # So say no if there are warnings
8290 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8291 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8292 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8293 lt_cv_prog_compiler_c_o=yes
8298 # SGI C++ compiler will create directory out/ii_files/ for
8299 # template instantiation
8300 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8301 $RM out/* && rmdir out
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8308 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8313 hard_links="nottested"
8314 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8315 # do not overwrite the value of need_locks provided by the user
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8317 $as_echo_n "checking if we can lock with hard links... " >&6; }
8320 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8322 ln conftest.a conftest.b 2>&5 || hard_links=no
8323 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8325 $as_echo "$hard_links" >&6; }
8326 if test "$hard_links" = no; then
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8328 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8341 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8344 allow_undefined_flag=
8345 always_export_symbols=no
8347 archive_expsym_cmds=
8348 compiler_needs_object=no
8349 enable_shared_with_static_runtimes=no
8350 export_dynamic_flag_spec=
8351 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8352 hardcode_automatic=no
8354 hardcode_direct_absolute=no
8355 hardcode_libdir_flag_spec=
8356 hardcode_libdir_flag_spec_ld=
8357 hardcode_libdir_separator=
8359 hardcode_shlibpath_var=unsupported
8361 link_all_deplibs=unknown
8364 old_archive_from_new_cmds=
8365 old_archive_from_expsyms_cmds=
8366 thread_safe_flag_spec=
8367 whole_archive_flag_spec=
8368 # include_expsyms should be a list of space-separated symbols to be *always*
8369 # included in the symbol list
8371 # exclude_expsyms can be an extended regexp of symbols to exclude
8372 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8373 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8374 # as well as any symbol that contains `d'.
8375 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8376 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8377 # platforms (ab)use it in PIC code, but their linkers get confused if
8378 # the symbol is explicitly referenced. Since portable code cannot
8379 # rely on this symbol name, it's probably fine to never include it in
8380 # preloaded symbol tables.
8381 # Exclude shared library initialization/finalization symbols.
8382 extract_expsyms_cmds=
8385 cygwin* | mingw* | pw32* | cegcc*)
8386 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8387 # When not using gcc, we currently assume that we are using
8388 # Microsoft Visual C++.
8389 if test "$GCC" != yes; then
8394 # we just hope/assume this is gcc and not c89 (= MSVC++)
8400 linux* | k*bsd*-gnu)
8406 if test "$with_gnu_ld" = yes; then
8407 # If archive_cmds runs LD, not CC, wlarc should be empty
8410 # Set some defaults for GNU ld with shared library support. These
8411 # are reset later if shared libraries are not supported. Putting them
8412 # here allows them to be overridden if necessary.
8413 runpath_var=LD_RUN_PATH
8414 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8415 export_dynamic_flag_spec='${wl}--export-dynamic'
8416 # ancient GNU ld didn't support --whole-archive et. al.
8417 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8418 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8420 whole_archive_flag_spec=
8422 supports_anon_versioning=no
8423 case `$LD -v 2>&1` in
8424 *GNU\ gold*) supports_anon_versioning=yes ;;
8425 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8426 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8427 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8428 *\ 2.11.*) ;; # other 2.11 versions
8429 *) supports_anon_versioning=yes ;;
8432 # See if GNU ld supports shared libraries.
8435 # On AIX/PPC, the GNU linker is very broken
8436 if test "$host_cpu" != ia64; then
8440 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8441 *** to be unable to reliably create shared libraries on AIX.
8442 *** Therefore, libtool is disabling shared libraries support. If you
8443 *** really care for shared libraries, you may want to modify your PATH
8444 *** so that a non-GNU linker is found, and then restart.
8453 # see comment about AmigaOS4 .so support
8454 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8455 archive_expsym_cmds=''
8458 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)'
8459 hardcode_libdir_flag_spec='-L$libdir'
8460 hardcode_minus_L=yes
8466 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8467 allow_undefined_flag=unsupported
8468 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8469 # support --undefined. This deserves some investigation. FIXME
8470 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8476 cygwin* | mingw* | pw32* | cegcc*)
8477 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8478 # as there is no search path for DLLs.
8479 hardcode_libdir_flag_spec='-L$libdir'
8480 allow_undefined_flag=unsupported
8481 always_export_symbols=no
8482 enable_shared_with_static_runtimes=yes
8483 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8485 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8486 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8487 # If the export-symbols file already is a .def file (1st line
8488 # is EXPORTS), use it as is; otherwise, prepend...
8489 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8490 cp $export_symbols $output_objdir/$soname.def;
8492 echo EXPORTS > $output_objdir/$soname.def;
8493 cat $export_symbols >> $output_objdir/$soname.def;
8495 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8503 hardcode_shlibpath_var=no
8504 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8505 export_dynamic_flag_spec='${wl}-E'
8506 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8507 # Instead, shared libraries are loaded at an image base (0x10000000 by
8508 # default) and relocated if they conflict, which is a slow very memory
8509 # consuming and fragmenting process. To avoid this, we pick a random,
8510 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8511 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8512 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8513 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'
8516 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8518 if test "$host_os" = linux-dietlibc; then
8519 case $cc_basename in
8520 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8523 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8524 && test "$tmp_diet" = no
8527 tmp_sharedflag='-shared'
8528 case $cc_basename,$host_cpu in
8529 pgcc*) # Portland Group C compiler
8530 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8531 tmp_addflag=' $pic_flag'
8533 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8534 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8535 tmp_addflag=' $pic_flag -Mnomain' ;;
8536 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8537 tmp_addflag=' -i_dynamic' ;;
8538 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8539 tmp_addflag=' -i_dynamic -nofor_main' ;;
8540 ifc* | ifort*) # Intel Fortran compiler
8541 tmp_addflag=' -nofor_main' ;;
8542 lf95*) # Lahey Fortran 8.1
8543 whole_archive_flag_spec=
8544 tmp_sharedflag='--shared' ;;
8545 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8546 tmp_sharedflag='-qmkshrobj'
8549 case `$CC -V 2>&1 | sed 5q` in
8550 *Sun\ C*) # Sun C 5.9
8551 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8552 compiler_needs_object=yes
8553 tmp_sharedflag='-G' ;;
8554 *Sun\ F*) # Sun Fortran 8.3
8555 tmp_sharedflag='-G' ;;
8557 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8559 if test "x$supports_anon_versioning" = xyes; then
8560 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8561 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8562 echo "local: *; };" >> $output_objdir/$libname.ver~
8563 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8566 case $cc_basename in
8568 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8569 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8570 hardcode_libdir_flag_spec=
8571 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8572 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8573 if test "x$supports_anon_versioning" = xyes; then
8574 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8575 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8576 echo "local: *; };" >> $output_objdir/$libname.ver~
8577 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8586 netbsd* | netbsdelf*-gnu)
8587 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8588 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8591 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8592 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8597 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8601 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8602 *** create shared libraries on Solaris systems. Therefore, libtool
8603 *** is disabling shared libraries support. We urge you to upgrade GNU
8604 *** binutils to release 2.9.1 or newer. Another option is to modify
8605 *** your PATH or compiler configuration so that the native linker is
8606 *** used, and then restart.
8609 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8610 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8611 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8617 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8618 case `$LD -v 2>&1` in
8619 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8623 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8624 *** reliably create shared libraries on SCO systems. Therefore, libtool
8625 *** is disabling shared libraries support. We urge you to upgrade GNU
8626 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8627 *** your PATH or compiler configuration so that the native linker is
8628 *** used, and then restart.
8633 # For security reasons, it is highly recommended that you always
8634 # use absolute paths for naming shared libraries, and exclude the
8635 # DT_RUNPATH tag from executables and libraries. But doing so
8636 # requires that you compile everything twice, which is a pain.
8637 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8638 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8639 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8640 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8649 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8652 hardcode_shlibpath_var=no
8656 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8657 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8658 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8665 if test "$ld_shlibs" = no; then
8667 hardcode_libdir_flag_spec=
8668 export_dynamic_flag_spec=
8669 whole_archive_flag_spec=
8672 # PORTME fill in a description of your system's linker (not GNU ld)
8675 allow_undefined_flag=unsupported
8676 always_export_symbols=yes
8677 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'
8678 # Note: this linker hardcodes the directories in LIBPATH if there
8679 # are no directories specified by -L.
8680 hardcode_minus_L=yes
8681 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8682 # Neither direct hardcoding nor static linking is supported with a
8684 hardcode_direct=unsupported
8689 if test "$host_cpu" = ia64; then
8690 # On IA64, the linker does run time linking by default, so we don't
8691 # have to do anything special.
8692 aix_use_runtimelinking=no
8693 exp_sym_flag='-Bexport'
8696 # If we're using GNU nm, then we don't want the "-C" option.
8697 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8698 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8699 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8701 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8703 aix_use_runtimelinking=no
8705 # Test if we are trying to use run time linking or normal
8706 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8707 # need to do runtime linking.
8708 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8709 for ld_flag in $LDFLAGS; do
8710 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8711 aix_use_runtimelinking=yes
8718 exp_sym_flag='-bexport'
8719 no_entry_flag='-bnoentry'
8722 # When large executables or shared objects are built, AIX ld can
8723 # have problems creating the table of contents. If linking a library
8724 # or program results in "error TOC overflow" add -mminimal-toc to
8725 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8726 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8730 hardcode_direct_absolute=yes
8731 hardcode_libdir_separator=':'
8732 link_all_deplibs=yes
8733 file_list_spec='${wl}-f,'
8735 if test "$GCC" = yes; then
8736 case $host_os in aix4.[012]|aix4.[012].*)
8737 # We only want to do this on AIX 4.2 and lower, the check
8738 # below for broken collect2 doesn't work under 4.3+
8739 collect2name=`${CC} -print-prog-name=collect2`
8740 if test -f "$collect2name" &&
8741 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8743 # We have reworked collect2
8746 # We have old collect2
8747 hardcode_direct=unsupported
8748 # It fails to find uninstalled libraries when the uninstalled
8749 # path is not listed in the libpath. Setting hardcode_minus_L
8750 # to unsupported forces relinking
8751 hardcode_minus_L=yes
8752 hardcode_libdir_flag_spec='-L$libdir'
8753 hardcode_libdir_separator=
8757 shared_flag='-shared'
8758 if test "$aix_use_runtimelinking" = yes; then
8759 shared_flag="$shared_flag "'${wl}-G'
8764 if test "$host_cpu" = ia64; then
8765 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8766 # chokes on -Wl,-G. The following line is correct:
8769 if test "$aix_use_runtimelinking" = yes; then
8770 shared_flag='${wl}-G'
8772 shared_flag='${wl}-bM:SRE'
8777 export_dynamic_flag_spec='${wl}-bexpall'
8778 # It seems that -bexpall does not export symbols beginning with
8779 # underscore (_), so it is better to generate a list of symbols to export.
8780 always_export_symbols=yes
8781 if test "$aix_use_runtimelinking" = yes; then
8782 # Warning - without using the other runtime loading flags (-brtl),
8783 # -berok will link without error, but may produce a broken library.
8784 allow_undefined_flag='-berok'
8785 # Determine the default libpath from the value encoded in an
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8798 if ac_fn_c_try_link "$LINENO"; then :
8800 lt_aix_libpath_sed='
8801 /Import File Strings/,/^$/ {
8807 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8808 # Check for a 64-bit object if we didn't find anything.
8809 if test -z "$aix_libpath"; then
8810 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8813 rm -f core conftest.err conftest.$ac_objext \
8814 conftest$ac_exeext conftest.$ac_ext
8815 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8817 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8818 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8820 if test "$host_cpu" = ia64; then
8821 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8822 allow_undefined_flag="-z nodefs"
8823 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"
8825 # Determine the default libpath from the value encoded in an
8827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8828 /* end confdefs.h. */
8838 if ac_fn_c_try_link "$LINENO"; then :
8840 lt_aix_libpath_sed='
8841 /Import File Strings/,/^$/ {
8847 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8848 # Check for a 64-bit object if we didn't find anything.
8849 if test -z "$aix_libpath"; then
8850 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8853 rm -f core conftest.err conftest.$ac_objext \
8854 conftest$ac_exeext conftest.$ac_ext
8855 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8857 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8858 # Warning - without using the other run time loading flags,
8859 # -berok will link without error, but may produce a broken library.
8860 no_undefined_flag=' ${wl}-bernotok'
8861 allow_undefined_flag=' ${wl}-berok'
8862 # Exported symbols can be pulled into shared objects from archives
8863 whole_archive_flag_spec='$convenience'
8864 archive_cmds_need_lc=yes
8865 # This is similar to how AIX traditionally builds its shared libraries.
8866 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8874 # see comment about AmigaOS4 .so support
8875 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8876 archive_expsym_cmds=''
8879 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)'
8880 hardcode_libdir_flag_spec='-L$libdir'
8881 hardcode_minus_L=yes
8887 export_dynamic_flag_spec=-rdynamic
8890 cygwin* | mingw* | pw32* | cegcc*)
8891 # When not using gcc, we currently assume that we are using
8892 # Microsoft Visual C++.
8893 # hardcode_libdir_flag_spec is actually meaningless, as there is
8894 # no search path for DLLs.
8895 hardcode_libdir_flag_spec=' '
8896 allow_undefined_flag=unsupported
8897 # Tell ltmain to make .lib files, not .a files.
8899 # Tell ltmain to make .dll files, not .so files.
8901 # FIXME: Setting linknames here is a bad hack.
8902 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8903 # The linker will automatically build a .lib file if we build a DLL.
8904 old_archive_from_new_cmds='true'
8905 # FIXME: Should let the user specify the lib program.
8906 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8907 fix_srcfile_path='`cygpath -w "$srcfile"`'
8908 enable_shared_with_static_runtimes=yes
8911 darwin* | rhapsody*)
8914 archive_cmds_need_lc=no
8916 hardcode_automatic=yes
8917 hardcode_shlibpath_var=unsupported
8918 whole_archive_flag_spec=''
8919 link_all_deplibs=yes
8920 allow_undefined_flag="$_lt_dar_allow_undefined"
8921 case $cc_basename in
8922 ifort*) _lt_dar_can_shared=yes ;;
8923 *) _lt_dar_can_shared=$GCC ;;
8925 if test "$_lt_dar_can_shared" = "yes"; then
8926 output_verbose_link_cmd=echo
8927 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8928 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8929 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}"
8930 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}"
8939 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8940 hardcode_libdir_flag_spec='-L$libdir'
8941 hardcode_shlibpath_var=no
8948 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8949 # support. Future versions do this automatically, but an explicit c++rt0.o
8950 # does not break anything, and helps significantly (at the cost of a little
8953 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8954 hardcode_libdir_flag_spec='-R$libdir'
8956 hardcode_shlibpath_var=no
8959 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8961 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8963 hardcode_minus_L=yes
8964 hardcode_shlibpath_var=no
8967 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8968 freebsd* | dragonfly*)
8969 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8970 hardcode_libdir_flag_spec='-R$libdir'
8972 hardcode_shlibpath_var=no
8976 if test "$GCC" = yes; then
8977 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8979 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8981 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8982 hardcode_libdir_separator=:
8985 # hardcode_minus_L: Not really in the search PATH,
8986 # but as the default location of the library.
8987 hardcode_minus_L=yes
8988 export_dynamic_flag_spec='${wl}-E'
8992 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8993 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8995 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8997 if test "$with_gnu_ld" = no; then
8998 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8999 hardcode_libdir_flag_spec_ld='+b $libdir'
9000 hardcode_libdir_separator=:
9002 hardcode_direct_absolute=yes
9003 export_dynamic_flag_spec='${wl}-E'
9004 # hardcode_minus_L: Not really in the search PATH,
9005 # but as the default location of the library.
9006 hardcode_minus_L=yes
9011 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9014 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9017 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9020 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9026 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9029 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9032 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9036 if test "$with_gnu_ld" = no; then
9037 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9038 hardcode_libdir_separator=:
9043 hardcode_shlibpath_var=no
9047 hardcode_direct_absolute=yes
9048 export_dynamic_flag_spec='${wl}-E'
9050 # hardcode_minus_L: Not really in the search PATH,
9051 # but as the default location of the library.
9052 hardcode_minus_L=yes
9058 irix5* | irix6* | nonstopux*)
9059 if test "$GCC" = yes; then
9060 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9061 # Try to use the -exported_symbol ld option, if it does not
9062 # work, assume that -exports_file does not work either and
9063 # implicitly export all symbols.
9064 save_LDFLAGS="$LDFLAGS"
9065 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9070 if ac_fn_c_try_link "$LINENO"; then :
9071 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9074 rm -f core conftest.err conftest.$ac_objext \
9075 conftest$ac_exeext conftest.$ac_ext
9076 LDFLAGS="$save_LDFLAGS"
9078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9079 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9081 archive_cmds_need_lc='no'
9082 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9083 hardcode_libdir_separator=:
9085 link_all_deplibs=yes
9088 netbsd* | netbsdelf*-gnu)
9089 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9090 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9092 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9094 hardcode_libdir_flag_spec='-R$libdir'
9096 hardcode_shlibpath_var=no
9100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9102 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9103 hardcode_libdir_separator=:
9104 hardcode_shlibpath_var=no
9111 if test -f /usr/libexec/ld.so; then
9113 hardcode_shlibpath_var=no
9114 hardcode_direct_absolute=yes
9115 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9116 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9117 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9118 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9119 export_dynamic_flag_spec='${wl}-E'
9122 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9123 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9124 hardcode_libdir_flag_spec='-R$libdir'
9127 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9128 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9138 hardcode_libdir_flag_spec='-L$libdir'
9139 hardcode_minus_L=yes
9140 allow_undefined_flag=unsupported
9141 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9142 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9146 if test "$GCC" = yes; then
9147 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9148 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9150 allow_undefined_flag=' -expect_unresolved \*'
9151 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9153 archive_cmds_need_lc='no'
9154 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9155 hardcode_libdir_separator=:
9158 osf4* | osf5*) # as osf3* with the addition of -msym flag
9159 if test "$GCC" = yes; then
9160 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9161 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9162 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9164 allow_undefined_flag=' -expect_unresolved \*'
9165 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9166 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~
9167 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9169 # Both c and cxx compiler support -rpath directly
9170 hardcode_libdir_flag_spec='-rpath $libdir'
9172 archive_cmds_need_lc='no'
9173 hardcode_libdir_separator=:
9177 no_undefined_flag=' -z defs'
9178 if test "$GCC" = yes; then
9180 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9181 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9182 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9184 case `$CC -V 2>&1` in
9187 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9188 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9189 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9193 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9194 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9195 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9199 hardcode_libdir_flag_spec='-R$libdir'
9200 hardcode_shlibpath_var=no
9202 solaris2.[0-5] | solaris2.[0-5].*) ;;
9204 # The compiler driver will combine and reorder linker options,
9205 # but understands `-z linker_flag'. GCC discards it without `$wl',
9206 # but is careful enough not to reorder.
9207 # Supported since Solaris 2.6 (maybe 2.5.1?)
9208 if test "$GCC" = yes; then
9209 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9211 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9215 link_all_deplibs=yes
9219 if test "x$host_vendor" = xsequent; then
9220 # Use $CC to link under sequent, because it throws in some extra .o
9221 # files that make .init and .fini sections work.
9222 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9224 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9226 hardcode_libdir_flag_spec='-L$libdir'
9228 hardcode_minus_L=yes
9229 hardcode_shlibpath_var=no
9233 case $host_vendor in
9235 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9236 hardcode_direct=yes # is this really true???
9239 ## LD is ld it makes a PLAMLIB
9240 ## CC just makes a GrossModule.
9241 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9242 reload_cmds='$CC -r -o $output$reload_objs'
9246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9247 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9250 runpath_var='LD_RUN_PATH'
9251 hardcode_shlibpath_var=no
9255 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9256 hardcode_shlibpath_var=no
9257 export_dynamic_flag_spec='-Bexport'
9261 if test -d /usr/nec; then
9262 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9263 hardcode_shlibpath_var=no
9264 runpath_var=LD_RUN_PATH
9265 hardcode_runpath_var=yes
9270 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9271 no_undefined_flag='${wl}-z,text'
9272 archive_cmds_need_lc=no
9273 hardcode_shlibpath_var=no
9274 runpath_var='LD_RUN_PATH'
9276 if test "$GCC" = yes; then
9277 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9278 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9280 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9281 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9285 sysv5* | sco3.2v5* | sco5v6*)
9286 # Note: We can NOT use -z defs as we might desire, because we do not
9287 # link with -lc, and that would cause any symbols used from libc to
9288 # always be unresolved, which means just about no library would
9289 # ever link correctly. If we're not using GNU ld we use -z text
9290 # though, which does catch some bad symbols but isn't as heavy-handed
9292 no_undefined_flag='${wl}-z,text'
9293 allow_undefined_flag='${wl}-z,nodefs'
9294 archive_cmds_need_lc=no
9295 hardcode_shlibpath_var=no
9296 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9297 hardcode_libdir_separator=':'
9298 link_all_deplibs=yes
9299 export_dynamic_flag_spec='${wl}-Bexport'
9300 runpath_var='LD_RUN_PATH'
9302 if test "$GCC" = yes; then
9303 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9304 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9306 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9307 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9312 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9313 hardcode_libdir_flag_spec='-L$libdir'
9314 hardcode_shlibpath_var=no
9322 if test x$host_vendor = xsni; then
9324 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9325 export_dynamic_flag_spec='${wl}-Blargedynsym'
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9332 $as_echo "$ld_shlibs" >&6; }
9333 test "$ld_shlibs" = no && can_build_shared=no
9335 with_gnu_ld=$with_gnu_ld
9352 # Do we need to explicitly link libc?
9354 case "x$archive_cmds_need_lc" in
9356 # Assume -lc should be added
9357 archive_cmds_need_lc=yes
9359 if test "$enable_shared" = yes && test "$GCC" = yes; then
9360 case $archive_cmds in
9362 # FIXME: we may have to deal with multi-command sequences.
9365 # Test whether the compiler implicitly links with -lc since on some
9366 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9367 # to ld, don't add -lc before -lgcc.
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9369 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9371 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9374 (eval $ac_compile) 2>&5
9376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9377 test $ac_status = 0; } 2>conftest.err; then
9380 libobjs=conftest.$ac_objext
9382 wl=$lt_prog_compiler_wl
9383 pic_flag=$lt_prog_compiler_pic
9389 lt_save_allow_undefined_flag=$allow_undefined_flag
9390 allow_undefined_flag=
9391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9392 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9395 test $ac_status = 0; }
9397 archive_cmds_need_lc=no
9399 archive_cmds_need_lc=yes
9401 allow_undefined_flag=$lt_save_allow_undefined_flag
9403 cat conftest.err 1>&5
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9407 $as_echo "$archive_cmds_need_lc" >&6; }
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9571 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9573 if test "$GCC" = yes; then
9575 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9576 *) lt_awk_arg="/^libraries:/" ;;
9578 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9579 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9580 # if the path contains ";" then we assume it to be the separator
9581 # otherwise default to the standard path separator (i.e. ":") - it is
9582 # assumed that no part of a normal pathname contains ";" but that should
9583 # okay in the real world where ";" in dirpaths is itself problematic.
9584 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9586 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9588 # Ok, now we have the path, separated by spaces, we can step through it
9589 # and add multilib dir if necessary.
9590 lt_tmp_lt_search_path_spec=
9591 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9592 for lt_sys_path in $lt_search_path_spec; do
9593 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9594 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9596 test -d "$lt_sys_path" && \
9597 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9600 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9601 BEGIN {RS=" "; FS="/|\n";} {
9604 for (lt_i = NF; lt_i > 0; lt_i--) {
9605 if ($lt_i != "" && $lt_i != ".") {
9606 if ($lt_i == "..") {
9609 if (lt_count == 0) {
9610 lt_foo="/" $lt_i lt_foo;
9617 if (lt_foo != "") { lt_freq[lt_foo]++; }
9618 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9620 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9622 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9625 libname_spec='lib$name'
9633 shlibpath_overrides_runpath=unknown
9635 dynamic_linker="$host_os ld.so"
9636 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9637 need_lib_prefix=unknown
9638 hardcode_into_libs=no
9640 # when you set need_version to no, make sure it does not cause -set_version
9641 # flags to be left without arguments
9642 need_version=unknown
9647 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9648 shlibpath_var=LIBPATH
9650 # AIX 3 has no versioning support, so we append a major version to the name.
9651 soname_spec='${libname}${release}${shared_ext}$major'
9658 hardcode_into_libs=yes
9659 if test "$host_cpu" = ia64; then
9660 # AIX 5 supports IA64
9661 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9662 shlibpath_var=LD_LIBRARY_PATH
9664 # With GCC up to 2.95.x, collect2 would create an import file
9665 # for dependence libraries. The import file would start with
9666 # the line `#! .'. This would cause the generated library to
9667 # depend on `.', always an invalid library. This was fixed in
9668 # development snapshots of GCC prior to 3.0.
9670 aix4 | aix4.[01] | aix4.[01].*)
9671 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9673 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9680 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9681 # soname into executable. Probably we can add versioning support to
9682 # collect2, so additional links can be useful in future.
9683 if test "$aix_use_runtimelinking" = yes; then
9684 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9685 # instead of lib<name>.a to let people know that these are not
9686 # typical AIX shared libraries.
9687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9689 # We preserve .a as extension for shared libraries through AIX4.2
9690 # and later when we are not doing run time linking.
9691 library_names_spec='${libname}${release}.a $libname.a'
9692 soname_spec='${libname}${release}${shared_ext}$major'
9694 shlibpath_var=LIBPATH
9701 # Since July 2007 AmigaOS4 officially supports .so libraries.
9702 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9706 library_names_spec='$libname.ixlibrary $libname.a'
9707 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9708 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9714 library_names_spec='${libname}${shared_ext}'
9715 dynamic_linker="$host_os ld.so"
9716 shlibpath_var=LIBRARY_PATH
9722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9723 soname_spec='${libname}${release}${shared_ext}$major'
9724 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9725 shlibpath_var=LD_LIBRARY_PATH
9726 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9727 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9728 # the default ld.so.conf also contains /usr/contrib/lib and
9729 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9730 # libtool to hard-code these into programs
9733 cygwin* | mingw* | pw32* | cegcc*)
9734 version_type=windows
9739 case $GCC,$host_os in
9740 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9741 library_names_spec='$libname.dll.a'
9742 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9743 postinstall_cmds='base_file=`basename \${file}`~
9744 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9745 dldir=$destdir/`dirname \$dlpath`~
9746 test -d \$dldir || mkdir -p \$dldir~
9747 $install_prog $dir/$dlname \$dldir/$dlname~
9748 chmod a+x \$dldir/$dlname~
9749 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9750 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9752 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9753 dlpath=$dir/\$dldll~
9755 shlibpath_overrides_runpath=yes
9759 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9760 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9761 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9764 # MinGW DLLs use traditional 'lib' prefix
9765 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9766 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9767 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9768 # It is most probably a Windows format PATH printed by
9769 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9770 # path with ; separators, and with drive letters. We can handle the
9771 # drive letters (cygwin fileutils understands them), so leave them,
9772 # especially as we might pass files found there to a mingw objdump,
9773 # which wouldn't understand a cygwinified path. Ahh.
9774 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9776 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9780 # pw32 DLLs use 'pw' prefix rather than 'lib'
9781 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9787 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9790 dynamic_linker='Win32 ld.exe'
9791 # FIXME: first we should search . and the directory the executable is in
9795 darwin* | rhapsody*)
9796 dynamic_linker="$host_os dyld"
9800 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9801 soname_spec='${libname}${release}${major}$shared_ext'
9802 shlibpath_overrides_runpath=yes
9803 shlibpath_var=DYLD_LIBRARY_PATH
9804 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9806 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9807 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9815 soname_spec='${libname}${release}${shared_ext}$major'
9816 shlibpath_var=LD_LIBRARY_PATH
9823 freebsd* | dragonfly*)
9824 # DragonFly does not have aout. When/if they implement a new
9825 # versioning mechanism, adjust this.
9826 if test -x /usr/bin/objformat; then
9827 objformat=`/usr/bin/objformat`
9830 freebsd[123]*) objformat=aout ;;
9834 version_type=freebsd-$objformat
9835 case $version_type in
9837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9842 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9846 shlibpath_var=LD_LIBRARY_PATH
9849 shlibpath_overrides_runpath=yes
9851 freebsd3.[01]* | freebsdelf3.[01]*)
9852 shlibpath_overrides_runpath=yes
9853 hardcode_into_libs=yes
9855 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9856 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9857 shlibpath_overrides_runpath=no
9858 hardcode_into_libs=yes
9860 *) # from 4.6 on, and DragonFly
9861 shlibpath_overrides_runpath=yes
9862 hardcode_into_libs=yes
9871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9872 soname_spec='${libname}${release}${shared_ext}$major'
9873 shlibpath_var=LD_LIBRARY_PATH
9874 hardcode_into_libs=yes
9877 hpux9* | hpux10* | hpux11*)
9878 # Give a soname corresponding to the major version so that dld.sl refuses to
9879 # link against other versions.
9886 hardcode_into_libs=yes
9887 dynamic_linker="$host_os dld.so"
9888 shlibpath_var=LD_LIBRARY_PATH
9889 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9891 soname_spec='${libname}${release}${shared_ext}$major'
9892 if test "X$HPUX_IA64_MODE" = X32; then
9893 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9895 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9897 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9901 hardcode_into_libs=yes
9902 dynamic_linker="$host_os dld.sl"
9903 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9904 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9906 soname_spec='${libname}${release}${shared_ext}$major'
9907 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9908 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9912 dynamic_linker="$host_os dld.sl"
9913 shlibpath_var=SHLIB_PATH
9914 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9916 soname_spec='${libname}${release}${shared_ext}$major'
9919 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9920 postinstall_cmds='chmod 555 $lib'
9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9928 soname_spec='${libname}${release}${shared_ext}$major'
9929 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9930 shlibpath_var=LD_LIBRARY_PATH
9931 shlibpath_overrides_runpath=no
9932 hardcode_into_libs=yes
9935 irix5* | irix6* | nonstopux*)
9937 nonstopux*) version_type=nonstopux ;;
9939 if test "$lt_cv_prog_gnu_ld" = yes; then
9947 soname_spec='${libname}${release}${shared_ext}$major'
9948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9950 irix5* | nonstopux*)
9954 case $LD in # libtool.m4 will add one of these switches to LD
9955 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9956 libsuff= shlibsuff= libmagic=32-bit;;
9957 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9958 libsuff=32 shlibsuff=N32 libmagic=N32;;
9959 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9960 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9961 *) libsuff= shlibsuff= libmagic=never-match;;
9965 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9966 shlibpath_overrides_runpath=no
9967 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9968 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9969 hardcode_into_libs=yes
9972 # No shared lib support for Linux oldld, aout, or coff.
9973 linux*oldld* | linux*aout* | linux*coff*)
9977 # This must be Linux ELF.
9978 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9985 shlibpath_var=LD_LIBRARY_PATH
9986 shlibpath_overrides_runpath=no
9987 # Some binutils ld are patched to set DT_RUNPATH
9988 save_LDFLAGS=$LDFLAGS
9990 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9991 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993 /* end confdefs.h. */
10003 if ac_fn_c_try_link "$LINENO"; then :
10004 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10005 shlibpath_overrides_runpath=yes
10008 rm -f core conftest.err conftest.$ac_objext \
10009 conftest$ac_exeext conftest.$ac_ext
10010 LDFLAGS=$save_LDFLAGS
10011 libdir=$save_libdir
10013 # This implies no fast_install, which is unacceptable.
10014 # Some rework will be needed to allow for fast_install
10015 # before this can be enabled.
10016 hardcode_into_libs=yes
10018 # Append ld.so.conf contents to the search path
10019 if test -f /etc/ld.so.conf; then
10020 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;/^$/d' | tr '\n' ' '`
10021 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10024 # We used to test for /lib/ld.so.1 and disable shared libraries on
10025 # powerpc, because MkLinux only supported shared libraries with the
10026 # GNU dynamic linker. Since this was broken with cross compilers,
10027 # most powerpc-linux boxes support dynamic linking these days and
10028 # people can always --disable-shared, the test was removed, and we
10029 # assume the GNU/Linux dynamic linker is in use.
10030 dynamic_linker='GNU/Linux ld.so'
10037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10038 soname_spec='${libname}${release}${shared_ext}$major'
10039 shlibpath_var=LD_LIBRARY_PATH
10040 shlibpath_overrides_runpath=no
10041 hardcode_into_libs=yes
10042 dynamic_linker='NetBSD ld.elf_so'
10049 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10051 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10052 dynamic_linker='NetBSD (a.out) ld.so'
10054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10055 soname_spec='${libname}${release}${shared_ext}$major'
10056 dynamic_linker='NetBSD ld.elf_so'
10058 shlibpath_var=LD_LIBRARY_PATH
10059 shlibpath_overrides_runpath=yes
10060 hardcode_into_libs=yes
10065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10066 shlibpath_var=LD_LIBRARY_PATH
10067 shlibpath_overrides_runpath=yes
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075 soname_spec='${libname}${release}${shared_ext}$major'
10076 shlibpath_var=LD_LIBRARY_PATH
10077 shlibpath_overrides_runpath=no
10078 hardcode_into_libs=yes
10079 dynamic_linker='ldqnx.so'
10084 sys_lib_dlsearch_path_spec="/usr/lib"
10086 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10088 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10089 *) need_version=no ;;
10091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10093 shlibpath_var=LD_LIBRARY_PATH
10094 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10096 openbsd2.[89] | openbsd2.[89].*)
10097 shlibpath_overrides_runpath=no
10100 shlibpath_overrides_runpath=yes
10104 shlibpath_overrides_runpath=yes
10109 libname_spec='$name'
10112 library_names_spec='$libname${shared_ext} $libname.a'
10113 dynamic_linker='OS/2 ld.exe'
10114 shlibpath_var=LIBPATH
10117 osf3* | osf4* | osf5*)
10121 soname_spec='${libname}${release}${shared_ext}$major'
10122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10123 shlibpath_var=LD_LIBRARY_PATH
10124 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10125 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137 soname_spec='${libname}${release}${shared_ext}$major'
10138 shlibpath_var=LD_LIBRARY_PATH
10139 shlibpath_overrides_runpath=yes
10140 hardcode_into_libs=yes
10141 # ldd complains unless libraries are executable
10142 postinstall_cmds='chmod +x $lib'
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10148 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10149 shlibpath_var=LD_LIBRARY_PATH
10150 shlibpath_overrides_runpath=yes
10151 if test "$with_gnu_ld" = yes; then
10159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10160 soname_spec='${libname}${release}${shared_ext}$major'
10161 shlibpath_var=LD_LIBRARY_PATH
10162 case $host_vendor in
10164 shlibpath_overrides_runpath=no
10166 runpath_var=LD_RUN_PATH
10174 shlibpath_overrides_runpath=no
10175 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10181 if test -d /usr/nec ;then
10183 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10184 soname_spec='$libname${shared_ext}.$major'
10185 shlibpath_var=LD_LIBRARY_PATH
10189 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10190 version_type=freebsd-elf
10193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10194 soname_spec='${libname}${release}${shared_ext}$major'
10195 shlibpath_var=LD_LIBRARY_PATH
10196 shlibpath_overrides_runpath=yes
10197 hardcode_into_libs=yes
10198 if test "$with_gnu_ld" = yes; then
10199 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10201 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10204 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10208 sys_lib_dlsearch_path_spec='/usr/lib'
10212 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217 shlibpath_var=LD_LIBRARY_PATH
10218 shlibpath_overrides_runpath=no
10219 hardcode_into_libs=yes
10224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10225 soname_spec='${libname}${release}${shared_ext}$major'
10226 shlibpath_var=LD_LIBRARY_PATH
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10234 $as_echo "$dynamic_linker" >&6; }
10235 test "$dynamic_linker" = no && can_build_shared=no
10237 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10238 if test "$GCC" = yes; then
10239 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10242 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10243 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10245 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10246 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10336 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10338 if test -n "$hardcode_libdir_flag_spec" ||
10339 test -n "$runpath_var" ||
10340 test "X$hardcode_automatic" = "Xyes" ; then
10342 # We can hardcode non-existent directories.
10343 if test "$hardcode_direct" != no &&
10344 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10345 # have to relink, otherwise we might link with an installed library
10346 # when we should be linking with a yet-to-be-installed one
10347 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10348 test "$hardcode_minus_L" != no; then
10349 # Linking always hardcodes the temporary library directory.
10350 hardcode_action=relink
10352 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10353 hardcode_action=immediate
10356 # We cannot hardcode anything, or else we can only hardcode existing
10358 hardcode_action=unsupported
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10361 $as_echo "$hardcode_action" >&6; }
10363 if test "$hardcode_action" = relink ||
10364 test "$inherit_rpath" = yes; then
10365 # Fast installation is not supported
10366 enable_fast_install=no
10367 elif test "$shlibpath_overrides_runpath" = yes ||
10368 test "$enable_shared" = no; then
10369 # Fast installation is not necessary
10370 enable_fast_install=needless
10378 if test "x$enable_dlopen" != xyes; then
10379 enable_dlopen=unknown
10380 enable_dlopen_self=unknown
10381 enable_dlopen_self_static=unknown
10388 lt_cv_dlopen="load_add_on"
10390 lt_cv_dlopen_self=yes
10393 mingw* | pw32* | cegcc*)
10394 lt_cv_dlopen="LoadLibrary"
10399 lt_cv_dlopen="dlopen"
10404 # if libdl is installed we need to link against it
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10406 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10407 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10408 $as_echo_n "(cached) " >&6
10410 ac_check_lib_save_LIBS=$LIBS
10412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10413 /* end confdefs.h. */
10415 /* Override any GCC internal prototype to avoid an error.
10416 Use char because int might match the return type of a GCC
10417 builtin and then its argument prototype would still apply. */
10430 if ac_fn_c_try_link "$LINENO"; then :
10431 ac_cv_lib_dl_dlopen=yes
10433 ac_cv_lib_dl_dlopen=no
10435 rm -f core conftest.err conftest.$ac_objext \
10436 conftest$ac_exeext conftest.$ac_ext
10437 LIBS=$ac_check_lib_save_LIBS
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10440 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10441 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10442 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10445 lt_cv_dlopen="dyld"
10447 lt_cv_dlopen_self=yes
10454 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10455 if test "x$ac_cv_func_shl_load" = x""yes; then :
10456 lt_cv_dlopen="shl_load"
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10459 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10460 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10461 $as_echo_n "(cached) " >&6
10463 ac_check_lib_save_LIBS=$LIBS
10465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10466 /* end confdefs.h. */
10468 /* Override any GCC internal prototype to avoid an error.
10469 Use char because int might match the return type of a GCC
10470 builtin and then its argument prototype would still apply. */
10478 return shl_load ();
10483 if ac_fn_c_try_link "$LINENO"; then :
10484 ac_cv_lib_dld_shl_load=yes
10486 ac_cv_lib_dld_shl_load=no
10488 rm -f core conftest.err conftest.$ac_objext \
10489 conftest$ac_exeext conftest.$ac_ext
10490 LIBS=$ac_check_lib_save_LIBS
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10493 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10494 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10495 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10497 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10498 if test "x$ac_cv_func_dlopen" = x""yes; then :
10499 lt_cv_dlopen="dlopen"
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10502 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10503 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10504 $as_echo_n "(cached) " >&6
10506 ac_check_lib_save_LIBS=$LIBS
10508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10509 /* end confdefs.h. */
10511 /* Override any GCC internal prototype to avoid an error.
10512 Use char because int might match the return type of a GCC
10513 builtin and then its argument prototype would still apply. */
10526 if ac_fn_c_try_link "$LINENO"; then :
10527 ac_cv_lib_dl_dlopen=yes
10529 ac_cv_lib_dl_dlopen=no
10531 rm -f core conftest.err conftest.$ac_objext \
10532 conftest$ac_exeext conftest.$ac_ext
10533 LIBS=$ac_check_lib_save_LIBS
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10536 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10537 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10538 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10541 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10542 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10543 $as_echo_n "(cached) " >&6
10545 ac_check_lib_save_LIBS=$LIBS
10546 LIBS="-lsvld $LIBS"
10547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548 /* end confdefs.h. */
10550 /* Override any GCC internal prototype to avoid an error.
10551 Use char because int might match the return type of a GCC
10552 builtin and then its argument prototype would still apply. */
10565 if ac_fn_c_try_link "$LINENO"; then :
10566 ac_cv_lib_svld_dlopen=yes
10568 ac_cv_lib_svld_dlopen=no
10570 rm -f core conftest.err conftest.$ac_objext \
10571 conftest$ac_exeext conftest.$ac_ext
10572 LIBS=$ac_check_lib_save_LIBS
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10575 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10576 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10577 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10580 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10581 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10582 $as_echo_n "(cached) " >&6
10584 ac_check_lib_save_LIBS=$LIBS
10586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10587 /* end confdefs.h. */
10589 /* Override any GCC internal prototype to avoid an error.
10590 Use char because int might match the return type of a GCC
10591 builtin and then its argument prototype would still apply. */
10599 return dld_link ();
10604 if ac_fn_c_try_link "$LINENO"; then :
10605 ac_cv_lib_dld_dld_link=yes
10607 ac_cv_lib_dld_dld_link=no
10609 rm -f core conftest.err conftest.$ac_objext \
10610 conftest$ac_exeext conftest.$ac_ext
10611 LIBS=$ac_check_lib_save_LIBS
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10614 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10615 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10616 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10637 if test "x$lt_cv_dlopen" != xno; then
10643 case $lt_cv_dlopen in
10645 save_CPPFLAGS="$CPPFLAGS"
10646 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10648 save_LDFLAGS="$LDFLAGS"
10649 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10652 LIBS="$lt_cv_dlopen_libs $LIBS"
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10655 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10656 if test "${lt_cv_dlopen_self+set}" = set; then :
10657 $as_echo_n "(cached) " >&6
10659 if test "$cross_compiling" = yes; then :
10660 lt_cv_dlopen_self=cross
10662 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10663 lt_status=$lt_dlunknown
10664 cat > conftest.$ac_ext <<_LT_EOF
10665 #line 10665 "configure"
10666 #include "confdefs.h"
10675 # define LT_DLGLOBAL RTLD_GLOBAL
10678 # define LT_DLGLOBAL DL_GLOBAL
10680 # define LT_DLGLOBAL 0
10684 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10685 find out it does not work in some platform. */
10686 #ifndef LT_DLLAZY_OR_NOW
10688 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10691 # define LT_DLLAZY_OR_NOW DL_LAZY
10694 # define LT_DLLAZY_OR_NOW RTLD_NOW
10697 # define LT_DLLAZY_OR_NOW DL_NOW
10699 # define LT_DLLAZY_OR_NOW 0
10706 void fnord() { int i=42;}
10709 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10710 int status = $lt_dlunknown;
10714 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10715 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10716 /* dlclose (self); */
10724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10725 (eval $ac_link) 2>&5
10727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10728 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10729 (./conftest; exit; ) >&5 2>/dev/null
10731 case x$lt_status in
10732 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10733 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10734 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10737 # compilation failed
10738 lt_cv_dlopen_self=no
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10746 $as_echo "$lt_cv_dlopen_self" >&6; }
10748 if test "x$lt_cv_dlopen_self" = xyes; then
10749 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10751 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10752 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10753 $as_echo_n "(cached) " >&6
10755 if test "$cross_compiling" = yes; then :
10756 lt_cv_dlopen_self_static=cross
10758 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10759 lt_status=$lt_dlunknown
10760 cat > conftest.$ac_ext <<_LT_EOF
10761 #line 10761 "configure"
10762 #include "confdefs.h"
10771 # define LT_DLGLOBAL RTLD_GLOBAL
10774 # define LT_DLGLOBAL DL_GLOBAL
10776 # define LT_DLGLOBAL 0
10780 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10781 find out it does not work in some platform. */
10782 #ifndef LT_DLLAZY_OR_NOW
10784 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10787 # define LT_DLLAZY_OR_NOW DL_LAZY
10790 # define LT_DLLAZY_OR_NOW RTLD_NOW
10793 # define LT_DLLAZY_OR_NOW DL_NOW
10795 # define LT_DLLAZY_OR_NOW 0
10802 void fnord() { int i=42;}
10805 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10806 int status = $lt_dlunknown;
10810 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10811 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10812 /* dlclose (self); */
10820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10821 (eval $ac_link) 2>&5
10823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10824 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10825 (./conftest; exit; ) >&5 2>/dev/null
10827 case x$lt_status in
10828 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10829 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10830 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10833 # compilation failed
10834 lt_cv_dlopen_self_static=no
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10842 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10845 CPPFLAGS="$save_CPPFLAGS"
10846 LDFLAGS="$save_LDFLAGS"
10851 case $lt_cv_dlopen_self in
10852 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10853 *) enable_dlopen_self=unknown ;;
10856 case $lt_cv_dlopen_self_static in
10857 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10858 *) enable_dlopen_self_static=unknown ;;
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10881 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10882 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10883 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10884 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10886 $as_echo "yes" >&6; }
10888 # FIXME - insert some real tests, host_os isn't really good enough
10891 if test -n "$STRIP" ; then
10892 striplib="$STRIP -x"
10893 old_striplib="$STRIP -S"
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10895 $as_echo "yes" >&6; }
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10898 $as_echo "no" >&6; }
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10903 $as_echo "no" >&6; }
10919 # Report which library types will actually be built
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10921 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10923 $as_echo "$can_build_shared" >&6; }
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10926 $as_echo_n "checking whether to build shared libraries... " >&6; }
10927 test "$can_build_shared" = "no" && enable_shared=no
10929 # On AIX, shared libraries and static libraries use the same namespace, and
10930 # are all built from PIC.
10933 test "$enable_shared" = yes && enable_static=no
10934 if test -n "$RANLIB"; then
10935 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10936 postinstall_cmds='$RANLIB $lib'
10941 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10942 test "$enable_shared" = yes && enable_static=no
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10947 $as_echo "$enable_shared" >&6; }
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10950 $as_echo_n "checking whether to build static libraries... " >&6; }
10951 # Make sure either enable_shared or enable_static is yes.
10952 test "$enable_shared" = yes || enable_static=yes
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10954 $as_echo "$enable_static" >&6; }
10961 ac_cpp='$CPP $CPPFLAGS'
10962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10980 ac_config_commands="$ac_config_commands libtool"
10985 # Only expand once:
10989 # Honor aclocal flags
10990 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
10992 JSON_MAJOR_VERSION=0
10993 JSON_MINOR_VERSION=10
10994 JSON_MICRO_VERSION=4
10995 JSON_VERSION=0.10.4
10996 JSON_RELEASE_STATUS=release
11003 JSON_LT_CURRENT=1001
11006 JSON_LT_VERSION="$JSON_LT_CURRENT:$JSON_LT_REVISION:$JSON_LT_AGE"
11007 JSON_LT_LDFLAGS="-version-info $JSON_LT_VERSION"
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11011 $as_echo_n "checking for ANSI C header files... " >&6; }
11012 if test "${ac_cv_header_stdc+set}" = set; then :
11013 $as_echo_n "(cached) " >&6
11015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11016 /* end confdefs.h. */
11017 #include <stdlib.h>
11018 #include <stdarg.h>
11019 #include <string.h>
11030 if ac_fn_c_try_compile "$LINENO"; then :
11031 ac_cv_header_stdc=yes
11033 ac_cv_header_stdc=no
11035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11037 if test $ac_cv_header_stdc = yes; then
11038 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11040 /* end confdefs.h. */
11041 #include <string.h>
11044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11045 $EGREP "memchr" >/dev/null 2>&1; then :
11048 ac_cv_header_stdc=no
11054 if test $ac_cv_header_stdc = yes; then
11055 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11057 /* end confdefs.h. */
11058 #include <stdlib.h>
11061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11062 $EGREP "free" >/dev/null 2>&1; then :
11065 ac_cv_header_stdc=no
11071 if test $ac_cv_header_stdc = yes; then
11072 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11073 if test "$cross_compiling" = yes; then :
11076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11077 /* end confdefs.h. */
11079 #include <stdlib.h>
11080 #if ((' ' & 0x0FF) == 0x020)
11081 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11082 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11084 # define ISLOWER(c) \
11085 (('a' <= (c) && (c) <= 'i') \
11086 || ('j' <= (c) && (c) <= 'r') \
11087 || ('s' <= (c) && (c) <= 'z'))
11088 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11091 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11096 for (i = 0; i < 256; i++)
11097 if (XOR (islower (i), ISLOWER (i))
11098 || toupper (i) != TOUPPER (i))
11103 if ac_fn_c_try_run "$LINENO"; then :
11106 ac_cv_header_stdc=no
11108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11109 conftest.$ac_objext conftest.beam conftest.$ac_ext
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11115 $as_echo "$ac_cv_header_stdc" >&6; }
11116 if test $ac_cv_header_stdc = yes; then
11118 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11122 for ac_header in unistd.h
11124 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11125 if test "x$ac_cv_header_unistd_h" = x""yes; then :
11126 cat >>confdefs.h <<_ACEOF
11127 #define HAVE_UNISTD_H 1
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11135 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11136 if test "${ac_cv_c_const+set}" = set; then :
11137 $as_echo_n "(cached) " >&6
11139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11140 /* end confdefs.h. */
11145 /* FIXME: Include the comments suggested by Paul. */
11146 #ifndef __cplusplus
11147 /* Ultrix mips cc rejects this. */
11148 typedef int charset[2];
11150 /* SunOS 4.1.1 cc rejects this. */
11151 char const *const *pcpcc;
11153 /* NEC SVR4.0.2 mips cc rejects this. */
11154 struct point {int x, y;};
11155 static struct point const zero = {0,0};
11156 /* AIX XL C 1.02.0.0 rejects this.
11157 It does not let you subtract one const X* pointer from another in
11158 an arm of an if-expression whose if-part is not a constant
11160 const char *g = "string";
11161 pcpcc = &g + (g ? g-g : 0);
11162 /* HPUX 7.0 cc rejects these. */
11164 ppc = (char**) pcpcc;
11165 pcpcc = (char const *const *) ppc;
11166 { /* SCO 3.2v4 cc rejects this. */
11168 char const *s = 0 ? (char *) 0 : (char const *) 0;
11173 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11174 int x[] = {25, 17};
11175 const int *foo = &x[0];
11178 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11179 typedef const int *iptr;
11183 { /* AIX XL C 1.02.0.0 rejects this saying
11184 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11185 struct s { int j; const int *ap[3]; };
11186 struct s *b; b->j = 5;
11188 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11189 const int foo = 10;
11190 if (!foo) return 0;
11192 return !cs[0] && !zero.x;
11199 if ac_fn_c_try_compile "$LINENO"; then :
11204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11207 $as_echo "$ac_cv_c_const" >&6; }
11208 if test $ac_cv_c_const = no; then
11210 $as_echo "#define const /**/" >>confdefs.h
11214 for ac_header in stdlib.h
11216 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11217 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
11218 cat >>confdefs.h <<_ACEOF
11219 #define HAVE_STDLIB_H 1
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
11227 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
11228 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
11229 $as_echo_n "(cached) " >&6
11231 if test "$cross_compiling" = yes; then :
11232 ac_cv_func_malloc_0_nonnull=no
11234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11235 /* end confdefs.h. */
11236 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11237 # include <stdlib.h>
11245 return ! malloc (0);
11250 if ac_fn_c_try_run "$LINENO"; then :
11251 ac_cv_func_malloc_0_nonnull=yes
11253 ac_cv_func_malloc_0_nonnull=no
11255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11256 conftest.$ac_objext conftest.beam conftest.$ac_ext
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
11261 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
11262 if test $ac_cv_func_malloc_0_nonnull = yes; then :
11264 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
11267 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
11269 case " $LIBOBJS " in
11270 *" malloc.$ac_objext "* ) ;;
11271 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
11276 $as_echo "#define malloc rpl_malloc" >>confdefs.h
11284 for ac_header in $ac_header_list
11286 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11287 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11289 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11290 cat >>confdefs.h <<_ACEOF
11291 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11305 for ac_func in getpagesize
11307 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11308 if test "x$ac_cv_func_getpagesize" = x""yes; then :
11309 cat >>confdefs.h <<_ACEOF
11310 #define HAVE_GETPAGESIZE 1
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11317 $as_echo_n "checking for working mmap... " >&6; }
11318 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
11319 $as_echo_n "(cached) " >&6
11321 if test "$cross_compiling" = yes; then :
11322 ac_cv_func_mmap_fixed_mapped=no
11324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11325 /* end confdefs.h. */
11326 $ac_includes_default
11327 /* malloc might have been renamed as rpl_malloc. */
11330 /* Thanks to Mike Haertel and Jim Avera for this test.
11331 Here is a matrix of mmap possibilities:
11332 mmap private not fixed
11333 mmap private fixed at somewhere currently unmapped
11334 mmap private fixed at somewhere already mapped
11335 mmap shared not fixed
11336 mmap shared fixed at somewhere currently unmapped
11337 mmap shared fixed at somewhere already mapped
11338 For private mappings, we should verify that changes cannot be read()
11339 back from the file, nor mmap's back from the file at a different
11340 address. (There have been systems where private was not correctly
11341 implemented like the infamous i386 svr4.0, and systems where the
11342 VM page cache was not coherent with the file system buffer cache
11343 like early versions of FreeBSD and possibly contemporary NetBSD.)
11344 For shared mappings, we should conversely verify that changes get
11345 propagated back to all the places they're supposed to be.
11347 Grep wants private fixed already mapped.
11348 The main things grep needs to know about mmap are:
11349 * does it exist and is it safe to write into the mmap'd area
11350 * how to use it (BSD variants) */
11353 #include <sys/mman.h>
11355 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11359 /* This mess was copied from the GNU getpagesize.h. */
11360 #ifndef HAVE_GETPAGESIZE
11361 # ifdef _SC_PAGESIZE
11362 # define getpagesize() sysconf(_SC_PAGESIZE)
11363 # else /* no _SC_PAGESIZE */
11364 # ifdef HAVE_SYS_PARAM_H
11365 # include <sys/param.h>
11366 # ifdef EXEC_PAGESIZE
11367 # define getpagesize() EXEC_PAGESIZE
11368 # else /* no EXEC_PAGESIZE */
11370 # define getpagesize() NBPG * CLSIZE
11373 # endif /* no CLSIZE */
11374 # else /* no NBPG */
11376 # define getpagesize() NBPC
11377 # else /* no NBPC */
11379 # define getpagesize() PAGESIZE
11380 # endif /* PAGESIZE */
11381 # endif /* no NBPC */
11382 # endif /* no NBPG */
11383 # endif /* no EXEC_PAGESIZE */
11384 # else /* no HAVE_SYS_PARAM_H */
11385 # define getpagesize() 8192 /* punt totally */
11386 # endif /* no HAVE_SYS_PARAM_H */
11387 # endif /* no _SC_PAGESIZE */
11389 #endif /* no HAVE_GETPAGESIZE */
11394 char *data, *data2, *data3;
11395 const char *cdata2;
11399 pagesize = getpagesize ();
11401 /* First, make a file with some known garbage in it. */
11402 data = (char *) malloc (pagesize);
11405 for (i = 0; i < pagesize; ++i)
11406 *(data + i) = rand ();
11408 fd = creat ("conftest.mmap", 0600);
11411 if (write (fd, data, pagesize) != pagesize)
11415 /* Next, check that the tail of a page is zero-filled. File must have
11416 non-zero length, otherwise we risk SIGBUS for entire page. */
11417 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
11421 if (write (fd2, cdata2, 1) != 1)
11423 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
11424 if (data2 == MAP_FAILED)
11426 for (i = 0; i < pagesize; ++i)
11430 if (munmap (data2, pagesize))
11433 /* Next, try to mmap the file at a fixed address which already has
11434 something else allocated at it. If we can, also make sure that
11435 we see the same garbage. */
11436 fd = open ("conftest.mmap", O_RDWR);
11439 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11440 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11442 for (i = 0; i < pagesize; ++i)
11443 if (*(data + i) != *(data2 + i))
11446 /* Finally, make sure that changes to the mapped area do not
11447 percolate back to the file as seen by read(). (This is a bug on
11448 some variants of i386 svr4.0.) */
11449 for (i = 0; i < pagesize; ++i)
11450 *(data2 + i) = *(data2 + i) + 1;
11451 data3 = (char *) malloc (pagesize);
11454 if (read (fd, data3, pagesize) != pagesize)
11456 for (i = 0; i < pagesize; ++i)
11457 if (*(data + i) != *(data3 + i))
11463 if ac_fn_c_try_run "$LINENO"; then :
11464 ac_cv_func_mmap_fixed_mapped=yes
11466 ac_cv_func_mmap_fixed_mapped=no
11468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11469 conftest.$ac_objext conftest.beam conftest.$ac_ext
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11474 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11475 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11477 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11480 rm -f conftest.mmap conftest.txt
11483 GLIB_PREFIX="`$PKG_CONFIG --variable=prefix glib-2.0`"
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
11489 $as_echo_n "checking for JSON... " >&6; }
11491 if test -n "$JSON_CFLAGS"; then
11492 pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
11493 elif test -n "$PKG_CONFIG"; then
11494 if test -n "$PKG_CONFIG" && \
11495 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 >= 2.15\""; } >&5
11496 ($PKG_CONFIG --exists --print-errors "gobject-2.0 >= 2.15") 2>&5
11498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11499 test $ac_status = 0; }; then
11500 pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 >= 2.15" 2>/dev/null`
11507 if test -n "$JSON_LIBS"; then
11508 pkg_cv_JSON_LIBS="$JSON_LIBS"
11509 elif test -n "$PKG_CONFIG"; then
11510 if test -n "$PKG_CONFIG" && \
11511 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 >= 2.15\""; } >&5
11512 ($PKG_CONFIG --exists --print-errors "gobject-2.0 >= 2.15") 2>&5
11514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11515 test $ac_status = 0; }; then
11516 pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "gobject-2.0 >= 2.15" 2>/dev/null`
11526 if test $pkg_failed = yes; then
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11528 $as_echo "no" >&6; }
11530 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11531 _pkg_short_errors_supported=yes
11533 _pkg_short_errors_supported=no
11535 if test $_pkg_short_errors_supported = yes; then
11536 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gobject-2.0 >= 2.15" 2>&1`
11538 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors "gobject-2.0 >= 2.15" 2>&1`
11540 # Put the nasty error message in config.log where it belongs
11541 echo "$JSON_PKG_ERRORS" >&5
11543 as_fn_error $? "Package requirements (gobject-2.0 >= 2.15) were not met:
11547 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11548 installed software in a non-standard prefix.
11550 Alternatively, you may set the environment variables JSON_CFLAGS
11551 and JSON_LIBS to avoid the need to call pkg-config.
11552 See the pkg-config man page for more details." "$LINENO" 5
11553 elif test $pkg_failed = untried; then
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11555 $as_echo "no" >&6; }
11556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11558 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11559 is in your PATH or set the PKG_CONFIG environment variable to the full
11560 path to pkg-config.
11562 Alternatively, you may set the environment variables JSON_CFLAGS
11563 and JSON_LIBS to avoid the need to call pkg-config.
11564 See the pkg-config man page for more details.
11566 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11567 See \`config.log' for more details" "$LINENO" 5 ; }
11569 JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
11570 JSON_LIBS=$pkg_cv_JSON_LIBS
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11572 $as_echo "yes" >&6; }
11578 if test "x$enable_glibtest" = "xyes"; then
11579 ENABLE_GLIB_TEST_TRUE=
11580 ENABLE_GLIB_TEST_FALSE='#'
11582 ENABLE_GLIB_TEST_TRUE='#'
11583 ENABLE_GLIB_TEST_FALSE=
11590 # Check whether --enable-debug was given.
11591 if test "${enable_debug+set}" = set; then :
11592 enableval=$enable_debug;
11594 enable_debug=minimum
11598 case $enable_debug in #(
11601 test "$cflags_set" = set || CFLAGS="$CFLAGS -g"
11602 JSON_DEBUG_CFLAGS="-DJSON_ENABLE_DEBUG"
11606 JSON_DEBUG_CFLAGS="-DJSON_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS"
11610 JSON_DEBUG_CFLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS"
11613 as_fn_error $? "Unknown argument to --enable-debug" "$LINENO" 5
11620 # use strict compiler flags only on development releases
11622 # Check whether --enable-maintainer-flags was given.
11623 if test "${enable_maintainer_flags+set}" = set; then :
11624 enableval=$enable_maintainer_flags;
11626 enable_maintainer_flags=no
11630 if test "x$enable_maintainer_flags" = "xyes" && test "x$GCC" = "xyes"; then :
11633 list="-Werror -Wall -Wshadow -Wcast-align
11634 -Wno-uninitialized -Wformat-security
11635 -Wno-strict-aliasing -Winit-self
11636 -Wempty-body -Wdeclaration-after-statement
11637 -Wno-strict-aliasing -Wno-strict-aliasing"
11639 flags_unsupported=""
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported compiler flags" >&5
11641 $as_echo_n "checking for supported compiler flags... " >&6; }
11644 save_CFLAGS="$CFLAGS"
11645 CFLAGS="$CFLAGS $each"
11646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11647 /* end confdefs.h. */
11657 if ac_fn_c_try_compile "$LINENO"; then :
11662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11663 CFLAGS="$save_CFLAGS"
11665 if test "X$flag_ok" = Xyes ; then
11666 flags_supported="$flags_supported $each"
11668 flags_unsupported="$flags_unsupported $each"
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flags_supported" >&5
11672 $as_echo "$flags_supported" >&6; }
11673 if test "X$flags_unsupported" != X ; then
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsupported compiler flags: $flags_unsupported" >&5
11675 $as_echo "$as_me: WARNING: unsupported compiler flags: $flags_unsupported" >&2;}
11677 MAINTAINER_CFLAGS="$MAINTAINER_CFLAGS $flags_supported"
11686 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
11687 set dummy gtkdoc-check; ac_word=$2
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11689 $as_echo_n "checking for $ac_word... " >&6; }
11690 if test "${ac_cv_path_GTKDOC_CHECK+set}" = set; then :
11691 $as_echo_n "(cached) " >&6
11693 case $GTKDOC_CHECK in
11695 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
11698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11699 for as_dir in $PATH
11702 test -z "$as_dir" && as_dir=.
11703 for ac_exec_ext in '' $ac_executable_extensions; do
11704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11705 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
11706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11716 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
11717 if test -n "$GTKDOC_CHECK"; then
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
11719 $as_echo "$GTKDOC_CHECK" >&6; }
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11722 $as_echo "no" >&6; }
11726 for ac_prog in gtkdoc-rebase
11728 # Extract the first word of "$ac_prog", so it can be a program name with args.
11729 set dummy $ac_prog; ac_word=$2
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11731 $as_echo_n "checking for $ac_word... " >&6; }
11732 if test "${ac_cv_path_GTKDOC_REBASE+set}" = set; then :
11733 $as_echo_n "(cached) " >&6
11735 case $GTKDOC_REBASE in
11737 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
11740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11741 for as_dir in $PATH
11744 test -z "$as_dir" && as_dir=.
11745 for ac_exec_ext in '' $ac_executable_extensions; do
11746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11747 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
11748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11758 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
11759 if test -n "$GTKDOC_REBASE"; then
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
11761 $as_echo "$GTKDOC_REBASE" >&6; }
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764 $as_echo "no" >&6; }
11768 test -n "$GTKDOC_REBASE" && break
11770 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
11772 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
11773 set dummy gtkdoc-mkpdf; ac_word=$2
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11775 $as_echo_n "checking for $ac_word... " >&6; }
11776 if test "${ac_cv_path_GTKDOC_MKPDF+set}" = set; then :
11777 $as_echo_n "(cached) " >&6
11779 case $GTKDOC_MKPDF in
11781 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
11784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785 for as_dir in $PATH
11788 test -z "$as_dir" && as_dir=.
11789 for ac_exec_ext in '' $ac_executable_extensions; do
11790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11791 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
11792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11802 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
11803 if test -n "$GTKDOC_MKPDF"; then
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
11805 $as_echo "$GTKDOC_MKPDF" >&6; }
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808 $as_echo "no" >&6; }
11814 # Check whether --with-html-dir was given.
11815 if test "${with_html_dir+set}" = set; then :
11816 withval=$with_html_dir;
11818 with_html_dir='${datadir}/gtk-doc/html'
11821 HTML_DIR="$with_html_dir"
11824 # Check whether --enable-gtk-doc was given.
11825 if test "${enable_gtk_doc+set}" = set; then :
11826 enableval=$enable_gtk_doc;
11832 if test x$enable_gtk_doc = xyes; then
11833 if test -n "$PKG_CONFIG" && \
11834 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.11\""; } >&5
11835 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.11") 2>&5
11837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11838 test $ac_status = 0; }; then
11841 as_fn_error $? "You need to have gtk-doc >= 1.11 installed to build $PACKAGE_NAME" "$LINENO" 5
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
11846 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
11848 $as_echo "$enable_gtk_doc" >&6; }
11850 # Check whether --enable-gtk-doc-html was given.
11851 if test "${enable_gtk_doc_html+set}" = set; then :
11852 enableval=$enable_gtk_doc_html;
11854 enable_gtk_doc_html=yes
11857 # Check whether --enable-gtk-doc-pdf was given.
11858 if test "${enable_gtk_doc_pdf+set}" = set; then :
11859 enableval=$enable_gtk_doc_pdf;
11861 enable_gtk_doc_pdf=no
11865 if test -z "$GTKDOC_MKPDF"; then
11866 enable_gtk_doc_pdf=no
11870 if test x$enable_gtk_doc = xyes; then
11871 ENABLE_GTK_DOC_TRUE=
11872 ENABLE_GTK_DOC_FALSE='#'
11874 ENABLE_GTK_DOC_TRUE='#'
11875 ENABLE_GTK_DOC_FALSE=
11878 if test x$enable_gtk_doc_html = xyes; then
11879 GTK_DOC_BUILD_HTML_TRUE=
11880 GTK_DOC_BUILD_HTML_FALSE='#'
11882 GTK_DOC_BUILD_HTML_TRUE='#'
11883 GTK_DOC_BUILD_HTML_FALSE=
11886 if test x$enable_gtk_doc_pdf = xyes; then
11887 GTK_DOC_BUILD_PDF_TRUE=
11888 GTK_DOC_BUILD_PDF_FALSE='#'
11890 GTK_DOC_BUILD_PDF_TRUE='#'
11891 GTK_DOC_BUILD_PDF_FALSE=
11894 if test -n "$LIBTOOL"; then
11895 GTK_DOC_USE_LIBTOOL_TRUE=
11896 GTK_DOC_USE_LIBTOOL_FALSE='#'
11898 GTK_DOC_USE_LIBTOOL_TRUE='#'
11899 GTK_DOC_USE_LIBTOOL_FALSE=
11902 if test -n "$GTKDOC_REBASE"; then
11903 GTK_DOC_USE_REBASE_TRUE=
11904 GTK_DOC_USE_REBASE_FALSE='#'
11906 GTK_DOC_USE_REBASE_TRUE='#'
11907 GTK_DOC_USE_REBASE_FALSE=
11915 # Check whether --enable-introspection was given.
11916 if test "${enable_introspection+set}" = set; then :
11917 enableval=$enable_introspection;
11919 enable_introspection=auto
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
11924 $as_echo_n "checking for gobject-introspection... " >&6; }
11926 case $enable_introspection in #(
11928 found_introspection="no (disabled, use --enable-introspection to enable)"
11931 if test -n "$PKG_CONFIG" && \
11932 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
11933 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
11935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11936 test $ac_status = 0; }; then
11939 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
11941 if test -n "$PKG_CONFIG" && \
11942 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.4\""; } >&5
11943 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.4") 2>&5
11945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11946 test $ac_status = 0; }; then
11947 found_introspection=yes
11949 as_fn_error $? "You need to have gobject-introspection >= 0.6.4 installed to build json-glib" "$LINENO" 5
11953 if test -n "$PKG_CONFIG" && \
11954 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.4\""; } >&5
11955 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.4") 2>&5
11957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11958 test $ac_status = 0; }; then
11959 found_introspection=yes
11961 found_introspection=no
11965 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
11969 $as_echo "$found_introspection" >&6; }
11971 INTROSPECTION_SCANNER=
11972 INTROSPECTION_COMPILER=
11973 INTROSPECTION_GENERATE=
11974 INTROSPECTION_GIRDIR=
11975 INTROSPECTION_TYPELIBDIR=
11976 if test "x$found_introspection" = "xyes"; then
11977 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
11978 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
11979 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
11980 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
11981 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
11989 if test "x$found_introspection" = "xyes"; then
11990 HAVE_INTROSPECTION_TRUE=
11991 HAVE_INTROSPECTION_FALSE='#'
11993 HAVE_INTROSPECTION_TRUE='#'
11994 HAVE_INTROSPECTION_FALSE=
12001 # Check whether --enable-silent-rules was given.
12002 if test "${enable_silent_rules+set}" = set; then :
12003 enableval=$enable_silent_rules;
12006 case $enable_silent_rules in
12007 yes) AM_DEFAULT_VERBOSITY=0;;
12008 no) AM_DEFAULT_VERBOSITY=1;;
12009 *) AM_DEFAULT_VERBOSITY=0;;
12016 if test "x$use_shave" = "xyes"; then
12018 USE_SHAVE_FALSE='#'
12025 ac_config_files="$ac_config_files Makefile build/Makefile build/autotools/Makefile json-glib/Makefile json-glib/json-version.h json-glib/tests/Makefile tests/Makefile doc/Makefile doc/reference/Makefile doc/reference/version.xml json-glib.pc"
12028 cat >confcache <<\_ACEOF
12029 # This file is a shell script that caches the results of configure
12030 # tests run on this system so they can be shared between configure
12031 # scripts and configure runs, see configure's option --config-cache.
12032 # It is not useful on other systems. If it contains results you don't
12033 # want to keep, you may remove or edit it.
12035 # config.status only pays attention to the cache file if you give it
12036 # the --recheck option to rerun configure.
12038 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12039 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12040 # following values.
12044 # The following way of writing the cache mishandles newlines in values,
12045 # but we know of no workaround that is simple, portable, and efficient.
12046 # So, we kill variables containing newlines.
12047 # Ultrix sh set writes to stderr and can't be redirected directly,
12048 # and sets the high bit in the cache file unless we assign to the vars.
12050 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12051 eval ac_val=\$$ac_var
12055 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12056 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12059 _ | IFS | as_nl) ;; #(
12060 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12061 *) { eval $ac_var=; unset $ac_var;} ;;
12067 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12068 *${as_nl}ac_space=\ *)
12069 # `set' does not quote correctly, so add quotes: double-quote
12070 # substitution turns \\\\ into \\, and sed turns \\ into \.
12073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12076 # `set' quotes correctly as required by POSIX, so do not add quotes.
12077 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12086 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12088 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12090 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12091 if test -w "$cache_file"; then
12092 test "x$cache_file" != "x/dev/null" &&
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12094 $as_echo "$as_me: updating cache $cache_file" >&6;}
12095 cat confcache >$cache_file
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12098 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12103 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12104 # Let make expand exec_prefix.
12105 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12107 DEFS=-DHAVE_CONFIG_H
12112 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12113 # 1. Remove the extension, and $U if already installed.
12114 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12115 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12116 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12117 # will be set to the directory where LIBOBJS objects are built.
12118 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12119 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12121 LIBOBJS=$ac_libobjs
12123 LTLIBOBJS=$ac_ltlibobjs
12126 if test -n "$EXEEXT"; then
12128 am__EXEEXT_FALSE='#'
12130 am__EXEEXT_TRUE='#'
12134 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12135 as_fn_error $? "conditional \"AMDEP\" was never defined.
12136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12138 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12139 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12142 if test -z "${ENABLE_GLIB_TEST_TRUE}" && test -z "${ENABLE_GLIB_TEST_FALSE}"; then
12143 as_fn_error $? "conditional \"ENABLE_GLIB_TEST\" was never defined.
12144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12146 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
12147 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
12148 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12150 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
12151 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
12152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12154 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
12155 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
12156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12158 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
12159 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
12160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12162 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
12163 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
12164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12166 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
12167 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
12168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12170 if test -z "${USE_SHAVE_TRUE}" && test -z "${USE_SHAVE_FALSE}"; then
12171 as_fn_error $? "conditional \"USE_SHAVE\" was never defined.
12172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12175 : ${CONFIG_STATUS=./config.status}
12177 ac_clean_files_save=$ac_clean_files
12178 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12180 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12182 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12184 # Generated by $as_me.
12185 # Run this file to recreate the current configuration.
12186 # Compiler output produced by configure, useful for debugging
12187 # configure, is in config.log if it exists.
12190 ac_cs_recheck=false
12193 SHELL=\${CONFIG_SHELL-$SHELL}
12196 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12197 ## -------------------- ##
12198 ## M4sh Initialization. ##
12199 ## -------------------- ##
12201 # Be more Bourne compatible
12202 DUALCASE=1; export DUALCASE # for MKS sh
12203 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12206 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12207 # is contrary to our usage. Disable this feature.
12208 alias -g '${1+"$@"}'='"$@"'
12209 setopt NO_GLOB_SUBST
12211 case `(set -o) 2>/dev/null` in #(
12223 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12224 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12225 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12226 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12227 # Prefer a ksh shell builtin over an external printf program on Solaris,
12228 # but without wasting forks for bash or zsh.
12229 if test -z "$BASH_VERSION$ZSH_VERSION" \
12230 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12231 as_echo='print -r --'
12232 as_echo_n='print -rn --'
12233 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12234 as_echo='printf %s\n'
12235 as_echo_n='printf %s'
12237 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12238 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12239 as_echo_n='/usr/ucb/echo -n'
12241 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12242 as_echo_n_body='eval
12246 expr "X$arg" : "X\\(.*\\)$as_nl";
12247 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12249 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12251 export as_echo_n_body
12252 as_echo_n='sh -c $as_echo_n_body as_echo'
12254 export as_echo_body
12255 as_echo='sh -c $as_echo_body as_echo'
12258 # The user is always right.
12259 if test "${PATH_SEPARATOR+set}" != set; then
12261 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12262 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12269 # We need space, tab and new line, in precisely that order. Quoting is
12270 # there to prevent editors from complaining about space-tab.
12271 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12272 # splitting by setting IFS to empty value.)
12275 # Find who we are. Look in the path if we contain no directory separator.
12277 *[\\/]* ) as_myself=$0 ;;
12278 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12279 for as_dir in $PATH
12282 test -z "$as_dir" && as_dir=.
12283 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12289 # We did not find ourselves, most probably we were run as `sh COMMAND'
12290 # in which case we are not to be found in the path.
12291 if test "x$as_myself" = x; then
12294 if test ! -f "$as_myself"; then
12295 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12299 # Unset variables that we do not need and which cause bugs (e.g. in
12300 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12301 # suppresses any "Segmentation fault" message there. '((' could
12302 # trigger a bug in pdksh 5.2.14.
12303 for as_var in BASH_ENV ENV MAIL MAILPATH
12304 do eval test x\${$as_var+set} = xset \
12305 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12318 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12321 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12322 # ----------------------------------------
12323 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12324 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12325 # script with STATUS, using 1 if that was 0.
12328 as_status=$1; test $as_status -eq 0 && as_status=1
12330 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12331 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12333 $as_echo "$as_me: error: $2" >&2
12334 as_fn_exit $as_status
12338 # as_fn_set_status STATUS
12339 # -----------------------
12340 # Set $? to STATUS, without forking.
12341 as_fn_set_status ()
12344 } # as_fn_set_status
12346 # as_fn_exit STATUS
12347 # -----------------
12348 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12352 as_fn_set_status $1
12358 # Portably unset VAR.
12361 { eval $1=; unset $1;}
12363 as_unset=as_fn_unset
12364 # as_fn_append VAR VALUE
12365 # ----------------------
12366 # Append the text in VALUE to the end of the definition contained in VAR. Take
12367 # advantage of any shell optimizations that allow amortized linear growth over
12368 # repeated appends, instead of the typical quadratic growth present in naive
12370 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12371 eval 'as_fn_append ()
12382 # as_fn_arith ARG...
12383 # ------------------
12384 # Perform arithmetic evaluation on the ARGs, and store the result in the
12385 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12386 # must be portable across $(()) and expr.
12387 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12388 eval 'as_fn_arith ()
12395 as_val=`expr "$@" || test $? -eq 1`
12400 if expr a : '\(a\)' >/dev/null 2>&1 &&
12401 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12407 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12408 as_basename=basename
12413 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12419 as_me=`$as_basename -- "$0" ||
12420 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12421 X"$0" : 'X\(//\)$' \| \
12422 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12424 sed '/^.*\/\([^/][^/]*\)\/*$/{
12438 # Avoid depending upon Character Ranges.
12439 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12440 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12441 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12442 as_cr_digits='0123456789'
12443 as_cr_alnum=$as_cr_Letters$as_cr_digits
12445 ECHO_C= ECHO_N= ECHO_T=
12446 case `echo -n x` in #(((((
12448 case `echo 'xy\c'` in
12449 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12451 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12458 rm -f conf$$ conf$$.exe conf$$.file
12459 if test -d conf$$.dir; then
12460 rm -f conf$$.dir/conf$$.file
12463 mkdir conf$$.dir 2>/dev/null
12465 if (echo >conf$$.file) 2>/dev/null; then
12466 if ln -s conf$$.file conf$$ 2>/dev/null; then
12468 # ... but there are two gotchas:
12469 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12470 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12471 # In both cases, we have to default to `cp -p'.
12472 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12474 elif ln conf$$.file conf$$ 2>/dev/null; then
12482 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12483 rmdir conf$$.dir 2>/dev/null
12488 # Create "$as_dir" as a directory, including parents if necessary.
12493 -*) as_dir=./$as_dir;;
12495 test -d "$as_dir" || eval $as_mkdir_p || {
12499 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12500 *) as_qdir=$as_dir;;
12502 as_dirs="'$as_qdir' $as_dirs"
12503 as_dir=`$as_dirname -- "$as_dir" ||
12504 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12505 X"$as_dir" : 'X\(//\)[^/]' \| \
12506 X"$as_dir" : 'X\(//\)$' \| \
12507 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12508 $as_echo X"$as_dir" |
12509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12513 /^X\(\/\/\)[^/].*/{
12526 test -d "$as_dir" && break
12528 test -z "$as_dirs" || eval "mkdir $as_dirs"
12529 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12533 if mkdir -p . 2>/dev/null; then
12534 as_mkdir_p='mkdir -p "$as_dir"'
12536 test -d ./-p && rmdir ./-p
12540 if test -x / >/dev/null 2>&1; then
12541 as_test_x='test -x'
12543 if ls -dL / >/dev/null 2>&1; then
12550 if test -d "$1"; then
12556 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12557 ???[sx]*):;;*)false;;esac;fi
12561 as_executable_p=$as_test_x
12563 # Sed expression to map a string onto a valid CPP name.
12564 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12566 # Sed expression to map a string onto a valid variable name.
12567 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12571 ## ----------------------------------- ##
12572 ## Main body of $CONFIG_STATUS script. ##
12573 ## ----------------------------------- ##
12575 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12578 # Save the log message, to keep $0 and so on meaningful, and to
12579 # report actual input values of CONFIG_FILES etc. instead of their
12580 # values after options handling.
12582 This file was extended by json-glib $as_me 0.10.4, which was
12583 generated by GNU Autoconf 2.67. Invocation command line was
12585 CONFIG_FILES = $CONFIG_FILES
12586 CONFIG_HEADERS = $CONFIG_HEADERS
12587 CONFIG_LINKS = $CONFIG_LINKS
12588 CONFIG_COMMANDS = $CONFIG_COMMANDS
12591 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12596 case $ac_config_files in *"
12597 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12600 case $ac_config_headers in *"
12601 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12606 # Files that config.status was made for.
12607 config_files="$ac_config_files"
12608 config_headers="$ac_config_headers"
12609 config_commands="$ac_config_commands"
12613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12615 \`$as_me' instantiates files and other configuration actions
12616 from templates according to the current configuration. Unless the files
12617 and actions are specified as TAGs, all are instantiated by default.
12619 Usage: $0 [OPTION]... [TAG]...
12621 -h, --help print this help, then exit
12622 -V, --version print version number and configuration settings, then exit
12623 --config print configuration, then exit
12624 -q, --quiet, --silent
12625 do not print progress messages
12626 -d, --debug don't remove temporary files
12627 --recheck update $as_me by reconfiguring in the same conditions
12628 --file=FILE[:TEMPLATE]
12629 instantiate the configuration file FILE
12630 --header=FILE[:TEMPLATE]
12631 instantiate the configuration header FILE
12633 Configuration files:
12636 Configuration headers:
12639 Configuration commands:
12642 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib>."
12645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12646 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12648 json-glib config.status 0.10.4
12649 configured by $0, generated by GNU Autoconf 2.67,
12650 with options \\"\$ac_cs_config\\"
12652 Copyright (C) 2010 Free Software Foundation, Inc.
12653 This config.status script is free software; the Free Software Foundation
12654 gives unlimited permission to copy, distribute and modify it."
12661 test -n "\$AWK" || AWK=awk
12664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12665 # The default lists apply if the user does not specify any file.
12671 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12672 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12676 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12688 # Handling of the options.
12689 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12691 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12692 $as_echo "$ac_cs_version"; exit ;;
12693 --config | --confi | --conf | --con | --co | --c )
12694 $as_echo "$ac_cs_config"; exit ;;
12695 --debug | --debu | --deb | --de | --d | -d )
12697 --file | --fil | --fi | --f )
12700 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12701 '') as_fn_error $? "missing file argument" ;;
12703 as_fn_append CONFIG_FILES " '$ac_optarg'"
12704 ac_need_defaults=false;;
12705 --header | --heade | --head | --hea )
12708 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12710 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12711 ac_need_defaults=false;;
12713 # Conflict between --help and --header
12714 as_fn_error $? "ambiguous option: \`$1'
12715 Try \`$0 --help' for more information.";;
12716 --help | --hel | -h )
12717 $as_echo "$ac_cs_usage"; exit ;;
12718 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12719 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12722 # This is an error.
12723 -*) as_fn_error $? "unrecognized option: \`$1'
12724 Try \`$0 --help' for more information." ;;
12726 *) as_fn_append ac_config_targets " $1"
12727 ac_need_defaults=false ;;
12733 ac_configure_extra_args=
12735 if $ac_cs_silent; then
12737 ac_configure_extra_args="$ac_configure_extra_args --silent"
12741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12742 if \$ac_cs_recheck; then
12743 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12745 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12746 CONFIG_SHELL='$SHELL'
12747 export CONFIG_SHELL
12752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12756 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12757 ## Running $as_me. ##
12763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12767 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12770 # The HP-UX ksh and POSIX shell print the target directory to stdout
12771 # if CDPATH is set.
12772 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12774 sed_quote_subst='$sed_quote_subst'
12775 double_quote_subst='$double_quote_subst'
12776 delay_variable_subst='$delay_variable_subst'
12777 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12778 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12779 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12780 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12781 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12782 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12783 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12784 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12785 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12786 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12787 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12788 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12789 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12790 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12791 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12792 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12793 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12794 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12795 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12796 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12797 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12798 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12799 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12800 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12801 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12802 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12803 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12804 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12805 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12806 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12807 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12808 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12809 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12810 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12811 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12812 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12813 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12814 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12815 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12816 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12817 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12818 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12819 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12820 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12821 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12822 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12823 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12824 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12825 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12826 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12827 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12828 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12829 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12830 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12831 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12832 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12833 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12834 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12835 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12836 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12837 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12838 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12839 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12840 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12841 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12842 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12843 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12844 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12845 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12846 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12847 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12848 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12849 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12850 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12851 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12852 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12853 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12854 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12855 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12856 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12857 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12858 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12859 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12860 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12861 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12862 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12863 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12864 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12865 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12866 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12867 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12868 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12869 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12870 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12871 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12872 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12873 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12874 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12875 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12876 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12877 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12878 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12879 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12880 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12881 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12882 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12883 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12884 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12885 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12886 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12887 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12888 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12889 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12890 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12891 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12892 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12893 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12894 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12897 LTCFLAGS='$LTCFLAGS'
12898 compiler='$compiler_DEFAULT'
12900 # Quote evaled strings.
12912 deplibs_check_method \
12921 lt_cv_sys_global_symbol_pipe \
12922 lt_cv_sys_global_symbol_to_cdecl \
12923 lt_cv_sys_global_symbol_to_c_name_address \
12924 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12927 lt_prog_compiler_no_builtin_flag \
12928 lt_prog_compiler_wl \
12929 lt_prog_compiler_pic \
12930 lt_prog_compiler_static \
12931 lt_cv_prog_compiler_c_o \
12939 export_dynamic_flag_spec \
12940 whole_archive_flag_spec \
12941 compiler_needs_object \
12943 allow_undefined_flag \
12944 no_undefined_flag \
12945 hardcode_libdir_flag_spec \
12946 hardcode_libdir_flag_spec_ld \
12947 hardcode_libdir_separator \
12952 variables_saved_for_relink \
12954 library_names_spec \
12959 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12960 *[\\\\\\\`\\"\\\$]*)
12961 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12964 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12969 # Double-quote double-evaled strings.
12970 for var in reload_cmds \
12971 old_postinstall_cmds \
12972 old_postuninstall_cmds \
12974 extract_expsyms_cmds \
12975 old_archive_from_new_cmds \
12976 old_archive_from_expsyms_cmds \
12978 archive_expsym_cmds \
12980 module_expsym_cmds \
12981 export_symbols_cmds \
12984 postuninstall_cmds \
12986 sys_lib_search_path_spec \
12987 sys_lib_dlsearch_path_spec; do
12988 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12989 *[\\\\\\\`\\"\\\$]*)
12990 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12993 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12998 # Fix-up fallback echo if it was mangled by the above quoting rules.
13000 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13004 ac_aux_dir='$ac_aux_dir'
13005 xsi_shell='$xsi_shell'
13006 lt_shell_append='$lt_shell_append'
13008 # See if we are running on zsh, and set the options which allow our
13009 # commands through without removal of \ escapes INIT.
13010 if test -n "\${ZSH_VERSION+set}" ; then
13011 setopt NO_GLOB_SUBST
13017 TIMESTAMP='$TIMESTAMP'
13026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13028 # Handling of arguments.
13029 for ac_config_target in $ac_config_targets
13031 case $ac_config_target in
13032 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13033 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13034 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13035 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13036 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
13037 "build/autotools/Makefile") CONFIG_FILES="$CONFIG_FILES build/autotools/Makefile" ;;
13038 "json-glib/Makefile") CONFIG_FILES="$CONFIG_FILES json-glib/Makefile" ;;
13039 "json-glib/json-version.h") CONFIG_FILES="$CONFIG_FILES json-glib/json-version.h" ;;
13040 "json-glib/tests/Makefile") CONFIG_FILES="$CONFIG_FILES json-glib/tests/Makefile" ;;
13041 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13042 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13043 "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;;
13044 "doc/reference/version.xml") CONFIG_FILES="$CONFIG_FILES doc/reference/version.xml" ;;
13045 "json-glib.pc") CONFIG_FILES="$CONFIG_FILES json-glib.pc" ;;
13047 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
13052 # If the user did not use the arguments to specify the items to instantiate,
13053 # then the envvar interface is used. Set only those that are not.
13054 # We use the long form for the default assignment because of an extremely
13055 # bizarre bug on SunOS 4.1.3.
13056 if $ac_need_defaults; then
13057 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13058 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13059 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13062 # Have a temporary directory for convenience. Make it in the build tree
13063 # simply because there is no reason against having it here, and in addition,
13064 # creating and moving files from /tmp can sometimes cause problems.
13065 # Hook for its removal unless debugging.
13066 # Note that there is a small window in which the directory will not be cleaned:
13067 # after its creation but before its name has been assigned to `$tmp'.
13071 trap 'exit_status=$?
13072 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13074 trap 'as_fn_exit 1' 1 2 13 15
13076 # Create a (secure) tmp directory for tmp files.
13079 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13080 test -n "$tmp" && test -d "$tmp"
13083 tmp=./conf$$-$RANDOM
13084 (umask 077 && mkdir "$tmp")
13085 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13087 # Set up the scripts for CONFIG_FILES section.
13088 # No need to generate them if there are no CONFIG_FILES.
13089 # This happens for instance with `./config.status config.h'.
13090 if test -n "$CONFIG_FILES"; then
13093 ac_cr=`echo X | tr X '\015'`
13094 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13095 # But we know of no other shell where ac_cr would be empty at this
13096 # point, so we can use a bashism as a fallback.
13097 if test "x$ac_cr" = x; then
13098 eval ac_cr=\$\'\\r\'
13100 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13101 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13104 ac_cs_awk_cr=$ac_cr
13107 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13112 echo "cat >conf$$subs.awk <<_ACEOF" &&
13113 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13115 } >conf$$subs.sh ||
13116 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13117 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13119 for ac_last_try in false false false false false :; do
13120 . ./conf$$subs.sh ||
13121 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13123 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13124 if test $ac_delim_n = $ac_delim_num; then
13126 elif $ac_last_try; then
13127 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13129 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13132 rm -f conf$$subs.sh
13134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13135 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13139 s/^/S["/; s/!.*/"]=/
13149 s/\(.\{148\}\)..*/\1/
13151 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13156 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13163 s/\(.\{148\}\)..*/\1/
13165 s/["\\]/\\&/g; s/^/"/; s/$/"/
13169 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13174 ' <conf$$subs.awk | sed '
13179 ' >>$CONFIG_STATUS || ac_write_fail=1
13180 rm -f conf$$subs.awk
13181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13183 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13184 for (key in S) S_is_set[key] = 1
13190 nfields = split(line, field, "@")
13192 len = length(field[1])
13193 for (i = 2; i < nfields; i++) {
13195 keylen = length(key)
13196 if (S_is_set[key]) {
13198 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13199 len += length(value) + length(field[++i])
13210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13211 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13212 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13215 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13216 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13219 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13220 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13221 # trailing colons and then remove the whole line if VPATH becomes empty
13222 # (actually we leave an empty line to preserve line numbers).
13223 if test "x$srcdir" = x.; then
13224 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13243 fi # test -n "$CONFIG_FILES"
13245 # Set up the scripts for CONFIG_HEADERS section.
13246 # No need to generate them if there are no CONFIG_HEADERS.
13247 # This happens for instance with `./config.status Makefile'.
13248 if test -n "$CONFIG_HEADERS"; then
13249 cat >"$tmp/defines.awk" <<\_ACAWK ||
13253 # Transform confdefs.h into an awk script `defines.awk', embedded as
13254 # here-document in config.status, that substitutes the proper values into
13255 # config.h.in to produce config.h.
13257 # Create a delimiter string that does not exist in confdefs.h, to ease
13258 # handling of long lines.
13260 for ac_last_try in false false :; do
13261 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13262 if test -z "$ac_t"; then
13264 elif $ac_last_try; then
13265 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13267 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13271 # For the awk script, D is an array of macro values keyed by name,
13272 # likewise P contains macro parameters if any. Preserve backslash
13273 # newline sequences.
13275 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13277 s/.\{148\}/&'"$ac_delim"'/g
13280 s/^[ ]*#[ ]*define[ ][ ]*/ /
13287 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13289 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13293 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13294 D["\1"]=" \3\\\\\\n"\\/p
13296 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13301 s/.\{148\}/&'"$ac_delim"'/g
13306 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13309 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13311 ' <confdefs.h | sed '
13312 s/'"$ac_delim"'/"\\\
13313 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13316 for (key in D) D_is_set[key] = 1
13319 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13321 split(line, arg, " ")
13322 if (arg[1] == "#") {
13326 defundef = substr(arg[1], 2)
13329 split(mac1, mac2, "(") #)
13331 prefix = substr(line, 1, index(line, defundef) - 1)
13332 if (D_is_set[macro]) {
13333 # Preserve the white space surrounding the "#".
13334 print prefix "define", macro P[macro] D[macro]
13337 # Replace #undef with comments. This is necessary, for example,
13338 # in the case of _POSIX_SOURCE, which is predefined and required
13339 # on some systems where configure will not decide to define it.
13340 if (defundef == "undef") {
13341 print "/*", prefix defundef, macro, "*/"
13349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13350 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13351 fi # test -n "$CONFIG_HEADERS"
13354 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13359 :[FHLC]) ac_mode=$ac_tag; continue;;
13361 case $ac_mode$ac_tag in
13363 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
13364 :[FH]-) ac_tag=-:-;;
13365 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13382 -) ac_f="$tmp/stdin";;
13383 *) # Look for the file first in the build tree, then in the source tree
13384 # (if the path is not absolute). The absolute path cannot be DOS-style,
13385 # because $ac_f cannot contain `:'.
13389 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13391 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
13393 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13394 as_fn_append ac_file_inputs " '$ac_f'"
13397 # Let's still pretend it is `configure' which instantiates (i.e., don't
13398 # use $as_me), people would be surprised to read:
13399 # /* config.h. Generated by config.status. */
13400 configure_input='Generated from '`
13401 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13403 if test x"$ac_file" != x-; then
13404 configure_input="$ac_file. $configure_input"
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13406 $as_echo "$as_me: creating $ac_file" >&6;}
13408 # Neutralize special characters interpreted by sed in replacement strings.
13409 case $configure_input in #(
13410 *\&* | *\|* | *\\* )
13411 ac_sed_conf_input=`$as_echo "$configure_input" |
13412 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13413 *) ac_sed_conf_input=$configure_input;;
13417 *:-:* | *:-) cat >"$tmp/stdin" \
13418 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13423 ac_dir=`$as_dirname -- "$ac_file" ||
13424 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13425 X"$ac_file" : 'X\(//\)[^/]' \| \
13426 X"$ac_file" : 'X\(//\)$' \| \
13427 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13428 $as_echo X"$ac_file" |
13429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13433 /^X\(\/\/\)[^/].*/{
13446 as_dir="$ac_dir"; as_fn_mkdir_p
13450 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13452 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13453 # A ".." for each directory in $ac_dir_suffix.
13454 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13455 case $ac_top_builddir_sub in
13456 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13457 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13460 ac_abs_top_builddir=$ac_pwd
13461 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13462 # for backward compatibility:
13463 ac_top_builddir=$ac_top_build_prefix
13466 .) # We are building in place.
13468 ac_top_srcdir=$ac_top_builddir_sub
13469 ac_abs_top_srcdir=$ac_pwd ;;
13470 [\\/]* | ?:[\\/]* ) # Absolute name.
13471 ac_srcdir=$srcdir$ac_dir_suffix;
13472 ac_top_srcdir=$srcdir
13473 ac_abs_top_srcdir=$srcdir ;;
13474 *) # Relative name.
13475 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13476 ac_top_srcdir=$ac_top_build_prefix$srcdir
13477 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13479 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13489 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13490 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13492 ac_MKDIR_P=$MKDIR_P
13494 [\\/$]* | ?:[\\/]* ) ;;
13495 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13500 # If the template does not know about datarootdir, expand it.
13501 # FIXME: This hack should be removed a few years after 2.60.
13502 ac_datarootdir_hack=; ac_datarootdir_seen=
13513 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13514 *datarootdir*) ac_datarootdir_seen=yes;;
13515 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13517 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13520 ac_datarootdir_hack='
13521 s&@datadir@&$datadir&g
13522 s&@docdir@&$docdir&g
13523 s&@infodir@&$infodir&g
13524 s&@localedir@&$localedir&g
13525 s&@mandir@&$mandir&g
13526 s&\\\${datarootdir}&$datarootdir&g' ;;
13530 # Neutralize VPATH when `$srcdir' = `.'.
13531 # Shell code in configure.ac might set extrasub.
13532 # FIXME: do we really want to maintain this feature?
13533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13534 ac_sed_extra="$ac_vpsub
13537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13539 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13540 s|@configure_input@|$ac_sed_conf_input|;t t
13541 s&@top_builddir@&$ac_top_builddir_sub&;t t
13542 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13543 s&@srcdir@&$ac_srcdir&;t t
13544 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13545 s&@top_srcdir@&$ac_top_srcdir&;t t
13546 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13547 s&@builddir@&$ac_builddir&;t t
13548 s&@abs_builddir@&$ac_abs_builddir&;t t
13549 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13550 s&@INSTALL@&$ac_INSTALL&;t t
13551 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13552 $ac_datarootdir_hack
13554 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13555 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13557 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13558 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13559 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13561 which seems to be undefined. Please make sure it is defined" >&5
13562 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13563 which seems to be undefined. Please make sure it is defined" >&2;}
13567 -) cat "$tmp/out" && rm -f "$tmp/out";;
13568 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13570 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13576 if test x"$ac_file" != x-; then
13578 $as_echo "/* $configure_input */" \
13579 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13580 } >"$tmp/config.h" \
13581 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13582 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13584 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13587 mv "$tmp/config.h" "$ac_file" \
13588 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13591 $as_echo "/* $configure_input */" \
13592 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13593 || as_fn_error $? "could not create -" "$LINENO" 5
13595 # Compute "$ac_file"'s index in $config_headers.
13598 for _am_header in $config_headers :; do
13599 case $_am_header in
13600 $_am_arg | $_am_arg:* )
13603 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13606 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13607 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13608 X"$_am_arg" : 'X\(//\)[^/]' \| \
13609 X"$_am_arg" : 'X\(//\)$' \| \
13610 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13611 $as_echo X"$_am_arg" |
13612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13616 /^X\(\/\/\)[^/].*/{
13628 s/.*/./; q'`/stamp-h$_am_stamp_count
13631 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13632 $as_echo "$as_me: executing $ac_file commands" >&6;}
13637 case $ac_file$ac_mode in
13638 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13639 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13640 # are listed without --file. Let's play safe and only enable the eval
13641 # if we detect the quoting.
13642 case $CONFIG_FILES in
13643 *\'*) eval set x "$CONFIG_FILES" ;;
13644 *) set x $CONFIG_FILES ;;
13649 # Strip MF so we end up with the name of the file.
13650 mf=`echo "$mf" | sed -e 's/:.*$//'`
13651 # Check whether this is an Automake generated Makefile or not.
13652 # We used to match only the files named `Makefile.in', but
13653 # some people rename them; so instead we look at the file content.
13654 # Grep'ing the first line is not enough: some people post-process
13655 # each Makefile.in and add a new line on top of each file to say so.
13656 # Grep'ing the whole file is not good either: AIX grep has a line
13657 # limit of 2048, but all sed's we know have understand at least 4000.
13658 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13659 dirpart=`$as_dirname -- "$mf" ||
13660 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13661 X"$mf" : 'X\(//\)[^/]' \| \
13662 X"$mf" : 'X\(//\)$' \| \
13663 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13669 /^X\(\/\/\)[^/].*/{
13685 # Extract the definition of DEPDIR, am__include, and am__quote
13686 # from the Makefile without running `make'.
13687 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13688 test -z "$DEPDIR" && continue
13689 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13690 test -z "am__include" && continue
13691 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13692 # When using ansi2knr, U may be empty or an underscore; expand it
13693 U=`sed -n 's/^U = //p' < "$mf"`
13694 # Find all dependency output files, they are included files with
13695 # $(DEPDIR) in their names. We invoke sed twice because it is the
13696 # simplest approach to changing $(DEPDIR) to its actual value in the
13698 for file in `sed -n "
13699 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13700 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13701 # Make sure the directory exists.
13702 test -f "$dirpart/$file" && continue
13703 fdir=`$as_dirname -- "$file" ||
13704 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13705 X"$file" : 'X\(//\)[^/]' \| \
13706 X"$file" : 'X\(//\)$' \| \
13707 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13708 $as_echo X"$file" |
13709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13713 /^X\(\/\/\)[^/].*/{
13726 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13727 # echo "creating $dirpart/$file"
13728 echo '# dummy' > "$dirpart/$file"
13735 # See if we are running on zsh, and set the options which allow our
13736 # commands through without removal of \ escapes.
13737 if test -n "${ZSH_VERSION+set}" ; then
13738 setopt NO_GLOB_SUBST
13741 cfgfile="${ofile}T"
13742 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13745 cat <<_LT_EOF >> "$cfgfile"
13748 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13749 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13750 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13751 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13753 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13754 # 2006, 2007, 2008 Free Software Foundation, Inc.
13755 # Written by Gordon Matzigkeit, 1996
13757 # This file is part of GNU Libtool.
13759 # GNU Libtool is free software; you can redistribute it and/or
13760 # modify it under the terms of the GNU General Public License as
13761 # published by the Free Software Foundation; either version 2 of
13762 # the License, or (at your option) any later version.
13764 # As a special exception to the GNU General Public License,
13765 # if you distribute this file as part of a program or library that
13766 # is built using GNU Libtool, you may include this file under the
13767 # same distribution terms that you use for the rest of that program.
13769 # GNU Libtool is distributed in the hope that it will be useful,
13770 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13771 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13772 # GNU General Public License for more details.
13774 # You should have received a copy of the GNU General Public License
13775 # along with GNU Libtool; see the file COPYING. If not, a copy
13776 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13777 # obtained by writing to the Free Software Foundation, Inc.,
13778 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13781 # The names of the tagged configurations supported by this script.
13784 # ### BEGIN LIBTOOL CONFIG
13786 # Whether or not to build static libraries.
13787 build_old_libs=$enable_static
13789 # Which release of libtool.m4 was used?
13790 macro_version=$macro_version
13791 macro_revision=$macro_revision
13793 # Whether or not to build shared libraries.
13794 build_libtool_libs=$enable_shared
13796 # What type of objects to build.
13799 # Whether or not to optimize for fast installation.
13800 fast_install=$enable_fast_install
13803 host_alias=$host_alias
13807 # The build system.
13808 build_alias=$build_alias
13812 # A sed program that does not truncate output.
13815 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13816 Xsed="\$SED -e 1s/^X//"
13818 # A grep program that handles long lines.
13824 # A literal string matcher.
13827 # A BSD- or MS-compatible name lister.
13830 # Whether we need soft or hard links.
13833 # What is the maximum length of a command?
13834 max_cmd_len=$max_cmd_len
13836 # Object file suffix (normally "o").
13839 # Executable file suffix (normally "").
13842 # whether the shell understands "unset".
13845 # turn spaces into newlines.
13848 # turn newlines into spaces.
13851 # How to create reloadable object files.
13852 reload_flag=$lt_reload_flag
13853 reload_cmds=$lt_reload_cmds
13855 # An object symbol dumper.
13856 OBJDUMP=$lt_OBJDUMP
13858 # Method to check whether dependent libraries are shared objects.
13859 deplibs_check_method=$lt_deplibs_check_method
13861 # Command to use when deplibs_check_method == "file_magic".
13862 file_magic_cmd=$lt_file_magic_cmd
13866 AR_FLAGS=$lt_AR_FLAGS
13868 # A symbol stripping program.
13871 # Commands used to install an old-style archive.
13873 old_postinstall_cmds=$lt_old_postinstall_cmds
13874 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13879 # LTCC compiler flags.
13880 LTCFLAGS=$lt_CFLAGS
13882 # Take the output of nm and produce a listing of raw symbols and C names.
13883 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13885 # Transform the output of nm in a proper C declaration.
13886 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13888 # Transform the output of nm in a C name address pair.
13889 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13891 # Transform the output of nm in a C name address pair when lib prefix is needed.
13892 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13894 # The name of the directory that contains temporary libtool files.
13897 # Shell to use when invoking shell scripts.
13900 # An echo program that does not interpret backslashes.
13903 # Used to examine libraries when file_magic_cmd begins with "file".
13904 MAGIC_CMD=$MAGIC_CMD
13906 # Must we lock files when doing compilation?
13907 need_locks=$lt_need_locks
13909 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13910 DSYMUTIL=$lt_DSYMUTIL
13912 # Tool to change global to local symbols on Mac OS X.
13915 # Tool to manipulate fat objects and archives on Mac OS X.
13918 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13921 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13922 OTOOL64=$lt_OTOOL64
13924 # Old archive suffix (normally "a").
13927 # Shared library suffix (normally ".so").
13928 shrext_cmds=$lt_shrext_cmds
13930 # The commands to extract the exported symbol list from a shared archive.
13931 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13933 # Variables whose values should be saved in libtool wrapper scripts and
13934 # restored at link time.
13935 variables_saved_for_relink=$lt_variables_saved_for_relink
13937 # Do we need the "lib" prefix for modules?
13938 need_lib_prefix=$need_lib_prefix
13940 # Do we need a version for libraries?
13941 need_version=$need_version
13943 # Library versioning type.
13944 version_type=$version_type
13946 # Shared library runtime path variable.
13947 runpath_var=$runpath_var
13949 # Shared library path variable.
13950 shlibpath_var=$shlibpath_var
13952 # Is shlibpath searched before the hard-coded library search path?
13953 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13955 # Format of library name prefix.
13956 libname_spec=$lt_libname_spec
13958 # List of archive names. First name is the real one, the rest are links.
13959 # The last name is the one that the linker finds with -lNAME
13960 library_names_spec=$lt_library_names_spec
13962 # The coded name of the library, if different from the real name.
13963 soname_spec=$lt_soname_spec
13965 # Command to use after installation of a shared archive.
13966 postinstall_cmds=$lt_postinstall_cmds
13968 # Command to use after uninstallation of a shared archive.
13969 postuninstall_cmds=$lt_postuninstall_cmds
13971 # Commands used to finish a libtool library installation in a directory.
13972 finish_cmds=$lt_finish_cmds
13974 # As "finish_cmds", except a single script fragment to be evaled but
13976 finish_eval=$lt_finish_eval
13978 # Whether we should hardcode library paths into libraries.
13979 hardcode_into_libs=$hardcode_into_libs
13981 # Compile-time system search path for libraries.
13982 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13984 # Run-time system search path for libraries.
13985 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13987 # Whether dlopen is supported.
13988 dlopen_support=$enable_dlopen
13990 # Whether dlopen of programs is supported.
13991 dlopen_self=$enable_dlopen_self
13993 # Whether dlopen of statically linked programs is supported.
13994 dlopen_self_static=$enable_dlopen_self_static
13996 # Commands to strip libraries.
13997 old_striplib=$lt_old_striplib
13998 striplib=$lt_striplib
14001 # The linker used to build libraries.
14004 # Commands used to build an old-style archive.
14005 old_archive_cmds=$lt_old_archive_cmds
14007 # A language specific compiler.
14010 # Is the compiler the GNU compiler?
14013 # Compiler flag to turn off builtin functions.
14014 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14016 # How to pass a linker flag through the compiler.
14017 wl=$lt_lt_prog_compiler_wl
14019 # Additional compiler flags for building library objects.
14020 pic_flag=$lt_lt_prog_compiler_pic
14022 # Compiler flag to prevent dynamic linking.
14023 link_static_flag=$lt_lt_prog_compiler_static
14025 # Does compiler simultaneously support -c and -o options?
14026 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14028 # Whether or not to add -lc for building shared libraries.
14029 build_libtool_need_lc=$archive_cmds_need_lc
14031 # Whether or not to disallow shared libs when runtime libs are static.
14032 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14034 # Compiler flag to allow reflexive dlopens.
14035 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14037 # Compiler flag to generate shared objects directly from archives.
14038 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14040 # Whether the compiler copes with passing no objects directly.
14041 compiler_needs_object=$lt_compiler_needs_object
14043 # Create an old-style archive from a shared archive.
14044 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14046 # Create a temporary old-style archive to link instead of a shared archive.
14047 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14049 # Commands used to build a shared archive.
14050 archive_cmds=$lt_archive_cmds
14051 archive_expsym_cmds=$lt_archive_expsym_cmds
14053 # Commands used to build a loadable module if different from building
14054 # a shared archive.
14055 module_cmds=$lt_module_cmds
14056 module_expsym_cmds=$lt_module_expsym_cmds
14058 # Whether we are building with GNU ld or not.
14059 with_gnu_ld=$lt_with_gnu_ld
14061 # Flag that allows shared libraries with undefined symbols to be built.
14062 allow_undefined_flag=$lt_allow_undefined_flag
14064 # Flag that enforces no undefined symbols.
14065 no_undefined_flag=$lt_no_undefined_flag
14067 # Flag to hardcode \$libdir into a binary during linking.
14068 # This must work even if \$libdir does not exist
14069 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14071 # If ld is used when linking, flag to hardcode \$libdir into a binary
14072 # during linking. This must work even if \$libdir does not exist.
14073 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14075 # Whether we need a single "-rpath" flag with a separated argument.
14076 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14078 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14079 # DIR into the resulting binary.
14080 hardcode_direct=$hardcode_direct
14082 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14083 # DIR into the resulting binary and the resulting library dependency is
14084 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14085 # library is relocated.
14086 hardcode_direct_absolute=$hardcode_direct_absolute
14088 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14089 # into the resulting binary.
14090 hardcode_minus_L=$hardcode_minus_L
14092 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14093 # into the resulting binary.
14094 hardcode_shlibpath_var=$hardcode_shlibpath_var
14096 # Set to "yes" if building a shared library automatically hardcodes DIR
14097 # into the library and all subsequent libraries and executables linked
14099 hardcode_automatic=$hardcode_automatic
14101 # Set to yes if linker adds runtime paths of dependent libraries
14102 # to runtime path list.
14103 inherit_rpath=$inherit_rpath
14105 # Whether libtool must link a program against all its dependency libraries.
14106 link_all_deplibs=$link_all_deplibs
14108 # Fix the shell variable \$srcfile for the compiler.
14109 fix_srcfile_path=$lt_fix_srcfile_path
14111 # Set to "yes" if exported symbols are required.
14112 always_export_symbols=$always_export_symbols
14114 # The commands to list exported symbols.
14115 export_symbols_cmds=$lt_export_symbols_cmds
14117 # Symbols that should not be listed in the preloaded symbols.
14118 exclude_expsyms=$lt_exclude_expsyms
14120 # Symbols that must always be exported.
14121 include_expsyms=$lt_include_expsyms
14123 # Commands necessary for linking programs (against libraries) with templates.
14124 prelink_cmds=$lt_prelink_cmds
14126 # Specify filename containing input files.
14127 file_list_spec=$lt_file_list_spec
14129 # How to hardcode a shared library path into an executable.
14130 hardcode_action=$hardcode_action
14132 # ### END LIBTOOL CONFIG
14138 cat <<\_LT_EOF >> "$cfgfile"
14139 # AIX sometimes has problems with the GCC collect2 program. For some
14140 # reason, if we set the COLLECT_NAMES environment variable, the problems
14141 # vanish in a puff of smoke.
14142 if test "X${COLLECT_NAMES+set}" != Xset; then
14144 export COLLECT_NAMES
14151 ltmain="$ac_aux_dir/ltmain.sh"
14154 # We use sed instead of cat because bash on DJGPP gets confused if
14155 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14156 # text mode, it properly converts lines to CR/LF. This bash problem
14157 # is reportedly fixed, but why not run on old versions too?
14158 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14159 || (rm -f "$cfgfile"; exit 1)
14163 cat << \_LT_EOF >> "$cfgfile"
14165 # func_dirname file append nondir_replacement
14166 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14167 # otherwise set result to NONDIR_REPLACEMENT.
14171 */*) func_dirname_result="${1%/*}${2}" ;;
14172 * ) func_dirname_result="${3}" ;;
14176 # func_basename file
14179 func_basename_result="${1##*/}"
14182 # func_dirname_and_basename file append nondir_replacement
14183 # perform func_basename and func_dirname in a single function
14185 # dirname: Compute the dirname of FILE. If nonempty,
14186 # add APPEND to the result, otherwise set result
14187 # to NONDIR_REPLACEMENT.
14188 # value returned in "$func_dirname_result"
14189 # basename: Compute filename of FILE.
14190 # value retuned in "$func_basename_result"
14191 # Implementation must be kept synchronized with func_dirname
14192 # and func_basename. For efficiency, we do not delegate to
14193 # those functions but instead duplicate the functionality here.
14194 func_dirname_and_basename ()
14197 */*) func_dirname_result="${1%/*}${2}" ;;
14198 * ) func_dirname_result="${3}" ;;
14200 func_basename_result="${1##*/}"
14203 # func_stripname prefix suffix name
14204 # strip PREFIX and SUFFIX off of NAME.
14205 # PREFIX and SUFFIX must not contain globbing or regex special
14206 # characters, hashes, percent signs, but SUFFIX may contain a leading
14207 # dot (in which case that matches only a dot).
14210 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14211 # positional parameters, so assign one to ordinary parameter first.
14212 func_stripname_result=${3}
14213 func_stripname_result=${func_stripname_result#"${1}"}
14214 func_stripname_result=${func_stripname_result%"${2}"}
14220 func_opt_split_opt=${1%%=*}
14221 func_opt_split_arg=${1#*=}
14228 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14229 *) func_lo2o_result=${1} ;;
14233 # func_xform libobj-or-source
14236 func_xform_result=${1%.*}.lo
14239 # func_arith arithmetic-term...
14242 func_arith_result=$(( $* ))
14246 # STRING may not start with a hyphen.
14249 func_len_result=${#1}
14254 *) # Bourne compatible functions.
14255 cat << \_LT_EOF >> "$cfgfile"
14257 # func_dirname file append nondir_replacement
14258 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14259 # otherwise set result to NONDIR_REPLACEMENT.
14262 # Extract subdirectory from the argument.
14263 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14264 if test "X$func_dirname_result" = "X${1}"; then
14265 func_dirname_result="${3}"
14267 func_dirname_result="$func_dirname_result${2}"
14271 # func_basename file
14274 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14278 # func_stripname prefix suffix name
14279 # strip PREFIX and SUFFIX off of NAME.
14280 # PREFIX and SUFFIX must not contain globbing or regex special
14281 # characters, hashes, percent signs, but SUFFIX may contain a leading
14282 # dot (in which case that matches only a dot).
14283 # func_strip_suffix prefix name
14287 .*) func_stripname_result=`$ECHO "X${3}" \
14288 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14289 *) func_stripname_result=`$ECHO "X${3}" \
14290 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14295 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14296 my_sed_long_arg='1s/^-[^=]*=//'
14301 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14302 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14308 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14311 # func_xform libobj-or-source
14314 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14317 # func_arith arithmetic-term...
14320 func_arith_result=`expr "$@"`
14324 # STRING may not start with a hyphen.
14327 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14333 case $lt_shell_append in
14335 cat << \_LT_EOF >> "$cfgfile"
14337 # func_append var value
14338 # Append VALUE to the end of shell variable VAR.
14346 cat << \_LT_EOF >> "$cfgfile"
14348 # func_append var value
14349 # Append VALUE to the end of shell variable VAR.
14360 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14361 || (rm -f "$cfgfile"; exit 1)
14363 mv -f "$cfgfile" "$ofile" ||
14364 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14375 ac_clean_files=$ac_clean_files_save
14377 test $ac_write_fail = 0 ||
14378 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14381 # configure is writing to config.log, and then calls config.status.
14382 # config.status does its own redirection, appending to config.log.
14383 # Unfortunately, on DOS this fails, as config.log is still kept open
14384 # by configure, so config.status won't be able to write to it; its
14385 # output is simply discarded. So we exec the FD to /dev/null,
14386 # effectively closing config.log, so it can be properly (re)opened and
14387 # appended to by config.status. When coming back to configure, we
14388 # need to make the FD available again.
14389 if test "$no_create" != yes; then
14391 ac_config_status_args=
14392 test "$silent" = yes &&
14393 ac_config_status_args="$ac_config_status_args --quiet"
14395 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14397 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14398 # would make configure fail if this is the last instruction.
14399 $ac_cs_success || as_fn_exit 1
14401 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14403 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14409 echo " Json-GLib - $VERSION (${JSON_RELEASE_STATUS})"
14411 echo " • Prefix: ${prefix}"
14413 echo " • Debug level: ${enable_debug}"
14414 echo " • Compiler flags: ${MAINTAINER_CFLAGS}"
14415 echo " • Use shave: ${use_shave}"
14417 echo " • API reference: ${enable_gtk_doc}"
14419 echo " • Enable test suite: ${enable_glibtest}"
14420 echo " • Build introspection data: ${enable_introspection}"