2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gobject-introspection 1.49.1.
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gobject-introspection>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugzilla.gnome.org/enter_bug.cgi?product=gobject-introspection
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Create "$as_dir" as a directory, including parents if necessary.
331 -*) as_dir=./$as_dir;;
333 test -d "$as_dir" || eval $as_mkdir_p || {
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364 test -d "$as_dir" && break
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410 as_val=`expr "$@" || test $? -eq 1`
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
422 as_status=$1; test $as_status -eq 0 && as_status=1
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
508 # Exit status is that of the last command.
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
530 mkdir conf$$.dir 2>/dev/null
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 elif ln conf$$.file conf$$ 2>/dev/null; then
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
555 test -d ./-p && rmdir ./-p
560 as_executable_p=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL=${CONFIG_SHELL-/bin/sh}
571 test -n "$DJDIR" || exec 7<&0 </dev/null
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 ac_default_prefix=/usr/local
584 ac_config_libobj_dir=.
591 # Identity of this package.
592 PACKAGE_NAME='gobject-introspection'
593 PACKAGE_TARNAME='gobject-introspection'
594 PACKAGE_VERSION='1.49.1'
595 PACKAGE_STRING='gobject-introspection 1.49.1'
596 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=gobject-introspection'
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='am__EXEEXT_FALSE
639 GI_HIDDEN_VISIBILITY_CFLAGS
658 GTK_DOC_USE_REBASE_FALSE
659 GTK_DOC_USE_REBASE_TRUE
660 GTK_DOC_USE_LIBTOOL_FALSE
661 GTK_DOC_USE_LIBTOOL_TRUE
662 GTK_DOC_BUILD_PDF_FALSE
663 GTK_DOC_BUILD_PDF_TRUE
664 GTK_DOC_BUILD_HTML_FALSE
665 GTK_DOC_BUILD_HTML_TRUE
706 GOBJECT_INTROSPECTION_LIBDIR
712 EXPANDED_LOCALSTATEDIR
772 MAINTAINER_MODE_FALSE
786 INSTALL_STRIP_PROGRAM
828 program_transform_name
841 enable_option_checking
843 enable_maintainer_mode
844 enable_dependency_tracking
863 ac_precious_vars='build_alias
899 # Initialize some variables set by options.
901 ac_init_version=false
902 ac_unrecognized_opts=
904 # The variables have the same names as the options, with
905 # dashes changed to underlines.
913 program_transform_name=s,x,x,
921 # Installation directory options.
922 # These are left unexpanded so users can "make install exec_prefix=/foo"
923 # and all the variables that are supposed to be based on exec_prefix
924 # by default will actually change.
925 # Use braces instead of parens because sh, perl, etc. also accept them.
926 # (The list follows the same order as the GNU Coding Standards.)
927 bindir='${exec_prefix}/bin'
928 sbindir='${exec_prefix}/sbin'
929 libexecdir='${exec_prefix}/libexec'
930 datarootdir='${prefix}/share'
931 datadir='${datarootdir}'
932 sysconfdir='${prefix}/etc'
933 sharedstatedir='${prefix}/com'
934 localstatedir='${prefix}/var'
935 includedir='${prefix}/include'
936 oldincludedir='/usr/include'
937 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
938 infodir='${datarootdir}/info'
943 libdir='${exec_prefix}/lib'
944 localedir='${datarootdir}/locale'
945 mandir='${datarootdir}/man'
951 # If the previous option needs an argument, assign it.
952 if test -n "$ac_prev"; then
953 eval $ac_prev=\$ac_option
959 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964 # Accept the important Cygnus configure options, so we can diagnose typos.
966 case $ac_dashdash$ac_option in
970 -bindir | --bindir | --bindi | --bind | --bin | --bi)
972 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975 -build | --build | --buil | --bui | --bu)
976 ac_prev=build_alias ;;
977 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978 build_alias=$ac_optarg ;;
980 -cache-file | --cache-file | --cache-fil | --cache-fi \
981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982 ac_prev=cache_file ;;
983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985 cache_file=$ac_optarg ;;
988 cache_file=config.cache ;;
990 -datadir | --datadir | --datadi | --datad)
992 -datadir=* | --datadir=* | --datadi=* | --datad=*)
993 datadir=$ac_optarg ;;
995 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996 | --dataroo | --dataro | --datar)
997 ac_prev=datarootdir ;;
998 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000 datarootdir=$ac_optarg ;;
1002 -disable-* | --disable-*)
1003 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006 as_fn_error $? "invalid feature name: $ac_useropt"
1007 ac_useropt_orig=$ac_useropt
1008 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009 case $ac_user_opts in
1011 "enable_$ac_useropt"
1013 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1014 ac_unrecognized_sep=', ';;
1016 eval enable_$ac_useropt=no ;;
1018 -docdir | --docdir | --docdi | --doc | --do)
1020 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1021 docdir=$ac_optarg ;;
1023 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1025 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1026 dvidir=$ac_optarg ;;
1028 -enable-* | --enable-*)
1029 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032 as_fn_error $? "invalid feature name: $ac_useropt"
1033 ac_useropt_orig=$ac_useropt
1034 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035 case $ac_user_opts in
1037 "enable_$ac_useropt"
1039 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1040 ac_unrecognized_sep=', ';;
1042 eval enable_$ac_useropt=\$ac_optarg ;;
1044 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1045 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1046 | --exec | --exe | --ex)
1047 ac_prev=exec_prefix ;;
1048 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1049 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1050 | --exec=* | --exe=* | --ex=*)
1051 exec_prefix=$ac_optarg ;;
1053 -gas | --gas | --ga | --g)
1054 # Obsolete; use --with-gas.
1057 -help | --help | --hel | --he | -h)
1058 ac_init_help=long ;;
1059 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1060 ac_init_help=recursive ;;
1061 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1062 ac_init_help=short ;;
1064 -host | --host | --hos | --ho)
1065 ac_prev=host_alias ;;
1066 -host=* | --host=* | --hos=* | --ho=*)
1067 host_alias=$ac_optarg ;;
1069 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1071 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1073 htmldir=$ac_optarg ;;
1075 -includedir | --includedir | --includedi | --included | --include \
1076 | --includ | --inclu | --incl | --inc)
1077 ac_prev=includedir ;;
1078 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1079 | --includ=* | --inclu=* | --incl=* | --inc=*)
1080 includedir=$ac_optarg ;;
1082 -infodir | --infodir | --infodi | --infod | --info | --inf)
1084 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1085 infodir=$ac_optarg ;;
1087 -libdir | --libdir | --libdi | --libd)
1089 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1090 libdir=$ac_optarg ;;
1092 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1093 | --libexe | --libex | --libe)
1094 ac_prev=libexecdir ;;
1095 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1096 | --libexe=* | --libex=* | --libe=*)
1097 libexecdir=$ac_optarg ;;
1099 -localedir | --localedir | --localedi | --localed | --locale)
1100 ac_prev=localedir ;;
1101 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1102 localedir=$ac_optarg ;;
1104 -localstatedir | --localstatedir | --localstatedi | --localstated \
1105 | --localstate | --localstat | --localsta | --localst | --locals)
1106 ac_prev=localstatedir ;;
1107 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1108 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1109 localstatedir=$ac_optarg ;;
1111 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1113 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1114 mandir=$ac_optarg ;;
1116 -nfp | --nfp | --nf)
1117 # Obsolete; use --without-fp.
1120 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1121 | --no-cr | --no-c | -n)
1124 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1125 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1129 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1130 | --oldin | --oldi | --old | --ol | --o)
1131 ac_prev=oldincludedir ;;
1132 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1133 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1134 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1135 oldincludedir=$ac_optarg ;;
1137 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1139 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1140 prefix=$ac_optarg ;;
1142 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1143 | --program-pre | --program-pr | --program-p)
1144 ac_prev=program_prefix ;;
1145 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1146 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1147 program_prefix=$ac_optarg ;;
1149 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1150 | --program-suf | --program-su | --program-s)
1151 ac_prev=program_suffix ;;
1152 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1153 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1154 program_suffix=$ac_optarg ;;
1156 -program-transform-name | --program-transform-name \
1157 | --program-transform-nam | --program-transform-na \
1158 | --program-transform-n | --program-transform- \
1159 | --program-transform | --program-transfor \
1160 | --program-transfo | --program-transf \
1161 | --program-trans | --program-tran \
1162 | --progr-tra | --program-tr | --program-t)
1163 ac_prev=program_transform_name ;;
1164 -program-transform-name=* | --program-transform-name=* \
1165 | --program-transform-nam=* | --program-transform-na=* \
1166 | --program-transform-n=* | --program-transform-=* \
1167 | --program-transform=* | --program-transfor=* \
1168 | --program-transfo=* | --program-transf=* \
1169 | --program-trans=* | --program-tran=* \
1170 | --progr-tra=* | --program-tr=* | --program-t=*)
1171 program_transform_name=$ac_optarg ;;
1173 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1175 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1176 pdfdir=$ac_optarg ;;
1178 -psdir | --psdir | --psdi | --psd | --ps)
1180 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184 | -silent | --silent | --silen | --sile | --sil)
1187 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1189 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1191 sbindir=$ac_optarg ;;
1193 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1194 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1195 | --sharedst | --shareds | --shared | --share | --shar \
1197 ac_prev=sharedstatedir ;;
1198 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1199 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1200 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1202 sharedstatedir=$ac_optarg ;;
1204 -site | --site | --sit)
1206 -site=* | --site=* | --sit=*)
1209 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1211 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1212 srcdir=$ac_optarg ;;
1214 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1215 | --syscon | --sysco | --sysc | --sys | --sy)
1216 ac_prev=sysconfdir ;;
1217 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1218 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1219 sysconfdir=$ac_optarg ;;
1221 -target | --target | --targe | --targ | --tar | --ta | --t)
1222 ac_prev=target_alias ;;
1223 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1224 target_alias=$ac_optarg ;;
1226 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229 -version | --version | --versio | --versi | --vers | -V)
1230 ac_init_version=: ;;
1233 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236 as_fn_error $? "invalid package name: $ac_useropt"
1237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
1246 eval with_$ac_useropt=\$ac_optarg ;;
1248 -without-* | --without-*)
1249 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252 as_fn_error $? "invalid package name: $ac_useropt"
1253 ac_useropt_orig=$ac_useropt
1254 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255 case $ac_user_opts in
1259 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1260 ac_unrecognized_sep=', ';;
1262 eval with_$ac_useropt=no ;;
1265 # Obsolete; use --with-x.
1268 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1269 | --x-incl | --x-inc | --x-in | --x-i)
1270 ac_prev=x_includes ;;
1271 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1272 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1273 x_includes=$ac_optarg ;;
1275 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1276 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1277 ac_prev=x_libraries ;;
1278 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1279 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1280 x_libraries=$ac_optarg ;;
1282 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1283 Try \`$0 --help' for more information"
1287 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1288 # Reject names that are not valid shell variable names.
1289 case $ac_envvar in #(
1290 '' | [0-9]* | *[!_$as_cr_alnum]* )
1291 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1293 eval $ac_envvar=\$ac_optarg
1294 export $ac_envvar ;;
1297 # FIXME: should be removed in autoconf 3.0.
1298 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1299 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1300 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1301 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1307 if test -n "$ac_prev"; then
1308 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1309 as_fn_error $? "missing argument to $ac_option"
1312 if test -n "$ac_unrecognized_opts"; then
1313 case $enable_option_checking in
1315 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1316 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1320 # Check all directory arguments for consistency.
1321 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1322 datadir sysconfdir sharedstatedir localstatedir includedir \
1323 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1324 libdir localedir mandir
1326 eval ac_val=\$$ac_var
1327 # Remove trailing slashes.
1330 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1331 eval $ac_var=\$ac_val;;
1333 # Be sure to have absolute directory names.
1335 [\\/$]* | ?:[\\/]* ) continue;;
1336 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1338 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1341 # There might be people who depend on the old broken behavior: `$host'
1342 # used to hold the argument of --host etc.
1343 # FIXME: To remove some day.
1346 target=$target_alias
1348 # FIXME: To remove some day.
1349 if test "x$host_alias" != x; then
1350 if test "x$build_alias" = x; then
1351 cross_compiling=maybe
1352 elif test "x$build_alias" != "x$host_alias"; then
1358 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1360 test "$silent" = yes && exec 6>/dev/null
1363 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1364 ac_ls_di=`ls -di .` &&
1365 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1366 as_fn_error $? "working directory cannot be determined"
1367 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1368 as_fn_error $? "pwd does not report name of working directory"
1371 # Find the source files, if location was not specified.
1372 if test -z "$srcdir"; then
1373 ac_srcdir_defaulted=yes
1374 # Try the directory containing this script, then the parent directory.
1375 ac_confdir=`$as_dirname -- "$as_myself" ||
1376 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1377 X"$as_myself" : 'X\(//\)[^/]' \| \
1378 X"$as_myself" : 'X\(//\)$' \| \
1379 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1380 $as_echo X"$as_myself" |
1381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1403 ac_srcdir_defaulted=no
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1407 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1409 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1411 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1413 # When building in place, set srcdir=.
1414 if test "$ac_abs_confdir" = "$ac_pwd"; then
1417 # Remove unnecessary trailing slashes from srcdir.
1418 # Double slashes in file names in object file debugging info
1419 # mess up M-x gdb in Emacs.
1421 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1423 for ac_var in $ac_precious_vars; do
1424 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_env_${ac_var}_value=\$${ac_var}
1426 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1431 # Report the --help message.
1433 if test "$ac_init_help" = "long"; then
1434 # Omit some internal or obsolete options to make the list less imposing.
1435 # This message is too long to be a string in the A/UX 3.1 sh.
1437 \`configure' configures gobject-introspection 1.49.1 to adapt to many kinds of systems.
1439 Usage: $0 [OPTION]... [VAR=VALUE]...
1441 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1442 VAR=VALUE. See below for descriptions of some of the useful variables.
1444 Defaults for the options are specified in brackets.
1447 -h, --help display this help and exit
1448 --help=short display options specific to this package
1449 --help=recursive display the short help of all the included packages
1450 -V, --version display version information and exit
1451 -q, --quiet, --silent do not print \`checking ...' messages
1452 --cache-file=FILE cache test results in FILE [disabled]
1453 -C, --config-cache alias for \`--cache-file=config.cache'
1454 -n, --no-create do not create output files
1455 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1457 Installation directories:
1458 --prefix=PREFIX install architecture-independent files in PREFIX
1459 [$ac_default_prefix]
1460 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1463 By default, \`make install' will install all the files in
1464 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1465 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1466 for instance \`--prefix=\$HOME'.
1468 For better control, use the options below.
1470 Fine tuning of the installation directories:
1471 --bindir=DIR user executables [EPREFIX/bin]
1472 --sbindir=DIR system admin executables [EPREFIX/sbin]
1473 --libexecdir=DIR program executables [EPREFIX/libexec]
1474 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1475 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1476 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1477 --libdir=DIR object code libraries [EPREFIX/lib]
1478 --includedir=DIR C header files [PREFIX/include]
1479 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1480 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1481 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1482 --infodir=DIR info documentation [DATAROOTDIR/info]
1483 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1484 --mandir=DIR man documentation [DATAROOTDIR/man]
1485 --docdir=DIR documentation root
1486 [DATAROOTDIR/doc/gobject-introspection]
1487 --htmldir=DIR html documentation [DOCDIR]
1488 --dvidir=DIR dvi documentation [DOCDIR]
1489 --pdfdir=DIR pdf documentation [DOCDIR]
1490 --psdir=DIR ps documentation [DOCDIR]
1496 --program-prefix=PREFIX prepend PREFIX to installed program names
1497 --program-suffix=SUFFIX append SUFFIX to installed program names
1498 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1501 --build=BUILD configure for building on BUILD [guessed]
1502 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1506 if test -n "$ac_init_help"; then
1507 case $ac_init_help in
1508 short | recursive ) echo "Configuration of gobject-introspection 1.49.1:";;
1513 --disable-option-checking ignore unrecognized --enable/--with options
1514 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1515 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1516 --enable-silent-rules less verbose build output (undo: "make V=1")
1517 --disable-silent-rules verbose build output (undo: "make V=0")
1518 --disable-maintainer-mode
1519 disable make rules and dependencies not useful (and
1520 sometimes confusing) to the casual installer
1521 --enable-dependency-tracking
1522 do not reject slow dependency extractors
1523 --disable-dependency-tracking
1524 speeds up one-time build
1525 --enable-shared[=PKGS] build shared libraries [default=yes]
1526 --enable-static[=PKGS] build static libraries [default=yes]
1527 --enable-fast-install[=PKGS]
1528 optimize for fast installation [default=yes]
1529 --disable-libtool-lock avoid locking (might break parallel builds)
1530 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1531 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1532 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1533 --disable-doctool disable g-ir-doc-tool
1534 --disable-Bsymbolic avoid linking with -Bsymbolic
1537 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1538 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1539 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1541 --with-aix-soname=aix|svr4|both
1542 shared library versioning (aka "SONAME") variant to
1543 provide on AIX, [default=aix].
1544 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1545 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1546 compiler's sysroot if not specified).
1547 --with-cairo Use cairo [default=maybe]
1548 --with-html-dir=PATH path to installed docs
1549 --with-python=PATH Path to Python interpreter; searches $PATH if only a
1550 program name is given; if not given, searches for a
1551 few standard names such as "python3" or "python2"
1552 --with-glib-src=PATH Source directory for glib - needed to add docs to gir
1554 Some influential environment variables:
1555 CC C compiler command
1556 CFLAGS C compiler flags
1557 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1558 nonstandard directory <lib dir>
1559 LIBS libraries to pass to the linker, e.g. -l<library>
1560 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1561 you have headers in a nonstandard directory <include dir>
1563 User-defined run-time library search path.
1565 PKG_CONFIG path to pkg-config utility
1567 directories to add to pkg-config's search path
1569 path overriding pkg-config's built-in search path
1570 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1571 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1573 C compiler flags for GOBJECT, overriding pkg-config
1575 linker flags for GOBJECT, overriding pkg-config
1577 C compiler flags for GMODULE, overriding pkg-config
1579 linker flags for GMODULE, overriding pkg-config
1580 GIO_CFLAGS C compiler flags for GIO, overriding pkg-config
1581 GIO_LIBS linker flags for GIO, overriding pkg-config
1583 C compiler flags for GIO_UNIX, overriding pkg-config
1585 linker flags for GIO_UNIX, overriding pkg-config
1587 C compiler flags for CAIRO, overriding pkg-config
1588 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
1590 C compiler flags for SCANNER, overriding pkg-config
1592 linker flags for SCANNER, overriding pkg-config
1593 FFI_CFLAGS C compiler flags for FFI, overriding pkg-config
1594 FFI_LIBS linker flags for FFI, overriding pkg-config
1596 C compiler flags for GIREPO, overriding pkg-config
1597 GIREPO_LIBS linker flags for GIREPO, overriding pkg-config
1599 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1601 linker flags for GTKDOC_DEPS, overriding pkg-config
1602 PYTHON the Python interpreter
1604 Use these variables to override the choices made by `configure' or to help
1605 it to find libraries and programs with nonstandard names/locations.
1607 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gobject-introspection>.
1612 if test "$ac_init_help" = "recursive"; then
1613 # If there are subdirs, report their specific --help.
1614 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1615 test -d "$ac_dir" ||
1616 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1621 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1624 # A ".." for each directory in $ac_dir_suffix.
1625 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1626 case $ac_top_builddir_sub in
1627 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1628 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1631 ac_abs_top_builddir=$ac_pwd
1632 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1633 # for backward compatibility:
1634 ac_top_builddir=$ac_top_build_prefix
1637 .) # We are building in place.
1639 ac_top_srcdir=$ac_top_builddir_sub
1640 ac_abs_top_srcdir=$ac_pwd ;;
1641 [\\/]* | ?:[\\/]* ) # Absolute name.
1642 ac_srcdir=$srcdir$ac_dir_suffix;
1643 ac_top_srcdir=$srcdir
1644 ac_abs_top_srcdir=$srcdir ;;
1646 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1647 ac_top_srcdir=$ac_top_build_prefix$srcdir
1648 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1650 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1652 cd "$ac_dir" || { ac_status=$?; continue; }
1653 # Check for guested configure.
1654 if test -f "$ac_srcdir/configure.gnu"; then
1656 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1657 elif test -f "$ac_srcdir/configure"; then
1659 $SHELL "$ac_srcdir/configure" --help=recursive
1661 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1663 cd "$ac_pwd" || { ac_status=$?; break; }
1667 test -n "$ac_init_help" && exit $ac_status
1668 if $ac_init_version; then
1670 gobject-introspection configure 1.49.1
1671 generated by GNU Autoconf 2.69
1673 Copyright (C) 2012 Free Software Foundation, Inc.
1674 This configure script is free software; the Free Software Foundation
1675 gives unlimited permission to copy, distribute and modify it.
1680 ## ------------------------ ##
1681 ## Autoconf initialization. ##
1682 ## ------------------------ ##
1684 # ac_fn_c_try_compile LINENO
1685 # --------------------------
1686 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1687 ac_fn_c_try_compile ()
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 rm -f conftest.$ac_objext
1691 if { { ac_try="$ac_compile"
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_compile") 2>conftest.err
1700 if test -s conftest.err; then
1701 grep -v '^ *+' conftest.err >conftest.er1
1702 cat conftest.er1 >&5
1703 mv -f conftest.er1 conftest.err
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && {
1707 test -z "$ac_c_werror_flag" ||
1708 test ! -s conftest.err
1709 } && test -s conftest.$ac_objext; then :
1712 $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718 as_fn_set_status $ac_retval
1720 } # ac_fn_c_try_compile
1722 # ac_fn_c_try_link LINENO
1723 # -----------------------
1724 # Try to link conftest.$ac_ext, and return whether this succeeded.
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 rm -f conftest.$ac_objext conftest$ac_exeext
1729 if { { ac_try="$ac_link"
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_link") 2>conftest.err
1738 if test -s conftest.err; then
1739 grep -v '^ *+' conftest.err >conftest.er1
1740 cat conftest.er1 >&5
1741 mv -f conftest.er1 conftest.err
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && {
1745 test -z "$ac_c_werror_flag" ||
1746 test ! -s conftest.err
1747 } && test -s conftest$ac_exeext && {
1748 test "$cross_compiling" = yes ||
1749 test -x conftest$ac_exeext
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1758 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1759 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1760 # interfere with the next link command; also delete a directory that is
1761 # left behind by Apple's compiler. We do this before executing the actions.
1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764 as_fn_set_status $ac_retval
1766 } # ac_fn_c_try_link
1768 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1769 # -------------------------------------------------------
1770 # Tests whether HEADER exists and can be compiled using the include files in
1771 # INCLUDES, setting the cache variable VAR accordingly.
1772 ac_fn_c_check_header_compile ()
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if eval \${$3+:} false; then :
1778 $as_echo_n "(cached) " >&6
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1785 if ac_fn_c_try_compile "$LINENO"; then :
1790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797 } # ac_fn_c_check_header_compile
1799 # ac_fn_c_try_cpp LINENO
1800 # ----------------------
1801 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 if { { ac_try="$ac_cpp conftest.$ac_ext"
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1814 if test -s conftest.err; then
1815 grep -v '^ *+' conftest.err >conftest.er1
1816 cat conftest.er1 >&5
1817 mv -f conftest.er1 conftest.err
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } > conftest.i && {
1821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1822 test ! -s conftest.err
1826 $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 as_fn_set_status $ac_retval
1836 # ac_fn_c_try_run LINENO
1837 # ----------------------
1838 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1839 # that executables *can* be run.
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 if { { ac_try="$ac_link"
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_link") 2>&5
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1854 { { case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_try") 2>&5
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; }; }; then :
1866 $as_echo "$as_me: program exited with status $ac_status" >&5
1867 $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1870 ac_retval=$ac_status
1872 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874 as_fn_set_status $ac_retval
1878 # ac_fn_c_check_func LINENO FUNC VAR
1879 # ----------------------------------
1880 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1881 ac_fn_c_check_func ()
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if eval \${$3+:} false; then :
1887 $as_echo_n "(cached) " >&6
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1891 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1893 #define $2 innocuous_$2
1895 /* System header to define __stub macros and hopefully few prototypes,
1896 which can conflict with char $2 (); below.
1897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1898 <limits.h> exists even on freestanding compilers. */
1901 # include <limits.h>
1903 # include <assert.h>
1908 /* Override any GCC internal prototype to avoid an error.
1909 Use char because int might match the return type of a GCC
1910 builtin and then its argument prototype would still apply. */
1915 /* The GNU C library defines this for functions which it implements
1916 to always fail with ENOSYS. Some functions are actually named
1917 something starting with __ and the normal name is an alias. */
1918 #if defined __stub_$2 || defined __stub___$2
1930 if ac_fn_c_try_link "$LINENO"; then :
1935 rm -f core conftest.err conftest.$ac_objext \
1936 conftest$ac_exeext conftest.$ac_ext
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943 } # ac_fn_c_check_func
1945 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1946 # --------------------------------------------
1947 # Tries to find the compile-time value of EXPR in a program that includes
1948 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1950 ac_fn_c_compute_int ()
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 if test "$cross_compiling" = yes; then
1954 # Depending upon the size, compute the lo and hi bounds.
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1961 static int test_array [1 - 2 * !(($2) >= 0)];
1963 return test_array [0];
1969 if ac_fn_c_try_compile "$LINENO"; then :
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1978 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1980 return test_array [0];
1986 if ac_fn_c_try_compile "$LINENO"; then :
1987 ac_hi=$ac_mid; break
1989 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1990 if test $ac_lo -le $ac_mid; then
1994 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h. */
2005 static int test_array [1 - 2 * !(($2) < 0)];
2007 return test_array [0];
2013 if ac_fn_c_try_compile "$LINENO"; then :
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2022 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2024 return test_array [0];
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031 ac_lo=$ac_mid; break
2033 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2034 if test $ac_mid -le $ac_hi; then
2038 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 # Binary search between lo and hi bounds.
2049 while test "x$ac_lo" != "x$ac_hi"; do
2050 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2057 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2059 return test_array [0];
2065 if ac_fn_c_try_compile "$LINENO"; then :
2068 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2080 static long int longval () { return $2; }
2081 static unsigned long int ulongval () { return $2; }
2088 FILE *f = fopen ("conftest.val", "w");
2093 long int i = longval ();
2096 fprintf (f, "%ld", i);
2100 unsigned long int i = ulongval ();
2103 fprintf (f, "%lu", i);
2105 /* Do not output a trailing newline, as this causes \r\n confusion
2106 on some platforms. */
2107 return ferror (f) || fclose (f) != 0;
2113 if ac_fn_c_try_run "$LINENO"; then :
2114 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2119 conftest.$ac_objext conftest.beam conftest.$ac_ext
2123 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2124 as_fn_set_status $ac_retval
2126 } # ac_fn_c_compute_int
2128 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2129 # -------------------------------------------------------
2130 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2131 # the include files in INCLUDES and setting the cache variable VAR
2133 ac_fn_c_check_header_mongrel ()
2135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136 if eval \${$3+:} false; then :
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2138 $as_echo_n "checking for $2... " >&6; }
2139 if eval \${$3+:} false; then :
2140 $as_echo_n "(cached) " >&6
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2144 $as_echo "$ac_res" >&6; }
2146 # Is the header compilable?
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2148 $as_echo_n "checking $2 usability... " >&6; }
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2154 if ac_fn_c_try_compile "$LINENO"; then :
2155 ac_header_compiler=yes
2157 ac_header_compiler=no
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2161 $as_echo "$ac_header_compiler" >&6; }
2163 # Is the header present?
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2165 $as_echo_n "checking $2 presence... " >&6; }
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2170 if ac_fn_c_try_cpp "$LINENO"; then :
2171 ac_header_preproc=yes
2173 ac_header_preproc=no
2175 rm -f conftest.err conftest.i conftest.$ac_ext
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2177 $as_echo "$ac_header_preproc" >&6; }
2179 # So? What about this header?
2180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2183 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2185 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2189 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2191 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2193 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2195 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2197 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2198 ( $as_echo "## ------------------------------------------------------------------------------------ ##
2199 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gobject-introspection ##
2200 ## ------------------------------------------------------------------------------------ ##"
2201 ) | sed "s/^/$as_me: WARNING: /" >&2
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2205 $as_echo_n "checking for $2... " >&6; }
2206 if eval \${$3+:} false; then :
2207 $as_echo_n "(cached) " >&6
2209 eval "$3=\$ac_header_compiler"
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2213 $as_echo "$ac_res" >&6; }
2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217 } # ac_fn_c_check_header_mongrel
2218 cat >config.log <<_ACEOF
2219 This file contains any messages produced by compilers while
2220 running configure, to aid debugging if configure makes a mistake.
2222 It was created by gobject-introspection $as_me 1.49.1, which was
2223 generated by GNU Autoconf 2.69. Invocation command line was
2235 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2236 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2237 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2238 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2239 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2241 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2242 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2244 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2245 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2246 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2247 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2248 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2249 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2250 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 test -z "$as_dir" && as_dir=.
2259 $as_echo "PATH: $as_dir"
2275 # Keep a trace of the command line.
2276 # Strip out --no-create and --no-recursion so they do not pile up.
2277 # Strip out --silent because we don't want to record it for future runs.
2278 # Also quote any args containing shell meta-characters.
2279 # Make two passes to allow for proper duplicate-argument suppression.
2283 ac_must_keep_next=false
2289 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2291 | -silent | --silent | --silen | --sile | --sil)
2294 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2297 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2299 as_fn_append ac_configure_args1 " '$ac_arg'"
2300 if test $ac_must_keep_next = true; then
2301 ac_must_keep_next=false # Got value, back to normal.
2304 *=* | --config-cache | -C | -disable-* | --disable-* \
2305 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2306 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2307 | -with-* | --with-* | -without-* | --without-* | --x)
2308 case "$ac_configure_args0 " in
2309 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2312 -* ) ac_must_keep_next=true ;;
2315 as_fn_append ac_configure_args " '$ac_arg'"
2320 { ac_configure_args0=; unset ac_configure_args0;}
2321 { ac_configure_args1=; unset ac_configure_args1;}
2323 # When interrupted or exit'd, cleanup temporary files, and complete
2324 # config.log. We remove comments because anyway the quotes in there
2325 # would cause problems or look ugly.
2326 # WARNING: Use '\'' to represent an apostrophe within the trap.
2327 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2328 trap 'exit_status=$?
2329 # Save into config.log some information that might help in debugging.
2333 $as_echo "## ---------------- ##
2334 ## Cache variables. ##
2335 ## ---------------- ##"
2337 # The following way of writing the cache mishandles newlines in values,
2339 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2340 eval ac_val=\$$ac_var
2344 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2345 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2348 _ | IFS | as_nl) ;; #(
2349 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2350 *) { eval $ac_var=; unset $ac_var;} ;;
2355 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2356 *${as_nl}ac_space=\ *)
2358 "s/'\''/'\''\\\\'\'''\''/g;
2359 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2362 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2369 $as_echo "## ----------------- ##
2370 ## Output variables. ##
2371 ## ----------------- ##"
2373 for ac_var in $ac_subst_vars
2375 eval ac_val=\$$ac_var
2377 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2379 $as_echo "$ac_var='\''$ac_val'\''"
2383 if test -n "$ac_subst_files"; then
2384 $as_echo "## ------------------- ##
2385 ## File substitutions. ##
2386 ## ------------------- ##"
2388 for ac_var in $ac_subst_files
2390 eval ac_val=\$$ac_var
2392 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2394 $as_echo "$ac_var='\''$ac_val'\''"
2399 if test -s confdefs.h; then
2400 $as_echo "## ----------- ##
2407 test "$ac_signal" != 0 &&
2408 $as_echo "$as_me: caught signal $ac_signal"
2409 $as_echo "$as_me: exit $exit_status"
2411 rm -f core *.core core.conftest.* &&
2412 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2415 for ac_signal in 1 2 13 15; do
2416 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2420 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2421 rm -f -r conftest* confdefs.h
2423 $as_echo "/* confdefs.h */" > confdefs.h
2425 # Predefined preprocessor variables.
2427 cat >>confdefs.h <<_ACEOF
2428 #define PACKAGE_NAME "$PACKAGE_NAME"
2431 cat >>confdefs.h <<_ACEOF
2432 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2435 cat >>confdefs.h <<_ACEOF
2436 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2439 cat >>confdefs.h <<_ACEOF
2440 #define PACKAGE_STRING "$PACKAGE_STRING"
2443 cat >>confdefs.h <<_ACEOF
2444 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2447 cat >>confdefs.h <<_ACEOF
2448 #define PACKAGE_URL "$PACKAGE_URL"
2452 # Let the site file select an alternate cache file if it wants to.
2453 # Prefer an explicitly selected file to automatically selected ones.
2456 if test -n "$CONFIG_SITE"; then
2457 # We do not want a PATH search for config.site.
2458 case $CONFIG_SITE in #((
2459 -*) ac_site_file1=./$CONFIG_SITE;;
2460 */*) ac_site_file1=$CONFIG_SITE;;
2461 *) ac_site_file1=./$CONFIG_SITE;;
2463 elif test "x$prefix" != xNONE; then
2464 ac_site_file1=$prefix/share/config.site
2465 ac_site_file2=$prefix/etc/config.site
2467 ac_site_file1=$ac_default_prefix/share/config.site
2468 ac_site_file2=$ac_default_prefix/etc/config.site
2470 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2472 test "x$ac_site_file" = xNONE && continue
2473 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2475 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2476 sed 's/^/| /' "$ac_site_file" >&5
2478 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2480 as_fn_error $? "failed to load site script $ac_site_file
2481 See \`config.log' for more details" "$LINENO" 5; }
2485 if test -r "$cache_file"; then
2486 # Some versions of bash will fail to source /dev/null (special files
2487 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2488 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2490 $as_echo "$as_me: loading cache $cache_file" >&6;}
2492 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2493 *) . "./$cache_file";;
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2498 $as_echo "$as_me: creating cache $cache_file" >&6;}
2502 # Check that the precious variables saved in the cache have kept the same
2504 ac_cache_corrupted=false
2505 for ac_var in $ac_precious_vars; do
2506 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2507 eval ac_new_set=\$ac_env_${ac_var}_set
2508 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2509 eval ac_new_val=\$ac_env_${ac_var}_value
2510 case $ac_old_set,$ac_new_set in
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2513 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2514 ac_cache_corrupted=: ;;
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2517 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2518 ac_cache_corrupted=: ;;
2521 if test "x$ac_old_val" != "x$ac_new_val"; then
2522 # differences in whitespace do not lead to failure.
2523 ac_old_val_w=`echo x $ac_old_val`
2524 ac_new_val_w=`echo x $ac_new_val`
2525 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2527 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2528 ac_cache_corrupted=:
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2531 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2532 eval $ac_var=\$ac_old_val
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2535 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2537 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2540 # Pass precious variables to config.status.
2541 if test "$ac_new_set" = set; then
2543 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2544 *) ac_arg=$ac_var=$ac_new_val ;;
2546 case " $ac_configure_args " in
2547 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2548 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2552 if $ac_cache_corrupted; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2556 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2557 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2559 ## -------------------- ##
2560 ## Main body of script. ##
2561 ## -------------------- ##
2564 ac_cpp='$CPP $CPPFLAGS'
2565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2571 ac_config_headers="$ac_config_headers config.h"
2575 for ac_dir in build-aux "$srcdir"/build-aux; do
2576 if test -f "$ac_dir/install-sh"; then
2578 ac_install_sh="$ac_aux_dir/install-sh -c"
2580 elif test -f "$ac_dir/install.sh"; then
2582 ac_install_sh="$ac_aux_dir/install.sh -c"
2584 elif test -f "$ac_dir/shtool"; then
2586 ac_install_sh="$ac_aux_dir/shtool install -c"
2590 if test -z "$ac_aux_dir"; then
2591 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2594 # These three variables are undocumented and unsupported,
2595 # and are intended to be withdrawn in a future Autoconf release.
2596 # They can cause serious problems if a builder's source tree is in a directory
2597 # whose full name contains unusual characters.
2598 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2599 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2600 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2604 am__api_version='1.15'
2606 # Find a good install program. We prefer a C program (faster),
2607 # so one script is as good as another. But avoid the broken or
2608 # incompatible versions:
2609 # SysV /etc/install, /usr/sbin/install
2610 # SunOS /usr/etc/install
2611 # IRIX /sbin/install
2613 # AmigaOS /C/install, which installs bootblocks on floppy discs
2614 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2615 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2616 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2617 # OS/2's system install, which has a completely different semantic
2618 # ./install, which can be erroneously created by make from ./install.sh.
2619 # Reject install programs that cannot install multiple files.
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2621 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2622 if test -z "$INSTALL"; then
2623 if ${ac_cv_path_install+:} false; then :
2624 $as_echo_n "(cached) " >&6
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 test -z "$as_dir" && as_dir=.
2631 # Account for people who put trailing slashes in PATH elements.
2632 case $as_dir/ in #((
2633 ./ | .// | /[cC]/* | \
2634 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2635 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2638 # OSF1 and SCO ODT 3.0 have their own names for install.
2639 # Don't use installbsd from OSF since it installs stuff as root
2641 for ac_prog in ginstall scoinst install; do
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2644 if test $ac_prog = install &&
2645 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2646 # AIX install. It has an incompatible calling convention.
2648 elif test $ac_prog = install &&
2649 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2650 # program-specific install script used by HP pwplus--don't use.
2653 rm -rf conftest.one conftest.two conftest.dir
2654 echo one > conftest.one
2655 echo two > conftest.two
2657 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2658 test -s conftest.one && test -s conftest.two &&
2659 test -s conftest.dir/conftest.one &&
2660 test -s conftest.dir/conftest.two
2662 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2675 rm -rf conftest.one conftest.two conftest.dir
2678 if test "${ac_cv_path_install+set}" = set; then
2679 INSTALL=$ac_cv_path_install
2681 # As a last resort, use the slow shell script. Don't cache a
2682 # value for INSTALL within a source directory, because that will
2683 # break other packages using the cache if that directory is
2684 # removed, or if the value is a relative name.
2685 INSTALL=$ac_install_sh
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2689 $as_echo "$INSTALL" >&6; }
2691 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2692 # It thinks the first close brace ends the variable substitution.
2693 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2695 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2697 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2700 $as_echo_n "checking whether build environment is sane... " >&6; }
2701 # Reject unsafe characters in $srcdir or the absolute working directory
2702 # name. Accept space and tab only in the latter.
2706 *[\\\"\#\$\&\'\`$am_lf]*)
2707 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2710 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2711 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2714 # Do 'set' in a subshell so we don't clobber the current shell's
2715 # arguments. Must try -L first in case configure is actually a
2716 # symlink; some systems play weird games with the mod time of symlinks
2717 # (eg FreeBSD returns the mod time of the symlink's containing
2721 for am_try in 1 2; do
2722 echo "timestamp, slept: $am_has_slept" > conftest.file
2723 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2724 if test "$*" = "X"; then
2726 set X `ls -t "$srcdir/configure" conftest.file`
2728 if test "$*" != "X $srcdir/configure conftest.file" \
2729 && test "$*" != "X conftest.file $srcdir/configure"; then
2731 # If neither matched, then we have a broken ls. This can happen
2732 # if, for instance, CONFIG_SHELL is bash and it inherits a
2733 # broken ls alias from the environment. This has actually
2734 # happened. Such a system could not be considered "sane".
2735 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2736 alias in your environment" "$LINENO" 5
2738 if test "$2" = conftest.file || test $am_try -eq 2; then
2745 test "$2" = conftest.file
2751 as_fn_error $? "newly created file is older than distributed files!
2752 Check your system clock" "$LINENO" 5
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2755 $as_echo "yes" >&6; }
2756 # If we didn't sleep, we still need to ensure time stamps of config.status and
2757 # generated files are strictly newer.
2759 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2766 test "$program_prefix" != NONE &&
2767 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2768 # Use a double $ so make ignores it.
2769 test "$program_suffix" != NONE &&
2770 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2771 # Double any \ or $.
2772 # By default was `s,x,x', remove it if useless.
2773 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2774 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2776 # Expand $ac_aux_dir to an absolute path.
2777 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2779 if test x"${MISSING+set}" != xset; then
2782 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2784 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2787 # Use eval to expand $SHELL
2788 if eval "$MISSING --is-lightweight"; then
2789 am_missing_run="$MISSING "
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2793 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2796 if test x"${install_sh+set}" != xset; then
2799 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2801 install_sh="\${SHELL} $am_aux_dir/install-sh"
2805 # Installed binaries are usually stripped using 'strip' when the user
2806 # run "make install-strip". However 'strip' might not be the right
2807 # tool to use in cross-compilation environments, therefore Automake
2808 # will honor the 'STRIP' environment variable to overrule this program.
2809 if test "$cross_compiling" != no; then
2810 if test -n "$ac_tool_prefix"; then
2811 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2812 set dummy ${ac_tool_prefix}strip; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if ${ac_cv_prog_STRIP+:} false; then :
2816 $as_echo_n "(cached) " >&6
2818 if test -n "$STRIP"; then
2819 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 STRIP=$ac_cv_prog_STRIP
2839 if test -n "$STRIP"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2841 $as_echo "$STRIP" >&6; }
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2849 if test -z "$ac_cv_prog_STRIP"; then
2851 # Extract the first word of "strip", so it can be a program name with args.
2852 set dummy strip; ac_word=$2
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854 $as_echo_n "checking for $ac_word... " >&6; }
2855 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2856 $as_echo_n "(cached) " >&6
2858 if test -n "$ac_ct_STRIP"; then
2859 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2868 ac_cv_prog_ac_ct_STRIP="strip"
2869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2879 if test -n "$ac_ct_STRIP"; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2881 $as_echo "$ac_ct_STRIP" >&6; }
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884 $as_echo "no" >&6; }
2887 if test "x$ac_ct_STRIP" = x; then
2890 case $cross_compiling:$ac_tool_warned in
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2894 ac_tool_warned=yes ;;
2899 STRIP="$ac_cv_prog_STRIP"
2903 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2906 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2907 if test -z "$MKDIR_P"; then
2908 if ${ac_cv_path_mkdir+:} false; then :
2909 $as_echo_n "(cached) " >&6
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2915 test -z "$as_dir" && as_dir=.
2916 for ac_prog in mkdir gmkdir; do
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2919 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2920 'mkdir (GNU coreutils) '* | \
2921 'mkdir (coreutils) '* | \
2922 'mkdir (fileutils) '4.1*)
2923 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2933 test -d ./--version && rmdir ./--version
2934 if test "${ac_cv_path_mkdir+set}" = set; then
2935 MKDIR_P="$ac_cv_path_mkdir -p"
2937 # As a last resort, use the slow shell script. Don't cache a
2938 # value for MKDIR_P within a source directory, because that will
2939 # break other packages using the cache if that directory is
2940 # removed, or if the value is a relative name.
2941 MKDIR_P="$ac_install_sh -d"
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2945 $as_echo "$MKDIR_P" >&6; }
2947 for ac_prog in gawk mawk nawk awk
2949 # Extract the first word of "$ac_prog", so it can be a program name with args.
2950 set dummy $ac_prog; ac_word=$2
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if ${ac_cv_prog_AWK+:} false; then :
2954 $as_echo_n "(cached) " >&6
2956 if test -n "$AWK"; then
2957 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2966 ac_cv_prog_AWK="$ac_prog"
2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 if test -n "$AWK"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2979 $as_echo "$AWK" >&6; }
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2986 test -n "$AWK" && break
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2990 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2992 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2993 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2994 $as_echo_n "(cached) " >&6
2996 cat >conftest.make <<\_ACEOF
2999 @echo '@@@%%%=$(MAKE)=@@@%%%'
3001 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3002 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3004 eval ac_cv_prog_make_${ac_make}_set=yes;;
3006 eval ac_cv_prog_make_${ac_make}_set=no;;
3010 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3012 $as_echo "yes" >&6; }
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 $as_echo "no" >&6; }
3017 SET_MAKE="MAKE=${MAKE-make}"
3020 rm -rf .tst 2>/dev/null
3021 mkdir .tst 2>/dev/null
3022 if test -d .tst; then
3027 rmdir .tst 2>/dev/null
3029 # Check whether --enable-silent-rules was given.
3030 if test "${enable_silent_rules+set}" = set; then :
3031 enableval=$enable_silent_rules;
3034 case $enable_silent_rules in # (((
3035 yes) AM_DEFAULT_VERBOSITY=0;;
3036 no) AM_DEFAULT_VERBOSITY=1;;
3037 *) AM_DEFAULT_VERBOSITY=1;;
3039 am_make=${MAKE-make}
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3041 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3042 if ${am_cv_make_support_nested_variables+:} false; then :
3043 $as_echo_n "(cached) " >&6
3045 if $as_echo 'TRUE=$(BAR$(V))
3051 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3052 am_cv_make_support_nested_variables=yes
3054 am_cv_make_support_nested_variables=no
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3058 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3059 if test $am_cv_make_support_nested_variables = yes; then
3061 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3063 AM_V=$AM_DEFAULT_VERBOSITY
3064 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3068 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3069 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3070 # is not polluted with repeated "-I."
3071 am__isrc=' -I$(srcdir)'
3072 # test to see if srcdir already configured
3073 if test -f $srcdir/config.status; then
3074 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3078 # test whether we have cygpath
3079 if test -z "$CYGPATH_W"; then
3080 if (cygpath --version) >/dev/null 2>/dev/null; then
3081 CYGPATH_W='cygpath -w'
3088 # Define the identity of the package.
3089 PACKAGE='gobject-introspection'
3093 cat >>confdefs.h <<_ACEOF
3094 #define PACKAGE "$PACKAGE"
3098 cat >>confdefs.h <<_ACEOF
3099 #define VERSION "$VERSION"
3102 # Some tools Automake needs.
3104 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3107 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3110 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3113 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3116 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3118 # For better backward compatibility. To be removed once Automake 1.9.x
3119 # dies out for good. For more background, see:
3120 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3121 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3122 mkdir_p='$(MKDIR_P)'
3124 # We need awk for the "check" target (and possibly the TAP driver). The
3125 # system "awk" is bad on some platforms.
3126 # Always define AMTAR for backward compatibility. Yes, it's still used
3127 # in the wild :-( We should find a proper way to deprecate it ...
3131 # We'll loop over all known methods to create a tar archive until one works.
3132 _am_tools='gnutar plaintar pax cpio none'
3134 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3135 # There is notably a 21 bits limit for the UID and the GID. In fact,
3136 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3138 am_max_uid=2097151 # 2^21 - 1
3139 am_max_gid=$am_max_uid
3140 # The $UID and $GID variables are not portable, so we need to resort
3141 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3142 # below are definitely unexpected, so allow the users to see them
3143 # (that is, avoid stderr redirection).
3144 am_uid=`id -u || echo unknown`
3145 am_gid=`id -g || echo unknown`
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3147 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3148 if test $am_uid -le $am_max_uid; then
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3150 $as_echo "yes" >&6; }
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153 $as_echo "no" >&6; }
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3157 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3158 if test $am_gid -le $am_max_gid; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3160 $as_echo "yes" >&6; }
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3168 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3170 # Go ahead even if we have the value already cached. We do so because we
3171 # need to set the values for the 'am__tar' and 'am__untar' variables.
3172 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3174 for _am_tool in $_am_tools; do
3177 for _am_tar in tar gnutar gtar; do
3178 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3179 ($_am_tar --version) >&5 2>&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } && break
3184 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3185 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3186 am__untar="$_am_tar -xf -"
3189 # Must skip GNU tar: if it does not support --format= it doesn't create
3190 # ustar tarball either.
3191 (tar --version) >/dev/null 2>&1 && continue
3192 am__tar='tar chf - "$$tardir"'
3193 am__tar_='tar chf - "$tardir"'
3194 am__untar='tar xf -'
3197 am__tar='pax -L -x ustar -w "$$tardir"'
3198 am__tar_='pax -L -x ustar -w "$tardir"'
3202 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3203 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3204 am__untar='cpio -i -H ustar -d'
3213 # If the value was cached, stop now. We just wanted to have am__tar
3214 # and am__untar set.
3215 test -n "${am_cv_prog_tar_ustar}" && break
3217 # tar/untar a dummy directory, and stop if the command works.
3220 echo GrepMe > conftest.dir/file
3221 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3222 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); }
3227 if test -s conftest.tar; then
3228 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3229 ($am__untar <conftest.tar) >&5 2>&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); }
3233 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3234 (cat conftest.dir/file) >&5 2>&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }
3238 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3243 if ${am_cv_prog_tar_ustar+:} false; then :
3244 $as_echo_n "(cached) " >&6
3246 am_cv_prog_tar_ustar=$_am_tool
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3250 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3257 # POSIX will say in a future version that running "rm -f" with no argument
3258 # is OK; and we want to be able to make that assumption in our Makefile
3259 # recipes. So use an aggressive probe to check that the usage we want is
3260 # actually supported "in the wild" to an acceptable degree.
3261 # See automake bug#10828.
3262 # To make any issue more visible, cause the running configure to be aborted
3263 # by default if the 'rm' program in use doesn't match our expectations; the
3264 # user can still override this though.
3265 if rm -f && rm -fr && rm -rf; then : OK; else
3269 Your 'rm' program seems unable to run without file operands specified
3270 on the command line, even when the '-f' option is present. This is contrary
3271 to the behaviour of most rm programs out there, and not conforming with
3272 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3274 Please tell bug-automake@gnu.org about your system, including the value
3275 of your $PATH and any error possibly output before this message. This
3276 can help us improve future automake versions.
3279 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3280 echo 'Configuration will proceed anyway, since you have set the' >&2
3281 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3285 Aborting the configuration process, to ensure you take notice of the issue.
3287 You can download and install GNU coreutils to get an 'rm' implementation
3288 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3290 If you want to complete the configuration process using your problematic
3291 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3292 to "yes", and re-run configure.
3295 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3301 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3302 # Check whether --enable-maintainer-mode was given.
3303 if test "${enable_maintainer_mode+set}" = set; then :
3304 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3306 USE_MAINTAINER_MODE=yes
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3310 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3311 if test $USE_MAINTAINER_MODE = yes; then
3312 MAINTAINER_MODE_TRUE=
3313 MAINTAINER_MODE_FALSE='#'
3315 MAINTAINER_MODE_TRUE='#'
3316 MAINTAINER_MODE_FALSE=
3319 MAINT=$MAINTAINER_MODE_TRUE
3323 # Check whether --enable-silent-rules was given.
3324 if test "${enable_silent_rules+set}" = set; then :
3325 enableval=$enable_silent_rules;
3328 case $enable_silent_rules in # (((
3329 yes) AM_DEFAULT_VERBOSITY=0;;
3330 no) AM_DEFAULT_VERBOSITY=1;;
3331 *) AM_DEFAULT_VERBOSITY=0;;
3333 am_make=${MAKE-make}
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3335 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3336 if ${am_cv_make_support_nested_variables+:} false; then :
3337 $as_echo_n "(cached) " >&6
3339 if $as_echo 'TRUE=$(BAR$(V))
3345 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3346 am_cv_make_support_nested_variables=yes
3348 am_cv_make_support_nested_variables=no
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3352 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3353 if test $am_cv_make_support_nested_variables = yes; then
3355 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3357 AM_V=$AM_DEFAULT_VERBOSITY
3358 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3363 # Used in docs/reference/version.xml
3368 # Make sure we can run config.sub.
3369 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3370 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3373 $as_echo_n "checking build system type... " >&6; }
3374 if ${ac_cv_build+:} false; then :
3375 $as_echo_n "(cached) " >&6
3377 ac_build_alias=$build_alias
3378 test "x$ac_build_alias" = x &&
3379 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3380 test "x$ac_build_alias" = x &&
3381 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3382 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3383 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3387 $as_echo "$ac_cv_build" >&6; }
3388 case $ac_cv_build in
3390 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3393 ac_save_IFS=$IFS; IFS='-'
3399 # Remember, the first character of IFS is used to create $*,
3400 # except with old shells:
3403 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3407 $as_echo_n "checking host system type... " >&6; }
3408 if ${ac_cv_host+:} false; then :
3409 $as_echo_n "(cached) " >&6
3411 if test "x$host_alias" = x; then
3412 ac_cv_host=$ac_cv_build
3414 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3415 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3420 $as_echo "$ac_cv_host" >&6; }
3423 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3426 ac_save_IFS=$IFS; IFS='-'
3432 # Remember, the first character of IFS is used to create $*,
3433 # except with old shells:
3436 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3447 if test "x$os_win32" = "xyes"; then
3456 # Checks for programs.
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462 if test -n "$ac_tool_prefix"; then
3463 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3464 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466 $as_echo_n "checking for $ac_word... " >&6; }
3467 if ${ac_cv_prog_CC+:} false; then :
3468 $as_echo_n "(cached) " >&6
3470 if test -n "$CC"; then
3471 ac_cv_prog_CC="$CC" # Let the user override the test.
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 test -z "$as_dir" && as_dir=.
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3491 if test -n "$CC"; then
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3493 $as_echo "$CC" >&6; }
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 $as_echo "no" >&6; }
3501 if test -z "$ac_cv_prog_CC"; then
3503 # Extract the first word of "gcc", so it can be a program name with args.
3504 set dummy gcc; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3508 $as_echo_n "(cached) " >&6
3510 if test -n "$ac_ct_CC"; then
3511 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 test -z "$as_dir" && as_dir=.
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3520 ac_cv_prog_ac_ct_CC="gcc"
3521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3531 if test -n "$ac_ct_CC"; then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3533 $as_echo "$ac_ct_CC" >&6; }
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3539 if test "x$ac_ct_CC" = x; then
3542 case $cross_compiling:$ac_tool_warned in
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3546 ac_tool_warned=yes ;;
3554 if test -z "$CC"; then
3555 if test -n "$ac_tool_prefix"; then
3556 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3557 set dummy ${ac_tool_prefix}cc; ac_word=$2
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3559 $as_echo_n "checking for $ac_word... " >&6; }
3560 if ${ac_cv_prog_CC+:} false; then :
3561 $as_echo_n "(cached) " >&6
3563 if test -n "$CC"; then
3564 ac_cv_prog_CC="$CC" # Let the user override the test.
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 test -z "$as_dir" && as_dir=.
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3573 ac_cv_prog_CC="${ac_tool_prefix}cc"
3574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3584 if test -n "$CC"; then
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3586 $as_echo "$CC" >&6; }
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 $as_echo "no" >&6; }
3595 if test -z "$CC"; then
3596 # Extract the first word of "cc", so it can be a program name with args.
3597 set dummy cc; ac_word=$2
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3599 $as_echo_n "checking for $ac_word... " >&6; }
3600 if ${ac_cv_prog_CC+:} false; then :
3601 $as_echo_n "(cached) " >&6
3603 if test -n "$CC"; then
3604 ac_cv_prog_CC="$CC" # Let the user override the test.
3607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611 test -z "$as_dir" && as_dir=.
3612 for ac_exec_ext in '' $ac_executable_extensions; do
3613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3614 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3615 ac_prog_rejected=yes
3619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3626 if test $ac_prog_rejected = yes; then
3627 # We found a bogon in the path, so make sure we never use it.
3628 set dummy $ac_cv_prog_CC
3630 if test $# != 0; then
3631 # We chose a different compiler from the bogus one.
3632 # However, it has the same basename, so the bogon will be chosen
3633 # first if we set CC to just the basename; use the full file name.
3635 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3641 if test -n "$CC"; then
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3643 $as_echo "$CC" >&6; }
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3646 $as_echo "no" >&6; }
3651 if test -z "$CC"; then
3652 if test -n "$ac_tool_prefix"; then
3653 for ac_prog in cl.exe
3655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3656 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3658 $as_echo_n "checking for $ac_word... " >&6; }
3659 if ${ac_cv_prog_CC+:} false; then :
3660 $as_echo_n "(cached) " >&6
3662 if test -n "$CC"; then
3663 ac_cv_prog_CC="$CC" # Let the user override the test.
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 test -z "$as_dir" && as_dir=.
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3672 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3683 if test -n "$CC"; then
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3685 $as_echo "$CC" >&6; }
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688 $as_echo "no" >&6; }
3692 test -n "$CC" && break
3695 if test -z "$CC"; then
3697 for ac_prog in cl.exe
3699 # Extract the first word of "$ac_prog", so it can be a program name with args.
3700 set dummy $ac_prog; ac_word=$2
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3702 $as_echo_n "checking for $ac_word... " >&6; }
3703 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3704 $as_echo_n "(cached) " >&6
3706 if test -n "$ac_ct_CC"; then
3707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713 test -z "$as_dir" && as_dir=.
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3716 ac_cv_prog_ac_ct_CC="$ac_prog"
3717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3727 if test -n "$ac_ct_CC"; then
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3729 $as_echo "$ac_ct_CC" >&6; }
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3736 test -n "$ac_ct_CC" && break
3739 if test "x$ac_ct_CC" = x; then
3742 case $cross_compiling:$ac_tool_warned in
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3746 ac_tool_warned=yes ;;
3755 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3757 as_fn_error $? "no acceptable C compiler found in \$PATH
3758 See \`config.log' for more details" "$LINENO" 5; }
3760 # Provide some information about the compiler.
3761 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3764 for ac_option in --version -v -V -qversion; do
3765 { { ac_try="$ac_compiler $ac_option >&5"
3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768 *) ac_try_echo=$ac_try;;
3770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3771 $as_echo "$ac_try_echo"; } >&5
3772 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3774 if test -s conftest.err; then
3776 ... rest of stderr output deleted ...
3777 10q' conftest.err >conftest.er1
3778 cat conftest.er1 >&5
3780 rm -f conftest.er1 conftest.err
3781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3782 test $ac_status = 0; }
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3796 ac_clean_files_save=$ac_clean_files
3797 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3798 # Try to create an executable without -o first, disregard a.out.
3799 # It will help us diagnose broken compilers, and finding out an intuition
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3802 $as_echo_n "checking whether the C compiler works... " >&6; }
3803 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3805 # The possible output files:
3806 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3809 for ac_file in $ac_files
3812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3813 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3818 if { { ac_try="$ac_link_default"
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3824 $as_echo "$ac_try_echo"; } >&5
3825 (eval "$ac_link_default") 2>&5
3827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3828 test $ac_status = 0; }; then :
3829 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3830 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3831 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3832 # so that the user can short-circuit this test for compilers unknown to
3834 for ac_file in $ac_files ''
3836 test -f "$ac_file" || continue
3838 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3841 # We found the default executable, but exeext='' is most
3845 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3847 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3849 # We set ac_cv_exeext here because the later test for it is not
3850 # safe: cross compilers may not add the suffix if given an `-o'
3851 # argument, so we may need to know it at that point already.
3852 # Even if this section looks crufty: it has the advantage of
3859 test "$ac_cv_exeext" = no && ac_cv_exeext=
3864 if test -z "$ac_file"; then :
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866 $as_echo "no" >&6; }
3867 $as_echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3872 as_fn_error 77 "C compiler cannot create executables
3873 See \`config.log' for more details" "$LINENO" 5; }
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3876 $as_echo "yes" >&6; }
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3879 $as_echo_n "checking for C compiler default output file name... " >&6; }
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3881 $as_echo "$ac_file" >&6; }
3882 ac_exeext=$ac_cv_exeext
3884 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3885 ac_clean_files=$ac_clean_files_save
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3887 $as_echo_n "checking for suffix of executables... " >&6; }
3888 if { { ac_try="$ac_link"
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3894 $as_echo "$ac_try_echo"; } >&5
3895 (eval "$ac_link") 2>&5
3897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3898 test $ac_status = 0; }; then :
3899 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3900 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3901 # work properly (i.e., refer to `conftest.exe'), while it won't with
3903 for ac_file in conftest.exe conftest conftest.*; do
3904 test -f "$ac_file" || continue
3906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3907 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3915 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3916 See \`config.log' for more details" "$LINENO" 5; }
3918 rm -f conftest conftest$ac_cv_exeext
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3920 $as_echo "$ac_cv_exeext" >&6; }
3922 rm -f conftest.$ac_ext
3923 EXEEXT=$ac_cv_exeext
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3931 FILE *f = fopen ("conftest.out", "w");
3932 return ferror (f) || fclose (f) != 0;
3938 ac_clean_files="$ac_clean_files conftest.out"
3939 # Check that the compiler produces executables we can run. If not, either
3940 # the compiler is broken, or we cross compile.
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3942 $as_echo_n "checking whether we are cross compiling... " >&6; }
3943 if test "$cross_compiling" != yes; then
3944 { { ac_try="$ac_link"
3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947 *) ac_try_echo=$ac_try;;
3949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3950 $as_echo "$ac_try_echo"; } >&5
3951 (eval "$ac_link") 2>&5
3953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3954 test $ac_status = 0; }
3955 if { ac_try='./conftest$ac_cv_exeext'
3956 { { case "(($ac_try" in
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3961 $as_echo "$ac_try_echo"; } >&5
3962 (eval "$ac_try") 2>&5
3964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3965 test $ac_status = 0; }; }; then
3968 if test "$cross_compiling" = maybe; then
3971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3973 as_fn_error $? "cannot run C compiled programs.
3974 If you meant to cross compile, use \`--host'.
3975 See \`config.log' for more details" "$LINENO" 5; }
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3980 $as_echo "$cross_compiling" >&6; }
3982 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3983 ac_clean_files=$ac_clean_files_save
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3985 $as_echo_n "checking for suffix of object files... " >&6; }
3986 if ${ac_cv_objext+:} false; then :
3987 $as_echo_n "(cached) " >&6
3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990 /* end confdefs.h. */
4000 rm -f conftest.o conftest.obj
4001 if { { ac_try="$ac_compile"
4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4007 $as_echo "$ac_try_echo"; } >&5
4008 (eval "$ac_compile") 2>&5
4010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4011 test $ac_status = 0; }; then :
4012 for ac_file in conftest.o conftest.obj conftest.*; do
4013 test -f "$ac_file" || continue;
4015 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4016 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4021 $as_echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4026 as_fn_error $? "cannot compute suffix of object files: cannot compile
4027 See \`config.log' for more details" "$LINENO" 5; }
4029 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4032 $as_echo "$ac_cv_objext" >&6; }
4033 OBJEXT=$ac_cv_objext
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4036 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4037 if ${ac_cv_c_compiler_gnu+:} false; then :
4038 $as_echo_n "(cached) " >&6
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4054 if ac_fn_c_try_compile "$LINENO"; then :
4059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4064 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4065 if test $ac_compiler_gnu = yes; then
4070 ac_test_CFLAGS=${CFLAGS+set}
4071 ac_save_CFLAGS=$CFLAGS
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4073 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4074 if ${ac_cv_prog_cc_g+:} false; then :
4075 $as_echo_n "(cached) " >&6
4077 ac_save_c_werror_flag=$ac_c_werror_flag
4078 ac_c_werror_flag=yes
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4092 if ac_fn_c_try_compile "$LINENO"; then :
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4107 if ac_fn_c_try_compile "$LINENO"; then :
4110 ac_c_werror_flag=$ac_save_c_werror_flag
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4123 if ac_fn_c_try_compile "$LINENO"; then :
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131 ac_c_werror_flag=$ac_save_c_werror_flag
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4134 $as_echo "$ac_cv_prog_cc_g" >&6; }
4135 if test "$ac_test_CFLAGS" = set; then
4136 CFLAGS=$ac_save_CFLAGS
4137 elif test $ac_cv_prog_cc_g = yes; then
4138 if test "$GCC" = yes; then
4144 if test "$GCC" = yes; then
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4151 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4152 if ${ac_cv_prog_cc_c89+:} false; then :
4153 $as_echo_n "(cached) " >&6
4155 ac_cv_prog_cc_c89=no
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4162 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4163 struct buf { int x; };
4164 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4165 static char *e (p, i)
4171 static char *f (char * (*g) (char **, int), char **p, ...)
4176 s = g (p, va_arg (v,int));
4181 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4182 function prototypes and stuff, but not '\xHH' hex character constants.
4183 These don't provoke an error unfortunately, instead are silently treated
4184 as 'x'. The following induces an error, until -std is added to get
4185 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4186 array size at least. It's necessary to write '\x00'==0 to get something
4187 that's true only with -std. */
4188 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4190 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4191 inside strings and character constants. */
4193 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4195 int test (int i, double x);
4196 struct s1 {int (*f) (int a);};
4197 struct s2 {int (*f) (double a);};
4198 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4204 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4209 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4210 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4212 CC="$ac_save_CC $ac_arg"
4213 if ac_fn_c_try_compile "$LINENO"; then :
4214 ac_cv_prog_cc_c89=$ac_arg
4216 rm -f core conftest.err conftest.$ac_objext
4217 test "x$ac_cv_prog_cc_c89" != "xno" && break
4219 rm -f conftest.$ac_ext
4224 case "x$ac_cv_prog_cc_c89" in
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4227 $as_echo "none needed" >&6; } ;;
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4230 $as_echo "unsupported" >&6; } ;;
4232 CC="$CC $ac_cv_prog_cc_c89"
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4234 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4236 if test "x$ac_cv_prog_cc_c89" != xno; then :
4241 ac_cpp='$CPP $CPPFLAGS'
4242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4247 ac_cpp='$CPP $CPPFLAGS'
4248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4252 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4253 if ${am_cv_prog_cc_c_o+:} false; then :
4254 $as_echo_n "(cached) " >&6
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4267 # Make sure it works both with $CC and with simple cc.
4268 # Following AC_PROG_CC_C_O, we do the test twice because some
4269 # compilers refuse to overwrite an existing .o file with -o,
4270 # though they will create one.
4271 am_cv_prog_cc_c_o=yes
4273 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4274 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); } \
4278 && test -f conftest2.$ac_objext; then
4281 am_cv_prog_cc_c_o=no
4285 rm -f core conftest*
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4289 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4290 if test "$am_cv_prog_cc_c_o" != yes; then
4291 # Losing compiler, so override with the script.
4292 # FIXME: It is wrong to rewrite CC.
4293 # But if we don't then we get into trouble of one sort or another.
4294 # A longer-term fix would be to have automake use am__CC in this case,
4295 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4296 CC="$am_aux_dir/compile $CC"
4299 ac_cpp='$CPP $CPPFLAGS'
4300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4304 DEPDIR="${am__leading_dot}deps"
4306 ac_config_commands="$ac_config_commands depfiles"
4309 am_make=${MAKE-make}
4310 cat > confinc << 'END'
4312 @echo this is the am__doit target
4315 # If we don't find an include directive, just comment out the code.
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4317 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4321 # First try GNU make style include.
4322 echo "include confinc" > confmf
4323 # Ignore all kinds of additional output from 'make'.
4324 case `$am_make -s -f confmf 2> /dev/null` in #(
4325 *the\ am__doit\ target*)
4331 # Now try BSD make style include.
4332 if test "$am__include" = "#"; then
4333 echo '.include "confinc"' > confmf
4334 case `$am_make -s -f confmf 2> /dev/null` in #(
4335 *the\ am__doit\ target*)
4336 am__include=.include
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4345 $as_echo "$_am_result" >&6; }
4346 rm -f confinc confmf
4348 # Check whether --enable-dependency-tracking was given.
4349 if test "${enable_dependency_tracking+set}" = set; then :
4350 enableval=$enable_dependency_tracking;
4353 if test "x$enable_dependency_tracking" != xno; then
4354 am_depcomp="$ac_aux_dir/depcomp"
4358 if test "x$enable_dependency_tracking" != xno; then
4368 depcc="$CC" am_compiler_list=
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4371 $as_echo_n "checking dependency style of $depcc... " >&6; }
4372 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4373 $as_echo_n "(cached) " >&6
4375 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4376 # We make a subdir and do the tests there. Otherwise we can end up
4377 # making bogus files that we don't know about and never remove. For
4378 # instance it was reported that on HP-UX the gcc test will end up
4379 # making a dummy file named 'D' -- because '-MD' means "put the output
4383 # Copy depcomp to subdir because otherwise we won't find it if we're
4384 # using a relative directory.
4385 cp "$am_depcomp" conftest.dir
4387 # We will build objects and dependencies in a subdirectory because
4388 # it helps to detect inapplicable dependency modes. For instance
4389 # both Tru64's cc and ICC support -MD to output dependencies as a
4390 # side effect of compilation, but ICC will put the dependencies in
4391 # the current directory while Tru64 will put them in the object
4395 am_cv_CC_dependencies_compiler_type=none
4396 if test "$am_compiler_list" = ""; then
4397 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4400 case " $depcc " in #(
4401 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4404 for depmode in $am_compiler_list; do
4405 # Setup a source with many dependencies, because some compilers
4406 # like to wrap large dependency lists on column 80 (with \), and
4407 # we should not choose a depcomp mode which is confused by this.
4409 # We need to recreate these files for each test, as the compiler may
4410 # overwrite some of them when testing with obscure command lines.
4411 # This happens at least with the AIX C compiler.
4413 for i in 1 2 3 4 5 6; do
4414 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4415 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4416 # Solaris 10 /bin/sh.
4417 echo '/* dummy */' > sub/conftst$i.h
4419 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4421 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4422 # mode. It turns out that the SunPro C++ compiler does not properly
4423 # handle '-M -o', and we need to detect this. Also, some Intel
4424 # versions had trouble with output in subdirs.
4425 am__obj=sub/conftest.${OBJEXT-o}
4426 am__minus_obj="-o $am__obj"
4429 # This depmode causes a compiler race in universal mode.
4430 test "$am__universal" = false || continue
4433 # After this tag, mechanisms are not by side-effect, so they'll
4434 # only be used when explicitly requested.
4435 if test "x$enable_dependency_tracking" = xyes; then
4441 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4442 # This compiler won't grok '-c -o', but also, the minuso test has
4443 # not run yet. These depmodes are late enough in the game, and
4444 # so weak that their functioning should not be impacted.
4445 am__obj=conftest.${OBJEXT-o}
4450 if depmode=$depmode \
4451 source=sub/conftest.c object=$am__obj \
4452 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4453 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4454 >/dev/null 2>conftest.err &&
4455 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4456 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4457 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4458 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4459 # icc doesn't choke on unknown options, it will just issue warnings
4460 # or remarks (even with -Werror). So we grep stderr for any message
4461 # that says an option was ignored or not supported.
4462 # When given -MP, icc 7.0 and 7.1 complain thusly:
4463 # icc: Command line warning: ignoring option '-M'; no argument required
4464 # The diagnosis changed in icc 8.0:
4465 # icc: Command line remark: option '-MP' not supported
4466 if (grep 'ignoring option' conftest.err ||
4467 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4468 am_cv_CC_dependencies_compiler_type=$depmode
4477 am_cv_CC_dependencies_compiler_type=none
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4482 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4483 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4486 test "x$enable_dependency_tracking" != xno \
4487 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4489 am__fastdepCC_FALSE='#'
4491 am__fastdepCC_TRUE='#'
4492 am__fastdepCC_FALSE=
4499 # Initialize libtool
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4504 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4509 macro_version='2.4.6'
4510 macro_revision='2.4.6'
4524 ltmain=$ac_aux_dir/ltmain.sh
4526 # Backslashify metacharacters that are still active within
4527 # double-quoted strings.
4528 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4530 # Same as above, but do not quote variable references.
4531 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4533 # Sed substitution to delay expansion of an escaped shell variable in a
4534 # double_quote_subst'ed string.
4535 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4537 # Sed substitution to delay expansion of an escaped single quote.
4538 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4540 # Sed substitution to avoid accidental globbing in evaled expressions
4541 no_glob_subst='s/\*/\\\*/g'
4543 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4544 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4545 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4548 $as_echo_n "checking how to print strings... " >&6; }
4549 # Test print first, because it will be a builtin if present.
4550 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4551 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4553 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4556 # Use this function as a fallback that always works.
4557 func_fallback_echo ()
4559 eval 'cat <<_LTECHO_EOF
4563 ECHO='func_fallback_echo'
4566 # func_echo_all arg...
4567 # Invoke $ECHO with all args, space-separated.
4574 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4575 $as_echo "printf" >&6; } ;;
4576 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4577 $as_echo "print -r" >&6; } ;;
4578 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4579 $as_echo "cat" >&6; } ;;
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4596 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4597 if ${ac_cv_path_SED+:} false; then :
4598 $as_echo_n "(cached) " >&6
4600 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4601 for ac_i in 1 2 3 4 5 6 7; do
4602 ac_script="$ac_script$as_nl$ac_script"
4604 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4605 { ac_script=; unset ac_script;}
4606 if test -z "$SED"; then
4607 ac_path_SED_found=false
4608 # Loop through the user's path and test for each of PROGNAME-LIST
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 test -z "$as_dir" && as_dir=.
4614 for ac_prog in sed gsed; do
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4617 as_fn_executable_p "$ac_path_SED" || continue
4618 # Check for GNU ac_path_SED and select it if it is found.
4619 # Check for GNU $ac_path_SED
4620 case `"$ac_path_SED" --version 2>&1` in
4622 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4625 $as_echo_n 0123456789 >"conftest.in"
4628 cat "conftest.in" "conftest.in" >"conftest.tmp"
4629 mv "conftest.tmp" "conftest.in"
4630 cp "conftest.in" "conftest.nl"
4631 $as_echo '' >> "conftest.nl"
4632 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4633 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4634 as_fn_arith $ac_count + 1 && ac_count=$as_val
4635 if test $ac_count -gt ${ac_path_SED_max-0}; then
4636 # Best one so far, save it but keep looking for a better one
4637 ac_cv_path_SED="$ac_path_SED"
4638 ac_path_SED_max=$ac_count
4640 # 10*(2^10) chars as input seems more than enough
4641 test $ac_count -gt 10 && break
4643 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4646 $ac_path_SED_found && break 3
4651 if test -z "$ac_cv_path_SED"; then
4652 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4660 $as_echo "$ac_cv_path_SED" >&6; }
4661 SED="$ac_cv_path_SED"
4664 test -z "$SED" && SED=sed
4665 Xsed="$SED -e 1s/^X//"
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4678 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4679 if ${ac_cv_path_GREP+:} false; then :
4680 $as_echo_n "(cached) " >&6
4682 if test -z "$GREP"; then
4683 ac_path_GREP_found=false
4684 # Loop through the user's path and test for each of PROGNAME-LIST
4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4689 test -z "$as_dir" && as_dir=.
4690 for ac_prog in grep ggrep; do
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4693 as_fn_executable_p "$ac_path_GREP" || continue
4694 # Check for GNU ac_path_GREP and select it if it is found.
4695 # Check for GNU $ac_path_GREP
4696 case `"$ac_path_GREP" --version 2>&1` in
4698 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4701 $as_echo_n 0123456789 >"conftest.in"
4704 cat "conftest.in" "conftest.in" >"conftest.tmp"
4705 mv "conftest.tmp" "conftest.in"
4706 cp "conftest.in" "conftest.nl"
4707 $as_echo 'GREP' >> "conftest.nl"
4708 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4709 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4710 as_fn_arith $ac_count + 1 && ac_count=$as_val
4711 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4712 # Best one so far, save it but keep looking for a better one
4713 ac_cv_path_GREP="$ac_path_GREP"
4714 ac_path_GREP_max=$ac_count
4716 # 10*(2^10) chars as input seems more than enough
4717 test $ac_count -gt 10 && break
4719 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4722 $ac_path_GREP_found && break 3
4727 if test -z "$ac_cv_path_GREP"; then
4728 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4731 ac_cv_path_GREP=$GREP
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4736 $as_echo "$ac_cv_path_GREP" >&6; }
4737 GREP="$ac_cv_path_GREP"
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4741 $as_echo_n "checking for egrep... " >&6; }
4742 if ${ac_cv_path_EGREP+:} false; then :
4743 $as_echo_n "(cached) " >&6
4745 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4746 then ac_cv_path_EGREP="$GREP -E"
4748 if test -z "$EGREP"; then
4749 ac_path_EGREP_found=false
4750 # Loop through the user's path and test for each of PROGNAME-LIST
4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4755 test -z "$as_dir" && as_dir=.
4756 for ac_prog in egrep; do
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4759 as_fn_executable_p "$ac_path_EGREP" || continue
4760 # Check for GNU ac_path_EGREP and select it if it is found.
4761 # Check for GNU $ac_path_EGREP
4762 case `"$ac_path_EGREP" --version 2>&1` in
4764 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4767 $as_echo_n 0123456789 >"conftest.in"
4770 cat "conftest.in" "conftest.in" >"conftest.tmp"
4771 mv "conftest.tmp" "conftest.in"
4772 cp "conftest.in" "conftest.nl"
4773 $as_echo 'EGREP' >> "conftest.nl"
4774 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4775 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4776 as_fn_arith $ac_count + 1 && ac_count=$as_val
4777 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4778 # Best one so far, save it but keep looking for a better one
4779 ac_cv_path_EGREP="$ac_path_EGREP"
4780 ac_path_EGREP_max=$ac_count
4782 # 10*(2^10) chars as input seems more than enough
4783 test $ac_count -gt 10 && break
4785 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4788 $ac_path_EGREP_found && break 3
4793 if test -z "$ac_cv_path_EGREP"; then
4794 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4797 ac_cv_path_EGREP=$EGREP
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4803 $as_echo "$ac_cv_path_EGREP" >&6; }
4804 EGREP="$ac_cv_path_EGREP"
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4808 $as_echo_n "checking for fgrep... " >&6; }
4809 if ${ac_cv_path_FGREP+:} false; then :
4810 $as_echo_n "(cached) " >&6
4812 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4813 then ac_cv_path_FGREP="$GREP -F"
4815 if test -z "$FGREP"; then
4816 ac_path_FGREP_found=false
4817 # Loop through the user's path and test for each of PROGNAME-LIST
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4822 test -z "$as_dir" && as_dir=.
4823 for ac_prog in fgrep; do
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4826 as_fn_executable_p "$ac_path_FGREP" || continue
4827 # Check for GNU ac_path_FGREP and select it if it is found.
4828 # Check for GNU $ac_path_FGREP
4829 case `"$ac_path_FGREP" --version 2>&1` in
4831 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4834 $as_echo_n 0123456789 >"conftest.in"
4837 cat "conftest.in" "conftest.in" >"conftest.tmp"
4838 mv "conftest.tmp" "conftest.in"
4839 cp "conftest.in" "conftest.nl"
4840 $as_echo 'FGREP' >> "conftest.nl"
4841 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4842 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4843 as_fn_arith $ac_count + 1 && ac_count=$as_val
4844 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4845 # Best one so far, save it but keep looking for a better one
4846 ac_cv_path_FGREP="$ac_path_FGREP"
4847 ac_path_FGREP_max=$ac_count
4849 # 10*(2^10) chars as input seems more than enough
4850 test $ac_count -gt 10 && break
4852 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4855 $ac_path_FGREP_found && break 3
4860 if test -z "$ac_cv_path_FGREP"; then
4861 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4864 ac_cv_path_FGREP=$FGREP
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4870 $as_echo "$ac_cv_path_FGREP" >&6; }
4871 FGREP="$ac_cv_path_FGREP"
4874 test -z "$GREP" && GREP=grep
4894 # Check whether --with-gnu-ld was given.
4895 if test "${with_gnu_ld+set}" = set; then :
4896 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4902 if test yes = "$GCC"; then
4903 # Check if gcc -print-prog-name=ld gives a path.
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4905 $as_echo_n "checking for ld used by $CC... " >&6; }
4908 # gcc leaves a trailing carriage return, which upsets mingw
4909 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4911 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4914 # Accept absolute paths.
4916 re_direlt='/[^/][^/]*/\.\./'
4917 # Canonicalize the pathname of ld
4918 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4919 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4920 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4922 test -z "$LD" && LD=$ac_prog
4925 # If it fails, then pretend we aren't using GCC.
4929 # If it is relative, then search for the first ld in PATH.
4933 elif test yes = "$with_gnu_ld"; then
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4935 $as_echo_n "checking for GNU ld... " >&6; }
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4938 $as_echo_n "checking for non-GNU ld... " >&6; }
4940 if ${lt_cv_path_LD+:} false; then :
4941 $as_echo_n "(cached) " >&6
4943 if test -z "$LD"; then
4944 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4945 for ac_dir in $PATH; do
4947 test -z "$ac_dir" && ac_dir=.
4948 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4949 lt_cv_path_LD=$ac_dir/$ac_prog
4950 # Check to see if the program is GNU ld. I'd rather use --version,
4951 # but apparently some variants of GNU ld only accept -v.
4952 # Break only if it was the GNU/non-GNU ld that we prefer.
4953 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4954 *GNU* | *'with BFD'*)
4955 test no != "$with_gnu_ld" && break
4958 test yes != "$with_gnu_ld" && break
4965 lt_cv_path_LD=$LD # Let the user override the test with a path.
4970 if test -n "$LD"; then
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4972 $as_echo "$LD" >&6; }
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975 $as_echo "no" >&6; }
4977 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4979 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4980 if ${lt_cv_prog_gnu_ld+:} false; then :
4981 $as_echo_n "(cached) " >&6
4983 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4984 case `$LD -v 2>&1 </dev/null` in
4985 *GNU* | *'with BFD'*)
4986 lt_cv_prog_gnu_ld=yes
4989 lt_cv_prog_gnu_ld=no
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4994 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4995 with_gnu_ld=$lt_cv_prog_gnu_ld
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5006 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5007 if ${lt_cv_path_NM+:} false; then :
5008 $as_echo_n "(cached) " >&6
5010 if test -n "$NM"; then
5011 # Let the user override the test.
5014 lt_nm_to_check=${ac_tool_prefix}nm
5015 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5016 lt_nm_to_check="$lt_nm_to_check nm"
5018 for lt_tmp_nm in $lt_nm_to_check; do
5019 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5020 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5022 test -z "$ac_dir" && ac_dir=.
5023 tmp_nm=$ac_dir/$lt_tmp_nm
5024 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5025 # Check to see if the nm accepts a BSD-compat flag.
5026 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5027 # nm: unknown option "B" ignored
5028 # Tru64's nm complains that /dev/null is an invalid object file
5029 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5031 mingw*) lt_bad_file=conftest.nm/nofile ;;
5032 *) lt_bad_file=/dev/null ;;
5034 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5035 *$lt_bad_file* | *'Invalid file or object type'*)
5036 lt_cv_path_NM="$tmp_nm -B"
5040 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5042 lt_cv_path_NM="$tmp_nm -p"
5046 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5047 continue # so that we can try to find one that supports BSD flags
5056 : ${lt_cv_path_NM=no}
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5060 $as_echo "$lt_cv_path_NM" >&6; }
5061 if test no != "$lt_cv_path_NM"; then
5064 # Didn't find any BSD compatible name lister, look for dumpbin.
5065 if test -n "$DUMPBIN"; then :
5066 # Let the user override the test.
5068 if test -n "$ac_tool_prefix"; then
5069 for ac_prog in dumpbin "link -dump"
5071 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5072 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if ${ac_cv_prog_DUMPBIN+:} false; then :
5076 $as_echo_n "(cached) " >&6
5078 if test -n "$DUMPBIN"; then
5079 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5088 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5098 DUMPBIN=$ac_cv_prog_DUMPBIN
5099 if test -n "$DUMPBIN"; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5101 $as_echo "$DUMPBIN" >&6; }
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
5108 test -n "$DUMPBIN" && break
5111 if test -z "$DUMPBIN"; then
5112 ac_ct_DUMPBIN=$DUMPBIN
5113 for ac_prog in dumpbin "link -dump"
5115 # Extract the first word of "$ac_prog", so it can be a program name with args.
5116 set dummy $ac_prog; ac_word=$2
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118 $as_echo_n "checking for $ac_word... " >&6; }
5119 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5120 $as_echo_n "(cached) " >&6
5122 if test -n "$ac_ct_DUMPBIN"; then
5123 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 test -z "$as_dir" && as_dir=.
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5132 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5143 if test -n "$ac_ct_DUMPBIN"; then
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5145 $as_echo "$ac_ct_DUMPBIN" >&6; }
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5152 test -n "$ac_ct_DUMPBIN" && break
5155 if test "x$ac_ct_DUMPBIN" = x; then
5158 case $cross_compiling:$ac_tool_warned in
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5162 ac_tool_warned=yes ;;
5164 DUMPBIN=$ac_ct_DUMPBIN
5168 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5170 DUMPBIN="$DUMPBIN -symbols -headers"
5178 if test : != "$DUMPBIN"; then
5182 test -z "$NM" && NM=nm
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5190 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5191 if ${lt_cv_nm_interface+:} false; then :
5192 $as_echo_n "(cached) " >&6
5194 lt_cv_nm_interface="BSD nm"
5195 echo "int some_variable = 0;" > conftest.$ac_ext
5196 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5197 (eval "$ac_compile" 2>conftest.err)
5198 cat conftest.err >&5
5199 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5200 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5201 cat conftest.err >&5
5202 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5203 cat conftest.out >&5
5204 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5205 lt_cv_nm_interface="MS dumpbin"
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5210 $as_echo "$lt_cv_nm_interface" >&6; }
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5213 $as_echo_n "checking whether ln -s works... " >&6; }
5215 if test "$LN_S" = "ln -s"; then
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5217 $as_echo "yes" >&6; }
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5220 $as_echo "no, using $LN_S" >&6; }
5223 # find the maximum length of command line arguments
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5225 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5226 if ${lt_cv_sys_max_cmd_len+:} false; then :
5227 $as_echo_n "(cached) " >&6
5234 # On DJGPP, this test can blow up pretty badly due to problems in libc
5235 # (any single argument exceeding 2000 bytes causes a buffer overrun
5236 # during glob expansion). Even if it were fixed, the result of this
5237 # check would be larger than it should be.
5238 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5242 # Under GNU Hurd, this test is not required because there is
5243 # no limit to the length of command line arguments.
5244 # Libtool will interpret -1 as no limit whatsoever
5245 lt_cv_sys_max_cmd_len=-1;
5248 cygwin* | mingw* | cegcc*)
5249 # On Win9x/ME, this test blows up -- it succeeds, but takes
5250 # about 5 minutes as the teststring grows exponentially.
5251 # Worse, since 9x/ME are not pre-emptively multitasking,
5252 # you end up with a "frozen" computer, even though with patience
5253 # the test eventually succeeds (with a max line length of 256k).
5254 # Instead, let's just punt: use the minimum linelength reported by
5255 # all of the supported platforms: 8192 (on NT/2K/XP).
5256 lt_cv_sys_max_cmd_len=8192;
5260 # On MiNT this can take a long time and run out of memory.
5261 lt_cv_sys_max_cmd_len=8192;
5265 # On AmigaOS with pdksh, this test takes hours, literally.
5266 # So we just punt and use a minimum line length of 8192.
5267 lt_cv_sys_max_cmd_len=8192;
5270 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5271 # This has been around since 386BSD, at least. Likely further.
5272 if test -x /sbin/sysctl; then
5273 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5274 elif test -x /usr/sbin/sysctl; then
5275 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5277 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5279 # And add a safety zone
5280 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5281 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5285 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5286 lt_cv_sys_max_cmd_len=196608
5290 # The test takes a long time on OS/2.
5291 lt_cv_sys_max_cmd_len=8192
5295 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5296 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5297 # nice to cause kernel panics so lets avoid the loop below.
5298 # First set a reasonable default.
5299 lt_cv_sys_max_cmd_len=16384
5301 if test -x /sbin/sysconfig; then
5302 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5303 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5308 lt_cv_sys_max_cmd_len=102400
5310 sysv5* | sco5v6* | sysv4.2uw2*)
5311 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5312 if test -n "$kargmax"; then
5313 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5315 lt_cv_sys_max_cmd_len=32768
5319 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5320 if test -n "$lt_cv_sys_max_cmd_len" && \
5321 test undefined != "$lt_cv_sys_max_cmd_len"; then
5322 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5323 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5325 # Make teststring a little bigger before we do anything with it.
5326 # a 1K string should be a reasonable start.
5327 for i in 1 2 3 4 5 6 7 8; do
5328 teststring=$teststring$teststring
5330 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5331 # If test is not a shell built-in, we'll probably end up computing a
5332 # maximum length that is only half of the actual maximum length, but
5334 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5335 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5336 test 17 != "$i" # 1/2 MB should be enough
5339 teststring=$teststring$teststring
5341 # Only check the string length outside the loop.
5342 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5344 # Add a significant safety factor because C++ compilers can tack on
5345 # massive amounts of additional arguments before passing them to the
5346 # linker. It appears as though 1/2 is a usable value.
5347 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5354 if test -n "$lt_cv_sys_max_cmd_len"; then
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5356 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5359 $as_echo "none" >&6; }
5361 max_cmd_len=$lt_cv_sys_max_cmd_len
5372 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5382 # test EBCDIC or ASCII
5383 case `echo X|tr X '\101'` in
5384 A) # ASCII based system
5385 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5386 lt_SP2NL='tr \040 \012'
5387 lt_NL2SP='tr \015\012 \040\040'
5389 *) # EBCDIC based system
5390 lt_SP2NL='tr \100 \n'
5391 lt_NL2SP='tr \r\n \100\100'
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5404 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5405 if ${lt_cv_to_host_file_cmd+:} false; then :
5406 $as_echo_n "(cached) " >&6
5411 *-*-mingw* ) # actually msys
5412 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5415 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5417 * ) # otherwise, assume *nix
5418 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5424 *-*-mingw* ) # actually msys
5425 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5428 lt_cv_to_host_file_cmd=func_convert_file_noop
5430 * ) # otherwise, assume *nix
5431 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5435 * ) # unhandled hosts (and "normal" native builds)
5436 lt_cv_to_host_file_cmd=func_convert_file_noop
5442 to_host_file_cmd=$lt_cv_to_host_file_cmd
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5444 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5451 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5452 if ${lt_cv_to_tool_file_cmd+:} false; then :
5453 $as_echo_n "(cached) " >&6
5455 #assume ordinary cross tools, or native build.
5456 lt_cv_to_tool_file_cmd=func_convert_file_noop
5460 *-*-mingw* ) # actually msys
5461 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5469 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5471 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5478 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5479 if ${lt_cv_ld_reload_flag+:} false; then :
5480 $as_echo_n "(cached) " >&6
5482 lt_cv_ld_reload_flag='-r'
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5485 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5486 reload_flag=$lt_cv_ld_reload_flag
5487 case $reload_flag in
5489 *) reload_flag=" $reload_flag" ;;
5491 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5493 cygwin* | mingw* | pw32* | cegcc*)
5494 if test yes != "$GCC"; then
5499 if test yes = "$GCC"; then
5500 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5502 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5515 if test -n "$ac_tool_prefix"; then
5516 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5517 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5519 $as_echo_n "checking for $ac_word... " >&6; }
5520 if ${ac_cv_prog_OBJDUMP+:} false; then :
5521 $as_echo_n "(cached) " >&6
5523 if test -n "$OBJDUMP"; then
5524 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 test -z "$as_dir" && as_dir=.
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5533 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5543 OBJDUMP=$ac_cv_prog_OBJDUMP
5544 if test -n "$OBJDUMP"; then
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5546 $as_echo "$OBJDUMP" >&6; }
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549 $as_echo "no" >&6; }
5554 if test -z "$ac_cv_prog_OBJDUMP"; then
5555 ac_ct_OBJDUMP=$OBJDUMP
5556 # Extract the first word of "objdump", so it can be a program name with args.
5557 set dummy objdump; ac_word=$2
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5559 $as_echo_n "checking for $ac_word... " >&6; }
5560 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5561 $as_echo_n "(cached) " >&6
5563 if test -n "$ac_ct_OBJDUMP"; then
5564 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 test -z "$as_dir" && as_dir=.
5571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5573 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5584 if test -n "$ac_ct_OBJDUMP"; then
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5586 $as_echo "$ac_ct_OBJDUMP" >&6; }
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589 $as_echo "no" >&6; }
5592 if test "x$ac_ct_OBJDUMP" = x; then
5595 case $cross_compiling:$ac_tool_warned in
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5599 ac_tool_warned=yes ;;
5601 OBJDUMP=$ac_ct_OBJDUMP
5604 OBJDUMP="$ac_cv_prog_OBJDUMP"
5607 test -z "$OBJDUMP" && OBJDUMP=objdump
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5618 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5619 if ${lt_cv_deplibs_check_method+:} false; then :
5620 $as_echo_n "(cached) " >&6
5622 lt_cv_file_magic_cmd='$MAGIC_CMD'
5623 lt_cv_file_magic_test_file=
5624 lt_cv_deplibs_check_method='unknown'
5625 # Need to set the preceding variable on all platforms that support
5626 # interlibrary dependencies.
5627 # 'none' -- dependencies not supported.
5628 # 'unknown' -- same as none, but documents that we really don't know.
5629 # 'pass_all' -- all dependencies passed with no checks.
5630 # 'test_compile' -- check by making test program.
5631 # 'file_magic [[regex]]' -- check by looking for files in library path
5632 # that responds to the $file_magic_cmd with a given extended regex.
5633 # If you have 'file' or equivalent on your system and you're not sure
5634 # whether 'pass_all' will *always* work, you probably want this one.
5638 lt_cv_deplibs_check_method=pass_all
5642 lt_cv_deplibs_check_method=pass_all
5646 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5647 lt_cv_file_magic_cmd='/usr/bin/file -L'
5648 lt_cv_file_magic_test_file=/shlib/libc.so
5652 # func_win32_libid is a shell function defined in ltmain.sh
5653 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5654 lt_cv_file_magic_cmd='func_win32_libid'
5658 # Base MSYS/MinGW do not provide the 'file' command needed by
5659 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5660 # unless we find 'file', for example because we are cross-compiling.
5661 if ( file / ) >/dev/null 2>&1; then
5662 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5663 lt_cv_file_magic_cmd='func_win32_libid'
5665 # Keep this pattern in sync with the one in func_win32_libid.
5666 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5667 lt_cv_file_magic_cmd='$OBJDUMP -f'
5672 # use the weaker test based on 'objdump'. See mingw*.
5673 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5674 lt_cv_file_magic_cmd='$OBJDUMP -f'
5677 darwin* | rhapsody*)
5678 lt_cv_deplibs_check_method=pass_all
5681 freebsd* | dragonfly*)
5682 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5685 # Not sure whether the presence of OpenBSD here was a mistake.
5686 # Let's accept both of them until this is cleared up.
5687 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5688 lt_cv_file_magic_cmd=/usr/bin/file
5689 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5693 lt_cv_deplibs_check_method=pass_all
5698 lt_cv_deplibs_check_method=pass_all
5701 hpux10.20* | hpux11*)
5702 lt_cv_file_magic_cmd=/usr/bin/file
5705 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5706 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5709 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5710 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5713 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5714 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5720 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5721 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5724 irix5* | irix6* | nonstopux*)
5726 *-32|*"-32 ") libmagic=32-bit;;
5727 *-n32|*"-n32 ") libmagic=N32;;
5728 *-64|*"-64 ") libmagic=64-bit;;
5729 *) libmagic=never-match;;
5731 lt_cv_deplibs_check_method=pass_all
5734 # This must be glibc/ELF.
5735 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5736 lt_cv_deplibs_check_method=pass_all
5740 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5741 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5743 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5748 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5749 lt_cv_file_magic_cmd=/usr/bin/file
5750 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5754 lt_cv_deplibs_check_method=pass_all
5758 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5759 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5761 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5765 osf3* | osf4* | osf5*)
5766 lt_cv_deplibs_check_method=pass_all
5770 lt_cv_deplibs_check_method=pass_all
5774 lt_cv_deplibs_check_method=pass_all
5777 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5778 lt_cv_deplibs_check_method=pass_all
5782 case $host_vendor in
5784 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]'
5785 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5788 lt_cv_deplibs_check_method=pass_all
5791 lt_cv_file_magic_cmd='/bin/file'
5792 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5795 lt_cv_file_magic_cmd='/bin/file'
5796 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5797 lt_cv_file_magic_test_file=/lib/libc.so
5800 lt_cv_deplibs_check_method=pass_all
5803 lt_cv_deplibs_check_method=pass_all
5809 lt_cv_deplibs_check_method=pass_all
5812 lt_cv_deplibs_check_method=pass_all
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5818 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5822 if test "$build" = "$host"; then
5825 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5828 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5834 file_magic_cmd=$lt_cv_file_magic_cmd
5835 deplibs_check_method=$lt_cv_deplibs_check_method
5836 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5859 if test -n "$ac_tool_prefix"; then
5860 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5861 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5863 $as_echo_n "checking for $ac_word... " >&6; }
5864 if ${ac_cv_prog_DLLTOOL+:} false; then :
5865 $as_echo_n "(cached) " >&6
5867 if test -n "$DLLTOOL"; then
5868 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 test -z "$as_dir" && as_dir=.
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5877 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 DLLTOOL=$ac_cv_prog_DLLTOOL
5888 if test -n "$DLLTOOL"; then
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5890 $as_echo "$DLLTOOL" >&6; }
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5893 $as_echo "no" >&6; }
5898 if test -z "$ac_cv_prog_DLLTOOL"; then
5899 ac_ct_DLLTOOL=$DLLTOOL
5900 # Extract the first word of "dlltool", so it can be a program name with args.
5901 set dummy dlltool; ac_word=$2
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5903 $as_echo_n "checking for $ac_word... " >&6; }
5904 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5905 $as_echo_n "(cached) " >&6
5907 if test -n "$ac_ct_DLLTOOL"; then
5908 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 test -z "$as_dir" && as_dir=.
5915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5917 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5928 if test -n "$ac_ct_DLLTOOL"; then
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5930 $as_echo "$ac_ct_DLLTOOL" >&6; }
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933 $as_echo "no" >&6; }
5936 if test "x$ac_ct_DLLTOOL" = x; then
5939 case $cross_compiling:$ac_tool_warned in
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5943 ac_tool_warned=yes ;;
5945 DLLTOOL=$ac_ct_DLLTOOL
5948 DLLTOOL="$ac_cv_prog_DLLTOOL"
5951 test -z "$DLLTOOL" && DLLTOOL=dlltool
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5963 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5964 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5965 $as_echo_n "(cached) " >&6
5967 lt_cv_sharedlib_from_linklib_cmd='unknown'
5970 cygwin* | mingw* | pw32* | cegcc*)
5971 # two different shell functions defined in ltmain.sh;
5972 # decide which one to use based on capabilities of $DLLTOOL
5973 case `$DLLTOOL --help 2>&1` in
5974 *--identify-strict*)
5975 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5978 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5983 # fallback: assume linklib IS sharedlib
5984 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5990 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5991 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5992 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6001 if test -n "$ac_tool_prefix"; then
6004 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6005 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6007 $as_echo_n "checking for $ac_word... " >&6; }
6008 if ${ac_cv_prog_AR+:} false; then :
6009 $as_echo_n "(cached) " >&6
6011 if test -n "$AR"; then
6012 ac_cv_prog_AR="$AR" # Let the user override the test.
6014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018 test -z "$as_dir" && as_dir=.
6019 for ac_exec_ext in '' $ac_executable_extensions; do
6020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6021 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 if test -n "$AR"; then
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6034 $as_echo "$AR" >&6; }
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6037 $as_echo "no" >&6; }
6041 test -n "$AR" && break
6044 if test -z "$AR"; then
6048 # Extract the first word of "$ac_prog", so it can be a program name with args.
6049 set dummy $ac_prog; ac_word=$2
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051 $as_echo_n "checking for $ac_word... " >&6; }
6052 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6053 $as_echo_n "(cached) " >&6
6055 if test -n "$ac_ct_AR"; then
6056 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6065 ac_cv_prog_ac_ct_AR="$ac_prog"
6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6076 if test -n "$ac_ct_AR"; then
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6078 $as_echo "$ac_ct_AR" >&6; }
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081 $as_echo "no" >&6; }
6085 test -n "$ac_ct_AR" && break
6088 if test "x$ac_ct_AR" = x; then
6091 case $cross_compiling:$ac_tool_warned in
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6095 ac_tool_warned=yes ;;
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6115 $as_echo_n "checking for archiver @FILE support... " >&6; }
6116 if ${lt_cv_ar_at_file+:} false; then :
6117 $as_echo_n "(cached) " >&6
6120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121 /* end confdefs.h. */
6131 if ac_fn_c_try_compile "$LINENO"; then :
6132 echo conftest.$ac_objext > conftest.lst
6133 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6135 (eval $lt_ar_try) 2>&5
6137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6138 test $ac_status = 0; }
6139 if test 0 -eq "$ac_status"; then
6140 # Ensure the archiver fails upon bogus file names.
6141 rm -f conftest.$ac_objext libconftest.a
6142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6143 (eval $lt_ar_try) 2>&5
6145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6146 test $ac_status = 0; }
6147 if test 0 -ne "$ac_status"; then
6151 rm -f conftest.* libconftest.a
6154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6158 $as_echo "$lt_cv_ar_at_file" >&6; }
6160 if test no = "$lt_cv_ar_at_file"; then
6163 archiver_list_spec=$lt_cv_ar_at_file
6172 if test -n "$ac_tool_prefix"; then
6173 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6174 set dummy ${ac_tool_prefix}strip; ac_word=$2
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176 $as_echo_n "checking for $ac_word... " >&6; }
6177 if ${ac_cv_prog_STRIP+:} false; then :
6178 $as_echo_n "(cached) " >&6
6180 if test -n "$STRIP"; then
6181 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 test -z "$as_dir" && as_dir=.
6188 for ac_exec_ext in '' $ac_executable_extensions; do
6189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6190 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 STRIP=$ac_cv_prog_STRIP
6201 if test -n "$STRIP"; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6203 $as_echo "$STRIP" >&6; }
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 $as_echo "no" >&6; }
6211 if test -z "$ac_cv_prog_STRIP"; then
6213 # Extract the first word of "strip", so it can be a program name with args.
6214 set dummy strip; ac_word=$2
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216 $as_echo_n "checking for $ac_word... " >&6; }
6217 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6218 $as_echo_n "(cached) " >&6
6220 if test -n "$ac_ct_STRIP"; then
6221 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 test -z "$as_dir" && as_dir=.
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6230 ac_cv_prog_ac_ct_STRIP="strip"
6231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6241 if test -n "$ac_ct_STRIP"; then
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6243 $as_echo "$ac_ct_STRIP" >&6; }
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 $as_echo "no" >&6; }
6249 if test "x$ac_ct_STRIP" = x; then
6252 case $cross_compiling:$ac_tool_warned in
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6256 ac_tool_warned=yes ;;
6261 STRIP="$ac_cv_prog_STRIP"
6264 test -z "$STRIP" && STRIP=:
6271 if test -n "$ac_tool_prefix"; then
6272 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6273 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6275 $as_echo_n "checking for $ac_word... " >&6; }
6276 if ${ac_cv_prog_RANLIB+:} false; then :
6277 $as_echo_n "(cached) " >&6
6279 if test -n "$RANLIB"; then
6280 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 test -z "$as_dir" && as_dir=.
6287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6289 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 RANLIB=$ac_cv_prog_RANLIB
6300 if test -n "$RANLIB"; then
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6302 $as_echo "$RANLIB" >&6; }
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305 $as_echo "no" >&6; }
6310 if test -z "$ac_cv_prog_RANLIB"; then
6311 ac_ct_RANLIB=$RANLIB
6312 # Extract the first word of "ranlib", so it can be a program name with args.
6313 set dummy ranlib; ac_word=$2
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6315 $as_echo_n "checking for $ac_word... " >&6; }
6316 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6317 $as_echo_n "(cached) " >&6
6319 if test -n "$ac_ct_RANLIB"; then
6320 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6329 ac_cv_prog_ac_ct_RANLIB="ranlib"
6330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6340 if test -n "$ac_ct_RANLIB"; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6342 $as_echo "$ac_ct_RANLIB" >&6; }
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6348 if test "x$ac_ct_RANLIB" = x; then
6351 case $cross_compiling:$ac_tool_warned in
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6355 ac_tool_warned=yes ;;
6357 RANLIB=$ac_ct_RANLIB
6360 RANLIB="$ac_cv_prog_RANLIB"
6363 test -z "$RANLIB" && RANLIB=:
6370 # Determine commands to create old-style static archives.
6371 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6372 old_postinstall_cmds='chmod 644 $oldlib'
6373 old_postuninstall_cmds=
6375 if test -n "$RANLIB"; then
6378 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6381 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6384 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6389 lock_old_archive_extraction=yes ;;
6391 lock_old_archive_extraction=no ;;
6432 # If no C compiler was specified, use CC.
6435 # If no C compiler flags were specified, use CFLAGS.
6436 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6438 # Allow CC to be a program name with arguments.
6442 # Check for command to grab the raw symbol name followed by C symbol from nm.
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6444 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6445 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6446 $as_echo_n "(cached) " >&6
6449 # These are sane defaults that work on at least a few old systems.
6450 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6452 # Character class describing NM global symbol codes.
6453 symcode='[BCDEGRST]'
6455 # Regexp to match symbols that can be accessed directly from C.
6456 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6458 # Define system-specific variables.
6463 cygwin* | mingw* | pw32* | cegcc*)
6464 symcode='[ABCDGISTW]'
6467 if test ia64 = "$host_cpu"; then
6468 symcode='[ABCDEGRST]'
6472 symcode='[BCDEGRST]'
6475 symcode='[BCDEGQRST]'
6486 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6494 # If we're using GNU nm, then use its standard symbol codes.
6495 case `$NM -V 2>&1` in
6496 *GNU* | *'with BFD'*)
6497 symcode='[ABCDGIRSTW]' ;;
6500 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6501 # Gets list of data symbols to import.
6502 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6503 # Adjust the below global symbol transforms to fixup imported variables.
6504 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6505 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6506 lt_c_name_lib_hook="\
6507 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6508 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6510 # Disable hooks by default.
6511 lt_cv_sys_global_symbol_to_import=
6517 # Transform an extracted symbol line into a proper C declaration.
6518 # Some systems (esp. on ia64) link data and code symbols differently,
6519 # so use this general approach.
6520 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6522 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6523 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6525 # Transform an extracted symbol line into symbol name and symbol address
6526 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6528 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6529 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6531 # Transform an extracted symbol line into symbol name with lib prefix and
6533 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6534 $lt_c_name_lib_hook\
6535 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6536 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6537 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6539 # Handle CRLF in mingw tool chain
6543 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6547 # Try without a prefix underscore, then with it.
6548 for ac_symprfx in "" "_"; do
6550 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6551 symxfrm="\\1 $ac_symprfx\\2 \\2"
6553 # Write the raw and C identifiers.
6554 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6555 # Fake it for dumpbin and say T for any non-static function,
6556 # D for any global variable and I for any imported variable.
6557 # Also find C++ and __fastcall symbols from MSVC++,
6558 # which start with @ or ?.
6559 lt_cv_sys_global_symbol_pipe="$AWK '"\
6560 " {last_section=section; section=\$ 3};"\
6561 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6562 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6563 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6564 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6565 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6566 " \$ 0!~/External *\|/{next};"\
6567 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6568 " {if(hide[section]) next};"\
6569 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6570 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6571 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6572 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6573 " ' prfx=^$ac_symprfx"
6575 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6577 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6579 # Check to see that the pipe works correctly.
6583 cat > conftest.$ac_ext <<_LT_EOF
6588 void nm_test_func(void);
6589 void nm_test_func(void){}
6593 int main(){nm_test_var='a';nm_test_func();return(0);}
6596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6597 (eval $ac_compile) 2>&5
6599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6600 test $ac_status = 0; }; then
6601 # Now try to grab the symbols.
6603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6604 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6607 test $ac_status = 0; } && test -s "$nlist"; then
6608 # Try sorting and uniquifying the output.
6609 if sort "$nlist" | uniq > "$nlist"T; then
6610 mv -f "$nlist"T "$nlist"
6615 # Make sure that we snagged all the symbols we need.
6616 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6617 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6618 cat <<_LT_EOF > conftest.$ac_ext
6619 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6620 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6621 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6622 relocations are performed -- see ld's documentation on pseudo-relocs. */
6623 # define LT_DLSYM_CONST
6624 #elif defined __osf__
6625 /* This system does not cope well with relocations in const data. */
6626 # define LT_DLSYM_CONST
6628 # define LT_DLSYM_CONST const
6636 # Now generate the symbol file.
6637 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6639 cat <<_LT_EOF >> conftest.$ac_ext
6641 /* The mapping between symbol names and symbols. */
6642 LT_DLSYM_CONST struct {
6646 lt__PROGRAM__LTX_preloaded_symbols[] =
6648 { "@PROGRAM@", (void *) 0 },
6650 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6651 cat <<\_LT_EOF >> conftest.$ac_ext
6655 /* This works around a problem in FreeBSD linker */
6656 #ifdef FREEBSD_WORKAROUND
6657 static const void *lt_preloaded_setup() {
6658 return lt__PROGRAM__LTX_preloaded_symbols;
6666 # Now try linking the two files.
6667 mv conftest.$ac_objext conftstm.$ac_objext
6668 lt_globsym_save_LIBS=$LIBS
6669 lt_globsym_save_CFLAGS=$CFLAGS
6670 LIBS=conftstm.$ac_objext
6671 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6673 (eval $ac_link) 2>&5
6675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6676 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6679 LIBS=$lt_globsym_save_LIBS
6680 CFLAGS=$lt_globsym_save_CFLAGS
6682 echo "cannot find nm_test_func in $nlist" >&5
6685 echo "cannot find nm_test_var in $nlist" >&5
6688 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6691 echo "$progname: failed program was:" >&5
6692 cat conftest.$ac_ext >&5
6694 rm -rf conftest* conftst*
6696 # Do not use the global_symbol_pipe unless it works.
6697 if test yes = "$pipe_works"; then
6700 lt_cv_sys_global_symbol_pipe=
6706 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6707 lt_cv_sys_global_symbol_to_cdecl=
6709 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6711 $as_echo "failed" >&6; }
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6714 $as_echo "ok" >&6; }
6717 # Response file support.
6718 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6719 nm_file_list_spec='@'
6720 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6721 nm_file_list_spec='@'
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6761 $as_echo_n "checking for sysroot... " >&6; }
6763 # Check whether --with-sysroot was given.
6764 if test "${with_sysroot+set}" = set; then :
6765 withval=$with_sysroot;
6772 case $with_sysroot in #(
6774 if test yes = "$GCC"; then
6775 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6779 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6785 $as_echo "$with_sysroot" >&6; }
6786 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6791 $as_echo "${lt_sysroot:-no}" >&6; }
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6798 $as_echo_n "checking for a working dd... " >&6; }
6799 if ${ac_cv_path_lt_DD+:} false; then :
6800 $as_echo_n "(cached) " >&6
6802 printf 0123456789abcdef0123456789abcdef >conftest.i
6803 cat conftest.i conftest.i >conftest2.i
6805 if test -z "$lt_DD"; then
6806 ac_path_lt_DD_found=false
6807 # Loop through the user's path and test for each of PROGNAME-LIST
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 test -z "$as_dir" && as_dir=.
6813 for ac_prog in dd; do
6814 for ac_exec_ext in '' $ac_executable_extensions; do
6815 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6816 as_fn_executable_p "$ac_path_lt_DD" || continue
6817 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6818 cmp -s conftest.i conftest.out \
6819 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6821 $ac_path_lt_DD_found && break 3
6826 if test -z "$ac_cv_path_lt_DD"; then
6830 ac_cv_path_lt_DD=$lt_DD
6833 rm -f conftest.i conftest2.i conftest.out
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6836 $as_echo "$ac_cv_path_lt_DD" >&6; }
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6840 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6841 if ${lt_cv_truncate_bin+:} false; then :
6842 $as_echo_n "(cached) " >&6
6844 printf 0123456789abcdef0123456789abcdef >conftest.i
6845 cat conftest.i conftest.i >conftest2.i
6847 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6848 cmp -s conftest.i conftest.out \
6849 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6851 rm -f conftest.i conftest2.i conftest.out
6852 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6855 $as_echo "$lt_cv_truncate_bin" >&6; }
6863 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6866 for cc_temp in $*""; do
6868 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6869 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6874 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6877 # Check whether --enable-libtool-lock was given.
6878 if test "${enable_libtool_lock+set}" = set; then :
6879 enableval=$enable_libtool_lock;
6882 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6884 # Some flags need to be propagated to the compiler or linker for good
6888 # Find out what ABI is being produced by ac_compile, and set mode
6889 # options accordingly.
6890 echo 'int i;' > conftest.$ac_ext
6891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6892 (eval $ac_compile) 2>&5
6894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6895 test $ac_status = 0; }; then
6896 case `/usr/bin/file conftest.$ac_objext` in
6908 # Find out what ABI is being produced by ac_compile, and set linker
6909 # options accordingly.
6910 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6912 (eval $ac_compile) 2>&5
6914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6915 test $ac_status = 0; }; then
6916 if test yes = "$lt_cv_prog_gnu_ld"; then
6917 case `/usr/bin/file conftest.$ac_objext` in
6919 LD="${LD-ld} -melf32bsmip"
6922 LD="${LD-ld} -melf32bmipn32"
6925 LD="${LD-ld} -melf64bmip"
6929 case `/usr/bin/file conftest.$ac_objext` in
6946 # Find out what ABI is being produced by ac_compile, and set linker
6947 # options accordingly.
6948 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6950 (eval $ac_compile) 2>&5
6952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6953 test $ac_status = 0; }; then
6955 case `/usr/bin/file conftest.$ac_objext` in
6963 case `/usr/bin/file conftest.$ac_objext` in
6965 emul="${emul}btsmip"
6968 emul="${emul}ltsmip"
6971 case `/usr/bin/file conftest.$ac_objext` in
6976 LD="${LD-ld} -m $emul"
6981 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6982 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6983 # Find out what ABI is being produced by ac_compile, and set linker
6984 # options accordingly. Note that the listed cases only cover the
6985 # situations where additional linker options are needed (such as when
6986 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6987 # vice versa); the common cases where no linker options are needed do
6988 # not appear in the list.
6989 echo 'int i;' > conftest.$ac_ext
6990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6991 (eval $ac_compile) 2>&5
6993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6994 test $ac_status = 0; }; then
6995 case `/usr/bin/file conftest.o` in
6998 x86_64-*kfreebsd*-gnu)
6999 LD="${LD-ld} -m elf_i386_fbsd"
7002 case `/usr/bin/file conftest.o` in
7004 LD="${LD-ld} -m elf32_x86_64"
7007 LD="${LD-ld} -m elf_i386"
7011 powerpc64le-*linux*)
7012 LD="${LD-ld} -m elf32lppclinux"
7015 LD="${LD-ld} -m elf32ppclinux"
7018 LD="${LD-ld} -m elf_s390"
7021 LD="${LD-ld} -m elf32_sparc"
7027 x86_64-*kfreebsd*-gnu)
7028 LD="${LD-ld} -m elf_x86_64_fbsd"
7031 LD="${LD-ld} -m elf_x86_64"
7034 LD="${LD-ld} -m elf64lppc"
7037 LD="${LD-ld} -m elf64ppc"
7039 s390*-*linux*|s390*-*tpf*)
7040 LD="${LD-ld} -m elf64_s390"
7043 LD="${LD-ld} -m elf64_sparc"
7053 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7055 CFLAGS="$CFLAGS -belf"
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7057 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7058 if ${lt_cv_cc_needs_belf+:} false; then :
7059 $as_echo_n "(cached) " >&6
7062 ac_cpp='$CPP $CPPFLAGS'
7063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068 /* end confdefs.h. */
7078 if ac_fn_c_try_link "$LINENO"; then :
7079 lt_cv_cc_needs_belf=yes
7081 lt_cv_cc_needs_belf=no
7083 rm -f core conftest.err conftest.$ac_objext \
7084 conftest$ac_exeext conftest.$ac_ext
7086 ac_cpp='$CPP $CPPFLAGS'
7087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7093 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7094 if test yes != "$lt_cv_cc_needs_belf"; then
7095 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7100 # Find out what ABI is being produced by ac_compile, and set linker
7101 # options accordingly.
7102 echo 'int i;' > conftest.$ac_ext
7103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7104 (eval $ac_compile) 2>&5
7106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7107 test $ac_status = 0; }; then
7108 case `/usr/bin/file conftest.o` in
7110 case $lt_cv_prog_gnu_ld in
7113 i?86-*-solaris*|x86_64-*-solaris*)
7114 LD="${LD-ld} -m elf_x86_64"
7117 LD="${LD-ld} -m elf64_sparc"
7120 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7121 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7126 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7138 need_locks=$enable_libtool_lock
7140 if test -n "$ac_tool_prefix"; then
7141 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7142 set dummy ${ac_tool_prefix}mt; ac_word=$2
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7144 $as_echo_n "checking for $ac_word... " >&6; }
7145 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7146 $as_echo_n "(cached) " >&6
7148 if test -n "$MANIFEST_TOOL"; then
7149 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155 test -z "$as_dir" && as_dir=.
7156 for ac_exec_ext in '' $ac_executable_extensions; do
7157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7158 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7168 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7169 if test -n "$MANIFEST_TOOL"; then
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7171 $as_echo "$MANIFEST_TOOL" >&6; }
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7174 $as_echo "no" >&6; }
7179 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7180 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7181 # Extract the first word of "mt", so it can be a program name with args.
7182 set dummy mt; ac_word=$2
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7184 $as_echo_n "checking for $ac_word... " >&6; }
7185 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7186 $as_echo_n "(cached) " >&6
7188 if test -n "$ac_ct_MANIFEST_TOOL"; then
7189 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 test -z "$as_dir" && as_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7198 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7209 if test -n "$ac_ct_MANIFEST_TOOL"; then
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7211 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7214 $as_echo "no" >&6; }
7217 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7220 case $cross_compiling:$ac_tool_warned in
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7224 ac_tool_warned=yes ;;
7226 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7229 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7232 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7234 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7235 if ${lt_cv_path_mainfest_tool+:} false; then :
7236 $as_echo_n "(cached) " >&6
7238 lt_cv_path_mainfest_tool=no
7239 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7240 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7241 cat conftest.err >&5
7242 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7243 lt_cv_path_mainfest_tool=yes
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7248 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7249 if test yes != "$lt_cv_path_mainfest_tool"; then
7259 rhapsody* | darwin*)
7260 if test -n "$ac_tool_prefix"; then
7261 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7262 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264 $as_echo_n "checking for $ac_word... " >&6; }
7265 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7266 $as_echo_n "(cached) " >&6
7268 if test -n "$DSYMUTIL"; then
7269 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275 test -z "$as_dir" && as_dir=.
7276 for ac_exec_ext in '' $ac_executable_extensions; do
7277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7278 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7288 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7289 if test -n "$DSYMUTIL"; then
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7291 $as_echo "$DSYMUTIL" >&6; }
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294 $as_echo "no" >&6; }
7299 if test -z "$ac_cv_prog_DSYMUTIL"; then
7300 ac_ct_DSYMUTIL=$DSYMUTIL
7301 # Extract the first word of "dsymutil", so it can be a program name with args.
7302 set dummy dsymutil; ac_word=$2
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304 $as_echo_n "checking for $ac_word... " >&6; }
7305 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7306 $as_echo_n "(cached) " >&6
7308 if test -n "$ac_ct_DSYMUTIL"; then
7309 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7318 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7329 if test -n "$ac_ct_DSYMUTIL"; then
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7331 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7337 if test "x$ac_ct_DSYMUTIL" = x; then
7340 case $cross_compiling:$ac_tool_warned in
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7344 ac_tool_warned=yes ;;
7346 DSYMUTIL=$ac_ct_DSYMUTIL
7349 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7352 if test -n "$ac_tool_prefix"; then
7353 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7354 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356 $as_echo_n "checking for $ac_word... " >&6; }
7357 if ${ac_cv_prog_NMEDIT+:} false; then :
7358 $as_echo_n "(cached) " >&6
7360 if test -n "$NMEDIT"; then
7361 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 test -z "$as_dir" && as_dir=.
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7370 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7380 NMEDIT=$ac_cv_prog_NMEDIT
7381 if test -n "$NMEDIT"; then
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7383 $as_echo "$NMEDIT" >&6; }
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7391 if test -z "$ac_cv_prog_NMEDIT"; then
7392 ac_ct_NMEDIT=$NMEDIT
7393 # Extract the first word of "nmedit", so it can be a program name with args.
7394 set dummy nmedit; ac_word=$2
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7396 $as_echo_n "checking for $ac_word... " >&6; }
7397 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7398 $as_echo_n "(cached) " >&6
7400 if test -n "$ac_ct_NMEDIT"; then
7401 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 test -z "$as_dir" && as_dir=.
7408 for ac_exec_ext in '' $ac_executable_extensions; do
7409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7410 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7421 if test -n "$ac_ct_NMEDIT"; then
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7423 $as_echo "$ac_ct_NMEDIT" >&6; }
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426 $as_echo "no" >&6; }
7429 if test "x$ac_ct_NMEDIT" = x; then
7432 case $cross_compiling:$ac_tool_warned in
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7436 ac_tool_warned=yes ;;
7438 NMEDIT=$ac_ct_NMEDIT
7441 NMEDIT="$ac_cv_prog_NMEDIT"
7444 if test -n "$ac_tool_prefix"; then
7445 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7446 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7448 $as_echo_n "checking for $ac_word... " >&6; }
7449 if ${ac_cv_prog_LIPO+:} false; then :
7450 $as_echo_n "(cached) " >&6
7452 if test -n "$LIPO"; then
7453 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 test -z "$as_dir" && as_dir=.
7460 for ac_exec_ext in '' $ac_executable_extensions; do
7461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7462 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7472 LIPO=$ac_cv_prog_LIPO
7473 if test -n "$LIPO"; then
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7475 $as_echo "$LIPO" >&6; }
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478 $as_echo "no" >&6; }
7483 if test -z "$ac_cv_prog_LIPO"; then
7485 # Extract the first word of "lipo", so it can be a program name with args.
7486 set dummy lipo; ac_word=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7490 $as_echo_n "(cached) " >&6
7492 if test -n "$ac_ct_LIPO"; then
7493 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 test -z "$as_dir" && as_dir=.
7500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7502 ac_cv_prog_ac_ct_LIPO="lipo"
7503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7513 if test -n "$ac_ct_LIPO"; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7515 $as_echo "$ac_ct_LIPO" >&6; }
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 $as_echo "no" >&6; }
7521 if test "x$ac_ct_LIPO" = x; then
7524 case $cross_compiling:$ac_tool_warned in
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7528 ac_tool_warned=yes ;;
7533 LIPO="$ac_cv_prog_LIPO"
7536 if test -n "$ac_tool_prefix"; then
7537 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7538 set dummy ${ac_tool_prefix}otool; ac_word=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if ${ac_cv_prog_OTOOL+:} false; then :
7542 $as_echo_n "(cached) " >&6
7544 if test -n "$OTOOL"; then
7545 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 OTOOL=$ac_cv_prog_OTOOL
7565 if test -n "$OTOOL"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7567 $as_echo "$OTOOL" >&6; }
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7575 if test -z "$ac_cv_prog_OTOOL"; then
7577 # Extract the first word of "otool", so it can be a program name with args.
7578 set dummy otool; ac_word=$2
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 $as_echo_n "checking for $ac_word... " >&6; }
7581 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7582 $as_echo_n "(cached) " >&6
7584 if test -n "$ac_ct_OTOOL"; then
7585 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7594 ac_cv_prog_ac_ct_OTOOL="otool"
7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7605 if test -n "$ac_ct_OTOOL"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7607 $as_echo "$ac_ct_OTOOL" >&6; }
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7613 if test "x$ac_ct_OTOOL" = x; then
7616 case $cross_compiling:$ac_tool_warned in
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7620 ac_tool_warned=yes ;;
7625 OTOOL="$ac_cv_prog_OTOOL"
7628 if test -n "$ac_tool_prefix"; then
7629 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7630 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632 $as_echo_n "checking for $ac_word... " >&6; }
7633 if ${ac_cv_prog_OTOOL64+:} false; then :
7634 $as_echo_n "(cached) " >&6
7636 if test -n "$OTOOL64"; then
7637 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 test -z "$as_dir" && as_dir=.
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7646 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7656 OTOOL64=$ac_cv_prog_OTOOL64
7657 if test -n "$OTOOL64"; then
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7659 $as_echo "$OTOOL64" >&6; }
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 $as_echo "no" >&6; }
7667 if test -z "$ac_cv_prog_OTOOL64"; then
7668 ac_ct_OTOOL64=$OTOOL64
7669 # Extract the first word of "otool64", so it can be a program name with args.
7670 set dummy otool64; ac_word=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7674 $as_echo_n "(cached) " >&6
7676 if test -n "$ac_ct_OTOOL64"; then
7677 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7686 ac_cv_prog_ac_ct_OTOOL64="otool64"
7687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7696 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7697 if test -n "$ac_ct_OTOOL64"; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7699 $as_echo "$ac_ct_OTOOL64" >&6; }
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7705 if test "x$ac_ct_OTOOL64" = x; then
7708 case $cross_compiling:$ac_tool_warned in
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7712 ac_tool_warned=yes ;;
7714 OTOOL64=$ac_ct_OTOOL64
7717 OTOOL64="$ac_cv_prog_OTOOL64"
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7747 $as_echo_n "checking for -single_module linker flag... " >&6; }
7748 if ${lt_cv_apple_cc_single_mod+:} false; then :
7749 $as_echo_n "(cached) " >&6
7751 lt_cv_apple_cc_single_mod=no
7752 if test -z "$LT_MULTI_MODULE"; then
7753 # By default we will add the -single_module flag. You can override
7754 # by either setting the environment variable LT_MULTI_MODULE
7755 # non-empty at configure time, or by adding -multi_module to the
7757 rm -rf libconftest.dylib*
7758 echo "int foo(void){return 1;}" > conftest.c
7759 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7760 -dynamiclib -Wl,-single_module conftest.c" >&5
7761 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7762 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7764 # If there is a non-empty error log, and "single_module"
7765 # appears in it, assume the flag caused a linker warning
7766 if test -s conftest.err && $GREP single_module conftest.err; then
7767 cat conftest.err >&5
7768 # Otherwise, if the output was created with a 0 exit code from
7769 # the compiler, it worked.
7770 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7771 lt_cv_apple_cc_single_mod=yes
7773 cat conftest.err >&5
7775 rm -rf libconftest.dylib*
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7780 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7783 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7784 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7785 $as_echo_n "(cached) " >&6
7787 lt_cv_ld_exported_symbols_list=no
7788 save_LDFLAGS=$LDFLAGS
7789 echo "_main" > conftest.sym
7790 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7792 /* end confdefs.h. */
7802 if ac_fn_c_try_link "$LINENO"; then :
7803 lt_cv_ld_exported_symbols_list=yes
7805 lt_cv_ld_exported_symbols_list=no
7807 rm -f core conftest.err conftest.$ac_objext \
7808 conftest$ac_exeext conftest.$ac_ext
7809 LDFLAGS=$save_LDFLAGS
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7813 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7816 $as_echo_n "checking for -force_load linker flag... " >&6; }
7817 if ${lt_cv_ld_force_load+:} false; then :
7818 $as_echo_n "(cached) " >&6
7820 lt_cv_ld_force_load=no
7821 cat > conftest.c << _LT_EOF
7822 int forced_loaded() { return 2;}
7824 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7825 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7826 echo "$AR cru libconftest.a conftest.o" >&5
7827 $AR cru libconftest.a conftest.o 2>&5
7828 echo "$RANLIB libconftest.a" >&5
7829 $RANLIB libconftest.a 2>&5
7830 cat > conftest.c << _LT_EOF
7831 int main() { return 0;}
7833 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7834 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7836 if test -s conftest.err && $GREP force_load conftest.err; then
7837 cat conftest.err >&5
7838 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7839 lt_cv_ld_force_load=yes
7841 cat conftest.err >&5
7843 rm -f conftest.err libconftest.a conftest conftest.c
7844 rm -rf conftest.dSYM
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7848 $as_echo "$lt_cv_ld_force_load" >&6; }
7850 rhapsody* | darwin1.[012])
7851 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7853 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7854 darwin*) # darwin 5.x on
7855 # if running on 10.5 or later, the deployment target defaults
7856 # to the OS version, if on x86, and 10.4, the deployment
7857 # target defaults to 10.4. Don't you love it?
7858 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7859 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7860 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7862 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7864 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7868 if test yes = "$lt_cv_apple_cc_single_mod"; then
7869 _lt_dar_single_mod='$single_module'
7871 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7872 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7874 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7876 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7877 _lt_dsymutil='~$DSYMUTIL $lib || :'
7884 # func_munge_path_list VARIABLE PATH
7885 # -----------------------------------
7886 # VARIABLE is name of variable containing _space_ separated list of
7887 # directories to be munged by the contents of PATH, which is string
7890 # string "DIR[ DIR]" will be prepended to VARIABLE
7892 # string "DIR[ DIR]" will be appended to VARIABLE
7893 # "DIRP[:DIRP]::[DIRA:]DIRA"
7894 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7895 # "DIRA[ DIRA]" will be appended to VARIABLE
7897 # VARIABLE will be replaced by "DIR[ DIR]"
7898 func_munge_path_list ()
7904 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7907 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7910 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7911 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7914 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7920 ac_cpp='$CPP $CPPFLAGS'
7921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7925 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7926 # On Suns, sometimes $CPP names a directory.
7927 if test -n "$CPP" && test -d "$CPP"; then
7930 if test -z "$CPP"; then
7931 if ${ac_cv_prog_CPP+:} false; then :
7932 $as_echo_n "(cached) " >&6
7934 # Double quotes because CPP needs to be expanded
7935 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7938 for ac_c_preproc_warn_flag in '' yes
7940 # Use a header file that comes with gcc, so configuring glibc
7941 # with a fresh cross-compiler works.
7942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7943 # <limits.h> exists even on freestanding compilers.
7944 # On the NeXT, cc -E runs the code through the compiler's parser,
7945 # not just through cpp. "Syntax error" is here to catch this case.
7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947 /* end confdefs.h. */
7949 # include <limits.h>
7951 # include <assert.h>
7955 if ac_fn_c_try_cpp "$LINENO"; then :
7958 # Broken: fails on valid input.
7961 rm -f conftest.err conftest.i conftest.$ac_ext
7963 # OK, works on sane cases. Now check whether nonexistent headers
7964 # can be detected and how.
7965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966 /* end confdefs.h. */
7967 #include <ac_nonexistent.h>
7969 if ac_fn_c_try_cpp "$LINENO"; then :
7970 # Broken: success on invalid input.
7973 # Passes both tests.
7977 rm -f conftest.err conftest.i conftest.$ac_ext
7980 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7981 rm -f conftest.i conftest.err conftest.$ac_ext
7982 if $ac_preproc_ok; then :
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7995 $as_echo "$CPP" >&6; }
7997 for ac_c_preproc_warn_flag in '' yes
7999 # Use a header file that comes with gcc, so configuring glibc
8000 # with a fresh cross-compiler works.
8001 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8002 # <limits.h> exists even on freestanding compilers.
8003 # On the NeXT, cc -E runs the code through the compiler's parser,
8004 # not just through cpp. "Syntax error" is here to catch this case.
8005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h. */
8008 # include <limits.h>
8010 # include <assert.h>
8014 if ac_fn_c_try_cpp "$LINENO"; then :
8017 # Broken: fails on valid input.
8020 rm -f conftest.err conftest.i conftest.$ac_ext
8022 # OK, works on sane cases. Now check whether nonexistent headers
8023 # can be detected and how.
8024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025 /* end confdefs.h. */
8026 #include <ac_nonexistent.h>
8028 if ac_fn_c_try_cpp "$LINENO"; then :
8029 # Broken: success on invalid input.
8032 # Passes both tests.
8036 rm -f conftest.err conftest.i conftest.$ac_ext
8039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8040 rm -f conftest.i conftest.err conftest.$ac_ext
8041 if $ac_preproc_ok; then :
8044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8046 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8047 See \`config.log' for more details" "$LINENO" 5; }
8051 ac_cpp='$CPP $CPPFLAGS'
8052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8058 $as_echo_n "checking for ANSI C header files... " >&6; }
8059 if ${ac_cv_header_stdc+:} false; then :
8060 $as_echo_n "(cached) " >&6
8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063 /* end confdefs.h. */
8077 if ac_fn_c_try_compile "$LINENO"; then :
8078 ac_cv_header_stdc=yes
8080 ac_cv_header_stdc=no
8082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8084 if test $ac_cv_header_stdc = yes; then
8085 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087 /* end confdefs.h. */
8091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8092 $EGREP "memchr" >/dev/null 2>&1; then :
8095 ac_cv_header_stdc=no
8101 if test $ac_cv_header_stdc = yes; then
8102 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8109 $EGREP "free" >/dev/null 2>&1; then :
8112 ac_cv_header_stdc=no
8118 if test $ac_cv_header_stdc = yes; then
8119 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8120 if test "$cross_compiling" = yes; then :
8123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8124 /* end confdefs.h. */
8127 #if ((' ' & 0x0FF) == 0x020)
8128 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8129 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8131 # define ISLOWER(c) \
8132 (('a' <= (c) && (c) <= 'i') \
8133 || ('j' <= (c) && (c) <= 'r') \
8134 || ('s' <= (c) && (c) <= 'z'))
8135 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8138 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8143 for (i = 0; i < 256; i++)
8144 if (XOR (islower (i), ISLOWER (i))
8145 || toupper (i) != TOUPPER (i))
8150 if ac_fn_c_try_run "$LINENO"; then :
8153 ac_cv_header_stdc=no
8155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8156 conftest.$ac_objext conftest.beam conftest.$ac_ext
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8162 $as_echo "$ac_cv_header_stdc" >&6; }
8163 if test $ac_cv_header_stdc = yes; then
8165 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8169 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8170 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8171 inttypes.h stdint.h unistd.h
8173 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8174 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8176 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8177 cat >>confdefs.h <<_ACEOF
8178 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8186 for ac_header in dlfcn.h
8188 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8190 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8191 cat >>confdefs.h <<_ACEOF
8192 #define HAVE_DLFCN_H 1
8213 # Check whether --enable-shared was given.
8214 if test "${enable_shared+set}" = set; then :
8215 enableval=$enable_shared; p=${PACKAGE-default}
8217 yes) enable_shared=yes ;;
8218 no) enable_shared=no ;;
8221 # Look at the argument we got. We use all the common list separators.
8222 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8223 for pkg in $enableval; do
8225 if test "X$pkg" = "X$p"; then
8244 # Check whether --enable-static was given.
8245 if test "${enable_static+set}" = set; then :
8246 enableval=$enable_static; p=${PACKAGE-default}
8248 yes) enable_static=yes ;;
8249 no) enable_static=no ;;
8252 # Look at the argument we got. We use all the common list separators.
8253 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8254 for pkg in $enableval; do
8256 if test "X$pkg" = "X$p"; then
8276 # Check whether --with-pic was given.
8277 if test "${with_pic+set}" = set; then :
8278 withval=$with_pic; lt_p=${PACKAGE-default}
8280 yes|no) pic_mode=$withval ;;
8283 # Look at the argument we got. We use all the common list separators.
8284 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8285 for lt_pkg in $withval; do
8287 if test "X$lt_pkg" = "X$lt_p"; then
8305 # Check whether --enable-fast-install was given.
8306 if test "${enable_fast_install+set}" = set; then :
8307 enableval=$enable_fast_install; p=${PACKAGE-default}
8309 yes) enable_fast_install=yes ;;
8310 no) enable_fast_install=no ;;
8312 enable_fast_install=no
8313 # Look at the argument we got. We use all the common list separators.
8314 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8315 for pkg in $enableval; do
8317 if test "X$pkg" = "X$p"; then
8318 enable_fast_install=yes
8325 enable_fast_install=yes
8335 shared_archive_member_spec=
8336 case $host,$enable_shared in
8337 power*-*-aix[5-9]*,yes)
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8339 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8341 # Check whether --with-aix-soname was given.
8342 if test "${with_aix_soname+set}" = set; then :
8343 withval=$with_aix_soname; case $withval in
8347 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8350 lt_cv_with_aix_soname=$with_aix_soname
8352 if ${lt_cv_with_aix_soname+:} false; then :
8353 $as_echo_n "(cached) " >&6
8355 lt_cv_with_aix_soname=aix
8358 with_aix_soname=$lt_cv_with_aix_soname
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8362 $as_echo "$with_aix_soname" >&6; }
8363 if test aix != "$with_aix_soname"; then
8364 # For the AIX way of multilib, we name the shared archive member
8365 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8366 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8367 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8368 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8369 if test 64 = "${OBJECT_MODE-32}"; then
8370 shared_archive_member_spec=shr_64
8372 shared_archive_member_spec=shr
8390 # This can be used to rebuild libtool when needed
8391 LIBTOOL_DEPS=$ltmain
8393 # Always use our own libtool.
8394 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8425 test -z "$LN_S" && LN_S="ln -s"
8440 if test -n "${ZSH_VERSION+set}"; then
8441 setopt NO_GLOB_SUBST
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8445 $as_echo_n "checking for objdir... " >&6; }
8446 if ${lt_cv_objdir+:} false; then :
8447 $as_echo_n "(cached) " >&6
8449 rm -f .libs 2>/dev/null
8450 mkdir .libs 2>/dev/null
8451 if test -d .libs; then
8454 # MS-DOS does not allow filenames that begin with a dot.
8457 rmdir .libs 2>/dev/null
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8460 $as_echo "$lt_cv_objdir" >&6; }
8461 objdir=$lt_cv_objdir
8467 cat >>confdefs.h <<_ACEOF
8468 #define LT_OBJDIR "$lt_cv_objdir/"
8476 # AIX sometimes has problems with the GCC collect2 program. For some
8477 # reason, if we set the COLLECT_NAMES environment variable, the problems
8478 # vanish in a puff of smoke.
8479 if test set != "${COLLECT_NAMES+set}"; then
8481 export COLLECT_NAMES
8488 can_build_shared=yes
8490 # All known linkers require a '.a' archive for static linking (except MSVC,
8491 # which needs '.lib').
8494 with_gnu_ld=$lt_cv_prog_gnu_ld
8499 # Set sane defaults for various variables
8500 test -z "$CC" && CC=cc
8501 test -z "$LTCC" && LTCC=$CC
8502 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8503 test -z "$LD" && LD=ld
8504 test -z "$ac_objext" && ac_objext=o
8506 func_cc_basename $compiler
8507 cc_basename=$func_cc_basename_result
8510 # Only perform the check for file, if the check method requires it
8511 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8512 case $deplibs_check_method in
8514 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8516 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8517 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8518 $as_echo_n "(cached) " >&6
8522 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8525 lt_save_MAGIC_CMD=$MAGIC_CMD
8526 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8527 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8528 for ac_dir in $ac_dummy; do
8530 test -z "$ac_dir" && ac_dir=.
8531 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8532 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8533 if test -n "$file_magic_test_file"; then
8534 case $deplibs_check_method in
8536 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8537 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8538 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8539 $EGREP "$file_magic_regex" > /dev/null; then
8544 *** Warning: the command libtool uses to detect shared libraries,
8545 *** $file_magic_cmd, produces output that libtool cannot recognize.
8546 *** The result is that libtool may fail to recognize shared libraries
8547 *** as such. This will affect the creation of libtool libraries that
8548 *** depend on shared libraries, but programs linked with such libtool
8549 *** libraries will work regardless of this problem. Nevertheless, you
8550 *** may want to report the problem to your system manager and/or to
8551 *** bug-libtool@gnu.org
8561 MAGIC_CMD=$lt_save_MAGIC_CMD
8566 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8567 if test -n "$MAGIC_CMD"; then
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8569 $as_echo "$MAGIC_CMD" >&6; }
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8572 $as_echo "no" >&6; }
8579 if test -z "$lt_cv_path_MAGIC_CMD"; then
8580 if test -n "$ac_tool_prefix"; then
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8582 $as_echo_n "checking for file... " >&6; }
8583 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8584 $as_echo_n "(cached) " >&6
8588 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8591 lt_save_MAGIC_CMD=$MAGIC_CMD
8592 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8593 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8594 for ac_dir in $ac_dummy; do
8596 test -z "$ac_dir" && ac_dir=.
8597 if test -f "$ac_dir/file"; then
8598 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8599 if test -n "$file_magic_test_file"; then
8600 case $deplibs_check_method in
8602 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8603 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8604 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8605 $EGREP "$file_magic_regex" > /dev/null; then
8610 *** Warning: the command libtool uses to detect shared libraries,
8611 *** $file_magic_cmd, produces output that libtool cannot recognize.
8612 *** The result is that libtool may fail to recognize shared libraries
8613 *** as such. This will affect the creation of libtool libraries that
8614 *** depend on shared libraries, but programs linked with such libtool
8615 *** libraries will work regardless of this problem. Nevertheless, you
8616 *** may want to report the problem to your system manager and/or to
8617 *** bug-libtool@gnu.org
8627 MAGIC_CMD=$lt_save_MAGIC_CMD
8632 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8633 if test -n "$MAGIC_CMD"; then
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8635 $as_echo "$MAGIC_CMD" >&6; }
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8638 $as_echo "no" >&6; }
8651 # Use C for the default configuration in the libtool script
8655 ac_cpp='$CPP $CPPFLAGS'
8656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8661 # Source file extension for C test sources.
8664 # Object file extension for compiled C test sources.
8668 # Code to be used in simple compile tests
8669 lt_simple_compile_test_code="int some_variable = 0;"
8671 # Code to be used in simple link tests
8672 lt_simple_link_test_code='int main(){return(0);}'
8680 # If no C compiler was specified, use CC.
8683 # If no C compiler flags were specified, use CFLAGS.
8684 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8686 # Allow CC to be a program name with arguments.
8689 # Save the default compiler, since it gets overwritten when the other
8690 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8691 compiler_DEFAULT=$CC
8693 # save warnings/boilerplate of simple test code
8694 ac_outfile=conftest.$ac_objext
8695 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8696 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8697 _lt_compiler_boilerplate=`cat conftest.err`
8700 ac_outfile=conftest.$ac_objext
8701 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8702 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8703 _lt_linker_boilerplate=`cat conftest.err`
8708 ## There is no encapsulation within the following macros, do not change
8709 ## the running order or otherwise move them around unless you know exactly
8710 ## what you are doing...
8711 if test -n "$compiler"; then
8713 lt_prog_compiler_no_builtin_flag=
8715 if test yes = "$GCC"; then
8716 case $cc_basename in
8718 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8720 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8724 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8725 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8726 $as_echo_n "(cached) " >&6
8728 lt_cv_prog_compiler_rtti_exceptions=no
8729 ac_outfile=conftest.$ac_objext
8730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8731 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8732 # Insert the option either (1) after the last *FLAGS variable, or
8733 # (2) before a word containing "conftest.", or (3) at the end.
8734 # Note that $ac_compile itself does not contain backslashes and begins
8735 # with a dollar sign (not a hyphen), so the echo should work correctly.
8736 # The option is referenced via a variable to avoid confusing sed.
8737 lt_compile=`echo "$ac_compile" | $SED \
8738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8740 -e 's:$: $lt_compiler_flag:'`
8741 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8742 (eval "$lt_compile" 2>conftest.err)
8744 cat conftest.err >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 if (exit $ac_status) && test -s "$ac_outfile"; then
8747 # The compiler can only warn and ignore the option if not recognized
8748 # So say no if there are warnings other than the usual output.
8749 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8750 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8751 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8752 lt_cv_prog_compiler_rtti_exceptions=yes
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8759 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8761 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8762 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8774 lt_prog_compiler_wl=
8775 lt_prog_compiler_pic=
8776 lt_prog_compiler_static=
8779 if test yes = "$GCC"; then
8780 lt_prog_compiler_wl='-Wl,'
8781 lt_prog_compiler_static='-static'
8785 # All AIX code is PIC.
8786 if test ia64 = "$host_cpu"; then
8787 # AIX 5 now supports IA64 processor
8788 lt_prog_compiler_static='-Bstatic'
8790 lt_prog_compiler_pic='-fPIC'
8796 # see comment about AmigaOS4 .so support
8797 lt_prog_compiler_pic='-fPIC'
8800 # FIXME: we need at least 68020 code to build shared libraries, but
8801 # adding the '-m68020' flag to GCC prevents building anything better,
8803 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8808 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8809 # PIC is the default for these OSes.
8812 mingw* | cygwin* | pw32* | os2* | cegcc*)
8813 # This hack is so that the source file can tell whether it is being
8814 # built for inclusion in a dll (and should export symbols for example).
8815 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8816 # (--disable-auto-import) libraries
8817 lt_prog_compiler_pic='-DDLL_EXPORT'
8820 lt_prog_compiler_static='$wl-static'
8825 darwin* | rhapsody*)
8826 # PIC is the default on this platform
8827 # Common symbols not allowed in MH_DYLIB files
8828 lt_prog_compiler_pic='-fno-common'
8832 # PIC is the default for Haiku.
8833 # The "-static" flag exists, but is broken.
8834 lt_prog_compiler_static=
8838 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8839 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8840 # sets the default TLS model and affects inlining.
8846 lt_prog_compiler_pic='-fPIC'
8852 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8853 # Instead, we relocate shared libraries at runtime.
8857 # Just because we use GCC doesn't mean we suddenly get shared libraries
8858 # on systems that don't support them.
8859 lt_prog_compiler_can_build_shared=no
8864 # QNX uses GNU C++, but need to define -shared option too, otherwise
8866 lt_prog_compiler_pic='-fPIC -shared'
8870 if test -d /usr/nec; then
8871 lt_prog_compiler_pic=-Kconform_pic
8876 lt_prog_compiler_pic='-fPIC'
8880 case $cc_basename in
8881 nvcc*) # Cuda Compiler Driver 2.2
8882 lt_prog_compiler_wl='-Xlinker '
8883 if test -n "$lt_prog_compiler_pic"; then
8884 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8889 # PORTME Check for flag to pass linker flags through the system compiler.
8892 lt_prog_compiler_wl='-Wl,'
8893 if test ia64 = "$host_cpu"; then
8894 # AIX 5 now supports IA64 processor
8895 lt_prog_compiler_static='-Bstatic'
8897 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8901 darwin* | rhapsody*)
8902 # PIC is the default on this platform
8903 # Common symbols not allowed in MH_DYLIB files
8904 lt_prog_compiler_pic='-fno-common'
8905 case $cc_basename in
8907 # NAG Fortran compiler
8908 lt_prog_compiler_wl='-Wl,-Wl,,'
8909 lt_prog_compiler_pic='-PIC'
8910 lt_prog_compiler_static='-Bstatic'
8915 mingw* | cygwin* | pw32* | os2* | cegcc*)
8916 # This hack is so that the source file can tell whether it is being
8917 # built for inclusion in a dll (and should export symbols for example).
8918 lt_prog_compiler_pic='-DDLL_EXPORT'
8921 lt_prog_compiler_static='$wl-static'
8926 hpux9* | hpux10* | hpux11*)
8927 lt_prog_compiler_wl='-Wl,'
8928 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8935 lt_prog_compiler_pic='+Z'
8938 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8939 lt_prog_compiler_static='$wl-a ${wl}archive'
8942 irix5* | irix6* | nonstopux*)
8943 lt_prog_compiler_wl='-Wl,'
8944 # PIC (with -KPIC) is the default.
8945 lt_prog_compiler_static='-non_shared'
8948 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8949 case $cc_basename in
8950 # old Intel for x86_64, which still supported -KPIC.
8952 lt_prog_compiler_wl='-Wl,'
8953 lt_prog_compiler_pic='-KPIC'
8954 lt_prog_compiler_static='-static'
8956 # icc used to be incompatible with GCC.
8957 # ICC 10 doesn't accept -KPIC any more.
8959 lt_prog_compiler_wl='-Wl,'
8960 lt_prog_compiler_pic='-fPIC'
8961 lt_prog_compiler_static='-static'
8963 # Lahey Fortran 8.1.
8965 lt_prog_compiler_wl='-Wl,'
8966 lt_prog_compiler_pic='--shared'
8967 lt_prog_compiler_static='--static'
8970 # NAG Fortran compiler
8971 lt_prog_compiler_wl='-Wl,-Wl,,'
8972 lt_prog_compiler_pic='-PIC'
8973 lt_prog_compiler_static='-Bstatic'
8976 # Fabrice Bellard et al's Tiny C Compiler
8977 lt_prog_compiler_wl='-Wl,'
8978 lt_prog_compiler_pic='-fPIC'
8979 lt_prog_compiler_static='-static'
8981 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8982 # Portland Group compilers (*not* the Pentium gcc compiler,
8983 # which looks to be a dead project)
8984 lt_prog_compiler_wl='-Wl,'
8985 lt_prog_compiler_pic='-fpic'
8986 lt_prog_compiler_static='-Bstatic'
8989 lt_prog_compiler_wl='-Wl,'
8990 # All Alpha code is PIC.
8991 lt_prog_compiler_static='-non_shared'
8993 xl* | bgxl* | bgf* | mpixl*)
8994 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8995 lt_prog_compiler_wl='-Wl,'
8996 lt_prog_compiler_pic='-qpic'
8997 lt_prog_compiler_static='-qstaticlink'
9000 case `$CC -V 2>&1 | sed 5q` in
9001 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9002 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9003 lt_prog_compiler_pic='-KPIC'
9004 lt_prog_compiler_static='-Bstatic'
9005 lt_prog_compiler_wl=''
9007 *Sun\ F* | *Sun*Fortran*)
9008 lt_prog_compiler_pic='-KPIC'
9009 lt_prog_compiler_static='-Bstatic'
9010 lt_prog_compiler_wl='-Qoption ld '
9014 lt_prog_compiler_pic='-KPIC'
9015 lt_prog_compiler_static='-Bstatic'
9016 lt_prog_compiler_wl='-Wl,'
9018 *Intel*\ [CF]*Compiler*)
9019 lt_prog_compiler_wl='-Wl,'
9020 lt_prog_compiler_pic='-fPIC'
9021 lt_prog_compiler_static='-static'
9024 lt_prog_compiler_wl='-Wl,'
9025 lt_prog_compiler_pic='-fpic'
9026 lt_prog_compiler_static='-Bstatic'
9034 lt_prog_compiler_pic='-KPIC'
9035 lt_prog_compiler_static='-Bstatic'
9039 # QNX uses GNU C++, but need to define -shared option too, otherwise
9041 lt_prog_compiler_pic='-fPIC -shared'
9044 osf3* | osf4* | osf5*)
9045 lt_prog_compiler_wl='-Wl,'
9046 # All OSF/1 code is PIC.
9047 lt_prog_compiler_static='-non_shared'
9051 lt_prog_compiler_static='-non_shared'
9055 lt_prog_compiler_pic='-KPIC'
9056 lt_prog_compiler_static='-Bstatic'
9057 case $cc_basename in
9058 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9059 lt_prog_compiler_wl='-Qoption ld ';;
9061 lt_prog_compiler_wl='-Wl,';;
9066 lt_prog_compiler_wl='-Qoption ld '
9067 lt_prog_compiler_pic='-PIC'
9068 lt_prog_compiler_static='-Bstatic'
9071 sysv4 | sysv4.2uw2* | sysv4.3*)
9072 lt_prog_compiler_wl='-Wl,'
9073 lt_prog_compiler_pic='-KPIC'
9074 lt_prog_compiler_static='-Bstatic'
9078 if test -d /usr/nec; then
9079 lt_prog_compiler_pic='-Kconform_pic'
9080 lt_prog_compiler_static='-Bstatic'
9084 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9085 lt_prog_compiler_wl='-Wl,'
9086 lt_prog_compiler_pic='-KPIC'
9087 lt_prog_compiler_static='-Bstatic'
9091 lt_prog_compiler_wl='-Wl,'
9092 lt_prog_compiler_can_build_shared=no
9096 lt_prog_compiler_pic='-pic'
9097 lt_prog_compiler_static='-Bstatic'
9101 lt_prog_compiler_can_build_shared=no
9107 # For platforms that do not support PIC, -DPIC is meaningless:
9109 lt_prog_compiler_pic=
9112 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9117 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9118 if ${lt_cv_prog_compiler_pic+:} false; then :
9119 $as_echo_n "(cached) " >&6
9121 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9124 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9125 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9128 # Check to make sure the PIC flag actually works.
9130 if test -n "$lt_prog_compiler_pic"; then
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9132 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9133 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9134 $as_echo_n "(cached) " >&6
9136 lt_cv_prog_compiler_pic_works=no
9137 ac_outfile=conftest.$ac_objext
9138 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9139 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9140 # Insert the option either (1) after the last *FLAGS variable, or
9141 # (2) before a word containing "conftest.", or (3) at the end.
9142 # Note that $ac_compile itself does not contain backslashes and begins
9143 # with a dollar sign (not a hyphen), so the echo should work correctly.
9144 # The option is referenced via a variable to avoid confusing sed.
9145 lt_compile=`echo "$ac_compile" | $SED \
9146 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9147 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9148 -e 's:$: $lt_compiler_flag:'`
9149 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9150 (eval "$lt_compile" 2>conftest.err)
9152 cat conftest.err >&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 if (exit $ac_status) && test -s "$ac_outfile"; then
9155 # The compiler can only warn and ignore the option if not recognized
9156 # So say no if there are warnings other than the usual output.
9157 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9158 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9159 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9160 lt_cv_prog_compiler_pic_works=yes
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9167 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9169 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9170 case $lt_prog_compiler_pic in
9172 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9175 lt_prog_compiler_pic=
9176 lt_prog_compiler_can_build_shared=no
9192 # Check to make sure the static flag actually works.
9194 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9196 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9197 if ${lt_cv_prog_compiler_static_works+:} false; then :
9198 $as_echo_n "(cached) " >&6
9200 lt_cv_prog_compiler_static_works=no
9201 save_LDFLAGS=$LDFLAGS
9202 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9203 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9204 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9205 # The linker can only warn and ignore the option if not recognized
9206 # So say no if there are warnings
9207 if test -s conftest.err; then
9208 # Append any errors to the config.log.
9209 cat conftest.err 1>&5
9210 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9211 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9212 if diff conftest.exp conftest.er2 >/dev/null; then
9213 lt_cv_prog_compiler_static_works=yes
9216 lt_cv_prog_compiler_static_works=yes
9220 LDFLAGS=$save_LDFLAGS
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9224 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9226 if test yes = "$lt_cv_prog_compiler_static_works"; then
9229 lt_prog_compiler_static=
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9239 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9240 if ${lt_cv_prog_compiler_c_o+:} false; then :
9241 $as_echo_n "(cached) " >&6
9243 lt_cv_prog_compiler_c_o=no
9244 $RM -r conftest 2>/dev/null
9248 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9250 lt_compiler_flag="-o out/conftest2.$ac_objext"
9251 # Insert the option either (1) after the last *FLAGS variable, or
9252 # (2) before a word containing "conftest.", or (3) at the end.
9253 # Note that $ac_compile itself does not contain backslashes and begins
9254 # with a dollar sign (not a hyphen), so the echo should work correctly.
9255 lt_compile=`echo "$ac_compile" | $SED \
9256 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9257 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9258 -e 's:$: $lt_compiler_flag:'`
9259 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9260 (eval "$lt_compile" 2>out/conftest.err)
9262 cat out/conftest.err >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9266 # The compiler can only warn and ignore the option if not recognized
9267 # So say no if there are warnings
9268 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9269 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9270 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9271 lt_cv_prog_compiler_c_o=yes
9276 # SGI C++ compiler will create directory out/ii_files/ for
9277 # template instantiation
9278 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9279 $RM out/* && rmdir out
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9286 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9294 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9295 if ${lt_cv_prog_compiler_c_o+:} false; then :
9296 $as_echo_n "(cached) " >&6
9298 lt_cv_prog_compiler_c_o=no
9299 $RM -r conftest 2>/dev/null
9303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9305 lt_compiler_flag="-o out/conftest2.$ac_objext"
9306 # Insert the option either (1) after the last *FLAGS variable, or
9307 # (2) before a word containing "conftest.", or (3) at the end.
9308 # Note that $ac_compile itself does not contain backslashes and begins
9309 # with a dollar sign (not a hyphen), so the echo should work correctly.
9310 lt_compile=`echo "$ac_compile" | $SED \
9311 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9313 -e 's:$: $lt_compiler_flag:'`
9314 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9315 (eval "$lt_compile" 2>out/conftest.err)
9317 cat out/conftest.err >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9321 # The compiler can only warn and ignore the option if not recognized
9322 # So say no if there are warnings
9323 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9324 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9325 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9326 lt_cv_prog_compiler_c_o=yes
9331 # SGI C++ compiler will create directory out/ii_files/ for
9332 # template instantiation
9333 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9334 $RM out/* && rmdir out
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9341 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9346 hard_links=nottested
9347 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9348 # do not overwrite the value of need_locks provided by the user
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9350 $as_echo_n "checking if we can lock with hard links... " >&6; }
9353 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9355 ln conftest.a conftest.b 2>&5 || hard_links=no
9356 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9358 $as_echo "$hard_links" >&6; }
9359 if test no = "$hard_links"; then
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9361 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9374 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9377 allow_undefined_flag=
9378 always_export_symbols=no
9380 archive_expsym_cmds=
9381 compiler_needs_object=no
9382 enable_shared_with_static_runtimes=no
9383 export_dynamic_flag_spec=
9384 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9385 hardcode_automatic=no
9387 hardcode_direct_absolute=no
9388 hardcode_libdir_flag_spec=
9389 hardcode_libdir_separator=
9391 hardcode_shlibpath_var=unsupported
9393 link_all_deplibs=unknown
9396 old_archive_from_new_cmds=
9397 old_archive_from_expsyms_cmds=
9398 thread_safe_flag_spec=
9399 whole_archive_flag_spec=
9400 # include_expsyms should be a list of space-separated symbols to be *always*
9401 # included in the symbol list
9403 # exclude_expsyms can be an extended regexp of symbols to exclude
9404 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9405 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9406 # as well as any symbol that contains 'd'.
9407 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9408 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9409 # platforms (ab)use it in PIC code, but their linkers get confused if
9410 # the symbol is explicitly referenced. Since portable code cannot
9411 # rely on this symbol name, it's probably fine to never include it in
9412 # preloaded symbol tables.
9413 # Exclude shared library initialization/finalization symbols.
9414 extract_expsyms_cmds=
9417 cygwin* | mingw* | pw32* | cegcc*)
9418 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9419 # When not using gcc, we currently assume that we are using
9420 # Microsoft Visual C++.
9421 if test yes != "$GCC"; then
9426 # we just hope/assume this is gcc and not c89 (= MSVC++)
9436 # On some targets, GNU ld is compatible enough with the native linker
9437 # that we're better off using the native interface for both.
9438 lt_use_gnu_ld_interface=no
9439 if test yes = "$with_gnu_ld"; then
9442 # The AIX port of GNU ld has always aspired to compatibility
9443 # with the native linker. However, as the warning in the GNU ld
9444 # block says, versions before 2.19.5* couldn't really create working
9445 # shared libraries, regardless of the interface used.
9446 case `$LD -v 2>&1` in
9447 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9448 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9449 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9451 lt_use_gnu_ld_interface=yes
9456 lt_use_gnu_ld_interface=yes
9461 if test yes = "$lt_use_gnu_ld_interface"; then
9462 # If archive_cmds runs LD, not CC, wlarc should be empty
9465 # Set some defaults for GNU ld with shared library support. These
9466 # are reset later if shared libraries are not supported. Putting them
9467 # here allows them to be overridden if necessary.
9468 runpath_var=LD_RUN_PATH
9469 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9470 export_dynamic_flag_spec='$wl--export-dynamic'
9471 # ancient GNU ld didn't support --whole-archive et. al.
9472 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9473 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9475 whole_archive_flag_spec=
9477 supports_anon_versioning=no
9478 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9479 *GNU\ gold*) supports_anon_versioning=yes ;;
9480 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9481 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9482 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9483 *\ 2.11.*) ;; # other 2.11 versions
9484 *) supports_anon_versioning=yes ;;
9487 # See if GNU ld supports shared libraries.
9490 # On AIX/PPC, the GNU linker is very broken
9491 if test ia64 != "$host_cpu"; then
9495 *** Warning: the GNU linker, at least up to release 2.19, is reported
9496 *** to be unable to reliably create shared libraries on AIX.
9497 *** Therefore, libtool is disabling shared libraries support. If you
9498 *** really care for shared libraries, you may want to install binutils
9499 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9500 *** You will then need to restart the configuration process.
9509 # see comment about AmigaOS4 .so support
9510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9511 archive_expsym_cmds=''
9514 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)'
9515 hardcode_libdir_flag_spec='-L$libdir'
9516 hardcode_minus_L=yes
9522 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9523 allow_undefined_flag=unsupported
9524 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9525 # support --undefined. This deserves some investigation. FIXME
9526 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9532 cygwin* | mingw* | pw32* | cegcc*)
9533 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9534 # as there is no search path for DLLs.
9535 hardcode_libdir_flag_spec='-L$libdir'
9536 export_dynamic_flag_spec='$wl--export-all-symbols'
9537 allow_undefined_flag=unsupported
9538 always_export_symbols=no
9539 enable_shared_with_static_runtimes=yes
9540 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9541 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9543 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9544 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9545 # If the export-symbols file already is a .def file, use it as
9546 # is; otherwise, prepend EXPORTS...
9547 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9548 cp $export_symbols $output_objdir/$soname.def;
9550 echo EXPORTS > $output_objdir/$soname.def;
9551 cat $export_symbols >> $output_objdir/$soname.def;
9553 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9560 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9561 link_all_deplibs=yes
9565 hardcode_libdir_flag_spec='-L$libdir'
9566 hardcode_minus_L=yes
9567 allow_undefined_flag=unsupported
9569 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9570 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9571 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9572 $ECHO EXPORTS >> $output_objdir/$libname.def~
9573 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9574 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9575 emximp -o $lib $output_objdir/$libname.def'
9576 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9577 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9578 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9579 $ECHO EXPORTS >> $output_objdir/$libname.def~
9581 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9582 prefix_cmds="$prefix_cmds -e 1d";
9584 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9585 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9586 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9587 emximp -o $lib $output_objdir/$libname.def'
9588 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9589 enable_shared_with_static_runtimes=yes
9594 hardcode_shlibpath_var=no
9595 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9596 export_dynamic_flag_spec='$wl-E'
9597 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9598 # Instead, shared libraries are loaded at an image base (0x10000000 by
9599 # default) and relocated if they conflict, which is a slow very memory
9600 # consuming and fragmenting process. To avoid this, we pick a random,
9601 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9602 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9603 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9604 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'
9607 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9609 if test linux-dietlibc = "$host_os"; then
9610 case $cc_basename in
9611 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9614 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9615 && test no = "$tmp_diet"
9617 tmp_addflag=' $pic_flag'
9618 tmp_sharedflag='-shared'
9619 case $cc_basename,$host_cpu in
9620 pgcc*) # Portland Group C compiler
9621 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9622 tmp_addflag=' $pic_flag'
9624 pgf77* | pgf90* | pgf95* | pgfortran*)
9625 # Portland Group f77 and f90 compilers
9626 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9627 tmp_addflag=' $pic_flag -Mnomain' ;;
9628 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9629 tmp_addflag=' -i_dynamic' ;;
9630 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9631 tmp_addflag=' -i_dynamic -nofor_main' ;;
9632 ifc* | ifort*) # Intel Fortran compiler
9633 tmp_addflag=' -nofor_main' ;;
9634 lf95*) # Lahey Fortran 8.1
9635 whole_archive_flag_spec=
9636 tmp_sharedflag='--shared' ;;
9637 nagfor*) # NAGFOR 5.3
9638 tmp_sharedflag='-Wl,-shared' ;;
9639 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9640 tmp_sharedflag='-qmkshrobj'
9642 nvcc*) # Cuda Compiler Driver 2.2
9643 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9644 compiler_needs_object=yes
9647 case `$CC -V 2>&1 | sed 5q` in
9648 *Sun\ C*) # Sun C 5.9
9649 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9650 compiler_needs_object=yes
9651 tmp_sharedflag='-G' ;;
9652 *Sun\ F*) # Sun Fortran 8.3
9653 tmp_sharedflag='-G' ;;
9655 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9657 if test yes = "$supports_anon_versioning"; then
9658 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9659 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9660 echo "local: *; };" >> $output_objdir/$libname.ver~
9661 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9664 case $cc_basename in
9666 export_dynamic_flag_spec='-rdynamic'
9668 xlf* | bgf* | bgxlf* | mpixlf*)
9669 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9670 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9671 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9672 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9673 if test yes = "$supports_anon_versioning"; then
9674 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9675 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9676 echo "local: *; };" >> $output_objdir/$libname.ver~
9677 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9687 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9688 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9691 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9692 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9697 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9701 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9702 *** create shared libraries on Solaris systems. Therefore, libtool
9703 *** is disabling shared libraries support. We urge you to upgrade GNU
9704 *** binutils to release 2.9.1 or newer. Another option is to modify
9705 *** your PATH or compiler configuration so that the native linker is
9706 *** used, and then restart.
9709 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9710 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9711 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9717 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9718 case `$LD -v 2>&1` in
9719 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9723 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9724 *** reliably create shared libraries on SCO systems. Therefore, libtool
9725 *** is disabling shared libraries support. We urge you to upgrade GNU
9726 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9727 *** your PATH or compiler configuration so that the native linker is
9728 *** used, and then restart.
9733 # For security reasons, it is highly recommended that you always
9734 # use absolute paths for naming shared libraries, and exclude the
9735 # DT_RUNPATH tag from executables and libraries. But doing so
9736 # requires that you compile everything twice, which is a pain.
9737 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9738 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9740 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9749 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9752 hardcode_shlibpath_var=no
9756 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9757 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9758 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9765 if test no = "$ld_shlibs"; then
9767 hardcode_libdir_flag_spec=
9768 export_dynamic_flag_spec=
9769 whole_archive_flag_spec=
9772 # PORTME fill in a description of your system's linker (not GNU ld)
9775 allow_undefined_flag=unsupported
9776 always_export_symbols=yes
9777 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'
9778 # Note: this linker hardcodes the directories in LIBPATH if there
9779 # are no directories specified by -L.
9780 hardcode_minus_L=yes
9781 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9782 # Neither direct hardcoding nor static linking is supported with a
9784 hardcode_direct=unsupported
9789 if test ia64 = "$host_cpu"; then
9790 # On IA64, the linker does run time linking by default, so we don't
9791 # have to do anything special.
9792 aix_use_runtimelinking=no
9793 exp_sym_flag='-Bexport'
9796 # If we're using GNU nm, then we don't want the "-C" option.
9797 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9798 # Without the "-l" option, or with the "-B" option, AIX nm treats
9799 # weak defined symbols like other global defined symbols, whereas
9800 # GNU nm marks them as "W".
9801 # While the 'weak' keyword is ignored in the Export File, we need
9802 # it in the Import File for the 'aix-soname' feature, so we have
9803 # to replace the "-B" option with "-P" for AIX nm.
9804 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9805 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9807 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9809 aix_use_runtimelinking=no
9811 # Test if we are trying to use run time linking or normal
9812 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9813 # have runtime linking enabled, and use it for executables.
9814 # For shared libraries, we enable/disable runtime linking
9815 # depending on the kind of the shared library created -
9816 # when "with_aix_soname,aix_use_runtimelinking" is:
9817 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9818 # "aix,yes" lib.so shared, rtl:yes, for executables
9819 # lib.a static archive
9820 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9821 # lib.a(lib.so.V) shared, rtl:no, for executables
9822 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9823 # lib.a(lib.so.V) shared, rtl:no
9824 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9825 # lib.a static archive
9826 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9827 for ld_flag in $LDFLAGS; do
9828 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9829 aix_use_runtimelinking=yes
9833 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9834 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9835 # so we don't have lib.a shared libs to link our executables.
9836 # We have to force runtime linking in this case.
9837 aix_use_runtimelinking=yes
9838 LDFLAGS="$LDFLAGS -Wl,-brtl"
9843 exp_sym_flag='-bexport'
9844 no_entry_flag='-bnoentry'
9847 # When large executables or shared objects are built, AIX ld can
9848 # have problems creating the table of contents. If linking a library
9849 # or program results in "error TOC overflow" add -mminimal-toc to
9850 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9851 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9855 hardcode_direct_absolute=yes
9856 hardcode_libdir_separator=':'
9857 link_all_deplibs=yes
9858 file_list_spec='$wl-f,'
9859 case $with_aix_soname,$aix_use_runtimelinking in
9860 aix,*) ;; # traditional, no import file
9861 svr4,* | *,yes) # use import file
9862 # The Import File defines what to hardcode.
9864 hardcode_direct_absolute=no
9868 if test yes = "$GCC"; then
9869 case $host_os in aix4.[012]|aix4.[012].*)
9870 # We only want to do this on AIX 4.2 and lower, the check
9871 # below for broken collect2 doesn't work under 4.3+
9872 collect2name=`$CC -print-prog-name=collect2`
9873 if test -f "$collect2name" &&
9874 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9876 # We have reworked collect2
9879 # We have old collect2
9880 hardcode_direct=unsupported
9881 # It fails to find uninstalled libraries when the uninstalled
9882 # path is not listed in the libpath. Setting hardcode_minus_L
9883 # to unsupported forces relinking
9884 hardcode_minus_L=yes
9885 hardcode_libdir_flag_spec='-L$libdir'
9886 hardcode_libdir_separator=
9890 shared_flag='-shared'
9891 if test yes = "$aix_use_runtimelinking"; then
9892 shared_flag="$shared_flag "'$wl-G'
9894 # Need to ensure runtime linking is disabled for the traditional
9895 # shared library, or the linker may eventually find shared libraries
9896 # /with/ Import File - we do not want to mix them.
9897 shared_flag_aix='-shared'
9898 shared_flag_svr4='-shared $wl-G'
9901 if test ia64 = "$host_cpu"; then
9902 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9903 # chokes on -Wl,-G. The following line is correct:
9906 if test yes = "$aix_use_runtimelinking"; then
9909 shared_flag='$wl-bM:SRE'
9911 shared_flag_aix='$wl-bM:SRE'
9912 shared_flag_svr4='$wl-G'
9916 export_dynamic_flag_spec='$wl-bexpall'
9917 # It seems that -bexpall does not export symbols beginning with
9918 # underscore (_), so it is better to generate a list of symbols to export.
9919 always_export_symbols=yes
9920 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9921 # Warning - without using the other runtime loading flags (-brtl),
9922 # -berok will link without error, but may produce a broken library.
9923 allow_undefined_flag='-berok'
9924 # Determine the default libpath from the value encoded in an
9926 if test set = "${lt_cv_aix_libpath+set}"; then
9927 aix_libpath=$lt_cv_aix_libpath
9929 if ${lt_cv_aix_libpath_+:} false; then :
9930 $as_echo_n "(cached) " >&6
9932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9933 /* end confdefs.h. */
9943 if ac_fn_c_try_link "$LINENO"; then :
9945 lt_aix_libpath_sed='
9946 /Import File Strings/,/^$/ {
9948 s/^0 *\([^ ]*\) *$/\1/
9952 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9953 # Check for a 64-bit object if we didn't find anything.
9954 if test -z "$lt_cv_aix_libpath_"; then
9955 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9958 rm -f core conftest.err conftest.$ac_objext \
9959 conftest$ac_exeext conftest.$ac_ext
9960 if test -z "$lt_cv_aix_libpath_"; then
9961 lt_cv_aix_libpath_=/usr/lib:/lib
9966 aix_libpath=$lt_cv_aix_libpath_
9969 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9970 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9972 if test ia64 = "$host_cpu"; then
9973 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9974 allow_undefined_flag="-z nodefs"
9975 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"
9977 # Determine the default libpath from the value encoded in an
9979 if test set = "${lt_cv_aix_libpath+set}"; then
9980 aix_libpath=$lt_cv_aix_libpath
9982 if ${lt_cv_aix_libpath_+:} false; then :
9983 $as_echo_n "(cached) " >&6
9985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9986 /* end confdefs.h. */
9996 if ac_fn_c_try_link "$LINENO"; then :
9998 lt_aix_libpath_sed='
9999 /Import File Strings/,/^$/ {
10001 s/^0 *\([^ ]*\) *$/\1/
10005 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10006 # Check for a 64-bit object if we didn't find anything.
10007 if test -z "$lt_cv_aix_libpath_"; then
10008 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10011 rm -f core conftest.err conftest.$ac_objext \
10012 conftest$ac_exeext conftest.$ac_ext
10013 if test -z "$lt_cv_aix_libpath_"; then
10014 lt_cv_aix_libpath_=/usr/lib:/lib
10019 aix_libpath=$lt_cv_aix_libpath_
10022 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10023 # Warning - without using the other run time loading flags,
10024 # -berok will link without error, but may produce a broken library.
10025 no_undefined_flag=' $wl-bernotok'
10026 allow_undefined_flag=' $wl-berok'
10027 if test yes = "$with_gnu_ld"; then
10028 # We only use this code for GNU lds that support --whole-archive.
10029 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10031 # Exported symbols can be pulled into shared objects from archives
10032 whole_archive_flag_spec='$convenience'
10034 archive_cmds_need_lc=yes
10035 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10036 # -brtl affects multiple linker settings, -berok does not and is overridden later
10037 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10038 if test svr4 != "$with_aix_soname"; then
10039 # This is similar to how AIX traditionally builds its shared libraries.
10040 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10042 if test aix != "$with_aix_soname"; then
10043 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10045 # used by -dlpreopen to get the symbols
10046 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10048 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10056 # see comment about AmigaOS4 .so support
10057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10058 archive_expsym_cmds=''
10061 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)'
10062 hardcode_libdir_flag_spec='-L$libdir'
10063 hardcode_minus_L=yes
10069 export_dynamic_flag_spec=-rdynamic
10072 cygwin* | mingw* | pw32* | cegcc*)
10073 # When not using gcc, we currently assume that we are using
10074 # Microsoft Visual C++.
10075 # hardcode_libdir_flag_spec is actually meaningless, as there is
10076 # no search path for DLLs.
10077 case $cc_basename in
10080 hardcode_libdir_flag_spec=' '
10081 allow_undefined_flag=unsupported
10082 always_export_symbols=yes
10084 # Tell ltmain to make .lib files, not .a files.
10086 # Tell ltmain to make .dll files, not .so files.
10088 # FIXME: Setting linknames here is a bad hack.
10089 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10090 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10091 cp "$export_symbols" "$output_objdir/$soname.def";
10092 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10094 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10096 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10098 # The linker will not automatically build a static lib if we build a DLL.
10099 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10100 enable_shared_with_static_runtimes=yes
10101 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10102 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10104 old_postinstall_cmds='chmod 644 $oldlib'
10105 postlink_cmds='lt_outputfile="@OUTPUT@"~
10106 lt_tool_outputfile="@TOOL_OUTPUT@"~
10107 case $lt_outputfile in
10110 lt_outputfile=$lt_outputfile.exe
10111 lt_tool_outputfile=$lt_tool_outputfile.exe
10114 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10115 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10116 $RM "$lt_outputfile.manifest";
10120 # Assume MSVC wrapper
10121 hardcode_libdir_flag_spec=' '
10122 allow_undefined_flag=unsupported
10123 # Tell ltmain to make .lib files, not .a files.
10125 # Tell ltmain to make .dll files, not .so files.
10127 # FIXME: Setting linknames here is a bad hack.
10128 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10129 # The linker will automatically build a .lib file if we build a DLL.
10130 old_archive_from_new_cmds='true'
10131 # FIXME: Should let the user specify the lib program.
10132 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10133 enable_shared_with_static_runtimes=yes
10138 darwin* | rhapsody*)
10141 archive_cmds_need_lc=no
10143 hardcode_automatic=yes
10144 hardcode_shlibpath_var=unsupported
10145 if test yes = "$lt_cv_ld_force_load"; then
10146 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10149 whole_archive_flag_spec=''
10151 link_all_deplibs=yes
10152 allow_undefined_flag=$_lt_dar_allow_undefined
10153 case $cc_basename in
10154 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10155 *) _lt_dar_can_shared=$GCC ;;
10157 if test yes = "$_lt_dar_can_shared"; then
10158 output_verbose_link_cmd=func_echo_all
10159 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10160 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10161 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"
10162 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"
10171 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10172 hardcode_libdir_flag_spec='-L$libdir'
10173 hardcode_shlibpath_var=no
10176 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10177 # support. Future versions do this automatically, but an explicit c++rt0.o
10178 # does not break anything, and helps significantly (at the cost of a little
10181 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10182 hardcode_libdir_flag_spec='-R$libdir'
10183 hardcode_direct=yes
10184 hardcode_shlibpath_var=no
10187 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10189 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10190 hardcode_direct=yes
10191 hardcode_minus_L=yes
10192 hardcode_shlibpath_var=no
10195 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10196 freebsd* | dragonfly*)
10197 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10198 hardcode_libdir_flag_spec='-R$libdir'
10199 hardcode_direct=yes
10200 hardcode_shlibpath_var=no
10204 if test yes = "$GCC"; then
10205 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10207 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10209 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10210 hardcode_libdir_separator=:
10211 hardcode_direct=yes
10213 # hardcode_minus_L: Not really in the search PATH,
10214 # but as the default location of the library.
10215 hardcode_minus_L=yes
10216 export_dynamic_flag_spec='$wl-E'
10220 if test yes,no = "$GCC,$with_gnu_ld"; then
10221 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10223 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10225 if test no = "$with_gnu_ld"; then
10226 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10227 hardcode_libdir_separator=:
10228 hardcode_direct=yes
10229 hardcode_direct_absolute=yes
10230 export_dynamic_flag_spec='$wl-E'
10231 # hardcode_minus_L: Not really in the search PATH,
10232 # but as the default location of the library.
10233 hardcode_minus_L=yes
10238 if test yes,no = "$GCC,$with_gnu_ld"; then
10241 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10244 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10247 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10253 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10256 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10260 # Older versions of the 11.00 compiler do not understand -b yet
10261 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10263 $as_echo_n "checking if $CC understands -b... " >&6; }
10264 if ${lt_cv_prog_compiler__b+:} false; then :
10265 $as_echo_n "(cached) " >&6
10267 lt_cv_prog_compiler__b=no
10268 save_LDFLAGS=$LDFLAGS
10269 LDFLAGS="$LDFLAGS -b"
10270 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10271 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10272 # The linker can only warn and ignore the option if not recognized
10273 # So say no if there are warnings
10274 if test -s conftest.err; then
10275 # Append any errors to the config.log.
10276 cat conftest.err 1>&5
10277 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10278 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10279 if diff conftest.exp conftest.er2 >/dev/null; then
10280 lt_cv_prog_compiler__b=yes
10283 lt_cv_prog_compiler__b=yes
10287 LDFLAGS=$save_LDFLAGS
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10291 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10293 if test yes = "$lt_cv_prog_compiler__b"; then
10294 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10296 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10302 if test no = "$with_gnu_ld"; then
10303 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10304 hardcode_libdir_separator=:
10309 hardcode_shlibpath_var=no
10312 hardcode_direct=yes
10313 hardcode_direct_absolute=yes
10314 export_dynamic_flag_spec='$wl-E'
10316 # hardcode_minus_L: Not really in the search PATH,
10317 # but as the default location of the library.
10318 hardcode_minus_L=yes
10324 irix5* | irix6* | nonstopux*)
10325 if test yes = "$GCC"; then
10326 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10327 # Try to use the -exported_symbol ld option, if it does not
10328 # work, assume that -exports_file does not work either and
10329 # implicitly export all symbols.
10330 # This should be the same for all languages, so no per-tag cache variable.
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10332 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10333 if ${lt_cv_irix_exported_symbol+:} false; then :
10334 $as_echo_n "(cached) " >&6
10336 save_LDFLAGS=$LDFLAGS
10337 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10339 /* end confdefs.h. */
10340 int foo (void) { return 0; }
10342 if ac_fn_c_try_link "$LINENO"; then :
10343 lt_cv_irix_exported_symbol=yes
10345 lt_cv_irix_exported_symbol=no
10347 rm -f core conftest.err conftest.$ac_objext \
10348 conftest$ac_exeext conftest.$ac_ext
10349 LDFLAGS=$save_LDFLAGS
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10352 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10353 if test yes = "$lt_cv_irix_exported_symbol"; then
10354 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10357 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10358 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10360 archive_cmds_need_lc='no'
10361 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10362 hardcode_libdir_separator=:
10364 link_all_deplibs=yes
10368 case $cc_basename in
10370 # Fabrice Bellard et al's Tiny C Compiler
10372 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10378 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10379 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10381 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10383 hardcode_libdir_flag_spec='-R$libdir'
10384 hardcode_direct=yes
10385 hardcode_shlibpath_var=no
10389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10390 hardcode_direct=yes
10391 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10392 hardcode_libdir_separator=:
10393 hardcode_shlibpath_var=no
10399 openbsd* | bitrig*)
10400 if test -f /usr/libexec/ld.so; then
10401 hardcode_direct=yes
10402 hardcode_shlibpath_var=no
10403 hardcode_direct_absolute=yes
10404 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10405 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10406 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10407 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10408 export_dynamic_flag_spec='$wl-E'
10410 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10411 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10419 hardcode_libdir_flag_spec='-L$libdir'
10420 hardcode_minus_L=yes
10421 allow_undefined_flag=unsupported
10423 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10424 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10425 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10426 $ECHO EXPORTS >> $output_objdir/$libname.def~
10427 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10428 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10429 emximp -o $lib $output_objdir/$libname.def'
10430 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10431 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10432 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10433 $ECHO EXPORTS >> $output_objdir/$libname.def~
10434 prefix_cmds="$SED"~
10435 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10436 prefix_cmds="$prefix_cmds -e 1d";
10438 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10439 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10440 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10441 emximp -o $lib $output_objdir/$libname.def'
10442 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10443 enable_shared_with_static_runtimes=yes
10447 if test yes = "$GCC"; then
10448 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10449 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10451 allow_undefined_flag=' -expect_unresolved \*'
10452 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10454 archive_cmds_need_lc='no'
10455 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10456 hardcode_libdir_separator=:
10459 osf4* | osf5*) # as osf3* with the addition of -msym flag
10460 if test yes = "$GCC"; then
10461 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10462 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10463 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10465 allow_undefined_flag=' -expect_unresolved \*'
10466 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10467 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~
10468 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10470 # Both c and cxx compiler support -rpath directly
10471 hardcode_libdir_flag_spec='-rpath $libdir'
10473 archive_cmds_need_lc='no'
10474 hardcode_libdir_separator=:
10478 no_undefined_flag=' -z defs'
10479 if test yes = "$GCC"; then
10481 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10482 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10483 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10485 case `$CC -V 2>&1` in
10488 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10489 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10490 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10494 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10495 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10496 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10500 hardcode_libdir_flag_spec='-R$libdir'
10501 hardcode_shlibpath_var=no
10503 solaris2.[0-5] | solaris2.[0-5].*) ;;
10505 # The compiler driver will combine and reorder linker options,
10506 # but understands '-z linker_flag'. GCC discards it without '$wl',
10507 # but is careful enough not to reorder.
10508 # Supported since Solaris 2.6 (maybe 2.5.1?)
10509 if test yes = "$GCC"; then
10510 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10512 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10516 link_all_deplibs=yes
10520 if test sequent = "$host_vendor"; then
10521 # Use $CC to link under sequent, because it throws in some extra .o
10522 # files that make .init and .fini sections work.
10523 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10525 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10527 hardcode_libdir_flag_spec='-L$libdir'
10528 hardcode_direct=yes
10529 hardcode_minus_L=yes
10530 hardcode_shlibpath_var=no
10534 case $host_vendor in
10536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10537 hardcode_direct=yes # is this really true???
10540 ## LD is ld it makes a PLAMLIB
10541 ## CC just makes a GrossModule.
10542 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10543 reload_cmds='$CC -r -o $output$reload_objs'
10547 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10548 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10551 runpath_var='LD_RUN_PATH'
10552 hardcode_shlibpath_var=no
10556 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10557 hardcode_shlibpath_var=no
10558 export_dynamic_flag_spec='-Bexport'
10562 if test -d /usr/nec; then
10563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10564 hardcode_shlibpath_var=no
10565 runpath_var=LD_RUN_PATH
10566 hardcode_runpath_var=yes
10571 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10572 no_undefined_flag='$wl-z,text'
10573 archive_cmds_need_lc=no
10574 hardcode_shlibpath_var=no
10575 runpath_var='LD_RUN_PATH'
10577 if test yes = "$GCC"; then
10578 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10579 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10581 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10582 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10586 sysv5* | sco3.2v5* | sco5v6*)
10587 # Note: We CANNOT use -z defs as we might desire, because we do not
10588 # link with -lc, and that would cause any symbols used from libc to
10589 # always be unresolved, which means just about no library would
10590 # ever link correctly. If we're not using GNU ld we use -z text
10591 # though, which does catch some bad symbols but isn't as heavy-handed
10593 no_undefined_flag='$wl-z,text'
10594 allow_undefined_flag='$wl-z,nodefs'
10595 archive_cmds_need_lc=no
10596 hardcode_shlibpath_var=no
10597 hardcode_libdir_flag_spec='$wl-R,$libdir'
10598 hardcode_libdir_separator=':'
10599 link_all_deplibs=yes
10600 export_dynamic_flag_spec='$wl-Bexport'
10601 runpath_var='LD_RUN_PATH'
10603 if test yes = "$GCC"; then
10604 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10605 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10607 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10608 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10614 hardcode_libdir_flag_spec='-L$libdir'
10615 hardcode_shlibpath_var=no
10623 if test sni = "$host_vendor"; then
10625 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10626 export_dynamic_flag_spec='$wl-Blargedynsym'
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10633 $as_echo "$ld_shlibs" >&6; }
10634 test no = "$ld_shlibs" && can_build_shared=no
10636 with_gnu_ld=$with_gnu_ld
10653 # Do we need to explicitly link libc?
10655 case "x$archive_cmds_need_lc" in
10657 # Assume -lc should be added
10658 archive_cmds_need_lc=yes
10660 if test yes,yes = "$GCC,$enable_shared"; then
10661 case $archive_cmds in
10663 # FIXME: we may have to deal with multi-command sequences.
10666 # Test whether the compiler implicitly links with -lc since on some
10667 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10668 # to ld, don't add -lc before -lgcc.
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10670 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10671 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10672 $as_echo_n "(cached) " >&6
10675 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10678 (eval $ac_compile) 2>&5
10680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10681 test $ac_status = 0; } 2>conftest.err; then
10684 libobjs=conftest.$ac_objext
10686 wl=$lt_prog_compiler_wl
10687 pic_flag=$lt_prog_compiler_pic
10693 lt_save_allow_undefined_flag=$allow_undefined_flag
10694 allow_undefined_flag=
10695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10696 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10699 test $ac_status = 0; }
10701 lt_cv_archive_cmds_need_lc=no
10703 lt_cv_archive_cmds_need_lc=yes
10705 allow_undefined_flag=$lt_save_allow_undefined_flag
10707 cat conftest.err 1>&5
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10713 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10714 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10873 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10875 if test yes = "$GCC"; then
10877 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10878 *) lt_awk_arg='/^libraries:/' ;;
10881 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10882 *) lt_sed_strip_eq='s|=/|/|g' ;;
10884 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10885 case $lt_search_path_spec in
10887 # if the path contains ";" then we assume it to be the separator
10888 # otherwise default to the standard path separator (i.e. ":") - it is
10889 # assumed that no part of a normal pathname contains ";" but that should
10890 # okay in the real world where ";" in dirpaths is itself problematic.
10891 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10894 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10897 # Ok, now we have the path, separated by spaces, we can step through it
10898 # and add multilib dir if necessary...
10899 lt_tmp_lt_search_path_spec=
10900 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10901 # ...but if some path component already ends with the multilib dir we assume
10902 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10903 case "$lt_multi_os_dir; $lt_search_path_spec " in
10904 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10908 for lt_sys_path in $lt_search_path_spec; do
10909 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10910 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10911 elif test -n "$lt_multi_os_dir"; then
10912 test -d "$lt_sys_path" && \
10913 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10916 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10917 BEGIN {RS = " "; FS = "/|\n";} {
10920 for (lt_i = NF; lt_i > 0; lt_i--) {
10921 if ($lt_i != "" && $lt_i != ".") {
10922 if ($lt_i == "..") {
10925 if (lt_count == 0) {
10926 lt_foo = "/" $lt_i lt_foo;
10933 if (lt_foo != "") { lt_freq[lt_foo]++; }
10934 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10936 # AWK program above erroneously prepends '/' to C:/dos/paths
10939 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10940 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10942 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10944 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10946 library_names_spec=
10947 libname_spec='lib$name'
10951 postuninstall_cmds=
10955 shlibpath_overrides_runpath=unknown
10957 dynamic_linker="$host_os ld.so"
10958 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10959 need_lib_prefix=unknown
10960 hardcode_into_libs=no
10962 # when you set need_version to no, make sure it does not cause -set_version
10963 # flags to be left without arguments
10964 need_version=unknown
10970 version_type=linux # correct to gnu/linux during the next big refactor
10971 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10972 shlibpath_var=LIBPATH
10974 # AIX 3 has no versioning support, so we append a major version to the name.
10975 soname_spec='$libname$release$shared_ext$major'
10979 version_type=linux # correct to gnu/linux during the next big refactor
10982 hardcode_into_libs=yes
10983 if test ia64 = "$host_cpu"; then
10984 # AIX 5 supports IA64
10985 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10986 shlibpath_var=LD_LIBRARY_PATH
10988 # With GCC up to 2.95.x, collect2 would create an import file
10989 # for dependence libraries. The import file would start with
10990 # the line '#! .'. This would cause the generated library to
10991 # depend on '.', always an invalid library. This was fixed in
10992 # development snapshots of GCC prior to 3.0.
10994 aix4 | aix4.[01] | aix4.[01].*)
10995 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10997 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11000 can_build_shared=no
11004 # Using Import Files as archive members, it is possible to support
11005 # filename-based versioning of shared library archives on AIX. While
11006 # this would work for both with and without runtime linking, it will
11007 # prevent static linking of such archives. So we do filename-based
11008 # shared library versioning with .so extension only, which is used
11009 # when both runtime linking and shared linking is enabled.
11010 # Unfortunately, runtime linking may impact performance, so we do
11011 # not want this to be the default eventually. Also, we use the
11012 # versioned .so libs for executables only if there is the -brtl
11013 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11014 # To allow for filename-based versioning support, we need to create
11015 # libNAME.so.V as an archive file, containing:
11016 # *) an Import File, referring to the versioned filename of the
11017 # archive as well as the shared archive member, telling the
11018 # bitwidth (32 or 64) of that shared object, and providing the
11019 # list of exported symbols of that shared object, eventually
11020 # decorated with the 'weak' keyword
11021 # *) the shared object with the F_LOADONLY flag set, to really avoid
11022 # it being seen by the linker.
11023 # At run time we better use the real file rather than another symlink,
11024 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11026 case $with_aix_soname,$aix_use_runtimelinking in
11027 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11028 # soname into executable. Probably we can add versioning support to
11029 # collect2, so additional links can be useful in future.
11030 aix,yes) # traditional libtool
11031 dynamic_linker='AIX unversionable lib.so'
11032 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11033 # instead of lib<name>.a to let people know that these are not
11034 # typical AIX shared libraries.
11035 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11037 aix,no) # traditional AIX only
11038 dynamic_linker='AIX lib.a(lib.so.V)'
11039 # We preserve .a as extension for shared libraries through AIX4.2
11040 # and later when we are not doing run time linking.
11041 library_names_spec='$libname$release.a $libname.a'
11042 soname_spec='$libname$release$shared_ext$major'
11044 svr4,*) # full svr4 only
11045 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11046 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11047 # We do not specify a path in Import Files, so LIBPATH fires.
11048 shlibpath_overrides_runpath=yes
11050 *,yes) # both, prefer svr4
11051 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11052 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11053 # unpreferred sharedlib libNAME.a needs extra handling
11054 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11055 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11056 # We do not specify a path in Import Files, so LIBPATH fires.
11057 shlibpath_overrides_runpath=yes
11059 *,no) # both, prefer aix
11060 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11061 library_names_spec='$libname$release.a $libname.a'
11062 soname_spec='$libname$release$shared_ext$major'
11063 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11064 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11065 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11068 shlibpath_var=LIBPATH
11075 # Since July 2007 AmigaOS4 officially supports .so libraries.
11076 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11080 library_names_spec='$libname.ixlibrary $libname.a'
11081 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11082 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11088 library_names_spec='$libname$shared_ext'
11089 dynamic_linker="$host_os ld.so"
11090 shlibpath_var=LIBRARY_PATH
11094 version_type=linux # correct to gnu/linux during the next big refactor
11096 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11097 soname_spec='$libname$release$shared_ext$major'
11098 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11099 shlibpath_var=LD_LIBRARY_PATH
11100 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11101 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11102 # the default ld.so.conf also contains /usr/contrib/lib and
11103 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11104 # libtool to hard-code these into programs
11107 cygwin* | mingw* | pw32* | cegcc*)
11108 version_type=windows
11113 case $GCC,$cc_basename in
11116 library_names_spec='$libname.dll.a'
11117 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11118 postinstall_cmds='base_file=`basename \$file`~
11119 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11120 dldir=$destdir/`dirname \$dlpath`~
11121 test -d \$dldir || mkdir -p \$dldir~
11122 $install_prog $dir/$dlname \$dldir/$dlname~
11123 chmod a+x \$dldir/$dlname~
11124 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11125 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11127 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11128 dlpath=$dir/\$dldll~
11130 shlibpath_overrides_runpath=yes
11134 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11135 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11137 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11140 # MinGW DLLs use traditional 'lib' prefix
11141 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11144 # pw32 DLLs use 'pw' prefix rather than 'lib'
11145 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11148 dynamic_linker='Win32 ld.exe'
11153 libname_spec='$name'
11154 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11155 library_names_spec='$libname.dll.lib'
11159 sys_lib_search_path_spec=
11162 for lt_path in $LIB
11165 # Let DOS variable expansion print the short 8.3 style file name.
11166 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11167 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11170 # Convert to MSYS style.
11171 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11174 # Convert to unix form, then to dos form, then back to unix form
11175 # but this time dos style (no spaces!) so that the unix form looks
11176 # like /cygdrive/c/PROGRA~1:/cygdr...
11177 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11178 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11179 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11182 sys_lib_search_path_spec=$LIB
11183 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11184 # It is most probably a Windows format PATH.
11185 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11187 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11189 # FIXME: find the short name or the path components, as spaces are
11190 # common. (e.g. "Program Files" -> "PROGRA~1")
11194 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11195 postinstall_cmds='base_file=`basename \$file`~
11196 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11197 dldir=$destdir/`dirname \$dlpath`~
11198 test -d \$dldir || mkdir -p \$dldir~
11199 $install_prog $dir/$dlname \$dldir/$dlname'
11200 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11201 dlpath=$dir/\$dldll~
11203 shlibpath_overrides_runpath=yes
11204 dynamic_linker='Win32 link.exe'
11208 # Assume MSVC wrapper
11209 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11210 dynamic_linker='Win32 ld.exe'
11213 # FIXME: first we should search . and the directory the executable is in
11217 darwin* | rhapsody*)
11218 dynamic_linker="$host_os dyld"
11219 version_type=darwin
11222 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11223 soname_spec='$libname$release$major$shared_ext'
11224 shlibpath_overrides_runpath=yes
11225 shlibpath_var=DYLD_LIBRARY_PATH
11226 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11228 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11229 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11233 version_type=linux # correct to gnu/linux during the next big refactor
11236 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11237 soname_spec='$libname$release$shared_ext$major'
11238 shlibpath_var=LD_LIBRARY_PATH
11241 freebsd* | dragonfly*)
11242 # DragonFly does not have aout. When/if they implement a new
11243 # versioning mechanism, adjust this.
11244 if test -x /usr/bin/objformat; then
11245 objformat=`/usr/bin/objformat`
11248 freebsd[23].*) objformat=aout ;;
11249 *) objformat=elf ;;
11252 version_type=freebsd-$objformat
11253 case $version_type in
11255 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11256 soname_spec='$libname$release$shared_ext$major'
11261 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11265 shlibpath_var=LD_LIBRARY_PATH
11268 shlibpath_overrides_runpath=yes
11270 freebsd3.[01]* | freebsdelf3.[01]*)
11271 shlibpath_overrides_runpath=yes
11272 hardcode_into_libs=yes
11274 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11275 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11276 shlibpath_overrides_runpath=no
11277 hardcode_into_libs=yes
11279 *) # from 4.6 on, and DragonFly
11280 shlibpath_overrides_runpath=yes
11281 hardcode_into_libs=yes
11287 version_type=linux # correct to gnu/linux during the next big refactor
11290 dynamic_linker="$host_os runtime_loader"
11291 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11292 soname_spec='$libname$release$shared_ext$major'
11293 shlibpath_var=LIBRARY_PATH
11294 shlibpath_overrides_runpath=no
11295 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11296 hardcode_into_libs=yes
11299 hpux9* | hpux10* | hpux11*)
11300 # Give a soname corresponding to the major version so that dld.sl refuses to
11301 # link against other versions.
11308 hardcode_into_libs=yes
11309 dynamic_linker="$host_os dld.so"
11310 shlibpath_var=LD_LIBRARY_PATH
11311 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11312 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11313 soname_spec='$libname$release$shared_ext$major'
11314 if test 32 = "$HPUX_IA64_MODE"; then
11315 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11316 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11318 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11319 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11324 hardcode_into_libs=yes
11325 dynamic_linker="$host_os dld.sl"
11326 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11327 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11328 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11329 soname_spec='$libname$release$shared_ext$major'
11330 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11335 dynamic_linker="$host_os dld.sl"
11336 shlibpath_var=SHLIB_PATH
11337 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11338 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11339 soname_spec='$libname$release$shared_ext$major'
11342 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11343 postinstall_cmds='chmod 555 $lib'
11344 # or fails outright, so override atomically:
11345 install_override_mode=555
11349 version_type=linux # correct to gnu/linux during the next big refactor
11352 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11353 soname_spec='$libname$release$shared_ext$major'
11354 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11355 shlibpath_var=LD_LIBRARY_PATH
11356 shlibpath_overrides_runpath=no
11357 hardcode_into_libs=yes
11360 irix5* | irix6* | nonstopux*)
11362 nonstopux*) version_type=nonstopux ;;
11364 if test yes = "$lt_cv_prog_gnu_ld"; then
11365 version_type=linux # correct to gnu/linux during the next big refactor
11372 soname_spec='$libname$release$shared_ext$major'
11373 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11375 irix5* | nonstopux*)
11376 libsuff= shlibsuff=
11379 case $LD in # libtool.m4 will add one of these switches to LD
11380 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11381 libsuff= shlibsuff= libmagic=32-bit;;
11382 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11383 libsuff=32 shlibsuff=N32 libmagic=N32;;
11384 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11385 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11386 *) libsuff= shlibsuff= libmagic=never-match;;
11390 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11391 shlibpath_overrides_runpath=no
11392 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11393 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11394 hardcode_into_libs=yes
11397 # No shared lib support for Linux oldld, aout, or coff.
11398 linux*oldld* | linux*aout* | linux*coff*)
11403 version_type=none # Android doesn't support versioned libraries.
11406 library_names_spec='$libname$release$shared_ext'
11407 soname_spec='$libname$release$shared_ext'
11409 shlibpath_var=LD_LIBRARY_PATH
11410 shlibpath_overrides_runpath=yes
11412 # This implies no fast_install, which is unacceptable.
11413 # Some rework will be needed to allow for fast_install
11414 # before this can be enabled.
11415 hardcode_into_libs=yes
11417 dynamic_linker='Android linker'
11418 # Don't embed -rpath directories since the linker doesn't support them.
11419 hardcode_libdir_flag_spec='-L$libdir'
11422 # This must be glibc/ELF.
11423 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11424 version_type=linux # correct to gnu/linux during the next big refactor
11427 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11428 soname_spec='$libname$release$shared_ext$major'
11429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11430 shlibpath_var=LD_LIBRARY_PATH
11431 shlibpath_overrides_runpath=no
11433 # Some binutils ld are patched to set DT_RUNPATH
11434 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11435 $as_echo_n "(cached) " >&6
11437 lt_cv_shlibpath_overrides_runpath=no
11438 save_LDFLAGS=$LDFLAGS
11439 save_libdir=$libdir
11440 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11441 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h. */
11453 if ac_fn_c_try_link "$LINENO"; then :
11454 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11455 lt_cv_shlibpath_overrides_runpath=yes
11458 rm -f core conftest.err conftest.$ac_objext \
11459 conftest$ac_exeext conftest.$ac_ext
11460 LDFLAGS=$save_LDFLAGS
11461 libdir=$save_libdir
11465 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11467 # This implies no fast_install, which is unacceptable.
11468 # Some rework will be needed to allow for fast_install
11469 # before this can be enabled.
11470 hardcode_into_libs=yes
11472 # Add ABI-specific directories to the system library path.
11473 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11475 # Ideally, we could use ldconfig to report *all* directores which are
11476 # searched for libraries, however this is still not possible. Aside from not
11477 # being certain /sbin/ldconfig is available, command
11478 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11479 # even though it is searched at run-time. Try to do the best guess by
11480 # appending ld.so.conf contents (and includes) to the search path.
11481 if test -f /etc/ld.so.conf; then
11482 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11483 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11486 # We used to test for /lib/ld.so.1 and disable shared libraries on
11487 # powerpc, because MkLinux only supported shared libraries with the
11488 # GNU dynamic linker. Since this was broken with cross compilers,
11489 # most powerpc-linux boxes support dynamic linking these days and
11490 # people can always --disable-shared, the test was removed, and we
11491 # assume the GNU/Linux dynamic linker is in use.
11492 dynamic_linker='GNU/Linux ld.so'
11499 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11500 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11502 dynamic_linker='NetBSD (a.out) ld.so'
11504 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11505 soname_spec='$libname$release$shared_ext$major'
11506 dynamic_linker='NetBSD ld.elf_so'
11508 shlibpath_var=LD_LIBRARY_PATH
11509 shlibpath_overrides_runpath=yes
11510 hardcode_into_libs=yes
11514 version_type=linux # correct to gnu/linux during the next big refactor
11515 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11516 shlibpath_var=LD_LIBRARY_PATH
11517 shlibpath_overrides_runpath=yes
11524 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11525 soname_spec='$libname$release$shared_ext$major'
11526 shlibpath_var=LD_LIBRARY_PATH
11527 shlibpath_overrides_runpath=no
11528 hardcode_into_libs=yes
11529 dynamic_linker='ldqnx.so'
11532 openbsd* | bitrig*)
11534 sys_lib_dlsearch_path_spec=/usr/lib
11536 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11541 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11543 shlibpath_var=LD_LIBRARY_PATH
11544 shlibpath_overrides_runpath=yes
11548 libname_spec='$name'
11549 version_type=windows
11553 # OS/2 can only load a DLL with a base name of 8 characters or less.
11554 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11555 v=$($ECHO $release$versuffix | tr -d .-);
11556 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11557 $ECHO $n$v`$shared_ext'
11558 library_names_spec='${libname}_dll.$libext'
11559 dynamic_linker='OS/2 ld.exe'
11560 shlibpath_var=BEGINLIBPATH
11561 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11562 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11563 postinstall_cmds='base_file=`basename \$file`~
11564 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11565 dldir=$destdir/`dirname \$dlpath`~
11566 test -d \$dldir || mkdir -p \$dldir~
11567 $install_prog $dir/$dlname \$dldir/$dlname~
11568 chmod a+x \$dldir/$dlname~
11569 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11570 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11572 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11573 dlpath=$dir/\$dldll~
11577 osf3* | osf4* | osf5*)
11581 soname_spec='$libname$release$shared_ext$major'
11582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11583 shlibpath_var=LD_LIBRARY_PATH
11584 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11585 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11593 version_type=linux # correct to gnu/linux during the next big refactor
11596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11597 soname_spec='$libname$release$shared_ext$major'
11598 shlibpath_var=LD_LIBRARY_PATH
11599 shlibpath_overrides_runpath=yes
11600 hardcode_into_libs=yes
11601 # ldd complains unless libraries are executable
11602 postinstall_cmds='chmod +x $lib'
11607 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11608 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11609 shlibpath_var=LD_LIBRARY_PATH
11610 shlibpath_overrides_runpath=yes
11611 if test yes = "$with_gnu_ld"; then
11618 version_type=linux # correct to gnu/linux during the next big refactor
11619 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11620 soname_spec='$libname$release$shared_ext$major'
11621 shlibpath_var=LD_LIBRARY_PATH
11622 case $host_vendor in
11624 shlibpath_overrides_runpath=no
11626 runpath_var=LD_RUN_PATH
11634 shlibpath_overrides_runpath=no
11635 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11641 if test -d /usr/nec; then
11642 version_type=linux # correct to gnu/linux during the next big refactor
11643 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11644 soname_spec='$libname$shared_ext.$major'
11645 shlibpath_var=LD_LIBRARY_PATH
11649 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11654 soname_spec='$libname$release$shared_ext$major'
11655 shlibpath_var=LD_LIBRARY_PATH
11656 shlibpath_overrides_runpath=yes
11657 hardcode_into_libs=yes
11658 if test yes = "$with_gnu_ld"; then
11659 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11661 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11664 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11668 sys_lib_dlsearch_path_spec='/usr/lib'
11672 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11673 version_type=linux # correct to gnu/linux during the next big refactor
11676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11677 shlibpath_var=LD_LIBRARY_PATH
11678 shlibpath_overrides_runpath=no
11679 hardcode_into_libs=yes
11683 version_type=linux # correct to gnu/linux during the next big refactor
11684 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11685 soname_spec='$libname$release$shared_ext$major'
11686 shlibpath_var=LD_LIBRARY_PATH
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11694 $as_echo "$dynamic_linker" >&6; }
11695 test no = "$dynamic_linker" && can_build_shared=no
11697 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11698 if test yes = "$GCC"; then
11699 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11702 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11703 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11706 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11707 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11710 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11711 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11713 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11714 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11716 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11717 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11816 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11818 if test -n "$hardcode_libdir_flag_spec" ||
11819 test -n "$runpath_var" ||
11820 test yes = "$hardcode_automatic"; then
11822 # We can hardcode non-existent directories.
11823 if test no != "$hardcode_direct" &&
11824 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11825 # have to relink, otherwise we might link with an installed library
11826 # when we should be linking with a yet-to-be-installed one
11827 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11828 test no != "$hardcode_minus_L"; then
11829 # Linking always hardcodes the temporary library directory.
11830 hardcode_action=relink
11832 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11833 hardcode_action=immediate
11836 # We cannot hardcode anything, or else we can only hardcode existing
11838 hardcode_action=unsupported
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11841 $as_echo "$hardcode_action" >&6; }
11843 if test relink = "$hardcode_action" ||
11844 test yes = "$inherit_rpath"; then
11845 # Fast installation is not supported
11846 enable_fast_install=no
11847 elif test yes = "$shlibpath_overrides_runpath" ||
11848 test no = "$enable_shared"; then
11849 # Fast installation is not necessary
11850 enable_fast_install=needless
11858 if test yes != "$enable_dlopen"; then
11859 enable_dlopen=unknown
11860 enable_dlopen_self=unknown
11861 enable_dlopen_self_static=unknown
11868 lt_cv_dlopen=load_add_on
11870 lt_cv_dlopen_self=yes
11873 mingw* | pw32* | cegcc*)
11874 lt_cv_dlopen=LoadLibrary
11879 lt_cv_dlopen=dlopen
11884 # if libdl is installed we need to link against it
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11886 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11887 if ${ac_cv_lib_dl_dlopen+:} false; then :
11888 $as_echo_n "(cached) " >&6
11890 ac_check_lib_save_LIBS=$LIBS
11892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11893 /* end confdefs.h. */
11895 /* Override any GCC internal prototype to avoid an error.
11896 Use char because int might match the return type of a GCC
11897 builtin and then its argument prototype would still apply. */
11910 if ac_fn_c_try_link "$LINENO"; then :
11911 ac_cv_lib_dl_dlopen=yes
11913 ac_cv_lib_dl_dlopen=no
11915 rm -f core conftest.err conftest.$ac_objext \
11916 conftest$ac_exeext conftest.$ac_ext
11917 LIBS=$ac_check_lib_save_LIBS
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11920 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11921 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11922 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11927 lt_cv_dlopen_self=yes
11934 # Don't try to run any link tests for TPF. We know it's impossible
11935 # because TPF is a cross-compiler, and we know how we open DSOs.
11936 lt_cv_dlopen=dlopen
11938 lt_cv_dlopen_self=no
11942 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11943 if test "x$ac_cv_func_shl_load" = xyes; then :
11944 lt_cv_dlopen=shl_load
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11947 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11948 if ${ac_cv_lib_dld_shl_load+:} false; then :
11949 $as_echo_n "(cached) " >&6
11951 ac_check_lib_save_LIBS=$LIBS
11953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954 /* end confdefs.h. */
11956 /* Override any GCC internal prototype to avoid an error.
11957 Use char because int might match the return type of a GCC
11958 builtin and then its argument prototype would still apply. */
11966 return shl_load ();
11971 if ac_fn_c_try_link "$LINENO"; then :
11972 ac_cv_lib_dld_shl_load=yes
11974 ac_cv_lib_dld_shl_load=no
11976 rm -f core conftest.err conftest.$ac_objext \
11977 conftest$ac_exeext conftest.$ac_ext
11978 LIBS=$ac_check_lib_save_LIBS
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11981 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11982 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11983 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11985 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11986 if test "x$ac_cv_func_dlopen" = xyes; then :
11987 lt_cv_dlopen=dlopen
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11990 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11991 if ${ac_cv_lib_dl_dlopen+:} false; then :
11992 $as_echo_n "(cached) " >&6
11994 ac_check_lib_save_LIBS=$LIBS
11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h. */
11999 /* Override any GCC internal prototype to avoid an error.
12000 Use char because int might match the return type of a GCC
12001 builtin and then its argument prototype would still apply. */
12014 if ac_fn_c_try_link "$LINENO"; then :
12015 ac_cv_lib_dl_dlopen=yes
12017 ac_cv_lib_dl_dlopen=no
12019 rm -f core conftest.err conftest.$ac_objext \
12020 conftest$ac_exeext conftest.$ac_ext
12021 LIBS=$ac_check_lib_save_LIBS
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12024 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12025 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12026 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12029 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12030 if ${ac_cv_lib_svld_dlopen+:} false; then :
12031 $as_echo_n "(cached) " >&6
12033 ac_check_lib_save_LIBS=$LIBS
12034 LIBS="-lsvld $LIBS"
12035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h. */
12038 /* Override any GCC internal prototype to avoid an error.
12039 Use char because int might match the return type of a GCC
12040 builtin and then its argument prototype would still apply. */
12053 if ac_fn_c_try_link "$LINENO"; then :
12054 ac_cv_lib_svld_dlopen=yes
12056 ac_cv_lib_svld_dlopen=no
12058 rm -f core conftest.err conftest.$ac_objext \
12059 conftest$ac_exeext conftest.$ac_ext
12060 LIBS=$ac_check_lib_save_LIBS
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12063 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12064 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12065 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12068 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12069 if ${ac_cv_lib_dld_dld_link+:} false; then :
12070 $as_echo_n "(cached) " >&6
12072 ac_check_lib_save_LIBS=$LIBS
12074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12075 /* end confdefs.h. */
12077 /* Override any GCC internal prototype to avoid an error.
12078 Use char because int might match the return type of a GCC
12079 builtin and then its argument prototype would still apply. */
12087 return dld_link ();
12092 if ac_fn_c_try_link "$LINENO"; then :
12093 ac_cv_lib_dld_dld_link=yes
12095 ac_cv_lib_dld_dld_link=no
12097 rm -f core conftest.err conftest.$ac_objext \
12098 conftest$ac_exeext conftest.$ac_ext
12099 LIBS=$ac_check_lib_save_LIBS
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12102 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12103 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12104 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12125 if test no = "$lt_cv_dlopen"; then
12131 case $lt_cv_dlopen in
12133 save_CPPFLAGS=$CPPFLAGS
12134 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12136 save_LDFLAGS=$LDFLAGS
12137 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12140 LIBS="$lt_cv_dlopen_libs $LIBS"
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12143 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12144 if ${lt_cv_dlopen_self+:} false; then :
12145 $as_echo_n "(cached) " >&6
12147 if test yes = "$cross_compiling"; then :
12148 lt_cv_dlopen_self=cross
12150 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12151 lt_status=$lt_dlunknown
12152 cat > conftest.$ac_ext <<_LT_EOF
12153 #line $LINENO "configure"
12154 #include "confdefs.h"
12163 # define LT_DLGLOBAL RTLD_GLOBAL
12166 # define LT_DLGLOBAL DL_GLOBAL
12168 # define LT_DLGLOBAL 0
12172 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12173 find out it does not work in some platform. */
12174 #ifndef LT_DLLAZY_OR_NOW
12176 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12179 # define LT_DLLAZY_OR_NOW DL_LAZY
12182 # define LT_DLLAZY_OR_NOW RTLD_NOW
12185 # define LT_DLLAZY_OR_NOW DL_NOW
12187 # define LT_DLLAZY_OR_NOW 0
12194 /* When -fvisibility=hidden is used, assume the code has been annotated
12195 correspondingly for the symbols needed. */
12196 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12197 int fnord () __attribute__((visibility("default")));
12200 int fnord () { return 42; }
12203 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12204 int status = $lt_dlunknown;
12208 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12211 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12212 else puts (dlerror ());
12214 /* dlclose (self); */
12222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12223 (eval $ac_link) 2>&5
12225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12226 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12227 (./conftest; exit; ) >&5 2>/dev/null
12229 case x$lt_status in
12230 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12231 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12232 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12235 # compilation failed
12236 lt_cv_dlopen_self=no
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12244 $as_echo "$lt_cv_dlopen_self" >&6; }
12246 if test yes = "$lt_cv_dlopen_self"; then
12247 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12249 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12250 if ${lt_cv_dlopen_self_static+:} false; then :
12251 $as_echo_n "(cached) " >&6
12253 if test yes = "$cross_compiling"; then :
12254 lt_cv_dlopen_self_static=cross
12256 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12257 lt_status=$lt_dlunknown
12258 cat > conftest.$ac_ext <<_LT_EOF
12259 #line $LINENO "configure"
12260 #include "confdefs.h"
12269 # define LT_DLGLOBAL RTLD_GLOBAL
12272 # define LT_DLGLOBAL DL_GLOBAL
12274 # define LT_DLGLOBAL 0
12278 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12279 find out it does not work in some platform. */
12280 #ifndef LT_DLLAZY_OR_NOW
12282 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12285 # define LT_DLLAZY_OR_NOW DL_LAZY
12288 # define LT_DLLAZY_OR_NOW RTLD_NOW
12291 # define LT_DLLAZY_OR_NOW DL_NOW
12293 # define LT_DLLAZY_OR_NOW 0
12300 /* When -fvisibility=hidden is used, assume the code has been annotated
12301 correspondingly for the symbols needed. */
12302 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12303 int fnord () __attribute__((visibility("default")));
12306 int fnord () { return 42; }
12309 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12310 int status = $lt_dlunknown;
12314 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12317 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12318 else puts (dlerror ());
12320 /* dlclose (self); */
12328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12329 (eval $ac_link) 2>&5
12331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12332 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12333 (./conftest; exit; ) >&5 2>/dev/null
12335 case x$lt_status in
12336 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12337 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12338 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12341 # compilation failed
12342 lt_cv_dlopen_self_static=no
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12350 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12353 CPPFLAGS=$save_CPPFLAGS
12354 LDFLAGS=$save_LDFLAGS
12359 case $lt_cv_dlopen_self in
12360 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12361 *) enable_dlopen_self=unknown ;;
12364 case $lt_cv_dlopen_self_static in
12365 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12366 *) enable_dlopen_self_static=unknown ;;
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12389 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12390 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12391 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12392 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12394 $as_echo "yes" >&6; }
12396 # FIXME - insert some real tests, host_os isn't really good enough
12399 if test -n "$STRIP"; then
12400 striplib="$STRIP -x"
12401 old_striplib="$STRIP -S"
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12403 $as_echo "yes" >&6; }
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12406 $as_echo "no" >&6; }
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411 $as_echo "no" >&6; }
12427 # Report what library types will actually be built
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12429 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12431 $as_echo "$can_build_shared" >&6; }
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12434 $as_echo_n "checking whether to build shared libraries... " >&6; }
12435 test no = "$can_build_shared" && enable_shared=no
12437 # On AIX, shared libraries and static libraries use the same namespace, and
12438 # are all built from PIC.
12441 test yes = "$enable_shared" && enable_static=no
12442 if test -n "$RANLIB"; then
12443 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12444 postinstall_cmds='$RANLIB $lib'
12449 if test ia64 != "$host_cpu"; then
12450 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12451 yes,aix,yes) ;; # shared object as lib.so file only
12452 yes,svr4,*) ;; # shared object as lib.so archive member only
12453 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12459 $as_echo "$enable_shared" >&6; }
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12462 $as_echo_n "checking whether to build static libraries... " >&6; }
12463 # Make sure either enable_shared or enable_static is yes.
12464 test yes = "$enable_shared" || enable_static=yes
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12466 $as_echo "$enable_static" >&6; }
12473 ac_cpp='$CPP $CPPFLAGS'
12474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12494 ac_config_commands="$ac_config_commands libtool"
12499 # Only expand once:
12510 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12511 if test -n "$ac_tool_prefix"; then
12512 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12513 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515 $as_echo_n "checking for $ac_word... " >&6; }
12516 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12517 $as_echo_n "(cached) " >&6
12519 case $PKG_CONFIG in
12521 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12525 for as_dir in $PATH
12528 test -z "$as_dir" && as_dir=.
12529 for ac_exec_ext in '' $ac_executable_extensions; do
12530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12531 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12542 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12543 if test -n "$PKG_CONFIG"; then
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12545 $as_echo "$PKG_CONFIG" >&6; }
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12548 $as_echo "no" >&6; }
12553 if test -z "$ac_cv_path_PKG_CONFIG"; then
12554 ac_pt_PKG_CONFIG=$PKG_CONFIG
12555 # Extract the first word of "pkg-config", so it can be a program name with args.
12556 set dummy pkg-config; ac_word=$2
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12558 $as_echo_n "checking for $ac_word... " >&6; }
12559 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12560 $as_echo_n "(cached) " >&6
12562 case $ac_pt_PKG_CONFIG in
12564 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12568 for as_dir in $PATH
12571 test -z "$as_dir" && as_dir=.
12572 for ac_exec_ext in '' $ac_executable_extensions; do
12573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12574 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12585 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12586 if test -n "$ac_pt_PKG_CONFIG"; then
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12588 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12591 $as_echo "no" >&6; }
12594 if test "x$ac_pt_PKG_CONFIG" = x; then
12597 case $cross_compiling:$ac_tool_warned in
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12601 ac_tool_warned=yes ;;
12603 PKG_CONFIG=$ac_pt_PKG_CONFIG
12606 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12610 if test -n "$PKG_CONFIG"; then
12611 _pkg_min_version=0.9.0
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12613 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12614 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12616 $as_echo "yes" >&6; }
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619 $as_echo "no" >&6; }
12624 for ac_prog in flex lex
12626 # Extract the first word of "$ac_prog", so it can be a program name with args.
12627 set dummy $ac_prog; ac_word=$2
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12629 $as_echo_n "checking for $ac_word... " >&6; }
12630 if ${ac_cv_prog_LEX+:} false; then :
12631 $as_echo_n "(cached) " >&6
12633 if test -n "$LEX"; then
12634 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12637 for as_dir in $PATH
12640 test -z "$as_dir" && as_dir=.
12641 for ac_exec_ext in '' $ac_executable_extensions; do
12642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12643 ac_cv_prog_LEX="$ac_prog"
12644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12653 LEX=$ac_cv_prog_LEX
12654 if test -n "$LEX"; then
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12656 $as_echo "$LEX" >&6; }
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659 $as_echo "no" >&6; }
12663 test -n "$LEX" && break
12665 test -n "$LEX" || LEX=":"
12667 if test "x$LEX" != "x:"; then
12668 cat >conftest.l <<_ACEOF
12674 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12675 yyless ((input () != 0)); }
12676 f { unput (yytext[0]); }
12677 . { BEGIN INITIAL; }
12679 #ifdef YYTEXT_POINTER
12680 extern char *yytext;
12685 return ! yylex () + ! yywrap ();
12688 { { ac_try="$LEX conftest.l"
12689 case "(($ac_try" in
12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12694 $as_echo "$ac_try_echo"; } >&5
12695 (eval "$LEX conftest.l") 2>&5
12697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12698 test $ac_status = 0; }
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12700 $as_echo_n "checking lex output file root... " >&6; }
12701 if ${ac_cv_prog_lex_root+:} false; then :
12702 $as_echo_n "(cached) " >&6
12705 if test -f lex.yy.c; then
12706 ac_cv_prog_lex_root=lex.yy
12707 elif test -f lexyy.c; then
12708 ac_cv_prog_lex_root=lexyy
12710 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12714 $as_echo "$ac_cv_prog_lex_root" >&6; }
12715 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12717 if test -z "${LEXLIB+set}"; then
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12719 $as_echo_n "checking lex library... " >&6; }
12720 if ${ac_cv_lib_lex+:} false; then :
12721 $as_echo_n "(cached) " >&6
12725 ac_cv_lib_lex='none needed'
12726 for ac_lib in '' -lfl -ll; do
12727 LIBS="$ac_lib $ac_save_LIBS"
12728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12729 /* end confdefs.h. */
12730 `cat $LEX_OUTPUT_ROOT.c`
12732 if ac_fn_c_try_link "$LINENO"; then :
12733 ac_cv_lib_lex=$ac_lib
12735 rm -f core conftest.err conftest.$ac_objext \
12736 conftest$ac_exeext conftest.$ac_ext
12737 test "$ac_cv_lib_lex" != 'none needed' && break
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12743 $as_echo "$ac_cv_lib_lex" >&6; }
12744 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12749 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12750 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12751 $as_echo_n "(cached) " >&6
12753 # POSIX says lex can declare yytext either as a pointer or an array; the
12754 # default is implementation-dependent. Figure out which it is, since
12755 # not all implementations provide the %pointer and %array declarations.
12756 ac_cv_prog_lex_yytext_pointer=no
12758 LIBS="$LEXLIB $ac_save_LIBS"
12759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h. */
12762 #define YYTEXT_POINTER 1
12763 `cat $LEX_OUTPUT_ROOT.c`
12765 if ac_fn_c_try_link "$LINENO"; then :
12766 ac_cv_prog_lex_yytext_pointer=yes
12768 rm -f core conftest.err conftest.$ac_objext \
12769 conftest$ac_exeext conftest.$ac_ext
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12774 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12775 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12777 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12780 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12783 if test "$LEX" = :; then
12784 as_fn_error $? "flex not found but required" "$LINENO" 5
12787 for ac_prog in 'bison -y'
12789 # Extract the first word of "$ac_prog", so it can be a program name with args.
12790 set dummy $ac_prog; ac_word=$2
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12792 $as_echo_n "checking for $ac_word... " >&6; }
12793 if ${ac_cv_prog_YACC+:} false; then :
12794 $as_echo_n "(cached) " >&6
12796 if test -n "$YACC"; then
12797 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12800 for as_dir in $PATH
12803 test -z "$as_dir" && as_dir=.
12804 for ac_exec_ext in '' $ac_executable_extensions; do
12805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12806 ac_cv_prog_YACC="$ac_prog"
12807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12816 YACC=$ac_cv_prog_YACC
12817 if test -n "$YACC"; then
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12819 $as_echo "$YACC" >&6; }
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12822 $as_echo "no" >&6; }
12826 test -n "$YACC" && break
12828 test -n "$YACC" || YACC=":"
12830 if test "$YACC" = :; then
12831 as_fn_error $? "bison not found but required" "$LINENO" 5
12839 case " ${result} " in
12840 *[\ \ ]${flag}[\ \ ]*) ;;
12841 *) result="${flag} ${result}" ;;
12847 if test "$GCC" = "yes"; then
12848 for flag in -Wall -Wchar-subscripts -Wmissing-declarations \
12849 -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align \
12850 -Wsign-compare -fno-strict-aliasing;
12852 CFLAGS="$(ensureflag $flag $CFLAGS)"
12856 # Checks for libraries.
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12858 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12859 if ${ac_cv_lib_dl_dlopen+:} false; then :
12860 $as_echo_n "(cached) " >&6
12862 ac_check_lib_save_LIBS=$LIBS
12864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12865 /* end confdefs.h. */
12867 /* Override any GCC internal prototype to avoid an error.
12868 Use char because int might match the return type of a GCC
12869 builtin and then its argument prototype would still apply. */
12882 if ac_fn_c_try_link "$LINENO"; then :
12883 ac_cv_lib_dl_dlopen=yes
12885 ac_cv_lib_dl_dlopen=no
12887 rm -f core conftest.err conftest.$ac_objext \
12888 conftest$ac_exeext conftest.$ac_ext
12889 LIBS=$ac_check_lib_save_LIBS
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12892 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12893 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12894 cat >>confdefs.h <<_ACEOF
12895 #define HAVE_LIBDL 1
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the suffix of shared libraries" >&5
12904 $as_echo_n "checking for the suffix of shared libraries... " >&6; }
12905 # libtool variables are immediately available since 2.0, prior to that we need
12906 # to call libtool --config explicitly
12907 if test "x$shrext_cmds" = x; then
12908 shrext_cmds=`SED=$SED ./libtool --config | grep '^shrext_cmds='`
12911 eval std_shrext=$shrext_cmds
12912 # chop the initial dot
12913 SHLIB_SUFFIX=${std_shrext#.}
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: .$SHLIB_SUFFIX" >&5
12915 $as_echo ".$SHLIB_SUFFIX" >&6; }
12916 # any reason it may fail?
12917 if test "x$SHLIB_SUFFIX" = x; then
12918 as_fn_error $? "Cannot determine shared library suffix from libtool" "$LINENO" 5
12921 cat >>confdefs.h <<_ACEOF
12922 #define SHLIB_SUFFIX "$SHLIB_SUFFIX"
12926 # Copied from dbus configure.in
12927 #### find the actual value for $prefix that we'll end up with
12928 ## (I know this is broken and should be done in the Makefile, but
12929 ## that's a major pain and almost nobody actually seems to care)
12931 EXP_VAR=EXPANDED_LOCALSTATEDIR
12932 FROM_VAR="$localstatedir"
12934 prefix_save=$prefix
12935 exec_prefix_save=$exec_prefix
12937 if test "x$prefix" = "xNONE"; then
12938 prefix="$ac_default_prefix"
12940 if test "x$exec_prefix" = "xNONE"; then
12941 exec_prefix=$prefix
12944 full_var="$FROM_VAR"
12946 new_full_var="`eval echo $full_var`"
12947 if test "x$new_full_var" = "x$full_var"; then break; fi
12948 full_var=$new_full_var
12951 full_var=$new_full_var
12952 EXPANDED_LOCALSTATEDIR="$full_var"
12955 prefix=$prefix_save
12956 exec_prefix=$exec_prefix_save
12959 EXP_VAR=EXPANDED_SYSCONFDIR
12960 FROM_VAR="$sysconfdir"
12962 prefix_save=$prefix
12963 exec_prefix_save=$exec_prefix
12965 if test "x$prefix" = "xNONE"; then
12966 prefix="$ac_default_prefix"
12968 if test "x$exec_prefix" = "xNONE"; then
12969 exec_prefix=$prefix
12972 full_var="$FROM_VAR"
12974 new_full_var="`eval echo $full_var`"
12975 if test "x$new_full_var" = "x$full_var"; then break; fi
12976 full_var=$new_full_var
12979 full_var=$new_full_var
12980 EXPANDED_SYSCONFDIR="$full_var"
12983 prefix=$prefix_save
12984 exec_prefix=$exec_prefix_save
12987 EXP_VAR=EXPANDED_BINDIR
12990 prefix_save=$prefix
12991 exec_prefix_save=$exec_prefix
12993 if test "x$prefix" = "xNONE"; then
12994 prefix="$ac_default_prefix"
12996 if test "x$exec_prefix" = "xNONE"; then
12997 exec_prefix=$prefix
13000 full_var="$FROM_VAR"
13002 new_full_var="`eval echo $full_var`"
13003 if test "x$new_full_var" = "x$full_var"; then break; fi
13004 full_var=$new_full_var
13007 full_var=$new_full_var
13008 EXPANDED_BINDIR="$full_var"
13011 prefix=$prefix_save
13012 exec_prefix=$exec_prefix_save
13015 EXP_VAR=EXPANDED_LIBDIR
13018 prefix_save=$prefix
13019 exec_prefix_save=$exec_prefix
13021 if test "x$prefix" = "xNONE"; then
13022 prefix="$ac_default_prefix"
13024 if test "x$exec_prefix" = "xNONE"; then
13025 exec_prefix=$prefix
13028 full_var="$FROM_VAR"
13030 new_full_var="`eval echo $full_var`"
13031 if test "x$new_full_var" = "x$full_var"; then break; fi
13032 full_var=$new_full_var
13035 full_var=$new_full_var
13036 EXPANDED_LIBDIR="$full_var"
13039 prefix=$prefix_save
13040 exec_prefix=$exec_prefix_save
13043 EXP_VAR=EXPANDED_LIBEXECDIR
13044 FROM_VAR="$libexecdir"
13046 prefix_save=$prefix
13047 exec_prefix_save=$exec_prefix
13049 if test "x$prefix" = "xNONE"; then
13050 prefix="$ac_default_prefix"
13052 if test "x$exec_prefix" = "xNONE"; then
13053 exec_prefix=$prefix
13056 full_var="$FROM_VAR"
13058 new_full_var="`eval echo $full_var`"
13059 if test "x$new_full_var" = "x$full_var"; then break; fi
13060 full_var=$new_full_var
13063 full_var=$new_full_var
13064 EXPANDED_LIBEXECDIR="$full_var"
13067 prefix=$prefix_save
13068 exec_prefix=$exec_prefix_save
13071 EXP_VAR=EXPANDED_DATADIR
13072 FROM_VAR="$datadir"
13074 prefix_save=$prefix
13075 exec_prefix_save=$exec_prefix
13077 if test "x$prefix" = "xNONE"; then
13078 prefix="$ac_default_prefix"
13080 if test "x$exec_prefix" = "xNONE"; then
13081 exec_prefix=$prefix
13084 full_var="$FROM_VAR"
13086 new_full_var="`eval echo $full_var`"
13087 if test "x$new_full_var" = "x$full_var"; then break; fi
13088 full_var=$new_full_var
13091 full_var=$new_full_var
13092 EXPANDED_DATADIR="$full_var"
13095 prefix=$prefix_save
13096 exec_prefix=$exec_prefix_save
13099 #### Directory to install the libexec binaries
13100 GOBJECT_INTROSPECTION_LIBDIR="$EXPANDED_LIBDIR"
13103 cat >>confdefs.h <<_ACEOF
13104 #define GOBJECT_INTROSPECTION_LIBDIR "$GOBJECT_INTROSPECTION_LIBDIR"
13108 #### Directory to install the gir files
13109 GIR_SUFFIX="gir-1.0"
13112 cat >>confdefs.h <<_ACEOF
13113 #define GIR_SUFFIX "$GIR_SUFFIX"
13117 GIR_DIR="$EXPANDED_DATADIR/$GIR_SUFFIX"
13120 cat >>confdefs.h <<_ACEOF
13121 #define GIR_DIR "$GIR_DIR"
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
13128 $as_echo_n "checking for GLIB... " >&6; }
13130 if test -n "$GLIB_CFLAGS"; then
13131 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
13132 elif test -n "$PKG_CONFIG"; then
13133 if test -n "$PKG_CONFIG" && \
13134 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.49.4\""; } >&5
13135 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.49.4") 2>&5
13137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13138 test $ac_status = 0; }; then
13139 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.49.4" 2>/dev/null`
13140 test "x$?" != "x0" && pkg_failed=yes
13147 if test -n "$GLIB_LIBS"; then
13148 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
13149 elif test -n "$PKG_CONFIG"; then
13150 if test -n "$PKG_CONFIG" && \
13151 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.49.4\""; } >&5
13152 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.49.4") 2>&5
13154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13155 test $ac_status = 0; }; then
13156 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.49.4" 2>/dev/null`
13157 test "x$?" != "x0" && pkg_failed=yes
13167 if test $pkg_failed = yes; then
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13169 $as_echo "no" >&6; }
13171 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13172 _pkg_short_errors_supported=yes
13174 _pkg_short_errors_supported=no
13176 if test $_pkg_short_errors_supported = yes; then
13177 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.49.4" 2>&1`
13179 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.49.4" 2>&1`
13181 # Put the nasty error message in config.log where it belongs
13182 echo "$GLIB_PKG_ERRORS" >&5
13184 as_fn_error $? "Package requirements (glib-2.0 >= 2.49.4) were not met:
13188 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13189 installed software in a non-standard prefix.
13191 Alternatively, you may set the environment variables GLIB_CFLAGS
13192 and GLIB_LIBS to avoid the need to call pkg-config.
13193 See the pkg-config man page for more details." "$LINENO" 5
13194 elif test $pkg_failed = untried; then
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13196 $as_echo "no" >&6; }
13197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13199 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13200 is in your PATH or set the PKG_CONFIG environment variable to the full
13201 path to pkg-config.
13203 Alternatively, you may set the environment variables GLIB_CFLAGS
13204 and GLIB_LIBS to avoid the need to call pkg-config.
13205 See the pkg-config man page for more details.
13207 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13208 See \`config.log' for more details" "$LINENO" 5; }
13210 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
13211 GLIB_LIBS=$pkg_cv_GLIB_LIBS
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13213 $as_echo "yes" >&6; }
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
13219 $as_echo_n "checking for GOBJECT... " >&6; }
13221 if test -n "$GOBJECT_CFLAGS"; then
13222 pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
13223 elif test -n "$PKG_CONFIG"; then
13224 if test -n "$PKG_CONFIG" && \
13225 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\""; } >&5
13226 ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5
13228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13229 test $ac_status = 0; }; then
13230 pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0" 2>/dev/null`
13231 test "x$?" != "x0" && pkg_failed=yes
13238 if test -n "$GOBJECT_LIBS"; then
13239 pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
13240 elif test -n "$PKG_CONFIG"; then
13241 if test -n "$PKG_CONFIG" && \
13242 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\""; } >&5
13243 ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5
13245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13246 test $ac_status = 0; }; then
13247 pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0" 2>/dev/null`
13248 test "x$?" != "x0" && pkg_failed=yes
13258 if test $pkg_failed = yes; then
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13260 $as_echo "no" >&6; }
13262 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13263 _pkg_short_errors_supported=yes
13265 _pkg_short_errors_supported=no
13267 if test $_pkg_short_errors_supported = yes; then
13268 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0" 2>&1`
13270 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0" 2>&1`
13272 # Put the nasty error message in config.log where it belongs
13273 echo "$GOBJECT_PKG_ERRORS" >&5
13275 as_fn_error $? "Package requirements (gobject-2.0) were not met:
13277 $GOBJECT_PKG_ERRORS
13279 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13280 installed software in a non-standard prefix.
13282 Alternatively, you may set the environment variables GOBJECT_CFLAGS
13283 and GOBJECT_LIBS to avoid the need to call pkg-config.
13284 See the pkg-config man page for more details." "$LINENO" 5
13285 elif test $pkg_failed = untried; then
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13287 $as_echo "no" >&6; }
13288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13290 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13291 is in your PATH or set the PKG_CONFIG environment variable to the full
13292 path to pkg-config.
13294 Alternatively, you may set the environment variables GOBJECT_CFLAGS
13295 and GOBJECT_LIBS to avoid the need to call pkg-config.
13296 See the pkg-config man page for more details.
13298 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13299 See \`config.log' for more details" "$LINENO" 5; }
13301 GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
13302 GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13304 $as_echo "yes" >&6; }
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMODULE" >&5
13310 $as_echo_n "checking for GMODULE... " >&6; }
13312 if test -n "$GMODULE_CFLAGS"; then
13313 pkg_cv_GMODULE_CFLAGS="$GMODULE_CFLAGS"
13314 elif test -n "$PKG_CONFIG"; then
13315 if test -n "$PKG_CONFIG" && \
13316 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
13317 ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
13319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13320 test $ac_status = 0; }; then
13321 pkg_cv_GMODULE_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0" 2>/dev/null`
13322 test "x$?" != "x0" && pkg_failed=yes
13329 if test -n "$GMODULE_LIBS"; then
13330 pkg_cv_GMODULE_LIBS="$GMODULE_LIBS"
13331 elif test -n "$PKG_CONFIG"; then
13332 if test -n "$PKG_CONFIG" && \
13333 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
13334 ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
13336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13337 test $ac_status = 0; }; then
13338 pkg_cv_GMODULE_LIBS=`$PKG_CONFIG --libs "gmodule-2.0" 2>/dev/null`
13339 test "x$?" != "x0" && pkg_failed=yes
13349 if test $pkg_failed = yes; then
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13351 $as_echo "no" >&6; }
13353 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13354 _pkg_short_errors_supported=yes
13356 _pkg_short_errors_supported=no
13358 if test $_pkg_short_errors_supported = yes; then
13359 GMODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmodule-2.0" 2>&1`
13361 GMODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmodule-2.0" 2>&1`
13363 # Put the nasty error message in config.log where it belongs
13364 echo "$GMODULE_PKG_ERRORS" >&5
13366 as_fn_error $? "Package requirements (gmodule-2.0) were not met:
13368 $GMODULE_PKG_ERRORS
13370 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13371 installed software in a non-standard prefix.
13373 Alternatively, you may set the environment variables GMODULE_CFLAGS
13374 and GMODULE_LIBS to avoid the need to call pkg-config.
13375 See the pkg-config man page for more details." "$LINENO" 5
13376 elif test $pkg_failed = untried; then
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13378 $as_echo "no" >&6; }
13379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13381 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13382 is in your PATH or set the PKG_CONFIG environment variable to the full
13383 path to pkg-config.
13385 Alternatively, you may set the environment variables GMODULE_CFLAGS
13386 and GMODULE_LIBS to avoid the need to call pkg-config.
13387 See the pkg-config man page for more details.
13389 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13390 See \`config.log' for more details" "$LINENO" 5; }
13392 GMODULE_CFLAGS=$pkg_cv_GMODULE_CFLAGS
13393 GMODULE_LIBS=$pkg_cv_GMODULE_LIBS
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13395 $as_echo "yes" >&6; }
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
13401 $as_echo_n "checking for GIO... " >&6; }
13403 if test -n "$GIO_CFLAGS"; then
13404 pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
13405 elif test -n "$PKG_CONFIG"; then
13406 if test -n "$PKG_CONFIG" && \
13407 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0\""; } >&5
13408 ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5
13410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13411 test $ac_status = 0; }; then
13412 pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0" 2>/dev/null`
13413 test "x$?" != "x0" && pkg_failed=yes
13420 if test -n "$GIO_LIBS"; then
13421 pkg_cv_GIO_LIBS="$GIO_LIBS"
13422 elif test -n "$PKG_CONFIG"; then
13423 if test -n "$PKG_CONFIG" && \
13424 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0\""; } >&5
13425 ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5
13427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13428 test $ac_status = 0; }; then
13429 pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0" 2>/dev/null`
13430 test "x$?" != "x0" && pkg_failed=yes
13440 if test $pkg_failed = yes; then
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13442 $as_echo "no" >&6; }
13444 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13445 _pkg_short_errors_supported=yes
13447 _pkg_short_errors_supported=no
13449 if test $_pkg_short_errors_supported = yes; then
13450 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0" 2>&1`
13452 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0" 2>&1`
13454 # Put the nasty error message in config.log where it belongs
13455 echo "$GIO_PKG_ERRORS" >&5
13457 as_fn_error $? "Package requirements (gio-2.0) were not met:
13461 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13462 installed software in a non-standard prefix.
13464 Alternatively, you may set the environment variables GIO_CFLAGS
13465 and GIO_LIBS to avoid the need to call pkg-config.
13466 See the pkg-config man page for more details." "$LINENO" 5
13467 elif test $pkg_failed = untried; then
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13469 $as_echo "no" >&6; }
13470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13472 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13473 is in your PATH or set the PKG_CONFIG environment variable to the full
13474 path to pkg-config.
13476 Alternatively, you may set the environment variables GIO_CFLAGS
13477 and GIO_LIBS to avoid the need to call pkg-config.
13478 See the pkg-config man page for more details.
13480 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13481 See \`config.log' for more details" "$LINENO" 5; }
13483 GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
13484 GIO_LIBS=$pkg_cv_GIO_LIBS
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13486 $as_echo "yes" >&6; }
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO_UNIX" >&5
13492 $as_echo_n "checking for GIO_UNIX... " >&6; }
13494 if test -n "$GIO_UNIX_CFLAGS"; then
13495 pkg_cv_GIO_UNIX_CFLAGS="$GIO_UNIX_CFLAGS"
13496 elif test -n "$PKG_CONFIG"; then
13497 if test -n "$PKG_CONFIG" && \
13498 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-unix-2.0\""; } >&5
13499 ($PKG_CONFIG --exists --print-errors "gio-unix-2.0") 2>&5
13501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13502 test $ac_status = 0; }; then
13503 pkg_cv_GIO_UNIX_CFLAGS=`$PKG_CONFIG --cflags "gio-unix-2.0" 2>/dev/null`
13504 test "x$?" != "x0" && pkg_failed=yes
13511 if test -n "$GIO_UNIX_LIBS"; then
13512 pkg_cv_GIO_UNIX_LIBS="$GIO_UNIX_LIBS"
13513 elif test -n "$PKG_CONFIG"; then
13514 if test -n "$PKG_CONFIG" && \
13515 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-unix-2.0\""; } >&5
13516 ($PKG_CONFIG --exists --print-errors "gio-unix-2.0") 2>&5
13518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13519 test $ac_status = 0; }; then
13520 pkg_cv_GIO_UNIX_LIBS=`$PKG_CONFIG --libs "gio-unix-2.0" 2>/dev/null`
13521 test "x$?" != "x0" && pkg_failed=yes
13531 if test $pkg_failed = yes; then
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13533 $as_echo "no" >&6; }
13535 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13536 _pkg_short_errors_supported=yes
13538 _pkg_short_errors_supported=no
13540 if test $_pkg_short_errors_supported = yes; then
13541 GIO_UNIX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-unix-2.0" 2>&1`
13543 GIO_UNIX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-unix-2.0" 2>&1`
13545 # Put the nasty error message in config.log where it belongs
13546 echo "$GIO_UNIX_PKG_ERRORS" >&5
13548 have_gio_unix=false
13549 elif test $pkg_failed = untried; then
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13551 $as_echo "no" >&6; }
13552 have_gio_unix=false
13554 GIO_UNIX_CFLAGS=$pkg_cv_GIO_UNIX_CFLAGS
13555 GIO_UNIX_LIBS=$pkg_cv_GIO_UNIX_LIBS
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13557 $as_echo "yes" >&6; }
13560 if test x$have_gio_unix = xtrue; then
13561 HAVE_GIO_UNIX_TRUE=
13562 HAVE_GIO_UNIX_FALSE='#'
13564 HAVE_GIO_UNIX_TRUE='#'
13565 HAVE_GIO_UNIX_FALSE=
13569 # Prefer cairo-gobject if we have it
13571 # Check whether --with-cairo was given.
13572 if test "${with_cairo+set}" = set; then :
13573 withval=$with_cairo;
13579 if test x${with_cairo} != xno; then :
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
13584 $as_echo_n "checking for CAIRO... " >&6; }
13586 if test -n "$CAIRO_CFLAGS"; then
13587 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
13588 elif test -n "$PKG_CONFIG"; then
13589 if test -n "$PKG_CONFIG" && \
13590 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13591 ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13594 test $ac_status = 0; }; then
13595 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo cairo-gobject" 2>/dev/null`
13596 test "x$?" != "x0" && pkg_failed=yes
13603 if test -n "$CAIRO_LIBS"; then
13604 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
13605 elif test -n "$PKG_CONFIG"; then
13606 if test -n "$PKG_CONFIG" && \
13607 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13608 ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13611 test $ac_status = 0; }; then
13612 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo cairo-gobject" 2>/dev/null`
13613 test "x$?" != "x0" && pkg_failed=yes
13623 if test $pkg_failed = yes; then
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13625 $as_echo "no" >&6; }
13627 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13628 _pkg_short_errors_supported=yes
13630 _pkg_short_errors_supported=no
13632 if test $_pkg_short_errors_supported = yes; then
13633 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
13635 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
13637 # Put the nasty error message in config.log where it belongs
13638 echo "$CAIRO_PKG_ERRORS" >&5
13641 elif test $pkg_failed = untried; then
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13643 $as_echo "no" >&6; }
13646 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
13647 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13649 $as_echo "yes" >&6; }
13652 if test x$have_cairo = xno && test x$with_cairo = xyes ; then :
13654 as_fn_error $? "cairo enabled but not found" "$LINENO" 5
13659 if test x$have_cairo = xyes; then
13661 HAVE_CAIRO_FALSE='#'
13663 HAVE_CAIRO_TRUE='#'
13670 CAIRO_SHARED_LIBRARY="libcairo-gobject.2.dylib"
13673 CAIRO_SHARED_LIBRARY="libcairo-gobject-2.dll"
13676 CAIRO_SHARED_LIBRARY="libcairo-gobject.so"
13679 CAIRO_SHARED_LIBRARY="libcairo-gobject.so.2"
13682 CAIRO_GIR_PACKAGE="cairo-gobject"
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCANNER" >&5
13691 $as_echo_n "checking for SCANNER... " >&6; }
13693 if test -n "$SCANNER_CFLAGS"; then
13694 pkg_cv_SCANNER_CFLAGS="$SCANNER_CFLAGS"
13695 elif test -n "$PKG_CONFIG"; then
13696 if test -n "$PKG_CONFIG" && \
13697 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 gio-2.0\""; } >&5
13698 ($PKG_CONFIG --exists --print-errors "gobject-2.0 gio-2.0") 2>&5
13700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13701 test $ac_status = 0; }; then
13702 pkg_cv_SCANNER_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 gio-2.0" 2>/dev/null`
13703 test "x$?" != "x0" && pkg_failed=yes
13710 if test -n "$SCANNER_LIBS"; then
13711 pkg_cv_SCANNER_LIBS="$SCANNER_LIBS"
13712 elif test -n "$PKG_CONFIG"; then
13713 if test -n "$PKG_CONFIG" && \
13714 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 gio-2.0\""; } >&5
13715 ($PKG_CONFIG --exists --print-errors "gobject-2.0 gio-2.0") 2>&5
13717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13718 test $ac_status = 0; }; then
13719 pkg_cv_SCANNER_LIBS=`$PKG_CONFIG --libs "gobject-2.0 gio-2.0" 2>/dev/null`
13720 test "x$?" != "x0" && pkg_failed=yes
13730 if test $pkg_failed = yes; then
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13732 $as_echo "no" >&6; }
13734 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13735 _pkg_short_errors_supported=yes
13737 _pkg_short_errors_supported=no
13739 if test $_pkg_short_errors_supported = yes; then
13740 SCANNER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0 gio-2.0" 2>&1`
13742 SCANNER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0 gio-2.0" 2>&1`
13744 # Put the nasty error message in config.log where it belongs
13745 echo "$SCANNER_PKG_ERRORS" >&5
13747 as_fn_error $? "Package requirements (gobject-2.0 gio-2.0) were not met:
13749 $SCANNER_PKG_ERRORS
13751 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13752 installed software in a non-standard prefix.
13754 Alternatively, you may set the environment variables SCANNER_CFLAGS
13755 and SCANNER_LIBS to avoid the need to call pkg-config.
13756 See the pkg-config man page for more details." "$LINENO" 5
13757 elif test $pkg_failed = untried; then
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13759 $as_echo "no" >&6; }
13760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13762 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13763 is in your PATH or set the PKG_CONFIG environment variable to the full
13764 path to pkg-config.
13766 Alternatively, you may set the environment variables SCANNER_CFLAGS
13767 and SCANNER_LIBS to avoid the need to call pkg-config.
13768 See the pkg-config man page for more details.
13770 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13771 See \`config.log' for more details" "$LINENO" 5; }
13773 SCANNER_CFLAGS=$pkg_cv_SCANNER_CFLAGS
13774 SCANNER_LIBS=$pkg_cv_SCANNER_LIBS
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13776 $as_echo "yes" >&6; }
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFI" >&5
13783 $as_echo_n "checking for FFI... " >&6; }
13785 if test -n "$FFI_CFLAGS"; then
13786 pkg_cv_FFI_CFLAGS="$FFI_CFLAGS"
13787 elif test -n "$PKG_CONFIG"; then
13788 if test -n "$PKG_CONFIG" && \
13789 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0.0 \""; } >&5
13790 ($PKG_CONFIG --exists --print-errors "libffi >= 3.0.0 ") 2>&5
13792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13793 test $ac_status = 0; }; then
13794 pkg_cv_FFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= 3.0.0 " 2>/dev/null`
13795 test "x$?" != "x0" && pkg_failed=yes
13802 if test -n "$FFI_LIBS"; then
13803 pkg_cv_FFI_LIBS="$FFI_LIBS"
13804 elif test -n "$PKG_CONFIG"; then
13805 if test -n "$PKG_CONFIG" && \
13806 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0.0 \""; } >&5
13807 ($PKG_CONFIG --exists --print-errors "libffi >= 3.0.0 ") 2>&5
13809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13810 test $ac_status = 0; }; then
13811 pkg_cv_FFI_LIBS=`$PKG_CONFIG --libs "libffi >= 3.0.0 " 2>/dev/null`
13812 test "x$?" != "x0" && pkg_failed=yes
13822 if test $pkg_failed = yes; then
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13824 $as_echo "no" >&6; }
13826 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13827 _pkg_short_errors_supported=yes
13829 _pkg_short_errors_supported=no
13831 if test $_pkg_short_errors_supported = yes; then
13832 FFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi >= 3.0.0 " 2>&1`
13834 FFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi >= 3.0.0 " 2>&1`
13836 # Put the nasty error message in config.log where it belongs
13837 echo "$FFI_PKG_ERRORS" >&5
13839 have_ffi_pkgconfig=no
13840 elif test $pkg_failed = untried; then
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13842 $as_echo "no" >&6; }
13843 have_ffi_pkgconfig=no
13845 FFI_CFLAGS=$pkg_cv_FFI_CFLAGS
13846 FFI_LIBS=$pkg_cv_FFI_LIBS
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13848 $as_echo "yes" >&6; }
13849 have_ffi_pkgconfig=yes
13854 if test x"$have_ffi_pkgconfig" = xyes ; then
13855 FFI_PC_PACKAGES="libffi"
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi.h" >&5
13858 $as_echo_n "checking for ffi.h... " >&6; }
13860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13861 /* end confdefs.h. */
13864 if ac_fn_c_try_cpp "$LINENO"; then :
13869 rm -f conftest.err conftest.i conftest.$ac_ext
13870 if test x"$have_ffi_h" = x"yes"; then
13873 if test x"$with_ffi" = x"yes" || test x"$with_ffi" = x"auto"; then
13876 other_LIBS=$with_ffi
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
13880 $as_echo_n "checking for library containing ffi_call... " >&6; }
13881 if ${ac_cv_search_ffi_call+:} false; then :
13882 $as_echo_n "(cached) " >&6
13884 ac_func_search_save_LIBS=$LIBS
13885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13886 /* end confdefs.h. */
13888 /* Override any GCC internal prototype to avoid an error.
13889 Use char because int might match the return type of a GCC
13890 builtin and then its argument prototype would still apply. */
13898 return ffi_call ();
13903 for ac_lib in '' ffi; do
13904 if test -z "$ac_lib"; then
13905 ac_res="none required"
13908 LIBS="-l$ac_lib $other_LIBS $ac_func_search_save_LIBS"
13910 if ac_fn_c_try_link "$LINENO"; then :
13911 ac_cv_search_ffi_call=$ac_res
13913 rm -f core conftest.err conftest.$ac_objext \
13915 if ${ac_cv_search_ffi_call+:} false; then :
13919 if ${ac_cv_search_ffi_call+:} false; then :
13922 ac_cv_search_ffi_call=no
13924 rm conftest.$ac_ext
13925 LIBS=$ac_func_search_save_LIBS
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
13928 $as_echo "$ac_cv_search_ffi_call" >&6; }
13929 ac_res=$ac_cv_search_ffi_call
13930 if test "$ac_res" != no; then :
13931 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13934 as_fn_error $? "libffi not found" "$LINENO" 5
13937 if test x"$ac_cv_search_ffi_call" = x"none required" ; then
13938 FFI_LIBS=$other_LIBS
13940 FFI_LIBS="$ac_cv_search_ffi_call $other_LIBS"
13945 if test x"$have_ffi_h" != x"yes" ; then
13946 as_fn_error $? "ffi.h not found" "$LINENO" 5
13949 FFI_PC_LIBS=$FFI_LIBS
13950 FFI_PC_CFLAGS=$FFI_CFLAGS
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ffi_h" >&5
13953 $as_echo "$have_ffi_h" >&6; }
13961 # The cast to long int works around a bug in the HP C Compiler
13962 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13963 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13964 # This bug is HP SR number 8606223364.
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13966 $as_echo_n "checking size of char... " >&6; }
13967 if ${ac_cv_sizeof_char+:} false; then :
13968 $as_echo_n "(cached) " >&6
13970 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
13973 if test "$ac_cv_type_char" = yes; then
13974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13976 as_fn_error 77 "cannot compute sizeof (char)
13977 See \`config.log' for more details" "$LINENO" 5; }
13979 ac_cv_sizeof_char=0
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13985 $as_echo "$ac_cv_sizeof_char" >&6; }
13989 cat >>confdefs.h <<_ACEOF
13990 #define SIZEOF_CHAR $ac_cv_sizeof_char
13994 # The cast to long int works around a bug in the HP C Compiler
13995 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13996 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13997 # This bug is HP SR number 8606223364.
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13999 $as_echo_n "checking size of short... " >&6; }
14000 if ${ac_cv_sizeof_short+:} false; then :
14001 $as_echo_n "(cached) " >&6
14003 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14006 if test "$ac_cv_type_short" = yes; then
14007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14009 as_fn_error 77 "cannot compute sizeof (short)
14010 See \`config.log' for more details" "$LINENO" 5; }
14012 ac_cv_sizeof_short=0
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14018 $as_echo "$ac_cv_sizeof_short" >&6; }
14022 cat >>confdefs.h <<_ACEOF
14023 #define SIZEOF_SHORT $ac_cv_sizeof_short
14027 # The cast to long int works around a bug in the HP C Compiler
14028 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14029 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14030 # This bug is HP SR number 8606223364.
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14032 $as_echo_n "checking size of int... " >&6; }
14033 if ${ac_cv_sizeof_int+:} false; then :
14034 $as_echo_n "(cached) " >&6
14036 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14039 if test "$ac_cv_type_int" = yes; then
14040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14042 as_fn_error 77 "cannot compute sizeof (int)
14043 See \`config.log' for more details" "$LINENO" 5; }
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14051 $as_echo "$ac_cv_sizeof_int" >&6; }
14055 cat >>confdefs.h <<_ACEOF
14056 #define SIZEOF_INT $ac_cv_sizeof_int
14060 # The cast to long int works around a bug in the HP C Compiler
14061 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14062 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14063 # This bug is HP SR number 8606223364.
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14065 $as_echo_n "checking size of long... " >&6; }
14066 if ${ac_cv_sizeof_long+:} false; then :
14067 $as_echo_n "(cached) " >&6
14069 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14072 if test "$ac_cv_type_long" = yes; then
14073 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14075 as_fn_error 77 "cannot compute sizeof (long)
14076 See \`config.log' for more details" "$LINENO" 5; }
14078 ac_cv_sizeof_long=0
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14084 $as_echo "$ac_cv_sizeof_long" >&6; }
14088 cat >>confdefs.h <<_ACEOF
14089 #define SIZEOF_LONG $ac_cv_sizeof_long
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIREPO" >&5
14097 $as_echo_n "checking for GIREPO... " >&6; }
14099 if test -n "$GIREPO_CFLAGS"; then
14100 pkg_cv_GIREPO_CFLAGS="$GIREPO_CFLAGS"
14101 elif test -n "$PKG_CONFIG"; then
14102 if test -n "$PKG_CONFIG" && \
14103 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0\""; } >&5
14104 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0") 2>&5
14106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14107 test $ac_status = 0; }; then
14108 pkg_cv_GIREPO_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0" 2>/dev/null`
14109 test "x$?" != "x0" && pkg_failed=yes
14116 if test -n "$GIREPO_LIBS"; then
14117 pkg_cv_GIREPO_LIBS="$GIREPO_LIBS"
14118 elif test -n "$PKG_CONFIG"; then
14119 if test -n "$PKG_CONFIG" && \
14120 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0\""; } >&5
14121 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0") 2>&5
14123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14124 test $ac_status = 0; }; then
14125 pkg_cv_GIREPO_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0" 2>/dev/null`
14126 test "x$?" != "x0" && pkg_failed=yes
14136 if test $pkg_failed = yes; then
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14138 $as_echo "no" >&6; }
14140 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14141 _pkg_short_errors_supported=yes
14143 _pkg_short_errors_supported=no
14145 if test $_pkg_short_errors_supported = yes; then
14146 GIREPO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0" 2>&1`
14148 GIREPO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0" 2>&1`
14150 # Put the nasty error message in config.log where it belongs
14151 echo "$GIREPO_PKG_ERRORS" >&5
14153 as_fn_error $? "Package requirements (glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0) were not met:
14157 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14158 installed software in a non-standard prefix.
14160 Alternatively, you may set the environment variables GIREPO_CFLAGS
14161 and GIREPO_LIBS to avoid the need to call pkg-config.
14162 See the pkg-config man page for more details." "$LINENO" 5
14163 elif test $pkg_failed = untried; then
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14165 $as_echo "no" >&6; }
14166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14168 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14169 is in your PATH or set the PKG_CONFIG environment variable to the full
14170 path to pkg-config.
14172 Alternatively, you may set the environment variables GIREPO_CFLAGS
14173 and GIREPO_LIBS to avoid the need to call pkg-config.
14174 See the pkg-config man page for more details.
14176 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14177 See \`config.log' for more details" "$LINENO" 5; }
14179 GIREPO_CFLAGS=$pkg_cv_GIREPO_CFLAGS
14180 GIREPO_LIBS=$pkg_cv_GIREPO_LIBS
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14182 $as_echo "yes" >&6; }
14186 # if we ever remove manual check for ffi and require .pc file, then
14187 # just put libffi in the PKG_CHECK_MODULES(GIREPO) deps
14188 GIREPO_LIBS="$GIREPO_LIBS $GCOV_LIBS $FFI_LIBS"
14189 GIREPO_CFLAGS="$GIREPO_CFLAGS $FFI_CFLAGS"
14191 GIREPO_CFLAGS="$GIREPO_CFLAGS $GCOV_CFLAGS"
14194 # gtkdocize greps for ^GTK_DOC_CHECK and parses it, so you need to have
14195 # it on it's own line.
14200 gtk_doc_requires="gtk-doc >= 1.19"
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
14202 $as_echo_n "checking for gtk-doc... " >&6; }
14203 if test -n "$PKG_CONFIG" && \
14204 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
14205 ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
14207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14208 test $ac_status = 0; }; then
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
14214 $as_echo "$have_gtk_doc" >&6; }
14216 if test "$have_gtk_doc" = "no"; then
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14218 You will not be able to create source packages with 'make dist'
14219 because $gtk_doc_requires is not found." >&5
14220 $as_echo "$as_me: WARNING:
14221 You will not be able to create source packages with 'make dist'
14222 because $gtk_doc_requires is not found." >&2;}
14225 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
14226 set dummy gtkdoc-check; ac_word=$2
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14228 $as_echo_n "checking for $ac_word... " >&6; }
14229 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
14230 $as_echo_n "(cached) " >&6
14232 if test -n "$GTKDOC_CHECK"; then
14233 ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
14235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14236 for as_dir in $PATH
14239 test -z "$as_dir" && as_dir=.
14240 for ac_exec_ext in '' $ac_executable_extensions; do
14241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14242 ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
14243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14252 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
14253 if test -n "$GTKDOC_CHECK"; then
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
14255 $as_echo "$GTKDOC_CHECK" >&6; }
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14258 $as_echo "no" >&6; }
14262 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
14263 set dummy gtkdoc-check; ac_word=$2
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14265 $as_echo_n "checking for $ac_word... " >&6; }
14266 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
14267 $as_echo_n "(cached) " >&6
14269 case $GTKDOC_CHECK_PATH in
14271 ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
14274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14275 for as_dir in $PATH
14278 test -z "$as_dir" && as_dir=.
14279 for ac_exec_ext in '' $ac_executable_extensions; do
14280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14281 ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
14282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14292 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
14293 if test -n "$GTKDOC_CHECK_PATH"; then
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
14295 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14298 $as_echo "no" >&6; }
14302 for ac_prog in gtkdoc-rebase
14304 # Extract the first word of "$ac_prog", so it can be a program name with args.
14305 set dummy $ac_prog; ac_word=$2
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14307 $as_echo_n "checking for $ac_word... " >&6; }
14308 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
14309 $as_echo_n "(cached) " >&6
14311 case $GTKDOC_REBASE in
14313 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
14316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14317 for as_dir in $PATH
14320 test -z "$as_dir" && as_dir=.
14321 for ac_exec_ext in '' $ac_executable_extensions; do
14322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14323 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
14324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14334 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
14335 if test -n "$GTKDOC_REBASE"; then
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
14337 $as_echo "$GTKDOC_REBASE" >&6; }
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14340 $as_echo "no" >&6; }
14344 test -n "$GTKDOC_REBASE" && break
14346 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
14348 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
14349 set dummy gtkdoc-mkpdf; ac_word=$2
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14351 $as_echo_n "checking for $ac_word... " >&6; }
14352 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
14353 $as_echo_n "(cached) " >&6
14355 case $GTKDOC_MKPDF in
14357 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
14360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14361 for as_dir in $PATH
14364 test -z "$as_dir" && as_dir=.
14365 for ac_exec_ext in '' $ac_executable_extensions; do
14366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14367 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
14368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14378 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
14379 if test -n "$GTKDOC_MKPDF"; then
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
14381 $as_echo "$GTKDOC_MKPDF" >&6; }
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14384 $as_echo "no" >&6; }
14390 # Check whether --with-html-dir was given.
14391 if test "${with_html_dir+set}" = set; then :
14392 withval=$with_html_dir;
14394 with_html_dir='${datadir}/gtk-doc/html'
14397 HTML_DIR="$with_html_dir"
14400 # Check whether --enable-gtk-doc was given.
14401 if test "${enable_gtk_doc+set}" = set; then :
14402 enableval=$enable_gtk_doc;
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
14409 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
14411 $as_echo "$enable_gtk_doc" >&6; }
14413 if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
14415 You must have $gtk_doc_requires installed to build documentation for
14416 $PACKAGE_NAME. Please install gtk-doc or disable building the
14417 documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
14420 if test "x$PACKAGE_NAME" != "xglib"; then
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
14424 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
14426 if test -n "$GTKDOC_DEPS_CFLAGS"; then
14427 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
14428 elif test -n "$PKG_CONFIG"; then
14429 if test -n "$PKG_CONFIG" && \
14430 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
14431 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
14433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14434 test $ac_status = 0; }; then
14435 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
14436 test "x$?" != "x0" && pkg_failed=yes
14443 if test -n "$GTKDOC_DEPS_LIBS"; then
14444 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
14445 elif test -n "$PKG_CONFIG"; then
14446 if test -n "$PKG_CONFIG" && \
14447 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
14448 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
14450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14451 test $ac_status = 0; }; then
14452 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
14453 test "x$?" != "x0" && pkg_failed=yes
14463 if test $pkg_failed = yes; then
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14465 $as_echo "no" >&6; }
14467 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14468 _pkg_short_errors_supported=yes
14470 _pkg_short_errors_supported=no
14472 if test $_pkg_short_errors_supported = yes; then
14473 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
14475 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
14477 # Put the nasty error message in config.log where it belongs
14478 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
14481 elif test $pkg_failed = untried; then
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14483 $as_echo "no" >&6; }
14486 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
14487 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14489 $as_echo "yes" >&6; }
14494 # Check whether --enable-gtk-doc-html was given.
14495 if test "${enable_gtk_doc_html+set}" = set; then :
14496 enableval=$enable_gtk_doc_html;
14498 enable_gtk_doc_html=yes
14501 # Check whether --enable-gtk-doc-pdf was given.
14502 if test "${enable_gtk_doc_pdf+set}" = set; then :
14503 enableval=$enable_gtk_doc_pdf;
14505 enable_gtk_doc_pdf=no
14509 if test -z "$GTKDOC_MKPDF"; then
14510 enable_gtk_doc_pdf=no
14513 if test -z "$AM_DEFAULT_VERBOSITY"; then
14514 AM_DEFAULT_VERBOSITY=1
14518 if test x$have_gtk_doc = xyes; then
14520 HAVE_GTK_DOC_FALSE='#'
14522 HAVE_GTK_DOC_TRUE='#'
14523 HAVE_GTK_DOC_FALSE=
14526 if test x$enable_gtk_doc = xyes; then
14527 ENABLE_GTK_DOC_TRUE=
14528 ENABLE_GTK_DOC_FALSE='#'
14530 ENABLE_GTK_DOC_TRUE='#'
14531 ENABLE_GTK_DOC_FALSE=
14534 if test x$enable_gtk_doc_html = xyes; then
14535 GTK_DOC_BUILD_HTML_TRUE=
14536 GTK_DOC_BUILD_HTML_FALSE='#'
14538 GTK_DOC_BUILD_HTML_TRUE='#'
14539 GTK_DOC_BUILD_HTML_FALSE=
14542 if test x$enable_gtk_doc_pdf = xyes; then
14543 GTK_DOC_BUILD_PDF_TRUE=
14544 GTK_DOC_BUILD_PDF_FALSE='#'
14546 GTK_DOC_BUILD_PDF_TRUE='#'
14547 GTK_DOC_BUILD_PDF_FALSE=
14550 if test -n "$LIBTOOL"; then
14551 GTK_DOC_USE_LIBTOOL_TRUE=
14552 GTK_DOC_USE_LIBTOOL_FALSE='#'
14554 GTK_DOC_USE_LIBTOOL_TRUE='#'
14555 GTK_DOC_USE_LIBTOOL_FALSE=
14558 if test -n "$GTKDOC_REBASE"; then
14559 GTK_DOC_USE_REBASE_TRUE=
14560 GTK_DOC_USE_REBASE_FALSE='#'
14562 GTK_DOC_USE_REBASE_TRUE='#'
14563 GTK_DOC_USE_REBASE_FALSE=
14569 # Checks for header files.
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14571 $as_echo_n "checking for ANSI C header files... " >&6; }
14572 if ${ac_cv_header_stdc+:} false; then :
14573 $as_echo_n "(cached) " >&6
14575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14576 /* end confdefs.h. */
14577 #include <stdlib.h>
14578 #include <stdarg.h>
14579 #include <string.h>
14590 if ac_fn_c_try_compile "$LINENO"; then :
14591 ac_cv_header_stdc=yes
14593 ac_cv_header_stdc=no
14595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14597 if test $ac_cv_header_stdc = yes; then
14598 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600 /* end confdefs.h. */
14601 #include <string.h>
14604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14605 $EGREP "memchr" >/dev/null 2>&1; then :
14608 ac_cv_header_stdc=no
14614 if test $ac_cv_header_stdc = yes; then
14615 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14617 /* end confdefs.h. */
14618 #include <stdlib.h>
14621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14622 $EGREP "free" >/dev/null 2>&1; then :
14625 ac_cv_header_stdc=no
14631 if test $ac_cv_header_stdc = yes; then
14632 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14633 if test "$cross_compiling" = yes; then :
14636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14637 /* end confdefs.h. */
14639 #include <stdlib.h>
14640 #if ((' ' & 0x0FF) == 0x020)
14641 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14642 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14644 # define ISLOWER(c) \
14645 (('a' <= (c) && (c) <= 'i') \
14646 || ('j' <= (c) && (c) <= 'r') \
14647 || ('s' <= (c) && (c) <= 'z'))
14648 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14651 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14656 for (i = 0; i < 256; i++)
14657 if (XOR (islower (i), ISLOWER (i))
14658 || toupper (i) != TOUPPER (i))
14663 if ac_fn_c_try_run "$LINENO"; then :
14666 ac_cv_header_stdc=no
14668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14669 conftest.$ac_objext conftest.beam conftest.$ac_ext
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14675 $as_echo "$ac_cv_header_stdc" >&6; }
14676 if test $ac_cv_header_stdc = yes; then
14678 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14682 for ac_header in fcntl.h stdlib.h string.h
14684 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14685 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14686 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14687 cat >>confdefs.h <<_ACEOF
14688 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14696 # Checks for typedefs, structures, and compiler characteristics.
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14698 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14699 if ${ac_cv_c_const+:} false; then :
14700 $as_echo_n "(cached) " >&6
14702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14703 /* end confdefs.h. */
14709 #ifndef __cplusplus
14710 /* Ultrix mips cc rejects this sort of thing. */
14711 typedef int charset[2];
14712 const charset cs = { 0, 0 };
14713 /* SunOS 4.1.1 cc rejects this. */
14714 char const *const *pcpcc;
14716 /* NEC SVR4.0.2 mips cc rejects this. */
14717 struct point {int x, y;};
14718 static struct point const zero = {0,0};
14719 /* AIX XL C 1.02.0.0 rejects this.
14720 It does not let you subtract one const X* pointer from another in
14721 an arm of an if-expression whose if-part is not a constant
14723 const char *g = "string";
14724 pcpcc = &g + (g ? g-g : 0);
14725 /* HPUX 7.0 cc rejects these. */
14727 ppc = (char**) pcpcc;
14728 pcpcc = (char const *const *) ppc;
14729 { /* SCO 3.2v4 cc rejects this sort of thing. */
14732 char const *s = 0 ? (char *) 0 : (char const *) 0;
14737 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14738 int x[] = {25, 17};
14739 const int *foo = &x[0];
14742 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14743 typedef const int *iptr;
14747 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14748 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14749 struct s { int j; const int *ap[3]; } bx;
14750 struct s *b = &bx; b->j = 5;
14752 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14753 const int foo = 10;
14754 if (!foo) return 0;
14756 return !cs[0] && !zero.x;
14763 if ac_fn_c_try_compile "$LINENO"; then :
14768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14771 $as_echo "$ac_cv_c_const" >&6; }
14772 if test $ac_cv_c_const = no; then
14774 $as_echo "#define const /**/" >>confdefs.h
14779 # Checks for library functions.
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
14781 $as_echo_n "checking for working strtod... " >&6; }
14782 if ${ac_cv_func_strtod+:} false; then :
14783 $as_echo_n "(cached) " >&6
14785 if test "$cross_compiling" = yes; then :
14786 ac_cv_func_strtod=no
14788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14789 /* end confdefs.h. */
14791 $ac_includes_default
14799 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
14800 char *string = " +69";
14803 value = strtod (string, &term);
14804 if (value != 69 || term != (string + 4))
14809 /* Under Solaris 2.4, strtod returns the wrong value for the
14810 terminating character under some conditions. */
14811 char *string = "NaN";
14813 strtod (string, &term);
14814 if (term != string && *(term - 1) == 0)
14821 if ac_fn_c_try_run "$LINENO"; then :
14822 ac_cv_func_strtod=yes
14824 ac_cv_func_strtod=no
14826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14827 conftest.$ac_objext conftest.beam conftest.$ac_ext
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
14832 $as_echo "$ac_cv_func_strtod" >&6; }
14833 if test $ac_cv_func_strtod = no; then
14834 case " $LIBOBJS " in
14835 *" strtod.$ac_objext "* ) ;;
14836 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14840 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
14841 if test "x$ac_cv_func_pow" = xyes; then :
14845 if test $ac_cv_func_pow = no; then
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
14847 $as_echo_n "checking for pow in -lm... " >&6; }
14848 if ${ac_cv_lib_m_pow+:} false; then :
14849 $as_echo_n "(cached) " >&6
14851 ac_check_lib_save_LIBS=$LIBS
14853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14854 /* end confdefs.h. */
14856 /* Override any GCC internal prototype to avoid an error.
14857 Use char because int might match the return type of a GCC
14858 builtin and then its argument prototype would still apply. */
14871 if ac_fn_c_try_link "$LINENO"; then :
14872 ac_cv_lib_m_pow=yes
14876 rm -f core conftest.err conftest.$ac_objext \
14877 conftest$ac_exeext conftest.$ac_ext
14878 LIBS=$ac_check_lib_save_LIBS
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
14881 $as_echo "$ac_cv_lib_m_pow" >&6; }
14882 if test "x$ac_cv_lib_m_pow" = xyes; then :
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
14886 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14893 for ac_func in memchr strchr strspn strstr strtol strtoull
14895 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14896 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14897 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14898 cat >>confdefs.h <<_ACEOF
14899 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14905 for ac_func in backtrace backtrace_symbols
14907 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14908 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14909 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14910 cat >>confdefs.h <<_ACEOF
14911 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14919 # option to specify python interpreter to use; this just sets $PYTHON, so that
14920 # we will fallback to reading $PYTHON if --with-python is not given, and
14921 # python.m4 will get the expected input
14923 # Check whether --with-python was given.
14924 if test "${with_python+set}" = set; then :
14925 withval=$with_python; PYTHON="$withval"
14928 if test x"$PYTHON" = xyes; then
14929 as_fn_error $? "--with-python option requires a path or program argument" "$LINENO" 5
14931 if test -n "$PYTHON" && ! which "$PYTHON"; then
14932 as_fn_error $? "Python interpreter $PYTHON does not exist" "$LINENO" 5
14941 if test -n "$PYTHON"; then
14942 # If the user set $PYTHON, use it and don't search something else.
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
14944 $as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
14946 # split strings by '.' and convert to numeric. Append some zeros
14947 # because we need at least 4 digits for the hex conversion.
14948 # map returns an iterator in Python 3.0 and a list in 2.x
14949 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
14951 # xrange is not present in Python 3.0 and range returns an iterator
14952 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14953 sys.exit(sys.hexversion < minverhex)"
14954 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
14955 ($PYTHON -c "$prog") >&5 2>&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); }; then :
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14960 $as_echo "yes" >&6; }
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14963 $as_echo "no" >&6; }
14964 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
14966 am_display_PYTHON=$PYTHON
14968 # Otherwise, try each interpreter until we find one that satisfies
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
14971 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
14972 if ${am_cv_pathless_PYTHON+:} false; then :
14973 $as_echo_n "(cached) " >&6
14976 for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
14977 test "$am_cv_pathless_PYTHON" = none && break
14979 # split strings by '.' and convert to numeric. Append some zeros
14980 # because we need at least 4 digits for the hex conversion.
14981 # map returns an iterator in Python 3.0 and a list in 2.x
14982 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
14984 # xrange is not present in Python 3.0 and range returns an iterator
14985 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14986 sys.exit(sys.hexversion < minverhex)"
14987 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
14988 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; then :
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
14997 $as_echo "$am_cv_pathless_PYTHON" >&6; }
14998 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
14999 if test "$am_cv_pathless_PYTHON" = none; then
15002 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
15003 set dummy $am_cv_pathless_PYTHON; ac_word=$2
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15005 $as_echo_n "checking for $ac_word... " >&6; }
15006 if ${ac_cv_path_PYTHON+:} false; then :
15007 $as_echo_n "(cached) " >&6
15011 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15015 for as_dir in $PATH
15018 test -z "$as_dir" && as_dir=.
15019 for ac_exec_ext in '' $ac_executable_extensions; do
15020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15021 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
15022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15032 PYTHON=$ac_cv_path_PYTHON
15033 if test -n "$PYTHON"; then
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15035 $as_echo "$PYTHON" >&6; }
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15038 $as_echo "no" >&6; }
15043 am_display_PYTHON=$am_cv_pathless_PYTHON
15047 if test "$PYTHON" = :; then
15048 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
15053 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
15054 if ${am_cv_python_version+:} false; then :
15055 $as_echo_n "(cached) " >&6
15057 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
15060 $as_echo "$am_cv_python_version" >&6; }
15061 PYTHON_VERSION=$am_cv_python_version
15065 PYTHON_PREFIX='${prefix}'
15067 PYTHON_EXEC_PREFIX='${exec_prefix}'
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
15072 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
15073 if ${am_cv_python_platform+:} false; then :
15074 $as_echo_n "(cached) " >&6
15076 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
15079 $as_echo "$am_cv_python_platform" >&6; }
15080 PYTHON_PLATFORM=$am_cv_python_platform
15083 # Just factor out some code duplication.
15084 am_python_setup_sysconfig="\
15086 # Prefer sysconfig over distutils.sysconfig, for better compatibility
15087 # with python 3.x. See automake bug#10227.
15090 except ImportError:
15091 can_use_sysconfig = 0
15093 can_use_sysconfig = 1
15094 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
15095 # <https://github.com/pypa/virtualenv/issues/118>
15097 from platform import python_implementation
15098 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
15099 can_use_sysconfig = 0
15100 except ImportError:
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
15105 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
15106 if ${am_cv_python_pythondir+:} false; then :
15107 $as_echo_n "(cached) " >&6
15109 if test "x$prefix" = xNONE
15111 am_py_prefix=$ac_default_prefix
15113 am_py_prefix=$prefix
15115 am_cv_python_pythondir=`$PYTHON -c "
15116 $am_python_setup_sysconfig
15117 if can_use_sysconfig:
15118 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
15120 from distutils import sysconfig
15121 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
15122 sys.stdout.write(sitedir)"`
15123 case $am_cv_python_pythondir in
15125 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
15126 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
15129 case $am_py_prefix in
15132 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
15140 $as_echo "$am_cv_python_pythondir" >&6; }
15141 pythondir=$am_cv_python_pythondir
15145 pkgpythondir=\${pythondir}/$PACKAGE
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
15149 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
15150 if ${am_cv_python_pyexecdir+:} false; then :
15151 $as_echo_n "(cached) " >&6
15153 if test "x$exec_prefix" = xNONE
15155 am_py_exec_prefix=$am_py_prefix
15157 am_py_exec_prefix=$exec_prefix
15159 am_cv_python_pyexecdir=`$PYTHON -c "
15160 $am_python_setup_sysconfig
15161 if can_use_sysconfig:
15162 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
15164 from distutils import sysconfig
15165 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
15166 sys.stdout.write(sitedir)"`
15167 case $am_cv_python_pyexecdir in
15168 $am_py_exec_prefix*)
15169 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
15170 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
15173 case $am_py_exec_prefix in
15176 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
15184 $as_echo "$am_cv_python_pyexecdir" >&6; }
15185 pyexecdir=$am_cv_python_pyexecdir
15189 pkgpyexecdir=\${pyexecdir}/$PACKAGE
15198 # Change backslashes to forward slashes in pyexecdir to avoid
15200 pyexecdir=`echo $pyexecdir | tr '\\\\' '/'`
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
15205 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
15206 PYTHON_INCLUDES=`$PYTHON-config --includes`
15208 save_CPPFLAGS="$CPPFLAGS"
15209 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
15210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15211 /* end confdefs.h. */
15212 #include <Python.h>
15214 if ac_fn_c_try_cpp "$LINENO"; then :
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15216 $as_echo "found" >&6; }
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15220 $as_echo "not found" >&6; }
15221 as_fn_error $? "Python headers not found" "$LINENO" 5
15223 rm -f conftest.err conftest.i conftest.$ac_ext
15224 CPPFLAGS="$save_CPPFLAGS"
15226 if test "x$os_win32" = "xyes"; then
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to link against libpython" >&5
15229 $as_echo_n "checking for libraries required to link against libpython... " >&6; }
15230 if test "x$PYTHON_LIBS" = x; then
15231 PYTHON_LIBS=`$PYTHON-config --ldflags --libs`
15235 LIBS="$LIBS $PYTHON_LIBS"
15236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15237 /* end confdefs.h. */
15239 /* Override any GCC internal prototype to avoid an error.
15240 Use char because int might match the return type of a GCC
15241 builtin and then its argument prototype would still apply. */
15245 char Py_Initialize ();
15249 return Py_Initialize ();
15254 if ac_fn_c_try_link "$LINENO"; then :
15255 LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15256 $as_echo "found" >&6; };
15258 LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15259 $as_echo "not found" >&6; }; as_fn_error $? "Python libs not found. Windows requires Python modules to be explicitly linked to libpython." "$LINENO" 5
15261 rm -f core conftest.err conftest.$ac_objext \
15262 conftest$ac_exeext conftest.$ac_ext
15267 # Check whether --enable-doctool was given.
15268 if test "${enable_doctool+set}" = set; then :
15269 enableval=$enable_doctool;
15271 enable_doctool=auto
15274 if test x$enable_doctool != xno; then :
15277 py_mod_var=`echo mako'_' | sed 'y%./+-%__p_%'`
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module mako" >&5
15279 $as_echo_n "checking for python module mako... " >&6; }
15280 if eval \${py_cv_mod_$py_mod_var+:} false; then :
15281 $as_echo_n "(cached) " >&6
15288 except ImportError:
15293 if $PYTHON -c "$prog" 1>&5 2>&5
15295 eval "py_cv_mod_$py_mod_var=yes"
15297 eval "py_cv_mod_$py_mod_var=no"
15302 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
15303 if test "x$py_val" != xno; then
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15305 $as_echo "yes" >&6; }
15306 have_python_mako=yes
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15309 $as_echo "no" >&6; }
15310 have_python_mako=no
15315 if test x$enable_doctool = xauto && test x$have_python_mako = xyes ; then :
15317 elif test x$enable_doctool = xauto && test x$have_python_mako = xno ; then :
15319 elif test x$enable_doctool = xyes && test x$have_python_mako = xno ; then :
15320 as_fn_error $? "Python mako module not found" "$LINENO" 5
15322 if test x$enable_doctool != xno; then
15323 BUILD_DOCTOOL_TRUE=
15324 BUILD_DOCTOOL_FALSE='#'
15326 BUILD_DOCTOOL_TRUE='#'
15327 BUILD_DOCTOOL_FALSE=
15331 # Glib documentation
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib source directory to use for documentation" >&5
15335 $as_echo_n "checking for glib source directory to use for documentation... " >&6; }
15338 # Check whether --with-glib-src was given.
15339 if test "${with_glib_src+set}" = set; then :
15340 withval=$with_glib_src; GLIBSRC=$withval
15344 if test x"$GLIBSRC" != x; then
15346 WITH_GLIBSRC_FALSE='#'
15348 WITH_GLIBSRC_TRUE='#'
15349 WITH_GLIBSRC_FALSE=
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIBSRC" >&5
15354 $as_echo "$GLIBSRC" >&6; }
15356 GI_HIDDEN_VISIBILITY_CFLAGS=""
15360 $as_echo "#define _GI_EXTERN __attribute__((visibility(\"default\"))) __declspec(dllexport) extern" >>confdefs.h
15362 CFLAGS="${CFLAGS} -fvisibility=hidden"
15365 SAVED_CFLAGS="${CFLAGS}"
15366 CFLAGS="-fvisibility=hidden"
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fvisibility=hidden compiler flag" >&5
15368 $as_echo_n "checking for -fvisibility=hidden compiler flag... " >&6; }
15369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15370 /* end confdefs.h. */
15375 int main (void) { return 0; }
15380 if ac_fn_c_try_compile "$LINENO"; then :
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15382 $as_echo "yes" >&6; }
15383 enable_fvisibility_hidden=yes
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15386 $as_echo "no" >&6; }
15387 enable_fvisibility_hidden=no
15389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15390 CFLAGS="${SAVED_CFLAGS}"
15392 if test "${enable_fvisibility_hidden}" = "yes"; then :
15395 $as_echo "#define _GI_EXTERN __attribute__((visibility(\"default\"))) extern" >>confdefs.h
15397 GI_HIDDEN_VISIBILITY_CFLAGS="-fvisibility=hidden"
15404 # Check whether --enable-Bsymbolic was given.
15405 if test "${enable_Bsymbolic+set}" = set; then :
15406 enableval=$enable_Bsymbolic;
15408 SAVED_LDFLAGS="${LDFLAGS}"
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic-functions linker flag" >&5
15410 $as_echo_n "checking for -Bsymbolic-functions linker flag... " >&6; }
15411 LDFLAGS=-Wl,-Bsymbolic-functions
15412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15413 /* end confdefs.h. */
15418 int main (void) { return 0; }
15423 if ac_fn_c_try_link "$LINENO"; then :
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15425 $as_echo "yes" >&6; }
15426 enable_Bsymbolic=yes
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15429 $as_echo "no" >&6; }
15430 enable_Bsymbolic=no
15432 rm -f core conftest.err conftest.$ac_objext \
15433 conftest$ac_exeext conftest.$ac_ext
15434 LDFLAGS="${SAVED_LDFLAGS}"
15438 if test "x${enable_Bsymbolic}" = "xyes"; then
15439 EXTRA_LINK_FLAGS=-Wl,-Bsymbolic-functions
15444 ac_config_files="$ac_config_files Makefile tests/Makefile tests/offsets/Makefile tests/scanner/Makefile tests/scanner/annotationparser/Makefile tests/repository/Makefile tests/warn/Makefile docs/Makefile docs/reference/Makefile docs/reference/version.xml gobject-introspection-1.0.pc gobject-introspection-no-export-1.0.pc config.h.win32 build/Makefile build/win32/Makefile build/win32/vs9/Makefile build/win32/vs9/gi-version-paths.vsprops build/win32/vs10/Makefile build/win32/vs10/gi-version-paths.props build/win32/vs11/Makefile build/win32/vs12/Makefile build/win32/vs14/Makefile"
15446 cat >confcache <<\_ACEOF
15447 # This file is a shell script that caches the results of configure
15448 # tests run on this system so they can be shared between configure
15449 # scripts and configure runs, see configure's option --config-cache.
15450 # It is not useful on other systems. If it contains results you don't
15451 # want to keep, you may remove or edit it.
15453 # config.status only pays attention to the cache file if you give it
15454 # the --recheck option to rerun configure.
15456 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15457 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15458 # following values.
15462 # The following way of writing the cache mishandles newlines in values,
15463 # but we know of no workaround that is simple, portable, and efficient.
15464 # So, we kill variables containing newlines.
15465 # Ultrix sh set writes to stderr and can't be redirected directly,
15466 # and sets the high bit in the cache file unless we assign to the vars.
15468 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15469 eval ac_val=\$$ac_var
15473 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15474 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15477 _ | IFS | as_nl) ;; #(
15478 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15479 *) { eval $ac_var=; unset $ac_var;} ;;
15485 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15486 *${as_nl}ac_space=\ *)
15487 # `set' does not quote correctly, so add quotes: double-quote
15488 # substitution turns \\\\ into \\, and sed turns \\ into \.
15491 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15494 # `set' quotes correctly as required by POSIX, so do not add quotes.
15495 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15504 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15506 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15508 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15509 if test -w "$cache_file"; then
15510 if test "x$cache_file" != "x/dev/null"; then
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15512 $as_echo "$as_me: updating cache $cache_file" >&6;}
15513 if test ! -f "$cache_file" || test -h "$cache_file"; then
15514 cat confcache >"$cache_file"
15516 case $cache_file in #(
15518 mv -f confcache "$cache_file"$$ &&
15519 mv -f "$cache_file"$$ "$cache_file" ;; #(
15521 mv -f confcache "$cache_file" ;;
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15527 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15532 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15533 # Let make expand exec_prefix.
15534 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15536 DEFS=-DHAVE_CONFIG_H
15541 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15542 # 1. Remove the extension, and $U if already installed.
15543 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15544 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15545 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15546 # will be set to the directory where LIBOBJS objects are built.
15547 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15548 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15550 LIBOBJS=$ac_libobjs
15552 LTLIBOBJS=$ac_ltlibobjs
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15556 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15557 if test -n "$am_sleep_pid"; then
15558 # Hide warnings about reused PIDs.
15559 wait $am_sleep_pid 2>/dev/null
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15562 $as_echo "done" >&6; }
15563 if test -n "$EXEEXT"; then
15565 am__EXEEXT_FALSE='#'
15567 am__EXEEXT_TRUE='#'
15571 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15572 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15575 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
15576 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
15577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15579 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15580 as_fn_error $? "conditional \"AMDEP\" was never defined.
15581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15583 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15584 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15587 if test -z "${HAVE_GIO_UNIX_TRUE}" && test -z "${HAVE_GIO_UNIX_FALSE}"; then
15588 as_fn_error $? "conditional \"HAVE_GIO_UNIX\" was never defined.
15589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15591 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
15592 as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
15593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15595 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
15596 as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
15597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15599 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
15600 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
15601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15603 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
15604 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
15605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15607 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
15608 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
15609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15611 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
15612 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
15613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15615 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
15616 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
15617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15619 if test -z "${BUILD_DOCTOOL_TRUE}" && test -z "${BUILD_DOCTOOL_FALSE}"; then
15620 as_fn_error $? "conditional \"BUILD_DOCTOOL\" was never defined.
15621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15623 if test -z "${WITH_GLIBSRC_TRUE}" && test -z "${WITH_GLIBSRC_FALSE}"; then
15624 as_fn_error $? "conditional \"WITH_GLIBSRC\" was never defined.
15625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15628 : "${CONFIG_STATUS=./config.status}"
15630 ac_clean_files_save=$ac_clean_files
15631 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15633 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15635 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15637 # Generated by $as_me.
15638 # Run this file to recreate the current configuration.
15639 # Compiler output produced by configure, useful for debugging
15640 # configure, is in config.log if it exists.
15643 ac_cs_recheck=false
15646 SHELL=\${CONFIG_SHELL-$SHELL}
15649 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15650 ## -------------------- ##
15651 ## M4sh Initialization. ##
15652 ## -------------------- ##
15654 # Be more Bourne compatible
15655 DUALCASE=1; export DUALCASE # for MKS sh
15656 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15659 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15660 # is contrary to our usage. Disable this feature.
15661 alias -g '${1+"$@"}'='"$@"'
15662 setopt NO_GLOB_SUBST
15664 case `(set -o) 2>/dev/null` in #(
15676 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15677 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15678 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15679 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15680 # Prefer a ksh shell builtin over an external printf program on Solaris,
15681 # but without wasting forks for bash or zsh.
15682 if test -z "$BASH_VERSION$ZSH_VERSION" \
15683 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15684 as_echo='print -r --'
15685 as_echo_n='print -rn --'
15686 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15687 as_echo='printf %s\n'
15688 as_echo_n='printf %s'
15690 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15691 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15692 as_echo_n='/usr/ucb/echo -n'
15694 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15695 as_echo_n_body='eval
15699 expr "X$arg" : "X\\(.*\\)$as_nl";
15700 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15702 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15704 export as_echo_n_body
15705 as_echo_n='sh -c $as_echo_n_body as_echo'
15707 export as_echo_body
15708 as_echo='sh -c $as_echo_body as_echo'
15711 # The user is always right.
15712 if test "${PATH_SEPARATOR+set}" != set; then
15714 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15715 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15722 # We need space, tab and new line, in precisely that order. Quoting is
15723 # there to prevent editors from complaining about space-tab.
15724 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15725 # splitting by setting IFS to empty value.)
15728 # Find who we are. Look in the path if we contain no directory separator.
15731 *[\\/]* ) as_myself=$0 ;;
15732 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15733 for as_dir in $PATH
15736 test -z "$as_dir" && as_dir=.
15737 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15743 # We did not find ourselves, most probably we were run as `sh COMMAND'
15744 # in which case we are not to be found in the path.
15745 if test "x$as_myself" = x; then
15748 if test ! -f "$as_myself"; then
15749 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15753 # Unset variables that we do not need and which cause bugs (e.g. in
15754 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15755 # suppresses any "Segmentation fault" message there. '((' could
15756 # trigger a bug in pdksh 5.2.14.
15757 for as_var in BASH_ENV ENV MAIL MAILPATH
15758 do eval test x\${$as_var+set} = xset \
15759 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15772 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15775 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15776 # ----------------------------------------
15777 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15778 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15779 # script with STATUS, using 1 if that was 0.
15782 as_status=$1; test $as_status -eq 0 && as_status=1
15784 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15785 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15787 $as_echo "$as_me: error: $2" >&2
15788 as_fn_exit $as_status
15792 # as_fn_set_status STATUS
15793 # -----------------------
15794 # Set $? to STATUS, without forking.
15795 as_fn_set_status ()
15798 } # as_fn_set_status
15800 # as_fn_exit STATUS
15801 # -----------------
15802 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15806 as_fn_set_status $1
15812 # Portably unset VAR.
15815 { eval $1=; unset $1;}
15817 as_unset=as_fn_unset
15818 # as_fn_append VAR VALUE
15819 # ----------------------
15820 # Append the text in VALUE to the end of the definition contained in VAR. Take
15821 # advantage of any shell optimizations that allow amortized linear growth over
15822 # repeated appends, instead of the typical quadratic growth present in naive
15824 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15825 eval 'as_fn_append ()
15836 # as_fn_arith ARG...
15837 # ------------------
15838 # Perform arithmetic evaluation on the ARGs, and store the result in the
15839 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15840 # must be portable across $(()) and expr.
15841 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15842 eval 'as_fn_arith ()
15849 as_val=`expr "$@" || test $? -eq 1`
15854 if expr a : '\(a\)' >/dev/null 2>&1 &&
15855 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15861 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15862 as_basename=basename
15867 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15873 as_me=`$as_basename -- "$0" ||
15874 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15875 X"$0" : 'X\(//\)$' \| \
15876 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15878 sed '/^.*\/\([^/][^/]*\)\/*$/{
15892 # Avoid depending upon Character Ranges.
15893 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15894 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15895 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15896 as_cr_digits='0123456789'
15897 as_cr_alnum=$as_cr_Letters$as_cr_digits
15899 ECHO_C= ECHO_N= ECHO_T=
15900 case `echo -n x` in #(((((
15902 case `echo 'xy\c'` in
15903 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15905 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15912 rm -f conf$$ conf$$.exe conf$$.file
15913 if test -d conf$$.dir; then
15914 rm -f conf$$.dir/conf$$.file
15917 mkdir conf$$.dir 2>/dev/null
15919 if (echo >conf$$.file) 2>/dev/null; then
15920 if ln -s conf$$.file conf$$ 2>/dev/null; then
15922 # ... but there are two gotchas:
15923 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15924 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15925 # In both cases, we have to default to `cp -pR'.
15926 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15928 elif ln conf$$.file conf$$ 2>/dev/null; then
15936 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15937 rmdir conf$$.dir 2>/dev/null
15942 # Create "$as_dir" as a directory, including parents if necessary.
15947 -*) as_dir=./$as_dir;;
15949 test -d "$as_dir" || eval $as_mkdir_p || {
15953 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15954 *) as_qdir=$as_dir;;
15956 as_dirs="'$as_qdir' $as_dirs"
15957 as_dir=`$as_dirname -- "$as_dir" ||
15958 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15959 X"$as_dir" : 'X\(//\)[^/]' \| \
15960 X"$as_dir" : 'X\(//\)$' \| \
15961 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15962 $as_echo X"$as_dir" |
15963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15967 /^X\(\/\/\)[^/].*/{
15980 test -d "$as_dir" && break
15982 test -z "$as_dirs" || eval "mkdir $as_dirs"
15983 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15987 if mkdir -p . 2>/dev/null; then
15988 as_mkdir_p='mkdir -p "$as_dir"'
15990 test -d ./-p && rmdir ./-p
15995 # as_fn_executable_p FILE
15996 # -----------------------
15997 # Test if FILE is an executable regular file.
15998 as_fn_executable_p ()
16000 test -f "$1" && test -x "$1"
16001 } # as_fn_executable_p
16002 as_test_x='test -x'
16003 as_executable_p=as_fn_executable_p
16005 # Sed expression to map a string onto a valid CPP name.
16006 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16008 # Sed expression to map a string onto a valid variable name.
16009 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16013 ## ----------------------------------- ##
16014 ## Main body of $CONFIG_STATUS script. ##
16015 ## ----------------------------------- ##
16017 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16020 # Save the log message, to keep $0 and so on meaningful, and to
16021 # report actual input values of CONFIG_FILES etc. instead of their
16022 # values after options handling.
16024 This file was extended by gobject-introspection $as_me 1.49.1, which was
16025 generated by GNU Autoconf 2.69. Invocation command line was
16027 CONFIG_FILES = $CONFIG_FILES
16028 CONFIG_HEADERS = $CONFIG_HEADERS
16029 CONFIG_LINKS = $CONFIG_LINKS
16030 CONFIG_COMMANDS = $CONFIG_COMMANDS
16033 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16038 case $ac_config_files in *"
16039 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16042 case $ac_config_headers in *"
16043 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16048 # Files that config.status was made for.
16049 config_files="$ac_config_files"
16050 config_headers="$ac_config_headers"
16051 config_commands="$ac_config_commands"
16055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16057 \`$as_me' instantiates files and other configuration actions
16058 from templates according to the current configuration. Unless the files
16059 and actions are specified as TAGs, all are instantiated by default.
16061 Usage: $0 [OPTION]... [TAG]...
16063 -h, --help print this help, then exit
16064 -V, --version print version number and configuration settings, then exit
16065 --config print configuration, then exit
16066 -q, --quiet, --silent
16067 do not print progress messages
16068 -d, --debug don't remove temporary files
16069 --recheck update $as_me by reconfiguring in the same conditions
16070 --file=FILE[:TEMPLATE]
16071 instantiate the configuration file FILE
16072 --header=FILE[:TEMPLATE]
16073 instantiate the configuration header FILE
16075 Configuration files:
16078 Configuration headers:
16081 Configuration commands:
16084 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gobject-introspection>."
16087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16088 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16090 gobject-introspection config.status 1.49.1
16091 configured by $0, generated by GNU Autoconf 2.69,
16092 with options \\"\$ac_cs_config\\"
16094 Copyright (C) 2012 Free Software Foundation, Inc.
16095 This config.status script is free software; the Free Software Foundation
16096 gives unlimited permission to copy, distribute and modify it."
16103 test -n "\$AWK" || AWK=awk
16106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16107 # The default lists apply if the user does not specify any file.
16113 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16114 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16118 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16130 # Handling of the options.
16131 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16133 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16134 $as_echo "$ac_cs_version"; exit ;;
16135 --config | --confi | --conf | --con | --co | --c )
16136 $as_echo "$ac_cs_config"; exit ;;
16137 --debug | --debu | --deb | --de | --d | -d )
16139 --file | --fil | --fi | --f )
16142 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16143 '') as_fn_error $? "missing file argument" ;;
16145 as_fn_append CONFIG_FILES " '$ac_optarg'"
16146 ac_need_defaults=false;;
16147 --header | --heade | --head | --hea )
16150 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16152 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16153 ac_need_defaults=false;;
16155 # Conflict between --help and --header
16156 as_fn_error $? "ambiguous option: \`$1'
16157 Try \`$0 --help' for more information.";;
16158 --help | --hel | -h )
16159 $as_echo "$ac_cs_usage"; exit ;;
16160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16161 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16164 # This is an error.
16165 -*) as_fn_error $? "unrecognized option: \`$1'
16166 Try \`$0 --help' for more information." ;;
16168 *) as_fn_append ac_config_targets " $1"
16169 ac_need_defaults=false ;;
16175 ac_configure_extra_args=
16177 if $ac_cs_silent; then
16179 ac_configure_extra_args="$ac_configure_extra_args --silent"
16183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16184 if \$ac_cs_recheck; then
16185 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16187 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16188 CONFIG_SHELL='$SHELL'
16189 export CONFIG_SHELL
16194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16198 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16199 ## Running $as_me. ##
16205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16209 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16212 # The HP-UX ksh and POSIX shell print the target directory to stdout
16213 # if CDPATH is set.
16214 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16216 sed_quote_subst='$sed_quote_subst'
16217 double_quote_subst='$double_quote_subst'
16218 delay_variable_subst='$delay_variable_subst'
16219 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16220 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16221 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16222 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16223 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16224 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16225 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16226 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16227 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16228 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16229 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16230 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16231 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16232 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16233 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16234 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16235 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16236 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16237 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16238 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16239 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16240 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16241 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16242 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16243 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16244 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16245 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16246 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16247 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16248 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16249 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16250 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16251 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16252 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16253 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16254 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16255 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16256 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16257 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16258 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16259 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16260 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16261 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16262 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16263 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16264 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16265 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16266 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16267 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16268 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16269 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16270 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16271 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16272 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16273 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16274 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16275 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16276 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16277 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16278 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16279 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16280 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16281 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16282 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16283 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16284 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16285 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16286 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16287 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16288 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16289 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16290 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16291 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16292 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16293 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16294 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16295 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16296 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16297 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16298 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16299 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16300 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16301 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16302 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16303 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16304 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16305 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16306 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16307 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16308 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16309 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16310 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16311 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16312 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16313 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16314 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16315 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16316 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16317 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16318 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16319 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16320 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16321 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16322 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16323 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16324 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16325 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16326 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16327 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16328 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16329 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16330 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16331 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16332 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16333 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16334 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16335 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16336 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16337 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16338 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16339 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16340 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16341 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16342 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16343 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16344 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16345 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16346 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16347 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16348 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16349 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16350 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16351 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16352 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16353 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16356 LTCFLAGS='$LTCFLAGS'
16357 compiler='$compiler_DEFAULT'
16359 # A function that is used when there is no print builtin or printf.
16360 func_fallback_echo ()
16362 eval 'cat <<_LTECHO_EOF
16367 # Quote evaled strings.
16382 deplibs_check_method \
16387 sharedlib_from_linklib_cmd \
16390 archiver_list_spec \
16396 lt_cv_sys_global_symbol_pipe \
16397 lt_cv_sys_global_symbol_to_cdecl \
16398 lt_cv_sys_global_symbol_to_import \
16399 lt_cv_sys_global_symbol_to_c_name_address \
16400 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16401 lt_cv_nm_interface \
16402 nm_file_list_spec \
16403 lt_cv_truncate_bin \
16404 lt_prog_compiler_no_builtin_flag \
16405 lt_prog_compiler_pic \
16406 lt_prog_compiler_wl \
16407 lt_prog_compiler_static \
16408 lt_cv_prog_compiler_c_o \
16417 export_dynamic_flag_spec \
16418 whole_archive_flag_spec \
16419 compiler_needs_object \
16421 allow_undefined_flag \
16422 no_undefined_flag \
16423 hardcode_libdir_flag_spec \
16424 hardcode_libdir_separator \
16428 variables_saved_for_relink \
16430 library_names_spec \
16432 install_override_mode \
16436 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16437 *[\\\\\\\`\\"\\\$]*)
16438 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16441 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16446 # Double-quote double-evaled strings.
16447 for var in reload_cmds \
16448 old_postinstall_cmds \
16449 old_postuninstall_cmds \
16451 extract_expsyms_cmds \
16452 old_archive_from_new_cmds \
16453 old_archive_from_expsyms_cmds \
16455 archive_expsym_cmds \
16457 module_expsym_cmds \
16458 export_symbols_cmds \
16462 postuninstall_cmds \
16464 sys_lib_search_path_spec \
16465 configure_time_dlsearch_path \
16466 configure_time_lt_sys_library_path; do
16467 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16468 *[\\\\\\\`\\"\\\$]*)
16469 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16472 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16477 ac_aux_dir='$ac_aux_dir'
16479 # See if we are running on zsh, and set the options that allow our
16480 # commands through without removal of \ escapes INIT.
16481 if test -n "\${ZSH_VERSION+set}"; then
16482 setopt NO_GLOB_SUBST
16496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16498 # Handling of arguments.
16499 for ac_config_target in $ac_config_targets
16501 case $ac_config_target in
16502 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16503 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16504 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16505 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16506 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16507 "tests/offsets/Makefile") CONFIG_FILES="$CONFIG_FILES tests/offsets/Makefile" ;;
16508 "tests/scanner/Makefile") CONFIG_FILES="$CONFIG_FILES tests/scanner/Makefile" ;;
16509 "tests/scanner/annotationparser/Makefile") CONFIG_FILES="$CONFIG_FILES tests/scanner/annotationparser/Makefile" ;;
16510 "tests/repository/Makefile") CONFIG_FILES="$CONFIG_FILES tests/repository/Makefile" ;;
16511 "tests/warn/Makefile") CONFIG_FILES="$CONFIG_FILES tests/warn/Makefile" ;;
16512 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
16513 "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
16514 "docs/reference/version.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/version.xml" ;;
16515 "gobject-introspection-1.0.pc") CONFIG_FILES="$CONFIG_FILES gobject-introspection-1.0.pc" ;;
16516 "gobject-introspection-no-export-1.0.pc") CONFIG_FILES="$CONFIG_FILES gobject-introspection-no-export-1.0.pc" ;;
16517 "config.h.win32") CONFIG_FILES="$CONFIG_FILES config.h.win32" ;;
16518 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
16519 "build/win32/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/Makefile" ;;
16520 "build/win32/vs9/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs9/Makefile" ;;
16521 "build/win32/vs9/gi-version-paths.vsprops") CONFIG_FILES="$CONFIG_FILES build/win32/vs9/gi-version-paths.vsprops" ;;
16522 "build/win32/vs10/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs10/Makefile" ;;
16523 "build/win32/vs10/gi-version-paths.props") CONFIG_FILES="$CONFIG_FILES build/win32/vs10/gi-version-paths.props" ;;
16524 "build/win32/vs11/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs11/Makefile" ;;
16525 "build/win32/vs12/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs12/Makefile" ;;
16526 "build/win32/vs14/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs14/Makefile" ;;
16528 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16533 # If the user did not use the arguments to specify the items to instantiate,
16534 # then the envvar interface is used. Set only those that are not.
16535 # We use the long form for the default assignment because of an extremely
16536 # bizarre bug on SunOS 4.1.3.
16537 if $ac_need_defaults; then
16538 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16539 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16540 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16543 # Have a temporary directory for convenience. Make it in the build tree
16544 # simply because there is no reason against having it here, and in addition,
16545 # creating and moving files from /tmp can sometimes cause problems.
16546 # Hook for its removal unless debugging.
16547 # Note that there is a small window in which the directory will not be cleaned:
16548 # after its creation but before its name has been assigned to `$tmp'.
16552 trap 'exit_status=$?
16553 : "${ac_tmp:=$tmp}"
16554 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16556 trap 'as_fn_exit 1' 1 2 13 15
16558 # Create a (secure) tmp directory for tmp files.
16561 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16565 tmp=./conf$$-$RANDOM
16566 (umask 077 && mkdir "$tmp")
16567 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16570 # Set up the scripts for CONFIG_FILES section.
16571 # No need to generate them if there are no CONFIG_FILES.
16572 # This happens for instance with `./config.status config.h'.
16573 if test -n "$CONFIG_FILES"; then
16576 ac_cr=`echo X | tr X '\015'`
16577 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16578 # But we know of no other shell where ac_cr would be empty at this
16579 # point, so we can use a bashism as a fallback.
16580 if test "x$ac_cr" = x; then
16581 eval ac_cr=\$\'\\r\'
16583 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16584 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16587 ac_cs_awk_cr=$ac_cr
16590 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16595 echo "cat >conf$$subs.awk <<_ACEOF" &&
16596 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16598 } >conf$$subs.sh ||
16599 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16600 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16602 for ac_last_try in false false false false false :; do
16603 . ./conf$$subs.sh ||
16604 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16606 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16607 if test $ac_delim_n = $ac_delim_num; then
16609 elif $ac_last_try; then
16610 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16612 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16615 rm -f conf$$subs.sh
16617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16618 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16622 s/^/S["/; s/!.*/"]=/
16632 s/\(.\{148\}\)..*/\1/
16634 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16639 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16646 s/\(.\{148\}\)..*/\1/
16648 s/["\\]/\\&/g; s/^/"/; s/$/"/
16652 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16657 ' <conf$$subs.awk | sed '
16662 ' >>$CONFIG_STATUS || ac_write_fail=1
16663 rm -f conf$$subs.awk
16664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16666 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16667 for (key in S) S_is_set[key] = 1
16673 nfields = split(line, field, "@")
16675 len = length(field[1])
16676 for (i = 2; i < nfields; i++) {
16678 keylen = length(key)
16679 if (S_is_set[key]) {
16681 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16682 len += length(value) + length(field[++i])
16693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16694 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16695 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16698 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16699 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16702 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16703 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16704 # trailing colons and then remove the whole line if VPATH becomes empty
16705 # (actually we leave an empty line to preserve line numbers).
16706 if test "x$srcdir" = x.; then
16707 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16726 fi # test -n "$CONFIG_FILES"
16728 # Set up the scripts for CONFIG_HEADERS section.
16729 # No need to generate them if there are no CONFIG_HEADERS.
16730 # This happens for instance with `./config.status Makefile'.
16731 if test -n "$CONFIG_HEADERS"; then
16732 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16736 # Transform confdefs.h into an awk script `defines.awk', embedded as
16737 # here-document in config.status, that substitutes the proper values into
16738 # config.h.in to produce config.h.
16740 # Create a delimiter string that does not exist in confdefs.h, to ease
16741 # handling of long lines.
16743 for ac_last_try in false false :; do
16744 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16745 if test -z "$ac_tt"; then
16747 elif $ac_last_try; then
16748 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16750 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16754 # For the awk script, D is an array of macro values keyed by name,
16755 # likewise P contains macro parameters if any. Preserve backslash
16756 # newline sequences.
16758 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16760 s/.\{148\}/&'"$ac_delim"'/g
16763 s/^[ ]*#[ ]*define[ ][ ]*/ /
16770 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16772 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16776 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16777 D["\1"]=" \3\\\\\\n"\\/p
16779 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16784 s/.\{148\}/&'"$ac_delim"'/g
16789 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16792 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16794 ' <confdefs.h | sed '
16795 s/'"$ac_delim"'/"\\\
16796 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16799 for (key in D) D_is_set[key] = 1
16802 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16804 split(line, arg, " ")
16805 if (arg[1] == "#") {
16809 defundef = substr(arg[1], 2)
16812 split(mac1, mac2, "(") #)
16814 prefix = substr(line, 1, index(line, defundef) - 1)
16815 if (D_is_set[macro]) {
16816 # Preserve the white space surrounding the "#".
16817 print prefix "define", macro P[macro] D[macro]
16820 # Replace #undef with comments. This is necessary, for example,
16821 # in the case of _POSIX_SOURCE, which is predefined and required
16822 # on some systems where configure will not decide to define it.
16823 if (defundef == "undef") {
16824 print "/*", prefix defundef, macro, "*/"
16832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16833 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16834 fi # test -n "$CONFIG_HEADERS"
16837 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16842 :[FHLC]) ac_mode=$ac_tag; continue;;
16844 case $ac_mode$ac_tag in
16846 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16847 :[FH]-) ac_tag=-:-;;
16848 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16865 -) ac_f="$ac_tmp/stdin";;
16866 *) # Look for the file first in the build tree, then in the source tree
16867 # (if the path is not absolute). The absolute path cannot be DOS-style,
16868 # because $ac_f cannot contain `:'.
16872 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16874 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16876 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16877 as_fn_append ac_file_inputs " '$ac_f'"
16880 # Let's still pretend it is `configure' which instantiates (i.e., don't
16881 # use $as_me), people would be surprised to read:
16882 # /* config.h. Generated by config.status. */
16883 configure_input='Generated from '`
16884 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16886 if test x"$ac_file" != x-; then
16887 configure_input="$ac_file. $configure_input"
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16889 $as_echo "$as_me: creating $ac_file" >&6;}
16891 # Neutralize special characters interpreted by sed in replacement strings.
16892 case $configure_input in #(
16893 *\&* | *\|* | *\\* )
16894 ac_sed_conf_input=`$as_echo "$configure_input" |
16895 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16896 *) ac_sed_conf_input=$configure_input;;
16900 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16901 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16906 ac_dir=`$as_dirname -- "$ac_file" ||
16907 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16908 X"$ac_file" : 'X\(//\)[^/]' \| \
16909 X"$ac_file" : 'X\(//\)$' \| \
16910 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16911 $as_echo X"$ac_file" |
16912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16916 /^X\(\/\/\)[^/].*/{
16929 as_dir="$ac_dir"; as_fn_mkdir_p
16933 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16935 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16936 # A ".." for each directory in $ac_dir_suffix.
16937 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16938 case $ac_top_builddir_sub in
16939 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16940 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16943 ac_abs_top_builddir=$ac_pwd
16944 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16945 # for backward compatibility:
16946 ac_top_builddir=$ac_top_build_prefix
16949 .) # We are building in place.
16951 ac_top_srcdir=$ac_top_builddir_sub
16952 ac_abs_top_srcdir=$ac_pwd ;;
16953 [\\/]* | ?:[\\/]* ) # Absolute name.
16954 ac_srcdir=$srcdir$ac_dir_suffix;
16955 ac_top_srcdir=$srcdir
16956 ac_abs_top_srcdir=$srcdir ;;
16957 *) # Relative name.
16958 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16959 ac_top_srcdir=$ac_top_build_prefix$srcdir
16960 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16962 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16972 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16973 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16975 ac_MKDIR_P=$MKDIR_P
16977 [\\/$]* | ?:[\\/]* ) ;;
16978 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16983 # If the template does not know about datarootdir, expand it.
16984 # FIXME: This hack should be removed a few years after 2.60.
16985 ac_datarootdir_hack=; ac_datarootdir_seen=
16996 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16997 *datarootdir*) ac_datarootdir_seen=yes;;
16998 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17000 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17003 ac_datarootdir_hack='
17004 s&@datadir@&$datadir&g
17005 s&@docdir@&$docdir&g
17006 s&@infodir@&$infodir&g
17007 s&@localedir@&$localedir&g
17008 s&@mandir@&$mandir&g
17009 s&\\\${datarootdir}&$datarootdir&g' ;;
17013 # Neutralize VPATH when `$srcdir' = `.'.
17014 # Shell code in configure.ac might set extrasub.
17015 # FIXME: do we really want to maintain this feature?
17016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17017 ac_sed_extra="$ac_vpsub
17020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17022 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17023 s|@configure_input@|$ac_sed_conf_input|;t t
17024 s&@top_builddir@&$ac_top_builddir_sub&;t t
17025 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17026 s&@srcdir@&$ac_srcdir&;t t
17027 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17028 s&@top_srcdir@&$ac_top_srcdir&;t t
17029 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17030 s&@builddir@&$ac_builddir&;t t
17031 s&@abs_builddir@&$ac_abs_builddir&;t t
17032 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17033 s&@INSTALL@&$ac_INSTALL&;t t
17034 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17035 $ac_datarootdir_hack
17037 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17038 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17040 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17041 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17042 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17043 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17045 which seems to be undefined. Please make sure it is defined" >&5
17046 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17047 which seems to be undefined. Please make sure it is defined" >&2;}
17049 rm -f "$ac_tmp/stdin"
17051 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17052 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17054 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17060 if test x"$ac_file" != x-; then
17062 $as_echo "/* $configure_input */" \
17063 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17064 } >"$ac_tmp/config.h" \
17065 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17066 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17068 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17071 mv "$ac_tmp/config.h" "$ac_file" \
17072 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17075 $as_echo "/* $configure_input */" \
17076 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17077 || as_fn_error $? "could not create -" "$LINENO" 5
17079 # Compute "$ac_file"'s index in $config_headers.
17082 for _am_header in $config_headers :; do
17083 case $_am_header in
17084 $_am_arg | $_am_arg:* )
17087 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17090 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17091 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17092 X"$_am_arg" : 'X\(//\)[^/]' \| \
17093 X"$_am_arg" : 'X\(//\)$' \| \
17094 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17095 $as_echo X"$_am_arg" |
17096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17100 /^X\(\/\/\)[^/].*/{
17112 s/.*/./; q'`/stamp-h$_am_stamp_count
17115 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17116 $as_echo "$as_me: executing $ac_file commands" >&6;}
17121 case $ac_file$ac_mode in
17122 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17123 # Older Autoconf quotes --file arguments for eval, but not when files
17124 # are listed without --file. Let's play safe and only enable the eval
17125 # if we detect the quoting.
17126 case $CONFIG_FILES in
17127 *\'*) eval set x "$CONFIG_FILES" ;;
17128 *) set x $CONFIG_FILES ;;
17133 # Strip MF so we end up with the name of the file.
17134 mf=`echo "$mf" | sed -e 's/:.*$//'`
17135 # Check whether this is an Automake generated Makefile or not.
17136 # We used to match only the files named 'Makefile.in', but
17137 # some people rename them; so instead we look at the file content.
17138 # Grep'ing the first line is not enough: some people post-process
17139 # each Makefile.in and add a new line on top of each file to say so.
17140 # Grep'ing the whole file is not good either: AIX grep has a line
17141 # limit of 2048, but all sed's we know have understand at least 4000.
17142 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17143 dirpart=`$as_dirname -- "$mf" ||
17144 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17145 X"$mf" : 'X\(//\)[^/]' \| \
17146 X"$mf" : 'X\(//\)$' \| \
17147 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17153 /^X\(\/\/\)[^/].*/{
17169 # Extract the definition of DEPDIR, am__include, and am__quote
17170 # from the Makefile without running 'make'.
17171 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17172 test -z "$DEPDIR" && continue
17173 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17174 test -z "$am__include" && continue
17175 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17176 # Find all dependency output files, they are included files with
17177 # $(DEPDIR) in their names. We invoke sed twice because it is the
17178 # simplest approach to changing $(DEPDIR) to its actual value in the
17180 for file in `sed -n "
17181 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17182 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17183 # Make sure the directory exists.
17184 test -f "$dirpart/$file" && continue
17185 fdir=`$as_dirname -- "$file" ||
17186 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17187 X"$file" : 'X\(//\)[^/]' \| \
17188 X"$file" : 'X\(//\)$' \| \
17189 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17190 $as_echo X"$file" |
17191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17195 /^X\(\/\/\)[^/].*/{
17208 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17209 # echo "creating $dirpart/$file"
17210 echo '# dummy' > "$dirpart/$file"
17217 # See if we are running on zsh, and set the options that allow our
17218 # commands through without removal of \ escapes.
17219 if test -n "${ZSH_VERSION+set}"; then
17220 setopt NO_GLOB_SUBST
17224 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17227 cat <<_LT_EOF >> "$cfgfile"
17229 # Generated automatically by $as_me ($PACKAGE) $VERSION
17230 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17231 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17233 # Provide generalized library-building support services.
17234 # Written by Gordon Matzigkeit, 1996
17236 # Copyright (C) 2014 Free Software Foundation, Inc.
17237 # This is free software; see the source for copying conditions. There is NO
17238 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17240 # GNU Libtool is free software; you can redistribute it and/or modify
17241 # it under the terms of the GNU General Public License as published by
17242 # the Free Software Foundation; either version 2 of of the License, or
17243 # (at your option) any later version.
17245 # As a special exception to the GNU General Public License, if you
17246 # distribute this file as part of a program or library that is built
17247 # using GNU Libtool, you may include this file under the same
17248 # distribution terms that you use for the rest of that program.
17250 # GNU Libtool is distributed in the hope that it will be useful, but
17251 # WITHOUT ANY WARRANTY; without even the implied warranty of
17252 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17253 # GNU General Public License for more details.
17255 # You should have received a copy of the GNU General Public License
17256 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17259 # The names of the tagged configurations supported by this script.
17262 # Configured defaults for sys_lib_dlsearch_path munging.
17263 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17265 # ### BEGIN LIBTOOL CONFIG
17267 # Which release of libtool.m4 was used?
17268 macro_version=$macro_version
17269 macro_revision=$macro_revision
17271 # Whether or not to build shared libraries.
17272 build_libtool_libs=$enable_shared
17274 # Whether or not to build static libraries.
17275 build_old_libs=$enable_static
17277 # What type of objects to build.
17280 # Whether or not to optimize for fast installation.
17281 fast_install=$enable_fast_install
17283 # Shared archive member basename,for filename based shared library versioning on AIX.
17284 shared_archive_member_spec=$shared_archive_member_spec
17286 # Shell to use when invoking shell scripts.
17289 # An echo program that protects backslashes.
17292 # The PATH separator for the build system.
17293 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17296 host_alias=$host_alias
17300 # The build system.
17301 build_alias=$build_alias
17305 # A sed program that does not truncate output.
17308 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17309 Xsed="\$SED -e 1s/^X//"
17311 # A grep program that handles long lines.
17317 # A literal string matcher.
17320 # A BSD- or MS-compatible name lister.
17323 # Whether we need soft or hard links.
17326 # What is the maximum length of a command?
17327 max_cmd_len=$max_cmd_len
17329 # Object file suffix (normally "o").
17332 # Executable file suffix (normally "").
17335 # whether the shell understands "unset".
17338 # turn spaces into newlines.
17341 # turn newlines into spaces.
17344 # convert \$build file names to \$host format.
17345 to_host_file_cmd=$lt_cv_to_host_file_cmd
17347 # convert \$build files to toolchain format.
17348 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17350 # An object symbol dumper.
17351 OBJDUMP=$lt_OBJDUMP
17353 # Method to check whether dependent libraries are shared objects.
17354 deplibs_check_method=$lt_deplibs_check_method
17356 # Command to use when deplibs_check_method = "file_magic".
17357 file_magic_cmd=$lt_file_magic_cmd
17359 # How to find potential files when deplibs_check_method = "file_magic".
17360 file_magic_glob=$lt_file_magic_glob
17362 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17363 want_nocaseglob=$lt_want_nocaseglob
17365 # DLL creation program.
17366 DLLTOOL=$lt_DLLTOOL
17368 # Command to associate shared and link libraries.
17369 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17374 # Flags to create an archive.
17375 AR_FLAGS=$lt_AR_FLAGS
17377 # How to feed a file listing to the archiver.
17378 archiver_list_spec=$lt_archiver_list_spec
17380 # A symbol stripping program.
17383 # Commands used to install an old-style archive.
17385 old_postinstall_cmds=$lt_old_postinstall_cmds
17386 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17388 # Whether to use a lock for old archive extraction.
17389 lock_old_archive_extraction=$lock_old_archive_extraction
17394 # LTCC compiler flags.
17395 LTCFLAGS=$lt_CFLAGS
17397 # Take the output of nm and produce a listing of raw symbols and C names.
17398 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17400 # Transform the output of nm in a proper C declaration.
17401 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17403 # Transform the output of nm into a list of symbols to manually relocate.
17404 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17406 # Transform the output of nm in a C name address pair.
17407 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17409 # Transform the output of nm in a C name address pair when lib prefix is needed.
17410 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17412 # The name lister interface.
17413 nm_interface=$lt_lt_cv_nm_interface
17415 # Specify filename containing input files for \$NM.
17416 nm_file_list_spec=$lt_nm_file_list_spec
17418 # The root where to search for dependent libraries,and where our libraries should be installed.
17419 lt_sysroot=$lt_sysroot
17421 # Command to truncate a binary pipe.
17422 lt_truncate_bin=$lt_lt_cv_truncate_bin
17424 # The name of the directory that contains temporary libtool files.
17427 # Used to examine libraries when file_magic_cmd begins with "file".
17428 MAGIC_CMD=$MAGIC_CMD
17430 # Must we lock files when doing compilation?
17431 need_locks=$lt_need_locks
17434 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17436 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17437 DSYMUTIL=$lt_DSYMUTIL
17439 # Tool to change global to local symbols on Mac OS X.
17442 # Tool to manipulate fat objects and archives on Mac OS X.
17445 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17448 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17449 OTOOL64=$lt_OTOOL64
17451 # Old archive suffix (normally "a").
17454 # Shared library suffix (normally ".so").
17455 shrext_cmds=$lt_shrext_cmds
17457 # The commands to extract the exported symbol list from a shared archive.
17458 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17460 # Variables whose values should be saved in libtool wrapper scripts and
17461 # restored at link time.
17462 variables_saved_for_relink=$lt_variables_saved_for_relink
17464 # Do we need the "lib" prefix for modules?
17465 need_lib_prefix=$need_lib_prefix
17467 # Do we need a version for libraries?
17468 need_version=$need_version
17470 # Library versioning type.
17471 version_type=$version_type
17473 # Shared library runtime path variable.
17474 runpath_var=$runpath_var
17476 # Shared library path variable.
17477 shlibpath_var=$shlibpath_var
17479 # Is shlibpath searched before the hard-coded library search path?
17480 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17482 # Format of library name prefix.
17483 libname_spec=$lt_libname_spec
17485 # List of archive names. First name is the real one, the rest are links.
17486 # The last name is the one that the linker finds with -lNAME
17487 library_names_spec=$lt_library_names_spec
17489 # The coded name of the library, if different from the real name.
17490 soname_spec=$lt_soname_spec
17492 # Permission mode override for installation of shared libraries.
17493 install_override_mode=$lt_install_override_mode
17495 # Command to use after installation of a shared archive.
17496 postinstall_cmds=$lt_postinstall_cmds
17498 # Command to use after uninstallation of a shared archive.
17499 postuninstall_cmds=$lt_postuninstall_cmds
17501 # Commands used to finish a libtool library installation in a directory.
17502 finish_cmds=$lt_finish_cmds
17504 # As "finish_cmds", except a single script fragment to be evaled but
17506 finish_eval=$lt_finish_eval
17508 # Whether we should hardcode library paths into libraries.
17509 hardcode_into_libs=$hardcode_into_libs
17511 # Compile-time system search path for libraries.
17512 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17514 # Detected run-time system search path for libraries.
17515 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17517 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17518 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17520 # Whether dlopen is supported.
17521 dlopen_support=$enable_dlopen
17523 # Whether dlopen of programs is supported.
17524 dlopen_self=$enable_dlopen_self
17526 # Whether dlopen of statically linked programs is supported.
17527 dlopen_self_static=$enable_dlopen_self_static
17529 # Commands to strip libraries.
17530 old_striplib=$lt_old_striplib
17531 striplib=$lt_striplib
17534 # The linker used to build libraries.
17537 # How to create reloadable object files.
17538 reload_flag=$lt_reload_flag
17539 reload_cmds=$lt_reload_cmds
17541 # Commands used to build an old-style archive.
17542 old_archive_cmds=$lt_old_archive_cmds
17544 # A language specific compiler.
17547 # Is the compiler the GNU compiler?
17550 # Compiler flag to turn off builtin functions.
17551 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17553 # Additional compiler flags for building library objects.
17554 pic_flag=$lt_lt_prog_compiler_pic
17556 # How to pass a linker flag through the compiler.
17557 wl=$lt_lt_prog_compiler_wl
17559 # Compiler flag to prevent dynamic linking.
17560 link_static_flag=$lt_lt_prog_compiler_static
17562 # Does compiler simultaneously support -c and -o options?
17563 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17565 # Whether or not to add -lc for building shared libraries.
17566 build_libtool_need_lc=$archive_cmds_need_lc
17568 # Whether or not to disallow shared libs when runtime libs are static.
17569 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17571 # Compiler flag to allow reflexive dlopens.
17572 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17574 # Compiler flag to generate shared objects directly from archives.
17575 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17577 # Whether the compiler copes with passing no objects directly.
17578 compiler_needs_object=$lt_compiler_needs_object
17580 # Create an old-style archive from a shared archive.
17581 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17583 # Create a temporary old-style archive to link instead of a shared archive.
17584 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17586 # Commands used to build a shared archive.
17587 archive_cmds=$lt_archive_cmds
17588 archive_expsym_cmds=$lt_archive_expsym_cmds
17590 # Commands used to build a loadable module if different from building
17591 # a shared archive.
17592 module_cmds=$lt_module_cmds
17593 module_expsym_cmds=$lt_module_expsym_cmds
17595 # Whether we are building with GNU ld or not.
17596 with_gnu_ld=$lt_with_gnu_ld
17598 # Flag that allows shared libraries with undefined symbols to be built.
17599 allow_undefined_flag=$lt_allow_undefined_flag
17601 # Flag that enforces no undefined symbols.
17602 no_undefined_flag=$lt_no_undefined_flag
17604 # Flag to hardcode \$libdir into a binary during linking.
17605 # This must work even if \$libdir does not exist
17606 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17608 # Whether we need a single "-rpath" flag with a separated argument.
17609 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17611 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17612 # DIR into the resulting binary.
17613 hardcode_direct=$hardcode_direct
17615 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17616 # DIR into the resulting binary and the resulting library dependency is
17617 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17618 # library is relocated.
17619 hardcode_direct_absolute=$hardcode_direct_absolute
17621 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17622 # into the resulting binary.
17623 hardcode_minus_L=$hardcode_minus_L
17625 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17626 # into the resulting binary.
17627 hardcode_shlibpath_var=$hardcode_shlibpath_var
17629 # Set to "yes" if building a shared library automatically hardcodes DIR
17630 # into the library and all subsequent libraries and executables linked
17632 hardcode_automatic=$hardcode_automatic
17634 # Set to yes if linker adds runtime paths of dependent libraries
17635 # to runtime path list.
17636 inherit_rpath=$inherit_rpath
17638 # Whether libtool must link a program against all its dependency libraries.
17639 link_all_deplibs=$link_all_deplibs
17641 # Set to "yes" if exported symbols are required.
17642 always_export_symbols=$always_export_symbols
17644 # The commands to list exported symbols.
17645 export_symbols_cmds=$lt_export_symbols_cmds
17647 # Symbols that should not be listed in the preloaded symbols.
17648 exclude_expsyms=$lt_exclude_expsyms
17650 # Symbols that must always be exported.
17651 include_expsyms=$lt_include_expsyms
17653 # Commands necessary for linking programs (against libraries) with templates.
17654 prelink_cmds=$lt_prelink_cmds
17656 # Commands necessary for finishing linking programs.
17657 postlink_cmds=$lt_postlink_cmds
17659 # Specify filename containing input files.
17660 file_list_spec=$lt_file_list_spec
17662 # How to hardcode a shared library path into an executable.
17663 hardcode_action=$hardcode_action
17665 # ### END LIBTOOL CONFIG
17669 cat <<'_LT_EOF' >> "$cfgfile"
17671 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17673 # func_munge_path_list VARIABLE PATH
17674 # -----------------------------------
17675 # VARIABLE is name of variable containing _space_ separated list of
17676 # directories to be munged by the contents of PATH, which is string
17679 # string "DIR[ DIR]" will be prepended to VARIABLE
17681 # string "DIR[ DIR]" will be appended to VARIABLE
17682 # "DIRP[:DIRP]::[DIRA:]DIRA"
17683 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17684 # "DIRA[ DIRA]" will be appended to VARIABLE
17686 # VARIABLE will be replaced by "DIR[ DIR]"
17687 func_munge_path_list ()
17693 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17696 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17699 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17700 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17703 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17709 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17710 func_cc_basename ()
17712 for cc_temp in $*""; do
17714 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17715 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17720 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17724 # ### END FUNCTIONS SHARED WITH CONFIGURE
17730 cat <<\_LT_EOF >> "$cfgfile"
17731 # AIX sometimes has problems with the GCC collect2 program. For some
17732 # reason, if we set the COLLECT_NAMES environment variable, the problems
17733 # vanish in a puff of smoke.
17734 if test set != "${COLLECT_NAMES+set}"; then
17736 export COLLECT_NAMES
17743 ltmain=$ac_aux_dir/ltmain.sh
17746 # We use sed instead of cat because bash on DJGPP gets confused if
17747 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17748 # text mode, it properly converts lines to CR/LF. This bash problem
17749 # is reportedly fixed, but why not run on old versions too?
17750 sed '$q' "$ltmain" >> "$cfgfile" \
17751 || (rm -f "$cfgfile"; exit 1)
17753 mv -f "$cfgfile" "$ofile" ||
17754 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17765 ac_clean_files=$ac_clean_files_save
17767 test $ac_write_fail = 0 ||
17768 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17771 # configure is writing to config.log, and then calls config.status.
17772 # config.status does its own redirection, appending to config.log.
17773 # Unfortunately, on DOS this fails, as config.log is still kept open
17774 # by configure, so config.status won't be able to write to it; its
17775 # output is simply discarded. So we exec the FD to /dev/null,
17776 # effectively closing config.log, so it can be properly (re)opened and
17777 # appended to by config.status. When coming back to configure, we
17778 # need to make the FD available again.
17779 if test "$no_create" != yes; then
17781 ac_config_status_args=
17782 test "$silent" = yes &&
17783 ac_config_status_args="$ac_config_status_args --quiet"
17785 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17787 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17788 # would make configure fail if this is the last instruction.
17789 $ac_cs_success || as_fn_exit 1
17791 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17793 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}