2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gobject-introspection 1.37.4.
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib&component=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=glib&component=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.37.4'
595 PACKAGE_STRING='gobject-introspection 1.37.4'
596 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=glib&component=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
657 GTK_DOC_USE_REBASE_FALSE
658 GTK_DOC_USE_REBASE_TRUE
659 GTK_DOC_USE_LIBTOOL_FALSE
660 GTK_DOC_USE_LIBTOOL_TRUE
661 GTK_DOC_BUILD_PDF_FALSE
662 GTK_DOC_BUILD_PDF_TRUE
663 GTK_DOC_BUILD_HTML_FALSE
664 GTK_DOC_BUILD_HTML_TRUE
702 GOBJECT_INTROSPECTION_LIBDIR
708 EXPANDED_LOCALSTATEDIR
766 MAINTAINER_MODE_FALSE
780 INSTALL_STRIP_PROGRAM
822 program_transform_name
835 enable_option_checking
837 enable_maintainer_mode
838 enable_dependency_tracking
855 ac_precious_vars='build_alias
890 # Initialize some variables set by options.
892 ac_init_version=false
893 ac_unrecognized_opts=
895 # The variables have the same names as the options, with
896 # dashes changed to underlines.
904 program_transform_name=s,x,x,
912 # Installation directory options.
913 # These are left unexpanded so users can "make install exec_prefix=/foo"
914 # and all the variables that are supposed to be based on exec_prefix
915 # by default will actually change.
916 # Use braces instead of parens because sh, perl, etc. also accept them.
917 # (The list follows the same order as the GNU Coding Standards.)
918 bindir='${exec_prefix}/bin'
919 sbindir='${exec_prefix}/sbin'
920 libexecdir='${exec_prefix}/libexec'
921 datarootdir='${prefix}/share'
922 datadir='${datarootdir}'
923 sysconfdir='${prefix}/etc'
924 sharedstatedir='${prefix}/com'
925 localstatedir='${prefix}/var'
926 includedir='${prefix}/include'
927 oldincludedir='/usr/include'
928 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
929 infodir='${datarootdir}/info'
934 libdir='${exec_prefix}/lib'
935 localedir='${datarootdir}/locale'
936 mandir='${datarootdir}/man'
942 # If the previous option needs an argument, assign it.
943 if test -n "$ac_prev"; then
944 eval $ac_prev=\$ac_option
950 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 # Accept the important Cygnus configure options, so we can diagnose typos.
957 case $ac_dashdash$ac_option in
961 -bindir | --bindir | --bindi | --bind | --bin | --bi)
963 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966 -build | --build | --buil | --bui | --bu)
967 ac_prev=build_alias ;;
968 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
969 build_alias=$ac_optarg ;;
971 -cache-file | --cache-file | --cache-fil | --cache-fi \
972 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
973 ac_prev=cache_file ;;
974 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
975 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
976 cache_file=$ac_optarg ;;
979 cache_file=config.cache ;;
981 -datadir | --datadir | --datadi | --datad)
983 -datadir=* | --datadir=* | --datadi=* | --datad=*)
984 datadir=$ac_optarg ;;
986 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
987 | --dataroo | --dataro | --datar)
988 ac_prev=datarootdir ;;
989 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
990 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
991 datarootdir=$ac_optarg ;;
993 -disable-* | --disable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 as_fn_error $? "invalid feature name: $ac_useropt"
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1002 "enable_$ac_useropt"
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1007 eval enable_$ac_useropt=no ;;
1009 -docdir | --docdir | --docdi | --doc | --do)
1011 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1012 docdir=$ac_optarg ;;
1014 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1016 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1017 dvidir=$ac_optarg ;;
1019 -enable-* | --enable-*)
1020 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1021 # Reject names that are not valid shell variable names.
1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023 as_fn_error $? "invalid feature name: $ac_useropt"
1024 ac_useropt_orig=$ac_useropt
1025 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1028 "enable_$ac_useropt"
1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1031 ac_unrecognized_sep=', ';;
1033 eval enable_$ac_useropt=\$ac_optarg ;;
1035 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1036 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1037 | --exec | --exe | --ex)
1038 ac_prev=exec_prefix ;;
1039 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1040 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1041 | --exec=* | --exe=* | --ex=*)
1042 exec_prefix=$ac_optarg ;;
1044 -gas | --gas | --ga | --g)
1045 # Obsolete; use --with-gas.
1048 -help | --help | --hel | --he | -h)
1049 ac_init_help=long ;;
1050 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1051 ac_init_help=recursive ;;
1052 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1053 ac_init_help=short ;;
1055 -host | --host | --hos | --ho)
1056 ac_prev=host_alias ;;
1057 -host=* | --host=* | --hos=* | --ho=*)
1058 host_alias=$ac_optarg ;;
1060 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1062 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1064 htmldir=$ac_optarg ;;
1066 -includedir | --includedir | --includedi | --included | --include \
1067 | --includ | --inclu | --incl | --inc)
1068 ac_prev=includedir ;;
1069 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1070 | --includ=* | --inclu=* | --incl=* | --inc=*)
1071 includedir=$ac_optarg ;;
1073 -infodir | --infodir | --infodi | --infod | --info | --inf)
1075 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1076 infodir=$ac_optarg ;;
1078 -libdir | --libdir | --libdi | --libd)
1080 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1081 libdir=$ac_optarg ;;
1083 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1084 | --libexe | --libex | --libe)
1085 ac_prev=libexecdir ;;
1086 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1087 | --libexe=* | --libex=* | --libe=*)
1088 libexecdir=$ac_optarg ;;
1090 -localedir | --localedir | --localedi | --localed | --locale)
1091 ac_prev=localedir ;;
1092 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1093 localedir=$ac_optarg ;;
1095 -localstatedir | --localstatedir | --localstatedi | --localstated \
1096 | --localstate | --localstat | --localsta | --localst | --locals)
1097 ac_prev=localstatedir ;;
1098 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1099 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1100 localstatedir=$ac_optarg ;;
1102 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1104 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1105 mandir=$ac_optarg ;;
1107 -nfp | --nfp | --nf)
1108 # Obsolete; use --without-fp.
1111 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1112 | --no-cr | --no-c | -n)
1115 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1116 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1119 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1120 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1121 | --oldin | --oldi | --old | --ol | --o)
1122 ac_prev=oldincludedir ;;
1123 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1124 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1125 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1126 oldincludedir=$ac_optarg ;;
1128 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1130 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1131 prefix=$ac_optarg ;;
1133 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1134 | --program-pre | --program-pr | --program-p)
1135 ac_prev=program_prefix ;;
1136 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1137 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1138 program_prefix=$ac_optarg ;;
1140 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1141 | --program-suf | --program-su | --program-s)
1142 ac_prev=program_suffix ;;
1143 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1144 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1145 program_suffix=$ac_optarg ;;
1147 -program-transform-name | --program-transform-name \
1148 | --program-transform-nam | --program-transform-na \
1149 | --program-transform-n | --program-transform- \
1150 | --program-transform | --program-transfor \
1151 | --program-transfo | --program-transf \
1152 | --program-trans | --program-tran \
1153 | --progr-tra | --program-tr | --program-t)
1154 ac_prev=program_transform_name ;;
1155 -program-transform-name=* | --program-transform-name=* \
1156 | --program-transform-nam=* | --program-transform-na=* \
1157 | --program-transform-n=* | --program-transform-=* \
1158 | --program-transform=* | --program-transfor=* \
1159 | --program-transfo=* | --program-transf=* \
1160 | --program-trans=* | --program-tran=* \
1161 | --progr-tra=* | --program-tr=* | --program-t=*)
1162 program_transform_name=$ac_optarg ;;
1164 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1166 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1167 pdfdir=$ac_optarg ;;
1169 -psdir | --psdir | --psdi | --psd | --ps)
1171 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1175 | -silent | --silent | --silen | --sile | --sil)
1178 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1180 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1182 sbindir=$ac_optarg ;;
1184 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1185 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1186 | --sharedst | --shareds | --shared | --share | --shar \
1188 ac_prev=sharedstatedir ;;
1189 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1190 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1191 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1193 sharedstatedir=$ac_optarg ;;
1195 -site | --site | --sit)
1197 -site=* | --site=* | --sit=*)
1200 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1202 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1203 srcdir=$ac_optarg ;;
1205 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1206 | --syscon | --sysco | --sysc | --sys | --sy)
1207 ac_prev=sysconfdir ;;
1208 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1209 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1210 sysconfdir=$ac_optarg ;;
1212 -target | --target | --targe | --targ | --tar | --ta | --t)
1213 ac_prev=target_alias ;;
1214 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1215 target_alias=$ac_optarg ;;
1217 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1220 -version | --version | --versio | --versi | --vers | -V)
1221 ac_init_version=: ;;
1224 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227 as_fn_error $? "invalid package name: $ac_useropt"
1228 ac_useropt_orig=$ac_useropt
1229 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1235 ac_unrecognized_sep=', ';;
1237 eval with_$ac_useropt=\$ac_optarg ;;
1239 -without-* | --without-*)
1240 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243 as_fn_error $? "invalid package name: $ac_useropt"
1244 ac_useropt_orig=$ac_useropt
1245 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1251 ac_unrecognized_sep=', ';;
1253 eval with_$ac_useropt=no ;;
1256 # Obsolete; use --with-x.
1259 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1260 | --x-incl | --x-inc | --x-in | --x-i)
1261 ac_prev=x_includes ;;
1262 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1263 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1264 x_includes=$ac_optarg ;;
1266 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1267 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1268 ac_prev=x_libraries ;;
1269 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1270 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1271 x_libraries=$ac_optarg ;;
1273 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1274 Try \`$0 --help' for more information"
1278 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1279 # Reject names that are not valid shell variable names.
1280 case $ac_envvar in #(
1281 '' | [0-9]* | *[!_$as_cr_alnum]* )
1282 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1284 eval $ac_envvar=\$ac_optarg
1285 export $ac_envvar ;;
1288 # FIXME: should be removed in autoconf 3.0.
1289 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1290 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1292 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1298 if test -n "$ac_prev"; then
1299 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1300 as_fn_error $? "missing argument to $ac_option"
1303 if test -n "$ac_unrecognized_opts"; then
1304 case $enable_option_checking in
1306 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1307 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1311 # Check all directory arguments for consistency.
1312 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1313 datadir sysconfdir sharedstatedir localstatedir includedir \
1314 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1315 libdir localedir mandir
1317 eval ac_val=\$$ac_var
1318 # Remove trailing slashes.
1321 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1322 eval $ac_var=\$ac_val;;
1324 # Be sure to have absolute directory names.
1326 [\\/$]* | ?:[\\/]* ) continue;;
1327 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1329 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1332 # There might be people who depend on the old broken behavior: `$host'
1333 # used to hold the argument of --host etc.
1334 # FIXME: To remove some day.
1337 target=$target_alias
1339 # FIXME: To remove some day.
1340 if test "x$host_alias" != x; then
1341 if test "x$build_alias" = x; then
1342 cross_compiling=maybe
1343 elif test "x$build_alias" != "x$host_alias"; then
1349 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1351 test "$silent" = yes && exec 6>/dev/null
1354 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1355 ac_ls_di=`ls -di .` &&
1356 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1357 as_fn_error $? "working directory cannot be determined"
1358 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1359 as_fn_error $? "pwd does not report name of working directory"
1362 # Find the source files, if location was not specified.
1363 if test -z "$srcdir"; then
1364 ac_srcdir_defaulted=yes
1365 # Try the directory containing this script, then the parent directory.
1366 ac_confdir=`$as_dirname -- "$as_myself" ||
1367 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368 X"$as_myself" : 'X\(//\)[^/]' \| \
1369 X"$as_myself" : 'X\(//\)$' \| \
1370 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1371 $as_echo X"$as_myself" |
1372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1394 ac_srcdir_defaulted=no
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1398 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1400 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1402 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1404 # When building in place, set srcdir=.
1405 if test "$ac_abs_confdir" = "$ac_pwd"; then
1408 # Remove unnecessary trailing slashes from srcdir.
1409 # Double slashes in file names in object file debugging info
1410 # mess up M-x gdb in Emacs.
1412 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1414 for ac_var in $ac_precious_vars; do
1415 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1416 eval ac_env_${ac_var}_value=\$${ac_var}
1417 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1418 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1422 # Report the --help message.
1424 if test "$ac_init_help" = "long"; then
1425 # Omit some internal or obsolete options to make the list less imposing.
1426 # This message is too long to be a string in the A/UX 3.1 sh.
1428 \`configure' configures gobject-introspection 1.37.4 to adapt to many kinds of systems.
1430 Usage: $0 [OPTION]... [VAR=VALUE]...
1432 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1433 VAR=VALUE. See below for descriptions of some of the useful variables.
1435 Defaults for the options are specified in brackets.
1438 -h, --help display this help and exit
1439 --help=short display options specific to this package
1440 --help=recursive display the short help of all the included packages
1441 -V, --version display version information and exit
1442 -q, --quiet, --silent do not print \`checking ...' messages
1443 --cache-file=FILE cache test results in FILE [disabled]
1444 -C, --config-cache alias for \`--cache-file=config.cache'
1445 -n, --no-create do not create output files
1446 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1448 Installation directories:
1449 --prefix=PREFIX install architecture-independent files in PREFIX
1450 [$ac_default_prefix]
1451 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1454 By default, \`make install' will install all the files in
1455 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1456 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1457 for instance \`--prefix=\$HOME'.
1459 For better control, use the options below.
1461 Fine tuning of the installation directories:
1462 --bindir=DIR user executables [EPREFIX/bin]
1463 --sbindir=DIR system admin executables [EPREFIX/sbin]
1464 --libexecdir=DIR program executables [EPREFIX/libexec]
1465 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1466 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1467 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1468 --libdir=DIR object code libraries [EPREFIX/lib]
1469 --includedir=DIR C header files [PREFIX/include]
1470 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1471 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1472 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1473 --infodir=DIR info documentation [DATAROOTDIR/info]
1474 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1475 --mandir=DIR man documentation [DATAROOTDIR/man]
1476 --docdir=DIR documentation root
1477 [DATAROOTDIR/doc/gobject-introspection]
1478 --htmldir=DIR html documentation [DOCDIR]
1479 --dvidir=DIR dvi documentation [DOCDIR]
1480 --pdfdir=DIR pdf documentation [DOCDIR]
1481 --psdir=DIR ps documentation [DOCDIR]
1487 --program-prefix=PREFIX prepend PREFIX to installed program names
1488 --program-suffix=SUFFIX append SUFFIX to installed program names
1489 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1492 --build=BUILD configure for building on BUILD [guessed]
1493 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1497 if test -n "$ac_init_help"; then
1498 case $ac_init_help in
1499 short | recursive ) echo "Configuration of gobject-introspection 1.37.4:";;
1504 --disable-option-checking ignore unrecognized --enable/--with options
1505 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1506 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1507 --enable-silent-rules less verbose build output (undo: "make V=1")
1508 --disable-silent-rules verbose build output (undo: "make V=0")
1509 --disable-maintainer-mode
1510 disable make rules and dependencies not useful (and
1511 sometimes confusing) to the casual installer
1512 --enable-dependency-tracking
1513 do not reject slow dependency extractors
1514 --disable-dependency-tracking
1515 speeds up one-time build
1516 --enable-shared[=PKGS] build shared libraries [default=yes]
1517 --enable-static[=PKGS] build static libraries [default=yes]
1518 --enable-fast-install[=PKGS]
1519 optimize for fast installation [default=yes]
1520 --disable-libtool-lock avoid locking (might break parallel builds)
1521 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1522 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1523 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1524 --disable-doctool disable g-ir-doctool
1525 --disable-Bsymbolic avoid linking with -Bsymbolic
1528 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1529 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1530 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1532 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1533 --with-sysroot=DIR Search for dependent libraries within DIR
1534 (or the compiler's sysroot if not specified).
1535 --with-cairo Use cairo [default=maybe]
1536 --with-html-dir=PATH path to installed docs
1537 --with-glib-src=PATH Source directory for glib - needed to add docs to gir
1539 Some influential environment variables:
1540 CC C compiler command
1541 CFLAGS C compiler flags
1542 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1543 nonstandard directory <lib dir>
1544 LIBS libraries to pass to the linker, e.g. -l<library>
1545 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1546 you have headers in a nonstandard directory <include dir>
1548 PKG_CONFIG path to pkg-config utility
1550 directories to add to pkg-config's search path
1552 path overriding pkg-config's built-in search path
1553 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1554 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1556 C compiler flags for GOBJECT, overriding pkg-config
1558 linker flags for GOBJECT, overriding pkg-config
1560 C compiler flags for GMODULE, overriding pkg-config
1562 linker flags for GMODULE, overriding pkg-config
1563 GIO_CFLAGS C compiler flags for GIO, overriding pkg-config
1564 GIO_LIBS linker flags for GIO, overriding pkg-config
1566 C compiler flags for GIO_UNIX, overriding pkg-config
1568 linker flags for GIO_UNIX, overriding pkg-config
1570 C compiler flags for CAIRO, overriding pkg-config
1571 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
1573 C compiler flags for SCANNER, overriding pkg-config
1575 linker flags for SCANNER, overriding pkg-config
1576 FFI_CFLAGS C compiler flags for FFI, overriding pkg-config
1577 FFI_LIBS linker flags for FFI, overriding pkg-config
1579 C compiler flags for GIREPO, overriding pkg-config
1580 GIREPO_LIBS linker flags for GIREPO, overriding pkg-config
1582 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1584 linker flags for GTKDOC_DEPS, overriding pkg-config
1585 PYTHON the Python interpreter
1587 Use these variables to override the choices made by `configure' or to help
1588 it to find libraries and programs with nonstandard names/locations.
1590 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib&component=introspection>.
1595 if test "$ac_init_help" = "recursive"; then
1596 # If there are subdirs, report their specific --help.
1597 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1598 test -d "$ac_dir" ||
1599 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1604 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1607 # A ".." for each directory in $ac_dir_suffix.
1608 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1609 case $ac_top_builddir_sub in
1610 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1614 ac_abs_top_builddir=$ac_pwd
1615 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1616 # for backward compatibility:
1617 ac_top_builddir=$ac_top_build_prefix
1620 .) # We are building in place.
1622 ac_top_srcdir=$ac_top_builddir_sub
1623 ac_abs_top_srcdir=$ac_pwd ;;
1624 [\\/]* | ?:[\\/]* ) # Absolute name.
1625 ac_srcdir=$srcdir$ac_dir_suffix;
1626 ac_top_srcdir=$srcdir
1627 ac_abs_top_srcdir=$srcdir ;;
1629 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1630 ac_top_srcdir=$ac_top_build_prefix$srcdir
1631 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1633 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1635 cd "$ac_dir" || { ac_status=$?; continue; }
1636 # Check for guested configure.
1637 if test -f "$ac_srcdir/configure.gnu"; then
1639 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1640 elif test -f "$ac_srcdir/configure"; then
1642 $SHELL "$ac_srcdir/configure" --help=recursive
1644 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1646 cd "$ac_pwd" || { ac_status=$?; break; }
1650 test -n "$ac_init_help" && exit $ac_status
1651 if $ac_init_version; then
1653 gobject-introspection configure 1.37.4
1654 generated by GNU Autoconf 2.69
1656 Copyright (C) 2012 Free Software Foundation, Inc.
1657 This configure script is free software; the Free Software Foundation
1658 gives unlimited permission to copy, distribute and modify it.
1663 ## ------------------------ ##
1664 ## Autoconf initialization. ##
1665 ## ------------------------ ##
1667 # ac_fn_c_try_compile LINENO
1668 # --------------------------
1669 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1670 ac_fn_c_try_compile ()
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 rm -f conftest.$ac_objext
1674 if { { ac_try="$ac_compile"
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_compile") 2>conftest.err
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && {
1690 test -z "$ac_c_werror_flag" ||
1691 test ! -s conftest.err
1692 } && test -s conftest.$ac_objext; then :
1695 $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 as_fn_set_status $ac_retval
1703 } # ac_fn_c_try_compile
1705 # ac_fn_c_try_link LINENO
1706 # -----------------------
1707 # Try to link conftest.$ac_ext, and return whether this succeeded.
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 rm -f conftest.$ac_objext conftest$ac_exeext
1712 if { { ac_try="$ac_link"
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_link") 2>conftest.err
1721 if test -s conftest.err; then
1722 grep -v '^ *+' conftest.err >conftest.er1
1723 cat conftest.er1 >&5
1724 mv -f conftest.er1 conftest.err
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } && {
1728 test -z "$ac_c_werror_flag" ||
1729 test ! -s conftest.err
1730 } && test -s conftest$ac_exeext && {
1731 test "$cross_compiling" = yes ||
1732 test -x conftest$ac_exeext
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1741 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1742 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1743 # interfere with the next link command; also delete a directory that is
1744 # left behind by Apple's compiler. We do this before executing the actions.
1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747 as_fn_set_status $ac_retval
1749 } # ac_fn_c_try_link
1751 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1752 # -------------------------------------------------------
1753 # Tests whether HEADER exists and can be compiled using the include files in
1754 # INCLUDES, setting the cache variable VAR accordingly.
1755 ac_fn_c_check_header_compile ()
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 $as_echo_n "checking for $2... " >&6; }
1760 if eval \${$3+:} false; then :
1761 $as_echo_n "(cached) " >&6
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1768 if ac_fn_c_try_compile "$LINENO"; then :
1773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777 $as_echo "$ac_res" >&6; }
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 } # ac_fn_c_check_header_compile
1782 # ac_fn_c_try_cpp LINENO
1783 # ----------------------
1784 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 if { { ac_try="$ac_cpp conftest.$ac_ext"
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1797 if test -s conftest.err; then
1798 grep -v '^ *+' conftest.err >conftest.er1
1799 cat conftest.er1 >&5
1800 mv -f conftest.er1 conftest.err
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } > conftest.i && {
1804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1805 test ! -s conftest.err
1809 $as_echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815 as_fn_set_status $ac_retval
1819 # ac_fn_c_try_run LINENO
1820 # ----------------------
1821 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1822 # that executables *can* be run.
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 if { { ac_try="$ac_link"
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_link") 2>&5
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1837 { { case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_try") 2>&5
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; }; }; then :
1849 $as_echo "$as_me: program exited with status $ac_status" >&5
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1853 ac_retval=$ac_status
1855 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 as_fn_set_status $ac_retval
1861 # ac_fn_c_check_func LINENO FUNC VAR
1862 # ----------------------------------
1863 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1864 ac_fn_c_check_func ()
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868 $as_echo_n "checking for $2... " >&6; }
1869 if eval \${$3+:} false; then :
1870 $as_echo_n "(cached) " >&6
1872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873 /* end confdefs.h. */
1874 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1876 #define $2 innocuous_$2
1878 /* System header to define __stub macros and hopefully few prototypes,
1879 which can conflict with char $2 (); below.
1880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1881 <limits.h> exists even on freestanding compilers. */
1884 # include <limits.h>
1886 # include <assert.h>
1891 /* Override any GCC internal prototype to avoid an error.
1892 Use char because int might match the return type of a GCC
1893 builtin and then its argument prototype would still apply. */
1898 /* The GNU C library defines this for functions which it implements
1899 to always fail with ENOSYS. Some functions are actually named
1900 something starting with __ and the normal name is an alias. */
1901 #if defined __stub_$2 || defined __stub___$2
1913 if ac_fn_c_try_link "$LINENO"; then :
1918 rm -f core conftest.err conftest.$ac_objext \
1919 conftest$ac_exeext conftest.$ac_ext
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 } # ac_fn_c_check_func
1928 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1929 # --------------------------------------------
1930 # Tries to find the compile-time value of EXPR in a program that includes
1931 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1933 ac_fn_c_compute_int ()
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 if test "$cross_compiling" = yes; then
1937 # Depending upon the size, compute the lo and hi bounds.
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1944 static int test_array [1 - 2 * !(($2) >= 0)];
1946 return test_array [0];
1952 if ac_fn_c_try_compile "$LINENO"; then :
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1961 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1963 return test_array [0];
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970 ac_hi=$ac_mid; break
1972 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1973 if test $ac_lo -le $ac_mid; then
1977 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1988 static int test_array [1 - 2 * !(($2) < 0)];
1990 return test_array [0];
1996 if ac_fn_c_try_compile "$LINENO"; then :
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h. */
2005 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2007 return test_array [0];
2013 if ac_fn_c_try_compile "$LINENO"; then :
2014 ac_lo=$ac_mid; break
2016 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2017 if test $ac_mid -le $ac_hi; then
2021 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 # Binary search between lo and hi bounds.
2032 while test "x$ac_lo" != "x$ac_hi"; do
2033 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2040 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2042 return test_array [0];
2048 if ac_fn_c_try_compile "$LINENO"; then :
2051 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2063 static long int longval () { return $2; }
2064 static unsigned long int ulongval () { return $2; }
2071 FILE *f = fopen ("conftest.val", "w");
2076 long int i = longval ();
2079 fprintf (f, "%ld", i);
2083 unsigned long int i = ulongval ();
2086 fprintf (f, "%lu", i);
2088 /* Do not output a trailing newline, as this causes \r\n confusion
2089 on some platforms. */
2090 return ferror (f) || fclose (f) != 0;
2096 if ac_fn_c_try_run "$LINENO"; then :
2097 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2102 conftest.$ac_objext conftest.beam conftest.$ac_ext
2106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2107 as_fn_set_status $ac_retval
2109 } # ac_fn_c_compute_int
2111 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2112 # -------------------------------------------------------
2113 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2114 # the include files in INCLUDES and setting the cache variable VAR
2116 ac_fn_c_check_header_mongrel ()
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 if eval \${$3+:} false; then :
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2121 $as_echo_n "checking for $2... " >&6; }
2122 if eval \${$3+:} false; then :
2123 $as_echo_n "(cached) " >&6
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2127 $as_echo "$ac_res" >&6; }
2129 # Is the header compilable?
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2131 $as_echo_n "checking $2 usability... " >&6; }
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2137 if ac_fn_c_try_compile "$LINENO"; then :
2138 ac_header_compiler=yes
2140 ac_header_compiler=no
2142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2144 $as_echo "$ac_header_compiler" >&6; }
2146 # Is the header present?
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2148 $as_echo_n "checking $2 presence... " >&6; }
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2153 if ac_fn_c_try_cpp "$LINENO"; then :
2154 ac_header_preproc=yes
2156 ac_header_preproc=no
2158 rm -f conftest.err conftest.i conftest.$ac_ext
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2160 $as_echo "$ac_header_preproc" >&6; }
2162 # So? What about this header?
2163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2166 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2168 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2172 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2174 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2176 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2178 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2180 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2181 ( $as_echo "## ------------------------------------------------------------------------------------------- ##
2182 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=glib&component=introspection ##
2183 ## ------------------------------------------------------------------------------------------- ##"
2184 ) | sed "s/^/$as_me: WARNING: /" >&2
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2188 $as_echo_n "checking for $2... " >&6; }
2189 if eval \${$3+:} false; then :
2190 $as_echo_n "(cached) " >&6
2192 eval "$3=\$ac_header_compiler"
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2196 $as_echo "$ac_res" >&6; }
2198 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2200 } # ac_fn_c_check_header_mongrel
2201 cat >config.log <<_ACEOF
2202 This file contains any messages produced by compilers while
2203 running configure, to aid debugging if configure makes a mistake.
2205 It was created by gobject-introspection $as_me 1.37.4, which was
2206 generated by GNU Autoconf 2.69. Invocation command line was
2218 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2219 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2220 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2221 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2222 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2224 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2225 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2227 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2228 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2229 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2230 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2231 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2232 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2233 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 test -z "$as_dir" && as_dir=.
2242 $as_echo "PATH: $as_dir"
2258 # Keep a trace of the command line.
2259 # Strip out --no-create and --no-recursion so they do not pile up.
2260 # Strip out --silent because we don't want to record it for future runs.
2261 # Also quote any args containing shell meta-characters.
2262 # Make two passes to allow for proper duplicate-argument suppression.
2266 ac_must_keep_next=false
2272 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2273 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2274 | -silent | --silent | --silen | --sile | --sil)
2277 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2280 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2282 as_fn_append ac_configure_args1 " '$ac_arg'"
2283 if test $ac_must_keep_next = true; then
2284 ac_must_keep_next=false # Got value, back to normal.
2287 *=* | --config-cache | -C | -disable-* | --disable-* \
2288 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2289 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2290 | -with-* | --with-* | -without-* | --without-* | --x)
2291 case "$ac_configure_args0 " in
2292 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2295 -* ) ac_must_keep_next=true ;;
2298 as_fn_append ac_configure_args " '$ac_arg'"
2303 { ac_configure_args0=; unset ac_configure_args0;}
2304 { ac_configure_args1=; unset ac_configure_args1;}
2306 # When interrupted or exit'd, cleanup temporary files, and complete
2307 # config.log. We remove comments because anyway the quotes in there
2308 # would cause problems or look ugly.
2309 # WARNING: Use '\'' to represent an apostrophe within the trap.
2310 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2311 trap 'exit_status=$?
2312 # Save into config.log some information that might help in debugging.
2316 $as_echo "## ---------------- ##
2317 ## Cache variables. ##
2318 ## ---------------- ##"
2320 # The following way of writing the cache mishandles newlines in values,
2322 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2323 eval ac_val=\$$ac_var
2327 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2328 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2331 _ | IFS | as_nl) ;; #(
2332 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2333 *) { eval $ac_var=; unset $ac_var;} ;;
2338 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2339 *${as_nl}ac_space=\ *)
2341 "s/'\''/'\''\\\\'\'''\''/g;
2342 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2345 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2352 $as_echo "## ----------------- ##
2353 ## Output variables. ##
2354 ## ----------------- ##"
2356 for ac_var in $ac_subst_vars
2358 eval ac_val=\$$ac_var
2360 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2362 $as_echo "$ac_var='\''$ac_val'\''"
2366 if test -n "$ac_subst_files"; then
2367 $as_echo "## ------------------- ##
2368 ## File substitutions. ##
2369 ## ------------------- ##"
2371 for ac_var in $ac_subst_files
2373 eval ac_val=\$$ac_var
2375 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2377 $as_echo "$ac_var='\''$ac_val'\''"
2382 if test -s confdefs.h; then
2383 $as_echo "## ----------- ##
2390 test "$ac_signal" != 0 &&
2391 $as_echo "$as_me: caught signal $ac_signal"
2392 $as_echo "$as_me: exit $exit_status"
2394 rm -f core *.core core.conftest.* &&
2395 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2398 for ac_signal in 1 2 13 15; do
2399 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2403 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2404 rm -f -r conftest* confdefs.h
2406 $as_echo "/* confdefs.h */" > confdefs.h
2408 # Predefined preprocessor variables.
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_NAME "$PACKAGE_NAME"
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_STRING "$PACKAGE_STRING"
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_URL "$PACKAGE_URL"
2435 # Let the site file select an alternate cache file if it wants to.
2436 # Prefer an explicitly selected file to automatically selected ones.
2439 if test -n "$CONFIG_SITE"; then
2440 # We do not want a PATH search for config.site.
2441 case $CONFIG_SITE in #((
2442 -*) ac_site_file1=./$CONFIG_SITE;;
2443 */*) ac_site_file1=$CONFIG_SITE;;
2444 *) ac_site_file1=./$CONFIG_SITE;;
2446 elif test "x$prefix" != xNONE; then
2447 ac_site_file1=$prefix/share/config.site
2448 ac_site_file2=$prefix/etc/config.site
2450 ac_site_file1=$ac_default_prefix/share/config.site
2451 ac_site_file2=$ac_default_prefix/etc/config.site
2453 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2455 test "x$ac_site_file" = xNONE && continue
2456 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2458 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2459 sed 's/^/| /' "$ac_site_file" >&5
2461 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2463 as_fn_error $? "failed to load site script $ac_site_file
2464 See \`config.log' for more details" "$LINENO" 5; }
2468 if test -r "$cache_file"; then
2469 # Some versions of bash will fail to source /dev/null (special files
2470 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2471 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2473 $as_echo "$as_me: loading cache $cache_file" >&6;}
2475 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2476 *) . "./$cache_file";;
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2481 $as_echo "$as_me: creating cache $cache_file" >&6;}
2485 # Check that the precious variables saved in the cache have kept the same
2487 ac_cache_corrupted=false
2488 for ac_var in $ac_precious_vars; do
2489 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2490 eval ac_new_set=\$ac_env_${ac_var}_set
2491 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2492 eval ac_new_val=\$ac_env_${ac_var}_value
2493 case $ac_old_set,$ac_new_set in
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2496 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2497 ac_cache_corrupted=: ;;
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2500 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2501 ac_cache_corrupted=: ;;
2504 if test "x$ac_old_val" != "x$ac_new_val"; then
2505 # differences in whitespace do not lead to failure.
2506 ac_old_val_w=`echo x $ac_old_val`
2507 ac_new_val_w=`echo x $ac_new_val`
2508 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2510 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2511 ac_cache_corrupted=:
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2514 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2515 eval $ac_var=\$ac_old_val
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2518 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2520 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2523 # Pass precious variables to config.status.
2524 if test "$ac_new_set" = set; then
2526 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2527 *) ac_arg=$ac_var=$ac_new_val ;;
2529 case " $ac_configure_args " in
2530 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2531 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2535 if $ac_cache_corrupted; then
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2539 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2540 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2542 ## -------------------- ##
2543 ## Main body of script. ##
2544 ## -------------------- ##
2547 ac_cpp='$CPP $CPPFLAGS'
2548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2554 ac_config_headers="$ac_config_headers config.h"
2558 for ac_dir in build-aux "$srcdir"/build-aux; do
2559 if test -f "$ac_dir/install-sh"; then
2561 ac_install_sh="$ac_aux_dir/install-sh -c"
2563 elif test -f "$ac_dir/install.sh"; then
2565 ac_install_sh="$ac_aux_dir/install.sh -c"
2567 elif test -f "$ac_dir/shtool"; then
2569 ac_install_sh="$ac_aux_dir/shtool install -c"
2573 if test -z "$ac_aux_dir"; then
2574 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2577 # These three variables are undocumented and unsupported,
2578 # and are intended to be withdrawn in a future Autoconf release.
2579 # They can cause serious problems if a builder's source tree is in a directory
2580 # whose full name contains unusual characters.
2581 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2582 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2583 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2587 am__api_version='1.13'
2589 # Find a good install program. We prefer a C program (faster),
2590 # so one script is as good as another. But avoid the broken or
2591 # incompatible versions:
2592 # SysV /etc/install, /usr/sbin/install
2593 # SunOS /usr/etc/install
2594 # IRIX /sbin/install
2596 # AmigaOS /C/install, which installs bootblocks on floppy discs
2597 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2598 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2599 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2600 # OS/2's system install, which has a completely different semantic
2601 # ./install, which can be erroneously created by make from ./install.sh.
2602 # Reject install programs that cannot install multiple files.
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2604 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2605 if test -z "$INSTALL"; then
2606 if ${ac_cv_path_install+:} false; then :
2607 $as_echo_n "(cached) " >&6
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 test -z "$as_dir" && as_dir=.
2614 # Account for people who put trailing slashes in PATH elements.
2615 case $as_dir/ in #((
2616 ./ | .// | /[cC]/* | \
2617 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2618 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2621 # OSF1 and SCO ODT 3.0 have their own names for install.
2622 # Don't use installbsd from OSF since it installs stuff as root
2624 for ac_prog in ginstall scoinst install; do
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2627 if test $ac_prog = install &&
2628 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2629 # AIX install. It has an incompatible calling convention.
2631 elif test $ac_prog = install &&
2632 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2633 # program-specific install script used by HP pwplus--don't use.
2636 rm -rf conftest.one conftest.two conftest.dir
2637 echo one > conftest.one
2638 echo two > conftest.two
2640 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2641 test -s conftest.one && test -s conftest.two &&
2642 test -s conftest.dir/conftest.one &&
2643 test -s conftest.dir/conftest.two
2645 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2658 rm -rf conftest.one conftest.two conftest.dir
2661 if test "${ac_cv_path_install+set}" = set; then
2662 INSTALL=$ac_cv_path_install
2664 # As a last resort, use the slow shell script. Don't cache a
2665 # value for INSTALL within a source directory, because that will
2666 # break other packages using the cache if that directory is
2667 # removed, or if the value is a relative name.
2668 INSTALL=$ac_install_sh
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2672 $as_echo "$INSTALL" >&6; }
2674 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2675 # It thinks the first close brace ends the variable substitution.
2676 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2678 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2680 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2683 $as_echo_n "checking whether build environment is sane... " >&6; }
2684 # Reject unsafe characters in $srcdir or the absolute working directory
2685 # name. Accept space and tab only in the latter.
2689 *[\\\"\#\$\&\'\`$am_lf]*)
2690 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2693 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2694 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2697 # Do 'set' in a subshell so we don't clobber the current shell's
2698 # arguments. Must try -L first in case configure is actually a
2699 # symlink; some systems play weird games with the mod time of symlinks
2700 # (eg FreeBSD returns the mod time of the symlink's containing
2704 for am_try in 1 2; do
2705 echo "timestamp, slept: $am_has_slept" > conftest.file
2706 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2707 if test "$*" = "X"; then
2709 set X `ls -t "$srcdir/configure" conftest.file`
2711 if test "$*" != "X $srcdir/configure conftest.file" \
2712 && test "$*" != "X conftest.file $srcdir/configure"; then
2714 # If neither matched, then we have a broken ls. This can happen
2715 # if, for instance, CONFIG_SHELL is bash and it inherits a
2716 # broken ls alias from the environment. This has actually
2717 # happened. Such a system could not be considered "sane".
2718 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2719 alias in your environment" "$LINENO" 5
2721 if test "$2" = conftest.file || test $am_try -eq 2; then
2728 test "$2" = conftest.file
2734 as_fn_error $? "newly created file is older than distributed files!
2735 Check your system clock" "$LINENO" 5
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2738 $as_echo "yes" >&6; }
2739 # If we didn't sleep, we still need to ensure time stamps of config.status and
2740 # generated files are strictly newer.
2742 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2749 test "$program_prefix" != NONE &&
2750 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2751 # Use a double $ so make ignores it.
2752 test "$program_suffix" != NONE &&
2753 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2754 # Double any \ or $.
2755 # By default was `s,x,x', remove it if useless.
2756 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2757 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2759 # expand $ac_aux_dir to an absolute path
2760 am_aux_dir=`cd $ac_aux_dir && pwd`
2762 if test x"${MISSING+set}" != xset; then
2765 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2767 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2770 # Use eval to expand $SHELL
2771 if eval "$MISSING --is-lightweight"; then
2772 am_missing_run="$MISSING "
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2776 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2779 if test x"${install_sh}" != xset; then
2782 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2784 install_sh="\${SHELL} $am_aux_dir/install-sh"
2788 # Installed binaries are usually stripped using 'strip' when the user
2789 # run "make install-strip". However 'strip' might not be the right
2790 # tool to use in cross-compilation environments, therefore Automake
2791 # will honor the 'STRIP' environment variable to overrule this program.
2792 if test "$cross_compiling" != no; then
2793 if test -n "$ac_tool_prefix"; then
2794 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2795 set dummy ${ac_tool_prefix}strip; ac_word=$2
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797 $as_echo_n "checking for $ac_word... " >&6; }
2798 if ${ac_cv_prog_STRIP+:} false; then :
2799 $as_echo_n "(cached) " >&6
2801 if test -n "$STRIP"; then
2802 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2811 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 STRIP=$ac_cv_prog_STRIP
2822 if test -n "$STRIP"; then
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2824 $as_echo "$STRIP" >&6; }
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2832 if test -z "$ac_cv_prog_STRIP"; then
2834 # Extract the first word of "strip", so it can be a program name with args.
2835 set dummy strip; ac_word=$2
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837 $as_echo_n "checking for $ac_word... " >&6; }
2838 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2839 $as_echo_n "(cached) " >&6
2841 if test -n "$ac_ct_STRIP"; then
2842 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2851 ac_cv_prog_ac_ct_STRIP="strip"
2852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2862 if test -n "$ac_ct_STRIP"; then
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2864 $as_echo "$ac_ct_STRIP" >&6; }
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867 $as_echo "no" >&6; }
2870 if test "x$ac_ct_STRIP" = x; then
2873 case $cross_compiling:$ac_tool_warned in
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2877 ac_tool_warned=yes ;;
2882 STRIP="$ac_cv_prog_STRIP"
2886 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2889 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2890 if test -z "$MKDIR_P"; then
2891 if ${ac_cv_path_mkdir+:} false; then :
2892 $as_echo_n "(cached) " >&6
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2898 test -z "$as_dir" && as_dir=.
2899 for ac_prog in mkdir gmkdir; do
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2902 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2903 'mkdir (GNU coreutils) '* | \
2904 'mkdir (coreutils) '* | \
2905 'mkdir (fileutils) '4.1*)
2906 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2916 test -d ./--version && rmdir ./--version
2917 if test "${ac_cv_path_mkdir+set}" = set; then
2918 MKDIR_P="$ac_cv_path_mkdir -p"
2920 # As a last resort, use the slow shell script. Don't cache a
2921 # value for MKDIR_P within a source directory, because that will
2922 # break other packages using the cache if that directory is
2923 # removed, or if the value is a relative name.
2924 MKDIR_P="$ac_install_sh -d"
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2928 $as_echo "$MKDIR_P" >&6; }
2930 for ac_prog in gawk mawk nawk awk
2932 # Extract the first word of "$ac_prog", so it can be a program name with args.
2933 set dummy $ac_prog; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if ${ac_cv_prog_AWK+:} false; then :
2937 $as_echo_n "(cached) " >&6
2939 if test -n "$AWK"; then
2940 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2949 ac_cv_prog_AWK="$ac_prog"
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 if test -n "$AWK"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2962 $as_echo "$AWK" >&6; }
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2969 test -n "$AWK" && break
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2973 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2975 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2976 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2977 $as_echo_n "(cached) " >&6
2979 cat >conftest.make <<\_ACEOF
2982 @echo '@@@%%%=$(MAKE)=@@@%%%'
2984 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2985 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2987 eval ac_cv_prog_make_${ac_make}_set=yes;;
2989 eval ac_cv_prog_make_${ac_make}_set=no;;
2993 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2995 $as_echo "yes" >&6; }
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3000 SET_MAKE="MAKE=${MAKE-make}"
3003 rm -rf .tst 2>/dev/null
3004 mkdir .tst 2>/dev/null
3005 if test -d .tst; then
3010 rmdir .tst 2>/dev/null
3012 # Check whether --enable-silent-rules was given.
3013 if test "${enable_silent_rules+set}" = set; then :
3014 enableval=$enable_silent_rules;
3017 case $enable_silent_rules in # (((
3018 yes) AM_DEFAULT_VERBOSITY=0;;
3019 no) AM_DEFAULT_VERBOSITY=1;;
3020 *) AM_DEFAULT_VERBOSITY=1;;
3022 am_make=${MAKE-make}
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3024 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3025 if ${am_cv_make_support_nested_variables+:} false; then :
3026 $as_echo_n "(cached) " >&6
3028 if $as_echo 'TRUE=$(BAR$(V))
3034 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3035 am_cv_make_support_nested_variables=yes
3037 am_cv_make_support_nested_variables=no
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3041 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3042 if test $am_cv_make_support_nested_variables = yes; then
3044 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3046 AM_V=$AM_DEFAULT_VERBOSITY
3047 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3051 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3052 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3053 # is not polluted with repeated "-I."
3054 am__isrc=' -I$(srcdir)'
3055 # test to see if srcdir already configured
3056 if test -f $srcdir/config.status; then
3057 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3061 # test whether we have cygpath
3062 if test -z "$CYGPATH_W"; then
3063 if (cygpath --version) >/dev/null 2>/dev/null; then
3064 CYGPATH_W='cygpath -w'
3071 # Define the identity of the package.
3072 PACKAGE='gobject-introspection'
3076 cat >>confdefs.h <<_ACEOF
3077 #define PACKAGE "$PACKAGE"
3081 cat >>confdefs.h <<_ACEOF
3082 #define VERSION "$VERSION"
3085 # Some tools Automake needs.
3087 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3090 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3093 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3096 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3099 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3101 # For better backward compatibility. To be removed once Automake 1.9.x
3102 # dies out for good. For more background, see:
3103 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3104 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3105 mkdir_p='$(MKDIR_P)'
3107 # We need awk for the "check" target. The system "awk" is bad on
3109 # Always define AMTAR for backward compatibility. Yes, it's still used
3110 # in the wild :-( We should find a proper way to deprecate it ...
3114 # We'll loop over all known methods to create a tar archive until one works.
3115 _am_tools='gnutar plaintar pax cpio none'
3117 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3118 # There is notably a 21 bits limit for the UID and the GID. In fact,
3119 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3121 am_max_uid=2097151 # 2^21 - 1
3122 am_max_gid=$am_max_uid
3123 # The $UID and $GID variables are not portable, so we need to resort
3124 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3125 # below are definitely unexpected, so allow the users to see them
3126 # (that is, avoid stderr redirection).
3127 am_uid=`id -u || echo unknown`
3128 am_gid=`id -g || echo unknown`
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3130 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3131 if test $am_uid -le $am_max_uid; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3133 $as_echo "yes" >&6; }
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3140 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3141 if test $am_gid -le $am_max_gid; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3143 $as_echo "yes" >&6; }
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146 $as_echo "no" >&6; }
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3151 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3153 # Go ahead even if we have the value already cached. We do so because we
3154 # need to set the values for the 'am__tar' and 'am__untar' variables.
3155 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3157 for _am_tool in $_am_tools; do
3160 for _am_tar in tar gnutar gtar; do
3161 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3162 ($_am_tar --version) >&5 2>&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); } && break
3167 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3168 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3169 am__untar="$_am_tar -xf -"
3172 # Must skip GNU tar: if it does not support --format= it doesn't create
3173 # ustar tarball either.
3174 (tar --version) >/dev/null 2>&1 && continue
3175 am__tar='tar chf - "$$tardir"'
3176 am__tar_='tar chf - "$tardir"'
3177 am__untar='tar xf -'
3180 am__tar='pax -L -x ustar -w "$$tardir"'
3181 am__tar_='pax -L -x ustar -w "$tardir"'
3185 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3186 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3187 am__untar='cpio -i -H ustar -d'
3196 # If the value was cached, stop now. We just wanted to have am__tar
3197 # and am__untar set.
3198 test -n "${am_cv_prog_tar_ustar}" && break
3200 # tar/untar a dummy directory, and stop if the command works.
3203 echo GrepMe > conftest.dir/file
3204 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3205 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }
3210 if test -s conftest.tar; then
3211 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3212 ($am__untar <conftest.tar) >&5 2>&5
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); }
3216 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3217 (cat conftest.dir/file) >&5 2>&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }
3221 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3226 if ${am_cv_prog_tar_ustar+:} false; then :
3227 $as_echo_n "(cached) " >&6
3229 am_cv_prog_tar_ustar=$_am_tool
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3233 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3242 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3243 # Check whether --enable-maintainer-mode was given.
3244 if test "${enable_maintainer_mode+set}" = set; then :
3245 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3247 USE_MAINTAINER_MODE=yes
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3251 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3252 if test $USE_MAINTAINER_MODE = yes; then
3253 MAINTAINER_MODE_TRUE=
3254 MAINTAINER_MODE_FALSE='#'
3256 MAINTAINER_MODE_TRUE='#'
3257 MAINTAINER_MODE_FALSE=
3260 MAINT=$MAINTAINER_MODE_TRUE
3264 # Check whether --enable-silent-rules was given.
3265 if test "${enable_silent_rules+set}" = set; then :
3266 enableval=$enable_silent_rules;
3269 case $enable_silent_rules in # (((
3270 yes) AM_DEFAULT_VERBOSITY=0;;
3271 no) AM_DEFAULT_VERBOSITY=1;;
3272 *) AM_DEFAULT_VERBOSITY=0;;
3274 am_make=${MAKE-make}
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3276 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3277 if ${am_cv_make_support_nested_variables+:} false; then :
3278 $as_echo_n "(cached) " >&6
3280 if $as_echo 'TRUE=$(BAR$(V))
3286 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3287 am_cv_make_support_nested_variables=yes
3289 am_cv_make_support_nested_variables=no
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3293 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3294 if test $am_cv_make_support_nested_variables = yes; then
3296 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3298 AM_V=$AM_DEFAULT_VERBOSITY
3299 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3305 # Make sure we can run config.sub.
3306 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3307 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3310 $as_echo_n "checking build system type... " >&6; }
3311 if ${ac_cv_build+:} false; then :
3312 $as_echo_n "(cached) " >&6
3314 ac_build_alias=$build_alias
3315 test "x$ac_build_alias" = x &&
3316 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3317 test "x$ac_build_alias" = x &&
3318 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3319 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3320 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3324 $as_echo "$ac_cv_build" >&6; }
3325 case $ac_cv_build in
3327 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3330 ac_save_IFS=$IFS; IFS='-'
3336 # Remember, the first character of IFS is used to create $*,
3337 # except with old shells:
3340 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3344 $as_echo_n "checking host system type... " >&6; }
3345 if ${ac_cv_host+:} false; then :
3346 $as_echo_n "(cached) " >&6
3348 if test "x$host_alias" = x; then
3349 ac_cv_host=$ac_cv_build
3351 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3352 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3357 $as_echo "$ac_cv_host" >&6; }
3360 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3363 ac_save_IFS=$IFS; IFS='-'
3369 # Remember, the first character of IFS is used to create $*,
3370 # except with old shells:
3373 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3384 if test "x$os_win32" = "xyes"; then
3393 # Checks for programs.
3395 ac_cpp='$CPP $CPPFLAGS'
3396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3399 if test -n "$ac_tool_prefix"; then
3400 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3401 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403 $as_echo_n "checking for $ac_word... " >&6; }
3404 if ${ac_cv_prog_CC+:} false; then :
3405 $as_echo_n "(cached) " >&6
3407 if test -n "$CC"; then
3408 ac_cv_prog_CC="$CC" # Let the user override the test.
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 test -z "$as_dir" && as_dir=.
3415 for ac_exec_ext in '' $ac_executable_extensions; do
3416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3417 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3428 if test -n "$CC"; then
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3430 $as_echo "$CC" >&6; }
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433 $as_echo "no" >&6; }
3438 if test -z "$ac_cv_prog_CC"; then
3440 # Extract the first word of "gcc", so it can be a program name with args.
3441 set dummy gcc; ac_word=$2
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3443 $as_echo_n "checking for $ac_word... " >&6; }
3444 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3445 $as_echo_n "(cached) " >&6
3447 if test -n "$ac_ct_CC"; then
3448 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 test -z "$as_dir" && as_dir=.
3455 for ac_exec_ext in '' $ac_executable_extensions; do
3456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3457 ac_cv_prog_ac_ct_CC="gcc"
3458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3467 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3468 if test -n "$ac_ct_CC"; then
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3470 $as_echo "$ac_ct_CC" >&6; }
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 $as_echo "no" >&6; }
3476 if test "x$ac_ct_CC" = x; then
3479 case $cross_compiling:$ac_tool_warned in
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3483 ac_tool_warned=yes ;;
3491 if test -z "$CC"; then
3492 if test -n "$ac_tool_prefix"; then
3493 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3494 set dummy ${ac_tool_prefix}cc; ac_word=$2
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 $as_echo_n "checking for $ac_word... " >&6; }
3497 if ${ac_cv_prog_CC+:} false; then :
3498 $as_echo_n "(cached) " >&6
3500 if test -n "$CC"; then
3501 ac_cv_prog_CC="$CC" # Let the user override the test.
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3510 ac_cv_prog_CC="${ac_tool_prefix}cc"
3511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3521 if test -n "$CC"; then
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3523 $as_echo "$CC" >&6; }
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3532 if test -z "$CC"; then
3533 # Extract the first word of "cc", so it can be a program name with args.
3534 set dummy cc; ac_word=$2
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 $as_echo_n "checking for $ac_word... " >&6; }
3537 if ${ac_cv_prog_CC+:} false; then :
3538 $as_echo_n "(cached) " >&6
3540 if test -n "$CC"; then
3541 ac_cv_prog_CC="$CC" # Let the user override the test.
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3552 ac_prog_rejected=yes
3556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3563 if test $ac_prog_rejected = yes; then
3564 # We found a bogon in the path, so make sure we never use it.
3565 set dummy $ac_cv_prog_CC
3567 if test $# != 0; then
3568 # We chose a different compiler from the bogus one.
3569 # However, it has the same basename, so the bogon will be chosen
3570 # first if we set CC to just the basename; use the full file name.
3572 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3578 if test -n "$CC"; then
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3580 $as_echo "$CC" >&6; }
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 $as_echo "no" >&6; }
3588 if test -z "$CC"; then
3589 if test -n "$ac_tool_prefix"; then
3590 for ac_prog in cl.exe
3592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3593 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 $as_echo_n "checking for $ac_word... " >&6; }
3596 if ${ac_cv_prog_CC+:} false; then :
3597 $as_echo_n "(cached) " >&6
3599 if test -n "$CC"; then
3600 ac_cv_prog_CC="$CC" # Let the user override the test.
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 test -z "$as_dir" && as_dir=.
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3609 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 if test -n "$CC"; then
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3622 $as_echo "$CC" >&6; }
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 $as_echo "no" >&6; }
3629 test -n "$CC" && break
3632 if test -z "$CC"; then
3634 for ac_prog in cl.exe
3636 # Extract the first word of "$ac_prog", so it can be a program name with args.
3637 set dummy $ac_prog; ac_word=$2
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3639 $as_echo_n "checking for $ac_word... " >&6; }
3640 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3641 $as_echo_n "(cached) " >&6
3643 if test -n "$ac_ct_CC"; then
3644 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650 test -z "$as_dir" && as_dir=.
3651 for ac_exec_ext in '' $ac_executable_extensions; do
3652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3653 ac_cv_prog_ac_ct_CC="$ac_prog"
3654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3663 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3664 if test -n "$ac_ct_CC"; then
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3666 $as_echo "$ac_ct_CC" >&6; }
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669 $as_echo "no" >&6; }
3673 test -n "$ac_ct_CC" && break
3676 if test "x$ac_ct_CC" = x; then
3679 case $cross_compiling:$ac_tool_warned in
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3683 ac_tool_warned=yes ;;
3692 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694 as_fn_error $? "no acceptable C compiler found in \$PATH
3695 See \`config.log' for more details" "$LINENO" 5; }
3697 # Provide some information about the compiler.
3698 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3701 for ac_option in --version -v -V -qversion; do
3702 { { ac_try="$ac_compiler $ac_option >&5"
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3708 $as_echo "$ac_try_echo"; } >&5
3709 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3711 if test -s conftest.err; then
3713 ... rest of stderr output deleted ...
3714 10q' conftest.err >conftest.er1
3715 cat conftest.er1 >&5
3717 rm -f conftest.er1 conftest.err
3718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3719 test $ac_status = 0; }
3722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h. */
3733 ac_clean_files_save=$ac_clean_files
3734 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3735 # Try to create an executable without -o first, disregard a.out.
3736 # It will help us diagnose broken compilers, and finding out an intuition
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3739 $as_echo_n "checking whether the C compiler works... " >&6; }
3740 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3742 # The possible output files:
3743 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3746 for ac_file in $ac_files
3749 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3750 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3755 if { { ac_try="$ac_link_default"
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3761 $as_echo "$ac_try_echo"; } >&5
3762 (eval "$ac_link_default") 2>&5
3764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3765 test $ac_status = 0; }; then :
3766 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3767 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3768 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3769 # so that the user can short-circuit this test for compilers unknown to
3771 for ac_file in $ac_files ''
3773 test -f "$ac_file" || continue
3775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3778 # We found the default executable, but exeext='' is most
3782 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3784 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3786 # We set ac_cv_exeext here because the later test for it is not
3787 # safe: cross compilers may not add the suffix if given an `-o'
3788 # argument, so we may need to know it at that point already.
3789 # Even if this section looks crufty: it has the advantage of
3796 test "$ac_cv_exeext" = no && ac_cv_exeext=
3801 if test -z "$ac_file"; then :
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3803 $as_echo "no" >&6; }
3804 $as_echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3809 as_fn_error 77 "C compiler cannot create executables
3810 See \`config.log' for more details" "$LINENO" 5; }
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3813 $as_echo "yes" >&6; }
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3816 $as_echo_n "checking for C compiler default output file name... " >&6; }
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3818 $as_echo "$ac_file" >&6; }
3819 ac_exeext=$ac_cv_exeext
3821 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3822 ac_clean_files=$ac_clean_files_save
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3824 $as_echo_n "checking for suffix of executables... " >&6; }
3825 if { { ac_try="$ac_link"
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3831 $as_echo "$ac_try_echo"; } >&5
3832 (eval "$ac_link") 2>&5
3834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3835 test $ac_status = 0; }; then :
3836 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3837 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3838 # work properly (i.e., refer to `conftest.exe'), while it won't with
3840 for ac_file in conftest.exe conftest conftest.*; do
3841 test -f "$ac_file" || continue
3843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3844 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3852 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3853 See \`config.log' for more details" "$LINENO" 5; }
3855 rm -f conftest conftest$ac_cv_exeext
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3857 $as_echo "$ac_cv_exeext" >&6; }
3859 rm -f conftest.$ac_ext
3860 EXEEXT=$ac_cv_exeext
3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3868 FILE *f = fopen ("conftest.out", "w");
3869 return ferror (f) || fclose (f) != 0;
3875 ac_clean_files="$ac_clean_files conftest.out"
3876 # Check that the compiler produces executables we can run. If not, either
3877 # the compiler is broken, or we cross compile.
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3879 $as_echo_n "checking whether we are cross compiling... " >&6; }
3880 if test "$cross_compiling" != yes; then
3881 { { ac_try="$ac_link"
3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3887 $as_echo "$ac_try_echo"; } >&5
3888 (eval "$ac_link") 2>&5
3890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3891 test $ac_status = 0; }
3892 if { ac_try='./conftest$ac_cv_exeext'
3893 { { case "(($ac_try" in
3894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895 *) ac_try_echo=$ac_try;;
3897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3898 $as_echo "$ac_try_echo"; } >&5
3899 (eval "$ac_try") 2>&5
3901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3902 test $ac_status = 0; }; }; then
3905 if test "$cross_compiling" = maybe; then
3908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3910 as_fn_error $? "cannot run C compiled programs.
3911 If you meant to cross compile, use \`--host'.
3912 See \`config.log' for more details" "$LINENO" 5; }
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3917 $as_echo "$cross_compiling" >&6; }
3919 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3920 ac_clean_files=$ac_clean_files_save
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3922 $as_echo_n "checking for suffix of object files... " >&6; }
3923 if ${ac_cv_objext+:} false; then :
3924 $as_echo_n "(cached) " >&6
3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h. */
3937 rm -f conftest.o conftest.obj
3938 if { { ac_try="$ac_compile"
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3944 $as_echo "$ac_try_echo"; } >&5
3945 (eval "$ac_compile") 2>&5
3947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3948 test $ac_status = 0; }; then :
3949 for ac_file in conftest.o conftest.obj conftest.*; do
3950 test -f "$ac_file" || continue;
3952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3953 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3958 $as_echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.$ac_ext >&5
3961 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3963 as_fn_error $? "cannot compute suffix of object files: cannot compile
3964 See \`config.log' for more details" "$LINENO" 5; }
3966 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3969 $as_echo "$ac_cv_objext" >&6; }
3970 OBJEXT=$ac_cv_objext
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3973 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3974 if ${ac_cv_c_compiler_gnu+:} false; then :
3975 $as_echo_n "(cached) " >&6
3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978 /* end confdefs.h. */
3991 if ac_fn_c_try_compile "$LINENO"; then :
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4001 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4002 if test $ac_compiler_gnu = yes; then
4007 ac_test_CFLAGS=${CFLAGS+set}
4008 ac_save_CFLAGS=$CFLAGS
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4010 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4011 if ${ac_cv_prog_cc_g+:} false; then :
4012 $as_echo_n "(cached) " >&6
4014 ac_save_c_werror_flag=$ac_c_werror_flag
4015 ac_c_werror_flag=yes
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4029 if ac_fn_c_try_compile "$LINENO"; then :
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4044 if ac_fn_c_try_compile "$LINENO"; then :
4047 ac_c_werror_flag=$ac_save_c_werror_flag
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4060 if ac_fn_c_try_compile "$LINENO"; then :
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068 ac_c_werror_flag=$ac_save_c_werror_flag
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4071 $as_echo "$ac_cv_prog_cc_g" >&6; }
4072 if test "$ac_test_CFLAGS" = set; then
4073 CFLAGS=$ac_save_CFLAGS
4074 elif test $ac_cv_prog_cc_g = yes; then
4075 if test "$GCC" = yes; then
4081 if test "$GCC" = yes; then
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4088 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4089 if ${ac_cv_prog_cc_c89+:} false; then :
4090 $as_echo_n "(cached) " >&6
4092 ac_cv_prog_cc_c89=no
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h. */
4099 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4100 struct buf { int x; };
4101 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4102 static char *e (p, i)
4108 static char *f (char * (*g) (char **, int), char **p, ...)
4113 s = g (p, va_arg (v,int));
4118 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4119 function prototypes and stuff, but not '\xHH' hex character constants.
4120 These don't provoke an error unfortunately, instead are silently treated
4121 as 'x'. The following induces an error, until -std is added to get
4122 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4123 array size at least. It's necessary to write '\x00'==0 to get something
4124 that's true only with -std. */
4125 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4127 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4128 inside strings and character constants. */
4130 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4132 int test (int i, double x);
4133 struct s1 {int (*f) (int a);};
4134 struct s2 {int (*f) (double a);};
4135 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4141 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4146 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4147 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4149 CC="$ac_save_CC $ac_arg"
4150 if ac_fn_c_try_compile "$LINENO"; then :
4151 ac_cv_prog_cc_c89=$ac_arg
4153 rm -f core conftest.err conftest.$ac_objext
4154 test "x$ac_cv_prog_cc_c89" != "xno" && break
4156 rm -f conftest.$ac_ext
4161 case "x$ac_cv_prog_cc_c89" in
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4164 $as_echo "none needed" >&6; } ;;
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4167 $as_echo "unsupported" >&6; } ;;
4169 CC="$CC $ac_cv_prog_cc_c89"
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4171 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4173 if test "x$ac_cv_prog_cc_c89" != xno; then :
4178 ac_cpp='$CPP $CPPFLAGS'
4179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4182 DEPDIR="${am__leading_dot}deps"
4184 ac_config_commands="$ac_config_commands depfiles"
4187 am_make=${MAKE-make}
4188 cat > confinc << 'END'
4190 @echo this is the am__doit target
4193 # If we don't find an include directive, just comment out the code.
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4195 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4199 # First try GNU make style include.
4200 echo "include confinc" > confmf
4201 # Ignore all kinds of additional output from 'make'.
4202 case `$am_make -s -f confmf 2> /dev/null` in #(
4203 *the\ am__doit\ target*)
4209 # Now try BSD make style include.
4210 if test "$am__include" = "#"; then
4211 echo '.include "confinc"' > confmf
4212 case `$am_make -s -f confmf 2> /dev/null` in #(
4213 *the\ am__doit\ target*)
4214 am__include=.include
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4223 $as_echo "$_am_result" >&6; }
4224 rm -f confinc confmf
4226 # Check whether --enable-dependency-tracking was given.
4227 if test "${enable_dependency_tracking+set}" = set; then :
4228 enableval=$enable_dependency_tracking;
4231 if test "x$enable_dependency_tracking" != xno; then
4232 am_depcomp="$ac_aux_dir/depcomp"
4236 if test "x$enable_dependency_tracking" != xno; then
4246 depcc="$CC" am_compiler_list=
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4249 $as_echo_n "checking dependency style of $depcc... " >&6; }
4250 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4251 $as_echo_n "(cached) " >&6
4253 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4254 # We make a subdir and do the tests there. Otherwise we can end up
4255 # making bogus files that we don't know about and never remove. For
4256 # instance it was reported that on HP-UX the gcc test will end up
4257 # making a dummy file named 'D' -- because '-MD' means "put the output
4261 # Copy depcomp to subdir because otherwise we won't find it if we're
4262 # using a relative directory.
4263 cp "$am_depcomp" conftest.dir
4265 # We will build objects and dependencies in a subdirectory because
4266 # it helps to detect inapplicable dependency modes. For instance
4267 # both Tru64's cc and ICC support -MD to output dependencies as a
4268 # side effect of compilation, but ICC will put the dependencies in
4269 # the current directory while Tru64 will put them in the object
4273 am_cv_CC_dependencies_compiler_type=none
4274 if test "$am_compiler_list" = ""; then
4275 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4278 case " $depcc " in #(
4279 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4282 for depmode in $am_compiler_list; do
4283 # Setup a source with many dependencies, because some compilers
4284 # like to wrap large dependency lists on column 80 (with \), and
4285 # we should not choose a depcomp mode which is confused by this.
4287 # We need to recreate these files for each test, as the compiler may
4288 # overwrite some of them when testing with obscure command lines.
4289 # This happens at least with the AIX C compiler.
4291 for i in 1 2 3 4 5 6; do
4292 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4293 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4294 # Solaris 10 /bin/sh.
4295 echo '/* dummy */' > sub/conftst$i.h
4297 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4299 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4300 # mode. It turns out that the SunPro C++ compiler does not properly
4301 # handle '-M -o', and we need to detect this. Also, some Intel
4302 # versions had trouble with output in subdirs.
4303 am__obj=sub/conftest.${OBJEXT-o}
4304 am__minus_obj="-o $am__obj"
4307 # This depmode causes a compiler race in universal mode.
4308 test "$am__universal" = false || continue
4311 # After this tag, mechanisms are not by side-effect, so they'll
4312 # only be used when explicitly requested.
4313 if test "x$enable_dependency_tracking" = xyes; then
4319 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4320 # This compiler won't grok '-c -o', but also, the minuso test has
4321 # not run yet. These depmodes are late enough in the game, and
4322 # so weak that their functioning should not be impacted.
4323 am__obj=conftest.${OBJEXT-o}
4328 if depmode=$depmode \
4329 source=sub/conftest.c object=$am__obj \
4330 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4331 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4332 >/dev/null 2>conftest.err &&
4333 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4334 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4335 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4336 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4337 # icc doesn't choke on unknown options, it will just issue warnings
4338 # or remarks (even with -Werror). So we grep stderr for any message
4339 # that says an option was ignored or not supported.
4340 # When given -MP, icc 7.0 and 7.1 complain thusly:
4341 # icc: Command line warning: ignoring option '-M'; no argument required
4342 # The diagnosis changed in icc 8.0:
4343 # icc: Command line remark: option '-MP' not supported
4344 if (grep 'ignoring option' conftest.err ||
4345 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4346 am_cv_CC_dependencies_compiler_type=$depmode
4355 am_cv_CC_dependencies_compiler_type=none
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4360 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4361 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4364 test "x$enable_dependency_tracking" != xno \
4365 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4367 am__fastdepCC_FALSE='#'
4369 am__fastdepCC_TRUE='#'
4370 am__fastdepCC_FALSE=
4374 if test "x$CC" != xcc; then
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4376 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4379 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4381 set dummy $CC; ac_cc=`$as_echo "$2" |
4382 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4383 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4384 $as_echo_n "(cached) " >&6
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4397 # Make sure it works both with $CC and with simple cc.
4398 # We do the test twice because some compilers refuse to overwrite an
4399 # existing .o file with -o, though they will create one.
4400 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4402 if { { case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4407 $as_echo "$ac_try_echo"; } >&5
4408 (eval "$ac_try") 2>&5
4410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4411 test $ac_status = 0; } &&
4412 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4417 $as_echo "$ac_try_echo"; } >&5
4418 (eval "$ac_try") 2>&5
4420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4421 test $ac_status = 0; };
4423 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4424 if test "x$CC" != xcc; then
4425 # Test first that cc exists at all.
4426 if { ac_try='cc -c conftest.$ac_ext >&5'
4427 { { case "(($ac_try" in
4428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429 *) ac_try_echo=$ac_try;;
4431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4432 $as_echo "$ac_try_echo"; } >&5
4433 (eval "$ac_try") 2>&5
4435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4436 test $ac_status = 0; }; }; then
4437 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4439 if { { case "(($ac_try" in
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4444 $as_echo "$ac_try_echo"; } >&5
4445 (eval "$ac_try") 2>&5
4447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4448 test $ac_status = 0; } &&
4449 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4454 $as_echo "$ac_try_echo"; } >&5
4455 (eval "$ac_try") 2>&5
4457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4458 test $ac_status = 0; };
4463 # cc exists but doesn't like -o.
4464 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4469 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4471 rm -f core conftest*
4474 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4476 $as_echo "yes" >&6; }
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479 $as_echo "no" >&6; }
4481 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4485 # FIXME: we rely on the cache variable name because
4486 # there is no other way.
4488 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4489 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4490 if test "$am_t" != yes; then
4491 # Losing compiler, so override with the script.
4492 # FIXME: It is wrong to rewrite CC.
4493 # But if we don't then we get into trouble of one sort or another.
4494 # A longer-term fix would be to have automake use am__CC in this case,
4495 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4496 CC="$am_aux_dir/compile $CC"
4502 # Initialize libtool
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4507 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4512 macro_version='2.4.2'
4513 macro_revision='1.3337'
4527 ltmain="$ac_aux_dir/ltmain.sh"
4529 # Backslashify metacharacters that are still active within
4530 # double-quoted strings.
4531 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4533 # Same as above, but do not quote variable references.
4534 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4536 # Sed substitution to delay expansion of an escaped shell variable in a
4537 # double_quote_subst'ed string.
4538 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4540 # Sed substitution to delay expansion of an escaped single quote.
4541 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4543 # Sed substitution to avoid accidental globbing in evaled expressions
4544 no_glob_subst='s/\*/\\\*/g'
4546 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4547 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4548 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4551 $as_echo_n "checking how to print strings... " >&6; }
4552 # Test print first, because it will be a builtin if present.
4553 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4554 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4556 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4559 # Use this function as a fallback that always works.
4560 func_fallback_echo ()
4562 eval 'cat <<_LTECHO_EOF
4566 ECHO='func_fallback_echo'
4569 # func_echo_all arg...
4570 # Invoke $ECHO with all args, space-separated.
4577 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4578 $as_echo "printf" >&6; } ;;
4579 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4580 $as_echo "print -r" >&6; } ;;
4581 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4582 $as_echo "cat" >&6; } ;;
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4599 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4600 if ${ac_cv_path_SED+:} false; then :
4601 $as_echo_n "(cached) " >&6
4603 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4604 for ac_i in 1 2 3 4 5 6 7; do
4605 ac_script="$ac_script$as_nl$ac_script"
4607 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4608 { ac_script=; unset ac_script;}
4609 if test -z "$SED"; then
4610 ac_path_SED_found=false
4611 # Loop through the user's path and test for each of PROGNAME-LIST
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 test -z "$as_dir" && as_dir=.
4617 for ac_prog in sed gsed; do
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4620 as_fn_executable_p "$ac_path_SED" || continue
4621 # Check for GNU ac_path_SED and select it if it is found.
4622 # Check for GNU $ac_path_SED
4623 case `"$ac_path_SED" --version 2>&1` in
4625 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4628 $as_echo_n 0123456789 >"conftest.in"
4631 cat "conftest.in" "conftest.in" >"conftest.tmp"
4632 mv "conftest.tmp" "conftest.in"
4633 cp "conftest.in" "conftest.nl"
4634 $as_echo '' >> "conftest.nl"
4635 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4636 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4637 as_fn_arith $ac_count + 1 && ac_count=$as_val
4638 if test $ac_count -gt ${ac_path_SED_max-0}; then
4639 # Best one so far, save it but keep looking for a better one
4640 ac_cv_path_SED="$ac_path_SED"
4641 ac_path_SED_max=$ac_count
4643 # 10*(2^10) chars as input seems more than enough
4644 test $ac_count -gt 10 && break
4646 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4649 $ac_path_SED_found && break 3
4654 if test -z "$ac_cv_path_SED"; then
4655 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4663 $as_echo "$ac_cv_path_SED" >&6; }
4664 SED="$ac_cv_path_SED"
4667 test -z "$SED" && SED=sed
4668 Xsed="$SED -e 1s/^X//"
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4681 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4682 if ${ac_cv_path_GREP+:} false; then :
4683 $as_echo_n "(cached) " >&6
4685 if test -z "$GREP"; then
4686 ac_path_GREP_found=false
4687 # Loop through the user's path and test for each of PROGNAME-LIST
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4692 test -z "$as_dir" && as_dir=.
4693 for ac_prog in grep ggrep; do
4694 for ac_exec_ext in '' $ac_executable_extensions; do
4695 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4696 as_fn_executable_p "$ac_path_GREP" || continue
4697 # Check for GNU ac_path_GREP and select it if it is found.
4698 # Check for GNU $ac_path_GREP
4699 case `"$ac_path_GREP" --version 2>&1` in
4701 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4704 $as_echo_n 0123456789 >"conftest.in"
4707 cat "conftest.in" "conftest.in" >"conftest.tmp"
4708 mv "conftest.tmp" "conftest.in"
4709 cp "conftest.in" "conftest.nl"
4710 $as_echo 'GREP' >> "conftest.nl"
4711 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4712 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4713 as_fn_arith $ac_count + 1 && ac_count=$as_val
4714 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4715 # Best one so far, save it but keep looking for a better one
4716 ac_cv_path_GREP="$ac_path_GREP"
4717 ac_path_GREP_max=$ac_count
4719 # 10*(2^10) chars as input seems more than enough
4720 test $ac_count -gt 10 && break
4722 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4725 $ac_path_GREP_found && break 3
4730 if test -z "$ac_cv_path_GREP"; then
4731 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4734 ac_cv_path_GREP=$GREP
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4739 $as_echo "$ac_cv_path_GREP" >&6; }
4740 GREP="$ac_cv_path_GREP"
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4744 $as_echo_n "checking for egrep... " >&6; }
4745 if ${ac_cv_path_EGREP+:} false; then :
4746 $as_echo_n "(cached) " >&6
4748 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4749 then ac_cv_path_EGREP="$GREP -E"
4751 if test -z "$EGREP"; then
4752 ac_path_EGREP_found=false
4753 # Loop through the user's path and test for each of PROGNAME-LIST
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4758 test -z "$as_dir" && as_dir=.
4759 for ac_prog in egrep; do
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4762 as_fn_executable_p "$ac_path_EGREP" || continue
4763 # Check for GNU ac_path_EGREP and select it if it is found.
4764 # Check for GNU $ac_path_EGREP
4765 case `"$ac_path_EGREP" --version 2>&1` in
4767 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4770 $as_echo_n 0123456789 >"conftest.in"
4773 cat "conftest.in" "conftest.in" >"conftest.tmp"
4774 mv "conftest.tmp" "conftest.in"
4775 cp "conftest.in" "conftest.nl"
4776 $as_echo 'EGREP' >> "conftest.nl"
4777 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4778 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4779 as_fn_arith $ac_count + 1 && ac_count=$as_val
4780 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4781 # Best one so far, save it but keep looking for a better one
4782 ac_cv_path_EGREP="$ac_path_EGREP"
4783 ac_path_EGREP_max=$ac_count
4785 # 10*(2^10) chars as input seems more than enough
4786 test $ac_count -gt 10 && break
4788 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4791 $ac_path_EGREP_found && break 3
4796 if test -z "$ac_cv_path_EGREP"; then
4797 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4800 ac_cv_path_EGREP=$EGREP
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4806 $as_echo "$ac_cv_path_EGREP" >&6; }
4807 EGREP="$ac_cv_path_EGREP"
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4811 $as_echo_n "checking for fgrep... " >&6; }
4812 if ${ac_cv_path_FGREP+:} false; then :
4813 $as_echo_n "(cached) " >&6
4815 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4816 then ac_cv_path_FGREP="$GREP -F"
4818 if test -z "$FGREP"; then
4819 ac_path_FGREP_found=false
4820 # Loop through the user's path and test for each of PROGNAME-LIST
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4825 test -z "$as_dir" && as_dir=.
4826 for ac_prog in fgrep; do
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4829 as_fn_executable_p "$ac_path_FGREP" || continue
4830 # Check for GNU ac_path_FGREP and select it if it is found.
4831 # Check for GNU $ac_path_FGREP
4832 case `"$ac_path_FGREP" --version 2>&1` in
4834 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4837 $as_echo_n 0123456789 >"conftest.in"
4840 cat "conftest.in" "conftest.in" >"conftest.tmp"
4841 mv "conftest.tmp" "conftest.in"
4842 cp "conftest.in" "conftest.nl"
4843 $as_echo 'FGREP' >> "conftest.nl"
4844 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4845 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4846 as_fn_arith $ac_count + 1 && ac_count=$as_val
4847 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4848 # Best one so far, save it but keep looking for a better one
4849 ac_cv_path_FGREP="$ac_path_FGREP"
4850 ac_path_FGREP_max=$ac_count
4852 # 10*(2^10) chars as input seems more than enough
4853 test $ac_count -gt 10 && break
4855 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4858 $ac_path_FGREP_found && break 3
4863 if test -z "$ac_cv_path_FGREP"; then
4864 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4867 ac_cv_path_FGREP=$FGREP
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4873 $as_echo "$ac_cv_path_FGREP" >&6; }
4874 FGREP="$ac_cv_path_FGREP"
4877 test -z "$GREP" && GREP=grep
4897 # Check whether --with-gnu-ld was given.
4898 if test "${with_gnu_ld+set}" = set; then :
4899 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4905 if test "$GCC" = yes; then
4906 # Check if gcc -print-prog-name=ld gives a path.
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4908 $as_echo_n "checking for ld used by $CC... " >&6; }
4911 # gcc leaves a trailing carriage return which upsets mingw
4912 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4914 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4917 # Accept absolute paths.
4919 re_direlt='/[^/][^/]*/\.\./'
4920 # Canonicalize the pathname of ld
4921 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4922 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4923 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4925 test -z "$LD" && LD="$ac_prog"
4928 # If it fails, then pretend we aren't using GCC.
4932 # If it is relative, then search for the first ld in PATH.
4936 elif test "$with_gnu_ld" = yes; then
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4938 $as_echo_n "checking for GNU ld... " >&6; }
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4941 $as_echo_n "checking for non-GNU ld... " >&6; }
4943 if ${lt_cv_path_LD+:} false; then :
4944 $as_echo_n "(cached) " >&6
4946 if test -z "$LD"; then
4947 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4948 for ac_dir in $PATH; do
4950 test -z "$ac_dir" && ac_dir=.
4951 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4952 lt_cv_path_LD="$ac_dir/$ac_prog"
4953 # Check to see if the program is GNU ld. I'd rather use --version,
4954 # but apparently some variants of GNU ld only accept -v.
4955 # Break only if it was the GNU/non-GNU ld that we prefer.
4956 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4957 *GNU* | *'with BFD'*)
4958 test "$with_gnu_ld" != no && break
4961 test "$with_gnu_ld" != yes && break
4968 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4973 if test -n "$LD"; then
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4975 $as_echo "$LD" >&6; }
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4980 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4982 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4983 if ${lt_cv_prog_gnu_ld+:} false; then :
4984 $as_echo_n "(cached) " >&6
4986 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4987 case `$LD -v 2>&1 </dev/null` in
4988 *GNU* | *'with BFD'*)
4989 lt_cv_prog_gnu_ld=yes
4992 lt_cv_prog_gnu_ld=no
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4997 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4998 with_gnu_ld=$lt_cv_prog_gnu_ld
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5009 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5010 if ${lt_cv_path_NM+:} false; then :
5011 $as_echo_n "(cached) " >&6
5013 if test -n "$NM"; then
5014 # Let the user override the test.
5017 lt_nm_to_check="${ac_tool_prefix}nm"
5018 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5019 lt_nm_to_check="$lt_nm_to_check nm"
5021 for lt_tmp_nm in $lt_nm_to_check; do
5022 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5023 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5025 test -z "$ac_dir" && ac_dir=.
5026 tmp_nm="$ac_dir/$lt_tmp_nm"
5027 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5028 # Check to see if the nm accepts a BSD-compat flag.
5029 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5030 # nm: unknown option "B" ignored
5031 # Tru64's nm complains that /dev/null is an invalid object file
5032 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5033 */dev/null* | *'Invalid file or object type'*)
5034 lt_cv_path_NM="$tmp_nm -B"
5038 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5040 lt_cv_path_NM="$tmp_nm -p"
5044 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5045 continue # so that we can try to find one that supports BSD flags
5054 : ${lt_cv_path_NM=no}
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5058 $as_echo "$lt_cv_path_NM" >&6; }
5059 if test "$lt_cv_path_NM" != "no"; then
5062 # Didn't find any BSD compatible name lister, look for dumpbin.
5063 if test -n "$DUMPBIN"; then :
5064 # Let the user override the test.
5066 if test -n "$ac_tool_prefix"; then
5067 for ac_prog in dumpbin "link -dump"
5069 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5070 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5072 $as_echo_n "checking for $ac_word... " >&6; }
5073 if ${ac_cv_prog_DUMPBIN+:} false; then :
5074 $as_echo_n "(cached) " >&6
5076 if test -n "$DUMPBIN"; then
5077 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 test -z "$as_dir" && as_dir=.
5084 for ac_exec_ext in '' $ac_executable_extensions; do
5085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5086 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 DUMPBIN=$ac_cv_prog_DUMPBIN
5097 if test -n "$DUMPBIN"; then
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5099 $as_echo "$DUMPBIN" >&6; }
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102 $as_echo "no" >&6; }
5106 test -n "$DUMPBIN" && break
5109 if test -z "$DUMPBIN"; then
5110 ac_ct_DUMPBIN=$DUMPBIN
5111 for ac_prog in dumpbin "link -dump"
5113 # Extract the first word of "$ac_prog", so it can be a program name with args.
5114 set dummy $ac_prog; ac_word=$2
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5116 $as_echo_n "checking for $ac_word... " >&6; }
5117 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5118 $as_echo_n "(cached) " >&6
5120 if test -n "$ac_ct_DUMPBIN"; then
5121 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 test -z "$as_dir" && as_dir=.
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5130 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5141 if test -n "$ac_ct_DUMPBIN"; then
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5143 $as_echo "$ac_ct_DUMPBIN" >&6; }
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146 $as_echo "no" >&6; }
5150 test -n "$ac_ct_DUMPBIN" && break
5153 if test "x$ac_ct_DUMPBIN" = x; then
5156 case $cross_compiling:$ac_tool_warned in
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5160 ac_tool_warned=yes ;;
5162 DUMPBIN=$ac_ct_DUMPBIN
5166 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5168 DUMPBIN="$DUMPBIN -symbols"
5176 if test "$DUMPBIN" != ":"; then
5180 test -z "$NM" && NM=nm
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5188 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5189 if ${lt_cv_nm_interface+:} false; then :
5190 $as_echo_n "(cached) " >&6
5192 lt_cv_nm_interface="BSD nm"
5193 echo "int some_variable = 0;" > conftest.$ac_ext
5194 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5195 (eval "$ac_compile" 2>conftest.err)
5196 cat conftest.err >&5
5197 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5198 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5199 cat conftest.err >&5
5200 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5201 cat conftest.out >&5
5202 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5203 lt_cv_nm_interface="MS dumpbin"
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5208 $as_echo "$lt_cv_nm_interface" >&6; }
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5211 $as_echo_n "checking whether ln -s works... " >&6; }
5213 if test "$LN_S" = "ln -s"; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5215 $as_echo "yes" >&6; }
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5218 $as_echo "no, using $LN_S" >&6; }
5221 # find the maximum length of command line arguments
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5223 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5224 if ${lt_cv_sys_max_cmd_len+:} false; then :
5225 $as_echo_n "(cached) " >&6
5232 # On DJGPP, this test can blow up pretty badly due to problems in libc
5233 # (any single argument exceeding 2000 bytes causes a buffer overrun
5234 # during glob expansion). Even if it were fixed, the result of this
5235 # check would be larger than it should be.
5236 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5240 # Under GNU Hurd, this test is not required because there is
5241 # no limit to the length of command line arguments.
5242 # Libtool will interpret -1 as no limit whatsoever
5243 lt_cv_sys_max_cmd_len=-1;
5246 cygwin* | mingw* | cegcc*)
5247 # On Win9x/ME, this test blows up -- it succeeds, but takes
5248 # about 5 minutes as the teststring grows exponentially.
5249 # Worse, since 9x/ME are not pre-emptively multitasking,
5250 # you end up with a "frozen" computer, even though with patience
5251 # the test eventually succeeds (with a max line length of 256k).
5252 # Instead, let's just punt: use the minimum linelength reported by
5253 # all of the supported platforms: 8192 (on NT/2K/XP).
5254 lt_cv_sys_max_cmd_len=8192;
5258 # On MiNT this can take a long time and run out of memory.
5259 lt_cv_sys_max_cmd_len=8192;
5263 # On AmigaOS with pdksh, this test takes hours, literally.
5264 # So we just punt and use a minimum line length of 8192.
5265 lt_cv_sys_max_cmd_len=8192;
5268 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5269 # This has been around since 386BSD, at least. Likely further.
5270 if test -x /sbin/sysctl; then
5271 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5272 elif test -x /usr/sbin/sysctl; then
5273 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5275 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5277 # And add a safety zone
5278 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5279 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5283 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5284 lt_cv_sys_max_cmd_len=196608
5288 # The test takes a long time on OS/2.
5289 lt_cv_sys_max_cmd_len=8192
5293 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5294 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5295 # nice to cause kernel panics so lets avoid the loop below.
5296 # First set a reasonable default.
5297 lt_cv_sys_max_cmd_len=16384
5299 if test -x /sbin/sysconfig; then
5300 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5301 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5306 lt_cv_sys_max_cmd_len=102400
5308 sysv5* | sco5v6* | sysv4.2uw2*)
5309 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5310 if test -n "$kargmax"; then
5311 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5313 lt_cv_sys_max_cmd_len=32768
5317 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5318 if test -n "$lt_cv_sys_max_cmd_len"; then
5319 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5322 # Make teststring a little bigger before we do anything with it.
5323 # a 1K string should be a reasonable start.
5324 for i in 1 2 3 4 5 6 7 8 ; do
5325 teststring=$teststring$teststring
5327 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5328 # If test is not a shell built-in, we'll probably end up computing a
5329 # maximum length that is only half of the actual maximum length, but
5331 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5332 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5333 test $i != 17 # 1/2 MB should be enough
5336 teststring=$teststring$teststring
5338 # Only check the string length outside the loop.
5339 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5341 # Add a significant safety factor because C++ compilers can tack on
5342 # massive amounts of additional arguments before passing them to the
5343 # linker. It appears as though 1/2 is a usable value.
5344 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5351 if test -n $lt_cv_sys_max_cmd_len ; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5353 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5356 $as_echo "none" >&6; }
5358 max_cmd_len=$lt_cv_sys_max_cmd_len
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5370 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5371 # Try some XSI features
5374 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5376 && eval 'test $(( 1 + 1 )) -eq 2 \
5377 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5380 $as_echo "$xsi_shell" >&6; }
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5384 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5386 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5388 && lt_shell_append=yes
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5390 $as_echo "$lt_shell_append" >&6; }
5393 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5403 # test EBCDIC or ASCII
5404 case `echo X|tr X '\101'` in
5405 A) # ASCII based system
5406 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5407 lt_SP2NL='tr \040 \012'
5408 lt_NL2SP='tr \015\012 \040\040'
5410 *) # EBCDIC based system
5411 lt_SP2NL='tr \100 \n'
5412 lt_NL2SP='tr \r\n \100\100'
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5425 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5426 if ${lt_cv_to_host_file_cmd+:} false; then :
5427 $as_echo_n "(cached) " >&6
5432 *-*-mingw* ) # actually msys
5433 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5436 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5438 * ) # otherwise, assume *nix
5439 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5445 *-*-mingw* ) # actually msys
5446 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5449 lt_cv_to_host_file_cmd=func_convert_file_noop
5451 * ) # otherwise, assume *nix
5452 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5456 * ) # unhandled hosts (and "normal" native builds)
5457 lt_cv_to_host_file_cmd=func_convert_file_noop
5463 to_host_file_cmd=$lt_cv_to_host_file_cmd
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5465 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5472 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5473 if ${lt_cv_to_tool_file_cmd+:} false; then :
5474 $as_echo_n "(cached) " >&6
5476 #assume ordinary cross tools, or native build.
5477 lt_cv_to_tool_file_cmd=func_convert_file_noop
5481 *-*-mingw* ) # actually msys
5482 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5490 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5492 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5499 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5500 if ${lt_cv_ld_reload_flag+:} false; then :
5501 $as_echo_n "(cached) " >&6
5503 lt_cv_ld_reload_flag='-r'
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5506 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5507 reload_flag=$lt_cv_ld_reload_flag
5508 case $reload_flag in
5510 *) reload_flag=" $reload_flag" ;;
5512 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5514 cygwin* | mingw* | pw32* | cegcc*)
5515 if test "$GCC" != yes; then
5520 if test "$GCC" = yes; then
5521 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5523 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5536 if test -n "$ac_tool_prefix"; then
5537 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5538 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; }
5541 if ${ac_cv_prog_OBJDUMP+:} false; then :
5542 $as_echo_n "(cached) " >&6
5544 if test -n "$OBJDUMP"; then
5545 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 test -z "$as_dir" && as_dir=.
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5554 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5564 OBJDUMP=$ac_cv_prog_OBJDUMP
5565 if test -n "$OBJDUMP"; then
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5567 $as_echo "$OBJDUMP" >&6; }
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570 $as_echo "no" >&6; }
5575 if test -z "$ac_cv_prog_OBJDUMP"; then
5576 ac_ct_OBJDUMP=$OBJDUMP
5577 # Extract the first word of "objdump", so it can be a program name with args.
5578 set dummy objdump; ac_word=$2
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5580 $as_echo_n "checking for $ac_word... " >&6; }
5581 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5582 $as_echo_n "(cached) " >&6
5584 if test -n "$ac_ct_OBJDUMP"; then
5585 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 test -z "$as_dir" && as_dir=.
5592 for ac_exec_ext in '' $ac_executable_extensions; do
5593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5594 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5604 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5605 if test -n "$ac_ct_OBJDUMP"; then
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5607 $as_echo "$ac_ct_OBJDUMP" >&6; }
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5613 if test "x$ac_ct_OBJDUMP" = x; then
5616 case $cross_compiling:$ac_tool_warned in
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5620 ac_tool_warned=yes ;;
5622 OBJDUMP=$ac_ct_OBJDUMP
5625 OBJDUMP="$ac_cv_prog_OBJDUMP"
5628 test -z "$OBJDUMP" && OBJDUMP=objdump
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5639 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5640 if ${lt_cv_deplibs_check_method+:} false; then :
5641 $as_echo_n "(cached) " >&6
5643 lt_cv_file_magic_cmd='$MAGIC_CMD'
5644 lt_cv_file_magic_test_file=
5645 lt_cv_deplibs_check_method='unknown'
5646 # Need to set the preceding variable on all platforms that support
5647 # interlibrary dependencies.
5648 # 'none' -- dependencies not supported.
5649 # `unknown' -- same as none, but documents that we really don't know.
5650 # 'pass_all' -- all dependencies passed with no checks.
5651 # 'test_compile' -- check by making test program.
5652 # 'file_magic [[regex]]' -- check by looking for files in library path
5653 # which responds to the $file_magic_cmd with a given extended regex.
5654 # If you have `file' or equivalent on your system and you're not sure
5655 # whether `pass_all' will *always* work, you probably want this one.
5659 lt_cv_deplibs_check_method=pass_all
5663 lt_cv_deplibs_check_method=pass_all
5667 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5668 lt_cv_file_magic_cmd='/usr/bin/file -L'
5669 lt_cv_file_magic_test_file=/shlib/libc.so
5673 # func_win32_libid is a shell function defined in ltmain.sh
5674 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5675 lt_cv_file_magic_cmd='func_win32_libid'
5679 # Base MSYS/MinGW do not provide the 'file' command needed by
5680 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5681 # unless we find 'file', for example because we are cross-compiling.
5682 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5683 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5684 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5685 lt_cv_file_magic_cmd='func_win32_libid'
5687 # Keep this pattern in sync with the one in func_win32_libid.
5688 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5689 lt_cv_file_magic_cmd='$OBJDUMP -f'
5694 # use the weaker test based on 'objdump'. See mingw*.
5695 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5696 lt_cv_file_magic_cmd='$OBJDUMP -f'
5699 darwin* | rhapsody*)
5700 lt_cv_deplibs_check_method=pass_all
5703 freebsd* | dragonfly*)
5704 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5707 # Not sure whether the presence of OpenBSD here was a mistake.
5708 # Let's accept both of them until this is cleared up.
5709 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5710 lt_cv_file_magic_cmd=/usr/bin/file
5711 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5715 lt_cv_deplibs_check_method=pass_all
5720 lt_cv_deplibs_check_method=pass_all
5724 lt_cv_deplibs_check_method=pass_all
5727 hpux10.20* | hpux11*)
5728 lt_cv_file_magic_cmd=/usr/bin/file
5731 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5732 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5735 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]'
5736 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5739 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5740 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5746 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5747 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5750 irix5* | irix6* | nonstopux*)
5752 *-32|*"-32 ") libmagic=32-bit;;
5753 *-n32|*"-n32 ") libmagic=N32;;
5754 *-64|*"-64 ") libmagic=64-bit;;
5755 *) libmagic=never-match;;
5757 lt_cv_deplibs_check_method=pass_all
5760 # This must be glibc/ELF.
5761 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5762 lt_cv_deplibs_check_method=pass_all
5766 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5767 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5769 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5774 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5775 lt_cv_file_magic_cmd=/usr/bin/file
5776 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5780 lt_cv_deplibs_check_method=pass_all
5784 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5785 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5787 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5791 osf3* | osf4* | osf5*)
5792 lt_cv_deplibs_check_method=pass_all
5796 lt_cv_deplibs_check_method=pass_all
5800 lt_cv_deplibs_check_method=pass_all
5803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5804 lt_cv_deplibs_check_method=pass_all
5808 case $host_vendor in
5810 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]'
5811 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5814 lt_cv_deplibs_check_method=pass_all
5817 lt_cv_file_magic_cmd='/bin/file'
5818 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5821 lt_cv_file_magic_cmd='/bin/file'
5822 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5823 lt_cv_file_magic_test_file=/lib/libc.so
5826 lt_cv_deplibs_check_method=pass_all
5829 lt_cv_deplibs_check_method=pass_all
5835 lt_cv_deplibs_check_method=pass_all
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5841 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5845 if test "$build" = "$host"; then
5848 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5851 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5857 file_magic_cmd=$lt_cv_file_magic_cmd
5858 deplibs_check_method=$lt_cv_deplibs_check_method
5859 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5882 if test -n "$ac_tool_prefix"; then
5883 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5884 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5886 $as_echo_n "checking for $ac_word... " >&6; }
5887 if ${ac_cv_prog_DLLTOOL+:} false; then :
5888 $as_echo_n "(cached) " >&6
5890 if test -n "$DLLTOOL"; then
5891 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 test -z "$as_dir" && as_dir=.
5898 for ac_exec_ext in '' $ac_executable_extensions; do
5899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5900 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 DLLTOOL=$ac_cv_prog_DLLTOOL
5911 if test -n "$DLLTOOL"; then
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5913 $as_echo "$DLLTOOL" >&6; }
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916 $as_echo "no" >&6; }
5921 if test -z "$ac_cv_prog_DLLTOOL"; then
5922 ac_ct_DLLTOOL=$DLLTOOL
5923 # Extract the first word of "dlltool", so it can be a program name with args.
5924 set dummy dlltool; ac_word=$2
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926 $as_echo_n "checking for $ac_word... " >&6; }
5927 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5928 $as_echo_n "(cached) " >&6
5930 if test -n "$ac_ct_DLLTOOL"; then
5931 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 test -z "$as_dir" && as_dir=.
5938 for ac_exec_ext in '' $ac_executable_extensions; do
5939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5940 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5950 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5951 if test -n "$ac_ct_DLLTOOL"; then
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5953 $as_echo "$ac_ct_DLLTOOL" >&6; }
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956 $as_echo "no" >&6; }
5959 if test "x$ac_ct_DLLTOOL" = x; then
5962 case $cross_compiling:$ac_tool_warned in
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5966 ac_tool_warned=yes ;;
5968 DLLTOOL=$ac_ct_DLLTOOL
5971 DLLTOOL="$ac_cv_prog_DLLTOOL"
5974 test -z "$DLLTOOL" && DLLTOOL=dlltool
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5986 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5987 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5988 $as_echo_n "(cached) " >&6
5990 lt_cv_sharedlib_from_linklib_cmd='unknown'
5993 cygwin* | mingw* | pw32* | cegcc*)
5994 # two different shell functions defined in ltmain.sh
5995 # decide which to use based on capabilities of $DLLTOOL
5996 case `$DLLTOOL --help 2>&1` in
5997 *--identify-strict*)
5998 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6001 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6006 # fallback: assume linklib IS sharedlib
6007 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6013 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6014 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6015 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6024 if test -n "$ac_tool_prefix"; then
6027 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6028 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6030 $as_echo_n "checking for $ac_word... " >&6; }
6031 if ${ac_cv_prog_AR+:} false; then :
6032 $as_echo_n "(cached) " >&6
6034 if test -n "$AR"; then
6035 ac_cv_prog_AR="$AR" # Let the user override the test.
6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041 test -z "$as_dir" && as_dir=.
6042 for ac_exec_ext in '' $ac_executable_extensions; do
6043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6044 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 if test -n "$AR"; then
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6057 $as_echo "$AR" >&6; }
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6060 $as_echo "no" >&6; }
6064 test -n "$AR" && break
6067 if test -z "$AR"; then
6071 # Extract the first word of "$ac_prog", so it can be a program name with args.
6072 set dummy $ac_prog; ac_word=$2
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074 $as_echo_n "checking for $ac_word... " >&6; }
6075 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6076 $as_echo_n "(cached) " >&6
6078 if test -n "$ac_ct_AR"; then
6079 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 test -z "$as_dir" && as_dir=.
6086 for ac_exec_ext in '' $ac_executable_extensions; do
6087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6088 ac_cv_prog_ac_ct_AR="$ac_prog"
6089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6098 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6099 if test -n "$ac_ct_AR"; then
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6101 $as_echo "$ac_ct_AR" >&6; }
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6108 test -n "$ac_ct_AR" && break
6111 if test "x$ac_ct_AR" = x; then
6114 case $cross_compiling:$ac_tool_warned in
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6118 ac_tool_warned=yes ;;
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6138 $as_echo_n "checking for archiver @FILE support... " >&6; }
6139 if ${lt_cv_ar_at_file+:} false; then :
6140 $as_echo_n "(cached) " >&6
6143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6144 /* end confdefs.h. */
6154 if ac_fn_c_try_compile "$LINENO"; then :
6155 echo conftest.$ac_objext > conftest.lst
6156 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6158 (eval $lt_ar_try) 2>&5
6160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6161 test $ac_status = 0; }
6162 if test "$ac_status" -eq 0; then
6163 # Ensure the archiver fails upon bogus file names.
6164 rm -f conftest.$ac_objext libconftest.a
6165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6166 (eval $lt_ar_try) 2>&5
6168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6169 test $ac_status = 0; }
6170 if test "$ac_status" -ne 0; then
6174 rm -f conftest.* libconftest.a
6177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6181 $as_echo "$lt_cv_ar_at_file" >&6; }
6183 if test "x$lt_cv_ar_at_file" = xno; then
6186 archiver_list_spec=$lt_cv_ar_at_file
6195 if test -n "$ac_tool_prefix"; then
6196 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6197 set dummy ${ac_tool_prefix}strip; ac_word=$2
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6199 $as_echo_n "checking for $ac_word... " >&6; }
6200 if ${ac_cv_prog_STRIP+:} false; then :
6201 $as_echo_n "(cached) " >&6
6203 if test -n "$STRIP"; then
6204 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210 test -z "$as_dir" && as_dir=.
6211 for ac_exec_ext in '' $ac_executable_extensions; do
6212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6213 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6223 STRIP=$ac_cv_prog_STRIP
6224 if test -n "$STRIP"; then
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6226 $as_echo "$STRIP" >&6; }
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6229 $as_echo "no" >&6; }
6234 if test -z "$ac_cv_prog_STRIP"; then
6236 # Extract the first word of "strip", so it can be a program name with args.
6237 set dummy strip; ac_word=$2
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6239 $as_echo_n "checking for $ac_word... " >&6; }
6240 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6241 $as_echo_n "(cached) " >&6
6243 if test -n "$ac_ct_STRIP"; then
6244 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250 test -z "$as_dir" && as_dir=.
6251 for ac_exec_ext in '' $ac_executable_extensions; do
6252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6253 ac_cv_prog_ac_ct_STRIP="strip"
6254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6263 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6264 if test -n "$ac_ct_STRIP"; then
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6266 $as_echo "$ac_ct_STRIP" >&6; }
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6269 $as_echo "no" >&6; }
6272 if test "x$ac_ct_STRIP" = x; then
6275 case $cross_compiling:$ac_tool_warned in
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6279 ac_tool_warned=yes ;;
6284 STRIP="$ac_cv_prog_STRIP"
6287 test -z "$STRIP" && STRIP=:
6294 if test -n "$ac_tool_prefix"; then
6295 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6296 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6298 $as_echo_n "checking for $ac_word... " >&6; }
6299 if ${ac_cv_prog_RANLIB+:} false; then :
6300 $as_echo_n "(cached) " >&6
6302 if test -n "$RANLIB"; then
6303 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 test -z "$as_dir" && as_dir=.
6310 for ac_exec_ext in '' $ac_executable_extensions; do
6311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6312 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6322 RANLIB=$ac_cv_prog_RANLIB
6323 if test -n "$RANLIB"; then
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6325 $as_echo "$RANLIB" >&6; }
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328 $as_echo "no" >&6; }
6333 if test -z "$ac_cv_prog_RANLIB"; then
6334 ac_ct_RANLIB=$RANLIB
6335 # Extract the first word of "ranlib", so it can be a program name with args.
6336 set dummy ranlib; ac_word=$2
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6338 $as_echo_n "checking for $ac_word... " >&6; }
6339 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6340 $as_echo_n "(cached) " >&6
6342 if test -n "$ac_ct_RANLIB"; then
6343 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 test -z "$as_dir" && as_dir=.
6350 for ac_exec_ext in '' $ac_executable_extensions; do
6351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6352 ac_cv_prog_ac_ct_RANLIB="ranlib"
6353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6362 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6363 if test -n "$ac_ct_RANLIB"; then
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6365 $as_echo "$ac_ct_RANLIB" >&6; }
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368 $as_echo "no" >&6; }
6371 if test "x$ac_ct_RANLIB" = x; then
6374 case $cross_compiling:$ac_tool_warned in
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6378 ac_tool_warned=yes ;;
6380 RANLIB=$ac_ct_RANLIB
6383 RANLIB="$ac_cv_prog_RANLIB"
6386 test -z "$RANLIB" && RANLIB=:
6393 # Determine commands to create old-style static archives.
6394 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6395 old_postinstall_cmds='chmod 644 $oldlib'
6396 old_postuninstall_cmds=
6398 if test -n "$RANLIB"; then
6401 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6404 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6407 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6412 lock_old_archive_extraction=yes ;;
6414 lock_old_archive_extraction=no ;;
6455 # If no C compiler was specified, use CC.
6458 # If no C compiler flags were specified, use CFLAGS.
6459 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6461 # Allow CC to be a program name with arguments.
6465 # Check for command to grab the raw symbol name followed by C symbol from nm.
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6467 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6468 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6469 $as_echo_n "(cached) " >&6
6472 # These are sane defaults that work on at least a few old systems.
6473 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6475 # Character class describing NM global symbol codes.
6476 symcode='[BCDEGRST]'
6478 # Regexp to match symbols that can be accessed directly from C.
6479 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6481 # Define system-specific variables.
6486 cygwin* | mingw* | pw32* | cegcc*)
6487 symcode='[ABCDGISTW]'
6490 if test "$host_cpu" = ia64; then
6491 symcode='[ABCDEGRST]'
6495 symcode='[BCDEGRST]'
6498 symcode='[BCDEGQRST]'
6509 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6517 # If we're using GNU nm, then use its standard symbol codes.
6518 case `$NM -V 2>&1` in
6519 *GNU* | *'with BFD'*)
6520 symcode='[ABCDGIRSTW]' ;;
6523 # Transform an extracted symbol line into a proper C declaration.
6524 # Some systems (esp. on ia64) link data and code symbols differently,
6525 # so use this general approach.
6526 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6528 # Transform an extracted symbol line into symbol name and symbol address
6529 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6530 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6532 # Handle CRLF in mingw tool chain
6536 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6540 # Try without a prefix underscore, then with it.
6541 for ac_symprfx in "" "_"; do
6543 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6544 symxfrm="\\1 $ac_symprfx\\2 \\2"
6546 # Write the raw and C identifiers.
6547 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6548 # Fake it for dumpbin and say T for any non-static function
6549 # and D for any global variable.
6550 # Also find C++ and __fastcall symbols from MSVC++,
6551 # which start with @ or ?.
6552 lt_cv_sys_global_symbol_pipe="$AWK '"\
6553 " {last_section=section; section=\$ 3};"\
6554 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6555 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6556 " \$ 0!~/External *\|/{next};"\
6557 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6558 " {if(hide[section]) next};"\
6559 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6560 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6561 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6562 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6563 " ' prfx=^$ac_symprfx"
6565 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6567 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6569 # Check to see that the pipe works correctly.
6573 cat > conftest.$ac_ext <<_LT_EOF
6578 void nm_test_func(void);
6579 void nm_test_func(void){}
6583 int main(){nm_test_var='a';nm_test_func();return(0);}
6586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6587 (eval $ac_compile) 2>&5
6589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6590 test $ac_status = 0; }; then
6591 # Now try to grab the symbols.
6593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6594 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6597 test $ac_status = 0; } && test -s "$nlist"; then
6598 # Try sorting and uniquifying the output.
6599 if sort "$nlist" | uniq > "$nlist"T; then
6600 mv -f "$nlist"T "$nlist"
6605 # Make sure that we snagged all the symbols we need.
6606 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6607 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6608 cat <<_LT_EOF > conftest.$ac_ext
6609 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6610 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6611 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6612 relocations are performed -- see ld's documentation on pseudo-relocs. */
6613 # define LT_DLSYM_CONST
6614 #elif defined(__osf__)
6615 /* This system does not cope well with relocations in const data. */
6616 # define LT_DLSYM_CONST
6618 # define LT_DLSYM_CONST const
6626 # Now generate the symbol file.
6627 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6629 cat <<_LT_EOF >> conftest.$ac_ext
6631 /* The mapping between symbol names and symbols. */
6632 LT_DLSYM_CONST struct {
6636 lt__PROGRAM__LTX_preloaded_symbols[] =
6638 { "@PROGRAM@", (void *) 0 },
6640 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6641 cat <<\_LT_EOF >> conftest.$ac_ext
6645 /* This works around a problem in FreeBSD linker */
6646 #ifdef FREEBSD_WORKAROUND
6647 static const void *lt_preloaded_setup() {
6648 return lt__PROGRAM__LTX_preloaded_symbols;
6656 # Now try linking the two files.
6657 mv conftest.$ac_objext conftstm.$ac_objext
6658 lt_globsym_save_LIBS=$LIBS
6659 lt_globsym_save_CFLAGS=$CFLAGS
6660 LIBS="conftstm.$ac_objext"
6661 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6663 (eval $ac_link) 2>&5
6665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6666 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6669 LIBS=$lt_globsym_save_LIBS
6670 CFLAGS=$lt_globsym_save_CFLAGS
6672 echo "cannot find nm_test_func in $nlist" >&5
6675 echo "cannot find nm_test_var in $nlist" >&5
6678 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6681 echo "$progname: failed program was:" >&5
6682 cat conftest.$ac_ext >&5
6684 rm -rf conftest* conftst*
6686 # Do not use the global_symbol_pipe unless it works.
6687 if test "$pipe_works" = yes; then
6690 lt_cv_sys_global_symbol_pipe=
6696 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6697 lt_cv_sys_global_symbol_to_cdecl=
6699 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6701 $as_echo "failed" >&6; }
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6704 $as_echo "ok" >&6; }
6707 # Response file support.
6708 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6709 nm_file_list_spec='@'
6710 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6711 nm_file_list_spec='@'
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6741 $as_echo_n "checking for sysroot... " >&6; }
6743 # Check whether --with-sysroot was given.
6744 if test "${with_sysroot+set}" = set; then :
6745 withval=$with_sysroot;
6752 case ${with_sysroot} in #(
6754 if test "$GCC" = yes; then
6755 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6759 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6765 $as_echo "${with_sysroot}" >&6; }
6766 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6771 $as_echo "${lt_sysroot:-no}" >&6; }
6777 # Check whether --enable-libtool-lock was given.
6778 if test "${enable_libtool_lock+set}" = set; then :
6779 enableval=$enable_libtool_lock;
6782 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6784 # Some flags need to be propagated to the compiler or linker for good
6788 # Find out which ABI we are using.
6789 echo 'int i;' > conftest.$ac_ext
6790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6791 (eval $ac_compile) 2>&5
6793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6794 test $ac_status = 0; }; then
6795 case `/usr/bin/file conftest.$ac_objext` in
6807 # Find out which ABI we are using.
6808 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6810 (eval $ac_compile) 2>&5
6812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6813 test $ac_status = 0; }; then
6814 if test "$lt_cv_prog_gnu_ld" = yes; then
6815 case `/usr/bin/file conftest.$ac_objext` in
6817 LD="${LD-ld} -melf32bsmip"
6820 LD="${LD-ld} -melf32bmipn32"
6823 LD="${LD-ld} -melf64bmip"
6827 case `/usr/bin/file conftest.$ac_objext` in
6843 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6844 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6845 # Find out which ABI we are using.
6846 echo 'int i;' > conftest.$ac_ext
6847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6848 (eval $ac_compile) 2>&5
6850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6851 test $ac_status = 0; }; then
6852 case `/usr/bin/file conftest.o` in
6855 x86_64-*kfreebsd*-gnu)
6856 LD="${LD-ld} -m elf_i386_fbsd"
6859 LD="${LD-ld} -m elf_i386"
6861 ppc64-*linux*|powerpc64-*linux*)
6862 LD="${LD-ld} -m elf32ppclinux"
6865 LD="${LD-ld} -m elf_s390"
6868 LD="${LD-ld} -m elf32_sparc"
6874 x86_64-*kfreebsd*-gnu)
6875 LD="${LD-ld} -m elf_x86_64_fbsd"
6878 LD="${LD-ld} -m elf_x86_64"
6880 ppc*-*linux*|powerpc*-*linux*)
6881 LD="${LD-ld} -m elf64ppc"
6883 s390*-*linux*|s390*-*tpf*)
6884 LD="${LD-ld} -m elf64_s390"
6887 LD="${LD-ld} -m elf64_sparc"
6897 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6898 SAVE_CFLAGS="$CFLAGS"
6899 CFLAGS="$CFLAGS -belf"
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6901 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6902 if ${lt_cv_cc_needs_belf+:} false; then :
6903 $as_echo_n "(cached) " >&6
6906 ac_cpp='$CPP $CPPFLAGS'
6907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h. */
6922 if ac_fn_c_try_link "$LINENO"; then :
6923 lt_cv_cc_needs_belf=yes
6925 lt_cv_cc_needs_belf=no
6927 rm -f core conftest.err conftest.$ac_objext \
6928 conftest$ac_exeext conftest.$ac_ext
6930 ac_cpp='$CPP $CPPFLAGS'
6931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6937 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6938 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6939 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6940 CFLAGS="$SAVE_CFLAGS"
6944 # Find out which ABI we are using.
6945 echo 'int i;' > conftest.$ac_ext
6946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6947 (eval $ac_compile) 2>&5
6949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6950 test $ac_status = 0; }; then
6951 case `/usr/bin/file conftest.o` in
6953 case $lt_cv_prog_gnu_ld in
6957 LD="${LD-ld} -m elf_x86_64"
6960 LD="${LD-ld} -m elf64_sparc"
6963 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6964 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6969 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6981 need_locks="$enable_libtool_lock"
6983 if test -n "$ac_tool_prefix"; then
6984 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6985 set dummy ${ac_tool_prefix}mt; ac_word=$2
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987 $as_echo_n "checking for $ac_word... " >&6; }
6988 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6989 $as_echo_n "(cached) " >&6
6991 if test -n "$MANIFEST_TOOL"; then
6992 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7001 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7012 if test -n "$MANIFEST_TOOL"; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7014 $as_echo "$MANIFEST_TOOL" >&6; }
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 $as_echo "no" >&6; }
7022 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7023 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7024 # Extract the first word of "mt", so it can be a program name with args.
7025 set dummy mt; ac_word=$2
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027 $as_echo_n "checking for $ac_word... " >&6; }
7028 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7029 $as_echo_n "(cached) " >&6
7031 if test -n "$ac_ct_MANIFEST_TOOL"; then
7032 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7041 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7052 if test -n "$ac_ct_MANIFEST_TOOL"; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7054 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7060 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7063 case $cross_compiling:$ac_tool_warned in
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7067 ac_tool_warned=yes ;;
7069 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7072 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7075 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7077 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7078 if ${lt_cv_path_mainfest_tool+:} false; then :
7079 $as_echo_n "(cached) " >&6
7081 lt_cv_path_mainfest_tool=no
7082 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7083 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7084 cat conftest.err >&5
7085 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7086 lt_cv_path_mainfest_tool=yes
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7091 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7092 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7102 rhapsody* | darwin*)
7103 if test -n "$ac_tool_prefix"; then
7104 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7105 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7107 $as_echo_n "checking for $ac_word... " >&6; }
7108 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7109 $as_echo_n "(cached) " >&6
7111 if test -n "$DSYMUTIL"; then
7112 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 test -z "$as_dir" && as_dir=.
7119 for ac_exec_ext in '' $ac_executable_extensions; do
7120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7121 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7131 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7132 if test -n "$DSYMUTIL"; then
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7134 $as_echo "$DSYMUTIL" >&6; }
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137 $as_echo "no" >&6; }
7142 if test -z "$ac_cv_prog_DSYMUTIL"; then
7143 ac_ct_DSYMUTIL=$DSYMUTIL
7144 # Extract the first word of "dsymutil", so it can be a program name with args.
7145 set dummy dsymutil; ac_word=$2
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7147 $as_echo_n "checking for $ac_word... " >&6; }
7148 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7149 $as_echo_n "(cached) " >&6
7151 if test -n "$ac_ct_DSYMUTIL"; then
7152 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 test -z "$as_dir" && as_dir=.
7159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7161 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7171 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7172 if test -n "$ac_ct_DSYMUTIL"; then
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7174 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177 $as_echo "no" >&6; }
7180 if test "x$ac_ct_DSYMUTIL" = x; then
7183 case $cross_compiling:$ac_tool_warned in
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7187 ac_tool_warned=yes ;;
7189 DSYMUTIL=$ac_ct_DSYMUTIL
7192 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7195 if test -n "$ac_tool_prefix"; then
7196 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7197 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7199 $as_echo_n "checking for $ac_word... " >&6; }
7200 if ${ac_cv_prog_NMEDIT+:} false; then :
7201 $as_echo_n "(cached) " >&6
7203 if test -n "$NMEDIT"; then
7204 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 test -z "$as_dir" && as_dir=.
7211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7213 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7223 NMEDIT=$ac_cv_prog_NMEDIT
7224 if test -n "$NMEDIT"; then
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7226 $as_echo "$NMEDIT" >&6; }
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229 $as_echo "no" >&6; }
7234 if test -z "$ac_cv_prog_NMEDIT"; then
7235 ac_ct_NMEDIT=$NMEDIT
7236 # Extract the first word of "nmedit", so it can be a program name with args.
7237 set dummy nmedit; ac_word=$2
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239 $as_echo_n "checking for $ac_word... " >&6; }
7240 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7241 $as_echo_n "(cached) " >&6
7243 if test -n "$ac_ct_NMEDIT"; then
7244 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 test -z "$as_dir" && as_dir=.
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7253 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7264 if test -n "$ac_ct_NMEDIT"; then
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7266 $as_echo "$ac_ct_NMEDIT" >&6; }
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269 $as_echo "no" >&6; }
7272 if test "x$ac_ct_NMEDIT" = x; then
7275 case $cross_compiling:$ac_tool_warned in
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7279 ac_tool_warned=yes ;;
7281 NMEDIT=$ac_ct_NMEDIT
7284 NMEDIT="$ac_cv_prog_NMEDIT"
7287 if test -n "$ac_tool_prefix"; then
7288 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7289 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7291 $as_echo_n "checking for $ac_word... " >&6; }
7292 if ${ac_cv_prog_LIPO+:} false; then :
7293 $as_echo_n "(cached) " >&6
7295 if test -n "$LIPO"; then
7296 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 test -z "$as_dir" && as_dir=.
7303 for ac_exec_ext in '' $ac_executable_extensions; do
7304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7305 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7315 LIPO=$ac_cv_prog_LIPO
7316 if test -n "$LIPO"; then
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7318 $as_echo "$LIPO" >&6; }
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321 $as_echo "no" >&6; }
7326 if test -z "$ac_cv_prog_LIPO"; then
7328 # Extract the first word of "lipo", so it can be a program name with args.
7329 set dummy lipo; ac_word=$2
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331 $as_echo_n "checking for $ac_word... " >&6; }
7332 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7333 $as_echo_n "(cached) " >&6
7335 if test -n "$ac_ct_LIPO"; then
7336 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7345 ac_cv_prog_ac_ct_LIPO="lipo"
7346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7355 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7356 if test -n "$ac_ct_LIPO"; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7358 $as_echo "$ac_ct_LIPO" >&6; }
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361 $as_echo "no" >&6; }
7364 if test "x$ac_ct_LIPO" = x; then
7367 case $cross_compiling:$ac_tool_warned in
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7371 ac_tool_warned=yes ;;
7376 LIPO="$ac_cv_prog_LIPO"
7379 if test -n "$ac_tool_prefix"; then
7380 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7381 set dummy ${ac_tool_prefix}otool; ac_word=$2
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7383 $as_echo_n "checking for $ac_word... " >&6; }
7384 if ${ac_cv_prog_OTOOL+:} false; then :
7385 $as_echo_n "(cached) " >&6
7387 if test -n "$OTOOL"; then
7388 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 test -z "$as_dir" && as_dir=.
7395 for ac_exec_ext in '' $ac_executable_extensions; do
7396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7397 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7407 OTOOL=$ac_cv_prog_OTOOL
7408 if test -n "$OTOOL"; then
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7410 $as_echo "$OTOOL" >&6; }
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413 $as_echo "no" >&6; }
7418 if test -z "$ac_cv_prog_OTOOL"; then
7420 # Extract the first word of "otool", so it can be a program name with args.
7421 set dummy otool; ac_word=$2
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423 $as_echo_n "checking for $ac_word... " >&6; }
7424 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7425 $as_echo_n "(cached) " >&6
7427 if test -n "$ac_ct_OTOOL"; then
7428 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7437 ac_cv_prog_ac_ct_OTOOL="otool"
7438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7447 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7448 if test -n "$ac_ct_OTOOL"; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7450 $as_echo "$ac_ct_OTOOL" >&6; }
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453 $as_echo "no" >&6; }
7456 if test "x$ac_ct_OTOOL" = x; then
7459 case $cross_compiling:$ac_tool_warned in
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7463 ac_tool_warned=yes ;;
7468 OTOOL="$ac_cv_prog_OTOOL"
7471 if test -n "$ac_tool_prefix"; then
7472 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7473 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7475 $as_echo_n "checking for $ac_word... " >&6; }
7476 if ${ac_cv_prog_OTOOL64+:} false; then :
7477 $as_echo_n "(cached) " >&6
7479 if test -n "$OTOOL64"; then
7480 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 test -z "$as_dir" && as_dir=.
7487 for ac_exec_ext in '' $ac_executable_extensions; do
7488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7489 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7499 OTOOL64=$ac_cv_prog_OTOOL64
7500 if test -n "$OTOOL64"; then
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7502 $as_echo "$OTOOL64" >&6; }
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505 $as_echo "no" >&6; }
7510 if test -z "$ac_cv_prog_OTOOL64"; then
7511 ac_ct_OTOOL64=$OTOOL64
7512 # Extract the first word of "otool64", so it can be a program name with args.
7513 set dummy otool64; ac_word=$2
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515 $as_echo_n "checking for $ac_word... " >&6; }
7516 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7517 $as_echo_n "(cached) " >&6
7519 if test -n "$ac_ct_OTOOL64"; then
7520 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7529 ac_cv_prog_ac_ct_OTOOL64="otool64"
7530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7540 if test -n "$ac_ct_OTOOL64"; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7542 $as_echo "$ac_ct_OTOOL64" >&6; }
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7548 if test "x$ac_ct_OTOOL64" = x; then
7551 case $cross_compiling:$ac_tool_warned in
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7555 ac_tool_warned=yes ;;
7557 OTOOL64=$ac_ct_OTOOL64
7560 OTOOL64="$ac_cv_prog_OTOOL64"
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7590 $as_echo_n "checking for -single_module linker flag... " >&6; }
7591 if ${lt_cv_apple_cc_single_mod+:} false; then :
7592 $as_echo_n "(cached) " >&6
7594 lt_cv_apple_cc_single_mod=no
7595 if test -z "${LT_MULTI_MODULE}"; then
7596 # By default we will add the -single_module flag. You can override
7597 # by either setting the environment variable LT_MULTI_MODULE
7598 # non-empty at configure time, or by adding -multi_module to the
7600 rm -rf libconftest.dylib*
7601 echo "int foo(void){return 1;}" > conftest.c
7602 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7603 -dynamiclib -Wl,-single_module conftest.c" >&5
7604 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7605 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7607 # If there is a non-empty error log, and "single_module"
7608 # appears in it, assume the flag caused a linker warning
7609 if test -s conftest.err && $GREP single_module conftest.err; then
7610 cat conftest.err >&5
7611 # Otherwise, if the output was created with a 0 exit code from
7612 # the compiler, it worked.
7613 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7614 lt_cv_apple_cc_single_mod=yes
7616 cat conftest.err >&5
7618 rm -rf libconftest.dylib*
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7623 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7626 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7627 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7628 $as_echo_n "(cached) " >&6
7630 lt_cv_ld_exported_symbols_list=no
7631 save_LDFLAGS=$LDFLAGS
7632 echo "_main" > conftest.sym
7633 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h. */
7645 if ac_fn_c_try_link "$LINENO"; then :
7646 lt_cv_ld_exported_symbols_list=yes
7648 lt_cv_ld_exported_symbols_list=no
7650 rm -f core conftest.err conftest.$ac_objext \
7651 conftest$ac_exeext conftest.$ac_ext
7652 LDFLAGS="$save_LDFLAGS"
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7656 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7659 $as_echo_n "checking for -force_load linker flag... " >&6; }
7660 if ${lt_cv_ld_force_load+:} false; then :
7661 $as_echo_n "(cached) " >&6
7663 lt_cv_ld_force_load=no
7664 cat > conftest.c << _LT_EOF
7665 int forced_loaded() { return 2;}
7667 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7668 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7669 echo "$AR cru libconftest.a conftest.o" >&5
7670 $AR cru libconftest.a conftest.o 2>&5
7671 echo "$RANLIB libconftest.a" >&5
7672 $RANLIB libconftest.a 2>&5
7673 cat > conftest.c << _LT_EOF
7674 int main() { return 0;}
7676 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7677 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7679 if test -s conftest.err && $GREP force_load conftest.err; then
7680 cat conftest.err >&5
7681 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7682 lt_cv_ld_force_load=yes
7684 cat conftest.err >&5
7686 rm -f conftest.err libconftest.a conftest conftest.c
7687 rm -rf conftest.dSYM
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7691 $as_echo "$lt_cv_ld_force_load" >&6; }
7693 rhapsody* | darwin1.[012])
7694 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7696 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7697 darwin*) # darwin 5.x on
7698 # if running on 10.5 or later, the deployment target defaults
7699 # to the OS version, if on x86, and 10.4, the deployment
7700 # target defaults to 10.4. Don't you love it?
7701 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7702 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7703 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7705 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7707 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7711 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7712 _lt_dar_single_mod='$single_module'
7714 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7715 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7717 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7719 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7720 _lt_dsymutil='~$DSYMUTIL $lib || :'
7728 ac_cpp='$CPP $CPPFLAGS'
7729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7733 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7734 # On Suns, sometimes $CPP names a directory.
7735 if test -n "$CPP" && test -d "$CPP"; then
7738 if test -z "$CPP"; then
7739 if ${ac_cv_prog_CPP+:} false; then :
7740 $as_echo_n "(cached) " >&6
7742 # Double quotes because CPP needs to be expanded
7743 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7746 for ac_c_preproc_warn_flag in '' yes
7748 # Use a header file that comes with gcc, so configuring glibc
7749 # with a fresh cross-compiler works.
7750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7751 # <limits.h> exists even on freestanding compilers.
7752 # On the NeXT, cc -E runs the code through the compiler's parser,
7753 # not just through cpp. "Syntax error" is here to catch this case.
7754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755 /* end confdefs.h. */
7757 # include <limits.h>
7759 # include <assert.h>
7763 if ac_fn_c_try_cpp "$LINENO"; then :
7766 # Broken: fails on valid input.
7769 rm -f conftest.err conftest.i conftest.$ac_ext
7771 # OK, works on sane cases. Now check whether nonexistent headers
7772 # can be detected and how.
7773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774 /* end confdefs.h. */
7775 #include <ac_nonexistent.h>
7777 if ac_fn_c_try_cpp "$LINENO"; then :
7778 # Broken: success on invalid input.
7781 # Passes both tests.
7785 rm -f conftest.err conftest.i conftest.$ac_ext
7788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7789 rm -f conftest.i conftest.err conftest.$ac_ext
7790 if $ac_preproc_ok; then :
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7803 $as_echo "$CPP" >&6; }
7805 for ac_c_preproc_warn_flag in '' yes
7807 # Use a header file that comes with gcc, so configuring glibc
7808 # with a fresh cross-compiler works.
7809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7810 # <limits.h> exists even on freestanding compilers.
7811 # On the NeXT, cc -E runs the code through the compiler's parser,
7812 # not just through cpp. "Syntax error" is here to catch this case.
7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h. */
7816 # include <limits.h>
7818 # include <assert.h>
7822 if ac_fn_c_try_cpp "$LINENO"; then :
7825 # Broken: fails on valid input.
7828 rm -f conftest.err conftest.i conftest.$ac_ext
7830 # OK, works on sane cases. Now check whether nonexistent headers
7831 # can be detected and how.
7832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7834 #include <ac_nonexistent.h>
7836 if ac_fn_c_try_cpp "$LINENO"; then :
7837 # Broken: success on invalid input.
7840 # Passes both tests.
7844 rm -f conftest.err conftest.i conftest.$ac_ext
7847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7848 rm -f conftest.i conftest.err conftest.$ac_ext
7849 if $ac_preproc_ok; then :
7852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7854 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7855 See \`config.log' for more details" "$LINENO" 5; }
7859 ac_cpp='$CPP $CPPFLAGS'
7860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7866 $as_echo_n "checking for ANSI C header files... " >&6; }
7867 if ${ac_cv_header_stdc+:} false; then :
7868 $as_echo_n "(cached) " >&6
7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h. */
7885 if ac_fn_c_try_compile "$LINENO"; then :
7886 ac_cv_header_stdc=yes
7888 ac_cv_header_stdc=no
7890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7892 if test $ac_cv_header_stdc = yes; then
7893 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895 /* end confdefs.h. */
7899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7900 $EGREP "memchr" >/dev/null 2>&1; then :
7903 ac_cv_header_stdc=no
7909 if test $ac_cv_header_stdc = yes; then
7910 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912 /* end confdefs.h. */
7916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7917 $EGREP "free" >/dev/null 2>&1; then :
7920 ac_cv_header_stdc=no
7926 if test $ac_cv_header_stdc = yes; then
7927 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7928 if test "$cross_compiling" = yes; then :
7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h. */
7935 #if ((' ' & 0x0FF) == 0x020)
7936 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7937 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7939 # define ISLOWER(c) \
7940 (('a' <= (c) && (c) <= 'i') \
7941 || ('j' <= (c) && (c) <= 'r') \
7942 || ('s' <= (c) && (c) <= 'z'))
7943 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7946 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7951 for (i = 0; i < 256; i++)
7952 if (XOR (islower (i), ISLOWER (i))
7953 || toupper (i) != TOUPPER (i))
7958 if ac_fn_c_try_run "$LINENO"; then :
7961 ac_cv_header_stdc=no
7963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7964 conftest.$ac_objext conftest.beam conftest.$ac_ext
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7970 $as_echo "$ac_cv_header_stdc" >&6; }
7971 if test $ac_cv_header_stdc = yes; then
7973 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7977 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7978 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7979 inttypes.h stdint.h unistd.h
7981 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7982 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7984 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7985 cat >>confdefs.h <<_ACEOF
7986 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7994 for ac_header in dlfcn.h
7996 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7998 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7999 cat >>confdefs.h <<_ACEOF
8000 #define HAVE_DLFCN_H 1
8021 # Check whether --enable-shared was given.
8022 if test "${enable_shared+set}" = set; then :
8023 enableval=$enable_shared; p=${PACKAGE-default}
8025 yes) enable_shared=yes ;;
8026 no) enable_shared=no ;;
8029 # Look at the argument we got. We use all the common list separators.
8030 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8031 for pkg in $enableval; do
8033 if test "X$pkg" = "X$p"; then
8052 # Check whether --enable-static was given.
8053 if test "${enable_static+set}" = set; then :
8054 enableval=$enable_static; p=${PACKAGE-default}
8056 yes) enable_static=yes ;;
8057 no) enable_static=no ;;
8060 # Look at the argument we got. We use all the common list separators.
8061 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8062 for pkg in $enableval; do
8064 if test "X$pkg" = "X$p"; then
8084 # Check whether --with-pic was given.
8085 if test "${with_pic+set}" = set; then :
8086 withval=$with_pic; lt_p=${PACKAGE-default}
8088 yes|no) pic_mode=$withval ;;
8091 # Look at the argument we got. We use all the common list separators.
8092 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8093 for lt_pkg in $withval; do
8095 if test "X$lt_pkg" = "X$lt_p"; then
8107 test -z "$pic_mode" && pic_mode=default
8115 # Check whether --enable-fast-install was given.
8116 if test "${enable_fast_install+set}" = set; then :
8117 enableval=$enable_fast_install; p=${PACKAGE-default}
8119 yes) enable_fast_install=yes ;;
8120 no) enable_fast_install=no ;;
8122 enable_fast_install=no
8123 # Look at the argument we got. We use all the common list separators.
8124 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8125 for pkg in $enableval; do
8127 if test "X$pkg" = "X$p"; then
8128 enable_fast_install=yes
8135 enable_fast_install=yes
8148 # This can be used to rebuild libtool when needed
8149 LIBTOOL_DEPS="$ltmain"
8151 # Always use our own libtool.
8152 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8183 test -z "$LN_S" && LN_S="ln -s"
8198 if test -n "${ZSH_VERSION+set}" ; then
8199 setopt NO_GLOB_SUBST
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8203 $as_echo_n "checking for objdir... " >&6; }
8204 if ${lt_cv_objdir+:} false; then :
8205 $as_echo_n "(cached) " >&6
8207 rm -f .libs 2>/dev/null
8208 mkdir .libs 2>/dev/null
8209 if test -d .libs; then
8212 # MS-DOS does not allow filenames that begin with a dot.
8215 rmdir .libs 2>/dev/null
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8218 $as_echo "$lt_cv_objdir" >&6; }
8219 objdir=$lt_cv_objdir
8225 cat >>confdefs.h <<_ACEOF
8226 #define LT_OBJDIR "$lt_cv_objdir/"
8234 # AIX sometimes has problems with the GCC collect2 program. For some
8235 # reason, if we set the COLLECT_NAMES environment variable, the problems
8236 # vanish in a puff of smoke.
8237 if test "X${COLLECT_NAMES+set}" != Xset; then
8239 export COLLECT_NAMES
8246 can_build_shared=yes
8248 # All known linkers require a `.a' archive for static linking (except MSVC,
8249 # which needs '.lib').
8252 with_gnu_ld="$lt_cv_prog_gnu_ld"
8255 old_CFLAGS="$CFLAGS"
8257 # Set sane defaults for various variables
8258 test -z "$CC" && CC=cc
8259 test -z "$LTCC" && LTCC=$CC
8260 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8261 test -z "$LD" && LD=ld
8262 test -z "$ac_objext" && ac_objext=o
8264 for cc_temp in $compiler""; do
8266 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8267 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8272 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8275 # Only perform the check for file, if the check method requires it
8276 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8277 case $deplibs_check_method in
8279 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8281 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8282 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8283 $as_echo_n "(cached) " >&6
8287 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8290 lt_save_MAGIC_CMD="$MAGIC_CMD"
8291 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8292 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8293 for ac_dir in $ac_dummy; do
8295 test -z "$ac_dir" && ac_dir=.
8296 if test -f $ac_dir/${ac_tool_prefix}file; then
8297 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8298 if test -n "$file_magic_test_file"; then
8299 case $deplibs_check_method in
8301 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8302 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8303 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8304 $EGREP "$file_magic_regex" > /dev/null; then
8309 *** Warning: the command libtool uses to detect shared libraries,
8310 *** $file_magic_cmd, produces output that libtool cannot recognize.
8311 *** The result is that libtool may fail to recognize shared libraries
8312 *** as such. This will affect the creation of libtool libraries that
8313 *** depend on shared libraries, but programs linked with such libtool
8314 *** libraries will work regardless of this problem. Nevertheless, you
8315 *** may want to report the problem to your system manager and/or to
8316 *** bug-libtool@gnu.org
8326 MAGIC_CMD="$lt_save_MAGIC_CMD"
8331 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8332 if test -n "$MAGIC_CMD"; then
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8334 $as_echo "$MAGIC_CMD" >&6; }
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337 $as_echo "no" >&6; }
8344 if test -z "$lt_cv_path_MAGIC_CMD"; then
8345 if test -n "$ac_tool_prefix"; then
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8347 $as_echo_n "checking for file... " >&6; }
8348 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8349 $as_echo_n "(cached) " >&6
8353 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8356 lt_save_MAGIC_CMD="$MAGIC_CMD"
8357 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8358 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8359 for ac_dir in $ac_dummy; do
8361 test -z "$ac_dir" && ac_dir=.
8362 if test -f $ac_dir/file; then
8363 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8364 if test -n "$file_magic_test_file"; then
8365 case $deplibs_check_method in
8367 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8368 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8369 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8370 $EGREP "$file_magic_regex" > /dev/null; then
8375 *** Warning: the command libtool uses to detect shared libraries,
8376 *** $file_magic_cmd, produces output that libtool cannot recognize.
8377 *** The result is that libtool may fail to recognize shared libraries
8378 *** as such. This will affect the creation of libtool libraries that
8379 *** depend on shared libraries, but programs linked with such libtool
8380 *** libraries will work regardless of this problem. Nevertheless, you
8381 *** may want to report the problem to your system manager and/or to
8382 *** bug-libtool@gnu.org
8392 MAGIC_CMD="$lt_save_MAGIC_CMD"
8397 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8398 if test -n "$MAGIC_CMD"; then
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8400 $as_echo "$MAGIC_CMD" >&6; }
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8403 $as_echo "no" >&6; }
8416 # Use C for the default configuration in the libtool script
8420 ac_cpp='$CPP $CPPFLAGS'
8421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8426 # Source file extension for C test sources.
8429 # Object file extension for compiled C test sources.
8433 # Code to be used in simple compile tests
8434 lt_simple_compile_test_code="int some_variable = 0;"
8436 # Code to be used in simple link tests
8437 lt_simple_link_test_code='int main(){return(0);}'
8445 # If no C compiler was specified, use CC.
8448 # If no C compiler flags were specified, use CFLAGS.
8449 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8451 # Allow CC to be a program name with arguments.
8454 # Save the default compiler, since it gets overwritten when the other
8455 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8456 compiler_DEFAULT=$CC
8458 # save warnings/boilerplate of simple test code
8459 ac_outfile=conftest.$ac_objext
8460 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8461 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8462 _lt_compiler_boilerplate=`cat conftest.err`
8465 ac_outfile=conftest.$ac_objext
8466 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8467 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8468 _lt_linker_boilerplate=`cat conftest.err`
8473 ## There is no encapsulation within the following macros, do not change
8474 ## the running order or otherwise move them around unless you know exactly
8475 ## what you are doing...
8476 if test -n "$compiler"; then
8478 lt_prog_compiler_no_builtin_flag=
8480 if test "$GCC" = yes; then
8481 case $cc_basename in
8483 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8485 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8489 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8490 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8491 $as_echo_n "(cached) " >&6
8493 lt_cv_prog_compiler_rtti_exceptions=no
8494 ac_outfile=conftest.$ac_objext
8495 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8496 lt_compiler_flag="-fno-rtti -fno-exceptions"
8497 # Insert the option either (1) after the last *FLAGS variable, or
8498 # (2) before a word containing "conftest.", or (3) at the end.
8499 # Note that $ac_compile itself does not contain backslashes and begins
8500 # with a dollar sign (not a hyphen), so the echo should work correctly.
8501 # The option is referenced via a variable to avoid confusing sed.
8502 lt_compile=`echo "$ac_compile" | $SED \
8503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8505 -e 's:$: $lt_compiler_flag:'`
8506 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8507 (eval "$lt_compile" 2>conftest.err)
8509 cat conftest.err >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 if (exit $ac_status) && test -s "$ac_outfile"; then
8512 # The compiler can only warn and ignore the option if not recognized
8513 # So say no if there are warnings other than the usual output.
8514 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8516 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8517 lt_cv_prog_compiler_rtti_exceptions=yes
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8524 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8526 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8527 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8539 lt_prog_compiler_wl=
8540 lt_prog_compiler_pic=
8541 lt_prog_compiler_static=
8544 if test "$GCC" = yes; then
8545 lt_prog_compiler_wl='-Wl,'
8546 lt_prog_compiler_static='-static'
8550 # All AIX code is PIC.
8551 if test "$host_cpu" = ia64; then
8552 # AIX 5 now supports IA64 processor
8553 lt_prog_compiler_static='-Bstatic'
8560 # see comment about AmigaOS4 .so support
8561 lt_prog_compiler_pic='-fPIC'
8564 # FIXME: we need at least 68020 code to build shared libraries, but
8565 # adding the `-m68020' flag to GCC prevents building anything better,
8567 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8572 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8573 # PIC is the default for these OSes.
8576 mingw* | cygwin* | pw32* | os2* | cegcc*)
8577 # This hack is so that the source file can tell whether it is being
8578 # built for inclusion in a dll (and should export symbols for example).
8579 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8580 # (--disable-auto-import) libraries
8581 lt_prog_compiler_pic='-DDLL_EXPORT'
8584 darwin* | rhapsody*)
8585 # PIC is the default on this platform
8586 # Common symbols not allowed in MH_DYLIB files
8587 lt_prog_compiler_pic='-fno-common'
8591 # PIC is the default for Haiku.
8592 # The "-static" flag exists, but is broken.
8593 lt_prog_compiler_static=
8597 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8598 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8599 # sets the default TLS model and affects inlining.
8605 lt_prog_compiler_pic='-fPIC'
8611 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8612 # Instead, we relocate shared libraries at runtime.
8616 # Just because we use GCC doesn't mean we suddenly get shared libraries
8617 # on systems that don't support them.
8618 lt_prog_compiler_can_build_shared=no
8623 # QNX uses GNU C++, but need to define -shared option too, otherwise
8625 lt_prog_compiler_pic='-fPIC -shared'
8629 if test -d /usr/nec; then
8630 lt_prog_compiler_pic=-Kconform_pic
8635 lt_prog_compiler_pic='-fPIC'
8639 case $cc_basename in
8640 nvcc*) # Cuda Compiler Driver 2.2
8641 lt_prog_compiler_wl='-Xlinker '
8642 if test -n "$lt_prog_compiler_pic"; then
8643 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8648 # PORTME Check for flag to pass linker flags through the system compiler.
8651 lt_prog_compiler_wl='-Wl,'
8652 if test "$host_cpu" = ia64; then
8653 # AIX 5 now supports IA64 processor
8654 lt_prog_compiler_static='-Bstatic'
8656 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8660 mingw* | cygwin* | pw32* | os2* | cegcc*)
8661 # This hack is so that the source file can tell whether it is being
8662 # built for inclusion in a dll (and should export symbols for example).
8663 lt_prog_compiler_pic='-DDLL_EXPORT'
8666 hpux9* | hpux10* | hpux11*)
8667 lt_prog_compiler_wl='-Wl,'
8668 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8675 lt_prog_compiler_pic='+Z'
8678 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8679 lt_prog_compiler_static='${wl}-a ${wl}archive'
8682 irix5* | irix6* | nonstopux*)
8683 lt_prog_compiler_wl='-Wl,'
8684 # PIC (with -KPIC) is the default.
8685 lt_prog_compiler_static='-non_shared'
8688 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8689 case $cc_basename in
8690 # old Intel for x86_64 which still supported -KPIC.
8692 lt_prog_compiler_wl='-Wl,'
8693 lt_prog_compiler_pic='-KPIC'
8694 lt_prog_compiler_static='-static'
8696 # icc used to be incompatible with GCC.
8697 # ICC 10 doesn't accept -KPIC any more.
8699 lt_prog_compiler_wl='-Wl,'
8700 lt_prog_compiler_pic='-fPIC'
8701 lt_prog_compiler_static='-static'
8703 # Lahey Fortran 8.1.
8705 lt_prog_compiler_wl='-Wl,'
8706 lt_prog_compiler_pic='--shared'
8707 lt_prog_compiler_static='--static'
8710 # NAG Fortran compiler
8711 lt_prog_compiler_wl='-Wl,-Wl,,'
8712 lt_prog_compiler_pic='-PIC'
8713 lt_prog_compiler_static='-Bstatic'
8715 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8716 # Portland Group compilers (*not* the Pentium gcc compiler,
8717 # which looks to be a dead project)
8718 lt_prog_compiler_wl='-Wl,'
8719 lt_prog_compiler_pic='-fpic'
8720 lt_prog_compiler_static='-Bstatic'
8723 lt_prog_compiler_wl='-Wl,'
8724 # All Alpha code is PIC.
8725 lt_prog_compiler_static='-non_shared'
8727 xl* | bgxl* | bgf* | mpixl*)
8728 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8729 lt_prog_compiler_wl='-Wl,'
8730 lt_prog_compiler_pic='-qpic'
8731 lt_prog_compiler_static='-qstaticlink'
8734 case `$CC -V 2>&1 | sed 5q` in
8735 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8736 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8737 lt_prog_compiler_pic='-KPIC'
8738 lt_prog_compiler_static='-Bstatic'
8739 lt_prog_compiler_wl=''
8741 *Sun\ F* | *Sun*Fortran*)
8742 lt_prog_compiler_pic='-KPIC'
8743 lt_prog_compiler_static='-Bstatic'
8744 lt_prog_compiler_wl='-Qoption ld '
8748 lt_prog_compiler_pic='-KPIC'
8749 lt_prog_compiler_static='-Bstatic'
8750 lt_prog_compiler_wl='-Wl,'
8752 *Intel*\ [CF]*Compiler*)
8753 lt_prog_compiler_wl='-Wl,'
8754 lt_prog_compiler_pic='-fPIC'
8755 lt_prog_compiler_static='-static'
8758 lt_prog_compiler_wl='-Wl,'
8759 lt_prog_compiler_pic='-fpic'
8760 lt_prog_compiler_static='-Bstatic'
8768 lt_prog_compiler_pic='-KPIC'
8769 lt_prog_compiler_static='-Bstatic'
8773 # QNX uses GNU C++, but need to define -shared option too, otherwise
8775 lt_prog_compiler_pic='-fPIC -shared'
8778 osf3* | osf4* | osf5*)
8779 lt_prog_compiler_wl='-Wl,'
8780 # All OSF/1 code is PIC.
8781 lt_prog_compiler_static='-non_shared'
8785 lt_prog_compiler_static='-non_shared'
8789 lt_prog_compiler_pic='-KPIC'
8790 lt_prog_compiler_static='-Bstatic'
8791 case $cc_basename in
8792 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8793 lt_prog_compiler_wl='-Qoption ld ';;
8795 lt_prog_compiler_wl='-Wl,';;
8800 lt_prog_compiler_wl='-Qoption ld '
8801 lt_prog_compiler_pic='-PIC'
8802 lt_prog_compiler_static='-Bstatic'
8805 sysv4 | sysv4.2uw2* | sysv4.3*)
8806 lt_prog_compiler_wl='-Wl,'
8807 lt_prog_compiler_pic='-KPIC'
8808 lt_prog_compiler_static='-Bstatic'
8812 if test -d /usr/nec ;then
8813 lt_prog_compiler_pic='-Kconform_pic'
8814 lt_prog_compiler_static='-Bstatic'
8818 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8819 lt_prog_compiler_wl='-Wl,'
8820 lt_prog_compiler_pic='-KPIC'
8821 lt_prog_compiler_static='-Bstatic'
8825 lt_prog_compiler_wl='-Wl,'
8826 lt_prog_compiler_can_build_shared=no
8830 lt_prog_compiler_pic='-pic'
8831 lt_prog_compiler_static='-Bstatic'
8835 lt_prog_compiler_can_build_shared=no
8841 # For platforms which do not support PIC, -DPIC is meaningless:
8843 lt_prog_compiler_pic=
8846 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8851 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8852 if ${lt_cv_prog_compiler_pic+:} false; then :
8853 $as_echo_n "(cached) " >&6
8855 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8858 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8859 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8862 # Check to make sure the PIC flag actually works.
8864 if test -n "$lt_prog_compiler_pic"; then
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8866 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8867 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8868 $as_echo_n "(cached) " >&6
8870 lt_cv_prog_compiler_pic_works=no
8871 ac_outfile=conftest.$ac_objext
8872 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8873 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8874 # Insert the option either (1) after the last *FLAGS variable, or
8875 # (2) before a word containing "conftest.", or (3) at the end.
8876 # Note that $ac_compile itself does not contain backslashes and begins
8877 # with a dollar sign (not a hyphen), so the echo should work correctly.
8878 # The option is referenced via a variable to avoid confusing sed.
8879 lt_compile=`echo "$ac_compile" | $SED \
8880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8882 -e 's:$: $lt_compiler_flag:'`
8883 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8884 (eval "$lt_compile" 2>conftest.err)
8886 cat conftest.err >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 if (exit $ac_status) && test -s "$ac_outfile"; then
8889 # The compiler can only warn and ignore the option if not recognized
8890 # So say no if there are warnings other than the usual output.
8891 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8892 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8893 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8894 lt_cv_prog_compiler_pic_works=yes
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8901 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8903 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8904 case $lt_prog_compiler_pic in
8906 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8909 lt_prog_compiler_pic=
8910 lt_prog_compiler_can_build_shared=no
8926 # Check to make sure the static flag actually works.
8928 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8930 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8931 if ${lt_cv_prog_compiler_static_works+:} false; then :
8932 $as_echo_n "(cached) " >&6
8934 lt_cv_prog_compiler_static_works=no
8935 save_LDFLAGS="$LDFLAGS"
8936 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8937 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8938 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8939 # The linker can only warn and ignore the option if not recognized
8940 # So say no if there are warnings
8941 if test -s conftest.err; then
8942 # Append any errors to the config.log.
8943 cat conftest.err 1>&5
8944 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8945 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8946 if diff conftest.exp conftest.er2 >/dev/null; then
8947 lt_cv_prog_compiler_static_works=yes
8950 lt_cv_prog_compiler_static_works=yes
8954 LDFLAGS="$save_LDFLAGS"
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8958 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8960 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8963 lt_prog_compiler_static=
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8973 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8974 if ${lt_cv_prog_compiler_c_o+:} false; then :
8975 $as_echo_n "(cached) " >&6
8977 lt_cv_prog_compiler_c_o=no
8978 $RM -r conftest 2>/dev/null
8982 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8984 lt_compiler_flag="-o out/conftest2.$ac_objext"
8985 # Insert the option either (1) after the last *FLAGS variable, or
8986 # (2) before a word containing "conftest.", or (3) at the end.
8987 # Note that $ac_compile itself does not contain backslashes and begins
8988 # with a dollar sign (not a hyphen), so the echo should work correctly.
8989 lt_compile=`echo "$ac_compile" | $SED \
8990 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8992 -e 's:$: $lt_compiler_flag:'`
8993 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8994 (eval "$lt_compile" 2>out/conftest.err)
8996 cat out/conftest.err >&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9000 # The compiler can only warn and ignore the option if not recognized
9001 # So say no if there are warnings
9002 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9003 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9004 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9005 lt_cv_prog_compiler_c_o=yes
9010 # SGI C++ compiler will create directory out/ii_files/ for
9011 # template instantiation
9012 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9013 $RM out/* && rmdir out
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9020 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9028 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9029 if ${lt_cv_prog_compiler_c_o+:} false; then :
9030 $as_echo_n "(cached) " >&6
9032 lt_cv_prog_compiler_c_o=no
9033 $RM -r conftest 2>/dev/null
9037 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9039 lt_compiler_flag="-o out/conftest2.$ac_objext"
9040 # Insert the option either (1) after the last *FLAGS variable, or
9041 # (2) before a word containing "conftest.", or (3) at the end.
9042 # Note that $ac_compile itself does not contain backslashes and begins
9043 # with a dollar sign (not a hyphen), so the echo should work correctly.
9044 lt_compile=`echo "$ac_compile" | $SED \
9045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9047 -e 's:$: $lt_compiler_flag:'`
9048 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9049 (eval "$lt_compile" 2>out/conftest.err)
9051 cat out/conftest.err >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9055 # The compiler can only warn and ignore the option if not recognized
9056 # So say no if there are warnings
9057 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9058 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9059 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9060 lt_cv_prog_compiler_c_o=yes
9065 # SGI C++ compiler will create directory out/ii_files/ for
9066 # template instantiation
9067 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9068 $RM out/* && rmdir out
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9075 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9080 hard_links="nottested"
9081 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9082 # do not overwrite the value of need_locks provided by the user
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9084 $as_echo_n "checking if we can lock with hard links... " >&6; }
9087 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9089 ln conftest.a conftest.b 2>&5 || hard_links=no
9090 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9092 $as_echo "$hard_links" >&6; }
9093 if test "$hard_links" = no; then
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9095 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9108 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9111 allow_undefined_flag=
9112 always_export_symbols=no
9114 archive_expsym_cmds=
9115 compiler_needs_object=no
9116 enable_shared_with_static_runtimes=no
9117 export_dynamic_flag_spec=
9118 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9119 hardcode_automatic=no
9121 hardcode_direct_absolute=no
9122 hardcode_libdir_flag_spec=
9123 hardcode_libdir_separator=
9125 hardcode_shlibpath_var=unsupported
9127 link_all_deplibs=unknown
9130 old_archive_from_new_cmds=
9131 old_archive_from_expsyms_cmds=
9132 thread_safe_flag_spec=
9133 whole_archive_flag_spec=
9134 # include_expsyms should be a list of space-separated symbols to be *always*
9135 # included in the symbol list
9137 # exclude_expsyms can be an extended regexp of symbols to exclude
9138 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9139 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9140 # as well as any symbol that contains `d'.
9141 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9142 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9143 # platforms (ab)use it in PIC code, but their linkers get confused if
9144 # the symbol is explicitly referenced. Since portable code cannot
9145 # rely on this symbol name, it's probably fine to never include it in
9146 # preloaded symbol tables.
9147 # Exclude shared library initialization/finalization symbols.
9148 extract_expsyms_cmds=
9151 cygwin* | mingw* | pw32* | cegcc*)
9152 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9153 # When not using gcc, we currently assume that we are using
9154 # Microsoft Visual C++.
9155 if test "$GCC" != yes; then
9160 # we just hope/assume this is gcc and not c89 (= MSVC++)
9170 # On some targets, GNU ld is compatible enough with the native linker
9171 # that we're better off using the native interface for both.
9172 lt_use_gnu_ld_interface=no
9173 if test "$with_gnu_ld" = yes; then
9176 # The AIX port of GNU ld has always aspired to compatibility
9177 # with the native linker. However, as the warning in the GNU ld
9178 # block says, versions before 2.19.5* couldn't really create working
9179 # shared libraries, regardless of the interface used.
9180 case `$LD -v 2>&1` in
9181 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9182 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9183 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9185 lt_use_gnu_ld_interface=yes
9190 lt_use_gnu_ld_interface=yes
9195 if test "$lt_use_gnu_ld_interface" = yes; then
9196 # If archive_cmds runs LD, not CC, wlarc should be empty
9199 # Set some defaults for GNU ld with shared library support. These
9200 # are reset later if shared libraries are not supported. Putting them
9201 # here allows them to be overridden if necessary.
9202 runpath_var=LD_RUN_PATH
9203 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9204 export_dynamic_flag_spec='${wl}--export-dynamic'
9205 # ancient GNU ld didn't support --whole-archive et. al.
9206 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9207 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9209 whole_archive_flag_spec=
9211 supports_anon_versioning=no
9212 case `$LD -v 2>&1` in
9213 *GNU\ gold*) supports_anon_versioning=yes ;;
9214 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9215 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9216 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9217 *\ 2.11.*) ;; # other 2.11 versions
9218 *) supports_anon_versioning=yes ;;
9221 # See if GNU ld supports shared libraries.
9224 # On AIX/PPC, the GNU linker is very broken
9225 if test "$host_cpu" != ia64; then
9229 *** Warning: the GNU linker, at least up to release 2.19, is reported
9230 *** to be unable to reliably create shared libraries on AIX.
9231 *** Therefore, libtool is disabling shared libraries support. If you
9232 *** really care for shared libraries, you may want to install binutils
9233 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9234 *** You will then need to restart the configuration process.
9243 # see comment about AmigaOS4 .so support
9244 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9245 archive_expsym_cmds=''
9248 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)'
9249 hardcode_libdir_flag_spec='-L$libdir'
9250 hardcode_minus_L=yes
9256 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9257 allow_undefined_flag=unsupported
9258 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9259 # support --undefined. This deserves some investigation. FIXME
9260 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9266 cygwin* | mingw* | pw32* | cegcc*)
9267 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9268 # as there is no search path for DLLs.
9269 hardcode_libdir_flag_spec='-L$libdir'
9270 export_dynamic_flag_spec='${wl}--export-all-symbols'
9271 allow_undefined_flag=unsupported
9272 always_export_symbols=no
9273 enable_shared_with_static_runtimes=yes
9274 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'
9275 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9277 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9278 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9279 # If the export-symbols file already is a .def file (1st line
9280 # is EXPORTS), use it as is; otherwise, prepend...
9281 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9282 cp $export_symbols $output_objdir/$soname.def;
9284 echo EXPORTS > $output_objdir/$soname.def;
9285 cat $export_symbols >> $output_objdir/$soname.def;
9287 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9294 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9295 link_all_deplibs=yes
9300 hardcode_shlibpath_var=no
9301 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9302 export_dynamic_flag_spec='${wl}-E'
9303 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9304 # Instead, shared libraries are loaded at an image base (0x10000000 by
9305 # default) and relocated if they conflict, which is a slow very memory
9306 # consuming and fragmenting process. To avoid this, we pick a random,
9307 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9308 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9309 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9310 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'
9313 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9315 if test "$host_os" = linux-dietlibc; then
9316 case $cc_basename in
9317 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9320 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9321 && test "$tmp_diet" = no
9323 tmp_addflag=' $pic_flag'
9324 tmp_sharedflag='-shared'
9325 case $cc_basename,$host_cpu in
9326 pgcc*) # Portland Group C compiler
9327 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'
9328 tmp_addflag=' $pic_flag'
9330 pgf77* | pgf90* | pgf95* | pgfortran*)
9331 # Portland Group f77 and f90 compilers
9332 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'
9333 tmp_addflag=' $pic_flag -Mnomain' ;;
9334 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9335 tmp_addflag=' -i_dynamic' ;;
9336 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9337 tmp_addflag=' -i_dynamic -nofor_main' ;;
9338 ifc* | ifort*) # Intel Fortran compiler
9339 tmp_addflag=' -nofor_main' ;;
9340 lf95*) # Lahey Fortran 8.1
9341 whole_archive_flag_spec=
9342 tmp_sharedflag='--shared' ;;
9343 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9344 tmp_sharedflag='-qmkshrobj'
9346 nvcc*) # Cuda Compiler Driver 2.2
9347 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'
9348 compiler_needs_object=yes
9351 case `$CC -V 2>&1 | sed 5q` in
9352 *Sun\ C*) # Sun C 5.9
9353 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'
9354 compiler_needs_object=yes
9355 tmp_sharedflag='-G' ;;
9356 *Sun\ F*) # Sun Fortran 8.3
9357 tmp_sharedflag='-G' ;;
9359 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9361 if test "x$supports_anon_versioning" = xyes; then
9362 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9363 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9364 echo "local: *; };" >> $output_objdir/$libname.ver~
9365 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9368 case $cc_basename in
9369 xlf* | bgf* | bgxlf* | mpixlf*)
9370 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9371 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9373 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9374 if test "x$supports_anon_versioning" = xyes; then
9375 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9376 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9377 echo "local: *; };" >> $output_objdir/$libname.ver~
9378 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9388 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9389 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9392 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9393 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9398 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9402 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9403 *** create shared libraries on Solaris systems. Therefore, libtool
9404 *** is disabling shared libraries support. We urge you to upgrade GNU
9405 *** binutils to release 2.9.1 or newer. Another option is to modify
9406 *** your PATH or compiler configuration so that the native linker is
9407 *** used, and then restart.
9410 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9411 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9412 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9418 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9419 case `$LD -v 2>&1` in
9420 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9424 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9425 *** reliably create shared libraries on SCO systems. Therefore, libtool
9426 *** is disabling shared libraries support. We urge you to upgrade GNU
9427 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9428 *** your PATH or compiler configuration so that the native linker is
9429 *** used, and then restart.
9434 # For security reasons, it is highly recommended that you always
9435 # use absolute paths for naming shared libraries, and exclude the
9436 # DT_RUNPATH tag from executables and libraries. But doing so
9437 # requires that you compile everything twice, which is a pain.
9438 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9439 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9440 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9441 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9450 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9453 hardcode_shlibpath_var=no
9457 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9458 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9459 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9466 if test "$ld_shlibs" = no; then
9468 hardcode_libdir_flag_spec=
9469 export_dynamic_flag_spec=
9470 whole_archive_flag_spec=
9473 # PORTME fill in a description of your system's linker (not GNU ld)
9476 allow_undefined_flag=unsupported
9477 always_export_symbols=yes
9478 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'
9479 # Note: this linker hardcodes the directories in LIBPATH if there
9480 # are no directories specified by -L.
9481 hardcode_minus_L=yes
9482 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9483 # Neither direct hardcoding nor static linking is supported with a
9485 hardcode_direct=unsupported
9490 if test "$host_cpu" = ia64; then
9491 # On IA64, the linker does run time linking by default, so we don't
9492 # have to do anything special.
9493 aix_use_runtimelinking=no
9494 exp_sym_flag='-Bexport'
9497 # If we're using GNU nm, then we don't want the "-C" option.
9498 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9499 # Also, AIX nm treats weak defined symbols like other global
9500 # defined symbols, whereas GNU nm marks them as "W".
9501 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9502 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9504 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9506 aix_use_runtimelinking=no
9508 # Test if we are trying to use run time linking or normal
9509 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9510 # need to do runtime linking.
9511 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9512 for ld_flag in $LDFLAGS; do
9513 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9514 aix_use_runtimelinking=yes
9521 exp_sym_flag='-bexport'
9522 no_entry_flag='-bnoentry'
9525 # When large executables or shared objects are built, AIX ld can
9526 # have problems creating the table of contents. If linking a library
9527 # or program results in "error TOC overflow" add -mminimal-toc to
9528 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9529 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9533 hardcode_direct_absolute=yes
9534 hardcode_libdir_separator=':'
9535 link_all_deplibs=yes
9536 file_list_spec='${wl}-f,'
9538 if test "$GCC" = yes; then
9539 case $host_os in aix4.[012]|aix4.[012].*)
9540 # We only want to do this on AIX 4.2 and lower, the check
9541 # below for broken collect2 doesn't work under 4.3+
9542 collect2name=`${CC} -print-prog-name=collect2`
9543 if test -f "$collect2name" &&
9544 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9546 # We have reworked collect2
9549 # We have old collect2
9550 hardcode_direct=unsupported
9551 # It fails to find uninstalled libraries when the uninstalled
9552 # path is not listed in the libpath. Setting hardcode_minus_L
9553 # to unsupported forces relinking
9554 hardcode_minus_L=yes
9555 hardcode_libdir_flag_spec='-L$libdir'
9556 hardcode_libdir_separator=
9560 shared_flag='-shared'
9561 if test "$aix_use_runtimelinking" = yes; then
9562 shared_flag="$shared_flag "'${wl}-G'
9566 if test "$host_cpu" = ia64; then
9567 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9568 # chokes on -Wl,-G. The following line is correct:
9571 if test "$aix_use_runtimelinking" = yes; then
9572 shared_flag='${wl}-G'
9574 shared_flag='${wl}-bM:SRE'
9579 export_dynamic_flag_spec='${wl}-bexpall'
9580 # It seems that -bexpall does not export symbols beginning with
9581 # underscore (_), so it is better to generate a list of symbols to export.
9582 always_export_symbols=yes
9583 if test "$aix_use_runtimelinking" = yes; then
9584 # Warning - without using the other runtime loading flags (-brtl),
9585 # -berok will link without error, but may produce a broken library.
9586 allow_undefined_flag='-berok'
9587 # Determine the default libpath from the value encoded in an
9589 if test "${lt_cv_aix_libpath+set}" = set; then
9590 aix_libpath=$lt_cv_aix_libpath
9592 if ${lt_cv_aix_libpath_+:} false; then :
9593 $as_echo_n "(cached) " >&6
9595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596 /* end confdefs.h. */
9606 if ac_fn_c_try_link "$LINENO"; then :
9608 lt_aix_libpath_sed='
9609 /Import File Strings/,/^$/ {
9611 s/^0 *\([^ ]*\) *$/\1/
9615 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9616 # Check for a 64-bit object if we didn't find anything.
9617 if test -z "$lt_cv_aix_libpath_"; then
9618 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9621 rm -f core conftest.err conftest.$ac_objext \
9622 conftest$ac_exeext conftest.$ac_ext
9623 if test -z "$lt_cv_aix_libpath_"; then
9624 lt_cv_aix_libpath_="/usr/lib:/lib"
9629 aix_libpath=$lt_cv_aix_libpath_
9632 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9633 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9635 if test "$host_cpu" = ia64; then
9636 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9637 allow_undefined_flag="-z nodefs"
9638 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"
9640 # Determine the default libpath from the value encoded in an
9642 if test "${lt_cv_aix_libpath+set}" = set; then
9643 aix_libpath=$lt_cv_aix_libpath
9645 if ${lt_cv_aix_libpath_+:} false; then :
9646 $as_echo_n "(cached) " >&6
9648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h. */
9659 if ac_fn_c_try_link "$LINENO"; then :
9661 lt_aix_libpath_sed='
9662 /Import File Strings/,/^$/ {
9664 s/^0 *\([^ ]*\) *$/\1/
9668 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9669 # Check for a 64-bit object if we didn't find anything.
9670 if test -z "$lt_cv_aix_libpath_"; then
9671 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9674 rm -f core conftest.err conftest.$ac_objext \
9675 conftest$ac_exeext conftest.$ac_ext
9676 if test -z "$lt_cv_aix_libpath_"; then
9677 lt_cv_aix_libpath_="/usr/lib:/lib"
9682 aix_libpath=$lt_cv_aix_libpath_
9685 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9686 # Warning - without using the other run time loading flags,
9687 # -berok will link without error, but may produce a broken library.
9688 no_undefined_flag=' ${wl}-bernotok'
9689 allow_undefined_flag=' ${wl}-berok'
9690 if test "$with_gnu_ld" = yes; then
9691 # We only use this code for GNU lds that support --whole-archive.
9692 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9694 # Exported symbols can be pulled into shared objects from archives
9695 whole_archive_flag_spec='$convenience'
9697 archive_cmds_need_lc=yes
9698 # This is similar to how AIX traditionally builds its shared libraries.
9699 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9707 # see comment about AmigaOS4 .so support
9708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9709 archive_expsym_cmds=''
9712 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)'
9713 hardcode_libdir_flag_spec='-L$libdir'
9714 hardcode_minus_L=yes
9720 export_dynamic_flag_spec=-rdynamic
9723 cygwin* | mingw* | pw32* | cegcc*)
9724 # When not using gcc, we currently assume that we are using
9725 # Microsoft Visual C++.
9726 # hardcode_libdir_flag_spec is actually meaningless, as there is
9727 # no search path for DLLs.
9728 case $cc_basename in
9731 hardcode_libdir_flag_spec=' '
9732 allow_undefined_flag=unsupported
9733 always_export_symbols=yes
9735 # Tell ltmain to make .lib files, not .a files.
9737 # Tell ltmain to make .dll files, not .so files.
9739 # FIXME: Setting linknames here is a bad hack.
9740 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9741 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9742 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9744 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9746 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9748 # The linker will not automatically build a static lib if we build a DLL.
9749 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9750 enable_shared_with_static_runtimes=yes
9751 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9752 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9754 old_postinstall_cmds='chmod 644 $oldlib'
9755 postlink_cmds='lt_outputfile="@OUTPUT@"~
9756 lt_tool_outputfile="@TOOL_OUTPUT@"~
9757 case $lt_outputfile in
9760 lt_outputfile="$lt_outputfile.exe"
9761 lt_tool_outputfile="$lt_tool_outputfile.exe"
9764 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9765 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9766 $RM "$lt_outputfile.manifest";
9770 # Assume MSVC wrapper
9771 hardcode_libdir_flag_spec=' '
9772 allow_undefined_flag=unsupported
9773 # Tell ltmain to make .lib files, not .a files.
9775 # Tell ltmain to make .dll files, not .so files.
9777 # FIXME: Setting linknames here is a bad hack.
9778 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9779 # The linker will automatically build a .lib file if we build a DLL.
9780 old_archive_from_new_cmds='true'
9781 # FIXME: Should let the user specify the lib program.
9782 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9783 enable_shared_with_static_runtimes=yes
9788 darwin* | rhapsody*)
9791 archive_cmds_need_lc=no
9793 hardcode_automatic=yes
9794 hardcode_shlibpath_var=unsupported
9795 if test "$lt_cv_ld_force_load" = "yes"; then
9796 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\"`'
9799 whole_archive_flag_spec=''
9801 link_all_deplibs=yes
9802 allow_undefined_flag="$_lt_dar_allow_undefined"
9803 case $cc_basename in
9804 ifort*) _lt_dar_can_shared=yes ;;
9805 *) _lt_dar_can_shared=$GCC ;;
9807 if test "$_lt_dar_can_shared" = "yes"; then
9808 output_verbose_link_cmd=func_echo_all
9809 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9810 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9811 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}"
9812 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}"
9821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9822 hardcode_libdir_flag_spec='-L$libdir'
9823 hardcode_shlibpath_var=no
9826 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9827 # support. Future versions do this automatically, but an explicit c++rt0.o
9828 # does not break anything, and helps significantly (at the cost of a little
9831 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9832 hardcode_libdir_flag_spec='-R$libdir'
9834 hardcode_shlibpath_var=no
9837 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9839 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9841 hardcode_minus_L=yes
9842 hardcode_shlibpath_var=no
9845 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9846 freebsd* | dragonfly*)
9847 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9848 hardcode_libdir_flag_spec='-R$libdir'
9850 hardcode_shlibpath_var=no
9854 if test "$GCC" = yes; then
9855 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9857 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9859 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9860 hardcode_libdir_separator=:
9863 # hardcode_minus_L: Not really in the search PATH,
9864 # but as the default location of the library.
9865 hardcode_minus_L=yes
9866 export_dynamic_flag_spec='${wl}-E'
9870 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9871 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9873 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9875 if test "$with_gnu_ld" = no; then
9876 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9877 hardcode_libdir_separator=:
9879 hardcode_direct_absolute=yes
9880 export_dynamic_flag_spec='${wl}-E'
9881 # hardcode_minus_L: Not really in the search PATH,
9882 # but as the default location of the library.
9883 hardcode_minus_L=yes
9888 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9891 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9894 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9897 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9903 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9906 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9910 # Older versions of the 11.00 compiler do not understand -b yet
9911 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9913 $as_echo_n "checking if $CC understands -b... " >&6; }
9914 if ${lt_cv_prog_compiler__b+:} false; then :
9915 $as_echo_n "(cached) " >&6
9917 lt_cv_prog_compiler__b=no
9918 save_LDFLAGS="$LDFLAGS"
9919 LDFLAGS="$LDFLAGS -b"
9920 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9921 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9922 # The linker can only warn and ignore the option if not recognized
9923 # So say no if there are warnings
9924 if test -s conftest.err; then
9925 # Append any errors to the config.log.
9926 cat conftest.err 1>&5
9927 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9929 if diff conftest.exp conftest.er2 >/dev/null; then
9930 lt_cv_prog_compiler__b=yes
9933 lt_cv_prog_compiler__b=yes
9937 LDFLAGS="$save_LDFLAGS"
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9941 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9943 if test x"$lt_cv_prog_compiler__b" = xyes; then
9944 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9946 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9952 if test "$with_gnu_ld" = no; then
9953 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9954 hardcode_libdir_separator=:
9959 hardcode_shlibpath_var=no
9963 hardcode_direct_absolute=yes
9964 export_dynamic_flag_spec='${wl}-E'
9966 # hardcode_minus_L: Not really in the search PATH,
9967 # but as the default location of the library.
9968 hardcode_minus_L=yes
9974 irix5* | irix6* | nonstopux*)
9975 if test "$GCC" = yes; then
9976 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'
9977 # Try to use the -exported_symbol ld option, if it does not
9978 # work, assume that -exports_file does not work either and
9979 # implicitly export all symbols.
9980 # This should be the same for all languages, so no per-tag cache variable.
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9982 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9983 if ${lt_cv_irix_exported_symbol+:} false; then :
9984 $as_echo_n "(cached) " >&6
9986 save_LDFLAGS="$LDFLAGS"
9987 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989 /* end confdefs.h. */
9990 int foo (void) { return 0; }
9992 if ac_fn_c_try_link "$LINENO"; then :
9993 lt_cv_irix_exported_symbol=yes
9995 lt_cv_irix_exported_symbol=no
9997 rm -f core conftest.err conftest.$ac_objext \
9998 conftest$ac_exeext conftest.$ac_ext
9999 LDFLAGS="$save_LDFLAGS"
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10002 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10003 if test "$lt_cv_irix_exported_symbol" = yes; then
10004 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'
10007 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'
10008 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'
10010 archive_cmds_need_lc='no'
10011 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10012 hardcode_libdir_separator=:
10014 link_all_deplibs=yes
10018 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10019 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10021 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10023 hardcode_libdir_flag_spec='-R$libdir'
10024 hardcode_direct=yes
10025 hardcode_shlibpath_var=no
10029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10030 hardcode_direct=yes
10031 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10032 hardcode_libdir_separator=:
10033 hardcode_shlibpath_var=no
10040 if test -f /usr/libexec/ld.so; then
10041 hardcode_direct=yes
10042 hardcode_shlibpath_var=no
10043 hardcode_direct_absolute=yes
10044 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10045 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10046 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10047 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10048 export_dynamic_flag_spec='${wl}-E'
10051 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10053 hardcode_libdir_flag_spec='-R$libdir'
10056 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10057 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10067 hardcode_libdir_flag_spec='-L$libdir'
10068 hardcode_minus_L=yes
10069 allow_undefined_flag=unsupported
10070 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10071 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10075 if test "$GCC" = yes; then
10076 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10077 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'
10079 allow_undefined_flag=' -expect_unresolved \*'
10080 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'
10082 archive_cmds_need_lc='no'
10083 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10084 hardcode_libdir_separator=:
10087 osf4* | osf5*) # as osf3* with the addition of -msym flag
10088 if test "$GCC" = yes; then
10089 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10090 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'
10091 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10093 allow_undefined_flag=' -expect_unresolved \*'
10094 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'
10095 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~
10096 $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'
10098 # Both c and cxx compiler support -rpath directly
10099 hardcode_libdir_flag_spec='-rpath $libdir'
10101 archive_cmds_need_lc='no'
10102 hardcode_libdir_separator=:
10106 no_undefined_flag=' -z defs'
10107 if test "$GCC" = yes; then
10109 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10110 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10111 $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'
10113 case `$CC -V 2>&1` in
10116 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10117 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10118 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10122 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10123 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10124 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10128 hardcode_libdir_flag_spec='-R$libdir'
10129 hardcode_shlibpath_var=no
10131 solaris2.[0-5] | solaris2.[0-5].*) ;;
10133 # The compiler driver will combine and reorder linker options,
10134 # but understands `-z linker_flag'. GCC discards it without `$wl',
10135 # but is careful enough not to reorder.
10136 # Supported since Solaris 2.6 (maybe 2.5.1?)
10137 if test "$GCC" = yes; then
10138 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10140 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10144 link_all_deplibs=yes
10148 if test "x$host_vendor" = xsequent; then
10149 # Use $CC to link under sequent, because it throws in some extra .o
10150 # files that make .init and .fini sections work.
10151 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10153 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10155 hardcode_libdir_flag_spec='-L$libdir'
10156 hardcode_direct=yes
10157 hardcode_minus_L=yes
10158 hardcode_shlibpath_var=no
10162 case $host_vendor in
10164 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10165 hardcode_direct=yes # is this really true???
10168 ## LD is ld it makes a PLAMLIB
10169 ## CC just makes a GrossModule.
10170 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10171 reload_cmds='$CC -r -o $output$reload_objs'
10175 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10176 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10179 runpath_var='LD_RUN_PATH'
10180 hardcode_shlibpath_var=no
10184 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10185 hardcode_shlibpath_var=no
10186 export_dynamic_flag_spec='-Bexport'
10190 if test -d /usr/nec; then
10191 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10192 hardcode_shlibpath_var=no
10193 runpath_var=LD_RUN_PATH
10194 hardcode_runpath_var=yes
10199 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10200 no_undefined_flag='${wl}-z,text'
10201 archive_cmds_need_lc=no
10202 hardcode_shlibpath_var=no
10203 runpath_var='LD_RUN_PATH'
10205 if test "$GCC" = yes; then
10206 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10207 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10209 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10210 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10214 sysv5* | sco3.2v5* | sco5v6*)
10215 # Note: We can NOT use -z defs as we might desire, because we do not
10216 # link with -lc, and that would cause any symbols used from libc to
10217 # always be unresolved, which means just about no library would
10218 # ever link correctly. If we're not using GNU ld we use -z text
10219 # though, which does catch some bad symbols but isn't as heavy-handed
10221 no_undefined_flag='${wl}-z,text'
10222 allow_undefined_flag='${wl}-z,nodefs'
10223 archive_cmds_need_lc=no
10224 hardcode_shlibpath_var=no
10225 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10226 hardcode_libdir_separator=':'
10227 link_all_deplibs=yes
10228 export_dynamic_flag_spec='${wl}-Bexport'
10229 runpath_var='LD_RUN_PATH'
10231 if test "$GCC" = yes; then
10232 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10233 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10235 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10236 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10242 hardcode_libdir_flag_spec='-L$libdir'
10243 hardcode_shlibpath_var=no
10251 if test x$host_vendor = xsni; then
10253 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10254 export_dynamic_flag_spec='${wl}-Blargedynsym'
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10261 $as_echo "$ld_shlibs" >&6; }
10262 test "$ld_shlibs" = no && can_build_shared=no
10264 with_gnu_ld=$with_gnu_ld
10281 # Do we need to explicitly link libc?
10283 case "x$archive_cmds_need_lc" in
10285 # Assume -lc should be added
10286 archive_cmds_need_lc=yes
10288 if test "$enable_shared" = yes && test "$GCC" = yes; then
10289 case $archive_cmds in
10291 # FIXME: we may have to deal with multi-command sequences.
10294 # Test whether the compiler implicitly links with -lc since on some
10295 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10296 # to ld, don't add -lc before -lgcc.
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10298 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10299 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10300 $as_echo_n "(cached) " >&6
10303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10306 (eval $ac_compile) 2>&5
10308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10309 test $ac_status = 0; } 2>conftest.err; then
10312 libobjs=conftest.$ac_objext
10314 wl=$lt_prog_compiler_wl
10315 pic_flag=$lt_prog_compiler_pic
10321 lt_save_allow_undefined_flag=$allow_undefined_flag
10322 allow_undefined_flag=
10323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10324 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10327 test $ac_status = 0; }
10329 lt_cv_archive_cmds_need_lc=no
10331 lt_cv_archive_cmds_need_lc=yes
10333 allow_undefined_flag=$lt_save_allow_undefined_flag
10335 cat conftest.err 1>&5
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10341 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10342 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10501 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10503 if test "$GCC" = yes; then
10505 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10506 *) lt_awk_arg="/^libraries:/" ;;
10509 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10510 *) lt_sed_strip_eq="s,=/,/,g" ;;
10512 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10513 case $lt_search_path_spec in
10515 # if the path contains ";" then we assume it to be the separator
10516 # otherwise default to the standard path separator (i.e. ":") - it is
10517 # assumed that no part of a normal pathname contains ";" but that should
10518 # okay in the real world where ";" in dirpaths is itself problematic.
10519 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10522 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10525 # Ok, now we have the path, separated by spaces, we can step through it
10526 # and add multilib dir if necessary.
10527 lt_tmp_lt_search_path_spec=
10528 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10529 for lt_sys_path in $lt_search_path_spec; do
10530 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10531 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10533 test -d "$lt_sys_path" && \
10534 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10537 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10538 BEGIN {RS=" "; FS="/|\n";} {
10541 for (lt_i = NF; lt_i > 0; lt_i--) {
10542 if ($lt_i != "" && $lt_i != ".") {
10543 if ($lt_i == "..") {
10546 if (lt_count == 0) {
10547 lt_foo="/" $lt_i lt_foo;
10554 if (lt_foo != "") { lt_freq[lt_foo]++; }
10555 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10557 # AWK program above erroneously prepends '/' to C:/dos/paths
10560 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10561 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10563 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10565 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10567 library_names_spec=
10568 libname_spec='lib$name'
10572 postuninstall_cmds=
10576 shlibpath_overrides_runpath=unknown
10578 dynamic_linker="$host_os ld.so"
10579 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10580 need_lib_prefix=unknown
10581 hardcode_into_libs=no
10583 # when you set need_version to no, make sure it does not cause -set_version
10584 # flags to be left without arguments
10585 need_version=unknown
10589 version_type=linux # correct to gnu/linux during the next big refactor
10590 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10591 shlibpath_var=LIBPATH
10593 # AIX 3 has no versioning support, so we append a major version to the name.
10594 soname_spec='${libname}${release}${shared_ext}$major'
10598 version_type=linux # correct to gnu/linux during the next big refactor
10601 hardcode_into_libs=yes
10602 if test "$host_cpu" = ia64; then
10603 # AIX 5 supports IA64
10604 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10605 shlibpath_var=LD_LIBRARY_PATH
10607 # With GCC up to 2.95.x, collect2 would create an import file
10608 # for dependence libraries. The import file would start with
10609 # the line `#! .'. This would cause the generated library to
10610 # depend on `.', always an invalid library. This was fixed in
10611 # development snapshots of GCC prior to 3.0.
10613 aix4 | aix4.[01] | aix4.[01].*)
10614 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10616 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10619 can_build_shared=no
10623 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10624 # soname into executable. Probably we can add versioning support to
10625 # collect2, so additional links can be useful in future.
10626 if test "$aix_use_runtimelinking" = yes; then
10627 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10628 # instead of lib<name>.a to let people know that these are not
10629 # typical AIX shared libraries.
10630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10632 # We preserve .a as extension for shared libraries through AIX4.2
10633 # and later when we are not doing run time linking.
10634 library_names_spec='${libname}${release}.a $libname.a'
10635 soname_spec='${libname}${release}${shared_ext}$major'
10637 shlibpath_var=LIBPATH
10644 # Since July 2007 AmigaOS4 officially supports .so libraries.
10645 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10649 library_names_spec='$libname.ixlibrary $libname.a'
10650 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10651 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10657 library_names_spec='${libname}${shared_ext}'
10658 dynamic_linker="$host_os ld.so"
10659 shlibpath_var=LIBRARY_PATH
10663 version_type=linux # correct to gnu/linux during the next big refactor
10665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10666 soname_spec='${libname}${release}${shared_ext}$major'
10667 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10668 shlibpath_var=LD_LIBRARY_PATH
10669 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10670 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10671 # the default ld.so.conf also contains /usr/contrib/lib and
10672 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10673 # libtool to hard-code these into programs
10676 cygwin* | mingw* | pw32* | cegcc*)
10677 version_type=windows
10682 case $GCC,$cc_basename in
10685 library_names_spec='$libname.dll.a'
10686 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10687 postinstall_cmds='base_file=`basename \${file}`~
10688 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10689 dldir=$destdir/`dirname \$dlpath`~
10690 test -d \$dldir || mkdir -p \$dldir~
10691 $install_prog $dir/$dlname \$dldir/$dlname~
10692 chmod a+x \$dldir/$dlname~
10693 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10694 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10696 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10697 dlpath=$dir/\$dldll~
10699 shlibpath_overrides_runpath=yes
10703 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10704 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10706 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10709 # MinGW DLLs use traditional 'lib' prefix
10710 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10713 # pw32 DLLs use 'pw' prefix rather than 'lib'
10714 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10717 dynamic_linker='Win32 ld.exe'
10722 libname_spec='$name'
10723 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10724 library_names_spec='${libname}.dll.lib'
10728 sys_lib_search_path_spec=
10731 for lt_path in $LIB
10734 # Let DOS variable expansion print the short 8.3 style file name.
10735 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10736 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10739 # Convert to MSYS style.
10740 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10743 # Convert to unix form, then to dos form, then back to unix form
10744 # but this time dos style (no spaces!) so that the unix form looks
10745 # like /cygdrive/c/PROGRA~1:/cygdr...
10746 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10747 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10748 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10751 sys_lib_search_path_spec="$LIB"
10752 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10753 # It is most probably a Windows format PATH.
10754 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10756 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10758 # FIXME: find the short name or the path components, as spaces are
10759 # common. (e.g. "Program Files" -> "PROGRA~1")
10763 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10764 postinstall_cmds='base_file=`basename \${file}`~
10765 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10766 dldir=$destdir/`dirname \$dlpath`~
10767 test -d \$dldir || mkdir -p \$dldir~
10768 $install_prog $dir/$dlname \$dldir/$dlname'
10769 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10770 dlpath=$dir/\$dldll~
10772 shlibpath_overrides_runpath=yes
10773 dynamic_linker='Win32 link.exe'
10777 # Assume MSVC wrapper
10778 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10779 dynamic_linker='Win32 ld.exe'
10782 # FIXME: first we should search . and the directory the executable is in
10786 darwin* | rhapsody*)
10787 dynamic_linker="$host_os dyld"
10788 version_type=darwin
10791 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10792 soname_spec='${libname}${release}${major}$shared_ext'
10793 shlibpath_overrides_runpath=yes
10794 shlibpath_var=DYLD_LIBRARY_PATH
10795 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10797 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10798 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10802 version_type=linux # correct to gnu/linux during the next big refactor
10805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10806 soname_spec='${libname}${release}${shared_ext}$major'
10807 shlibpath_var=LD_LIBRARY_PATH
10810 freebsd* | dragonfly*)
10811 # DragonFly does not have aout. When/if they implement a new
10812 # versioning mechanism, adjust this.
10813 if test -x /usr/bin/objformat; then
10814 objformat=`/usr/bin/objformat`
10817 freebsd[23].*) objformat=aout ;;
10818 *) objformat=elf ;;
10821 version_type=freebsd-$objformat
10822 case $version_type in
10824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10829 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10833 shlibpath_var=LD_LIBRARY_PATH
10836 shlibpath_overrides_runpath=yes
10838 freebsd3.[01]* | freebsdelf3.[01]*)
10839 shlibpath_overrides_runpath=yes
10840 hardcode_into_libs=yes
10842 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10843 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10844 shlibpath_overrides_runpath=no
10845 hardcode_into_libs=yes
10847 *) # from 4.6 on, and DragonFly
10848 shlibpath_overrides_runpath=yes
10849 hardcode_into_libs=yes
10855 version_type=linux # correct to gnu/linux during the next big refactor
10858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10859 soname_spec='${libname}${release}${shared_ext}$major'
10860 shlibpath_var=LD_LIBRARY_PATH
10861 shlibpath_overrides_runpath=no
10862 hardcode_into_libs=yes
10866 version_type=linux # correct to gnu/linux during the next big refactor
10869 dynamic_linker="$host_os runtime_loader"
10870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10871 soname_spec='${libname}${release}${shared_ext}$major'
10872 shlibpath_var=LIBRARY_PATH
10873 shlibpath_overrides_runpath=yes
10874 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10875 hardcode_into_libs=yes
10878 hpux9* | hpux10* | hpux11*)
10879 # Give a soname corresponding to the major version so that dld.sl refuses to
10880 # link against other versions.
10887 hardcode_into_libs=yes
10888 dynamic_linker="$host_os dld.so"
10889 shlibpath_var=LD_LIBRARY_PATH
10890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10892 soname_spec='${libname}${release}${shared_ext}$major'
10893 if test "X$HPUX_IA64_MODE" = X32; then
10894 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10896 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10898 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10902 hardcode_into_libs=yes
10903 dynamic_linker="$host_os dld.sl"
10904 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10905 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10907 soname_spec='${libname}${release}${shared_ext}$major'
10908 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10909 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10913 dynamic_linker="$host_os dld.sl"
10914 shlibpath_var=SHLIB_PATH
10915 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10917 soname_spec='${libname}${release}${shared_ext}$major'
10920 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10921 postinstall_cmds='chmod 555 $lib'
10922 # or fails outright, so override atomically:
10923 install_override_mode=555
10927 version_type=linux # correct to gnu/linux during the next big refactor
10930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10931 soname_spec='${libname}${release}${shared_ext}$major'
10932 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10933 shlibpath_var=LD_LIBRARY_PATH
10934 shlibpath_overrides_runpath=no
10935 hardcode_into_libs=yes
10938 irix5* | irix6* | nonstopux*)
10940 nonstopux*) version_type=nonstopux ;;
10942 if test "$lt_cv_prog_gnu_ld" = yes; then
10943 version_type=linux # correct to gnu/linux during the next big refactor
10950 soname_spec='${libname}${release}${shared_ext}$major'
10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10953 irix5* | nonstopux*)
10954 libsuff= shlibsuff=
10957 case $LD in # libtool.m4 will add one of these switches to LD
10958 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10959 libsuff= shlibsuff= libmagic=32-bit;;
10960 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10961 libsuff=32 shlibsuff=N32 libmagic=N32;;
10962 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10963 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10964 *) libsuff= shlibsuff= libmagic=never-match;;
10968 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10969 shlibpath_overrides_runpath=no
10970 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10971 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10972 hardcode_into_libs=yes
10975 # No shared lib support for Linux oldld, aout, or coff.
10976 linux*oldld* | linux*aout* | linux*coff*)
10980 # This must be glibc/ELF.
10981 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10982 version_type=linux # correct to gnu/linux during the next big refactor
10985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10986 soname_spec='${libname}${release}${shared_ext}$major'
10987 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10988 shlibpath_var=LD_LIBRARY_PATH
10989 shlibpath_overrides_runpath=no
10991 # Some binutils ld are patched to set DT_RUNPATH
10992 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10993 $as_echo_n "(cached) " >&6
10995 lt_cv_shlibpath_overrides_runpath=no
10996 save_LDFLAGS=$LDFLAGS
10997 save_libdir=$libdir
10998 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10999 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11001 /* end confdefs.h. */
11011 if ac_fn_c_try_link "$LINENO"; then :
11012 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11013 lt_cv_shlibpath_overrides_runpath=yes
11016 rm -f core conftest.err conftest.$ac_objext \
11017 conftest$ac_exeext conftest.$ac_ext
11018 LDFLAGS=$save_LDFLAGS
11019 libdir=$save_libdir
11023 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11025 # This implies no fast_install, which is unacceptable.
11026 # Some rework will be needed to allow for fast_install
11027 # before this can be enabled.
11028 hardcode_into_libs=yes
11030 # Add ABI-specific directories to the system library path.
11031 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11033 # Append ld.so.conf contents to the search path
11034 if test -f /etc/ld.so.conf; then
11035 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' ' '`
11036 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11040 # We used to test for /lib/ld.so.1 and disable shared libraries on
11041 # powerpc, because MkLinux only supported shared libraries with the
11042 # GNU dynamic linker. Since this was broken with cross compilers,
11043 # most powerpc-linux boxes support dynamic linking these days and
11044 # people can always --disable-shared, the test was removed, and we
11045 # assume the GNU/Linux dynamic linker is in use.
11046 dynamic_linker='GNU/Linux ld.so'
11053 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11055 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11056 dynamic_linker='NetBSD (a.out) ld.so'
11058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11059 soname_spec='${libname}${release}${shared_ext}$major'
11060 dynamic_linker='NetBSD ld.elf_so'
11062 shlibpath_var=LD_LIBRARY_PATH
11063 shlibpath_overrides_runpath=yes
11064 hardcode_into_libs=yes
11068 version_type=linux # correct to gnu/linux during the next big refactor
11069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11070 shlibpath_var=LD_LIBRARY_PATH
11071 shlibpath_overrides_runpath=yes
11078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11079 soname_spec='${libname}${release}${shared_ext}$major'
11080 shlibpath_var=LD_LIBRARY_PATH
11081 shlibpath_overrides_runpath=no
11082 hardcode_into_libs=yes
11083 dynamic_linker='ldqnx.so'
11088 sys_lib_dlsearch_path_spec="/usr/lib"
11090 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11092 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11093 *) need_version=no ;;
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11097 shlibpath_var=LD_LIBRARY_PATH
11098 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11100 openbsd2.[89] | openbsd2.[89].*)
11101 shlibpath_overrides_runpath=no
11104 shlibpath_overrides_runpath=yes
11108 shlibpath_overrides_runpath=yes
11113 libname_spec='$name'
11116 library_names_spec='$libname${shared_ext} $libname.a'
11117 dynamic_linker='OS/2 ld.exe'
11118 shlibpath_var=LIBPATH
11121 osf3* | osf4* | osf5*)
11125 soname_spec='${libname}${release}${shared_ext}$major'
11126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11127 shlibpath_var=LD_LIBRARY_PATH
11128 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11129 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11137 version_type=linux # correct to gnu/linux during the next big refactor
11140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11141 soname_spec='${libname}${release}${shared_ext}$major'
11142 shlibpath_var=LD_LIBRARY_PATH
11143 shlibpath_overrides_runpath=yes
11144 hardcode_into_libs=yes
11145 # ldd complains unless libraries are executable
11146 postinstall_cmds='chmod +x $lib'
11151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11152 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11153 shlibpath_var=LD_LIBRARY_PATH
11154 shlibpath_overrides_runpath=yes
11155 if test "$with_gnu_ld" = yes; then
11162 version_type=linux # correct to gnu/linux during the next big refactor
11163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11164 soname_spec='${libname}${release}${shared_ext}$major'
11165 shlibpath_var=LD_LIBRARY_PATH
11166 case $host_vendor in
11168 shlibpath_overrides_runpath=no
11170 runpath_var=LD_RUN_PATH
11178 shlibpath_overrides_runpath=no
11179 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11185 if test -d /usr/nec ;then
11186 version_type=linux # correct to gnu/linux during the next big refactor
11187 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11188 soname_spec='$libname${shared_ext}.$major'
11189 shlibpath_var=LD_LIBRARY_PATH
11193 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11194 version_type=freebsd-elf
11197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11198 soname_spec='${libname}${release}${shared_ext}$major'
11199 shlibpath_var=LD_LIBRARY_PATH
11200 shlibpath_overrides_runpath=yes
11201 hardcode_into_libs=yes
11202 if test "$with_gnu_ld" = yes; then
11203 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11205 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11208 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11212 sys_lib_dlsearch_path_spec='/usr/lib'
11216 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11217 version_type=linux # correct to gnu/linux during the next big refactor
11220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11221 shlibpath_var=LD_LIBRARY_PATH
11222 shlibpath_overrides_runpath=no
11223 hardcode_into_libs=yes
11227 version_type=linux # correct to gnu/linux during the next big refactor
11228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11229 soname_spec='${libname}${release}${shared_ext}$major'
11230 shlibpath_var=LD_LIBRARY_PATH
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11238 $as_echo "$dynamic_linker" >&6; }
11239 test "$dynamic_linker" = no && can_build_shared=no
11241 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11242 if test "$GCC" = yes; then
11243 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11246 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11247 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11249 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11250 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11345 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11347 if test -n "$hardcode_libdir_flag_spec" ||
11348 test -n "$runpath_var" ||
11349 test "X$hardcode_automatic" = "Xyes" ; then
11351 # We can hardcode non-existent directories.
11352 if test "$hardcode_direct" != no &&
11353 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11354 # have to relink, otherwise we might link with an installed library
11355 # when we should be linking with a yet-to-be-installed one
11356 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11357 test "$hardcode_minus_L" != no; then
11358 # Linking always hardcodes the temporary library directory.
11359 hardcode_action=relink
11361 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11362 hardcode_action=immediate
11365 # We cannot hardcode anything, or else we can only hardcode existing
11367 hardcode_action=unsupported
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11370 $as_echo "$hardcode_action" >&6; }
11372 if test "$hardcode_action" = relink ||
11373 test "$inherit_rpath" = yes; then
11374 # Fast installation is not supported
11375 enable_fast_install=no
11376 elif test "$shlibpath_overrides_runpath" = yes ||
11377 test "$enable_shared" = no; then
11378 # Fast installation is not necessary
11379 enable_fast_install=needless
11387 if test "x$enable_dlopen" != xyes; then
11388 enable_dlopen=unknown
11389 enable_dlopen_self=unknown
11390 enable_dlopen_self_static=unknown
11397 lt_cv_dlopen="load_add_on"
11399 lt_cv_dlopen_self=yes
11402 mingw* | pw32* | cegcc*)
11403 lt_cv_dlopen="LoadLibrary"
11408 lt_cv_dlopen="dlopen"
11413 # if libdl is installed we need to link against it
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11415 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11416 if ${ac_cv_lib_dl_dlopen+:} false; then :
11417 $as_echo_n "(cached) " >&6
11419 ac_check_lib_save_LIBS=$LIBS
11421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11422 /* end confdefs.h. */
11424 /* Override any GCC internal prototype to avoid an error.
11425 Use char because int might match the return type of a GCC
11426 builtin and then its argument prototype would still apply. */
11439 if ac_fn_c_try_link "$LINENO"; then :
11440 ac_cv_lib_dl_dlopen=yes
11442 ac_cv_lib_dl_dlopen=no
11444 rm -f core conftest.err conftest.$ac_objext \
11445 conftest$ac_exeext conftest.$ac_ext
11446 LIBS=$ac_check_lib_save_LIBS
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11449 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11450 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11451 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11454 lt_cv_dlopen="dyld"
11456 lt_cv_dlopen_self=yes
11463 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11464 if test "x$ac_cv_func_shl_load" = xyes; then :
11465 lt_cv_dlopen="shl_load"
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11468 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11469 if ${ac_cv_lib_dld_shl_load+:} false; then :
11470 $as_echo_n "(cached) " >&6
11472 ac_check_lib_save_LIBS=$LIBS
11474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11475 /* end confdefs.h. */
11477 /* Override any GCC internal prototype to avoid an error.
11478 Use char because int might match the return type of a GCC
11479 builtin and then its argument prototype would still apply. */
11487 return shl_load ();
11492 if ac_fn_c_try_link "$LINENO"; then :
11493 ac_cv_lib_dld_shl_load=yes
11495 ac_cv_lib_dld_shl_load=no
11497 rm -f core conftest.err conftest.$ac_objext \
11498 conftest$ac_exeext conftest.$ac_ext
11499 LIBS=$ac_check_lib_save_LIBS
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11502 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11503 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11504 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11506 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11507 if test "x$ac_cv_func_dlopen" = xyes; then :
11508 lt_cv_dlopen="dlopen"
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11511 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11512 if ${ac_cv_lib_dl_dlopen+:} false; then :
11513 $as_echo_n "(cached) " >&6
11515 ac_check_lib_save_LIBS=$LIBS
11517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518 /* end confdefs.h. */
11520 /* Override any GCC internal prototype to avoid an error.
11521 Use char because int might match the return type of a GCC
11522 builtin and then its argument prototype would still apply. */
11535 if ac_fn_c_try_link "$LINENO"; then :
11536 ac_cv_lib_dl_dlopen=yes
11538 ac_cv_lib_dl_dlopen=no
11540 rm -f core conftest.err conftest.$ac_objext \
11541 conftest$ac_exeext conftest.$ac_ext
11542 LIBS=$ac_check_lib_save_LIBS
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11545 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11546 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11547 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11550 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11551 if ${ac_cv_lib_svld_dlopen+:} false; then :
11552 $as_echo_n "(cached) " >&6
11554 ac_check_lib_save_LIBS=$LIBS
11555 LIBS="-lsvld $LIBS"
11556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11557 /* end confdefs.h. */
11559 /* Override any GCC internal prototype to avoid an error.
11560 Use char because int might match the return type of a GCC
11561 builtin and then its argument prototype would still apply. */
11574 if ac_fn_c_try_link "$LINENO"; then :
11575 ac_cv_lib_svld_dlopen=yes
11577 ac_cv_lib_svld_dlopen=no
11579 rm -f core conftest.err conftest.$ac_objext \
11580 conftest$ac_exeext conftest.$ac_ext
11581 LIBS=$ac_check_lib_save_LIBS
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11584 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11585 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11586 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11589 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11590 if ${ac_cv_lib_dld_dld_link+:} false; then :
11591 $as_echo_n "(cached) " >&6
11593 ac_check_lib_save_LIBS=$LIBS
11595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11596 /* end confdefs.h. */
11598 /* Override any GCC internal prototype to avoid an error.
11599 Use char because int might match the return type of a GCC
11600 builtin and then its argument prototype would still apply. */
11608 return dld_link ();
11613 if ac_fn_c_try_link "$LINENO"; then :
11614 ac_cv_lib_dld_dld_link=yes
11616 ac_cv_lib_dld_dld_link=no
11618 rm -f core conftest.err conftest.$ac_objext \
11619 conftest$ac_exeext conftest.$ac_ext
11620 LIBS=$ac_check_lib_save_LIBS
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11623 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11624 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11625 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11646 if test "x$lt_cv_dlopen" != xno; then
11652 case $lt_cv_dlopen in
11654 save_CPPFLAGS="$CPPFLAGS"
11655 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11657 save_LDFLAGS="$LDFLAGS"
11658 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11661 LIBS="$lt_cv_dlopen_libs $LIBS"
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11664 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11665 if ${lt_cv_dlopen_self+:} false; then :
11666 $as_echo_n "(cached) " >&6
11668 if test "$cross_compiling" = yes; then :
11669 lt_cv_dlopen_self=cross
11671 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11672 lt_status=$lt_dlunknown
11673 cat > conftest.$ac_ext <<_LT_EOF
11674 #line $LINENO "configure"
11675 #include "confdefs.h"
11684 # define LT_DLGLOBAL RTLD_GLOBAL
11687 # define LT_DLGLOBAL DL_GLOBAL
11689 # define LT_DLGLOBAL 0
11693 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11694 find out it does not work in some platform. */
11695 #ifndef LT_DLLAZY_OR_NOW
11697 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11700 # define LT_DLLAZY_OR_NOW DL_LAZY
11703 # define LT_DLLAZY_OR_NOW RTLD_NOW
11706 # define LT_DLLAZY_OR_NOW DL_NOW
11708 # define LT_DLLAZY_OR_NOW 0
11715 /* When -fvisbility=hidden is used, assume the code has been annotated
11716 correspondingly for the symbols needed. */
11717 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11718 int fnord () __attribute__((visibility("default")));
11721 int fnord () { return 42; }
11724 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11725 int status = $lt_dlunknown;
11729 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11732 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11733 else puts (dlerror ());
11735 /* dlclose (self); */
11743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11744 (eval $ac_link) 2>&5
11746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11747 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11748 (./conftest; exit; ) >&5 2>/dev/null
11750 case x$lt_status in
11751 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11752 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11753 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11756 # compilation failed
11757 lt_cv_dlopen_self=no
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11765 $as_echo "$lt_cv_dlopen_self" >&6; }
11767 if test "x$lt_cv_dlopen_self" = xyes; then
11768 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11770 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11771 if ${lt_cv_dlopen_self_static+:} false; then :
11772 $as_echo_n "(cached) " >&6
11774 if test "$cross_compiling" = yes; then :
11775 lt_cv_dlopen_self_static=cross
11777 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11778 lt_status=$lt_dlunknown
11779 cat > conftest.$ac_ext <<_LT_EOF
11780 #line $LINENO "configure"
11781 #include "confdefs.h"
11790 # define LT_DLGLOBAL RTLD_GLOBAL
11793 # define LT_DLGLOBAL DL_GLOBAL
11795 # define LT_DLGLOBAL 0
11799 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11800 find out it does not work in some platform. */
11801 #ifndef LT_DLLAZY_OR_NOW
11803 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11806 # define LT_DLLAZY_OR_NOW DL_LAZY
11809 # define LT_DLLAZY_OR_NOW RTLD_NOW
11812 # define LT_DLLAZY_OR_NOW DL_NOW
11814 # define LT_DLLAZY_OR_NOW 0
11821 /* When -fvisbility=hidden is used, assume the code has been annotated
11822 correspondingly for the symbols needed. */
11823 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11824 int fnord () __attribute__((visibility("default")));
11827 int fnord () { return 42; }
11830 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11831 int status = $lt_dlunknown;
11835 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11838 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11839 else puts (dlerror ());
11841 /* dlclose (self); */
11849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11850 (eval $ac_link) 2>&5
11852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11853 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11854 (./conftest; exit; ) >&5 2>/dev/null
11856 case x$lt_status in
11857 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11858 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11859 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11862 # compilation failed
11863 lt_cv_dlopen_self_static=no
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11871 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11874 CPPFLAGS="$save_CPPFLAGS"
11875 LDFLAGS="$save_LDFLAGS"
11880 case $lt_cv_dlopen_self in
11881 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11882 *) enable_dlopen_self=unknown ;;
11885 case $lt_cv_dlopen_self_static in
11886 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11887 *) enable_dlopen_self_static=unknown ;;
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11910 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11911 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11912 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11913 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11915 $as_echo "yes" >&6; }
11917 # FIXME - insert some real tests, host_os isn't really good enough
11920 if test -n "$STRIP" ; then
11921 striplib="$STRIP -x"
11922 old_striplib="$STRIP -S"
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11924 $as_echo "yes" >&6; }
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11927 $as_echo "no" >&6; }
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11932 $as_echo "no" >&6; }
11948 # Report which library types will actually be built
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11950 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11952 $as_echo "$can_build_shared" >&6; }
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11955 $as_echo_n "checking whether to build shared libraries... " >&6; }
11956 test "$can_build_shared" = "no" && enable_shared=no
11958 # On AIX, shared libraries and static libraries use the same namespace, and
11959 # are all built from PIC.
11962 test "$enable_shared" = yes && enable_static=no
11963 if test -n "$RANLIB"; then
11964 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11965 postinstall_cmds='$RANLIB $lib'
11970 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11971 test "$enable_shared" = yes && enable_static=no
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11976 $as_echo "$enable_shared" >&6; }
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11979 $as_echo_n "checking whether to build static libraries... " >&6; }
11980 # Make sure either enable_shared or enable_static is yes.
11981 test "$enable_shared" = yes || enable_static=yes
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11983 $as_echo "$enable_static" >&6; }
11990 ac_cpp='$CPP $CPPFLAGS'
11991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12011 ac_config_commands="$ac_config_commands libtool"
12016 # Only expand once:
12027 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12028 if test -n "$ac_tool_prefix"; then
12029 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12030 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12032 $as_echo_n "checking for $ac_word... " >&6; }
12033 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12034 $as_echo_n "(cached) " >&6
12036 case $PKG_CONFIG in
12038 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12042 for as_dir in $PATH
12045 test -z "$as_dir" && as_dir=.
12046 for ac_exec_ext in '' $ac_executable_extensions; do
12047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12048 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12059 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12060 if test -n "$PKG_CONFIG"; then
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12062 $as_echo "$PKG_CONFIG" >&6; }
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065 $as_echo "no" >&6; }
12070 if test -z "$ac_cv_path_PKG_CONFIG"; then
12071 ac_pt_PKG_CONFIG=$PKG_CONFIG
12072 # Extract the first word of "pkg-config", so it can be a program name with args.
12073 set dummy pkg-config; ac_word=$2
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12075 $as_echo_n "checking for $ac_word... " >&6; }
12076 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12077 $as_echo_n "(cached) " >&6
12079 case $ac_pt_PKG_CONFIG in
12081 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12085 for as_dir in $PATH
12088 test -z "$as_dir" && as_dir=.
12089 for ac_exec_ext in '' $ac_executable_extensions; do
12090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12091 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12102 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12103 if test -n "$ac_pt_PKG_CONFIG"; then
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12105 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12108 $as_echo "no" >&6; }
12111 if test "x$ac_pt_PKG_CONFIG" = x; then
12114 case $cross_compiling:$ac_tool_warned in
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12118 ac_tool_warned=yes ;;
12120 PKG_CONFIG=$ac_pt_PKG_CONFIG
12123 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12127 if test -n "$PKG_CONFIG"; then
12128 _pkg_min_version=0.9.0
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12130 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12131 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12133 $as_echo "yes" >&6; }
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12136 $as_echo "no" >&6; }
12141 for ac_prog in flex lex
12143 # Extract the first word of "$ac_prog", so it can be a program name with args.
12144 set dummy $ac_prog; ac_word=$2
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12146 $as_echo_n "checking for $ac_word... " >&6; }
12147 if ${ac_cv_prog_LEX+:} false; then :
12148 $as_echo_n "(cached) " >&6
12150 if test -n "$LEX"; then
12151 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12154 for as_dir in $PATH
12157 test -z "$as_dir" && as_dir=.
12158 for ac_exec_ext in '' $ac_executable_extensions; do
12159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12160 ac_cv_prog_LEX="$ac_prog"
12161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12170 LEX=$ac_cv_prog_LEX
12171 if test -n "$LEX"; then
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12173 $as_echo "$LEX" >&6; }
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12176 $as_echo "no" >&6; }
12180 test -n "$LEX" && break
12182 test -n "$LEX" || LEX=":"
12184 if test "x$LEX" != "x:"; then
12185 cat >conftest.l <<_ACEOF
12191 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12192 yyless ((input () != 0)); }
12193 f { unput (yytext[0]); }
12194 . { BEGIN INITIAL; }
12196 #ifdef YYTEXT_POINTER
12197 extern char *yytext;
12202 return ! yylex () + ! yywrap ();
12205 { { ac_try="$LEX conftest.l"
12206 case "(($ac_try" in
12207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208 *) ac_try_echo=$ac_try;;
12210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12211 $as_echo "$ac_try_echo"; } >&5
12212 (eval "$LEX conftest.l") 2>&5
12214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12215 test $ac_status = 0; }
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12217 $as_echo_n "checking lex output file root... " >&6; }
12218 if ${ac_cv_prog_lex_root+:} false; then :
12219 $as_echo_n "(cached) " >&6
12222 if test -f lex.yy.c; then
12223 ac_cv_prog_lex_root=lex.yy
12224 elif test -f lexyy.c; then
12225 ac_cv_prog_lex_root=lexyy
12227 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12231 $as_echo "$ac_cv_prog_lex_root" >&6; }
12232 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12234 if test -z "${LEXLIB+set}"; then
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12236 $as_echo_n "checking lex library... " >&6; }
12237 if ${ac_cv_lib_lex+:} false; then :
12238 $as_echo_n "(cached) " >&6
12242 ac_cv_lib_lex='none needed'
12243 for ac_lib in '' -lfl -ll; do
12244 LIBS="$ac_lib $ac_save_LIBS"
12245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12246 /* end confdefs.h. */
12247 `cat $LEX_OUTPUT_ROOT.c`
12249 if ac_fn_c_try_link "$LINENO"; then :
12250 ac_cv_lib_lex=$ac_lib
12252 rm -f core conftest.err conftest.$ac_objext \
12253 conftest$ac_exeext conftest.$ac_ext
12254 test "$ac_cv_lib_lex" != 'none needed' && break
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12260 $as_echo "$ac_cv_lib_lex" >&6; }
12261 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12266 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12267 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12268 $as_echo_n "(cached) " >&6
12270 # POSIX says lex can declare yytext either as a pointer or an array; the
12271 # default is implementation-dependent. Figure out which it is, since
12272 # not all implementations provide the %pointer and %array declarations.
12273 ac_cv_prog_lex_yytext_pointer=no
12275 LIBS="$LEXLIB $ac_save_LIBS"
12276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h. */
12279 #define YYTEXT_POINTER 1
12280 `cat $LEX_OUTPUT_ROOT.c`
12282 if ac_fn_c_try_link "$LINENO"; then :
12283 ac_cv_prog_lex_yytext_pointer=yes
12285 rm -f core conftest.err conftest.$ac_objext \
12286 conftest$ac_exeext conftest.$ac_ext
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12291 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12292 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12294 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12297 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12300 if test "$LEX" = :; then
12301 as_fn_error $? "flex not found but required" "$LINENO" 5
12304 for ac_prog in 'bison -y'
12306 # Extract the first word of "$ac_prog", so it can be a program name with args.
12307 set dummy $ac_prog; ac_word=$2
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12309 $as_echo_n "checking for $ac_word... " >&6; }
12310 if ${ac_cv_prog_YACC+:} false; then :
12311 $as_echo_n "(cached) " >&6
12313 if test -n "$YACC"; then
12314 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317 for as_dir in $PATH
12320 test -z "$as_dir" && as_dir=.
12321 for ac_exec_ext in '' $ac_executable_extensions; do
12322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12323 ac_cv_prog_YACC="$ac_prog"
12324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12333 YACC=$ac_cv_prog_YACC
12334 if test -n "$YACC"; then
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12336 $as_echo "$YACC" >&6; }
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339 $as_echo "no" >&6; }
12343 test -n "$YACC" && break
12345 test -n "$YACC" || YACC=":"
12347 if test "$YACC" = :; then
12348 as_fn_error $? "bison not found but required" "$LINENO" 5
12356 case " ${result} " in
12357 *[\ \ ]${flag}[\ \ ]*) ;;
12358 *) result="${flag} ${result}" ;;
12364 if test "$GCC" = "yes"; then
12365 for flag in -Wall -Wchar-subscripts -Wmissing-declarations \
12366 -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align \
12367 -Wsign-compare -fno-strict-aliasing;
12369 CFLAGS="$(ensureflag $flag $CFLAGS)"
12373 # Checks for libraries.
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12375 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12376 if ${ac_cv_lib_dl_dlopen+:} false; then :
12377 $as_echo_n "(cached) " >&6
12379 ac_check_lib_save_LIBS=$LIBS
12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12384 /* Override any GCC internal prototype to avoid an error.
12385 Use char because int might match the return type of a GCC
12386 builtin and then its argument prototype would still apply. */
12399 if ac_fn_c_try_link "$LINENO"; then :
12400 ac_cv_lib_dl_dlopen=yes
12402 ac_cv_lib_dl_dlopen=no
12404 rm -f core conftest.err conftest.$ac_objext \
12405 conftest$ac_exeext conftest.$ac_ext
12406 LIBS=$ac_check_lib_save_LIBS
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12409 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12410 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12411 cat >>confdefs.h <<_ACEOF
12412 #define HAVE_LIBDL 1
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the suffix of shared libraries" >&5
12421 $as_echo_n "checking for the suffix of shared libraries... " >&6; }
12422 # libtool variables are immediately available since 2.0, prior to that we need
12423 # to call libtool --config explicitly
12424 if test "x$shrext_cmds" = x; then
12425 shrext_cmds=`SED=$SED ./libtool --config | grep '^shrext_cmds='`
12428 eval std_shrext=$shrext_cmds
12429 # chop the initial dot
12430 SHLIB_SUFFIX=${std_shrext#.}
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: .$SHLIB_SUFFIX" >&5
12432 $as_echo ".$SHLIB_SUFFIX" >&6; }
12433 # any reason it may fail?
12434 if test "x$SHLIB_SUFFIX" = x; then
12435 as_fn_error $? "Cannot determine shared library suffix from libtool" "$LINENO" 5
12438 cat >>confdefs.h <<_ACEOF
12439 #define SHLIB_SUFFIX "$SHLIB_SUFFIX"
12443 # Copied from dbus configure.in
12444 #### find the actual value for $prefix that we'll end up with
12445 ## (I know this is broken and should be done in the Makefile, but
12446 ## that's a major pain and almost nobody actually seems to care)
12448 EXP_VAR=EXPANDED_LOCALSTATEDIR
12449 FROM_VAR="$localstatedir"
12451 prefix_save=$prefix
12452 exec_prefix_save=$exec_prefix
12454 if test "x$prefix" = "xNONE"; then
12455 prefix="$ac_default_prefix"
12457 if test "x$exec_prefix" = "xNONE"; then
12458 exec_prefix=$prefix
12461 full_var="$FROM_VAR"
12463 new_full_var="`eval echo $full_var`"
12464 if test "x$new_full_var" = "x$full_var"; then break; fi
12465 full_var=$new_full_var
12468 full_var=$new_full_var
12469 EXPANDED_LOCALSTATEDIR="$full_var"
12472 prefix=$prefix_save
12473 exec_prefix=$exec_prefix_save
12476 EXP_VAR=EXPANDED_SYSCONFDIR
12477 FROM_VAR="$sysconfdir"
12479 prefix_save=$prefix
12480 exec_prefix_save=$exec_prefix
12482 if test "x$prefix" = "xNONE"; then
12483 prefix="$ac_default_prefix"
12485 if test "x$exec_prefix" = "xNONE"; then
12486 exec_prefix=$prefix
12489 full_var="$FROM_VAR"
12491 new_full_var="`eval echo $full_var`"
12492 if test "x$new_full_var" = "x$full_var"; then break; fi
12493 full_var=$new_full_var
12496 full_var=$new_full_var
12497 EXPANDED_SYSCONFDIR="$full_var"
12500 prefix=$prefix_save
12501 exec_prefix=$exec_prefix_save
12504 EXP_VAR=EXPANDED_BINDIR
12507 prefix_save=$prefix
12508 exec_prefix_save=$exec_prefix
12510 if test "x$prefix" = "xNONE"; then
12511 prefix="$ac_default_prefix"
12513 if test "x$exec_prefix" = "xNONE"; then
12514 exec_prefix=$prefix
12517 full_var="$FROM_VAR"
12519 new_full_var="`eval echo $full_var`"
12520 if test "x$new_full_var" = "x$full_var"; then break; fi
12521 full_var=$new_full_var
12524 full_var=$new_full_var
12525 EXPANDED_BINDIR="$full_var"
12528 prefix=$prefix_save
12529 exec_prefix=$exec_prefix_save
12532 EXP_VAR=EXPANDED_LIBDIR
12535 prefix_save=$prefix
12536 exec_prefix_save=$exec_prefix
12538 if test "x$prefix" = "xNONE"; then
12539 prefix="$ac_default_prefix"
12541 if test "x$exec_prefix" = "xNONE"; then
12542 exec_prefix=$prefix
12545 full_var="$FROM_VAR"
12547 new_full_var="`eval echo $full_var`"
12548 if test "x$new_full_var" = "x$full_var"; then break; fi
12549 full_var=$new_full_var
12552 full_var=$new_full_var
12553 EXPANDED_LIBDIR="$full_var"
12556 prefix=$prefix_save
12557 exec_prefix=$exec_prefix_save
12560 EXP_VAR=EXPANDED_LIBEXECDIR
12561 FROM_VAR="$libexecdir"
12563 prefix_save=$prefix
12564 exec_prefix_save=$exec_prefix
12566 if test "x$prefix" = "xNONE"; then
12567 prefix="$ac_default_prefix"
12569 if test "x$exec_prefix" = "xNONE"; then
12570 exec_prefix=$prefix
12573 full_var="$FROM_VAR"
12575 new_full_var="`eval echo $full_var`"
12576 if test "x$new_full_var" = "x$full_var"; then break; fi
12577 full_var=$new_full_var
12580 full_var=$new_full_var
12581 EXPANDED_LIBEXECDIR="$full_var"
12584 prefix=$prefix_save
12585 exec_prefix=$exec_prefix_save
12588 EXP_VAR=EXPANDED_DATADIR
12589 FROM_VAR="$datadir"
12591 prefix_save=$prefix
12592 exec_prefix_save=$exec_prefix
12594 if test "x$prefix" = "xNONE"; then
12595 prefix="$ac_default_prefix"
12597 if test "x$exec_prefix" = "xNONE"; then
12598 exec_prefix=$prefix
12601 full_var="$FROM_VAR"
12603 new_full_var="`eval echo $full_var`"
12604 if test "x$new_full_var" = "x$full_var"; then break; fi
12605 full_var=$new_full_var
12608 full_var=$new_full_var
12609 EXPANDED_DATADIR="$full_var"
12612 prefix=$prefix_save
12613 exec_prefix=$exec_prefix_save
12616 #### Directory to install the libexec binaries
12617 GOBJECT_INTROSPECTION_LIBDIR="$EXPANDED_LIBDIR"
12620 cat >>confdefs.h <<_ACEOF
12621 #define GOBJECT_INTROSPECTION_LIBDIR "$GOBJECT_INTROSPECTION_LIBDIR"
12625 #### Directory to install the gir files
12626 GIR_SUFFIX="gir-1.0"
12629 cat >>confdefs.h <<_ACEOF
12630 #define GIR_SUFFIX "$GIR_SUFFIX"
12634 GIR_DIR="$EXPANDED_DATADIR/$GIR_SUFFIX"
12637 cat >>confdefs.h <<_ACEOF
12638 #define GIR_DIR "$GIR_DIR"
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
12645 $as_echo_n "checking for GLIB... " >&6; }
12647 if test -n "$GLIB_CFLAGS"; then
12648 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
12649 elif test -n "$PKG_CONFIG"; then
12650 if test -n "$PKG_CONFIG" && \
12651 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.36.0\""; } >&5
12652 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.36.0") 2>&5
12654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12655 test $ac_status = 0; }; then
12656 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.36.0" 2>/dev/null`
12657 test "x$?" != "x0" && pkg_failed=yes
12664 if test -n "$GLIB_LIBS"; then
12665 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
12666 elif test -n "$PKG_CONFIG"; then
12667 if test -n "$PKG_CONFIG" && \
12668 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.36.0\""; } >&5
12669 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.36.0") 2>&5
12671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12672 test $ac_status = 0; }; then
12673 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.36.0" 2>/dev/null`
12674 test "x$?" != "x0" && pkg_failed=yes
12684 if test $pkg_failed = yes; then
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686 $as_echo "no" >&6; }
12688 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12689 _pkg_short_errors_supported=yes
12691 _pkg_short_errors_supported=no
12693 if test $_pkg_short_errors_supported = yes; then
12694 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.36.0" 2>&1`
12696 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.36.0" 2>&1`
12698 # Put the nasty error message in config.log where it belongs
12699 echo "$GLIB_PKG_ERRORS" >&5
12701 as_fn_error $? "Package requirements (glib-2.0 >= 2.36.0) were not met:
12705 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12706 installed software in a non-standard prefix.
12708 Alternatively, you may set the environment variables GLIB_CFLAGS
12709 and GLIB_LIBS to avoid the need to call pkg-config.
12710 See the pkg-config man page for more details." "$LINENO" 5
12711 elif test $pkg_failed = untried; then
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12713 $as_echo "no" >&6; }
12714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12716 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12717 is in your PATH or set the PKG_CONFIG environment variable to the full
12718 path to pkg-config.
12720 Alternatively, you may set the environment variables GLIB_CFLAGS
12721 and GLIB_LIBS to avoid the need to call pkg-config.
12722 See the pkg-config man page for more details.
12724 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12725 See \`config.log' for more details" "$LINENO" 5; }
12727 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
12728 GLIB_LIBS=$pkg_cv_GLIB_LIBS
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12730 $as_echo "yes" >&6; }
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
12736 $as_echo_n "checking for GOBJECT... " >&6; }
12738 if test -n "$GOBJECT_CFLAGS"; then
12739 pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
12740 elif test -n "$PKG_CONFIG"; then
12741 if test -n "$PKG_CONFIG" && \
12742 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\""; } >&5
12743 ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5
12745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12746 test $ac_status = 0; }; then
12747 pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0" 2>/dev/null`
12748 test "x$?" != "x0" && pkg_failed=yes
12755 if test -n "$GOBJECT_LIBS"; then
12756 pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
12757 elif test -n "$PKG_CONFIG"; then
12758 if test -n "$PKG_CONFIG" && \
12759 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\""; } >&5
12760 ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5
12762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12763 test $ac_status = 0; }; then
12764 pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0" 2>/dev/null`
12765 test "x$?" != "x0" && pkg_failed=yes
12775 if test $pkg_failed = yes; then
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777 $as_echo "no" >&6; }
12779 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12780 _pkg_short_errors_supported=yes
12782 _pkg_short_errors_supported=no
12784 if test $_pkg_short_errors_supported = yes; then
12785 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0" 2>&1`
12787 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0" 2>&1`
12789 # Put the nasty error message in config.log where it belongs
12790 echo "$GOBJECT_PKG_ERRORS" >&5
12792 as_fn_error $? "Package requirements (gobject-2.0) were not met:
12794 $GOBJECT_PKG_ERRORS
12796 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12797 installed software in a non-standard prefix.
12799 Alternatively, you may set the environment variables GOBJECT_CFLAGS
12800 and GOBJECT_LIBS to avoid the need to call pkg-config.
12801 See the pkg-config man page for more details." "$LINENO" 5
12802 elif test $pkg_failed = untried; then
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804 $as_echo "no" >&6; }
12805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12807 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12808 is in your PATH or set the PKG_CONFIG environment variable to the full
12809 path to pkg-config.
12811 Alternatively, you may set the environment variables GOBJECT_CFLAGS
12812 and GOBJECT_LIBS to avoid the need to call pkg-config.
12813 See the pkg-config man page for more details.
12815 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12816 See \`config.log' for more details" "$LINENO" 5; }
12818 GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
12819 GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12821 $as_echo "yes" >&6; }
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMODULE" >&5
12827 $as_echo_n "checking for GMODULE... " >&6; }
12829 if test -n "$GMODULE_CFLAGS"; then
12830 pkg_cv_GMODULE_CFLAGS="$GMODULE_CFLAGS"
12831 elif test -n "$PKG_CONFIG"; then
12832 if test -n "$PKG_CONFIG" && \
12833 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
12834 ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
12836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12837 test $ac_status = 0; }; then
12838 pkg_cv_GMODULE_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0" 2>/dev/null`
12839 test "x$?" != "x0" && pkg_failed=yes
12846 if test -n "$GMODULE_LIBS"; then
12847 pkg_cv_GMODULE_LIBS="$GMODULE_LIBS"
12848 elif test -n "$PKG_CONFIG"; then
12849 if test -n "$PKG_CONFIG" && \
12850 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
12851 ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
12853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12854 test $ac_status = 0; }; then
12855 pkg_cv_GMODULE_LIBS=`$PKG_CONFIG --libs "gmodule-2.0" 2>/dev/null`
12856 test "x$?" != "x0" && pkg_failed=yes
12866 if test $pkg_failed = yes; then
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12868 $as_echo "no" >&6; }
12870 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12871 _pkg_short_errors_supported=yes
12873 _pkg_short_errors_supported=no
12875 if test $_pkg_short_errors_supported = yes; then
12876 GMODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmodule-2.0" 2>&1`
12878 GMODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmodule-2.0" 2>&1`
12880 # Put the nasty error message in config.log where it belongs
12881 echo "$GMODULE_PKG_ERRORS" >&5
12883 as_fn_error $? "Package requirements (gmodule-2.0) were not met:
12885 $GMODULE_PKG_ERRORS
12887 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12888 installed software in a non-standard prefix.
12890 Alternatively, you may set the environment variables GMODULE_CFLAGS
12891 and GMODULE_LIBS to avoid the need to call pkg-config.
12892 See the pkg-config man page for more details." "$LINENO" 5
12893 elif test $pkg_failed = untried; then
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12895 $as_echo "no" >&6; }
12896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12898 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12899 is in your PATH or set the PKG_CONFIG environment variable to the full
12900 path to pkg-config.
12902 Alternatively, you may set the environment variables GMODULE_CFLAGS
12903 and GMODULE_LIBS to avoid the need to call pkg-config.
12904 See the pkg-config man page for more details.
12906 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12907 See \`config.log' for more details" "$LINENO" 5; }
12909 GMODULE_CFLAGS=$pkg_cv_GMODULE_CFLAGS
12910 GMODULE_LIBS=$pkg_cv_GMODULE_LIBS
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12912 $as_echo "yes" >&6; }
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
12918 $as_echo_n "checking for GIO... " >&6; }
12920 if test -n "$GIO_CFLAGS"; then
12921 pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
12922 elif test -n "$PKG_CONFIG"; then
12923 if test -n "$PKG_CONFIG" && \
12924 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0\""; } >&5
12925 ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5
12927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12928 test $ac_status = 0; }; then
12929 pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0" 2>/dev/null`
12930 test "x$?" != "x0" && pkg_failed=yes
12937 if test -n "$GIO_LIBS"; then
12938 pkg_cv_GIO_LIBS="$GIO_LIBS"
12939 elif test -n "$PKG_CONFIG"; then
12940 if test -n "$PKG_CONFIG" && \
12941 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0\""; } >&5
12942 ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5
12944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12945 test $ac_status = 0; }; then
12946 pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0" 2>/dev/null`
12947 test "x$?" != "x0" && pkg_failed=yes
12957 if test $pkg_failed = yes; then
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12959 $as_echo "no" >&6; }
12961 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12962 _pkg_short_errors_supported=yes
12964 _pkg_short_errors_supported=no
12966 if test $_pkg_short_errors_supported = yes; then
12967 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0" 2>&1`
12969 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0" 2>&1`
12971 # Put the nasty error message in config.log where it belongs
12972 echo "$GIO_PKG_ERRORS" >&5
12974 as_fn_error $? "Package requirements (gio-2.0) were not met:
12978 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12979 installed software in a non-standard prefix.
12981 Alternatively, you may set the environment variables GIO_CFLAGS
12982 and GIO_LIBS to avoid the need to call pkg-config.
12983 See the pkg-config man page for more details." "$LINENO" 5
12984 elif test $pkg_failed = untried; then
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12986 $as_echo "no" >&6; }
12987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12989 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12990 is in your PATH or set the PKG_CONFIG environment variable to the full
12991 path to pkg-config.
12993 Alternatively, you may set the environment variables GIO_CFLAGS
12994 and GIO_LIBS to avoid the need to call pkg-config.
12995 See the pkg-config man page for more details.
12997 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12998 See \`config.log' for more details" "$LINENO" 5; }
13000 GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
13001 GIO_LIBS=$pkg_cv_GIO_LIBS
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13003 $as_echo "yes" >&6; }
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO_UNIX" >&5
13009 $as_echo_n "checking for GIO_UNIX... " >&6; }
13011 if test -n "$GIO_UNIX_CFLAGS"; then
13012 pkg_cv_GIO_UNIX_CFLAGS="$GIO_UNIX_CFLAGS"
13013 elif test -n "$PKG_CONFIG"; then
13014 if test -n "$PKG_CONFIG" && \
13015 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-unix-2.0\""; } >&5
13016 ($PKG_CONFIG --exists --print-errors "gio-unix-2.0") 2>&5
13018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13019 test $ac_status = 0; }; then
13020 pkg_cv_GIO_UNIX_CFLAGS=`$PKG_CONFIG --cflags "gio-unix-2.0" 2>/dev/null`
13021 test "x$?" != "x0" && pkg_failed=yes
13028 if test -n "$GIO_UNIX_LIBS"; then
13029 pkg_cv_GIO_UNIX_LIBS="$GIO_UNIX_LIBS"
13030 elif test -n "$PKG_CONFIG"; then
13031 if test -n "$PKG_CONFIG" && \
13032 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-unix-2.0\""; } >&5
13033 ($PKG_CONFIG --exists --print-errors "gio-unix-2.0") 2>&5
13035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13036 test $ac_status = 0; }; then
13037 pkg_cv_GIO_UNIX_LIBS=`$PKG_CONFIG --libs "gio-unix-2.0" 2>/dev/null`
13038 test "x$?" != "x0" && pkg_failed=yes
13048 if test $pkg_failed = yes; then
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13050 $as_echo "no" >&6; }
13052 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13053 _pkg_short_errors_supported=yes
13055 _pkg_short_errors_supported=no
13057 if test $_pkg_short_errors_supported = yes; then
13058 GIO_UNIX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-unix-2.0" 2>&1`
13060 GIO_UNIX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-unix-2.0" 2>&1`
13062 # Put the nasty error message in config.log where it belongs
13063 echo "$GIO_UNIX_PKG_ERRORS" >&5
13065 have_gio_unix=false
13066 elif test $pkg_failed = untried; then
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13068 $as_echo "no" >&6; }
13069 have_gio_unix=false
13071 GIO_UNIX_CFLAGS=$pkg_cv_GIO_UNIX_CFLAGS
13072 GIO_UNIX_LIBS=$pkg_cv_GIO_UNIX_LIBS
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13074 $as_echo "yes" >&6; }
13077 if test x$have_gio_unix = xtrue; then
13078 HAVE_GIO_UNIX_TRUE=
13079 HAVE_GIO_UNIX_FALSE='#'
13081 HAVE_GIO_UNIX_TRUE='#'
13082 HAVE_GIO_UNIX_FALSE=
13086 # Prefer cairo-gobject if we have it
13088 # Check whether --with-cairo was given.
13089 if test "${with_cairo+set}" = set; then :
13090 withval=$with_cairo;
13096 if test x${with_cairo} != xno; then :
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
13101 $as_echo_n "checking for CAIRO... " >&6; }
13103 if test -n "$CAIRO_CFLAGS"; then
13104 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
13105 elif test -n "$PKG_CONFIG"; then
13106 if test -n "$PKG_CONFIG" && \
13107 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13108 ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13111 test $ac_status = 0; }; then
13112 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo cairo-gobject" 2>/dev/null`
13113 test "x$?" != "x0" && pkg_failed=yes
13120 if test -n "$CAIRO_LIBS"; then
13121 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
13122 elif test -n "$PKG_CONFIG"; then
13123 if test -n "$PKG_CONFIG" && \
13124 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13125 ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13128 test $ac_status = 0; }; then
13129 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo cairo-gobject" 2>/dev/null`
13130 test "x$?" != "x0" && pkg_failed=yes
13140 if test $pkg_failed = yes; then
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13142 $as_echo "no" >&6; }
13144 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13145 _pkg_short_errors_supported=yes
13147 _pkg_short_errors_supported=no
13149 if test $_pkg_short_errors_supported = yes; then
13150 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
13152 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
13154 # Put the nasty error message in config.log where it belongs
13155 echo "$CAIRO_PKG_ERRORS" >&5
13158 elif test $pkg_failed = untried; then
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13160 $as_echo "no" >&6; }
13163 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
13164 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13166 $as_echo "yes" >&6; }
13169 if test x$have_cairo = xno && test x$with_cairo = xyes ; then :
13171 as_fn_error $? "cairo enabled but not found" "$LINENO" 5
13176 if test x$have_cairo = xyes; then
13178 HAVE_CAIRO_FALSE='#'
13180 HAVE_CAIRO_TRUE='#'
13187 CAIRO_SHARED_LIBRARY="libcairo-gobject.2.dylib"
13190 CAIRO_SHARED_LIBRARY="libcairo-gobject-2.dll"
13193 CAIRO_SHARED_LIBRARY="libcairo-gobject.so"
13196 CAIRO_SHARED_LIBRARY="libcairo-gobject.so.2"
13199 CAIRO_GIR_PACKAGE="cairo-gobject"
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCANNER" >&5
13208 $as_echo_n "checking for SCANNER... " >&6; }
13210 if test -n "$SCANNER_CFLAGS"; then
13211 pkg_cv_SCANNER_CFLAGS="$SCANNER_CFLAGS"
13212 elif test -n "$PKG_CONFIG"; then
13213 if test -n "$PKG_CONFIG" && \
13214 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 gio-2.0\""; } >&5
13215 ($PKG_CONFIG --exists --print-errors "gobject-2.0 gio-2.0") 2>&5
13217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13218 test $ac_status = 0; }; then
13219 pkg_cv_SCANNER_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 gio-2.0" 2>/dev/null`
13220 test "x$?" != "x0" && pkg_failed=yes
13227 if test -n "$SCANNER_LIBS"; then
13228 pkg_cv_SCANNER_LIBS="$SCANNER_LIBS"
13229 elif test -n "$PKG_CONFIG"; then
13230 if test -n "$PKG_CONFIG" && \
13231 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 gio-2.0\""; } >&5
13232 ($PKG_CONFIG --exists --print-errors "gobject-2.0 gio-2.0") 2>&5
13234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13235 test $ac_status = 0; }; then
13236 pkg_cv_SCANNER_LIBS=`$PKG_CONFIG --libs "gobject-2.0 gio-2.0" 2>/dev/null`
13237 test "x$?" != "x0" && pkg_failed=yes
13247 if test $pkg_failed = yes; then
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13249 $as_echo "no" >&6; }
13251 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13252 _pkg_short_errors_supported=yes
13254 _pkg_short_errors_supported=no
13256 if test $_pkg_short_errors_supported = yes; then
13257 SCANNER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0 gio-2.0" 2>&1`
13259 SCANNER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0 gio-2.0" 2>&1`
13261 # Put the nasty error message in config.log where it belongs
13262 echo "$SCANNER_PKG_ERRORS" >&5
13264 as_fn_error $? "Package requirements (gobject-2.0 gio-2.0) were not met:
13266 $SCANNER_PKG_ERRORS
13268 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13269 installed software in a non-standard prefix.
13271 Alternatively, you may set the environment variables SCANNER_CFLAGS
13272 and SCANNER_LIBS to avoid the need to call pkg-config.
13273 See the pkg-config man page for more details." "$LINENO" 5
13274 elif test $pkg_failed = untried; then
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13276 $as_echo "no" >&6; }
13277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13279 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13280 is in your PATH or set the PKG_CONFIG environment variable to the full
13281 path to pkg-config.
13283 Alternatively, you may set the environment variables SCANNER_CFLAGS
13284 and SCANNER_LIBS to avoid the need to call pkg-config.
13285 See the pkg-config man page for more details.
13287 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13288 See \`config.log' for more details" "$LINENO" 5; }
13290 SCANNER_CFLAGS=$pkg_cv_SCANNER_CFLAGS
13291 SCANNER_LIBS=$pkg_cv_SCANNER_LIBS
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13293 $as_echo "yes" >&6; }
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFI" >&5
13300 $as_echo_n "checking for FFI... " >&6; }
13302 if test -n "$FFI_CFLAGS"; then
13303 pkg_cv_FFI_CFLAGS="$FFI_CFLAGS"
13304 elif test -n "$PKG_CONFIG"; then
13305 if test -n "$PKG_CONFIG" && \
13306 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
13307 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
13309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13310 test $ac_status = 0; }; then
13311 pkg_cv_FFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
13312 test "x$?" != "x0" && pkg_failed=yes
13319 if test -n "$FFI_LIBS"; then
13320 pkg_cv_FFI_LIBS="$FFI_LIBS"
13321 elif test -n "$PKG_CONFIG"; then
13322 if test -n "$PKG_CONFIG" && \
13323 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
13324 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
13326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13327 test $ac_status = 0; }; then
13328 pkg_cv_FFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
13329 test "x$?" != "x0" && pkg_failed=yes
13339 if test $pkg_failed = yes; then
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13341 $as_echo "no" >&6; }
13343 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13344 _pkg_short_errors_supported=yes
13346 _pkg_short_errors_supported=no
13348 if test $_pkg_short_errors_supported = yes; then
13349 FFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
13351 FFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
13353 # Put the nasty error message in config.log where it belongs
13354 echo "$FFI_PKG_ERRORS" >&5
13356 have_ffi_pkgconfig=no
13357 elif test $pkg_failed = untried; then
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13359 $as_echo "no" >&6; }
13360 have_ffi_pkgconfig=no
13362 FFI_CFLAGS=$pkg_cv_FFI_CFLAGS
13363 FFI_LIBS=$pkg_cv_FFI_LIBS
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13365 $as_echo "yes" >&6; }
13366 have_ffi_pkgconfig=yes
13371 if test x"$have_ffi_pkgconfig" = xyes ; then
13372 FFI_PC_PACKAGES="libffi"
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi.h" >&5
13375 $as_echo_n "checking for ffi.h... " >&6; }
13377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378 /* end confdefs.h. */
13381 if ac_fn_c_try_cpp "$LINENO"; then :
13386 rm -f conftest.err conftest.i conftest.$ac_ext
13387 if test x"$have_ffi_h" = x"yes"; then
13390 if test x"$with_ffi" = x"yes" || test x"$with_ffi" = x"auto"; then
13393 other_LIBS=$with_ffi
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
13397 $as_echo_n "checking for library containing ffi_call... " >&6; }
13398 if ${ac_cv_search_ffi_call+:} false; then :
13399 $as_echo_n "(cached) " >&6
13401 ac_func_search_save_LIBS=$LIBS
13402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13403 /* end confdefs.h. */
13405 /* Override any GCC internal prototype to avoid an error.
13406 Use char because int might match the return type of a GCC
13407 builtin and then its argument prototype would still apply. */
13415 return ffi_call ();
13420 for ac_lib in '' ffi; do
13421 if test -z "$ac_lib"; then
13422 ac_res="none required"
13425 LIBS="-l$ac_lib $other_LIBS $ac_func_search_save_LIBS"
13427 if ac_fn_c_try_link "$LINENO"; then :
13428 ac_cv_search_ffi_call=$ac_res
13430 rm -f core conftest.err conftest.$ac_objext \
13432 if ${ac_cv_search_ffi_call+:} false; then :
13436 if ${ac_cv_search_ffi_call+:} false; then :
13439 ac_cv_search_ffi_call=no
13441 rm conftest.$ac_ext
13442 LIBS=$ac_func_search_save_LIBS
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
13445 $as_echo "$ac_cv_search_ffi_call" >&6; }
13446 ac_res=$ac_cv_search_ffi_call
13447 if test "$ac_res" != no; then :
13448 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13451 as_fn_error $? "libffi not found" "$LINENO" 5
13454 if test x"$ac_cv_search_ffi_call" = x"none required" ; then
13455 FFI_LIBS=$other_LIBS
13457 FFI_LIBS="$ac_cv_search_ffi_call $other_LIBS"
13462 if test x"$have_ffi_h" != x"yes" ; then
13463 as_fn_error $? "ffi.h not found" "$LINENO" 5
13466 FFI_PC_LIBS=$FFI_LIBS
13467 FFI_PC_CFLAGS=$FFI_CFLAGS
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ffi_h" >&5
13470 $as_echo "$have_ffi_h" >&6; }
13478 # The cast to long int works around a bug in the HP C Compiler
13479 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13480 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13481 # This bug is HP SR number 8606223364.
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13483 $as_echo_n "checking size of char... " >&6; }
13484 if ${ac_cv_sizeof_char+:} false; then :
13485 $as_echo_n "(cached) " >&6
13487 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
13490 if test "$ac_cv_type_char" = yes; then
13491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13493 as_fn_error 77 "cannot compute sizeof (char)
13494 See \`config.log' for more details" "$LINENO" 5; }
13496 ac_cv_sizeof_char=0
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13502 $as_echo "$ac_cv_sizeof_char" >&6; }
13506 cat >>confdefs.h <<_ACEOF
13507 #define SIZEOF_CHAR $ac_cv_sizeof_char
13511 # The cast to long int works around a bug in the HP C Compiler
13512 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13513 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13514 # This bug is HP SR number 8606223364.
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13516 $as_echo_n "checking size of short... " >&6; }
13517 if ${ac_cv_sizeof_short+:} false; then :
13518 $as_echo_n "(cached) " >&6
13520 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13523 if test "$ac_cv_type_short" = yes; then
13524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13526 as_fn_error 77 "cannot compute sizeof (short)
13527 See \`config.log' for more details" "$LINENO" 5; }
13529 ac_cv_sizeof_short=0
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13535 $as_echo "$ac_cv_sizeof_short" >&6; }
13539 cat >>confdefs.h <<_ACEOF
13540 #define SIZEOF_SHORT $ac_cv_sizeof_short
13544 # The cast to long int works around a bug in the HP C Compiler
13545 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13546 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13547 # This bug is HP SR number 8606223364.
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13549 $as_echo_n "checking size of int... " >&6; }
13550 if ${ac_cv_sizeof_int+:} false; then :
13551 $as_echo_n "(cached) " >&6
13553 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13556 if test "$ac_cv_type_int" = yes; then
13557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13559 as_fn_error 77 "cannot compute sizeof (int)
13560 See \`config.log' for more details" "$LINENO" 5; }
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13568 $as_echo "$ac_cv_sizeof_int" >&6; }
13572 cat >>confdefs.h <<_ACEOF
13573 #define SIZEOF_INT $ac_cv_sizeof_int
13577 # The cast to long int works around a bug in the HP C Compiler
13578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13579 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13580 # This bug is HP SR number 8606223364.
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13582 $as_echo_n "checking size of long... " >&6; }
13583 if ${ac_cv_sizeof_long+:} false; then :
13584 $as_echo_n "(cached) " >&6
13586 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13589 if test "$ac_cv_type_long" = yes; then
13590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13592 as_fn_error 77 "cannot compute sizeof (long)
13593 See \`config.log' for more details" "$LINENO" 5; }
13595 ac_cv_sizeof_long=0
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13601 $as_echo "$ac_cv_sizeof_long" >&6; }
13605 cat >>confdefs.h <<_ACEOF
13606 #define SIZEOF_LONG $ac_cv_sizeof_long
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIREPO" >&5
13614 $as_echo_n "checking for GIREPO... " >&6; }
13616 if test -n "$GIREPO_CFLAGS"; then
13617 pkg_cv_GIREPO_CFLAGS="$GIREPO_CFLAGS"
13618 elif test -n "$PKG_CONFIG"; then
13619 if test -n "$PKG_CONFIG" && \
13620 { { $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
13621 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0") 2>&5
13623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13624 test $ac_status = 0; }; then
13625 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`
13626 test "x$?" != "x0" && pkg_failed=yes
13633 if test -n "$GIREPO_LIBS"; then
13634 pkg_cv_GIREPO_LIBS="$GIREPO_LIBS"
13635 elif test -n "$PKG_CONFIG"; then
13636 if test -n "$PKG_CONFIG" && \
13637 { { $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
13638 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0") 2>&5
13640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13641 test $ac_status = 0; }; then
13642 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`
13643 test "x$?" != "x0" && pkg_failed=yes
13653 if test $pkg_failed = yes; then
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13655 $as_echo "no" >&6; }
13657 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13658 _pkg_short_errors_supported=yes
13660 _pkg_short_errors_supported=no
13662 if test $_pkg_short_errors_supported = yes; then
13663 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`
13665 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`
13667 # Put the nasty error message in config.log where it belongs
13668 echo "$GIREPO_PKG_ERRORS" >&5
13670 as_fn_error $? "Package requirements (glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0) were not met:
13674 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13675 installed software in a non-standard prefix.
13677 Alternatively, you may set the environment variables GIREPO_CFLAGS
13678 and GIREPO_LIBS to avoid the need to call pkg-config.
13679 See the pkg-config man page for more details." "$LINENO" 5
13680 elif test $pkg_failed = untried; then
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13682 $as_echo "no" >&6; }
13683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13685 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13686 is in your PATH or set the PKG_CONFIG environment variable to the full
13687 path to pkg-config.
13689 Alternatively, you may set the environment variables GIREPO_CFLAGS
13690 and GIREPO_LIBS to avoid the need to call pkg-config.
13691 See the pkg-config man page for more details.
13693 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13694 See \`config.log' for more details" "$LINENO" 5; }
13696 GIREPO_CFLAGS=$pkg_cv_GIREPO_CFLAGS
13697 GIREPO_LIBS=$pkg_cv_GIREPO_LIBS
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13699 $as_echo "yes" >&6; }
13703 # if we ever remove manual check for ffi and require .pc file, then
13704 # just put libffi in the PKG_CHECK_MODULES(GIREPO) deps
13705 GIREPO_LIBS="$GIREPO_LIBS $GCOV_LIBS $FFI_LIBS"
13706 GIREPO_CFLAGS="$GIREPO_CFLAGS $FFI_CFLAGS"
13708 GIREPO_CFLAGS="$GIREPO_CFLAGS $GCOV_CFLAGS"
13711 # gtkdocize greps for ^GTK_DOC_CHECK and parses it, so you need to have
13712 # it on it's own line.
13717 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
13718 set dummy gtkdoc-check; ac_word=$2
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13720 $as_echo_n "checking for $ac_word... " >&6; }
13721 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
13722 $as_echo_n "(cached) " >&6
13724 case $GTKDOC_CHECK in
13726 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
13729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13730 for as_dir in $PATH
13733 test -z "$as_dir" && as_dir=.
13734 for ac_exec_ext in '' $ac_executable_extensions; do
13735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13736 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
13737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13747 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
13748 if test -n "$GTKDOC_CHECK"; then
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
13750 $as_echo "$GTKDOC_CHECK" >&6; }
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13753 $as_echo "no" >&6; }
13757 for ac_prog in gtkdoc-rebase
13759 # Extract the first word of "$ac_prog", so it can be a program name with args.
13760 set dummy $ac_prog; ac_word=$2
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13762 $as_echo_n "checking for $ac_word... " >&6; }
13763 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
13764 $as_echo_n "(cached) " >&6
13766 case $GTKDOC_REBASE in
13768 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
13771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13772 for as_dir in $PATH
13775 test -z "$as_dir" && as_dir=.
13776 for ac_exec_ext in '' $ac_executable_extensions; do
13777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13778 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
13779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13789 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
13790 if test -n "$GTKDOC_REBASE"; then
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
13792 $as_echo "$GTKDOC_REBASE" >&6; }
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13795 $as_echo "no" >&6; }
13799 test -n "$GTKDOC_REBASE" && break
13801 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
13803 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
13804 set dummy gtkdoc-mkpdf; ac_word=$2
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13806 $as_echo_n "checking for $ac_word... " >&6; }
13807 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
13808 $as_echo_n "(cached) " >&6
13810 case $GTKDOC_MKPDF in
13812 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
13815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13816 for as_dir in $PATH
13819 test -z "$as_dir" && as_dir=.
13820 for ac_exec_ext in '' $ac_executable_extensions; do
13821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13822 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
13823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13833 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
13834 if test -n "$GTKDOC_MKPDF"; then
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
13836 $as_echo "$GTKDOC_MKPDF" >&6; }
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13839 $as_echo "no" >&6; }
13845 # Check whether --with-html-dir was given.
13846 if test "${with_html_dir+set}" = set; then :
13847 withval=$with_html_dir;
13849 with_html_dir='${datadir}/gtk-doc/html'
13852 HTML_DIR="$with_html_dir"
13855 # Check whether --enable-gtk-doc was given.
13856 if test "${enable_gtk_doc+set}" = set; then :
13857 enableval=$enable_gtk_doc;
13863 if test x$enable_gtk_doc = xyes; then
13864 if test -n "$PKG_CONFIG" && \
13865 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.15\""; } >&5
13866 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.15") 2>&5
13868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13869 test $ac_status = 0; }; then
13872 as_fn_error $? "You need to have gtk-doc >= 1.15 installed to build $PACKAGE_NAME" "$LINENO" 5
13874 if test "x$PACKAGE_NAME" != "xglib"; then
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
13878 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
13880 if test -n "$GTKDOC_DEPS_CFLAGS"; then
13881 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
13882 elif test -n "$PKG_CONFIG"; then
13883 if test -n "$PKG_CONFIG" && \
13884 { { $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
13885 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
13887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13888 test $ac_status = 0; }; then
13889 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
13890 test "x$?" != "x0" && pkg_failed=yes
13897 if test -n "$GTKDOC_DEPS_LIBS"; then
13898 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
13899 elif test -n "$PKG_CONFIG"; then
13900 if test -n "$PKG_CONFIG" && \
13901 { { $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
13902 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
13904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13905 test $ac_status = 0; }; then
13906 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
13907 test "x$?" != "x0" && pkg_failed=yes
13917 if test $pkg_failed = yes; then
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13919 $as_echo "no" >&6; }
13921 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13922 _pkg_short_errors_supported=yes
13924 _pkg_short_errors_supported=no
13926 if test $_pkg_short_errors_supported = yes; then
13927 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`
13929 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
13931 # Put the nasty error message in config.log where it belongs
13932 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
13935 elif test $pkg_failed = untried; then
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13937 $as_echo "no" >&6; }
13940 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
13941 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13943 $as_echo "yes" >&6; }
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
13950 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
13952 $as_echo "$enable_gtk_doc" >&6; }
13954 # Check whether --enable-gtk-doc-html was given.
13955 if test "${enable_gtk_doc_html+set}" = set; then :
13956 enableval=$enable_gtk_doc_html;
13958 enable_gtk_doc_html=yes
13961 # Check whether --enable-gtk-doc-pdf was given.
13962 if test "${enable_gtk_doc_pdf+set}" = set; then :
13963 enableval=$enable_gtk_doc_pdf;
13965 enable_gtk_doc_pdf=no
13969 if test -z "$GTKDOC_MKPDF"; then
13970 enable_gtk_doc_pdf=no
13973 if test -z "$AM_DEFAULT_VERBOSITY"; then
13974 AM_DEFAULT_VERBOSITY=1
13978 if test x$enable_gtk_doc = xyes; then
13979 ENABLE_GTK_DOC_TRUE=
13980 ENABLE_GTK_DOC_FALSE='#'
13982 ENABLE_GTK_DOC_TRUE='#'
13983 ENABLE_GTK_DOC_FALSE=
13986 if test x$enable_gtk_doc_html = xyes; then
13987 GTK_DOC_BUILD_HTML_TRUE=
13988 GTK_DOC_BUILD_HTML_FALSE='#'
13990 GTK_DOC_BUILD_HTML_TRUE='#'
13991 GTK_DOC_BUILD_HTML_FALSE=
13994 if test x$enable_gtk_doc_pdf = xyes; then
13995 GTK_DOC_BUILD_PDF_TRUE=
13996 GTK_DOC_BUILD_PDF_FALSE='#'
13998 GTK_DOC_BUILD_PDF_TRUE='#'
13999 GTK_DOC_BUILD_PDF_FALSE=
14002 if test -n "$LIBTOOL"; then
14003 GTK_DOC_USE_LIBTOOL_TRUE=
14004 GTK_DOC_USE_LIBTOOL_FALSE='#'
14006 GTK_DOC_USE_LIBTOOL_TRUE='#'
14007 GTK_DOC_USE_LIBTOOL_FALSE=
14010 if test -n "$GTKDOC_REBASE"; then
14011 GTK_DOC_USE_REBASE_TRUE=
14012 GTK_DOC_USE_REBASE_FALSE='#'
14014 GTK_DOC_USE_REBASE_TRUE='#'
14015 GTK_DOC_USE_REBASE_FALSE=
14021 # Checks for header files.
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14023 $as_echo_n "checking for ANSI C header files... " >&6; }
14024 if ${ac_cv_header_stdc+:} false; then :
14025 $as_echo_n "(cached) " >&6
14027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14028 /* end confdefs.h. */
14029 #include <stdlib.h>
14030 #include <stdarg.h>
14031 #include <string.h>
14042 if ac_fn_c_try_compile "$LINENO"; then :
14043 ac_cv_header_stdc=yes
14045 ac_cv_header_stdc=no
14047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14049 if test $ac_cv_header_stdc = yes; then
14050 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14052 /* end confdefs.h. */
14053 #include <string.h>
14056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14057 $EGREP "memchr" >/dev/null 2>&1; then :
14060 ac_cv_header_stdc=no
14066 if test $ac_cv_header_stdc = yes; then
14067 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14069 /* end confdefs.h. */
14070 #include <stdlib.h>
14073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14074 $EGREP "free" >/dev/null 2>&1; then :
14077 ac_cv_header_stdc=no
14083 if test $ac_cv_header_stdc = yes; then
14084 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14085 if test "$cross_compiling" = yes; then :
14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14091 #include <stdlib.h>
14092 #if ((' ' & 0x0FF) == 0x020)
14093 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14094 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14096 # define ISLOWER(c) \
14097 (('a' <= (c) && (c) <= 'i') \
14098 || ('j' <= (c) && (c) <= 'r') \
14099 || ('s' <= (c) && (c) <= 'z'))
14100 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14103 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14108 for (i = 0; i < 256; i++)
14109 if (XOR (islower (i), ISLOWER (i))
14110 || toupper (i) != TOUPPER (i))
14115 if ac_fn_c_try_run "$LINENO"; then :
14118 ac_cv_header_stdc=no
14120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14121 conftest.$ac_objext conftest.beam conftest.$ac_ext
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14127 $as_echo "$ac_cv_header_stdc" >&6; }
14128 if test $ac_cv_header_stdc = yes; then
14130 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14134 for ac_header in fcntl.h stdlib.h string.h
14136 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14137 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14138 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14139 cat >>confdefs.h <<_ACEOF
14140 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14148 # Checks for typedefs, structures, and compiler characteristics.
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14150 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14151 if ${ac_cv_c_const+:} false; then :
14152 $as_echo_n "(cached) " >&6
14154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14155 /* end confdefs.h. */
14161 #ifndef __cplusplus
14162 /* Ultrix mips cc rejects this sort of thing. */
14163 typedef int charset[2];
14164 const charset cs = { 0, 0 };
14165 /* SunOS 4.1.1 cc rejects this. */
14166 char const *const *pcpcc;
14168 /* NEC SVR4.0.2 mips cc rejects this. */
14169 struct point {int x, y;};
14170 static struct point const zero = {0,0};
14171 /* AIX XL C 1.02.0.0 rejects this.
14172 It does not let you subtract one const X* pointer from another in
14173 an arm of an if-expression whose if-part is not a constant
14175 const char *g = "string";
14176 pcpcc = &g + (g ? g-g : 0);
14177 /* HPUX 7.0 cc rejects these. */
14179 ppc = (char**) pcpcc;
14180 pcpcc = (char const *const *) ppc;
14181 { /* SCO 3.2v4 cc rejects this sort of thing. */
14184 char const *s = 0 ? (char *) 0 : (char const *) 0;
14189 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14190 int x[] = {25, 17};
14191 const int *foo = &x[0];
14194 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14195 typedef const int *iptr;
14199 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14200 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14201 struct s { int j; const int *ap[3]; } bx;
14202 struct s *b = &bx; b->j = 5;
14204 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14205 const int foo = 10;
14206 if (!foo) return 0;
14208 return !cs[0] && !zero.x;
14215 if ac_fn_c_try_compile "$LINENO"; then :
14220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14223 $as_echo "$ac_cv_c_const" >&6; }
14224 if test $ac_cv_c_const = no; then
14226 $as_echo "#define const /**/" >>confdefs.h
14231 # Checks for library functions.
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
14233 $as_echo_n "checking for working strtod... " >&6; }
14234 if ${ac_cv_func_strtod+:} false; then :
14235 $as_echo_n "(cached) " >&6
14237 if test "$cross_compiling" = yes; then :
14238 ac_cv_func_strtod=no
14240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14241 /* end confdefs.h. */
14243 $ac_includes_default
14251 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
14252 char *string = " +69";
14255 value = strtod (string, &term);
14256 if (value != 69 || term != (string + 4))
14261 /* Under Solaris 2.4, strtod returns the wrong value for the
14262 terminating character under some conditions. */
14263 char *string = "NaN";
14265 strtod (string, &term);
14266 if (term != string && *(term - 1) == 0)
14273 if ac_fn_c_try_run "$LINENO"; then :
14274 ac_cv_func_strtod=yes
14276 ac_cv_func_strtod=no
14278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14279 conftest.$ac_objext conftest.beam conftest.$ac_ext
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
14284 $as_echo "$ac_cv_func_strtod" >&6; }
14285 if test $ac_cv_func_strtod = no; then
14286 case " $LIBOBJS " in
14287 *" strtod.$ac_objext "* ) ;;
14288 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14292 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
14293 if test "x$ac_cv_func_pow" = xyes; then :
14297 if test $ac_cv_func_pow = no; then
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
14299 $as_echo_n "checking for pow in -lm... " >&6; }
14300 if ${ac_cv_lib_m_pow+:} false; then :
14301 $as_echo_n "(cached) " >&6
14303 ac_check_lib_save_LIBS=$LIBS
14305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14306 /* end confdefs.h. */
14308 /* Override any GCC internal prototype to avoid an error.
14309 Use char because int might match the return type of a GCC
14310 builtin and then its argument prototype would still apply. */
14323 if ac_fn_c_try_link "$LINENO"; then :
14324 ac_cv_lib_m_pow=yes
14328 rm -f core conftest.err conftest.$ac_objext \
14329 conftest$ac_exeext conftest.$ac_ext
14330 LIBS=$ac_check_lib_save_LIBS
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
14333 $as_echo "$ac_cv_lib_m_pow" >&6; }
14334 if test "x$ac_cv_lib_m_pow" = xyes; then :
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
14338 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14345 for ac_func in memchr strchr strspn strstr strtol strtoull
14347 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14348 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14349 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14350 cat >>confdefs.h <<_ACEOF
14351 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14357 for ac_func in backtrace backtrace_symbols
14359 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14360 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14361 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14362 cat >>confdefs.h <<_ACEOF
14363 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14377 if test -n "$PYTHON"; then
14378 # If the user set $PYTHON, use it and don't search something else.
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5
14380 $as_echo_n "checking whether $PYTHON version is >= 2.6... " >&6; }
14382 # split strings by '.' and convert to numeric. Append some zeros
14383 # because we need at least 4 digits for the hex conversion.
14384 # map returns an iterator in Python 3.0 and a list in 2.x
14385 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
14387 # xrange is not present in Python 3.0 and range returns an iterator
14388 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14389 sys.exit(sys.hexversion < minverhex)"
14390 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
14391 ($PYTHON -c "$prog") >&5 2>&5
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); }; then :
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14396 $as_echo "yes" >&6; }
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14399 $as_echo "no" >&6; }
14400 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
14402 am_display_PYTHON=$PYTHON
14404 # Otherwise, try each interpreter until we find one that satisfies
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
14407 $as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
14408 if ${am_cv_pathless_PYTHON+:} false; then :
14409 $as_echo_n "(cached) " >&6
14412 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
14413 test "$am_cv_pathless_PYTHON" = none && break
14415 # split strings by '.' and convert to numeric. Append some zeros
14416 # because we need at least 4 digits for the hex conversion.
14417 # map returns an iterator in Python 3.0 and a list in 2.x
14418 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
14420 # xrange is not present in Python 3.0 and range returns an iterator
14421 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14422 sys.exit(sys.hexversion < minverhex)"
14423 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
14424 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; then :
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
14433 $as_echo "$am_cv_pathless_PYTHON" >&6; }
14434 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
14435 if test "$am_cv_pathless_PYTHON" = none; then
14438 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
14439 set dummy $am_cv_pathless_PYTHON; ac_word=$2
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14441 $as_echo_n "checking for $ac_word... " >&6; }
14442 if ${ac_cv_path_PYTHON+:} false; then :
14443 $as_echo_n "(cached) " >&6
14447 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14451 for as_dir in $PATH
14454 test -z "$as_dir" && as_dir=.
14455 for ac_exec_ext in '' $ac_executable_extensions; do
14456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14457 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14468 PYTHON=$ac_cv_path_PYTHON
14469 if test -n "$PYTHON"; then
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14471 $as_echo "$PYTHON" >&6; }
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14474 $as_echo "no" >&6; }
14479 am_display_PYTHON=$am_cv_pathless_PYTHON
14483 if test "$PYTHON" = :; then
14484 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
14489 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
14490 if ${am_cv_python_version+:} false; then :
14491 $as_echo_n "(cached) " >&6
14493 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
14496 $as_echo "$am_cv_python_version" >&6; }
14497 PYTHON_VERSION=$am_cv_python_version
14501 PYTHON_PREFIX='${prefix}'
14503 PYTHON_EXEC_PREFIX='${exec_prefix}'
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
14508 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
14509 if ${am_cv_python_platform+:} false; then :
14510 $as_echo_n "(cached) " >&6
14512 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
14515 $as_echo "$am_cv_python_platform" >&6; }
14516 PYTHON_PLATFORM=$am_cv_python_platform
14519 # Just factor out some code duplication.
14520 am_python_setup_sysconfig="\
14522 # Prefer sysconfig over distutils.sysconfig, for better compatibility
14523 # with python 3.x. See automake bug#10227.
14526 except ImportError:
14527 can_use_sysconfig = 0
14529 can_use_sysconfig = 1
14530 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
14531 # <https://github.com/pypa/virtualenv/issues/118>
14533 from platform import python_implementation
14534 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
14535 can_use_sysconfig = 0
14536 except ImportError:
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
14541 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
14542 if ${am_cv_python_pythondir+:} false; then :
14543 $as_echo_n "(cached) " >&6
14545 if test "x$prefix" = xNONE
14547 am_py_prefix=$ac_default_prefix
14549 am_py_prefix=$prefix
14551 am_cv_python_pythondir=`$PYTHON -c "
14552 $am_python_setup_sysconfig
14553 if can_use_sysconfig:
14554 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
14556 from distutils import sysconfig
14557 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
14558 sys.stdout.write(sitedir)"`
14559 case $am_cv_python_pythondir in
14561 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
14562 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
14565 case $am_py_prefix in
14568 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
14576 $as_echo "$am_cv_python_pythondir" >&6; }
14577 pythondir=$am_cv_python_pythondir
14581 pkgpythondir=\${pythondir}/$PACKAGE
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
14585 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
14586 if ${am_cv_python_pyexecdir+:} false; then :
14587 $as_echo_n "(cached) " >&6
14589 if test "x$exec_prefix" = xNONE
14591 am_py_exec_prefix=$am_py_prefix
14593 am_py_exec_prefix=$exec_prefix
14595 am_cv_python_pyexecdir=`$PYTHON -c "
14596 $am_python_setup_sysconfig
14597 if can_use_sysconfig:
14598 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
14600 from distutils import sysconfig
14601 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
14602 sys.stdout.write(sitedir)"`
14603 case $am_cv_python_pyexecdir in
14604 $am_py_exec_prefix*)
14605 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
14606 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
14609 case $am_py_exec_prefix in
14612 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
14620 $as_echo "$am_cv_python_pyexecdir" >&6; }
14621 pyexecdir=$am_cv_python_pyexecdir
14625 pkgpyexecdir=\${pyexecdir}/$PACKAGE
14634 # Change backslashes to forward slashes in pyexecdir to avoid
14636 pyexecdir=`echo $pyexecdir | tr '\\\\' '/'`
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
14641 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
14642 PYTHON_INCLUDES=`$PYTHON-config --includes`
14644 save_CPPFLAGS="$CPPFLAGS"
14645 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
14646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14647 /* end confdefs.h. */
14648 #include <Python.h>
14650 if ac_fn_c_try_cpp "$LINENO"; then :
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14652 $as_echo "found" >&6; }
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14656 $as_echo "not found" >&6; }
14657 as_fn_error $? "Python headers not found" "$LINENO" 5
14659 rm -f conftest.err conftest.i conftest.$ac_ext
14660 CPPFLAGS="$save_CPPFLAGS"
14662 if test "x$os_win32" = "xyes"; then
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to link against libpython" >&5
14665 $as_echo_n "checking for libraries required to link against libpython... " >&6; }
14666 if test "x$PYTHON_LIBS" = x; then
14667 PYTHON_LIBS=`$PYTHON-config --ldflags --libs`
14671 LIBS="$LIBS $PYTHON_LIBS"
14672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14673 /* end confdefs.h. */
14675 /* Override any GCC internal prototype to avoid an error.
14676 Use char because int might match the return type of a GCC
14677 builtin and then its argument prototype would still apply. */
14681 char Py_Initialize ();
14685 return Py_Initialize ();
14690 if ac_fn_c_try_link "$LINENO"; then :
14691 LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14692 $as_echo "found" >&6; };
14694 LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14695 $as_echo "not found" >&6; }; as_fn_error $? "Python libs not found. Windows requires Python modules to be explicitly linked to libpython." "$LINENO" 5
14697 rm -f core conftest.err conftest.$ac_objext \
14698 conftest$ac_exeext conftest.$ac_ext
14703 # Check whether --enable-doctool was given.
14704 if test "${enable_doctool+set}" = set; then :
14705 enableval=$enable_doctool;
14707 enable_doctool=auto
14710 if test x$enable_doctool != xno; then :
14713 py_mod_var=`echo mako'_' | sed 'y%./+-%__p_%'`
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module mako" >&5
14715 $as_echo_n "checking for python module mako... " >&6; }
14716 if eval \${py_cv_mod_$py_mod_var+:} false; then :
14717 $as_echo_n "(cached) " >&6
14724 except ImportError:
14729 if $PYTHON -c "$prog" 1>&5 2>&5
14731 eval "py_cv_mod_$py_mod_var=yes"
14733 eval "py_cv_mod_$py_mod_var=no"
14738 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
14739 if test "x$py_val" != xno; then
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14741 $as_echo "yes" >&6; }
14742 have_python_mako=yes
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14745 $as_echo "no" >&6; }
14746 have_python_mako=no
14751 if test x$enable_doctool = xauto && test x$have_python_mako = xyes ; then :
14753 elif test x$enable_doctool = xauto && test x$have_python_mako = xno ; then :
14755 elif test x$enable_doctool = xyes && test x$have_python_mako = xno ; then :
14756 as_fn_error $? "Python mako module not found" "$LINENO" 5
14758 if test x$enable_doctool != xno; then
14759 BUILD_DOCTOOL_TRUE=
14760 BUILD_DOCTOOL_FALSE='#'
14762 BUILD_DOCTOOL_TRUE='#'
14763 BUILD_DOCTOOL_FALSE=
14767 # Glib documentation
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib source directory to use for documentation" >&5
14771 $as_echo_n "checking for glib source directory to use for documentation... " >&6; }
14774 # Check whether --with-glib-src was given.
14775 if test "${with_glib_src+set}" = set; then :
14776 withval=$with_glib_src; GLIBSRC=$withval
14780 if test x"$GLIBSRC" != x; then
14782 WITH_GLIBSRC_FALSE='#'
14784 WITH_GLIBSRC_TRUE='#'
14785 WITH_GLIBSRC_FALSE=
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIBSRC" >&5
14790 $as_echo "$GLIBSRC" >&6; }
14792 # Check whether --enable-Bsymbolic was given.
14793 if test "${enable_Bsymbolic+set}" = set; then :
14794 enableval=$enable_Bsymbolic;
14796 SAVED_LDFLAGS="${LDFLAGS}"
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic-functions linker flag" >&5
14798 $as_echo_n "checking for -Bsymbolic-functions linker flag... " >&6; }
14799 LDFLAGS=-Wl,-Bsymbolic-functions
14800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14801 /* end confdefs.h. */
14806 int main (void) { return 0; }
14811 if ac_fn_c_try_link "$LINENO"; then :
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14813 $as_echo "yes" >&6; }
14814 enable_Bsymbolic=yes
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14817 $as_echo "no" >&6; }
14818 enable_Bsymbolic=no
14820 rm -f core conftest.err conftest.$ac_objext \
14821 conftest$ac_exeext conftest.$ac_ext
14822 LDFLAGS="${SAVED_LDFLAGS}"
14826 if test "x${enable_Bsymbolic}" = "xyes"; then
14827 EXTRA_LINK_FLAGS=-Wl,-Bsymbolic-functions
14832 ac_config_files="$ac_config_files Makefile m4/Makefile tests/Makefile tests/offsets/Makefile tests/scanner/Makefile tests/repository/Makefile tests/warn/Makefile docs/Makefile docs/reference/Makefile 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/vs10/Makefile"
14834 cat >confcache <<\_ACEOF
14835 # This file is a shell script that caches the results of configure
14836 # tests run on this system so they can be shared between configure
14837 # scripts and configure runs, see configure's option --config-cache.
14838 # It is not useful on other systems. If it contains results you don't
14839 # want to keep, you may remove or edit it.
14841 # config.status only pays attention to the cache file if you give it
14842 # the --recheck option to rerun configure.
14844 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14845 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14846 # following values.
14850 # The following way of writing the cache mishandles newlines in values,
14851 # but we know of no workaround that is simple, portable, and efficient.
14852 # So, we kill variables containing newlines.
14853 # Ultrix sh set writes to stderr and can't be redirected directly,
14854 # and sets the high bit in the cache file unless we assign to the vars.
14856 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14857 eval ac_val=\$$ac_var
14861 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14862 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14865 _ | IFS | as_nl) ;; #(
14866 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14867 *) { eval $ac_var=; unset $ac_var;} ;;
14873 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14874 *${as_nl}ac_space=\ *)
14875 # `set' does not quote correctly, so add quotes: double-quote
14876 # substitution turns \\\\ into \\, and sed turns \\ into \.
14879 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14882 # `set' quotes correctly as required by POSIX, so do not add quotes.
14883 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14892 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14894 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14896 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14897 if test -w "$cache_file"; then
14898 if test "x$cache_file" != "x/dev/null"; then
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14900 $as_echo "$as_me: updating cache $cache_file" >&6;}
14901 if test ! -f "$cache_file" || test -h "$cache_file"; then
14902 cat confcache >"$cache_file"
14904 case $cache_file in #(
14906 mv -f confcache "$cache_file"$$ &&
14907 mv -f "$cache_file"$$ "$cache_file" ;; #(
14909 mv -f confcache "$cache_file" ;;
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14915 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14920 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14921 # Let make expand exec_prefix.
14922 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14924 DEFS=-DHAVE_CONFIG_H
14929 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14930 # 1. Remove the extension, and $U if already installed.
14931 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14932 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14933 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14934 # will be set to the directory where LIBOBJS objects are built.
14935 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14936 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14938 LIBOBJS=$ac_libobjs
14940 LTLIBOBJS=$ac_ltlibobjs
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14944 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14945 if test -n "$am_sleep_pid"; then
14946 # Hide warnings about reused PIDs.
14947 wait $am_sleep_pid 2>/dev/null
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14950 $as_echo "done" >&6; }
14951 if test -n "$EXEEXT"; then
14953 am__EXEEXT_FALSE='#'
14955 am__EXEEXT_TRUE='#'
14959 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14960 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14963 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
14964 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
14965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14967 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14968 as_fn_error $? "conditional \"AMDEP\" was never defined.
14969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14971 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14972 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14975 if test -z "${HAVE_GIO_UNIX_TRUE}" && test -z "${HAVE_GIO_UNIX_FALSE}"; then
14976 as_fn_error $? "conditional \"HAVE_GIO_UNIX\" was never defined.
14977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14979 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
14980 as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
14981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14983 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
14984 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
14985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14987 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
14988 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
14989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14991 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
14992 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
14993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14995 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
14996 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
14997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14999 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
15000 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
15001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15003 if test -z "${BUILD_DOCTOOL_TRUE}" && test -z "${BUILD_DOCTOOL_FALSE}"; then
15004 as_fn_error $? "conditional \"BUILD_DOCTOOL\" was never defined.
15005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15007 if test -z "${WITH_GLIBSRC_TRUE}" && test -z "${WITH_GLIBSRC_FALSE}"; then
15008 as_fn_error $? "conditional \"WITH_GLIBSRC\" was never defined.
15009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15012 : "${CONFIG_STATUS=./config.status}"
15014 ac_clean_files_save=$ac_clean_files
15015 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15017 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15019 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15021 # Generated by $as_me.
15022 # Run this file to recreate the current configuration.
15023 # Compiler output produced by configure, useful for debugging
15024 # configure, is in config.log if it exists.
15027 ac_cs_recheck=false
15030 SHELL=\${CONFIG_SHELL-$SHELL}
15033 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15034 ## -------------------- ##
15035 ## M4sh Initialization. ##
15036 ## -------------------- ##
15038 # Be more Bourne compatible
15039 DUALCASE=1; export DUALCASE # for MKS sh
15040 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15043 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15044 # is contrary to our usage. Disable this feature.
15045 alias -g '${1+"$@"}'='"$@"'
15046 setopt NO_GLOB_SUBST
15048 case `(set -o) 2>/dev/null` in #(
15060 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15061 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15062 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15063 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15064 # Prefer a ksh shell builtin over an external printf program on Solaris,
15065 # but without wasting forks for bash or zsh.
15066 if test -z "$BASH_VERSION$ZSH_VERSION" \
15067 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15068 as_echo='print -r --'
15069 as_echo_n='print -rn --'
15070 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15071 as_echo='printf %s\n'
15072 as_echo_n='printf %s'
15074 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15075 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15076 as_echo_n='/usr/ucb/echo -n'
15078 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15079 as_echo_n_body='eval
15083 expr "X$arg" : "X\\(.*\\)$as_nl";
15084 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15086 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15088 export as_echo_n_body
15089 as_echo_n='sh -c $as_echo_n_body as_echo'
15091 export as_echo_body
15092 as_echo='sh -c $as_echo_body as_echo'
15095 # The user is always right.
15096 if test "${PATH_SEPARATOR+set}" != set; then
15098 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15099 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15106 # We need space, tab and new line, in precisely that order. Quoting is
15107 # there to prevent editors from complaining about space-tab.
15108 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15109 # splitting by setting IFS to empty value.)
15112 # Find who we are. Look in the path if we contain no directory separator.
15115 *[\\/]* ) as_myself=$0 ;;
15116 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15117 for as_dir in $PATH
15120 test -z "$as_dir" && as_dir=.
15121 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15127 # We did not find ourselves, most probably we were run as `sh COMMAND'
15128 # in which case we are not to be found in the path.
15129 if test "x$as_myself" = x; then
15132 if test ! -f "$as_myself"; then
15133 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15137 # Unset variables that we do not need and which cause bugs (e.g. in
15138 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15139 # suppresses any "Segmentation fault" message there. '((' could
15140 # trigger a bug in pdksh 5.2.14.
15141 for as_var in BASH_ENV ENV MAIL MAILPATH
15142 do eval test x\${$as_var+set} = xset \
15143 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15156 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15159 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15160 # ----------------------------------------
15161 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15162 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15163 # script with STATUS, using 1 if that was 0.
15166 as_status=$1; test $as_status -eq 0 && as_status=1
15168 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15169 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15171 $as_echo "$as_me: error: $2" >&2
15172 as_fn_exit $as_status
15176 # as_fn_set_status STATUS
15177 # -----------------------
15178 # Set $? to STATUS, without forking.
15179 as_fn_set_status ()
15182 } # as_fn_set_status
15184 # as_fn_exit STATUS
15185 # -----------------
15186 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15190 as_fn_set_status $1
15196 # Portably unset VAR.
15199 { eval $1=; unset $1;}
15201 as_unset=as_fn_unset
15202 # as_fn_append VAR VALUE
15203 # ----------------------
15204 # Append the text in VALUE to the end of the definition contained in VAR. Take
15205 # advantage of any shell optimizations that allow amortized linear growth over
15206 # repeated appends, instead of the typical quadratic growth present in naive
15208 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15209 eval 'as_fn_append ()
15220 # as_fn_arith ARG...
15221 # ------------------
15222 # Perform arithmetic evaluation on the ARGs, and store the result in the
15223 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15224 # must be portable across $(()) and expr.
15225 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15226 eval 'as_fn_arith ()
15233 as_val=`expr "$@" || test $? -eq 1`
15238 if expr a : '\(a\)' >/dev/null 2>&1 &&
15239 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15245 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15246 as_basename=basename
15251 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15257 as_me=`$as_basename -- "$0" ||
15258 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15259 X"$0" : 'X\(//\)$' \| \
15260 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15262 sed '/^.*\/\([^/][^/]*\)\/*$/{
15276 # Avoid depending upon Character Ranges.
15277 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15278 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15279 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15280 as_cr_digits='0123456789'
15281 as_cr_alnum=$as_cr_Letters$as_cr_digits
15283 ECHO_C= ECHO_N= ECHO_T=
15284 case `echo -n x` in #(((((
15286 case `echo 'xy\c'` in
15287 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15289 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15296 rm -f conf$$ conf$$.exe conf$$.file
15297 if test -d conf$$.dir; then
15298 rm -f conf$$.dir/conf$$.file
15301 mkdir conf$$.dir 2>/dev/null
15303 if (echo >conf$$.file) 2>/dev/null; then
15304 if ln -s conf$$.file conf$$ 2>/dev/null; then
15306 # ... but there are two gotchas:
15307 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15308 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15309 # In both cases, we have to default to `cp -pR'.
15310 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15312 elif ln conf$$.file conf$$ 2>/dev/null; then
15320 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15321 rmdir conf$$.dir 2>/dev/null
15326 # Create "$as_dir" as a directory, including parents if necessary.
15331 -*) as_dir=./$as_dir;;
15333 test -d "$as_dir" || eval $as_mkdir_p || {
15337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15338 *) as_qdir=$as_dir;;
15340 as_dirs="'$as_qdir' $as_dirs"
15341 as_dir=`$as_dirname -- "$as_dir" ||
15342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15343 X"$as_dir" : 'X\(//\)[^/]' \| \
15344 X"$as_dir" : 'X\(//\)$' \| \
15345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15346 $as_echo X"$as_dir" |
15347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15351 /^X\(\/\/\)[^/].*/{
15364 test -d "$as_dir" && break
15366 test -z "$as_dirs" || eval "mkdir $as_dirs"
15367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15371 if mkdir -p . 2>/dev/null; then
15372 as_mkdir_p='mkdir -p "$as_dir"'
15374 test -d ./-p && rmdir ./-p
15379 # as_fn_executable_p FILE
15380 # -----------------------
15381 # Test if FILE is an executable regular file.
15382 as_fn_executable_p ()
15384 test -f "$1" && test -x "$1"
15385 } # as_fn_executable_p
15386 as_test_x='test -x'
15387 as_executable_p=as_fn_executable_p
15389 # Sed expression to map a string onto a valid CPP name.
15390 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15392 # Sed expression to map a string onto a valid variable name.
15393 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15397 ## ----------------------------------- ##
15398 ## Main body of $CONFIG_STATUS script. ##
15399 ## ----------------------------------- ##
15401 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15404 # Save the log message, to keep $0 and so on meaningful, and to
15405 # report actual input values of CONFIG_FILES etc. instead of their
15406 # values after options handling.
15408 This file was extended by gobject-introspection $as_me 1.37.4, which was
15409 generated by GNU Autoconf 2.69. Invocation command line was
15411 CONFIG_FILES = $CONFIG_FILES
15412 CONFIG_HEADERS = $CONFIG_HEADERS
15413 CONFIG_LINKS = $CONFIG_LINKS
15414 CONFIG_COMMANDS = $CONFIG_COMMANDS
15417 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15422 case $ac_config_files in *"
15423 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15426 case $ac_config_headers in *"
15427 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15432 # Files that config.status was made for.
15433 config_files="$ac_config_files"
15434 config_headers="$ac_config_headers"
15435 config_commands="$ac_config_commands"
15439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15441 \`$as_me' instantiates files and other configuration actions
15442 from templates according to the current configuration. Unless the files
15443 and actions are specified as TAGs, all are instantiated by default.
15445 Usage: $0 [OPTION]... [TAG]...
15447 -h, --help print this help, then exit
15448 -V, --version print version number and configuration settings, then exit
15449 --config print configuration, then exit
15450 -q, --quiet, --silent
15451 do not print progress messages
15452 -d, --debug don't remove temporary files
15453 --recheck update $as_me by reconfiguring in the same conditions
15454 --file=FILE[:TEMPLATE]
15455 instantiate the configuration file FILE
15456 --header=FILE[:TEMPLATE]
15457 instantiate the configuration header FILE
15459 Configuration files:
15462 Configuration headers:
15465 Configuration commands:
15468 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib&component=introspection>."
15471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15472 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15474 gobject-introspection config.status 1.37.4
15475 configured by $0, generated by GNU Autoconf 2.69,
15476 with options \\"\$ac_cs_config\\"
15478 Copyright (C) 2012 Free Software Foundation, Inc.
15479 This config.status script is free software; the Free Software Foundation
15480 gives unlimited permission to copy, distribute and modify it."
15487 test -n "\$AWK" || AWK=awk
15490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15491 # The default lists apply if the user does not specify any file.
15497 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15498 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15502 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15514 # Handling of the options.
15515 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15517 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15518 $as_echo "$ac_cs_version"; exit ;;
15519 --config | --confi | --conf | --con | --co | --c )
15520 $as_echo "$ac_cs_config"; exit ;;
15521 --debug | --debu | --deb | --de | --d | -d )
15523 --file | --fil | --fi | --f )
15526 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15527 '') as_fn_error $? "missing file argument" ;;
15529 as_fn_append CONFIG_FILES " '$ac_optarg'"
15530 ac_need_defaults=false;;
15531 --header | --heade | --head | --hea )
15534 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15536 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15537 ac_need_defaults=false;;
15539 # Conflict between --help and --header
15540 as_fn_error $? "ambiguous option: \`$1'
15541 Try \`$0 --help' for more information.";;
15542 --help | --hel | -h )
15543 $as_echo "$ac_cs_usage"; exit ;;
15544 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15545 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15548 # This is an error.
15549 -*) as_fn_error $? "unrecognized option: \`$1'
15550 Try \`$0 --help' for more information." ;;
15552 *) as_fn_append ac_config_targets " $1"
15553 ac_need_defaults=false ;;
15559 ac_configure_extra_args=
15561 if $ac_cs_silent; then
15563 ac_configure_extra_args="$ac_configure_extra_args --silent"
15567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15568 if \$ac_cs_recheck; then
15569 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15571 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15572 CONFIG_SHELL='$SHELL'
15573 export CONFIG_SHELL
15578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15582 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15583 ## Running $as_me. ##
15589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15593 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15596 # The HP-UX ksh and POSIX shell print the target directory to stdout
15597 # if CDPATH is set.
15598 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15600 sed_quote_subst='$sed_quote_subst'
15601 double_quote_subst='$double_quote_subst'
15602 delay_variable_subst='$delay_variable_subst'
15603 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15604 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15605 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15606 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15607 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15608 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15609 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15610 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15611 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15612 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15613 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15614 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15615 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15616 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15617 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15618 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15619 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15620 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15621 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15622 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15623 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15624 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15625 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15626 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15627 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15628 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15629 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15630 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15631 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15632 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15633 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15634 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15635 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15636 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15637 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15638 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15639 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15640 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15641 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15642 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15643 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15644 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15645 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15646 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15647 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15648 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15649 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15650 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15651 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15652 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15653 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15654 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15655 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15656 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15657 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15658 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15659 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"`'
15660 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15661 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15662 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15663 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15664 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15665 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15666 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15667 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15668 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15669 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15670 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15671 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15672 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15673 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15674 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15675 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15676 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15677 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15678 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15679 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15680 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15681 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15682 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15683 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15684 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15685 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15686 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15687 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15688 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15689 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15690 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15691 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15692 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15693 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15694 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15695 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15696 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15697 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15698 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15699 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15700 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15701 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15702 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15703 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15704 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15705 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15706 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15707 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15708 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15709 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15710 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15711 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15712 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15713 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15714 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15715 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15716 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15717 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15718 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15719 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15720 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15721 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15722 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15723 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15724 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15725 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15726 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15727 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15728 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15729 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15730 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15731 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15732 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15735 LTCFLAGS='$LTCFLAGS'
15736 compiler='$compiler_DEFAULT'
15738 # A function that is used when there is no print builtin or printf.
15739 func_fallback_echo ()
15741 eval 'cat <<_LTECHO_EOF
15746 # Quote evaled strings.
15761 deplibs_check_method \
15766 sharedlib_from_linklib_cmd \
15769 archiver_list_spec \
15775 lt_cv_sys_global_symbol_pipe \
15776 lt_cv_sys_global_symbol_to_cdecl \
15777 lt_cv_sys_global_symbol_to_c_name_address \
15778 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15779 nm_file_list_spec \
15780 lt_prog_compiler_no_builtin_flag \
15781 lt_prog_compiler_pic \
15782 lt_prog_compiler_wl \
15783 lt_prog_compiler_static \
15784 lt_cv_prog_compiler_c_o \
15793 export_dynamic_flag_spec \
15794 whole_archive_flag_spec \
15795 compiler_needs_object \
15797 allow_undefined_flag \
15798 no_undefined_flag \
15799 hardcode_libdir_flag_spec \
15800 hardcode_libdir_separator \
15804 variables_saved_for_relink \
15806 library_names_spec \
15808 install_override_mode \
15812 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15813 *[\\\\\\\`\\"\\\$]*)
15814 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15817 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15822 # Double-quote double-evaled strings.
15823 for var in reload_cmds \
15824 old_postinstall_cmds \
15825 old_postuninstall_cmds \
15827 extract_expsyms_cmds \
15828 old_archive_from_new_cmds \
15829 old_archive_from_expsyms_cmds \
15831 archive_expsym_cmds \
15833 module_expsym_cmds \
15834 export_symbols_cmds \
15838 postuninstall_cmds \
15840 sys_lib_search_path_spec \
15841 sys_lib_dlsearch_path_spec; do
15842 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15843 *[\\\\\\\`\\"\\\$]*)
15844 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15847 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15852 ac_aux_dir='$ac_aux_dir'
15853 xsi_shell='$xsi_shell'
15854 lt_shell_append='$lt_shell_append'
15856 # See if we are running on zsh, and set the options which allow our
15857 # commands through without removal of \ escapes INIT.
15858 if test -n "\${ZSH_VERSION+set}" ; then
15859 setopt NO_GLOB_SUBST
15865 TIMESTAMP='$TIMESTAMP'
15874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15876 # Handling of arguments.
15877 for ac_config_target in $ac_config_targets
15879 case $ac_config_target in
15880 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15881 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15882 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15883 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15884 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
15885 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15886 "tests/offsets/Makefile") CONFIG_FILES="$CONFIG_FILES tests/offsets/Makefile" ;;
15887 "tests/scanner/Makefile") CONFIG_FILES="$CONFIG_FILES tests/scanner/Makefile" ;;
15888 "tests/repository/Makefile") CONFIG_FILES="$CONFIG_FILES tests/repository/Makefile" ;;
15889 "tests/warn/Makefile") CONFIG_FILES="$CONFIG_FILES tests/warn/Makefile" ;;
15890 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
15891 "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
15892 "gobject-introspection-1.0.pc") CONFIG_FILES="$CONFIG_FILES gobject-introspection-1.0.pc" ;;
15893 "gobject-introspection-no-export-1.0.pc") CONFIG_FILES="$CONFIG_FILES gobject-introspection-no-export-1.0.pc" ;;
15894 "config.h.win32") CONFIG_FILES="$CONFIG_FILES config.h.win32" ;;
15895 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
15896 "build/win32/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/Makefile" ;;
15897 "build/win32/vs9/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs9/Makefile" ;;
15898 "build/win32/vs10/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs10/Makefile" ;;
15900 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15905 # If the user did not use the arguments to specify the items to instantiate,
15906 # then the envvar interface is used. Set only those that are not.
15907 # We use the long form for the default assignment because of an extremely
15908 # bizarre bug on SunOS 4.1.3.
15909 if $ac_need_defaults; then
15910 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15911 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15912 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15915 # Have a temporary directory for convenience. Make it in the build tree
15916 # simply because there is no reason against having it here, and in addition,
15917 # creating and moving files from /tmp can sometimes cause problems.
15918 # Hook for its removal unless debugging.
15919 # Note that there is a small window in which the directory will not be cleaned:
15920 # after its creation but before its name has been assigned to `$tmp'.
15924 trap 'exit_status=$?
15925 : "${ac_tmp:=$tmp}"
15926 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15928 trap 'as_fn_exit 1' 1 2 13 15
15930 # Create a (secure) tmp directory for tmp files.
15933 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15937 tmp=./conf$$-$RANDOM
15938 (umask 077 && mkdir "$tmp")
15939 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15942 # Set up the scripts for CONFIG_FILES section.
15943 # No need to generate them if there are no CONFIG_FILES.
15944 # This happens for instance with `./config.status config.h'.
15945 if test -n "$CONFIG_FILES"; then
15948 ac_cr=`echo X | tr X '\015'`
15949 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15950 # But we know of no other shell where ac_cr would be empty at this
15951 # point, so we can use a bashism as a fallback.
15952 if test "x$ac_cr" = x; then
15953 eval ac_cr=\$\'\\r\'
15955 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15956 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15959 ac_cs_awk_cr=$ac_cr
15962 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15967 echo "cat >conf$$subs.awk <<_ACEOF" &&
15968 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15970 } >conf$$subs.sh ||
15971 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15972 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15974 for ac_last_try in false false false false false :; do
15975 . ./conf$$subs.sh ||
15976 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15978 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15979 if test $ac_delim_n = $ac_delim_num; then
15981 elif $ac_last_try; then
15982 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15984 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15987 rm -f conf$$subs.sh
15989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15990 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15994 s/^/S["/; s/!.*/"]=/
16004 s/\(.\{148\}\)..*/\1/
16006 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16011 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16018 s/\(.\{148\}\)..*/\1/
16020 s/["\\]/\\&/g; s/^/"/; s/$/"/
16024 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16029 ' <conf$$subs.awk | sed '
16034 ' >>$CONFIG_STATUS || ac_write_fail=1
16035 rm -f conf$$subs.awk
16036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16038 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16039 for (key in S) S_is_set[key] = 1
16045 nfields = split(line, field, "@")
16047 len = length(field[1])
16048 for (i = 2; i < nfields; i++) {
16050 keylen = length(key)
16051 if (S_is_set[key]) {
16053 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16054 len += length(value) + length(field[++i])
16065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16066 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16067 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16070 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16071 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16074 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16075 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16076 # trailing colons and then remove the whole line if VPATH becomes empty
16077 # (actually we leave an empty line to preserve line numbers).
16078 if test "x$srcdir" = x.; then
16079 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16098 fi # test -n "$CONFIG_FILES"
16100 # Set up the scripts for CONFIG_HEADERS section.
16101 # No need to generate them if there are no CONFIG_HEADERS.
16102 # This happens for instance with `./config.status Makefile'.
16103 if test -n "$CONFIG_HEADERS"; then
16104 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16108 # Transform confdefs.h into an awk script `defines.awk', embedded as
16109 # here-document in config.status, that substitutes the proper values into
16110 # config.h.in to produce config.h.
16112 # Create a delimiter string that does not exist in confdefs.h, to ease
16113 # handling of long lines.
16115 for ac_last_try in false false :; do
16116 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16117 if test -z "$ac_tt"; then
16119 elif $ac_last_try; then
16120 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16122 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16126 # For the awk script, D is an array of macro values keyed by name,
16127 # likewise P contains macro parameters if any. Preserve backslash
16128 # newline sequences.
16130 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16132 s/.\{148\}/&'"$ac_delim"'/g
16135 s/^[ ]*#[ ]*define[ ][ ]*/ /
16142 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16144 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16148 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16149 D["\1"]=" \3\\\\\\n"\\/p
16151 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16156 s/.\{148\}/&'"$ac_delim"'/g
16161 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16164 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16166 ' <confdefs.h | sed '
16167 s/'"$ac_delim"'/"\\\
16168 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16171 for (key in D) D_is_set[key] = 1
16174 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16176 split(line, arg, " ")
16177 if (arg[1] == "#") {
16181 defundef = substr(arg[1], 2)
16184 split(mac1, mac2, "(") #)
16186 prefix = substr(line, 1, index(line, defundef) - 1)
16187 if (D_is_set[macro]) {
16188 # Preserve the white space surrounding the "#".
16189 print prefix "define", macro P[macro] D[macro]
16192 # Replace #undef with comments. This is necessary, for example,
16193 # in the case of _POSIX_SOURCE, which is predefined and required
16194 # on some systems where configure will not decide to define it.
16195 if (defundef == "undef") {
16196 print "/*", prefix defundef, macro, "*/"
16204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16205 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16206 fi # test -n "$CONFIG_HEADERS"
16209 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16214 :[FHLC]) ac_mode=$ac_tag; continue;;
16216 case $ac_mode$ac_tag in
16218 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16219 :[FH]-) ac_tag=-:-;;
16220 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16237 -) ac_f="$ac_tmp/stdin";;
16238 *) # Look for the file first in the build tree, then in the source tree
16239 # (if the path is not absolute). The absolute path cannot be DOS-style,
16240 # because $ac_f cannot contain `:'.
16244 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16246 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16248 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16249 as_fn_append ac_file_inputs " '$ac_f'"
16252 # Let's still pretend it is `configure' which instantiates (i.e., don't
16253 # use $as_me), people would be surprised to read:
16254 # /* config.h. Generated by config.status. */
16255 configure_input='Generated from '`
16256 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16258 if test x"$ac_file" != x-; then
16259 configure_input="$ac_file. $configure_input"
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16261 $as_echo "$as_me: creating $ac_file" >&6;}
16263 # Neutralize special characters interpreted by sed in replacement strings.
16264 case $configure_input in #(
16265 *\&* | *\|* | *\\* )
16266 ac_sed_conf_input=`$as_echo "$configure_input" |
16267 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16268 *) ac_sed_conf_input=$configure_input;;
16272 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16273 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16278 ac_dir=`$as_dirname -- "$ac_file" ||
16279 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16280 X"$ac_file" : 'X\(//\)[^/]' \| \
16281 X"$ac_file" : 'X\(//\)$' \| \
16282 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16283 $as_echo X"$ac_file" |
16284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16288 /^X\(\/\/\)[^/].*/{
16301 as_dir="$ac_dir"; as_fn_mkdir_p
16305 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16307 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16308 # A ".." for each directory in $ac_dir_suffix.
16309 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16310 case $ac_top_builddir_sub in
16311 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16312 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16315 ac_abs_top_builddir=$ac_pwd
16316 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16317 # for backward compatibility:
16318 ac_top_builddir=$ac_top_build_prefix
16321 .) # We are building in place.
16323 ac_top_srcdir=$ac_top_builddir_sub
16324 ac_abs_top_srcdir=$ac_pwd ;;
16325 [\\/]* | ?:[\\/]* ) # Absolute name.
16326 ac_srcdir=$srcdir$ac_dir_suffix;
16327 ac_top_srcdir=$srcdir
16328 ac_abs_top_srcdir=$srcdir ;;
16329 *) # Relative name.
16330 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16331 ac_top_srcdir=$ac_top_build_prefix$srcdir
16332 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16334 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16344 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16345 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16347 ac_MKDIR_P=$MKDIR_P
16349 [\\/$]* | ?:[\\/]* ) ;;
16350 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16355 # If the template does not know about datarootdir, expand it.
16356 # FIXME: This hack should be removed a few years after 2.60.
16357 ac_datarootdir_hack=; ac_datarootdir_seen=
16368 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16369 *datarootdir*) ac_datarootdir_seen=yes;;
16370 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16372 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16375 ac_datarootdir_hack='
16376 s&@datadir@&$datadir&g
16377 s&@docdir@&$docdir&g
16378 s&@infodir@&$infodir&g
16379 s&@localedir@&$localedir&g
16380 s&@mandir@&$mandir&g
16381 s&\\\${datarootdir}&$datarootdir&g' ;;
16385 # Neutralize VPATH when `$srcdir' = `.'.
16386 # Shell code in configure.ac might set extrasub.
16387 # FIXME: do we really want to maintain this feature?
16388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16389 ac_sed_extra="$ac_vpsub
16392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16394 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16395 s|@configure_input@|$ac_sed_conf_input|;t t
16396 s&@top_builddir@&$ac_top_builddir_sub&;t t
16397 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16398 s&@srcdir@&$ac_srcdir&;t t
16399 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16400 s&@top_srcdir@&$ac_top_srcdir&;t t
16401 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16402 s&@builddir@&$ac_builddir&;t t
16403 s&@abs_builddir@&$ac_abs_builddir&;t t
16404 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16405 s&@INSTALL@&$ac_INSTALL&;t t
16406 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16407 $ac_datarootdir_hack
16409 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16410 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16412 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16413 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16414 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16415 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16417 which seems to be undefined. Please make sure it is defined" >&5
16418 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16419 which seems to be undefined. Please make sure it is defined" >&2;}
16421 rm -f "$ac_tmp/stdin"
16423 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16424 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16426 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16432 if test x"$ac_file" != x-; then
16434 $as_echo "/* $configure_input */" \
16435 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16436 } >"$ac_tmp/config.h" \
16437 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16438 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16440 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16443 mv "$ac_tmp/config.h" "$ac_file" \
16444 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16447 $as_echo "/* $configure_input */" \
16448 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16449 || as_fn_error $? "could not create -" "$LINENO" 5
16451 # Compute "$ac_file"'s index in $config_headers.
16454 for _am_header in $config_headers :; do
16455 case $_am_header in
16456 $_am_arg | $_am_arg:* )
16459 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16462 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16463 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16464 X"$_am_arg" : 'X\(//\)[^/]' \| \
16465 X"$_am_arg" : 'X\(//\)$' \| \
16466 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16467 $as_echo X"$_am_arg" |
16468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16472 /^X\(\/\/\)[^/].*/{
16484 s/.*/./; q'`/stamp-h$_am_stamp_count
16487 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16488 $as_echo "$as_me: executing $ac_file commands" >&6;}
16493 case $ac_file$ac_mode in
16494 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16495 # Older Autoconf quotes --file arguments for eval, but not when files
16496 # are listed without --file. Let's play safe and only enable the eval
16497 # if we detect the quoting.
16498 case $CONFIG_FILES in
16499 *\'*) eval set x "$CONFIG_FILES" ;;
16500 *) set x $CONFIG_FILES ;;
16505 # Strip MF so we end up with the name of the file.
16506 mf=`echo "$mf" | sed -e 's/:.*$//'`
16507 # Check whether this is an Automake generated Makefile or not.
16508 # We used to match only the files named 'Makefile.in', but
16509 # some people rename them; so instead we look at the file content.
16510 # Grep'ing the first line is not enough: some people post-process
16511 # each Makefile.in and add a new line on top of each file to say so.
16512 # Grep'ing the whole file is not good either: AIX grep has a line
16513 # limit of 2048, but all sed's we know have understand at least 4000.
16514 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16515 dirpart=`$as_dirname -- "$mf" ||
16516 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16517 X"$mf" : 'X\(//\)[^/]' \| \
16518 X"$mf" : 'X\(//\)$' \| \
16519 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16525 /^X\(\/\/\)[^/].*/{
16541 # Extract the definition of DEPDIR, am__include, and am__quote
16542 # from the Makefile without running 'make'.
16543 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16544 test -z "$DEPDIR" && continue
16545 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16546 test -z "$am__include" && continue
16547 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16548 # Find all dependency output files, they are included files with
16549 # $(DEPDIR) in their names. We invoke sed twice because it is the
16550 # simplest approach to changing $(DEPDIR) to its actual value in the
16552 for file in `sed -n "
16553 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16554 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16555 # Make sure the directory exists.
16556 test -f "$dirpart/$file" && continue
16557 fdir=`$as_dirname -- "$file" ||
16558 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16559 X"$file" : 'X\(//\)[^/]' \| \
16560 X"$file" : 'X\(//\)$' \| \
16561 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16562 $as_echo X"$file" |
16563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16567 /^X\(\/\/\)[^/].*/{
16580 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16581 # echo "creating $dirpart/$file"
16582 echo '# dummy' > "$dirpart/$file"
16589 # See if we are running on zsh, and set the options which allow our
16590 # commands through without removal of \ escapes.
16591 if test -n "${ZSH_VERSION+set}" ; then
16592 setopt NO_GLOB_SUBST
16595 cfgfile="${ofile}T"
16596 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16599 cat <<_LT_EOF >> "$cfgfile"
16602 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16603 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16604 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16605 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16607 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16608 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16610 # Written by Gordon Matzigkeit, 1996
16612 # This file is part of GNU Libtool.
16614 # GNU Libtool is free software; you can redistribute it and/or
16615 # modify it under the terms of the GNU General Public License as
16616 # published by the Free Software Foundation; either version 2 of
16617 # the License, or (at your option) any later version.
16619 # As a special exception to the GNU General Public License,
16620 # if you distribute this file as part of a program or library that
16621 # is built using GNU Libtool, you may include this file under the
16622 # same distribution terms that you use for the rest of that program.
16624 # GNU Libtool is distributed in the hope that it will be useful,
16625 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16626 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16627 # GNU General Public License for more details.
16629 # You should have received a copy of the GNU General Public License
16630 # along with GNU Libtool; see the file COPYING. If not, a copy
16631 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16632 # obtained by writing to the Free Software Foundation, Inc.,
16633 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16636 # The names of the tagged configurations supported by this script.
16639 # ### BEGIN LIBTOOL CONFIG
16641 # Which release of libtool.m4 was used?
16642 macro_version=$macro_version
16643 macro_revision=$macro_revision
16645 # Whether or not to build shared libraries.
16646 build_libtool_libs=$enable_shared
16648 # Whether or not to build static libraries.
16649 build_old_libs=$enable_static
16651 # What type of objects to build.
16654 # Whether or not to optimize for fast installation.
16655 fast_install=$enable_fast_install
16657 # Shell to use when invoking shell scripts.
16660 # An echo program that protects backslashes.
16663 # The PATH separator for the build system.
16664 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16667 host_alias=$host_alias
16671 # The build system.
16672 build_alias=$build_alias
16676 # A sed program that does not truncate output.
16679 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16680 Xsed="\$SED -e 1s/^X//"
16682 # A grep program that handles long lines.
16688 # A literal string matcher.
16691 # A BSD- or MS-compatible name lister.
16694 # Whether we need soft or hard links.
16697 # What is the maximum length of a command?
16698 max_cmd_len=$max_cmd_len
16700 # Object file suffix (normally "o").
16703 # Executable file suffix (normally "").
16706 # whether the shell understands "unset".
16709 # turn spaces into newlines.
16712 # turn newlines into spaces.
16715 # convert \$build file names to \$host format.
16716 to_host_file_cmd=$lt_cv_to_host_file_cmd
16718 # convert \$build files to toolchain format.
16719 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16721 # An object symbol dumper.
16722 OBJDUMP=$lt_OBJDUMP
16724 # Method to check whether dependent libraries are shared objects.
16725 deplibs_check_method=$lt_deplibs_check_method
16727 # Command to use when deplibs_check_method = "file_magic".
16728 file_magic_cmd=$lt_file_magic_cmd
16730 # How to find potential files when deplibs_check_method = "file_magic".
16731 file_magic_glob=$lt_file_magic_glob
16733 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16734 want_nocaseglob=$lt_want_nocaseglob
16736 # DLL creation program.
16737 DLLTOOL=$lt_DLLTOOL
16739 # Command to associate shared and link libraries.
16740 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16745 # Flags to create an archive.
16746 AR_FLAGS=$lt_AR_FLAGS
16748 # How to feed a file listing to the archiver.
16749 archiver_list_spec=$lt_archiver_list_spec
16751 # A symbol stripping program.
16754 # Commands used to install an old-style archive.
16756 old_postinstall_cmds=$lt_old_postinstall_cmds
16757 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16759 # Whether to use a lock for old archive extraction.
16760 lock_old_archive_extraction=$lock_old_archive_extraction
16765 # LTCC compiler flags.
16766 LTCFLAGS=$lt_CFLAGS
16768 # Take the output of nm and produce a listing of raw symbols and C names.
16769 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16771 # Transform the output of nm in a proper C declaration.
16772 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16774 # Transform the output of nm in a C name address pair.
16775 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16777 # Transform the output of nm in a C name address pair when lib prefix is needed.
16778 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16780 # Specify filename containing input files for \$NM.
16781 nm_file_list_spec=$lt_nm_file_list_spec
16783 # The root where to search for dependent libraries,and in which our libraries should be installed.
16784 lt_sysroot=$lt_sysroot
16786 # The name of the directory that contains temporary libtool files.
16789 # Used to examine libraries when file_magic_cmd begins with "file".
16790 MAGIC_CMD=$MAGIC_CMD
16792 # Must we lock files when doing compilation?
16793 need_locks=$lt_need_locks
16796 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16798 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16799 DSYMUTIL=$lt_DSYMUTIL
16801 # Tool to change global to local symbols on Mac OS X.
16804 # Tool to manipulate fat objects and archives on Mac OS X.
16807 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16810 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16811 OTOOL64=$lt_OTOOL64
16813 # Old archive suffix (normally "a").
16816 # Shared library suffix (normally ".so").
16817 shrext_cmds=$lt_shrext_cmds
16819 # The commands to extract the exported symbol list from a shared archive.
16820 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16822 # Variables whose values should be saved in libtool wrapper scripts and
16823 # restored at link time.
16824 variables_saved_for_relink=$lt_variables_saved_for_relink
16826 # Do we need the "lib" prefix for modules?
16827 need_lib_prefix=$need_lib_prefix
16829 # Do we need a version for libraries?
16830 need_version=$need_version
16832 # Library versioning type.
16833 version_type=$version_type
16835 # Shared library runtime path variable.
16836 runpath_var=$runpath_var
16838 # Shared library path variable.
16839 shlibpath_var=$shlibpath_var
16841 # Is shlibpath searched before the hard-coded library search path?
16842 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16844 # Format of library name prefix.
16845 libname_spec=$lt_libname_spec
16847 # List of archive names. First name is the real one, the rest are links.
16848 # The last name is the one that the linker finds with -lNAME
16849 library_names_spec=$lt_library_names_spec
16851 # The coded name of the library, if different from the real name.
16852 soname_spec=$lt_soname_spec
16854 # Permission mode override for installation of shared libraries.
16855 install_override_mode=$lt_install_override_mode
16857 # Command to use after installation of a shared archive.
16858 postinstall_cmds=$lt_postinstall_cmds
16860 # Command to use after uninstallation of a shared archive.
16861 postuninstall_cmds=$lt_postuninstall_cmds
16863 # Commands used to finish a libtool library installation in a directory.
16864 finish_cmds=$lt_finish_cmds
16866 # As "finish_cmds", except a single script fragment to be evaled but
16868 finish_eval=$lt_finish_eval
16870 # Whether we should hardcode library paths into libraries.
16871 hardcode_into_libs=$hardcode_into_libs
16873 # Compile-time system search path for libraries.
16874 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16876 # Run-time system search path for libraries.
16877 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16879 # Whether dlopen is supported.
16880 dlopen_support=$enable_dlopen
16882 # Whether dlopen of programs is supported.
16883 dlopen_self=$enable_dlopen_self
16885 # Whether dlopen of statically linked programs is supported.
16886 dlopen_self_static=$enable_dlopen_self_static
16888 # Commands to strip libraries.
16889 old_striplib=$lt_old_striplib
16890 striplib=$lt_striplib
16893 # The linker used to build libraries.
16896 # How to create reloadable object files.
16897 reload_flag=$lt_reload_flag
16898 reload_cmds=$lt_reload_cmds
16900 # Commands used to build an old-style archive.
16901 old_archive_cmds=$lt_old_archive_cmds
16903 # A language specific compiler.
16906 # Is the compiler the GNU compiler?
16909 # Compiler flag to turn off builtin functions.
16910 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16912 # Additional compiler flags for building library objects.
16913 pic_flag=$lt_lt_prog_compiler_pic
16915 # How to pass a linker flag through the compiler.
16916 wl=$lt_lt_prog_compiler_wl
16918 # Compiler flag to prevent dynamic linking.
16919 link_static_flag=$lt_lt_prog_compiler_static
16921 # Does compiler simultaneously support -c and -o options?
16922 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16924 # Whether or not to add -lc for building shared libraries.
16925 build_libtool_need_lc=$archive_cmds_need_lc
16927 # Whether or not to disallow shared libs when runtime libs are static.
16928 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16930 # Compiler flag to allow reflexive dlopens.
16931 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16933 # Compiler flag to generate shared objects directly from archives.
16934 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16936 # Whether the compiler copes with passing no objects directly.
16937 compiler_needs_object=$lt_compiler_needs_object
16939 # Create an old-style archive from a shared archive.
16940 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16942 # Create a temporary old-style archive to link instead of a shared archive.
16943 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16945 # Commands used to build a shared archive.
16946 archive_cmds=$lt_archive_cmds
16947 archive_expsym_cmds=$lt_archive_expsym_cmds
16949 # Commands used to build a loadable module if different from building
16950 # a shared archive.
16951 module_cmds=$lt_module_cmds
16952 module_expsym_cmds=$lt_module_expsym_cmds
16954 # Whether we are building with GNU ld or not.
16955 with_gnu_ld=$lt_with_gnu_ld
16957 # Flag that allows shared libraries with undefined symbols to be built.
16958 allow_undefined_flag=$lt_allow_undefined_flag
16960 # Flag that enforces no undefined symbols.
16961 no_undefined_flag=$lt_no_undefined_flag
16963 # Flag to hardcode \$libdir into a binary during linking.
16964 # This must work even if \$libdir does not exist
16965 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16967 # Whether we need a single "-rpath" flag with a separated argument.
16968 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16970 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16971 # DIR into the resulting binary.
16972 hardcode_direct=$hardcode_direct
16974 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16975 # DIR into the resulting binary and the resulting library dependency is
16976 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16977 # library is relocated.
16978 hardcode_direct_absolute=$hardcode_direct_absolute
16980 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16981 # into the resulting binary.
16982 hardcode_minus_L=$hardcode_minus_L
16984 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16985 # into the resulting binary.
16986 hardcode_shlibpath_var=$hardcode_shlibpath_var
16988 # Set to "yes" if building a shared library automatically hardcodes DIR
16989 # into the library and all subsequent libraries and executables linked
16991 hardcode_automatic=$hardcode_automatic
16993 # Set to yes if linker adds runtime paths of dependent libraries
16994 # to runtime path list.
16995 inherit_rpath=$inherit_rpath
16997 # Whether libtool must link a program against all its dependency libraries.
16998 link_all_deplibs=$link_all_deplibs
17000 # Set to "yes" if exported symbols are required.
17001 always_export_symbols=$always_export_symbols
17003 # The commands to list exported symbols.
17004 export_symbols_cmds=$lt_export_symbols_cmds
17006 # Symbols that should not be listed in the preloaded symbols.
17007 exclude_expsyms=$lt_exclude_expsyms
17009 # Symbols that must always be exported.
17010 include_expsyms=$lt_include_expsyms
17012 # Commands necessary for linking programs (against libraries) with templates.
17013 prelink_cmds=$lt_prelink_cmds
17015 # Commands necessary for finishing linking programs.
17016 postlink_cmds=$lt_postlink_cmds
17018 # Specify filename containing input files.
17019 file_list_spec=$lt_file_list_spec
17021 # How to hardcode a shared library path into an executable.
17022 hardcode_action=$hardcode_action
17024 # ### END LIBTOOL CONFIG
17030 cat <<\_LT_EOF >> "$cfgfile"
17031 # AIX sometimes has problems with the GCC collect2 program. For some
17032 # reason, if we set the COLLECT_NAMES environment variable, the problems
17033 # vanish in a puff of smoke.
17034 if test "X${COLLECT_NAMES+set}" != Xset; then
17036 export COLLECT_NAMES
17043 ltmain="$ac_aux_dir/ltmain.sh"
17046 # We use sed instead of cat because bash on DJGPP gets confused if
17047 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17048 # text mode, it properly converts lines to CR/LF. This bash problem
17049 # is reportedly fixed, but why not run on old versions too?
17050 sed '$q' "$ltmain" >> "$cfgfile" \
17051 || (rm -f "$cfgfile"; exit 1)
17053 if test x"$xsi_shell" = xyes; then
17054 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17058 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17059 \ * ) func_dirname_result="${3}" ;;\
17061 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17062 && mv -f "$cfgfile.tmp" "$cfgfile" \
17063 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17064 test 0 -eq $? || _lt_function_replace_fail=:
17067 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17070 \ func_basename_result="${1##*/}"\
17071 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17072 && mv -f "$cfgfile.tmp" "$cfgfile" \
17073 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17074 test 0 -eq $? || _lt_function_replace_fail=:
17077 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17078 func_dirname_and_basename ()\
17081 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17082 \ * ) func_dirname_result="${3}" ;;\
17084 \ func_basename_result="${1##*/}"\
17085 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17086 && mv -f "$cfgfile.tmp" "$cfgfile" \
17087 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17088 test 0 -eq $? || _lt_function_replace_fail=:
17091 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17094 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17095 \ # positional parameters, so assign one to ordinary parameter first.\
17096 \ func_stripname_result=${3}\
17097 \ func_stripname_result=${func_stripname_result#"${1}"}\
17098 \ func_stripname_result=${func_stripname_result%"${2}"}\
17099 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17100 && mv -f "$cfgfile.tmp" "$cfgfile" \
17101 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17102 test 0 -eq $? || _lt_function_replace_fail=:
17105 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17106 func_split_long_opt ()\
17108 \ func_split_long_opt_name=${1%%=*}\
17109 \ func_split_long_opt_arg=${1#*=}\
17110 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17111 && mv -f "$cfgfile.tmp" "$cfgfile" \
17112 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17113 test 0 -eq $? || _lt_function_replace_fail=:
17116 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17117 func_split_short_opt ()\
17119 \ func_split_short_opt_arg=${1#??}\
17120 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17121 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17122 && mv -f "$cfgfile.tmp" "$cfgfile" \
17123 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17124 test 0 -eq $? || _lt_function_replace_fail=:
17127 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17131 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17132 \ *) func_lo2o_result=${1} ;;\
17134 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17135 && mv -f "$cfgfile.tmp" "$cfgfile" \
17136 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17137 test 0 -eq $? || _lt_function_replace_fail=:
17140 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17143 func_xform_result=${1%.*}.lo\
17144 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17145 && mv -f "$cfgfile.tmp" "$cfgfile" \
17146 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17147 test 0 -eq $? || _lt_function_replace_fail=:
17150 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17153 func_arith_result=$(( $* ))\
17154 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17155 && mv -f "$cfgfile.tmp" "$cfgfile" \
17156 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17157 test 0 -eq $? || _lt_function_replace_fail=:
17160 sed -e '/^func_len ()$/,/^} # func_len /c\
17163 func_len_result=${#1}\
17164 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17165 && mv -f "$cfgfile.tmp" "$cfgfile" \
17166 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17167 test 0 -eq $? || _lt_function_replace_fail=:
17171 if test x"$lt_shell_append" = xyes; then
17172 sed -e '/^func_append ()$/,/^} # func_append /c\
17175 eval "${1}+=\\${2}"\
17176 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17177 && mv -f "$cfgfile.tmp" "$cfgfile" \
17178 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17179 test 0 -eq $? || _lt_function_replace_fail=:
17182 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17183 func_append_quoted ()\
17185 \ func_quote_for_eval "${2}"\
17186 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17187 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17188 && mv -f "$cfgfile.tmp" "$cfgfile" \
17189 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17190 test 0 -eq $? || _lt_function_replace_fail=:
17193 # Save a `func_append' function call where possible by direct use of '+='
17194 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17195 && mv -f "$cfgfile.tmp" "$cfgfile" \
17196 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17197 test 0 -eq $? || _lt_function_replace_fail=:
17199 # Save a `func_append' function call even when '+=' is not available
17200 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17201 && mv -f "$cfgfile.tmp" "$cfgfile" \
17202 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17203 test 0 -eq $? || _lt_function_replace_fail=:
17206 if test x"$_lt_function_replace_fail" = x":"; then
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17208 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17212 mv -f "$cfgfile" "$ofile" ||
17213 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17224 ac_clean_files=$ac_clean_files_save
17226 test $ac_write_fail = 0 ||
17227 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17230 # configure is writing to config.log, and then calls config.status.
17231 # config.status does its own redirection, appending to config.log.
17232 # Unfortunately, on DOS this fails, as config.log is still kept open
17233 # by configure, so config.status won't be able to write to it; its
17234 # output is simply discarded. So we exec the FD to /dev/null,
17235 # effectively closing config.log, so it can be properly (re)opened and
17236 # appended to by config.status. When coming back to configure, we
17237 # need to make the FD available again.
17238 if test "$no_create" != yes; then
17240 ac_config_status_args=
17241 test "$silent" = yes &&
17242 ac_config_status_args="$ac_config_status_args --quiet"
17244 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17246 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17247 # would make configure fail if this is the last instruction.
17248 $ac_cs_success || as_fn_exit 1
17250 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17252 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}